]> sourceware.org Git - lvm2.git/blame - configure
thin: tighten discard string conversions
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 443
f11781c5
AK
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
4417a8bd 599tmpfilesdir
fa68466e 600systemdutildir
e587cb6a 601systemdsystemunitdir
a5f46f6a
AK
602udevdir
603udev_prefix
ec6a6fbe
AK
604tmpdir
605kernelvsn
606missingkernel
607kerneldir
608interface
5723db01 609LVMETAD_PIDFILE
6e5c1f75 610DMEVENTD_PIDFILE
23b059e7 611WRITE_INSTALL
b559a1e6 612UDEV_HAS_BUILTIN_BLKID
5723db01 613UDEV_RULE_EXEC_DETECTION
0878503f 614UDEV_SYNC
a5f46f6a 615UDEV_RULES
f7f0854e 616UDEV_PC
3ba4a195 617THIN
54b362f9 618TESTING
ec6a6fbe
AK
619STATIC_LINK
620STATICDIR
621SNAPSHOTS
f7f0854e 622SELINUX_PC
e1b8a236 623SELINUX_LIBS
cac52ca4 624REPLICATORS
539f4a77 625READLINE_LIBS
cac52ca4 626RAID
f30875db 627PTHREAD_LIBS
ec6a6fbe
AK
628POOL
629PKGCONFIG
606d0858 630OCFDIR
37ddf259 631OCF
ec6a6fbe
AK
632MIRRORS
633LVM_RELEASE_DATE
634LVM_RELEASE
d2c11605 635LVM_PATH
ec6a6fbe
AK
636LVM_PATCHLEVEL
637LVM_MINOR
638LVM_MAJOR
bf456146 639LVM_LIBAPI
ec6a6fbe 640LVM_VERSION
ec6a6fbe
AK
641LVM1_FALLBACK
642LVM1
643LOCALEDIR
644LIB_SUFFIX
645LDDEPS
646JOBS
647INTL_PACKAGE
648INTL
ec6a6fbe
AK
649HAVE_REALTIME
650HAVE_LIBDL
ec6a6fbe 651FSADM
bf09a320 652ELDFLAGS
ec6a6fbe
AK
653DM_LIB_PATCHLEVEL
654DM_LIB_VERSION
655DM_IOCTLS
656DM_DEVICE_UID
657DM_DEVICE_MODE
658DM_DEVICE_GID
659DM_COMPAT
d1e8046f 660DMEVENTD_PATH
ec6a6fbe 661DMEVENTD
19a2c6e0 662DL_LIBS
ec6a6fbe 663DEVMAPPER
b1f08e51 664DEFAULT_RUN_DIR
5723db01 665DEFAULT_DM_RUN_DIR
3399ae32 666DEFAULT_LOCK_DIR
fea55602 667DEFAULT_DATA_ALIGNMENT
3399ae32
AK
668DEFAULT_CACHE_SUBDIR
669DEFAULT_BACKUP_SUBDIR
670DEFAULT_ARCHIVE_SUBDIR
671DEFAULT_SYS_DIR
ec6a6fbe
AK
672DEBUG
673COPTIMISE_FLAG
e2997b73 674CONFDIR
ec6a6fbe 675CMDLIB
d2c11605 676CLVMD_PATH
c89bc357 677CLVMD_CMANAGERS
ec6a6fbe
AK
678CLVMD
679CLUSTER
680CLDWHOLEARCHIVE
681CLDNOWHOLEARCHIVE
682CLDFLAGS
cdd50823 683BUILD_LVMETAD
ec6a6fbe 684BUILD_DMEVENTD
66fd4529 685BUILD_CMIRRORD
572fefeb 686APPLIB
ec6a6fbe
AK
687MODPROBE_CMD
688MSGFMT
689LVM2CMD_LIB
572fefeb 690LVM2APP_LIB
d93275eb
PR
691UDEV_LIBS
692UDEV_CFLAGS
426fc742
PR
693CUNIT_LIBS
694CUNIT_CFLAGS
fd4728e1 695GENPNG
ec6a6fbe
AK
696GENHTML
697LCOV
90c80887
AK
698SACKPT_LIBS
699SACKPT_CFLAGS
a946372e
AK
700DLM_LIBS
701DLM_CFLAGS
e2997b73
AK
702CPG_LIBS
703CPG_CFLAGS
b6d7a484
AK
704CMAP_LIBS
705CMAP_CFLAGS
e2997b73
AK
706CONFDB_LIBS
707CONFDB_CFLAGS
a946372e
AK
708SALCK_LIBS
709SALCK_CFLAGS
e2997b73
AK
710QUORUM_LIBS
711QUORUM_CFLAGS
a946372e
AK
712COROSYNC_LIBS
713COROSYNC_CFLAGS
714CMAN_LIBS
715CMAN_CFLAGS
a946372e
AK
716PKGCONFIGINIT_LIBS
717PKGCONFIGINIT_CFLAGS
f11781c5
AK
718PKG_CONFIG_LIBDIR
719PKG_CONFIG_PATH
e2997b73 720PKG_CONFIG
f61cacad 721THIN_CHECK_CMD
ec6a6fbe
AK
722POW_LIB
723LIBOBJS
724ALLOCA
725CSCOPE_CMD
726CFLOW_CMD
727RANLIB
728MKDIR_P
729SET_MAKE
730LN_S
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734EGREP
735GREP
736CPP
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744AWK
745SED
746target_os
747target_vendor
748target_cpu
749target
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
f11781c5 788PACKAGE_URL
ec6a6fbe
AK
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
ad6254c5 796ac_subst_files=''
ec6a6fbe
AK
797ac_user_opts='
798enable_option_checking
799enable_static_link
800with_user
801with_group
802with_device_uid
803with_device_gid
804with_device_mode
d0df875d 805with_device_nodes_on
c64d7cd3 806with_default_name_mangling
ec6a6fbe
AK
807enable_lvm1_fallback
808with_lvm1
809with_pool
810with_cluster
811with_snapshots
812with_mirrors
cac52ca4 813with_raid
8fea97b7 814with_replicators
3ba4a195 815with_thin
f61cacad 816with_thin_check
ec6a6fbe
AK
817enable_readline
818enable_realtime
37ddf259 819enable_ocf
606d0858 820with_ocfdir
5723db01
PR
821with_default_pid_dir
822with_default_dm_run_dir
823with_default_run_dir
ec6a6fbe 824with_clvmd
8c4e8a18 825with_clvmd_pidfile
66fd4529
AK
826enable_cmirrord
827with_cmirrord_pidfile
ec6a6fbe
AK
828enable_debug
829with_optimisation
830enable_profiling
54b362f9 831enable_testing
d1e8046f 832enable_valgrind_pool
ec6a6fbe 833enable_devmapper
cdd50823 834enable_lvmetad
5723db01 835with_lvmetad_pidfile
a5f46f6a
AK
836enable_udev_sync
837enable_udev_rules
5723db01 838enable_udev_rule_exec_detection
ec6a6fbe 839enable_compat
95eaa683 840enable_units_compat
ec6a6fbe
AK
841enable_ioctl
842enable_o_direct
572fefeb 843enable_applib
ec6a6fbe
AK
844enable_cmdlib
845enable_pkgconfig
23b059e7 846enable_write_install
ec6a6fbe
AK
847enable_fsadm
848enable_dmeventd
849enable_selinux
850enable_nls
851with_localedir
852with_confdir
853with_staticdir
854with_usrlibdir
855with_usrsbindir
a5f46f6a 856with_udev_prefix
78ce7acc 857with_udevdir
e587cb6a 858with_systemdsystemunitdir
4417a8bd 859with_tmpfilesdir
ec6a6fbe
AK
860with_dmeventd_pidfile
861with_dmeventd_path
3399ae32
AK
862with_default_system_dir
863with_default_archive_subdir
864with_default_backup_subdir
865with_default_cache_subdir
866with_default_locking_dir
fea55602 867with_default_data_alignment
ec6a6fbe
AK
868with_interface
869'
7a197a62
AK
870 ac_precious_vars='build_alias
871host_alias
872target_alias
873CC
874CFLAGS
875LDFLAGS
25fbec5b 876LIBS
7a197a62 877CPPFLAGS
e2997b73
AK
878CPP
879PKG_CONFIG
f11781c5
AK
880PKG_CONFIG_PATH
881PKG_CONFIG_LIBDIR
a946372e
AK
882PKGCONFIGINIT_CFLAGS
883PKGCONFIGINIT_LIBS
a946372e
AK
884CMAN_CFLAGS
885CMAN_LIBS
886COROSYNC_CFLAGS
887COROSYNC_LIBS
e2997b73
AK
888QUORUM_CFLAGS
889QUORUM_LIBS
a946372e
AK
890SALCK_CFLAGS
891SALCK_LIBS
e2997b73
AK
892CONFDB_CFLAGS
893CONFDB_LIBS
b6d7a484
AK
894CMAP_CFLAGS
895CMAP_LIBS
e2997b73 896CPG_CFLAGS
a946372e
AK
897CPG_LIBS
898DLM_CFLAGS
90c80887
AK
899DLM_LIBS
900SACKPT_CFLAGS
d93275eb 901SACKPT_LIBS
426fc742
PR
902CUNIT_CFLAGS
903CUNIT_LIBS
d93275eb 904UDEV_CFLAGS
05fb5158 905UDEV_LIBS'
7a197a62 906
795ca3e5
AK
907
908# Initialize some variables set by options.
ad6254c5
AK
909ac_init_help=
910ac_init_version=false
ec6a6fbe
AK
911ac_unrecognized_opts=
912ac_unrecognized_sep=
795ca3e5
AK
913# The variables have the same names as the options, with
914# dashes changed to underlines.
ad6254c5 915cache_file=/dev/null
795ca3e5 916exec_prefix=NONE
795ca3e5 917no_create=
795ca3e5
AK
918no_recursion=
919prefix=NONE
920program_prefix=NONE
921program_suffix=NONE
922program_transform_name=s,x,x,
923silent=
924site=
925srcdir=
795ca3e5
AK
926verbose=
927x_includes=NONE
928x_libraries=NONE
ad6254c5
AK
929
930# Installation directory options.
931# These are left unexpanded so users can "make install exec_prefix=/foo"
932# and all the variables that are supposed to be based on exec_prefix
933# by default will actually change.
934# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 935# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
936bindir='${exec_prefix}/bin'
937sbindir='${exec_prefix}/sbin'
938libexecdir='${exec_prefix}/libexec'
7a197a62
AK
939datarootdir='${prefix}/share'
940datadir='${datarootdir}'
795ca3e5
AK
941sysconfdir='${prefix}/etc'
942sharedstatedir='${prefix}/com'
943localstatedir='${prefix}/var'
795ca3e5
AK
944includedir='${prefix}/include'
945oldincludedir='/usr/include'
7a197a62
AK
946docdir='${datarootdir}/doc/${PACKAGE}'
947infodir='${datarootdir}/info'
948htmldir='${docdir}'
949dvidir='${docdir}'
950pdfdir='${docdir}'
951psdir='${docdir}'
952libdir='${exec_prefix}/lib'
953localedir='${datarootdir}/locale'
954mandir='${datarootdir}/man'
795ca3e5 955
795ca3e5 956ac_prev=
7a197a62 957ac_dashdash=
795ca3e5
AK
958for ac_option
959do
795ca3e5
AK
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
7a197a62 962 eval $ac_prev=\$ac_option
795ca3e5
AK
963 ac_prev=
964 continue
965 fi
966
7a197a62
AK
967 case $ac_option in
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *) ac_optarg=yes ;;
970 esac
795ca3e5
AK
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
7a197a62
AK
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
795ca3e5
AK
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 981 bindir=$ac_optarg ;;
795ca3e5
AK
982
983 -build | --build | --buil | --bui | --bu)
ad6254c5 984 ac_prev=build_alias ;;
795ca3e5 985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 986 build_alias=$ac_optarg ;;
795ca3e5
AK
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
795ca3e5 997
7a197a62 998 -datadir | --datadir | --datadi | --datad)
795ca3e5 999 ac_prev=datadir ;;
7a197a62 1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1001 datadir=$ac_optarg ;;
795ca3e5 1002
7a197a62
AK
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
795ca3e5 1010 -disable-* | --disable-*)
ec6a6fbe 1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1012 # Reject names that are not valid shell variable names.
ec6a6fbe 1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1014 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
7a197a62
AK
1025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
795ca3e5
AK
1035
1036 -enable-* | --enable-*)
ec6a6fbe 1037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1038 # Reject names that are not valid shell variable names.
ec6a6fbe 1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1040 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
ad6254c5 1059 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
ad6254c5
AK
1065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
795ca3e5
AK
1071
1072 -host | --host | --hos | --ho)
ad6254c5 1073 ac_prev=host_alias ;;
795ca3e5 1074 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1075 host_alias=$ac_optarg ;;
795ca3e5 1076
7a197a62
AK
1077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
795ca3e5
AK
1083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1088 includedir=$ac_optarg ;;
795ca3e5
AK
1089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1093 infodir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1098 libdir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1105 libexecdir=$ac_optarg ;;
795ca3e5 1106
7a197a62
AK
1107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
795ca3e5 1112 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1113 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1117 localstatedir=$ac_optarg ;;
795ca3e5
AK
1118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1122 mandir=$ac_optarg ;;
795ca3e5
AK
1123
1124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1129 | --no-cr | --no-c | -n)
795ca3e5
AK
1130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
1136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1143 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1144
1145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1148 prefix=$ac_optarg ;;
795ca3e5
AK
1149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1155 program_prefix=$ac_optarg ;;
795ca3e5
AK
1156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1162 program_suffix=$ac_optarg ;;
795ca3e5
AK
1163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1179 program_transform_name=$ac_optarg ;;
795ca3e5 1180
7a197a62
AK
1181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
795ca3e5
AK
1191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
1195 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1196 ac_prev=sbindir ;;
1197 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1198 | --sbi=* | --sb=*)
ad6254c5 1199 sbindir=$ac_optarg ;;
795ca3e5
AK
1200
1201 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1202 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1203 | --sharedst | --shareds | --shared | --share | --shar \
1204 | --sha | --sh)
1205 ac_prev=sharedstatedir ;;
1206 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1207 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1208 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1209 | --sha=* | --sh=*)
ad6254c5 1210 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1211
1212 -site | --site | --sit)
1213 ac_prev=site ;;
1214 -site=* | --site=* | --sit=*)
ad6254c5 1215 site=$ac_optarg ;;
795ca3e5
AK
1216
1217 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1218 ac_prev=srcdir ;;
1219 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1220 srcdir=$ac_optarg ;;
795ca3e5
AK
1221
1222 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1223 | --syscon | --sysco | --sysc | --sys | --sy)
1224 ac_prev=sysconfdir ;;
1225 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1226 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1227 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1228
1229 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1230 ac_prev=target_alias ;;
795ca3e5 1231 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1232 target_alias=$ac_optarg ;;
795ca3e5
AK
1233
1234 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1235 verbose=yes ;;
1236
ad6254c5
AK
1237 -version | --version | --versio | --versi | --vers | -V)
1238 ac_init_version=: ;;
795ca3e5
AK
1239
1240 -with-* | --with-*)
ec6a6fbe 1241 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1242 # Reject names that are not valid shell variable names.
ec6a6fbe 1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1244 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249"with_$ac_useropt"
1250"*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1255
1256 -without-* | --without-*)
ec6a6fbe 1257 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1258 # Reject names that are not valid shell variable names.
ec6a6fbe 1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1260 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1264 *"
1265"with_$ac_useropt"
1266"*) ;;
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1269 esac
1270 eval with_$ac_useropt=no ;;
795ca3e5
AK
1271
1272 --x)
1273 # Obsolete; use --with-x.
1274 with_x=yes ;;
1275
1276 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1277 | --x-incl | --x-inc | --x-in | --x-i)
1278 ac_prev=x_includes ;;
1279 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1280 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1281 x_includes=$ac_optarg ;;
795ca3e5
AK
1282
1283 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1284 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1285 ac_prev=x_libraries ;;
1286 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1287 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1288 x_libraries=$ac_optarg ;;
795ca3e5 1289
f11781c5
AK
1290 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1291Try \`$0 --help' for more information"
795ca3e5
AK
1292 ;;
1293
ad6254c5
AK
1294 *=*)
1295 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
f11781c5
AK
1297 case $ac_envvar in #(
1298 '' | [0-9]* | *[!_$as_cr_alnum]* )
1299 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1300 esac
7a197a62 1301 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1302 export $ac_envvar ;;
1303
795ca3e5 1304 *)
ad6254c5 1305 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1309 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1310 ;;
1311
1312 esac
1313done
1314
1315if test -n "$ac_prev"; then
ad6254c5 1316 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1317 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1318fi
795ca3e5 1319
ec6a6fbe
AK
1320if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1322 no) ;;
f11781c5 1323 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1325 esac
1326fi
1327
1328# Check all directory arguments for consistency.
7a197a62
AK
1329for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
795ca3e5 1333do
7a197a62 1334 eval ac_val=\$$ac_var
ec6a6fbe
AK
1335 # Remove trailing slashes.
1336 case $ac_val in
1337 */ )
1338 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\$ac_val;;
1340 esac
1341 # Be sure to have absolute directory names.
ad6254c5 1342 case $ac_val in
7a197a62
AK
1343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1345 esac
f11781c5 1346 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1347done
1348
ad6254c5
AK
1349# There might be people who depend on the old broken behavior: `$host'
1350# used to hold the argument of --host etc.
1351# FIXME: To remove some day.
1352build=$build_alias
1353host=$host_alias
1354target=$target_alias
1355
1356# FIXME: To remove some day.
1357if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
f11781c5
AK
1360 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365fi
8106cdd5 1366
ad6254c5
AK
1367ac_tool_prefix=
1368test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370test "$silent" = yes && exec 6>/dev/null
795ca3e5 1371
795ca3e5 1372
7a197a62
AK
1373ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374ac_ls_di=`ls -di .` &&
1375ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1376 as_fn_error $? "working directory cannot be determined"
7a197a62 1377test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1378 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1379
1380
795ca3e5
AK
1381# Find the source files, if location was not specified.
1382if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
7a197a62 1384 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1385 ac_confdir=`$as_dirname -- "$as_myself" ||
1386$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390$as_echo X"$as_myself" |
7a197a62
AK
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
795ca3e5 1408 srcdir=$ac_confdir
7a197a62 1409 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1410 srcdir=..
1411 fi
1412else
1413 ac_srcdir_defaulted=no
1414fi
7a197a62
AK
1415if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1417 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1418fi
7a197a62
AK
1419ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420ac_abs_confdir=`(
f11781c5 1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1422 pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
ad6254c5
AK
1439
1440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
1447\`configure' configures this package to adapt to many kinds of systems.
1448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
f11781c5 1461 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
ad6254c5
AK
1467Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1469 [$ac_default_prefix]
ad6254c5 1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1471 [PREFIX]
ad6254c5
AK
1472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
ec6a6fbe
AK
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1500_ACEOF
1501
1502 cat <<\_ACEOF
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512
1513 cat <<\_ACEOF
1514
1515Optional Features:
ec6a6fbe 1516 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1517 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1518 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1519 --enable-static_link use this to link the tools to their libraries
1520 statically (default is dynamic linking
1521 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1522 device-mapper is missing from the kernel
71082be4
ZK
1523 --disable-readline disable readline support
1524 --enable-realtime enable realtime clock support
37ddf259
AK
1525 --enable-ocf enable Open Cluster Framework (OCF) compliant
1526 resource agents
71082be4
ZK
1527 --enable-cmirrord enable the cluster mirror log daemon
1528 --enable-debug enable debugging
1529 --enable-profiling gather gcov profiling data
54b362f9 1530 --enable-testing enable testing targets in the makefile
d1e8046f 1531 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1532 --disable-devmapper disable LVM2 device-mapper interaction
d38de32b 1533 --enable-lvmetad enable the LVM Metadata Daemon
71082be4
ZK
1534 --enable-udev_sync enable synchronisation with udev processing
1535 --enable-udev_rules install rule files needed for udev synchronisation
5723db01
PR
1536 --enable-udev-rule-exec-detection
1537 enable executable path detection in udev rules
71082be4
ZK
1538 --enable-compat enable support for old device-mapper versions
1539 --enable-units-compat enable output compatibility with old versions that
1540 that do not use KiB-style unit suffixes
1541 --disable-driver disable calls to device-mapper in the kernel
1542 --disable-o_direct disable O_DIRECT
1543 --enable-applib build application library
1544 --enable-cmdlib build shared command library
1545 --enable-pkgconfig install pkgconfig support
1546 --enable-write_install install user writable files
1547 --disable-fsadm disable fsadm
1548 --enable-dmeventd enable the device-mapper event daemon
1549 --disable-selinux disable selinux support
1550 --enable-nls enable Native Language Support
ad6254c5
AK
1551
1552Optional Packages:
1553 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1554 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1555 --with-user=USER set the owner of installed files [[USER=]]
1556 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1557 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1558 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1559 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1560 --with-device-nodes-on=ON
1561 create nodes on resume or create [[ON=resume]]
c64d7cd3
PR
1562 --with-default-name-mangling=MANGLING
1563 default name mangling: auto/none/hex
1564 [[MANGLING=auto]]
ad6254c5 1565 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1566 [[TYPE=internal]]
ad6254c5 1567 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1568 [[TYPE=internal]]
71082be4 1569 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1570 [[TYPE=internal]]
71082be4 1571 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1572 [[TYPE=internal]]
71082be4 1573 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1574 [[TYPE=internal]]
cac52ca4
JEB
1575 --with-raid=TYPE mirror support: internal/shared/none
1576 [[TYPE=internal]]
71082be4 1577 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1578 [[TYPE=none]]
3ba4a195
ZK
1579 --with-thin=TYPE thin provisioning support: internal/shared/none
1580 [[TYPE=none]]
f61cacad 1581 --with-thin-check=PATH thin_check tool: [[autodetect]]
606d0858
AK
1582 --with-ocfdir=DIR install OCF files in DIR
1583 [[PREFIX/lib/ocf/resource.d/lvm2]]
5723db01
PR
1584 --with-default-pid-dir=PID_DIR
1585 Default directory to keep PID files in. [[/var/run]]
1586 --with-default-dm-run-dir=DM_RUN_DIR
1587 Default DM run directory. [[/var/run]]
1588 --with-default-run-dir=RUN_DIR
1589 Default LVM run directory. [[/var/run/lvm]]
71082be4 1590 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1591 The following cluster manager combinations are valid:
a946372e
AK
1592 * cman (RHEL5 or equivalent)
1593 * cman,corosync,openais (or selection of them)
1091650a 1594 * singlenode (localhost only)
a946372e
AK
1595 * all (autodetect)
1596 * none (disable build)
71082be4 1597 [TYPE=none]
8c4e8a18 1598 --with-clvmd-pidfile=PATH
5723db01 1599 clvmd pidfile [[PID_DIR/clvmd.pid]]
71082be4 1600 --with-cmirrord-pidfile=PATH
5723db01 1601 cmirrord pidfile [[PID_DIR/cmirrord.pid]]
f11781c5 1602 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
5723db01
PR
1603 --with-lvmetad-pidfile=PATH
1604 lvmetad pidfile [[PID_DIR/lvmetad.pid]]
f11781c5
AK
1605 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1606 --with-confdir=DIR configuration files in DIR [[/etc]]
1607 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1608 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1609 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1610 --with-udev-prefix=UPREFIX
f11781c5
AK
1611 install udev rule files in UPREFIX [[EPREFIX]]
1612 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
e587cb6a
PR
1613 --with-systemdsystemunitdir=DIR
1614 systemd service files in DIR
4417a8bd
PR
1615 --with-tmpfilesdir=DIR install configuration files for management of
1616 volatile files and directories in DIR
3f5cdf20 1617 [[PREFIX/lib/tmpfiles.d]]
71082be4 1618 --with-dmeventd-pidfile=PATH
5723db01 1619 dmeventd pidfile [[PID_DIR/dmeventd.pid]]
71082be4 1620 --with-dmeventd-path=PATH
f11781c5 1621 dmeventd path [[EPREFIX/sbin/dmeventd]]
71082be4 1622 --with-default-system-dir=DIR
f11781c5 1623 default LVM system directory [[/etc/lvm]]
71082be4 1624 --with-default-archive-subdir=SUBDIR
f11781c5 1625 default metadata archive subdir [[archive]]
71082be4 1626 --with-default-backup-subdir=SUBDIR
f11781c5 1627 default metadata backup subdir [[backup]]
71082be4 1628 --with-default-cache-subdir=SUBDIR
f11781c5 1629 default metadata cache subdir [[cache]]
71082be4 1630 --with-default-locking-dir=DIR
f11781c5 1631 default locking directory [[/var/lock/lvm]]
fea55602 1632 --with-default-data-alignment=NUM
f11781c5
AK
1633 set the default data alignment in MiB [[1]]
1634 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1635
1636Some influential environment variables:
1637 CC C compiler command
1638 CFLAGS C compiler flags
1639 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1640 nonstandard directory <lib dir>
25fbec5b 1641 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1642 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1643 you have headers in a nonstandard directory <include dir>
ad6254c5 1644 CPP C preprocessor
e2997b73 1645 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1646 PKG_CONFIG_PATH
1647 directories to add to pkg-config's search path
1648 PKG_CONFIG_LIBDIR
1649 path overriding pkg-config's built-in search path
a946372e
AK
1650 PKGCONFIGINIT_CFLAGS
1651 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1652 PKGCONFIGINIT_LIBS
1653 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1654 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1655 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1656 COROSYNC_CFLAGS
1657 C compiler flags for COROSYNC, overriding pkg-config
1658 COROSYNC_LIBS
1659 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1660 QUORUM_CFLAGS
1661 C compiler flags for QUORUM, overriding pkg-config
1662 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1663 SALCK_CFLAGS
1664 C compiler flags for SALCK, overriding pkg-config
1665 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1666 CONFDB_CFLAGS
1667 C compiler flags for CONFDB, overriding pkg-config
1668 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
b6d7a484
AK
1669 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1670 CMAP_LIBS linker flags for CMAP, overriding pkg-config
e2997b73
AK
1671 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1672 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1673 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1674 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1675 SACKPT_CFLAGS
1676 C compiler flags for SACKPT, overriding pkg-config
1677 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
426fc742
PR
1678 CUNIT_CFLAGS
1679 C compiler flags for CUNIT, overriding pkg-config
1680 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
d93275eb
PR
1681 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1682 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1683
1684Use these variables to override the choices made by `configure' or to help
1685it to find libraries and programs with nonstandard names/locations.
1686
f11781c5 1687Report bugs to the package provider.
ad6254c5 1688_ACEOF
7a197a62 1689ac_status=$?
ad6254c5
AK
1690fi
1691
1692if test "$ac_init_help" = "recursive"; then
1693 # If there are subdirs, report their specific --help.
ad6254c5 1694 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1695 test -d "$ac_dir" ||
1696 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1697 continue
ad6254c5
AK
1698 ac_builddir=.
1699
7a197a62
AK
1700case "$ac_dir" in
1701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1702*)
ec6a6fbe 1703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1704 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1706 case $ac_top_builddir_sub in
1707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1709 esac ;;
1710esac
1711ac_abs_top_builddir=$ac_pwd
1712ac_abs_builddir=$ac_pwd$ac_dir_suffix
1713# for backward compatibility:
1714ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1715
1716case $srcdir in
7a197a62 1717 .) # We are building in place.
ad6254c5 1718 ac_srcdir=.
7a197a62
AK
1719 ac_top_srcdir=$ac_top_builddir_sub
1720 ac_abs_top_srcdir=$ac_pwd ;;
1721 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1722 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1723 ac_top_srcdir=$srcdir
1724 ac_abs_top_srcdir=$srcdir ;;
1725 *) # Relative name.
1726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1727 ac_top_srcdir=$ac_top_build_prefix$srcdir
1728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1729esac
7a197a62
AK
1730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1731
1732 cd "$ac_dir" || { ac_status=$?; continue; }
1733 # Check for guested configure.
1734 if test -f "$ac_srcdir/configure.gnu"; then
1735 echo &&
1736 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1737 elif test -f "$ac_srcdir/configure"; then
1738 echo &&
1739 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1740 else
ec6a6fbe 1741 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1742 fi || ac_status=$?
1743 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1744 done
1745fi
1746
7a197a62 1747test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1748if $ac_init_version; then
1749 cat <<\_ACEOF
7a197a62 1750configure
f11781c5 1751generated by GNU Autoconf 2.66
ad6254c5 1752
f11781c5 1753Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1754This configure script is free software; the Free Software Foundation
1755gives unlimited permission to copy, distribute and modify it.
1756_ACEOF
7a197a62 1757 exit
ad6254c5 1758fi
ad6254c5 1759
f11781c5
AK
1760## ------------------------ ##
1761## Autoconf initialization. ##
1762## ------------------------ ##
ad6254c5 1763
f11781c5
AK
1764# ac_fn_c_try_compile LINENO
1765# --------------------------
1766# Try to compile conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_c_try_compile ()
ad6254c5 1768{
f11781c5
AK
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 rm -f conftest.$ac_objext
1771 if { { ac_try="$ac_compile"
1772case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_compile") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786 test $ac_status = 0; } && {
1787 test -z "$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 } && test -s conftest.$ac_objext; then :
1790 ac_retval=0
1791else
1792 $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1794
f11781c5
AK
1795 ac_retval=1
1796fi
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 as_fn_set_status $ac_retval
ad6254c5 1799
f11781c5 1800} # ac_fn_c_try_compile
ad6254c5 1801
f11781c5
AK
1802# ac_fn_c_try_cpp LINENO
1803# ----------------------
1804# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805ac_fn_c_try_cpp ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if { { ac_try="$ac_cpp conftest.$ac_ext"
1809case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } >/dev/null && {
1824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 }; then :
1827 ac_retval=0
1828else
1829 $as_echo "$as_me: failed program was:" >&5
1830sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1831
f11781c5
AK
1832 ac_retval=1
1833fi
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 as_fn_set_status $ac_retval
ad6254c5 1836
f11781c5 1837} # ac_fn_c_try_cpp
d911ec67 1838
f11781c5
AK
1839# ac_fn_c_try_link LINENO
1840# -----------------------
1841# Try to link conftest.$ac_ext, and return whether this succeeded.
1842ac_fn_c_try_link ()
d911ec67 1843{
f11781c5
AK
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest$ac_exeext
1846 if { { ac_try="$ac_link"
d911ec67
AK
1847case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850esac
f11781c5
AK
1851eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852$as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>conftest.err
d911ec67 1854 ac_status=$?
f11781c5
AK
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest$ac_exeext && {
1865 test "$cross_compiling" = yes ||
1866 $as_test_x conftest$ac_exeext
1867 }; then :
1868 ac_retval=0
d911ec67 1869else
f11781c5 1870 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1871sed 's/^/| /' conftest.$ac_ext >&5
1872
f11781c5 1873 ac_retval=1
d911ec67 1874fi
f11781c5
AK
1875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 # interfere with the next link command; also delete a directory that is
1878 # left behind by Apple's compiler. We do this before executing the actions.
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 as_fn_set_status $ac_retval
d911ec67 1882
f11781c5 1883} # ac_fn_c_try_link
d911ec67 1884
f11781c5
AK
1885# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1886# -------------------------------------------------------
1887# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1888# the include files in INCLUDES and setting the cache variable VAR
1889# accordingly.
1890ac_fn_c_check_header_mongrel ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if eval "test \"\${$3+set}\"" = set; then :
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1897 $as_echo_n "(cached) " >&6
1898fi
f11781c5
AK
1899eval ac_res=\$$3
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1901$as_echo "$ac_res" >&6; }
1902else
1903 # Is the header compilable?
f11781c5
AK
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1905$as_echo_n "checking $2 usability... " >&6; }
1906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1907/* end confdefs.h. */
f11781c5
AK
1908$4
1909#include <$2>
d911ec67 1910_ACEOF
f11781c5 1911if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1912 ac_header_compiler=yes
1913else
f11781c5 1914 ac_header_compiler=no
d911ec67 1915fi
d911ec67 1916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1918$as_echo "$ac_header_compiler" >&6; }
1919
1920# Is the header present?
f11781c5
AK
1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1922$as_echo_n "checking $2 presence... " >&6; }
1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1924/* end confdefs.h. */
f11781c5 1925#include <$2>
d911ec67 1926_ACEOF
f11781c5 1927if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1928 ac_header_preproc=yes
1929else
d911ec67
AK
1930 ac_header_preproc=no
1931fi
d911ec67 1932rm -f conftest.err conftest.$ac_ext
f11781c5 1933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1934$as_echo "$ac_header_preproc" >&6; }
1935
1936# So? What about this header?
f11781c5 1937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1938 yes:no: )
f11781c5
AK
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1940$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1943 ;;
1944 no:yes:* )
f11781c5
AK
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1946$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1948$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1950$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1952$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1955 ;;
1956esac
f11781c5
AK
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1958$as_echo_n "checking for $2... " >&6; }
1959if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1960 $as_echo_n "(cached) " >&6
1961else
f11781c5 1962 eval "$3=\$ac_header_compiler"
d911ec67 1963fi
f11781c5
AK
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1966$as_echo "$ac_res" >&6; }
ad6254c5 1967fi
f11781c5 1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1969
f11781c5 1970} # ac_fn_c_check_header_mongrel
ad6254c5 1971
f11781c5
AK
1972# ac_fn_c_try_run LINENO
1973# ----------------------
1974# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975# that executables *can* be run.
1976ac_fn_c_try_run ()
ad6254c5 1977{
f11781c5
AK
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
7a197a62
AK
1980case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983esac
f11781c5
AK
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985$as_echo "$ac_try_echo"; } >&5
7a197a62 1986 (eval "$ac_link") 2>&5
ad6254c5 1987 ac_status=$?
f11781c5
AK
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
7a197a62
AK
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993esac
f11781c5
AK
1994eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995$as_echo "$ac_try_echo"; } >&5
7a197a62 1996 (eval "$ac_try") 2>&5
ad6254c5 1997 ac_status=$?
f11781c5
AK
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2000 ac_retval=0
ad6254c5 2001else
ec6a6fbe 2002 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 2003 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
f11781c5 2006 ac_retval=$ac_status
ad6254c5 2007fi
f11781c5
AK
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 as_fn_set_status $ac_retval
ad6254c5 2011
f11781c5 2012} # ac_fn_c_try_run
ad6254c5 2013
f11781c5
AK
2014# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015# -------------------------------------------------------
2016# Tests whether HEADER exists and can be compiled using the include files in
2017# INCLUDES, setting the cache variable VAR accordingly.
2018ac_fn_c_check_header_compile ()
2019{
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022$as_echo_n "checking for $2... " >&6; }
2023if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2024 $as_echo_n "(cached) " >&6
ad6254c5 2025else
f11781c5 2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2027/* end confdefs.h. */
f11781c5
AK
2028$4
2029#include <$2>
ad6254c5 2030_ACEOF
f11781c5
AK
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
ad6254c5 2033else
f11781c5 2034 eval "$3=no"
ad6254c5 2035fi
7a197a62 2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2037fi
f11781c5
AK
2038eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2040$as_echo "$ac_res" >&6; }
f11781c5 2041 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2042
f11781c5 2043} # ac_fn_c_check_header_compile
ad6254c5 2044
f11781c5
AK
2045# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2046# ----------------------------------------------------
2047# Tries to find if the field MEMBER exists in type AGGR, after including
2048# INCLUDES, setting cache variable VAR accordingly.
2049ac_fn_c_check_member ()
2050{
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2053$as_echo_n "checking for $2.$3... " >&6; }
2054if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2055 $as_echo_n "(cached) " >&6
795ca3e5 2056else
f11781c5
AK
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$5
2060int
2061main ()
2062{
2063static $2 ac_aggr;
2064if (ac_aggr.$3)
2065return 0;
2066 ;
2067 return 0;
2068}
ad6254c5 2069_ACEOF
f11781c5
AK
2070if ac_fn_c_try_compile "$LINENO"; then :
2071 eval "$4=yes"
2072else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2074/* end confdefs.h. */
f11781c5
AK
2075$5
2076int
2077main ()
2078{
2079static $2 ac_aggr;
2080if (sizeof ac_aggr.$3)
2081return 0;
2082 ;
2083 return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087 eval "$4=yes"
2088else
2089 eval "$4=no"
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092fi
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095eval ac_res=\$$4
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097$as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2099
2100} # ac_fn_c_check_member
795ca3e5 2101
f11781c5
AK
2102# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2103# -------------------------------------------
2104# Tests whether TYPE exists after having included INCLUDES, setting cache
2105# variable VAR accordingly.
2106ac_fn_c_check_type ()
2107{
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2110$as_echo_n "checking for $2... " >&6; }
2111if eval "test \"\${$3+set}\"" = set; then :
2112 $as_echo_n "(cached) " >&6
2113else
2114 eval "$3=no"
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h. */
2117$4
ad6254c5
AK
2118int
2119main ()
2120{
f11781c5
AK
2121if (sizeof ($2))
2122 return 0;
ad6254c5
AK
2123 ;
2124 return 0;
2125}
2126_ACEOF
f11781c5
AK
2127if ac_fn_c_try_compile "$LINENO"; then :
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130$4
2131int
2132main ()
2133{
2134if (sizeof (($2)))
2135 return 0;
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2141
f11781c5
AK
2142else
2143 eval "$3=yes"
795ca3e5 2144fi
f11781c5
AK
2145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146fi
2147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2148fi
f11781c5
AK
2149eval ac_res=\$$3
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2151$as_echo "$ac_res" >&6; }
f11781c5 2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2153
f11781c5 2154} # ac_fn_c_check_type
ad6254c5 2155
f11781c5
AK
2156# ac_fn_c_find_intX_t LINENO BITS VAR
2157# -----------------------------------
2158# Finds a signed integer type with width BITS, setting cache variable VAR
2159# accordingly.
2160ac_fn_c_find_intX_t ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2164$as_echo_n "checking for int$2_t... " >&6; }
2165if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2166 $as_echo_n "(cached) " >&6
ad6254c5 2167else
f11781c5
AK
2168 eval "$3=no"
2169 # Order is important - never check a type that is potentially smaller
2170 # than half of the expected target width.
2171 for ac_type in int$2_t 'int' 'long int' \
2172 'long long int' 'short int' 'signed char'; do
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2174/* end confdefs.h. */
2175$ac_includes_default
f11781c5 2176 enum { N = $2 / 2 - 1 };
7a197a62
AK
2177int
2178main ()
2179{
f11781c5
AK
2180static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2181test_array [0] = 0
7a197a62 2182
f11781c5
AK
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189/* end confdefs.h. */
2190$ac_includes_default
2191 enum { N = $2 / 2 - 1 };
2192int
2193main ()
2194{
2195static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2196 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2197test_array [0] = 0
7a197a62
AK
2198
2199 ;
2200 return 0;
2201}
ad6254c5 2202_ACEOF
f11781c5 2203if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2204
f11781c5
AK
2205else
2206 case $ac_type in #(
2207 int$2_t) :
2208 eval "$3=yes" ;; #(
2209 *) :
2210 eval "$3=\$ac_type" ;;
2211esac
ad6254c5 2212fi
f11781c5 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2214fi
f11781c5
AK
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2217
2218else
f11781c5 2219 break
ad6254c5 2220fi
f11781c5 2221 done
ad6254c5 2222fi
f11781c5
AK
2223eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225$as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227
2228} # ac_fn_c_find_intX_t
2229
2230# ac_fn_c_find_uintX_t LINENO BITS VAR
2231# ------------------------------------
2232# Finds an unsigned integer type with width BITS, setting cache variable VAR
2233# accordingly.
2234ac_fn_c_find_uintX_t ()
2235{
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2238$as_echo_n "checking for uint$2_t... " >&6; }
2239if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2240 $as_echo_n "(cached) " >&6
ad6254c5 2241else
f11781c5
AK
2242 eval "$3=no"
2243 # Order is important - never check a type that is potentially smaller
2244 # than half of the expected target width.
2245 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2246 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2248/* end confdefs.h. */
7a197a62 2249$ac_includes_default
ad6254c5
AK
2250int
2251main ()
2252{
f11781c5
AK
2253static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2254test_array [0] = 0
ad6254c5 2255
f11781c5
AK
2256 ;
2257 return 0;
ad6254c5
AK
2258}
2259_ACEOF
f11781c5
AK
2260if ac_fn_c_try_compile "$LINENO"; then :
2261 case $ac_type in #(
2262 uint$2_t) :
2263 eval "$3=yes" ;; #(
2264 *) :
2265 eval "$3=\$ac_type" ;;
7a197a62 2266esac
ad6254c5 2267fi
f11781c5
AK
2268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2270
f11781c5
AK
2271else
2272 break
ad6254c5 2273fi
f11781c5 2274 done
ad6254c5 2275fi
f11781c5
AK
2276eval ac_res=\$$3
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278$as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2280
f11781c5 2281} # ac_fn_c_find_uintX_t
ad6254c5 2282
f11781c5
AK
2283# ac_fn_c_check_func LINENO FUNC VAR
2284# ----------------------------------
2285# Tests whether FUNC exists, setting the cache variable VAR accordingly
2286ac_fn_c_check_func ()
2287{
2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2290$as_echo_n "checking for $2... " >&6; }
2291if eval "test \"\${$3+set}\"" = set; then :
2292 $as_echo_n "(cached) " >&6
ad6254c5 2293else
f11781c5
AK
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295/* end confdefs.h. */
2296/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2298#define $2 innocuous_$2
ad6254c5 2299
f11781c5
AK
2300/* System header to define __stub macros and hopefully few prototypes,
2301 which can conflict with char $2 (); below.
2302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2303 <limits.h> exists even on freestanding compilers. */
ad6254c5 2304
f11781c5
AK
2305#ifdef __STDC__
2306# include <limits.h>
2307#else
2308# include <assert.h>
2309#endif
ad6254c5 2310
f11781c5
AK
2311#undef $2
2312
2313/* Override any GCC internal prototype to avoid an error.
2314 Use char because int might match the return type of a GCC
2315 builtin and then its argument prototype would still apply. */
2316#ifdef __cplusplus
2317extern "C"
2318#endif
2319char $2 ();
2320/* The GNU C library defines this for functions which it implements
2321 to always fail with ENOSYS. Some functions are actually named
2322 something starting with __ and the normal name is an alias. */
2323#if defined __stub_$2 || defined __stub___$2
2324choke me
2325#endif
ad6254c5 2326
ad6254c5
AK
2327int
2328main ()
2329{
f11781c5 2330return $2 ();
ad6254c5
AK
2331 ;
2332 return 0;
2333}
2334_ACEOF
f11781c5
AK
2335if ac_fn_c_try_link "$LINENO"; then :
2336 eval "$3=yes"
ad6254c5 2337else
f11781c5 2338 eval "$3=no"
ad6254c5 2339fi
f11781c5
AK
2340rm -f core conftest.err conftest.$ac_objext \
2341 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2342fi
f11781c5
AK
2343eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345$as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2347
f11781c5
AK
2348} # ac_fn_c_check_func
2349cat >config.log <<_ACEOF
2350This file contains any messages produced by compilers while
2351running configure, to aid debugging if configure makes a mistake.
7a197a62 2352
f11781c5
AK
2353It was created by $as_me, which was
2354generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2355
f11781c5 2356 $ $0 $@
ad6254c5 2357
ad6254c5 2358_ACEOF
f11781c5
AK
2359exec 5>>config.log
2360{
2361cat <<_ASUNAME
2362## --------- ##
2363## Platform. ##
2364## --------- ##
ad6254c5 2365
f11781c5
AK
2366hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2367uname -m = `(uname -m) 2>/dev/null || echo unknown`
2368uname -r = `(uname -r) 2>/dev/null || echo unknown`
2369uname -s = `(uname -s) 2>/dev/null || echo unknown`
2370uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2371
f11781c5
AK
2372/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2373/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2374
f11781c5
AK
2375/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2376/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2377/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2378/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2379/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2380/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2381/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2382
2383_ASUNAME
2384
2385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386for as_dir in $PATH
2387do
2388 IFS=$as_save_IFS
2389 test -z "$as_dir" && as_dir=.
2390 $as_echo "PATH: $as_dir"
2391 done
2392IFS=$as_save_IFS
2393
2394} >&5
2395
2396cat >&5 <<_ACEOF
2397
2398
2399## ----------- ##
2400## Core tests. ##
2401## ----------- ##
ad6254c5 2402
ad6254c5 2403_ACEOF
ad6254c5 2404
7a197a62 2405
f11781c5
AK
2406# Keep a trace of the command line.
2407# Strip out --no-create and --no-recursion so they do not pile up.
2408# Strip out --silent because we don't want to record it for future runs.
2409# Also quote any args containing shell meta-characters.
2410# Make two passes to allow for proper duplicate-argument suppression.
2411ac_configure_args=
2412ac_configure_args0=
2413ac_configure_args1=
2414ac_must_keep_next=false
2415for ac_pass in 1 2
2416do
2417 for ac_arg
2418 do
2419 case $ac_arg in
2420 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2422 | -silent | --silent | --silen | --sile | --sil)
2423 continue ;;
2424 *\'*)
2425 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2426 esac
2427 case $ac_pass in
2428 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2429 2)
2430 as_fn_append ac_configure_args1 " '$ac_arg'"
2431 if test $ac_must_keep_next = true; then
2432 ac_must_keep_next=false # Got value, back to normal.
2433 else
2434 case $ac_arg in
2435 *=* | --config-cache | -C | -disable-* | --disable-* \
2436 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2437 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2438 | -with-* | --with-* | -without-* | --without-* | --x)
2439 case "$ac_configure_args0 " in
2440 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2441 esac
2442 ;;
2443 -* ) ac_must_keep_next=true ;;
2444 esac
2445 fi
2446 as_fn_append ac_configure_args " '$ac_arg'"
2447 ;;
2448 esac
2449 done
2450done
2451{ ac_configure_args0=; unset ac_configure_args0;}
2452{ ac_configure_args1=; unset ac_configure_args1;}
2453
2454# When interrupted or exit'd, cleanup temporary files, and complete
2455# config.log. We remove comments because anyway the quotes in there
2456# would cause problems or look ugly.
2457# WARNING: Use '\'' to represent an apostrophe within the trap.
2458# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2459trap 'exit_status=$?
2460 # Save into config.log some information that might help in debugging.
2461 {
2462 echo
2463
2464 $as_echo "## ---------------- ##
2465## Cache variables. ##
2466## ---------------- ##"
2467 echo
2468 # The following way of writing the cache mishandles newlines in values,
2469(
2470 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2471 eval ac_val=\$$ac_var
2472 case $ac_val in #(
2473 *${as_nl}*)
2474 case $ac_var in #(
2475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2476$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2477 esac
2478 case $ac_var in #(
2479 _ | IFS | as_nl) ;; #(
2480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2481 *) { eval $ac_var=; unset $ac_var;} ;;
2482 esac ;;
2483 esac
2484 done
2485 (set) 2>&1 |
2486 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2487 *${as_nl}ac_space=\ *)
2488 sed -n \
2489 "s/'\''/'\''\\\\'\'''\''/g;
2490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2491 ;; #(
2492 *)
2493 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2494 ;;
2495 esac |
2496 sort
2497)
2498 echo
2499
2500 $as_echo "## ----------------- ##
2501## Output variables. ##
2502## ----------------- ##"
2503 echo
2504 for ac_var in $ac_subst_vars
2505 do
2506 eval ac_val=\$$ac_var
2507 case $ac_val in
2508 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2509 esac
2510 $as_echo "$ac_var='\''$ac_val'\''"
2511 done | sort
2512 echo
2513
2514 if test -n "$ac_subst_files"; then
2515 $as_echo "## ------------------- ##
2516## File substitutions. ##
2517## ------------------- ##"
2518 echo
2519 for ac_var in $ac_subst_files
2520 do
2521 eval ac_val=\$$ac_var
2522 case $ac_val in
2523 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2524 esac
2525 $as_echo "$ac_var='\''$ac_val'\''"
2526 done | sort
2527 echo
2528 fi
2529
2530 if test -s confdefs.h; then
2531 $as_echo "## ----------- ##
2532## confdefs.h. ##
2533## ----------- ##"
2534 echo
2535 cat confdefs.h
2536 echo
2537 fi
2538 test "$ac_signal" != 0 &&
2539 $as_echo "$as_me: caught signal $ac_signal"
2540 $as_echo "$as_me: exit $exit_status"
2541 } >&5
2542 rm -f core *.core core.conftest.* &&
2543 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2544 exit $exit_status
2545' 0
2546for ac_signal in 1 2 13 15; do
2547 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2548done
2549ac_signal=0
2550
2551# confdefs.h avoids OS command line length limits that DEFS can exceed.
2552rm -f -r conftest* confdefs.h
7a197a62 2553
f11781c5 2554$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2555
f11781c5 2556# Predefined preprocessor variables.
ad6254c5
AK
2557
2558cat >>confdefs.h <<_ACEOF
f11781c5 2559#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2560_ACEOF
2561
f11781c5
AK
2562cat >>confdefs.h <<_ACEOF
2563#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2564_ACEOF
ad6254c5 2565
f11781c5
AK
2566cat >>confdefs.h <<_ACEOF
2567#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2568_ACEOF
f11781c5
AK
2569
2570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2572_ACEOF
ad6254c5 2573
f11781c5
AK
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2576_ACEOF
7a197a62 2577
f11781c5
AK
2578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_URL "$PACKAGE_URL"
2580_ACEOF
ad6254c5 2581
7a197a62 2582
f11781c5
AK
2583# Let the site file select an alternate cache file if it wants to.
2584# Prefer an explicitly selected file to automatically selected ones.
2585ac_site_file1=NONE
2586ac_site_file2=NONE
2587if test -n "$CONFIG_SITE"; then
2588 # We do not want a PATH search for config.site.
2589 case $CONFIG_SITE in #((
2590 -*) ac_site_file1=./$CONFIG_SITE;;
2591 */*) ac_site_file1=$CONFIG_SITE;;
2592 *) ac_site_file1=./$CONFIG_SITE;;
2593 esac
2594elif test "x$prefix" != xNONE; then
2595 ac_site_file1=$prefix/share/config.site
2596 ac_site_file2=$prefix/etc/config.site
ad6254c5 2597else
f11781c5
AK
2598 ac_site_file1=$ac_default_prefix/share/config.site
2599 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2600fi
f11781c5
AK
2601for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2602do
2603 test "x$ac_site_file" = xNONE && continue
2604 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2606$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2607 sed 's/^/| /' "$ac_site_file" >&5
2608 . "$ac_site_file" \
2609 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611as_fn_error $? "failed to load site script $ac_site_file
2612See \`config.log' for more details" "$LINENO" 5; }
2613 fi
2614done
ad6254c5 2615
f11781c5
AK
2616if test -r "$cache_file"; then
2617 # Some versions of bash will fail to source /dev/null (special files
2618 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2619 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2621$as_echo "$as_me: loading cache $cache_file" >&6;}
2622 case $cache_file in
2623 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2624 *) . "./$cache_file";;
2625 esac
2626 fi
2627else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2629$as_echo "$as_me: creating cache $cache_file" >&6;}
2630 >$cache_file
ad6254c5 2631fi
ad6254c5 2632
f11781c5
AK
2633as_fn_append ac_header_list " stdlib.h"
2634as_fn_append ac_header_list " unistd.h"
2635as_fn_append ac_header_list " sys/param.h"
2636# Check that the precious variables saved in the cache have kept the same
2637# value.
2638ac_cache_corrupted=false
2639for ac_var in $ac_precious_vars; do
2640 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2641 eval ac_new_set=\$ac_env_${ac_var}_set
2642 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2643 eval ac_new_val=\$ac_env_${ac_var}_value
2644 case $ac_old_set,$ac_new_set in
2645 set,)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2647$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2648 ac_cache_corrupted=: ;;
2649 ,set)
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2651$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2652 ac_cache_corrupted=: ;;
2653 ,);;
2654 *)
2655 if test "x$ac_old_val" != "x$ac_new_val"; then
2656 # differences in whitespace do not lead to failure.
2657 ac_old_val_w=`echo x $ac_old_val`
2658 ac_new_val_w=`echo x $ac_new_val`
2659 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2661$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2662 ac_cache_corrupted=:
2663 else
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2665$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2666 eval $ac_var=\$ac_old_val
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2669$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2671$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2672 fi;;
2673 esac
2674 # Pass precious variables to config.status.
2675 if test "$ac_new_set" = set; then
2676 case $ac_new_val in
2677 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2678 *) ac_arg=$ac_var=$ac_new_val ;;
2679 esac
2680 case " $ac_configure_args " in
2681 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2682 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2683 esac
2684 fi
2685done
2686if $ac_cache_corrupted; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2690$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2691 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2692fi
f11781c5
AK
2693## -------------------- ##
2694## Main body of script. ##
2695## -------------------- ##
ad6254c5 2696
f11781c5
AK
2697ac_ext=c
2698ac_cpp='$CPP $CPPFLAGS'
2699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2702
ad6254c5 2703
ad6254c5 2704
f11781c5 2705ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2706
2707
f11781c5
AK
2708################################################################################
2709ac_aux_dir=
2710for ac_dir in autoconf "$srcdir"/autoconf; do
2711 if test -f "$ac_dir/install-sh"; then
2712 ac_aux_dir=$ac_dir
2713 ac_install_sh="$ac_aux_dir/install-sh -c"
2714 break
2715 elif test -f "$ac_dir/install.sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install.sh -c"
2718 break
2719 elif test -f "$ac_dir/shtool"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/shtool install -c"
2722 break
2723 fi
2724done
2725if test -z "$ac_aux_dir"; then
2726 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2727fi
ad6254c5 2728
f11781c5
AK
2729# These three variables are undocumented and unsupported,
2730# and are intended to be withdrawn in a future Autoconf release.
2731# They can cause serious problems if a builder's source tree is in a directory
2732# whose full name contains unusual characters.
2733ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2734ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2735ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2736
ad6254c5 2737
8a2fc586 2738
f11781c5
AK
2739################################################################################
2740# Make sure we can run config.sub.
2741$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2742 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2743
f11781c5
AK
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2745$as_echo_n "checking build system type... " >&6; }
2746if test "${ac_cv_build+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748else
2749 ac_build_alias=$build_alias
2750test "x$ac_build_alias" = x &&
2751 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2752test "x$ac_build_alias" = x &&
2753 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2754ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2756
2757fi
f11781c5
AK
2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2759$as_echo "$ac_cv_build" >&6; }
2760case $ac_cv_build in
2761*-*-*) ;;
2762*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2763esac
2764build=$ac_cv_build
2765ac_save_IFS=$IFS; IFS='-'
2766set x $ac_cv_build
2767shift
2768build_cpu=$1
2769build_vendor=$2
2770shift; shift
2771# Remember, the first character of IFS is used to create $*,
2772# except with old shells:
2773build_os=$*
2774IFS=$ac_save_IFS
2775case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2776
2777
f11781c5
AK
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2779$as_echo_n "checking host system type... " >&6; }
2780if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2781 $as_echo_n "(cached) " >&6
ad6254c5 2782else
f11781c5
AK
2783 if test "x$host_alias" = x; then
2784 ac_cv_host=$ac_cv_build
ad6254c5 2785else
f11781c5
AK
2786 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2787 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2788fi
ad6254c5 2789
f11781c5
AK
2790fi
2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2792$as_echo "$ac_cv_host" >&6; }
2793case $ac_cv_host in
2794*-*-*) ;;
2795*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2796esac
2797host=$ac_cv_host
2798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_host
2800shift
2801host_cpu=$1
2802host_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806host_os=$*
2807IFS=$ac_save_IFS
2808case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2809
ad6254c5 2810
f11781c5
AK
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2812$as_echo_n "checking target system type... " >&6; }
2813if test "${ac_cv_target+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
ad6254c5 2815else
f11781c5
AK
2816 if test "x$target_alias" = x; then
2817 ac_cv_target=$ac_cv_host
2818else
2819 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2821fi
7a197a62 2822
ad6254c5 2823fi
f11781c5
AK
2824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2825$as_echo "$ac_cv_target" >&6; }
2826case $ac_cv_target in
2827*-*-*) ;;
2828*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2829esac
f11781c5
AK
2830target=$ac_cv_target
2831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_target
2833shift
2834target_cpu=$1
2835target_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839target_os=$*
2840IFS=$ac_save_IFS
2841case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2842
ad6254c5 2843
f11781c5
AK
2844# The aliases save the names the user supplied, while $host etc.
2845# will get canonicalized.
2846test -n "$target_alias" &&
2847 test "$program_prefix$program_suffix$program_transform_name" = \
2848 NONENONEs,x,x, &&
2849 program_prefix=${target_alias}-
ad6254c5 2850
f11781c5
AK
2851case "$host_os" in
2852 linux*)
2853 CFLAGS="$CFLAGS"
2854 COPTIMISE_FLAG="-O2"
2855 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2856 ELDFLAGS="-Wl,--export-dynamic"
2857 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2858 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2859 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2860 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2861 LIB_SUFFIX=so
2862 DEVMAPPER=yes
cdd50823 2863 LVMETAD=no
f11781c5
AK
2864 ODIRECT=yes
2865 DM_IOCTLS=yes
2866 SELINUX=yes
2867 CLUSTER=internal
2868 FSADM=yes
2869 ;;
2870 darwin*)
2871 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2872 COPTIMISE_FLAG="-O2"
2873 CLDFLAGS="$CLDFLAGS"
bf09a320 2874 ELDFLAGS=
f11781c5
AK
2875 CLDWHOLEARCHIVE="-all_load"
2876 CLDNOWHOLEARCHIVE=
2877 LIB_SUFFIX=dylib
2878 DEVMAPPER=yes
2879 ODIRECT=no
2880 DM_IOCTLS=no
2881 SELINUX=no
2882 CLUSTER=none
2883 FSADM=no
2884 ;;
2885esac
ad6254c5 2886
f11781c5
AK
2887################################################################################
2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2889$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2890if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2891 $as_echo_n "(cached) " >&6
ad6254c5 2892else
f11781c5
AK
2893 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2894 for ac_i in 1 2 3 4 5 6 7; do
2895 ac_script="$ac_script$as_nl$ac_script"
2896 done
2897 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2898 { ac_script=; unset ac_script;}
2899 if test -z "$SED"; then
2900 ac_path_SED_found=false
2901 # Loop through the user's path and test for each of PROGNAME-LIST
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH
2904do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_prog in sed gsed; do
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2910 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2911# Check for GNU ac_path_SED and select it if it is found.
2912 # Check for GNU $ac_path_SED
2913case `"$ac_path_SED" --version 2>&1` in
2914*GNU*)
2915 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2916*)
2917 ac_count=0
2918 $as_echo_n 0123456789 >"conftest.in"
2919 while :
2920 do
2921 cat "conftest.in" "conftest.in" >"conftest.tmp"
2922 mv "conftest.tmp" "conftest.in"
2923 cp "conftest.in" "conftest.nl"
2924 $as_echo '' >> "conftest.nl"
2925 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2927 as_fn_arith $ac_count + 1 && ac_count=$as_val
2928 if test $ac_count -gt ${ac_path_SED_max-0}; then
2929 # Best one so far, save it but keep looking for a better one
2930 ac_cv_path_SED="$ac_path_SED"
2931 ac_path_SED_max=$ac_count
2932 fi
2933 # 10*(2^10) chars as input seems more than enough
2934 test $ac_count -gt 10 && break
2935 done
2936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2937esac
ad6254c5 2938
f11781c5
AK
2939 $ac_path_SED_found && break 3
2940 done
2941 done
2942 done
2943IFS=$as_save_IFS
2944 if test -z "$ac_cv_path_SED"; then
2945 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2946 fi
2947else
2948 ac_cv_path_SED=$SED
ad6254c5 2949fi
7a197a62 2950
f11781c5
AK
2951fi
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2953$as_echo "$ac_cv_path_SED" >&6; }
2954 SED="$ac_cv_path_SED"
2955 rm -f conftest.sed
ad6254c5 2956
f11781c5
AK
2957for ac_prog in gawk mawk nawk awk
2958do
2959 # Extract the first word of "$ac_prog", so it can be a program name with args.
2960set dummy $ac_prog; ac_word=$2
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962$as_echo_n "checking for $ac_word... " >&6; }
2963if test "${ac_cv_prog_AWK+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
ad6254c5 2965else
f11781c5
AK
2966 if test -n "$AWK"; then
2967 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2968else
2969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
2974 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_AWK="$ac_prog"
2977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 break 2
2979 fi
2980done
2981 done
2982IFS=$as_save_IFS
ad6254c5 2983
ad6254c5 2984fi
ad6254c5 2985fi
f11781c5
AK
2986AWK=$ac_cv_prog_AWK
2987if test -n "$AWK"; then
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2989$as_echo "$AWK" >&6; }
2990else
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992$as_echo "no" >&6; }
ad6254c5 2993fi
ad6254c5 2994
ad6254c5 2995
f11781c5 2996 test -n "$AWK" && break
ad6254c5
AK
2997done
2998
f11781c5
AK
2999ac_ext=c
3000ac_cpp='$CPP $CPPFLAGS'
3001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006set dummy ${ac_tool_prefix}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_CC+set}" = set; then :
ec6a6fbe 3010 $as_echo_n "(cached) " >&6
ad6254c5 3011else
f11781c5
AK
3012 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 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_CC="${ac_tool_prefix}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
ad6254c5 3029
ad6254c5 3030fi
ad6254c5 3031fi
f11781c5
AK
3032CC=$ac_cv_prog_CC
3033if test -n "$CC"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035$as_echo "$CC" >&6; }
3036else
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038$as_echo "no" >&6; }
ad6254c5 3039fi
ad6254c5 3040
f11781c5
AK
3041
3042fi
3043if test -z "$ac_cv_prog_CC"; then
3044 ac_ct_CC=$CC
3045 # Extract the first word of "gcc", so it can be a program name with args.
3046set dummy gcc; ac_word=$2
3047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048$as_echo_n "checking for $ac_word... " >&6; }
3049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3050 $as_echo_n "(cached) " >&6
ad6254c5 3051else
f11781c5
AK
3052 if test -n "$ac_ct_CC"; then
3053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3054else
f11781c5
AK
3055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_ac_ct_CC="gcc"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3065 fi
3066done
3067 done
3068IFS=$as_save_IFS
d911ec67 3069
d911ec67 3070fi
d911ec67 3071fi
f11781c5
AK
3072ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075$as_echo "$ac_ct_CC" >&6; }
3076else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078$as_echo "no" >&6; }
d911ec67 3079fi
d911ec67 3080
f11781c5
AK
3081 if test "x$ac_ct_CC" = x; then
3082 CC=""
3083 else
3084 case $cross_compiling:$ac_tool_warned in
3085yes:)
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088ac_tool_warned=yes ;;
3089esac
3090 CC=$ac_ct_CC
3091 fi
3092else
3093 CC="$ac_cv_prog_CC"
d911ec67 3094fi
d911ec67 3095
f11781c5
AK
3096if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3099set dummy ${ac_tool_prefix}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 :
d911ec67 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.
d911ec67 3107else
f11781c5
AK
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_CC="${ac_tool_prefix}cc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119done
3120 done
3121IFS=$as_save_IFS
d911ec67 3122
f11781c5
AK
3123fi
3124fi
3125CC=$ac_cv_prog_CC
3126if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128$as_echo "$CC" >&6; }
3129else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
d911ec67
AK
3132fi
3133
d911ec67 3134
f11781c5
AK
3135 fi
3136fi
3137if test -z "$CC"; then
3138 # Extract the first word of "cc", so it can be a program name with args.
3139set dummy cc; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if test "${ac_cv_prog_CC+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
d911ec67 3144else
f11781c5
AK
3145 if test -n "$CC"; then
3146 ac_cv_prog_CC="$CC" # Let the user override the test.
3147else
3148 ac_prog_rejected=no
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3157 ac_prog_rejected=yes
3158 continue
3159 fi
3160 ac_cv_prog_CC="cc"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162 break 2
3163 fi
3164done
3165 done
3166IFS=$as_save_IFS
d911ec67 3167
f11781c5
AK
3168if test $ac_prog_rejected = yes; then
3169 # We found a bogon in the path, so make sure we never use it.
3170 set dummy $ac_cv_prog_CC
3171 shift
3172 if test $# != 0; then
3173 # We chose a different compiler from the bogus one.
3174 # However, it has the same basename, so the bogon will be chosen
3175 # first if we set CC to just the basename; use the full file name.
3176 shift
3177 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3178 fi
3179fi
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
d911ec67
AK
3189fi
3190
d911ec67 3191
f11781c5
AK
3192fi
3193if test -z "$CC"; then
3194 if test -n "$ac_tool_prefix"; then
3195 for ac_prog in cl.exe
3196 do
3197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200$as_echo_n "checking for $ac_word... " >&6; }
3201if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3202 $as_echo_n "(cached) " >&6
3203else
f11781c5
AK
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC="$CC" # Let the user override the test.
3206else
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3217 fi
3218done
3219 done
3220IFS=$as_save_IFS
d911ec67
AK
3221
3222fi
f11781c5
AK
3223fi
3224CC=$ac_cv_prog_CC
3225if test -n "$CC"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227$as_echo "$CC" >&6; }
3228else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230$as_echo "no" >&6; }
d911ec67
AK
3231fi
3232
d911ec67 3233
f11781c5
AK
3234 test -n "$CC" && break
3235 done
3236fi
3237if test -z "$CC"; then
3238 ac_ct_CC=$CC
3239 for ac_prog in cl.exe
3240do
3241 # Extract the first word of "$ac_prog", so it can be a program name with args.
3242set dummy $ac_prog; ac_word=$2
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244$as_echo_n "checking for $ac_word... " >&6; }
3245if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3246 $as_echo_n "(cached) " >&6
3247else
f11781c5
AK
3248 if test -n "$ac_ct_CC"; then
3249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3250else
f11781c5
AK
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254 IFS=$as_save_IFS
3255 test -z "$as_dir" && as_dir=.
3256 for ac_exec_ext in '' $ac_executable_extensions; do
3257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258 ac_cv_prog_ac_ct_CC="$ac_prog"
3259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 break 2
3261 fi
3262done
3263 done
3264IFS=$as_save_IFS
ad6254c5 3265
ad6254c5 3266fi
ad6254c5 3267fi
f11781c5
AK
3268ac_ct_CC=$ac_cv_prog_ac_ct_CC
3269if test -n "$ac_ct_CC"; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3271$as_echo "$ac_ct_CC" >&6; }
3272else
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
ad6254c5 3275fi
ad6254c5 3276
d911ec67 3277
f11781c5
AK
3278 test -n "$ac_ct_CC" && break
3279done
d911ec67 3280
f11781c5
AK
3281 if test "x$ac_ct_CC" = x; then
3282 CC=""
3283 else
3284 case $cross_compiling:$ac_tool_warned in
3285yes:)
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288ac_tool_warned=yes ;;
d911ec67 3289esac
f11781c5
AK
3290 CC=$ac_ct_CC
3291 fi
3292fi
ad6254c5
AK
3293
3294fi
d911ec67
AK
3295
3296
f11781c5
AK
3297test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3299as_fn_error $? "no acceptable C compiler found in \$PATH
3300See \`config.log' for more details" "$LINENO" 5; }
3301
3302# Provide some information about the compiler.
3303$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3304set X $ac_compile
3305ac_compiler=$2
3306for ac_option in --version -v -V -qversion; do
3307 { { ac_try="$ac_compiler $ac_option >&5"
3308case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313$as_echo "$ac_try_echo"; } >&5
3314 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3315 ac_status=$?
3316 if test -s conftest.err; then
3317 sed '10a\
3318... rest of stderr output deleted ...
3319 10q' conftest.err >conftest.er1
3320 cat conftest.er1 >&5
3321 fi
3322 rm -f conftest.er1 conftest.err
3323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324 test $ac_status = 0; }
3325done
ad6254c5 3326
f11781c5 3327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3328/* end confdefs.h. */
f11781c5 3329
ad6254c5
AK
3330int
3331main ()
3332{
f11781c5 3333
ad6254c5
AK
3334 ;
3335 return 0;
3336}
3337_ACEOF
f11781c5
AK
3338ac_clean_files_save=$ac_clean_files
3339ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3340# Try to create an executable without -o first, disregard a.out.
3341# It will help us diagnose broken compilers, and finding out an intuition
3342# of exeext.
3343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3344$as_echo_n "checking whether the C compiler works... " >&6; }
3345ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3346
3347# The possible output files:
3348ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3349
3350ac_rmfiles=
3351for ac_file in $ac_files
3352do
3353 case $ac_file in
3354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3355 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3356 esac
3357done
3358rm -f $ac_rmfiles
3359
3360if { { ac_try="$ac_link_default"
7a197a62
AK
3361case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
f11781c5
AK
3365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3366$as_echo "$ac_try_echo"; } >&5
3367 (eval "$ac_link_default") 2>&5
ad6254c5 3368 ac_status=$?
f11781c5
AK
3369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3370 test $ac_status = 0; }; then :
3371 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3372# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3373# in a Makefile. We should not override ac_cv_exeext if it was cached,
3374# so that the user can short-circuit this test for compilers unknown to
3375# Autoconf.
3376for ac_file in $ac_files ''
3377do
3378 test -f "$ac_file" || continue
3379 case $ac_file in
3380 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3381 ;;
3382 [ab].out )
3383 # We found the default executable, but exeext='' is most
3384 # certainly right.
3385 break;;
3386 *.* )
3387 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3388 then :; else
3389 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390 fi
3391 # We set ac_cv_exeext here because the later test for it is not
3392 # safe: cross compilers may not add the suffix if given an `-o'
3393 # argument, so we may need to know it at that point already.
3394 # Even if this section looks crufty: it has the advantage of
3395 # actually working.
3396 break;;
3397 * )
3398 break;;
3399 esac
3400done
3401test "$ac_cv_exeext" = no && ac_cv_exeext=
3402
ad6254c5 3403else
f11781c5
AK
3404 ac_file=''
3405fi
3406if test -z "$ac_file"; then :
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408$as_echo "no" >&6; }
ec6a6fbe 3409$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
f11781c5
AK
3412{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414as_fn_error 77 "C compiler cannot create executables
3415See \`config.log' for more details" "$LINENO" 5; }
3416else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3418$as_echo "yes" >&6; }
ad6254c5 3419fi
f11781c5
AK
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3421$as_echo_n "checking for C compiler default output file name... " >&6; }
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3423$as_echo "$ac_file" >&6; }
3424ac_exeext=$ac_cv_exeext
7a197a62 3425
f11781c5
AK
3426rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3427ac_clean_files=$ac_clean_files_save
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3429$as_echo_n "checking for suffix of executables... " >&6; }
3430if { { ac_try="$ac_link"
3431case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
8a2fc586 3434esac
f11781c5
AK
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3442# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3443# work properly (i.e., refer to `conftest.exe'), while it won't with
3444# `rm'.
3445for ac_file in conftest.exe conftest conftest.*; do
3446 test -f "$ac_file" || continue
3447 case $ac_file in
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3450 break;;
3451 * ) break;;
3452 esac
3453done
3454else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3458See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3459fi
f11781c5
AK
3460rm -f conftest conftest$ac_cv_exeext
3461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3462$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3463
f11781c5
AK
3464rm -f conftest.$ac_ext
3465EXEEXT=$ac_cv_exeext
3466ac_exeext=$EXEEXT
3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3468/* end confdefs.h. */
f11781c5 3469#include <stdio.h>
ad6254c5 3470int
f11781c5 3471main ()
ad6254c5 3472{
f11781c5
AK
3473FILE *f = fopen ("conftest.out", "w");
3474 return ferror (f) || fclose (f) != 0;
ad6254c5 3475
f11781c5 3476 ;
7a197a62 3477 return 0;
ad6254c5 3478}
ad6254c5 3479_ACEOF
f11781c5
AK
3480ac_clean_files="$ac_clean_files conftest.out"
3481# Check that the compiler produces executables we can run. If not, either
3482# the compiler is broken, or we cross compile.
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3484$as_echo_n "checking whether we are cross compiling... " >&6; }
3485if test "$cross_compiling" != yes; then
3486 { { ac_try="$ac_link"
7a197a62
AK
3487case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490esac
f11781c5
AK
3491eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492$as_echo "$ac_try_echo"; } >&5
7a197a62 3493 (eval "$ac_link") 2>&5
ad6254c5 3494 ac_status=$?
f11781c5
AK
3495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496 test $ac_status = 0; }
3497 if { ac_try='./conftest$ac_cv_exeext'
3498 { { case "(($ac_try" in
7a197a62
AK
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501esac
f11781c5
AK
3502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503$as_echo "$ac_try_echo"; } >&5
7a197a62 3504 (eval "$ac_try") 2>&5
ad6254c5 3505 ac_status=$?
f11781c5
AK
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; }; then
3508 cross_compiling=no
3509 else
3510 if test "$cross_compiling" = maybe; then
3511 cross_compiling=yes
3512 else
3513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515as_fn_error $? "cannot run C compiled programs.
3516If you meant to cross compile, use \`--host'.
3517See \`config.log' for more details" "$LINENO" 5; }
3518 fi
3519 fi
3520fi
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3522$as_echo "$cross_compiling" >&6; }
3523
3524rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3525ac_clean_files=$ac_clean_files_save
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3527$as_echo_n "checking for suffix of object files... " >&6; }
3528if test "${ac_cv_objext+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530else
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h. */
ad6254c5
AK
3533
3534int
3535main ()
3536{
f11781c5 3537
ad6254c5
AK
3538 ;
3539 return 0;
3540}
3541_ACEOF
f11781c5
AK
3542rm -f conftest.o conftest.obj
3543if { { ac_try="$ac_compile"
7a197a62
AK
3544case "(($ac_try" in
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3547esac
f11781c5
AK
3548eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3549$as_echo "$ac_try_echo"; } >&5
3550 (eval "$ac_compile") 2>&5
ad6254c5 3551 ac_status=$?
f11781c5
AK
3552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3553 test $ac_status = 0; }; then :
3554 for ac_file in conftest.o conftest.obj conftest.*; do
3555 test -f "$ac_file" || continue;
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3558 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3559 break;;
3560 esac
3561done
ad6254c5 3562else
ec6a6fbe 3563 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
f11781c5
AK
3566{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568as_fn_error $? "cannot compute suffix of object files: cannot compile
3569See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3570fi
f11781c5 3571rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3572fi
f11781c5
AK
3573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3574$as_echo "$ac_cv_objext" >&6; }
3575OBJEXT=$ac_cv_objext
3576ac_objext=$OBJEXT
3577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3578$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3579if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3580 $as_echo_n "(cached) " >&6
ad6254c5 3581else
f11781c5 3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3583/* end confdefs.h. */
3584
ad6254c5
AK
3585int
3586main ()
3587{
f11781c5
AK
3588#ifndef __GNUC__
3589 choke me
3590#endif
3591
ad6254c5
AK
3592 ;
3593 return 0;
3594}
3595_ACEOF
f11781c5
AK
3596if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_compiler_gnu=yes
ad6254c5 3598else
f11781c5 3599 ac_compiler_gnu=no
ad6254c5 3600fi
f11781c5
AK
3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3603
d0191583 3604fi
f11781c5
AK
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3606$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607if test $ac_compiler_gnu = yes; then
3608 GCC=yes
d0191583 3609else
f11781c5 3610 GCC=
d0191583 3611fi
f11781c5
AK
3612ac_test_CFLAGS=${CFLAGS+set}
3613ac_save_CFLAGS=$CFLAGS
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3615$as_echo_n "checking whether $CC accepts -g... " >&6; }
3616if test "${ac_cv_prog_cc_g+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618else
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3621 ac_cv_prog_cc_g=no
3622 CFLAGS="-g"
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h. */
72b2cb61 3625
f11781c5
AK
3626int
3627main ()
3628{
72b2cb61 3629
f11781c5
AK
3630 ;
3631 return 0;
3632}
3633_ACEOF
3634if ac_fn_c_try_compile "$LINENO"; then :
3635 ac_cv_prog_cc_g=yes
3636else
3637 CFLAGS=""
3638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3639/* end confdefs.h. */
ad6254c5 3640
f11781c5
AK
3641int
3642main ()
3643{
ad6254c5 3644
f11781c5
AK
3645 ;
3646 return 0;
3647}
d0191583 3648_ACEOF
f11781c5
AK
3649if ac_fn_c_try_compile "$LINENO"; then :
3650
3651else
3652 ac_c_werror_flag=$ac_save_c_werror_flag
3653 CFLAGS="-g"
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3655/* end confdefs.h. */
7a197a62 3656
f11781c5
AK
3657int
3658main ()
3659{
ad6254c5 3660
f11781c5
AK
3661 ;
3662 return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_cv_prog_cc_g=yes
3667fi
3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669fi
3670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671fi
3672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3674fi
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3676$as_echo "$ac_cv_prog_cc_g" >&6; }
3677if test "$ac_test_CFLAGS" = set; then
3678 CFLAGS=$ac_save_CFLAGS
3679elif test $ac_cv_prog_cc_g = yes; then
3680 if test "$GCC" = yes; then
3681 CFLAGS="-g -O2"
3682 else
3683 CFLAGS="-g"
3684 fi
3685else
3686 if test "$GCC" = yes; then
3687 CFLAGS="-O2"
3688 else
3689 CFLAGS=
3690 fi
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3693$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3694if test "${ac_cv_prog_cc_c89+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696else
3697 ac_cv_prog_cc_c89=no
3698ac_save_CC=$CC
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701#include <stdarg.h>
3702#include <stdio.h>
3703#include <sys/types.h>
3704#include <sys/stat.h>
3705/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3706struct buf { int x; };
3707FILE * (*rcsopen) (struct buf *, struct stat *, int);
3708static char *e (p, i)
3709 char **p;
3710 int i;
3711{
3712 return p[i];
3713}
3714static char *f (char * (*g) (char **, int), char **p, ...)
3715{
3716 char *s;
3717 va_list v;
3718 va_start (v,p);
3719 s = g (p, va_arg (v,int));
3720 va_end (v);
3721 return s;
3722}
ad6254c5 3723
f11781c5
AK
3724/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3725 function prototypes and stuff, but not '\xHH' hex character constants.
3726 These don't provoke an error unfortunately, instead are silently treated
3727 as 'x'. The following induces an error, until -std is added to get
3728 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3729 array size at least. It's necessary to write '\x00'==0 to get something
3730 that's true only with -std. */
3731int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3732
f11781c5
AK
3733/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3734 inside strings and character constants. */
3735#define FOO(x) 'x'
3736int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3737
f11781c5
AK
3738int test (int i, double x);
3739struct s1 {int (*f) (int a);};
3740struct s2 {int (*f) (double a);};
3741int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3742int argc;
3743char **argv;
d0191583
JM
3744int
3745main ()
3746{
f11781c5 3747return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3748 ;
3749 return 0;
3750}
72b2cb61 3751_ACEOF
f11781c5
AK
3752for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3753 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3754do
3755 CC="$ac_save_CC $ac_arg"
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757 ac_cv_prog_cc_c89=$ac_arg
3758fi
3759rm -f core conftest.err conftest.$ac_objext
3760 test "x$ac_cv_prog_cc_c89" != "xno" && break
3761done
3762rm -f conftest.$ac_ext
3763CC=$ac_save_CC
3764
3765fi
3766# AC_CACHE_VAL
3767case "x$ac_cv_prog_cc_c89" in
3768 x)
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3770$as_echo "none needed" >&6; } ;;
3771 xno)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3773$as_echo "unsupported" >&6; } ;;
3774 *)
3775 CC="$CC $ac_cv_prog_cc_c89"
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3777$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3778esac
f11781c5
AK
3779if test "x$ac_cv_prog_cc_c89" != xno; then :
3780
3781fi
3782
3783ac_ext=c
3784ac_cpp='$CPP $CPPFLAGS'
3785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3787ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3788
ad6254c5 3789
7a197a62 3790
f11781c5
AK
3791ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3797$as_echo_n "checking how to run the C preprocessor... " >&6; }
3798# On Suns, sometimes $CPP names a directory.
3799if test -n "$CPP" && test -d "$CPP"; then
3800 CPP=
3801fi
3802if test -z "$CPP"; then
3803 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3804 $as_echo_n "(cached) " >&6
ad6254c5 3805else
f11781c5
AK
3806 # Double quotes because CPP needs to be expanded
3807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3808 do
3809 ac_preproc_ok=false
3810for ac_c_preproc_warn_flag in '' yes
3811do
3812 # Use a header file that comes with gcc, so configuring glibc
3813 # with a fresh cross-compiler works.
3814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3815 # <limits.h> exists even on freestanding compilers.
3816 # On the NeXT, cc -E runs the code through the compiler's parser,
3817 # not just through cpp. "Syntax error" is here to catch this case.
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3819/* end confdefs.h. */
d0191583
JM
3820#ifdef __STDC__
3821# include <limits.h>
3822#else
3823# include <assert.h>
3824#endif
f11781c5
AK
3825 Syntax error
3826_ACEOF
3827if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3828
f11781c5
AK
3829else
3830 # Broken: fails on valid input.
3831continue
3832fi
3833rm -f conftest.err conftest.$ac_ext
d0191583 3834
f11781c5
AK
3835 # OK, works on sane cases. Now check whether nonexistent headers
3836 # can be detected and how.
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h. */
3839#include <ac_nonexistent.h>
72b2cb61 3840_ACEOF
f11781c5
AK
3841if ac_fn_c_try_cpp "$LINENO"; then :
3842 # Broken: success on invalid input.
3843continue
d0191583 3844else
f11781c5
AK
3845 # Passes both tests.
3846ac_preproc_ok=:
3847break
ad6254c5 3848fi
f11781c5 3849rm -f conftest.err conftest.$ac_ext
ad6254c5 3850
f11781c5
AK
3851done
3852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853rm -f conftest.err conftest.$ac_ext
3854if $ac_preproc_ok; then :
3855 break
7a197a62
AK
3856fi
3857
f11781c5
AK
3858 done
3859 ac_cv_prog_CPP=$CPP
ad6254c5 3860
7a197a62 3861fi
f11781c5
AK
3862 CPP=$ac_cv_prog_CPP
3863else
3864 ac_cv_prog_CPP=$CPP
d0191583 3865fi
f11781c5
AK
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3867$as_echo "$CPP" >&6; }
3868ac_preproc_ok=false
3869for ac_c_preproc_warn_flag in '' yes
3870do
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878/* end confdefs.h. */
3879#ifdef __STDC__
3880# include <limits.h>
3881#else
3882# include <assert.h>
3883#endif
3884 Syntax error
3885_ACEOF
3886if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3887
9c961554 3888else
f11781c5
AK
3889 # Broken: fails on valid input.
3890continue
9c961554 3891fi
f11781c5 3892rm -f conftest.err conftest.$ac_ext
9c961554 3893
f11781c5
AK
3894 # OK, works on sane cases. Now check whether nonexistent headers
3895 # can be detected and how.
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h. */
3898#include <ac_nonexistent.h>
3899_ACEOF
3900if ac_fn_c_try_cpp "$LINENO"; then :
3901 # Broken: success on invalid input.
3902continue
3903else
3904 # Passes both tests.
3905ac_preproc_ok=:
3906break
3907fi
3908rm -f conftest.err conftest.$ac_ext
ad6254c5 3909
f11781c5
AK
3910done
3911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3912rm -f conftest.err conftest.$ac_ext
3913if $ac_preproc_ok; then :
d0191583 3914
f11781c5
AK
3915else
3916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3919See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3920fi
3921
f11781c5
AK
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3927
ad6254c5 3928
f11781c5
AK
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3930$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3931if test "${ac_cv_path_GREP+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933else
3934 if test -z "$GREP"; then
3935 ac_path_GREP_found=false
3936 # Loop through the user's path and test for each of PROGNAME-LIST
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_prog in grep ggrep; do
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3946# Check for GNU ac_path_GREP and select it if it is found.
3947 # Check for GNU $ac_path_GREP
3948case `"$ac_path_GREP" --version 2>&1` in
3949*GNU*)
3950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3951*)
3952 ac_count=0
3953 $as_echo_n 0123456789 >"conftest.in"
3954 while :
3955 do
3956 cat "conftest.in" "conftest.in" >"conftest.tmp"
3957 mv "conftest.tmp" "conftest.in"
3958 cp "conftest.in" "conftest.nl"
3959 $as_echo 'GREP' >> "conftest.nl"
3960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3962 as_fn_arith $ac_count + 1 && ac_count=$as_val
3963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3964 # Best one so far, save it but keep looking for a better one
3965 ac_cv_path_GREP="$ac_path_GREP"
3966 ac_path_GREP_max=$ac_count
3967 fi
3968 # 10*(2^10) chars as input seems more than enough
3969 test $ac_count -gt 10 && break
3970 done
3971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3972esac
ad6254c5 3973
f11781c5
AK
3974 $ac_path_GREP_found && break 3
3975 done
3976 done
3977 done
3978IFS=$as_save_IFS
3979 if test -z "$ac_cv_path_GREP"; then
3980 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3981 fi
3982else
3983 ac_cv_path_GREP=$GREP
7a197a62
AK
3984fi
3985
d0191583 3986fi
f11781c5
AK
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3988$as_echo "$ac_cv_path_GREP" >&6; }
3989 GREP="$ac_cv_path_GREP"
ad6254c5 3990
24bbc4d7 3991
f11781c5
AK
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3993$as_echo_n "checking for egrep... " >&6; }
3994if test "${ac_cv_path_EGREP+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996else
3997 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3998 then ac_cv_path_EGREP="$GREP -E"
3999 else
4000 if test -z "$EGREP"; then
4001 ac_path_EGREP_found=false
4002 # Loop through the user's path and test for each of PROGNAME-LIST
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_prog in egrep; do
4009 for ac_exec_ext in '' $ac_executable_extensions; do
4010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4011 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4012# Check for GNU ac_path_EGREP and select it if it is found.
4013 # Check for GNU $ac_path_EGREP
4014case `"$ac_path_EGREP" --version 2>&1` in
4015*GNU*)
4016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4017*)
4018 ac_count=0
4019 $as_echo_n 0123456789 >"conftest.in"
4020 while :
4021 do
4022 cat "conftest.in" "conftest.in" >"conftest.tmp"
4023 mv "conftest.tmp" "conftest.in"
4024 cp "conftest.in" "conftest.nl"
4025 $as_echo 'EGREP' >> "conftest.nl"
4026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4028 as_fn_arith $ac_count + 1 && ac_count=$as_val
4029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4030 # Best one so far, save it but keep looking for a better one
4031 ac_cv_path_EGREP="$ac_path_EGREP"
4032 ac_path_EGREP_max=$ac_count
4033 fi
4034 # 10*(2^10) chars as input seems more than enough
4035 test $ac_count -gt 10 && break
4036 done
4037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4038esac
24bbc4d7 4039
f11781c5
AK
4040 $ac_path_EGREP_found && break 3
4041 done
4042 done
4043 done
4044IFS=$as_save_IFS
4045 if test -z "$ac_cv_path_EGREP"; then
4046 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4047 fi
24bbc4d7 4048else
f11781c5 4049 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4050fi
4051
f11781c5 4052 fi
24bbc4d7 4053fi
f11781c5
AK
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4055$as_echo "$ac_cv_path_EGREP" >&6; }
4056 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4057
4058
f11781c5
AK
4059if test $ac_cv_c_compiler_gnu = yes; then
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4061$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4062if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
93bd259b 4064else
f11781c5
AK
4065 ac_pattern="Autoconf.*'x'"
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
4068#include <sgtty.h>
4069Autoconf TIOCGETP
4070_ACEOF
4071if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4073 ac_cv_prog_gcc_traditional=yes
d0191583 4074else
f11781c5 4075 ac_cv_prog_gcc_traditional=no
7a197a62 4076fi
f11781c5 4077rm -f conftest*
7a197a62 4078
72b2cb61 4079
f11781c5
AK
4080 if test $ac_cv_prog_gcc_traditional = no; then
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082/* end confdefs.h. */
4083#include <termio.h>
4084Autoconf TCGETA
72b2cb61 4085_ACEOF
f11781c5
AK
4086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4087 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4088 ac_cv_prog_gcc_traditional=yes
ad6254c5 4089fi
f11781c5 4090rm -f conftest*
ad6254c5 4091
f11781c5 4092 fi
7a197a62 4093fi
f11781c5
AK
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4095$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4096 if test $ac_cv_prog_gcc_traditional = yes; then
4097 CC="$CC -traditional"
4098 fi
ad6254c5
AK
4099fi
4100
f11781c5
AK
4101# Find a good install program. We prefer a C program (faster),
4102# so one script is as good as another. But avoid the broken or
4103# incompatible versions:
4104# SysV /etc/install, /usr/sbin/install
4105# SunOS /usr/etc/install
4106# IRIX /sbin/install
4107# AIX /bin/install
4108# AmigaOS /C/install, which installs bootblocks on floppy discs
4109# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4110# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4111# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4112# OS/2's system install, which has a completely different semantic
4113# ./install, which can be erroneously created by make from ./install.sh.
4114# Reject install programs that cannot install multiple files.
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4116$as_echo_n "checking for a BSD-compatible install... " >&6; }
4117if test -z "$INSTALL"; then
4118if test "${ac_cv_path_install+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
ad6254c5 4120else
f11781c5
AK
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122for as_dir in $PATH
4123do
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 # Account for people who put trailing slashes in PATH elements.
4127case $as_dir/ in #((
4128 ./ | .// | /[cC]/* | \
4129 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4130 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4131 /usr/ucb/* ) ;;
4132 *)
4133 # OSF1 and SCO ODT 3.0 have their own names for install.
4134 # Don't use installbsd from OSF since it installs stuff as root
4135 # by default.
4136 for ac_prog in ginstall scoinst install; do
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4139 if test $ac_prog = install &&
4140 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4141 # AIX install. It has an incompatible calling convention.
4142 :
4143 elif test $ac_prog = install &&
4144 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4145 # program-specific install script used by HP pwplus--don't use.
4146 :
4147 else
4148 rm -rf conftest.one conftest.two conftest.dir
4149 echo one > conftest.one
4150 echo two > conftest.two
4151 mkdir conftest.dir
4152 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4153 test -s conftest.one && test -s conftest.two &&
4154 test -s conftest.dir/conftest.one &&
4155 test -s conftest.dir/conftest.two
4156 then
4157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4158 break 3
4159 fi
4160 fi
4161 fi
4162 done
4163 done
4164 ;;
4165esac
7a197a62 4166
f11781c5
AK
4167 done
4168IFS=$as_save_IFS
d0191583 4169
f11781c5 4170rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4171
4172fi
f11781c5
AK
4173 if test "${ac_cv_path_install+set}" = set; then
4174 INSTALL=$ac_cv_path_install
4175 else
4176 # As a last resort, use the slow shell script. Don't cache a
4177 # value for INSTALL within a source directory, because that will
4178 # break other packages using the cache if that directory is
4179 # removed, or if the value is a relative name.
4180 INSTALL=$ac_install_sh
4181 fi
7a197a62 4182fi
f11781c5
AK
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4184$as_echo "$INSTALL" >&6; }
7a197a62 4185
f11781c5
AK
4186# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4187# It thinks the first close brace ends the variable substitution.
4188test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4189
f11781c5 4190test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4191
f11781c5 4192test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4193
f11781c5
AK
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4195$as_echo_n "checking whether ln -s works... " >&6; }
4196LN_S=$as_ln_s
4197if test "$LN_S" = "ln -s"; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4199$as_echo "yes" >&6; }
4200else
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4202$as_echo "no, using $LN_S" >&6; }
15d91f5a 4203fi
ad6254c5 4204
f11781c5
AK
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4206$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4207set x ${MAKE-make}
4208ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4209if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4210 $as_echo_n "(cached) " >&6
d0191583 4211else
f11781c5
AK
4212 cat >conftest.make <<\_ACEOF
4213SHELL = /bin/sh
4214all:
4215 @echo '@@@%%%=$(MAKE)=@@@%%%'
4216_ACEOF
4217# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4218case `${MAKE-make} -f conftest.make 2>/dev/null` in
4219 *@@@%%%=?*=@@@%%%*)
4220 eval ac_cv_prog_make_${ac_make}_set=yes;;
4221 *)
4222 eval ac_cv_prog_make_${ac_make}_set=no;;
4223esac
4224rm -f conftest.make
4225fi
4226if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228$as_echo "yes" >&6; }
4229 SET_MAKE=
4230else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232$as_echo "no" >&6; }
4233 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4234fi
4235
f11781c5
AK
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4237$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4238if test -z "$MKDIR_P"; then
4239 if test "${ac_cv_path_mkdir+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241else
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_prog in mkdir gmkdir; do
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4250 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4251 'mkdir (GNU coreutils) '* | \
4252 'mkdir (coreutils) '* | \
4253 'mkdir (fileutils) '4.1*)
4254 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4255 break 3;;
4256 esac
4257 done
4258 done
4259 done
4260IFS=$as_save_IFS
d0191583 4261
f11781c5 4262fi
ad6254c5 4263
f11781c5
AK
4264 test -d ./--version && rmdir ./--version
4265 if test "${ac_cv_path_mkdir+set}" = set; then
4266 MKDIR_P="$ac_cv_path_mkdir -p"
4267 else
4268 # As a last resort, use the slow shell script. Don't cache a
4269 # value for MKDIR_P within a source directory, because that will
4270 # break other packages using the cache if that directory is
4271 # removed, or if the value is a relative name.
4272 MKDIR_P="$ac_install_sh -d"
4273 fi
ad6254c5 4274fi
f11781c5
AK
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4276$as_echo "$MKDIR_P" >&6; }
7a197a62 4277
f11781c5
AK
4278if test -n "$ac_tool_prefix"; then
4279 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4280set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4285else
4286 if test -n "$RANLIB"; then
4287 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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
d0191583 4303
f11781c5
AK
4304fi
4305fi
4306RANLIB=$ac_cv_prog_RANLIB
4307if test -n "$RANLIB"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4309$as_echo "$RANLIB" >&6; }
d0191583 4310else
f11781c5
AK
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312$as_echo "no" >&6; }
ad6254c5 4313fi
ad6254c5 4314
8a2fc586 4315
d0191583 4316fi
f11781c5
AK
4317if test -z "$ac_cv_prog_RANLIB"; then
4318 ac_ct_RANLIB=$RANLIB
4319 # Extract the first word of "ranlib", so it can be a program name with args.
4320set dummy ranlib; ac_word=$2
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322$as_echo_n "checking for $ac_word... " >&6; }
4323if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325else
4326 if test -n "$ac_ct_RANLIB"; then
4327 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_ac_ct_RANLIB="ranlib"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340done
4341 done
4342IFS=$as_save_IFS
8a2fc586 4343
f11781c5
AK
4344fi
4345fi
4346ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4347if test -n "$ac_ct_RANLIB"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4349$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4350else
f11781c5
AK
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
8fea97b7
ZK
4353fi
4354
f11781c5
AK
4355 if test "x$ac_ct_RANLIB" = x; then
4356 RANLIB=":"
4357 else
4358 case $cross_compiling:$ac_tool_warned in
4359yes:)
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4362ac_tool_warned=yes ;;
8fea97b7 4363esac
f11781c5
AK
4364 RANLIB=$ac_ct_RANLIB
4365 fi
d0191583 4366else
f11781c5 4367 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4368fi
8a2fc586 4369
f11781c5
AK
4370# Extract the first word of "cflow", so it can be a program name with args.
4371set dummy cflow; ac_word=$2
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373$as_echo_n "checking for $ac_word... " >&6; }
4374if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4375 $as_echo_n "(cached) " >&6
4376else
4377 case $CFLOW_CMD in
4378 [\\/]* | ?:[\\/]*)
4379 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
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=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_path_CFLOW_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
4391 break 2
4392 fi
4393done
4394 done
4395IFS=$as_save_IFS
8a2fc586 4396
f11781c5
AK
4397 ;;
4398esac
ad6254c5 4399fi
f11781c5
AK
4400CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4401if test -n "$CFLOW_CMD"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4403$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4404else
f11781c5
AK
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406$as_echo "no" >&6; }
37ddf259
AK
4407fi
4408
e2997b73 4409
f11781c5
AK
4410# Extract the first word of "cscope", so it can be a program name with args.
4411set dummy cscope; ac_word=$2
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4413$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4414if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4415 $as_echo_n "(cached) " >&6
4416else
f11781c5 4417 case $CSCOPE_CMD in
e2997b73 4418 [\\/]* | ?:[\\/]*)
f11781c5 4419 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4420 ;;
4421 *)
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4423for as_dir in $PATH
4424do
4425 IFS=$as_save_IFS
4426 test -z "$as_dir" && as_dir=.
f11781c5 4427 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4429 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4431 break 2
4432 fi
4433done
f11781c5 4434 done
e2997b73
AK
4435IFS=$as_save_IFS
4436
4437 ;;
4438esac
4439fi
f11781c5
AK
4440CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4441if test -n "$CSCOPE_CMD"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4443$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4444else
f11781c5 4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4446$as_echo "no" >&6; }
4447fi
f11781c5
AK
4448
4449
4450
4451################################################################################
4452ac_header_dirent=no
4453for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4454 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4456$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4457if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4458 $as_echo_n "(cached) " >&6
4459else
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h. */
4462#include <sys/types.h>
4463#include <$ac_hdr>
4464
4465int
4466main ()
4467{
4468if ((DIR *) 0)
4469return 0;
4470 ;
4471 return 0;
4472}
4473_ACEOF
4474if ac_fn_c_try_compile "$LINENO"; then :
4475 eval "$as_ac_Header=yes"
4476else
4477 eval "$as_ac_Header=no"
4478fi
4479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480fi
4481eval ac_res=\$$as_ac_Header
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4483$as_echo "$ac_res" >&6; }
4484if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4485 cat >>confdefs.h <<_ACEOF
4486#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4487_ACEOF
4488
4489ac_header_dirent=$ac_hdr; break
4490fi
4491
4492done
4493# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4494if test $ac_header_dirent = dirent.h; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4496$as_echo_n "checking for library containing opendir... " >&6; }
4497if test "${ac_cv_search_opendir+set}" = set; then :
4498 $as_echo_n "(cached) " >&6
4499else
4500 ac_func_search_save_LIBS=$LIBS
4501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h. */
4503
4504/* Override any GCC internal prototype to avoid an error.
4505 Use char because int might match the return type of a GCC
4506 builtin and then its argument prototype would still apply. */
4507#ifdef __cplusplus
4508extern "C"
4509#endif
4510char opendir ();
4511int
4512main ()
4513{
4514return opendir ();
4515 ;
4516 return 0;
4517}
4518_ACEOF
4519for ac_lib in '' dir; do
4520 if test -z "$ac_lib"; then
4521 ac_res="none required"
4522 else
4523 ac_res=-l$ac_lib
4524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4525 fi
4526 if ac_fn_c_try_link "$LINENO"; then :
4527 ac_cv_search_opendir=$ac_res
4528fi
4529rm -f core conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext
4531 if test "${ac_cv_search_opendir+set}" = set; then :
4532 break
4533fi
4534done
4535if test "${ac_cv_search_opendir+set}" = set; then :
4536
4537else
4538 ac_cv_search_opendir=no
4539fi
4540rm conftest.$ac_ext
4541LIBS=$ac_func_search_save_LIBS
4542fi
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4544$as_echo "$ac_cv_search_opendir" >&6; }
4545ac_res=$ac_cv_search_opendir
4546if test "$ac_res" != no; then :
4547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4548
4549fi
f11781c5
AK
4550
4551else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4553$as_echo_n "checking for library containing opendir... " >&6; }
4554if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4555 $as_echo_n "(cached) " >&6
4556else
f11781c5
AK
4557 ac_func_search_save_LIBS=$LIBS
4558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h. */
e2997b73 4560
f11781c5
AK
4561/* Override any GCC internal prototype to avoid an error.
4562 Use char because int might match the return type of a GCC
4563 builtin and then its argument prototype would still apply. */
4564#ifdef __cplusplus
4565extern "C"
4566#endif
4567char opendir ();
4568int
4569main ()
4570{
4571return opendir ();
4572 ;
4573 return 0;
4574}
4575_ACEOF
4576for ac_lib in '' x; do
4577 if test -z "$ac_lib"; then
4578 ac_res="none required"
4579 else
4580 ac_res=-l$ac_lib
4581 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4582 fi
4583 if ac_fn_c_try_link "$LINENO"; then :
4584 ac_cv_search_opendir=$ac_res
e2997b73 4585fi
f11781c5
AK
4586rm -f core conftest.err conftest.$ac_objext \
4587 conftest$ac_exeext
4588 if test "${ac_cv_search_opendir+set}" = set; then :
4589 break
e2997b73 4590fi
f11781c5
AK
4591done
4592if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4593
e2997b73 4594else
f11781c5
AK
4595 ac_cv_search_opendir=no
4596fi
4597rm conftest.$ac_ext
4598LIBS=$ac_func_search_save_LIBS
e2997b73 4599fi
f11781c5
AK
4600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4601$as_echo "$ac_cv_search_opendir" >&6; }
4602ac_res=$ac_cv_search_opendir
4603if test "$ac_res" != no; then :
4604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4605
4606fi
8c4e8a18 4607
e2997b73
AK
4608fi
4609
f11781c5
AK
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4611$as_echo_n "checking for ANSI C header files... " >&6; }
4612if test "${ac_cv_header_stdc+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614else
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616/* end confdefs.h. */
4617#include <stdlib.h>
4618#include <stdarg.h>
4619#include <string.h>
4620#include <float.h>
e2997b73 4621
f11781c5
AK
4622int
4623main ()
4624{
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
4630if ac_fn_c_try_compile "$LINENO"; then :
4631 ac_cv_header_stdc=yes
e2997b73 4632else
f11781c5 4633 ac_cv_header_stdc=no
e2997b73 4634fi
f11781c5
AK
4635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636
4637if test $ac_cv_header_stdc = yes; then
4638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640/* end confdefs.h. */
4641#include <string.h>
4642
4643_ACEOF
4644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "memchr" >/dev/null 2>&1; then :
4646
e2997b73 4647else
f11781c5 4648 ac_cv_header_stdc=no
e2997b73 4649fi
f11781c5 4650rm -f conftest*
e2997b73 4651
f11781c5 4652fi
e2997b73 4653
f11781c5
AK
4654if test $ac_cv_header_stdc = yes; then
4655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657/* end confdefs.h. */
4658#include <stdlib.h>
e2997b73 4659
f11781c5
AK
4660_ACEOF
4661if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4662 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4663
e2997b73 4664else
f11781c5 4665 ac_cv_header_stdc=no
e2997b73 4666fi
f11781c5 4667rm -f conftest*
e2997b73 4668
e2997b73 4669fi
90c80887 4670
f11781c5
AK
4671if test $ac_cv_header_stdc = yes; then
4672 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4673 if test "$cross_compiling" = yes; then :
4674 :
4675else
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677/* end confdefs.h. */
4678#include <ctype.h>
4679#include <stdlib.h>
4680#if ((' ' & 0x0FF) == 0x020)
4681# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4682# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4683#else
4684# define ISLOWER(c) \
4685 (('a' <= (c) && (c) <= 'i') \
4686 || ('j' <= (c) && (c) <= 'r') \
4687 || ('s' <= (c) && (c) <= 'z'))
4688# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4689#endif
4690
4691#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4692int
4693main ()
4694{
4695 int i;
4696 for (i = 0; i < 256; i++)
4697 if (XOR (islower (i), ISLOWER (i))
4698 || toupper (i) != TOUPPER (i))
4699 return 2;
4700 return 0;
4701}
4702_ACEOF
4703if ac_fn_c_try_run "$LINENO"; then :
90c80887 4704
90c80887 4705else
f11781c5 4706 ac_cv_header_stdc=no
90c80887 4707fi
f11781c5
AK
4708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4709 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4710fi
90c80887 4711
90c80887 4712fi
90c80887 4713fi
f11781c5
AK
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4715$as_echo "$ac_cv_header_stdc" >&6; }
4716if test $ac_cv_header_stdc = yes; then
90c80887 4717
f11781c5 4718$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4719
90c80887 4720fi
f11781c5
AK
4721
4722# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4723for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4724 inttypes.h stdint.h unistd.h
4725do :
4726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4727ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4728"
4729if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4730 cat >>confdefs.h <<_ACEOF
4731#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4732_ACEOF
4733
90c80887 4734fi
f11781c5
AK
4735
4736done
4737
4738
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4740$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4741if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4742 $as_echo_n "(cached) " >&6
4743else
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h. */
4746#include <sys/types.h>
4747int
4748main ()
4749{
4750return makedev(0, 0);
4751 ;
4752 return 0;
4753}
4754_ACEOF
4755if ac_fn_c_try_link "$LINENO"; then :
4756 ac_cv_header_sys_types_h_makedev=yes
4757else
4758 ac_cv_header_sys_types_h_makedev=no
90c80887 4759fi
f11781c5
AK
4760rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4762
90c80887 4763fi
f11781c5
AK
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4765$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4766
4767if test $ac_cv_header_sys_types_h_makedev = no; then
4768ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4769if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4770
4771$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4772
a946372e 4773fi
e2997b73 4774
e2997b73 4775
a946372e 4776
f11781c5
AK
4777 if test $ac_cv_header_sys_mkdev_h = no; then
4778 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4779if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4780
4781$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4782
e2997b73 4783fi
a946372e 4784
a946372e 4785
f11781c5
AK
4786 fi
4787fi
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4790$as_echo_n "checking for ANSI C header files... " >&6; }
4791if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4792 $as_echo_n "(cached) " >&6
4793else
f11781c5 4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4795/* end confdefs.h. */
f11781c5
AK
4796#include <stdlib.h>
4797#include <stdarg.h>
4798#include <string.h>
4799#include <float.h>
a946372e 4800
a946372e
AK
4801int
4802main ()
4803{
f11781c5 4804
a946372e
AK
4805 ;
4806 return 0;
4807}
4808_ACEOF
f11781c5
AK
4809if ac_fn_c_try_compile "$LINENO"; then :
4810 ac_cv_header_stdc=yes
e2997b73 4811else
f11781c5
AK
4812 ac_cv_header_stdc=no
4813fi
4814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815
4816if test $ac_cv_header_stdc = yes; then
4817 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h. */
4820#include <string.h>
4821
4822_ACEOF
4823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4825
f11781c5
AK
4826else
4827 ac_cv_header_stdc=no
a946372e 4828fi
f11781c5 4829rm -f conftest*
e2997b73 4830
a946372e 4831fi
e2997b73 4832
f11781c5
AK
4833if test $ac_cv_header_stdc = yes; then
4834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h. */
4837#include <stdlib.h>
4838
4839_ACEOF
4840if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4841 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4842
e2997b73 4843else
f11781c5 4844 ac_cv_header_stdc=no
e2997b73 4845fi
f11781c5 4846rm -f conftest*
e2997b73 4847
f11781c5 4848fi
a946372e 4849
f11781c5
AK
4850if test $ac_cv_header_stdc = yes; then
4851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4852 if test "$cross_compiling" = yes; then :
4853 :
4854else
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856/* end confdefs.h. */
4857#include <ctype.h>
4858#include <stdlib.h>
4859#if ((' ' & 0x0FF) == 0x020)
4860# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4861# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4862#else
4863# define ISLOWER(c) \
4864 (('a' <= (c) && (c) <= 'i') \
4865 || ('j' <= (c) && (c) <= 'r') \
4866 || ('s' <= (c) && (c) <= 'z'))
4867# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4868#endif
e2997b73 4869
f11781c5
AK
4870#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4871int
4872main ()
4873{
4874 int i;
4875 for (i = 0; i < 256; i++)
4876 if (XOR (islower (i), ISLOWER (i))
4877 || toupper (i) != TOUPPER (i))
4878 return 2;
4879 return 0;
4880}
4881_ACEOF
4882if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4883
e2997b73 4884else
f11781c5 4885 ac_cv_header_stdc=no
e2997b73 4886fi
f11781c5
AK
4887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4888 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4889fi
f11781c5 4890
e2997b73 4891fi
e2997b73 4892fi
f11781c5
AK
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4894$as_echo "$ac_cv_header_stdc" >&6; }
4895if test $ac_cv_header_stdc = yes; then
e2997b73 4896
f11781c5 4897$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4898
f11781c5 4899fi
e2997b73 4900
f11781c5
AK
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4902$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4903if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4904 $as_echo_n "(cached) " >&6
4905else
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907/* end confdefs.h. */
4908#include <sys/types.h>
4909#include <sys/wait.h>
4910#ifndef WEXITSTATUS
4911# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4912#endif
4913#ifndef WIFEXITED
4914# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4915#endif
e2997b73 4916
f11781c5
AK
4917int
4918main ()
4919{
4920 int s;
4921 wait (&s);
4922 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4923 ;
4924 return 0;
4925}
4926_ACEOF
4927if ac_fn_c_try_compile "$LINENO"; then :
4928 ac_cv_header_sys_wait_h=yes
e2997b73 4929else
f11781c5 4930 ac_cv_header_sys_wait_h=no
e2997b73 4931fi
f11781c5
AK
4932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933fi
4934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4935$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4936if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4937
f11781c5 4938$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4939
d0191583 4940fi
f11781c5
AK
4941
4942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4943$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4944if test "${ac_cv_header_time+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
fc54be10 4946else
f11781c5 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4948/* end confdefs.h. */
f11781c5
AK
4949#include <sys/types.h>
4950#include <sys/time.h>
4951#include <time.h>
4952
4953int
4954main ()
4955{
4956if ((struct tm *) 0)
4957return 0;
4958 ;
4959 return 0;
4960}
a946372e 4961_ACEOF
f11781c5
AK
4962if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_header_time=yes
a946372e 4964else
f11781c5
AK
4965 ac_cv_header_time=no
4966fi
4967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4970$as_echo "$ac_cv_header_time" >&6; }
4971if test $ac_cv_header_time = yes; then
4972
4973$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4974
4975fi
4976
4977
4978for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4979 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4980 sys/wait.h time.h
4981do :
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4985 cat >>confdefs.h <<_ACEOF
4986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987_ACEOF
d0191583 4988
f11781c5
AK
4989else
4990 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4991fi
4992
f11781c5 4993done
fddafd51 4994
f11781c5
AK
4995
4996case "$host_os" in
4997 linux*)
4998 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4999do :
5000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5003 cat >>confdefs.h <<_ACEOF
5004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 5005_ACEOF
a946372e 5006
f11781c5
AK
5007else
5008 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
5009fi
5010
f11781c5
AK
5011done
5012 ;;
5013 darwin*)
5014 for ac_header in machine/endian.h sys/disk.h
5015do :
5016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5019 cat >>confdefs.h <<_ACEOF
5020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021_ACEOF
a946372e 5022
f11781c5
AK
5023else
5024 as_fn_error $? "bailing out" "$LINENO" 5
5025fi
a946372e 5026
f11781c5
AK
5027done
5028 ;;
a946372e 5029esac
f11781c5
AK
5030
5031for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5032 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5033 sys/types.h unistd.h
5034do :
5035 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5036ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5038 cat >>confdefs.h <<_ACEOF
5039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5040_ACEOF
5041
a946372e 5042else
f11781c5 5043 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5044fi
a946372e 5045
f11781c5
AK
5046done
5047
5048for ac_header in termios.h sys/statvfs.h
5049do :
5050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5051ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5052if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5053 cat >>confdefs.h <<_ACEOF
5054#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5055_ACEOF
5056
a946372e
AK
5057fi
5058
5059done
5060
a946372e 5061
f11781c5
AK
5062################################################################################
5063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5064$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5065if test "${ac_cv_c_const+set}" = set; then :
a946372e 5066 $as_echo_n "(cached) " >&6
a946372e 5067else
f11781c5 5068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5069/* end confdefs.h. */
a946372e 5070
f11781c5
AK
5071int
5072main ()
5073{
5074/* FIXME: Include the comments suggested by Paul. */
5075#ifndef __cplusplus
5076 /* Ultrix mips cc rejects this. */
5077 typedef int charset[2];
5078 const charset cs;
5079 /* SunOS 4.1.1 cc rejects this. */
5080 char const *const *pcpcc;
5081 char **ppc;
5082 /* NEC SVR4.0.2 mips cc rejects this. */
5083 struct point {int x, y;};
5084 static struct point const zero = {0,0};
5085 /* AIX XL C 1.02.0.0 rejects this.
5086 It does not let you subtract one const X* pointer from another in
5087 an arm of an if-expression whose if-part is not a constant
5088 expression */
5089 const char *g = "string";
5090 pcpcc = &g + (g ? g-g : 0);
5091 /* HPUX 7.0 cc rejects these. */
5092 ++pcpcc;
5093 ppc = (char**) pcpcc;
5094 pcpcc = (char const *const *) ppc;
5095 { /* SCO 3.2v4 cc rejects this. */
5096 char *t;
5097 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5098
f11781c5
AK
5099 *t++ = 0;
5100 if (s) return 0;
5101 }
5102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5103 int x[] = {25, 17};
5104 const int *foo = &x[0];
5105 ++foo;
5106 }
5107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5108 typedef const int *iptr;
5109 iptr p = 0;
5110 ++p;
5111 }
5112 { /* AIX XL C 1.02.0.0 rejects this saying
5113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5114 struct s { int j; const int *ap[3]; };
5115 struct s *b; b->j = 5;
5116 }
5117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5118 const int foo = 10;
5119 if (!foo) return 0;
5120 }
5121 return !cs[0] && !zero.x;
5122#endif
a946372e 5123
f11781c5
AK
5124 ;
5125 return 0;
5126}
a946372e 5127_ACEOF
f11781c5
AK
5128if ac_fn_c_try_compile "$LINENO"; then :
5129 ac_cv_c_const=yes
a946372e 5130else
f11781c5
AK
5131 ac_cv_c_const=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5134fi
f11781c5
AK
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5136$as_echo "$ac_cv_c_const" >&6; }
5137if test $ac_cv_c_const = no; then
a946372e 5138
f11781c5 5139$as_echo "#define const /**/" >>confdefs.h
a946372e 5140
f11781c5 5141fi
a946372e 5142
f11781c5
AK
5143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5144$as_echo_n "checking for inline... " >&6; }
5145if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5146 $as_echo_n "(cached) " >&6
5147else
f11781c5
AK
5148 ac_cv_c_inline=no
5149for ac_kw in inline __inline__ __inline; do
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5151/* end confdefs.h. */
5152#ifndef __cplusplus
5153typedef int foo_t;
5154static $ac_kw foo_t static_foo () {return 0; }
5155$ac_kw foo_t foo () {return 0; }
5156#endif
5157
5158_ACEOF
5159if ac_fn_c_try_compile "$LINENO"; then :
5160 ac_cv_c_inline=$ac_kw
a946372e 5161fi
f11781c5
AK
5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163 test "$ac_cv_c_inline" != no && break
5164done
a946372e
AK
5165
5166fi
f11781c5
AK
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5168$as_echo "$ac_cv_c_inline" >&6; }
5169
5170case $ac_cv_c_inline in
5171 inline | yes) ;;
5172 *)
5173 case $ac_cv_c_inline in
5174 no) ac_val=;;
5175 *) ac_val=$ac_cv_c_inline;;
5176 esac
5177 cat >>confdefs.h <<_ACEOF
5178#ifndef __cplusplus
5179#define inline $ac_val
5180#endif
5181_ACEOF
5182 ;;
5183esac
5184
5185ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5186if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5187
5188cat >>confdefs.h <<_ACEOF
5189#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5190_ACEOF
5191
f11781c5 5192
a946372e
AK
5193fi
5194
f11781c5
AK
5195ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5196if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5197
a946372e 5198else
f11781c5
AK
5199
5200cat >>confdefs.h <<_ACEOF
5201#define off_t long int
5202_ACEOF
5203
a946372e
AK
5204fi
5205
f11781c5
AK
5206ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5207if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5208
a946372e 5209else
f11781c5
AK
5210
5211cat >>confdefs.h <<_ACEOF
5212#define pid_t int
5213_ACEOF
5214
5215fi
5216
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5218$as_echo_n "checking return type of signal handlers... " >&6; }
5219if test "${ac_cv_type_signal+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
a946372e 5221else
f11781c5
AK
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223/* end confdefs.h. */
5224#include <sys/types.h>
5225#include <signal.h>
5226
5227int
5228main ()
5229{
5230return *(signal (0, 0)) (0) == 1;
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_compile "$LINENO"; then :
5236 ac_cv_type_signal=int
5237else
5238 ac_cv_type_signal=void
a946372e 5239fi
f11781c5 5240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5241fi
f11781c5
AK
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5243$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5244
f11781c5
AK
5245cat >>confdefs.h <<_ACEOF
5246#define RETSIGTYPE $ac_cv_type_signal
5247_ACEOF
a946372e
AK
5248
5249
f11781c5
AK
5250ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5251if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5252
a946372e 5253else
a946372e 5254
f11781c5
AK
5255cat >>confdefs.h <<_ACEOF
5256#define size_t unsigned int
5257_ACEOF
a946372e 5258
a946372e 5259fi
f11781c5
AK
5260
5261ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5262if test "x$ac_cv_type_mode_t" = x""yes; then :
5263
a946372e 5264else
f11781c5
AK
5265
5266cat >>confdefs.h <<_ACEOF
5267#define mode_t int
a946372e 5268_ACEOF
a946372e 5269
a946372e
AK
5270fi
5271
f11781c5
AK
5272ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5273case $ac_cv_c_int8_t in #(
5274 no|yes) ;; #(
5275 *)
a946372e 5276
f11781c5
AK
5277cat >>confdefs.h <<_ACEOF
5278#define int8_t $ac_cv_c_int8_t
a946372e 5279_ACEOF
f11781c5 5280;;
a946372e 5281esac
a946372e 5282
f11781c5
AK
5283ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5284case $ac_cv_c_int16_t in #(
5285 no|yes) ;; #(
5286 *)
a946372e 5287
f11781c5
AK
5288cat >>confdefs.h <<_ACEOF
5289#define int16_t $ac_cv_c_int16_t
5290_ACEOF
5291;;
5292esac
a946372e 5293
f11781c5
AK
5294ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5295case $ac_cv_c_int32_t in #(
5296 no|yes) ;; #(
5297 *)
a946372e 5298
f11781c5
AK
5299cat >>confdefs.h <<_ACEOF
5300#define int32_t $ac_cv_c_int32_t
5301_ACEOF
5302;;
a946372e 5303esac
a946372e 5304
f11781c5
AK
5305ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5306case $ac_cv_c_int64_t in #(
5307 no|yes) ;; #(
5308 *)
5309
5310cat >>confdefs.h <<_ACEOF
5311#define int64_t $ac_cv_c_int64_t
a946372e 5312_ACEOF
f11781c5
AK
5313;;
5314esac
5315
5316ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5317if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5318
5319else
a946372e 5320
f11781c5
AK
5321cat >>confdefs.h <<_ACEOF
5322#define ssize_t int
5323_ACEOF
a946372e 5324
f11781c5 5325fi
a946372e 5326
f11781c5
AK
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5328$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5329if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5330 $as_echo_n "(cached) " >&6
a946372e 5331else
f11781c5 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5333/* end confdefs.h. */
f11781c5
AK
5334#include <sys/types.h>
5335
a946372e 5336_ACEOF
f11781c5
AK
5337if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5338 $EGREP "uid_t" >/dev/null 2>&1; then :
5339 ac_cv_type_uid_t=yes
a946372e 5340else
f11781c5
AK
5341 ac_cv_type_uid_t=no
5342fi
5343rm -f conftest*
a946372e 5344
a946372e 5345fi
f11781c5
AK
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5347$as_echo "$ac_cv_type_uid_t" >&6; }
5348if test $ac_cv_type_uid_t = no; then
a946372e 5349
f11781c5 5350$as_echo "#define uid_t int" >>confdefs.h
a946372e 5351
f11781c5
AK
5352
5353$as_echo "#define gid_t int" >>confdefs.h
5354
5355fi
5356
5357ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5358case $ac_cv_c_uint8_t in #(
5359 no|yes) ;; #(
5360 *)
5361
5362$as_echo "#define _UINT8_T 1" >>confdefs.h
5363
5364
5365cat >>confdefs.h <<_ACEOF
5366#define uint8_t $ac_cv_c_uint8_t
a946372e 5367_ACEOF
f11781c5
AK
5368;;
5369 esac
5370
5371ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5372case $ac_cv_c_uint16_t in #(
5373 no|yes) ;; #(
5374 *)
5375
5376
5377cat >>confdefs.h <<_ACEOF
5378#define uint16_t $ac_cv_c_uint16_t
a946372e 5379_ACEOF
f11781c5
AK
5380;;
5381 esac
a946372e 5382
f11781c5
AK
5383ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5384case $ac_cv_c_uint32_t in #(
5385 no|yes) ;; #(
5386 *)
a946372e 5387
f11781c5 5388$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5389
a946372e 5390
f11781c5
AK
5391cat >>confdefs.h <<_ACEOF
5392#define uint32_t $ac_cv_c_uint32_t
5393_ACEOF
5394;;
5395 esac
5396
5397ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5398case $ac_cv_c_uint64_t in #(
5399 no|yes) ;; #(
5400 *)
5401
5402$as_echo "#define _UINT64_T 1" >>confdefs.h
5403
5404
5405cat >>confdefs.h <<_ACEOF
5406#define uint64_t $ac_cv_c_uint64_t
5407_ACEOF
5408;;
5409 esac
5410
5411ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5412if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5413
5414cat >>confdefs.h <<_ACEOF
5415#define HAVE_STRUCT_STAT_ST_RDEV 1
5416_ACEOF
5417
5418
5419fi
5420
5421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5422$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5423if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5424 $as_echo_n "(cached) " >&6
5425else
f11781c5
AK
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427/* end confdefs.h. */
5428#include <sys/types.h>
5429#include <time.h>
5430
5431int
5432main ()
5433{
5434struct tm tm;
5435 int *p = &tm.tm_sec;
5436 return !p;
5437 ;
5438 return 0;
5439}
5440_ACEOF
5441if ac_fn_c_try_compile "$LINENO"; then :
5442 ac_cv_struct_tm=time.h
5443else
5444 ac_cv_struct_tm=sys/time.h
a946372e 5445fi
f11781c5
AK
5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447fi
5448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5449$as_echo "$ac_cv_struct_tm" >&6; }
5450if test $ac_cv_struct_tm = sys/time.h; then
5451
5452$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5453
5454fi
f11781c5
AK
5455
5456
5457################################################################################
5458for ac_func in ftruncate gethostname getpagesize \
5459 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5460 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5461 strstr strtol strtoul uname
5462do :
5463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5464ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5465if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5466 cat >>confdefs.h <<_ACEOF
f11781c5 5467#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5468_ACEOF
5469
5470else
f11781c5 5471 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5472fi
a946372e
AK
5473done
5474
f11781c5
AK
5475for ac_func in siginterrupt
5476do :
5477 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5478if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5479 cat >>confdefs.h <<_ACEOF
5480#define HAVE_SIGINTERRUPT 1
5481_ACEOF
a946372e 5482
f11781c5
AK
5483fi
5484done
a946372e 5485
f11781c5
AK
5486# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5487# for constant arguments. Useless!
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5489$as_echo_n "checking for working alloca.h... " >&6; }
5490if test "${ac_cv_working_alloca_h+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
a946372e 5492else
f11781c5
AK
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494/* end confdefs.h. */
5495#include <alloca.h>
5496int
5497main ()
5498{
5499char *p = (char *) alloca (2 * sizeof (int));
5500 if (p) return 0;
5501 ;
5502 return 0;
5503}
5504_ACEOF
5505if ac_fn_c_try_link "$LINENO"; then :
5506 ac_cv_working_alloca_h=yes
a946372e 5507else
f11781c5 5508 ac_cv_working_alloca_h=no
a946372e 5509fi
f11781c5
AK
5510rm -f core conftest.err conftest.$ac_objext \
5511 conftest$ac_exeext conftest.$ac_ext
a946372e 5512fi
f11781c5
AK
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5514$as_echo "$ac_cv_working_alloca_h" >&6; }
5515if test $ac_cv_working_alloca_h = yes; then
a946372e 5516
f11781c5 5517$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5518
a946372e 5519fi
a946372e 5520
f11781c5
AK
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5522$as_echo_n "checking for alloca... " >&6; }
5523if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5524 $as_echo_n "(cached) " >&6
a946372e 5525else
f11781c5 5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5527/* end confdefs.h. */
f11781c5
AK
5528#ifdef __GNUC__
5529# define alloca __builtin_alloca
5530#else
5531# ifdef _MSC_VER
5532# include <malloc.h>
5533# define alloca _alloca
5534# else
5535# ifdef HAVE_ALLOCA_H
5536# include <alloca.h>
5537# else
5538# ifdef _AIX
5539 #pragma alloca
5540# else
5541# ifndef alloca /* predefined by HP cc +Olibcalls */
5542char *alloca ();
5543# endif
5544# endif
5545# endif
5546# endif
5547#endif
a946372e 5548
f11781c5
AK
5549int
5550main ()
5551{
5552char *p = (char *) alloca (1);
5553 if (p) return 0;
5554 ;
5555 return 0;
5556}
a946372e 5557_ACEOF
f11781c5
AK
5558if ac_fn_c_try_link "$LINENO"; then :
5559 ac_cv_func_alloca_works=yes
a946372e 5560else
f11781c5 5561 ac_cv_func_alloca_works=no
a946372e 5562fi
f11781c5
AK
5563rm -f core conftest.err conftest.$ac_objext \
5564 conftest$ac_exeext conftest.$ac_ext
5565fi
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5567$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5568
f11781c5 5569if test $ac_cv_func_alloca_works = yes; then
a946372e 5570
f11781c5 5571$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5572
a946372e 5573else
f11781c5
AK
5574 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5575# that cause trouble. Some versions do not even contain alloca or
5576# contain a buggy version. If you still want to use their alloca,
5577# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5578
f11781c5 5579ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5580
f11781c5 5581$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5582
a946372e 5583
f11781c5
AK
5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5585$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5586if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5587 $as_echo_n "(cached) " >&6
a946372e 5588else
f11781c5 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5590/* end confdefs.h. */
f11781c5
AK
5591#if defined CRAY && ! defined CRAY2
5592webecray
5593#else
5594wenotbecray
5595#endif
5596
a946372e 5597_ACEOF
f11781c5
AK
5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "webecray" >/dev/null 2>&1; then :
5600 ac_cv_os_cray=yes
a946372e 5601else
f11781c5 5602 ac_cv_os_cray=no
a946372e 5603fi
f11781c5 5604rm -f conftest*
a946372e 5605
f11781c5
AK
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5608$as_echo "$ac_cv_os_cray" >&6; }
5609if test $ac_cv_os_cray = yes; then
5610 for ac_func in _getb67 GETB67 getb67; do
5611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5613if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5614
f11781c5
AK
5615cat >>confdefs.h <<_ACEOF
5616#define CRAY_STACKSEG_END $ac_func
a946372e 5617_ACEOF
a946372e 5618
f11781c5 5619 break
a946372e
AK
5620fi
5621
f11781c5
AK
5622 done
5623fi
a946372e 5624
f11781c5
AK
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5626$as_echo_n "checking stack direction for C alloca... " >&6; }
5627if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5628 $as_echo_n "(cached) " >&6
5629else
f11781c5
AK
5630 if test "$cross_compiling" = yes; then :
5631 ac_cv_c_stack_direction=0
5632else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635$ac_includes_default
5636int
5637find_stack_direction ()
5638{
5639 static char *addr = 0;
5640 auto char dummy;
5641 if (addr == 0)
5642 {
5643 addr = &dummy;
5644 return find_stack_direction ();
5645 }
5646 else
5647 return (&dummy > addr) ? 1 : -1;
5648}
5649
5650int
5651main ()
5652{
5653 return find_stack_direction () < 0;
5654}
5655_ACEOF
5656if ac_fn_c_try_run "$LINENO"; then :
5657 ac_cv_c_stack_direction=1
5658else
5659 ac_cv_c_stack_direction=-1
5660fi
5661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5662 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5663fi
a946372e
AK
5664
5665fi
f11781c5
AK
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5667$as_echo "$ac_cv_c_stack_direction" >&6; }
5668cat >>confdefs.h <<_ACEOF
5669#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5670_ACEOF
5671
f11781c5 5672
a946372e
AK
5673fi
5674
f11781c5
AK
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5676$as_echo_n "checking whether closedir returns void... " >&6; }
5677if test "${ac_cv_func_closedir_void+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
5679else
5680 if test "$cross_compiling" = yes; then :
5681 ac_cv_func_closedir_void=yes
5682else
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685$ac_includes_default
5686#include <$ac_header_dirent>
5687#ifndef __cplusplus
5688int closedir ();
5689#endif
a946372e 5690
f11781c5
AK
5691int
5692main ()
5693{
5694return closedir (opendir (".")) != 0;
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699if ac_fn_c_try_run "$LINENO"; then :
5700 ac_cv_func_closedir_void=no
a946372e 5701else
f11781c5 5702 ac_cv_func_closedir_void=yes
a946372e 5703fi
f11781c5
AK
5704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5705 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5706fi
5707
f11781c5
AK
5708fi
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5710$as_echo "$ac_cv_func_closedir_void" >&6; }
5711if test $ac_cv_func_closedir_void = yes; then
a946372e 5712
f11781c5 5713$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5714
a946372e
AK
5715fi
5716
f11781c5
AK
5717for ac_header in unistd.h
5718do :
5719 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5720if test "x$ac_cv_header_unistd_h" = x""yes; then :
5721 cat >>confdefs.h <<_ACEOF
5722#define HAVE_UNISTD_H 1
5723_ACEOF
a946372e 5724
f11781c5 5725fi
a946372e 5726
f11781c5 5727done
a946372e 5728
f11781c5
AK
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5730$as_echo_n "checking for working chown... " >&6; }
5731if test "${ac_cv_func_chown_works+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
a946372e 5733else
f11781c5
AK
5734 if test "$cross_compiling" = yes; then :
5735 ac_cv_func_chown_works=no
a946372e 5736else
f11781c5
AK
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h. */
5739$ac_includes_default
5740#include <fcntl.h>
a946372e 5741
f11781c5
AK
5742int
5743main ()
5744{
5745 char *f = "conftest.chown";
5746 struct stat before, after;
a946372e 5747
f11781c5
AK
5748 if (creat (f, 0600) < 0)
5749 return 1;
5750 if (stat (f, &before) < 0)
5751 return 1;
5752 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5753 return 1;
5754 if (stat (f, &after) < 0)
5755 return 1;
5756 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5757
f11781c5
AK
5758 ;
5759 return 0;
5760}
5761_ACEOF
5762if ac_fn_c_try_run "$LINENO"; then :
5763 ac_cv_func_chown_works=yes
a946372e 5764else
f11781c5 5765 ac_cv_func_chown_works=no
a946372e 5766fi
f11781c5
AK
5767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5768 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5769fi
5770
f11781c5 5771rm -f conftest.chown
a946372e 5772
f11781c5
AK
5773fi
5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5775$as_echo "$ac_cv_func_chown_works" >&6; }
5776if test $ac_cv_func_chown_works = yes; then
a946372e 5777
f11781c5 5778$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5779
a946372e 5780fi
a946372e 5781
f11781c5
AK
5782for ac_header in vfork.h
5783do :
5784 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5785if test "x$ac_cv_header_vfork_h" = x""yes; then :
5786 cat >>confdefs.h <<_ACEOF
5787#define HAVE_VFORK_H 1
5788_ACEOF
a946372e 5789
f11781c5 5790fi
a946372e 5791
f11781c5 5792done
a946372e 5793
f11781c5
AK
5794for ac_func in fork vfork
5795do :
5796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5797ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5798if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5799 cat >>confdefs.h <<_ACEOF
5800#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5801_ACEOF
a946372e 5802
f11781c5
AK
5803fi
5804done
a946372e 5805
f11781c5
AK
5806if test "x$ac_cv_func_fork" = xyes; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5808$as_echo_n "checking for working fork... " >&6; }
5809if test "${ac_cv_func_fork_works+set}" = set; then :
5810 $as_echo_n "(cached) " >&6
5811else
5812 if test "$cross_compiling" = yes; then :
5813 ac_cv_func_fork_works=cross
5814else
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816/* end confdefs.h. */
5817$ac_includes_default
5818int
5819main ()
5820{
a946372e 5821
f11781c5
AK
5822 /* By Ruediger Kuhlmann. */
5823 return fork () < 0;
a946372e 5824
f11781c5
AK
5825 ;
5826 return 0;
5827}
5828_ACEOF
5829if ac_fn_c_try_run "$LINENO"; then :
5830 ac_cv_func_fork_works=yes
a946372e 5831else
f11781c5
AK
5832 ac_cv_func_fork_works=no
5833fi
5834rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5835 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5836fi
a946372e 5837
f11781c5
AK
5838fi
5839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5840$as_echo "$ac_cv_func_fork_works" >&6; }
5841
a946372e 5842else
f11781c5 5843 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5844fi
f11781c5
AK
5845if test "x$ac_cv_func_fork_works" = xcross; then
5846 case $host in
5847 *-*-amigaos* | *-*-msdosdjgpp*)
5848 # Override, as these systems have only a dummy fork() stub
5849 ac_cv_func_fork_works=no
5850 ;;
5851 *)
5852 ac_cv_func_fork_works=yes
5853 ;;
5854 esac
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5856$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5857fi
f11781c5
AK
5858ac_cv_func_vfork_works=$ac_cv_func_vfork
5859if test "x$ac_cv_func_vfork" = xyes; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5861$as_echo_n "checking for working vfork... " >&6; }
5862if test "${ac_cv_func_vfork_works+set}" = set; then :
5863 $as_echo_n "(cached) " >&6
5864else
5865 if test "$cross_compiling" = yes; then :
5866 ac_cv_func_vfork_works=cross
5867else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869/* end confdefs.h. */
5870/* Thanks to Paul Eggert for this test. */
5871$ac_includes_default
5872#include <sys/wait.h>
5873#ifdef HAVE_VFORK_H
5874# include <vfork.h>
5875#endif
5876/* On some sparc systems, changes by the child to local and incoming
5877 argument registers are propagated back to the parent. The compiler
5878 is told about this with #include <vfork.h>, but some compilers
5879 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5880 static variable whose address is put into a register that is
5881 clobbered by the vfork. */
5882static void
5883#ifdef __cplusplus
5884sparc_address_test (int arg)
5885# else
5886sparc_address_test (arg) int arg;
5887#endif
5888{
5889 static pid_t child;
5890 if (!child) {
5891 child = vfork ();
5892 if (child < 0) {
5893 perror ("vfork");
5894 _exit(2);
5895 }
5896 if (!child) {
5897 arg = getpid();
5898 write(-1, "", 0);
5899 _exit (arg);
5900 }
5901 }
5902}
a946372e 5903
f11781c5
AK
5904int
5905main ()
5906{
5907 pid_t parent = getpid ();
5908 pid_t child;
a946372e 5909
f11781c5 5910 sparc_address_test (0);
a946372e 5911
f11781c5 5912 child = vfork ();
a946372e 5913
f11781c5
AK
5914 if (child == 0) {
5915 /* Here is another test for sparc vfork register problems. This
5916 test uses lots of local variables, at least as many local
5917 variables as main has allocated so far including compiler
5918 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5919 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5920 reuse the register of parent for one of the local variables,
5921 since it will think that parent can't possibly be used any more
5922 in this routine. Assigning to the local variable will thus
5923 munge parent in the parent process. */
5924 pid_t
5925 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5926 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5927 /* Convince the compiler that p..p7 are live; otherwise, it might
5928 use the same hardware register for all 8 local variables. */
5929 if (p != p1 || p != p2 || p != p3 || p != p4
5930 || p != p5 || p != p6 || p != p7)
5931 _exit(1);
a946372e 5932
f11781c5
AK
5933 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5934 from child file descriptors. If the child closes a descriptor
5935 before it execs or exits, this munges the parent's descriptor
5936 as well. Test for this by closing stdout in the child. */
5937 _exit(close(fileno(stdout)) != 0);
5938 } else {
5939 int status;
5940 struct stat st;
5941
5942 while (wait(&status) != child)
5943 ;
5944 return (
5945 /* Was there some problem with vforking? */
5946 child < 0
5947
5948 /* Did the child fail? (This shouldn't happen.) */
5949 || status
5950
5951 /* Did the vfork/compiler bug occur? */
5952 || parent != getpid()
5953
5954 /* Did the file descriptor bug occur? */
5955 || fstat(fileno(stdout), &st) != 0
5956 );
5957 }
5958}
5959_ACEOF
5960if ac_fn_c_try_run "$LINENO"; then :
5961 ac_cv_func_vfork_works=yes
a946372e 5962else
f11781c5 5963 ac_cv_func_vfork_works=no
a946372e 5964fi
f11781c5
AK
5965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5966 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5967fi
f11781c5 5968
a946372e 5969fi
f11781c5
AK
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5971$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5972
f11781c5
AK
5973fi;
5974if test "x$ac_cv_func_fork_works" = xcross; then
5975 ac_cv_func_vfork_works=$ac_cv_func_vfork
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5977$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5978fi
a946372e 5979
f11781c5 5980if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5981
f11781c5 5982$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5983
a946372e 5984else
a946372e 5985
f11781c5
AK
5986$as_echo "#define vfork fork" >>confdefs.h
5987
a946372e 5988fi
f11781c5 5989if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5990
f11781c5 5991$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5992
a946372e 5993fi
f11781c5
AK
5994
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5996$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5997if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
a946372e 5999else
f11781c5
AK
6000 rm -f conftest.sym conftest.file
6001echo >conftest.file
6002if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6003 if test "$cross_compiling" = yes; then :
6004 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6005else
f11781c5 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6007/* end confdefs.h. */
f11781c5
AK
6008$ac_includes_default
6009int
6010main ()
6011{
6012struct stat sbuf;
6013 /* Linux will dereference the symlink and fail, as required by POSIX.
6014 That is better in the sense that it means we will not
6015 have to compile and use the lstat wrapper. */
6016 return lstat ("conftest.sym/", &sbuf) == 0;
6017 ;
6018 return 0;
6019}
a946372e 6020_ACEOF
f11781c5
AK
6021if ac_fn_c_try_run "$LINENO"; then :
6022 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 6023else
f11781c5 6024 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6025fi
f11781c5
AK
6026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6027 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6028fi
a946372e 6029
a946372e 6030else
f11781c5
AK
6031 # If the `ln -s' command failed, then we probably don't even
6032 # have an lstat function.
6033 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6034fi
f11781c5 6035rm -f conftest.sym conftest.file
a946372e 6036
f11781c5
AK
6037fi
6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6039$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 6040
f11781c5 6041test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 6042
f11781c5
AK
6043cat >>confdefs.h <<_ACEOF
6044#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6045_ACEOF
a946372e 6046
a946372e 6047
f11781c5
AK
6048if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6049 case " $LIBOBJS " in
6050 *" lstat.$ac_objext "* ) ;;
6051 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6052 ;;
6053esac
a946372e 6054
f11781c5 6055fi
a946372e 6056
f11781c5
AK
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6058$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6059if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
a946372e 6061else
f11781c5
AK
6062 if test "$cross_compiling" = yes; then :
6063 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6064else
f11781c5
AK
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h. */
6067$ac_includes_default
6068int
6069main ()
6070{
6071struct stat sbuf;
6072 return lstat ("", &sbuf) == 0;
6073 ;
6074 return 0;
6075}
6076_ACEOF
6077if ac_fn_c_try_run "$LINENO"; then :
6078 ac_cv_func_lstat_empty_string_bug=no
6079else
6080 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6081fi
f11781c5
AK
6082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6083 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6084fi
6085
f11781c5
AK
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6088$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6089if test $ac_cv_func_lstat_empty_string_bug = yes; then
6090 case " $LIBOBJS " in
6091 *" lstat.$ac_objext "* ) ;;
6092 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6093 ;;
6094esac
a946372e
AK
6095
6096
f11781c5
AK
6097cat >>confdefs.h <<_ACEOF
6098#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6099_ACEOF
a946372e 6100
a946372e 6101fi
a946372e 6102
f11781c5
AK
6103for ac_header in stdlib.h
6104do :
6105 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6106if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6107 cat >>confdefs.h <<_ACEOF
6108#define HAVE_STDLIB_H 1
6109_ACEOF
6110
a946372e
AK
6111fi
6112
f11781c5 6113done
a946372e 6114
f11781c5
AK
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6116$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6117if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6119else
6120 if test "$cross_compiling" = yes; then :
6121 ac_cv_func_malloc_0_nonnull=no
6122else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124/* end confdefs.h. */
6125#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6126# include <stdlib.h>
6127#else
6128char *malloc ();
6129#endif
a946372e 6130
f11781c5
AK
6131int
6132main ()
6133{
6134return ! malloc (0);
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139if ac_fn_c_try_run "$LINENO"; then :
6140 ac_cv_func_malloc_0_nonnull=yes
a946372e 6141else
f11781c5 6142 ac_cv_func_malloc_0_nonnull=no
a946372e 6143fi
f11781c5
AK
6144rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6145 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6146fi
f11781c5 6147
a946372e 6148fi
f11781c5
AK
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6150$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6151if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6152
f11781c5 6153$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6154
f11781c5
AK
6155else
6156 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6157
f11781c5
AK
6158 case " $LIBOBJS " in
6159 *" malloc.$ac_objext "* ) ;;
6160 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6161 ;;
6162esac
6163
6164
6165$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6166
a946372e 6167fi
a946372e 6168
a946372e 6169
f11781c5
AK
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6171$as_echo_n "checking for working memcmp... " >&6; }
6172if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6173 $as_echo_n "(cached) " >&6
a946372e 6174else
f11781c5
AK
6175 if test "$cross_compiling" = yes; then :
6176 ac_cv_func_memcmp_working=no
6177else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6179/* end confdefs.h. */
6180$ac_includes_default
f11781c5
AK
6181int
6182main ()
6183{
a946372e 6184
f11781c5
AK
6185 /* Some versions of memcmp are not 8-bit clean. */
6186 char c0 = '\100', c1 = '\200', c2 = '\201';
6187 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6188 return 1;
a946372e 6189
f11781c5
AK
6190 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6191 or more and with at least one buffer not starting on a 4-byte boundary.
6192 William Lewis provided this test program. */
6193 {
6194 char foo[21];
6195 char bar[21];
6196 int i;
6197 for (i = 0; i < 4; i++)
6198 {
6199 char *a = foo + i;
6200 char *b = bar + i;
6201 strcpy (a, "--------01111111");
6202 strcpy (b, "--------10000000");
6203 if (memcmp (a, b, 16) >= 0)
6204 return 1;
6205 }
6206 return 0;
6207 }
a946372e 6208
f11781c5
AK
6209 ;
6210 return 0;
6211}
a946372e 6212_ACEOF
f11781c5
AK
6213if ac_fn_c_try_run "$LINENO"; then :
6214 ac_cv_func_memcmp_working=yes
a946372e 6215else
f11781c5
AK
6216 ac_cv_func_memcmp_working=no
6217fi
6218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6219 conftest.$ac_objext conftest.beam conftest.$ac_ext
6220fi
a946372e 6221
a946372e 6222fi
f11781c5
AK
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6224$as_echo "$ac_cv_func_memcmp_working" >&6; }
6225test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6226 *" memcmp.$ac_objext "* ) ;;
6227 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6228 ;;
6229esac
a946372e 6230
a946372e 6231
a946372e 6232
a946372e 6233
f11781c5
AK
6234
6235 for ac_header in $ac_header_list
6236do :
6237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6239"
6240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6241 cat >>confdefs.h <<_ACEOF
6242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6243_ACEOF
6244
a946372e
AK
6245fi
6246
6247done
6248
a946372e 6249
f11781c5
AK
6250
6251
6252
6253
6254
6255
6256for ac_func in getpagesize
6257do :
6258 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6259if test "x$ac_cv_func_getpagesize" = x""yes; then :
6260 cat >>confdefs.h <<_ACEOF
6261#define HAVE_GETPAGESIZE 1
6262_ACEOF
6263
a946372e 6264fi
f11781c5
AK
6265done
6266
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6268$as_echo_n "checking for working mmap... " >&6; }
6269if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
a946372e 6271else
f11781c5
AK
6272 if test "$cross_compiling" = yes; then :
6273 ac_cv_func_mmap_fixed_mapped=no
6274else
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6276/* end confdefs.h. */
6277$ac_includes_default
f11781c5
AK
6278/* malloc might have been renamed as rpl_malloc. */
6279#undef malloc
6280
6281/* Thanks to Mike Haertel and Jim Avera for this test.
6282 Here is a matrix of mmap possibilities:
6283 mmap private not fixed
6284 mmap private fixed at somewhere currently unmapped
6285 mmap private fixed at somewhere already mapped
6286 mmap shared not fixed
6287 mmap shared fixed at somewhere currently unmapped
6288 mmap shared fixed at somewhere already mapped
6289 For private mappings, we should verify that changes cannot be read()
6290 back from the file, nor mmap's back from the file at a different
6291 address. (There have been systems where private was not correctly
6292 implemented like the infamous i386 svr4.0, and systems where the
6293 VM page cache was not coherent with the file system buffer cache
6294 like early versions of FreeBSD and possibly contemporary NetBSD.)
6295 For shared mappings, we should conversely verify that changes get
6296 propagated back to all the places they're supposed to be.
6297
6298 Grep wants private fixed already mapped.
6299 The main things grep needs to know about mmap are:
6300 * does it exist and is it safe to write into the mmap'd area
6301 * how to use it (BSD variants) */
6302
6303#include <fcntl.h>
6304#include <sys/mman.h>
6305
6306#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6307char *malloc ();
6308#endif
6309
6310/* This mess was copied from the GNU getpagesize.h. */
6311#ifndef HAVE_GETPAGESIZE
6312# ifdef _SC_PAGESIZE
6313# define getpagesize() sysconf(_SC_PAGESIZE)
6314# else /* no _SC_PAGESIZE */
6315# ifdef HAVE_SYS_PARAM_H
6316# include <sys/param.h>
6317# ifdef EXEC_PAGESIZE
6318# define getpagesize() EXEC_PAGESIZE
6319# else /* no EXEC_PAGESIZE */
6320# ifdef NBPG
6321# define getpagesize() NBPG * CLSIZE
6322# ifndef CLSIZE
6323# define CLSIZE 1
6324# endif /* no CLSIZE */
6325# else /* no NBPG */
6326# ifdef NBPC
6327# define getpagesize() NBPC
6328# else /* no NBPC */
6329# ifdef PAGESIZE
6330# define getpagesize() PAGESIZE
6331# endif /* PAGESIZE */
6332# endif /* no NBPC */
6333# endif /* no NBPG */
6334# endif /* no EXEC_PAGESIZE */
6335# else /* no HAVE_SYS_PARAM_H */
6336# define getpagesize() 8192 /* punt totally */
6337# endif /* no HAVE_SYS_PARAM_H */
6338# endif /* no _SC_PAGESIZE */
6339
6340#endif /* no HAVE_GETPAGESIZE */
6341
6342int
6343main ()
6344{
6345 char *data, *data2, *data3;
6346 const char *cdata2;
6347 int i, pagesize;
6348 int fd, fd2;
6349
6350 pagesize = getpagesize ();
6351
6352 /* First, make a file with some known garbage in it. */
6353 data = (char *) malloc (pagesize);
6354 if (!data)
6355 return 1;
6356 for (i = 0; i < pagesize; ++i)
6357 *(data + i) = rand ();
6358 umask (0);
6359 fd = creat ("conftest.mmap", 0600);
6360 if (fd < 0)
6361 return 2;
6362 if (write (fd, data, pagesize) != pagesize)
6363 return 3;
6364 close (fd);
6365
6366 /* Next, check that the tail of a page is zero-filled. File must have
6367 non-zero length, otherwise we risk SIGBUS for entire page. */
6368 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6369 if (fd2 < 0)
6370 return 4;
6371 cdata2 = "";
6372 if (write (fd2, cdata2, 1) != 1)
6373 return 5;
6374 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6375 if (data2 == MAP_FAILED)
6376 return 6;
6377 for (i = 0; i < pagesize; ++i)
6378 if (*(data2 + i))
6379 return 7;
6380 close (fd2);
6381 if (munmap (data2, pagesize))
6382 return 8;
6383
6384 /* Next, try to mmap the file at a fixed address which already has
6385 something else allocated at it. If we can, also make sure that
6386 we see the same garbage. */
6387 fd = open ("conftest.mmap", O_RDWR);
6388 if (fd < 0)
6389 return 9;
6390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6391 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6392 return 10;
6393 for (i = 0; i < pagesize; ++i)
6394 if (*(data + i) != *(data2 + i))
6395 return 11;
6396
6397 /* Finally, make sure that changes to the mapped area do not
6398 percolate back to the file as seen by read(). (This is a bug on
6399 some variants of i386 svr4.0.) */
6400 for (i = 0; i < pagesize; ++i)
6401 *(data2 + i) = *(data2 + i) + 1;
6402 data3 = (char *) malloc (pagesize);
6403 if (!data3)
6404 return 12;
6405 if (read (fd, data3, pagesize) != pagesize)
6406 return 13;
6407 for (i = 0; i < pagesize; ++i)
6408 if (*(data + i) != *(data3 + i))
6409 return 14;
6410 close (fd);
6411 return 0;
6412}
a946372e 6413_ACEOF
f11781c5
AK
6414if ac_fn_c_try_run "$LINENO"; then :
6415 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6416else
f11781c5
AK
6417 ac_cv_func_mmap_fixed_mapped=no
6418fi
6419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6420 conftest.$ac_objext conftest.beam conftest.$ac_ext
6421fi
a946372e 6422
a946372e 6423fi
f11781c5
AK
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6425$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6426if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6427
f11781c5 6428$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6429
f11781c5
AK
6430fi
6431rm -f conftest.mmap conftest.txt
6432
6433for ac_header in stdlib.h
6434do :
6435 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6436if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6437 cat >>confdefs.h <<_ACEOF
6438#define HAVE_STDLIB_H 1
a946372e 6439_ACEOF
f11781c5
AK
6440
6441fi
6442
6443done
6444
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6446$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6447if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6449else
6450 if test "$cross_compiling" = yes; then :
6451 ac_cv_func_realloc_0_nonnull=no
6452else
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6454/* end confdefs.h. */
f11781c5
AK
6455#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6456# include <stdlib.h>
6457#else
6458char *realloc ();
6459#endif
6460
6461int
6462main ()
6463{
6464return ! realloc (0, 0);
6465 ;
6466 return 0;
6467}
a946372e 6468_ACEOF
f11781c5
AK
6469if ac_fn_c_try_run "$LINENO"; then :
6470 ac_cv_func_realloc_0_nonnull=yes
a946372e 6471else
f11781c5
AK
6472 ac_cv_func_realloc_0_nonnull=no
6473fi
6474rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6475 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6476fi
6477
f11781c5
AK
6478fi
6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6480$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6481if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6482
f11781c5 6483$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6484
a946372e 6485else
f11781c5
AK
6486 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6487
6488 case " $LIBOBJS " in
6489 *" realloc.$ac_objext "* ) ;;
6490 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6491 ;;
6492esac
a946372e 6493
a946372e 6494
f11781c5
AK
6495$as_echo "#define realloc rpl_realloc" >>confdefs.h
6496
a946372e
AK
6497fi
6498
a946372e 6499
f11781c5
AK
6500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6501$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6502if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6503 $as_echo_n "(cached) " >&6
a946372e 6504else
f11781c5
AK
6505 if test "$cross_compiling" = yes; then :
6506 ac_cv_func_stat_empty_string_bug=yes
6507else
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509/* end confdefs.h. */
6510$ac_includes_default
6511int
6512main ()
6513{
6514struct stat sbuf;
6515 return stat ("", &sbuf) == 0;
6516 ;
6517 return 0;
6518}
6519_ACEOF
6520if ac_fn_c_try_run "$LINENO"; then :
6521 ac_cv_func_stat_empty_string_bug=no
6522else
6523 ac_cv_func_stat_empty_string_bug=yes
a946372e 6524fi
f11781c5
AK
6525rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6526 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6527fi
6528
8c4e8a18 6529fi
f11781c5
AK
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6531$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6532if test $ac_cv_func_stat_empty_string_bug = yes; then
6533 case " $LIBOBJS " in
6534 *" stat.$ac_objext "* ) ;;
6535 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6536 ;;
6537esac
8c4e8a18
FDN
6538
6539
6540cat >>confdefs.h <<_ACEOF
f11781c5 6541#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6542_ACEOF
6543
6544fi
6545
f11781c5
AK
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6547$as_echo_n "checking for working strtod... " >&6; }
6548if test "${ac_cv_func_strtod+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
66fd4529 6550else
f11781c5
AK
6551 if test "$cross_compiling" = yes; then :
6552 ac_cv_func_strtod=no
6553else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
66fd4529 6556
f11781c5
AK
6557$ac_includes_default
6558#ifndef strtod
6559double strtod ();
6560#endif
6561int
6562main()
6563{
6564 {
6565 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6566 char *string = " +69";
6567 char *term;
6568 double value;
6569 value = strtod (string, &term);
6570 if (value != 69 || term != (string + 4))
6571 return 1;
6572 }
66fd4529 6573
f11781c5
AK
6574 {
6575 /* Under Solaris 2.4, strtod returns the wrong value for the
6576 terminating character under some conditions. */
6577 char *string = "NaN";
6578 char *term;
6579 strtod (string, &term);
6580 if (term != string && *(term - 1) == 0)
6581 return 1;
6582 }
6583 return 0;
6584}
66fd4529 6585
f11781c5
AK
6586_ACEOF
6587if ac_fn_c_try_run "$LINENO"; then :
6588 ac_cv_func_strtod=yes
66fd4529 6589else
f11781c5
AK
6590 ac_cv_func_strtod=no
6591fi
6592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6593 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6594fi
6595
f11781c5
AK
6596fi
6597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6598$as_echo "$ac_cv_func_strtod" >&6; }
6599if test $ac_cv_func_strtod = no; then
6600 case " $LIBOBJS " in
6601 *" strtod.$ac_objext "* ) ;;
6602 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6603 ;;
6604esac
71082be4 6605
f11781c5
AK
6606ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6607if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6608
66fd4529 6609fi
a946372e 6610
f11781c5
AK
6611if test $ac_cv_func_pow = no; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6613$as_echo_n "checking for pow in -lm... " >&6; }
6614if test "${ac_cv_lib_m_pow+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616else
6617 ac_check_lib_save_LIBS=$LIBS
6618LIBS="-lm $LIBS"
6619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
90c80887 6621
f11781c5
AK
6622/* Override any GCC internal prototype to avoid an error.
6623 Use char because int might match the return type of a GCC
6624 builtin and then its argument prototype would still apply. */
6625#ifdef __cplusplus
6626extern "C"
6627#endif
6628char pow ();
6629int
6630main ()
6631{
6632return pow ();
6633 ;
6634 return 0;
6635}
6636_ACEOF
6637if ac_fn_c_try_link "$LINENO"; then :
6638 ac_cv_lib_m_pow=yes
90c80887 6639else
f11781c5 6640 ac_cv_lib_m_pow=no
90c80887 6641fi
f11781c5
AK
6642rm -f core conftest.err conftest.$ac_objext \
6643 conftest$ac_exeext conftest.$ac_ext
6644LIBS=$ac_check_lib_save_LIBS
90c80887 6645fi
f11781c5
AK
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6647$as_echo "$ac_cv_lib_m_pow" >&6; }
6648if test "x$ac_cv_lib_m_pow" = x""yes; then :
6649 POW_LIB=-lm
90c80887 6650else
f11781c5
AK
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6652$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6653fi
f11781c5 6654
90c80887
AK
6655fi
6656
f11781c5
AK
6657fi
6658
6659for ac_func in vprintf
6660do :
6661 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6662if test "x$ac_cv_func_vprintf" = x""yes; then :
6663 cat >>confdefs.h <<_ACEOF
6664#define HAVE_VPRINTF 1
6665_ACEOF
90c80887 6666
f11781c5
AK
6667ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6668if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6669
f11781c5 6670$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6671
90c80887 6672fi
90c80887 6673
f11781c5
AK
6674fi
6675done
90c80887 6676
90c80887 6677
90c80887 6678
f11781c5
AK
6679################################################################################
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6681$as_echo_n "checking whether to use static linking... " >&6; }
6682# Check whether --enable-static_link was given.
6683if test "${enable_static_link+set}" = set; then :
6684 enableval=$enable_static_link; STATIC_LINK=$enableval
6685else
6686 STATIC_LINK=no
6687fi
90c80887 6688
f11781c5
AK
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6690$as_echo "$STATIC_LINK" >&6; }
90c80887 6691
f11781c5 6692################################################################################
90c80887 6693
90c80887 6694
f11781c5
AK
6695################################################################################
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6697$as_echo_n "checking file owner... " >&6; }
90c80887 6698
f11781c5
AK
6699# Check whether --with-user was given.
6700if test "${with_user+set}" = set; then :
6701 withval=$with_user; OWNER=$withval
6702fi
90c80887 6703
f11781c5
AK
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6705$as_echo "$OWNER" >&6; }
90c80887 6706
f11781c5
AK
6707if test x$OWNER != x; then
6708 INSTALL="$INSTALL -o $OWNER"
90c80887 6709fi
a946372e 6710
f11781c5
AK
6711################################################################################
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6713$as_echo_n "checking group owner... " >&6; }
a946372e 6714
f11781c5
AK
6715# Check whether --with-group was given.
6716if test "${with_group+set}" = set; then :
6717 withval=$with_group; GROUP=$withval
a946372e 6718fi
f11781c5
AK
6719
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6721$as_echo "$GROUP" >&6; }
6722
6723if test x$GROUP != x; then
6724 INSTALL="$INSTALL -g $GROUP"
a946372e 6725fi
f11781c5
AK
6726
6727################################################################################
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6729$as_echo_n "checking device node uid... " >&6; }
6730
6731
6732# Check whether --with-device-uid was given.
6733if test "${with_device_uid+set}" = set; then :
6734 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6735else
f11781c5 6736 DM_DEVICE_UID=0
a946372e
AK
6737fi
6738
f11781c5
AK
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6740$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6741
f11781c5
AK
6742################################################################################
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6744$as_echo_n "checking device node gid... " >&6; }
a946372e 6745
a946372e 6746
f11781c5
AK
6747# Check whether --with-device-gid was given.
6748if test "${with_device_gid+set}" = set; then :
6749 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6750else
f11781c5 6751 DM_DEVICE_GID=0
a946372e 6752fi
a946372e 6753
f11781c5
AK
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6755$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6756
f11781c5
AK
6757################################################################################
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6759$as_echo_n "checking device node mode... " >&6; }
90c80887 6760
90c80887 6761
f11781c5
AK
6762# Check whether --with-device-mode was given.
6763if test "${with_device_mode+set}" = set; then :
6764 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6765else
6766 DM_DEVICE_MODE=0600
6767fi
90c80887 6768
f11781c5
AK
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6770$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6771
d0df875d
ZK
6772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6773$as_echo_n "checking when to create device nodes... " >&6; }
6774
6775# Check whether --with-device-nodes-on was given.
6776if test "${with_device_nodes_on+set}" = set; then :
6777 withval=$with_device_nodes_on; ADD_NODE=$withval
6778else
6779 ADD_NODE=resume
6780fi
6781
6782case "$ADD_NODE" in
6783 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6784 create) add_on=DM_ADD_NODE_ON_CREATE;;
6785 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6786esac
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6788$as_echo "on $ADD_NODE" >&6; }
6789
6790cat >>confdefs.h <<_ACEOF
6791#define DEFAULT_DM_ADD_NODE $add_on
6792_ACEOF
6793
6794
c64d7cd3
PR
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6796$as_echo_n "checking default name mangling... " >&6; }
6797
6798# Check whether --with-default-name-mangling was given.
6799if test "${with_default_name_mangling+set}" = set; then :
6800 withval=$with_default_name_mangling; MANGLING=$withval
6801else
6802 MANGLING=auto
6803fi
6804
6805case "$MANGLING" in
6806 auto) mangling=DM_STRING_MANGLING_AUTO;;
6807 disabled) mangling=DM_STRING_MANGLING_NONE;;
6808 hex) mangling=DM_STRING_MANGLING_HEX;;
6809 *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6810esac
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6812$as_echo "$MANGLING" >&6; }
6813
6814cat >>confdefs.h <<_ACEOF
6815#define DEFAULT_DM_NAME_MANGLING $mangling
6816_ACEOF
6817
6818
f11781c5
AK
6819################################################################################
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6821$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6822# Check whether --enable-lvm1_fallback was given.
6823if test "${enable_lvm1_fallback+set}" = set; then :
6824 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6825else
6826 LVM1_FALLBACK=no
6827fi
90c80887 6828
f11781c5
AK
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6830$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6831
f11781c5 6832if test x$LVM1_FALLBACK = xyes; then
90c80887 6833
f11781c5 6834$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6835
f11781c5 6836fi
90c80887 6837
f11781c5
AK
6838################################################################################
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6840$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6841
6842# Check whether --with-lvm1 was given.
6843if test "${with_lvm1+set}" = set; then :
6844 withval=$with_lvm1; LVM1=$withval
a946372e 6845else
f11781c5 6846 LVM1=internal
a946372e 6847fi
f11781c5
AK
6848
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6850$as_echo "$LVM1" >&6; }
6851
6852if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6853 then as_fn_error $? "--with-lvm1 parameter invalid
6854" "$LINENO" 5
6855fi;
6856
6857if test x$LVM1 = xinternal; then
6858
6859$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6860
a946372e
AK
6861fi
6862
6863################################################################################
f11781c5
AK
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6865$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6866
6867# Check whether --with-pool was given.
6868if test "${with_pool+set}" = set; then :
6869 withval=$with_pool; POOL=$withval
a946372e 6870else
f11781c5 6871 POOL=internal
a946372e
AK
6872fi
6873
f11781c5
AK
6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6875$as_echo "$POOL" >&6; }
6876
6877if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6878 then as_fn_error $? "--with-pool parameter invalid
6879" "$LINENO" 5
6880fi;
6881
6882if test x$POOL = xinternal; then
6883
6884$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6885
a946372e
AK
6886fi
6887
6888################################################################################
f11781c5
AK
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6890$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6891
f11781c5
AK
6892# Check whether --with-cluster was given.
6893if test "${with_cluster+set}" = set; then :
6894 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6895fi
6896
f11781c5
AK
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6898$as_echo "$CLUSTER" >&6; }
a946372e 6899
f11781c5
AK
6900if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6901 then as_fn_error $? "--with-cluster parameter invalid
6902" "$LINENO" 5
6903fi;
fddafd51 6904
f11781c5 6905if test x$CLUSTER = xinternal; then
5556819a 6906
f11781c5 6907$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6908
fddafd51 6909fi
f11781c5
AK
6910
6911################################################################################
6912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6913$as_echo_n "checking whether to include snapshots... " >&6; }
6914
6915# Check whether --with-snapshots was given.
6916if test "${with_snapshots+set}" = set; then :
6917 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6918else
f11781c5 6919 SNAPSHOTS=internal
fddafd51
ZK
6920fi
6921
f11781c5
AK
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6923$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6924
f11781c5
AK
6925if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6926 then as_fn_error $? "--with-snapshots parameter invalid
6927" "$LINENO" 5
6928fi;
fddafd51 6929
f11781c5
AK
6930if test x$SNAPSHOTS = xinternal; then
6931
6932$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6933
6934fi
6935
6936################################################################################
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6938$as_echo_n "checking whether to include mirrors... " >&6; }
6939
6940# Check whether --with-mirrors was given.
6941if test "${with_mirrors+set}" = set; then :
6942 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6943else
f11781c5 6944 MIRRORS=internal
fddafd51
ZK
6945fi
6946
f11781c5
AK
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6948$as_echo "$MIRRORS" >&6; }
fddafd51 6949
f11781c5
AK
6950if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6951 then as_fn_error $? "--with-mirrors parameter invalid
6952" "$LINENO" 5
6953fi;
6954
6955if test x$MIRRORS = xinternal; then
6956
6957$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6958
6959fi
6960
cac52ca4
JEB
6961################################################################################
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6963$as_echo_n "checking whether to include raid... " >&6; }
6964
6965# Check whether --with-raid was given.
6966if test "${with_raid+set}" = set; then :
6967 withval=$with_raid; RAID=$withval
6968else
6969 RAID=internal
6970fi
6971
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6973$as_echo "$RAID" >&6; }
6974
6975if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6976 then as_fn_error $? "--with-raid parameter invalid
6977" "$LINENO" 5
6978fi;
6979
6980if test x$RAID = xinternal; then
6981
6982$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6983
6984fi
6985
f11781c5
AK
6986################################################################################
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6988$as_echo_n "checking whether to include replicators... " >&6; }
6989
6990# Check whether --with-replicators was given.
6991if test "${with_replicators+set}" = set; then :
6992 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6993else
f11781c5
AK
6994 REPLICATORS=none
6995fi
fd4728e1 6996
f11781c5
AK
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6998$as_echo "$REPLICATORS" >&6; }
6999
7000case "$REPLICATORS" in
7001 none|shared) ;;
7002 internal)
7003$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
7004 ;;
7005 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 7006esac
f11781c5 7007
3ba4a195
ZK
7008################################################################################
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
7010$as_echo_n "checking whether to include thin provisioning... " >&6; }
7011
7012# Check whether --with-thin was given.
7013if test "${with_thin+set}" = set; then :
7014 withval=$with_thin; THIN=$withval
7015else
7016 THIN=none
7017fi
7018
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
7020$as_echo "$THIN" >&6; }
7021
7022case "$THIN" in
7023 none|shared) ;;
7024 internal)
7025$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7026 ;;
7027 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7028esac
7029
f61cacad
ZK
7030case "$THIN" in
7031 internal|shared)
7032
7033# Check whether --with-thin-check was given.
7034if test "${with_thin_check+set}" = set; then :
7035 withval=$with_thin_check; THIN_CHECK_CMD=$withval
7036else
7037 THIN_CHECK_CMD="autodetect"
7038fi
7039
7040 # Empty means a config way to ignore thin checking
7041 if test "$THIN_CHECK_CMD" = "autodetect"; then
7042 # Extract the first word of "thin_check", so it can be a program name with args.
7043set dummy thin_check; ac_word=$2
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045$as_echo_n "checking for $ac_word... " >&6; }
7046if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7048else
7049 case $THIN_CHECK_CMD in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
7052 ;;
7053 *)
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061 ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066 done
7067IFS=$as_save_IFS
7068
7069 ;;
7070esac
7071fi
7072THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
7073if test -n "$THIN_CHECK_CMD"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
7075$as_echo "$THIN_CHECK_CMD" >&6; }
7076else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078$as_echo "no" >&6; }
7079fi
7080
7081
7082 test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5
7083 fi
909887be
ZK
7084 ;;
7085esac
f61cacad
ZK
7086
7087
7088cat >>confdefs.h <<_ACEOF
7089#define THIN_CHECK_CMD "$THIN_CHECK_CMD"
7090_ACEOF
7091
f61cacad
ZK
7092
7093
f11781c5
AK
7094################################################################################
7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7096$as_echo_n "checking whether to enable readline... " >&6; }
7097# Check whether --enable-readline was given.
7098if test "${enable_readline+set}" = set; then :
7099 enableval=$enable_readline; READLINE=$enableval
fd4728e1 7100else
f11781c5 7101 READLINE=maybe
fd4728e1
ZK
7102fi
7103
f11781c5
AK
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7105$as_echo "$READLINE" >&6; }
fd4728e1 7106
f11781c5
AK
7107################################################################################
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7109$as_echo_n "checking whether to enable realtime support... " >&6; }
7110# Check whether --enable-realtime was given.
7111if test "${enable_realtime+set}" = set; then :
7112 enableval=$enable_realtime; REALTIME=$enableval
5556819a 7113fi
d0191583 7114
f11781c5
AK
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7116$as_echo "$REALTIME" >&6; }
7117
54b362f9 7118################################################################################
f11781c5
AK
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7120$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7121# Check whether --enable-ocf was given.
7122if test "${enable_ocf+set}" = set; then :
7123 enableval=$enable_ocf; OCF=$enableval
54b362f9 7124else
f11781c5 7125 OCF=no
54b362f9
AK
7126fi
7127
f11781c5
AK
7128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7129$as_echo "$OCF" >&6; }
54b362f9 7130
606d0858
AK
7131# Check whether --with-ocfdir was given.
7132if test "${with_ocfdir+set}" = set; then :
7133 withval=$with_ocfdir; OCFDIR=$withval
7134else
7135 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7136fi
7137
7138
f11781c5
AK
7139################################################################################
7140pkg_config_init() {
7141
7142
7143
7144
7145
7146
7147if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7148 if test -n "$ac_tool_prefix"; then
7149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7152$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7153if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7154 $as_echo_n "(cached) " >&6
7155else
f11781c5 7156 case $PKG_CONFIG in
54b362f9 7157 [\\/]* | ?:[\\/]*)
f11781c5 7158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7159 ;;
7160 *)
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162for as_dir in $PATH
7163do
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
f11781c5 7166 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7170 break 2
7171 fi
7172done
f11781c5 7173 done
54b362f9
AK
7174IFS=$as_save_IFS
7175
7176 ;;
7177esac
7178fi
f11781c5
AK
7179PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7180if test -n "$PKG_CONFIG"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7182$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7183else
f11781c5 7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7185$as_echo "no" >&6; }
7186fi
7187
7188
f11781c5
AK
7189fi
7190if test -z "$ac_cv_path_PKG_CONFIG"; then
7191 ac_pt_PKG_CONFIG=$PKG_CONFIG
7192 # Extract the first word of "pkg-config", so it can be a program name with args.
7193set dummy pkg-config; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7195$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7196if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7197 $as_echo_n "(cached) " >&6
7198else
f11781c5 7199 case $ac_pt_PKG_CONFIG in
54b362f9 7200 [\\/]* | ?:[\\/]*)
f11781c5 7201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7202 ;;
7203 *)
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
f11781c5 7209 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7213 break 2
7214 fi
7215done
f11781c5 7216 done
54b362f9
AK
7217IFS=$as_save_IFS
7218
7219 ;;
7220esac
7221fi
f11781c5
AK
7222ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7223if test -n "$ac_pt_PKG_CONFIG"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7225$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7226else
f11781c5 7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7228$as_echo "no" >&6; }
7229fi
7230
f11781c5
AK
7231 if test "x$ac_pt_PKG_CONFIG" = x; then
7232 PKG_CONFIG=""
7233 else
7234 case $cross_compiling:$ac_tool_warned in
7235yes:)
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238ac_tool_warned=yes ;;
7239esac
7240 PKG_CONFIG=$ac_pt_PKG_CONFIG
7241 fi
d1e8046f 7242else
f11781c5 7243 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7244fi
7245
f11781c5
AK
7246fi
7247if test -n "$PKG_CONFIG"; then
7248 _pkg_min_version=0.9.0
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7250$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7251 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7253$as_echo "yes" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257 PKG_CONFIG=""
7258 fi
7259fi
d1e8046f 7260
f11781c5
AK
7261pkg_failed=no
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7263$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7264
f11781c5
AK
7265if test -n "$PKGCONFIGINIT_CFLAGS"; then
7266 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7267 elif test -n "$PKG_CONFIG"; then
7268 if test -n "$PKG_CONFIG" && \
7269 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7270 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7271 ac_status=$?
7272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7273 test $ac_status = 0; }; then
7274 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7275else
f11781c5
AK
7276 pkg_failed=yes
7277fi
7278 else
7279 pkg_failed=untried
7280fi
7281if test -n "$PKGCONFIGINIT_LIBS"; then
7282 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7283 elif test -n "$PKG_CONFIG"; then
7284 if test -n "$PKG_CONFIG" && \
7285 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7286 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7287 ac_status=$?
f11781c5
AK
7288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7289 test $ac_status = 0; }; then
7290 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7291else
f11781c5
AK
7292 pkg_failed=yes
7293fi
7294 else
7295 pkg_failed=untried
d1e8046f
AK
7296fi
7297
d1e8046f 7298
f11781c5
AK
7299
7300if test $pkg_failed = yes; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7302$as_echo "no" >&6; }
7303
7304if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7305 _pkg_short_errors_supported=yes
7306else
7307 _pkg_short_errors_supported=no
7308fi
7309 if test $_pkg_short_errors_supported = yes; then
7310 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7311 else
7312 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7313 fi
7314 # Put the nasty error message in config.log where it belongs
7315 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7316
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7318$as_echo "pkg-config initialized" >&6; }
7319elif test $pkg_failed = untried; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321$as_echo "no" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7323$as_echo "pkg-config initialized" >&6; }
d1e8046f 7324else
f11781c5
AK
7325 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7326 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7328$as_echo "yes" >&6; }
d1e8046f 7329
d1e8046f 7330fi
f11781c5
AK
7331 PKGCONFIG_INIT=1
7332}
d1e8046f 7333
5723db01
PR
7334################################################################################
7335
7336
7337# Check whether --with-default-pid-dir was given.
7338if test "${with_default_pid_dir+set}" = set; then :
7339 withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval"
7340else
7341 DEFAULT_PID_DIR="/var/run"
7342fi
7343
7344
7345cat >>confdefs.h <<_ACEOF
7346#define DEFAULT_PID_DIR "$DEFAULT_PID_DIR"
7347_ACEOF
7348
7349
7350
7351
7352# Check whether --with-default-dm-run-dir was given.
7353if test "${with_default_dm_run_dir+set}" = set; then :
7354 withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval"
7355else
7356 DEFAULT_DM_RUN_DIR="/var/run"
7357fi
7358
7359
7360cat >>confdefs.h <<_ACEOF
7361#define DEFAULT_DM_RUN_DIR "$DEFAULT_DM_RUN_DIR"
7362_ACEOF
7363
7364
7365
7366
7367# Check whether --with-default-run-dir was given.
7368if test "${with_default_run_dir+set}" = set; then :
7369 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
7370else
7371 DEFAULT_RUN_DIR="/var/run/lvm"
7372fi
7373
7374
7375cat >>confdefs.h <<_ACEOF
7376#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
7377_ACEOF
7378
7379
f11781c5
AK
7380################################################################################
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7382$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7383
f11781c5
AK
7384# Check whether --with-clvmd was given.
7385if test "${with_clvmd+set}" = set; then :
7386 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7387else
f11781c5 7388 CLVMD=none
d1e8046f 7389fi
d1e8046f 7390
f11781c5
AK
7391if test x$CLVMD = xyes; then
7392 CLVMD=all
d1e8046f 7393fi
f11781c5
AK
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7395$as_echo "$CLVMD" >&6; }
d1e8046f 7396
f11781c5
AK
7397if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7398 CLUSTER=internal
d1e8046f
AK
7399fi
7400
f11781c5
AK
7401if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7402 pkg_config_init
7403fi
d1e8046f 7404
f11781c5
AK
7405CLVMD_CMANAGERS=""
7406CLVMD_NEEDS_QDISKD=no
d1e8046f 7407
f11781c5 7408if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7409 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7410fi
f11781c5
AK
7411if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7412 BUILDCMAN=yes
7413 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7414 CLVMD_NEEDS_QDISKD=yes
7415fi
7416if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7417 BUILDCOROSYNC=yes
7418 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7419fi
7420if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7421 BUILDOPENAIS=yes
7422 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7423fi
7424if test x$CLVMD_NEEDS_QDISKD != xno; then
7425 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7426fi
7427
f11781c5
AK
7428soft_bailout() {
7429 NOTFOUND=1
7430}
ad6254c5 7431
f11781c5
AK
7432hard_bailout() {
7433 as_fn_error $? "bailing out" "$LINENO" 5
7434}
ad6254c5 7435
f11781c5
AK
7436if test x$CLVMD = xall; then
7437 bailout=soft_bailout
f11781c5
AK
7438 BUILDCMAN=yes
7439 BUILDCOROSYNC=yes
7440 BUILDOPENAIS=yes
a5f46f6a 7441else
f11781c5 7442 bailout=hard_bailout
a5f46f6a
AK
7443fi
7444
f11781c5
AK
7445check_lib_no_libs() {
7446 lib_no_libs_arg1=$1
7447 shift
7448 lib_no_libs_arg2=$1
7449 shift
7450 lib_no_libs_args=$@
7451 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7453$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7454if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7455 $as_echo_n "(cached) " >&6
7456else
7457 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7458LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7460/* end confdefs.h. */
7461
7462/* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7465#ifdef __cplusplus
7466extern "C"
7467#endif
f11781c5 7468char $lib_no_libs_arg2 ();
90c80887
AK
7469int
7470main ()
7471{
f11781c5 7472return $lib_no_libs_arg2 ();
90c80887
AK
7473 ;
7474 return 0;
7475}
7476_ACEOF
f11781c5
AK
7477if ac_fn_c_try_link "$LINENO"; then :
7478 eval "$as_ac_Lib=yes"
90c80887 7479else
f11781c5 7480 eval "$as_ac_Lib=no"
90c80887 7481fi
f11781c5
AK
7482rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7484LIBS=$ac_check_lib_save_LIBS
7485fi
f11781c5
AK
7486eval ac_res=\$$as_ac_Lib
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7488$as_echo "$ac_res" >&6; }
7489if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7490 cat >>confdefs.h <<_ACEOF
7491#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7492_ACEOF
7493
7494 LIBS="-l$lib_no_libs_arg1 $LIBS"
7495
90c80887 7496else
f11781c5 7497 $bailout
90c80887
AK
7498fi
7499
f11781c5
AK
7500 LIBS=$ac_check_lib_save_LIBS
7501}
90c80887 7502
f11781c5 7503if test x$BUILDCMAN = xyes; then
ad6254c5 7504
f11781c5
AK
7505pkg_failed=no
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7507$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7508
f11781c5
AK
7509if test -n "$CMAN_CFLAGS"; then
7510 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7511 elif test -n "$PKG_CONFIG"; then
7512 if test -n "$PKG_CONFIG" && \
7513 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7514 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7515 ac_status=$?
7516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7517 test $ac_status = 0; }; then
7518 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7519else
7520 pkg_failed=yes
ad6254c5 7521fi
f11781c5
AK
7522 else
7523 pkg_failed=untried
ad6254c5 7524fi
f11781c5
AK
7525if test -n "$CMAN_LIBS"; then
7526 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
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 \"libcman\""; } >&5
7530 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 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_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7535else
f11781c5
AK
7536 pkg_failed=yes
7537fi
7538 else
7539 pkg_failed=untried
93bd259b
AK
7540fi
7541
f11781c5
AK
7542
7543
7544if test $pkg_failed = yes; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546$as_echo "no" >&6; }
7547
7548if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7549 _pkg_short_errors_supported=yes
7550else
7551 _pkg_short_errors_supported=no
93bd259b 7552fi
f11781c5
AK
7553 if test $_pkg_short_errors_supported = yes; then
7554 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7555 else
7556 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7557 fi
7558 # Put the nasty error message in config.log where it belongs
7559 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7560
f11781c5
AK
7561 NOTFOUND=0
7562 for ac_header in libcman.h
7563do :
7564 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7565if test "x$ac_cv_header_libcman_h" = x""yes; then :
7566 cat >>confdefs.h <<_ACEOF
7567#define HAVE_LIBCMAN_H 1
93bd259b
AK
7568_ACEOF
7569
f11781c5
AK
7570else
7571 $bailout
93bd259b
AK
7572fi
7573
f11781c5 7574done
93bd259b 7575
f11781c5
AK
7576 check_lib_no_libs cman cman_init
7577 if test $NOTFOUND = 0; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7579$as_echo "no pkg for libcman, using -lcman" >&6; }
7580 CMAN_LIBS="-lcman"
7581 HAVE_CMAN=yes
7582 fi
7583elif test $pkg_failed = untried; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585$as_echo "no" >&6; }
7586 NOTFOUND=0
7587 for ac_header in libcman.h
7588do :
7589 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7590if test "x$ac_cv_header_libcman_h" = x""yes; then :
7591 cat >>confdefs.h <<_ACEOF
7592#define HAVE_LIBCMAN_H 1
93bd259b 7593_ACEOF
93bd259b 7594
93bd259b 7595else
f11781c5 7596 $bailout
93bd259b
AK
7597fi
7598
f11781c5
AK
7599done
7600
7601 check_lib_no_libs cman cman_init
7602 if test $NOTFOUND = 0; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7604$as_echo "no pkg for libcman, using -lcman" >&6; }
7605 CMAN_LIBS="-lcman"
7606 HAVE_CMAN=yes
7607 fi
7608else
7609 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7610 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7612$as_echo "yes" >&6; }
7613 HAVE_CMAN=yes
93bd259b 7614fi
f11781c5
AK
7615 CHECKCONFDB=yes
7616 CHECKDLM=yes
93bd259b
AK
7617fi
7618
f11781c5
AK
7619if test x$BUILDCOROSYNC = xyes || \
7620 test x$BUILDOPENAIS = xyes; then
93bd259b 7621
f11781c5
AK
7622pkg_failed=no
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7624$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7625
f11781c5
AK
7626if test -n "$COROSYNC_CFLAGS"; then
7627 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7628 elif test -n "$PKG_CONFIG"; then
7629 if test -n "$PKG_CONFIG" && \
7630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7631 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7632 ac_status=$?
7633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7634 test $ac_status = 0; }; then
7635 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7636else
f11781c5
AK
7637 pkg_failed=yes
7638fi
7639 else
7640 pkg_failed=untried
7641fi
7642if test -n "$COROSYNC_LIBS"; then
7643 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7644 elif test -n "$PKG_CONFIG"; then
7645 if test -n "$PKG_CONFIG" && \
7646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7647 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7648 ac_status=$?
f11781c5
AK
7649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; }; then
7651 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7652else
f11781c5 7653 pkg_failed=yes
ad6254c5 7654fi
f11781c5
AK
7655 else
7656 pkg_failed=untried
ad6254c5 7657fi
ad6254c5 7658
72b2cb61 7659
72b2cb61 7660
f11781c5
AK
7661if test $pkg_failed = yes; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
19a2c6e0 7664
f11781c5
AK
7665if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7666 _pkg_short_errors_supported=yes
7667else
7668 _pkg_short_errors_supported=no
ad6254c5 7669fi
f11781c5
AK
7670 if test $_pkg_short_errors_supported = yes; then
7671 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7672 else
7673 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7674 fi
7675 # Put the nasty error message in config.log where it belongs
7676 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7677
f11781c5
AK
7678 $bailout
7679elif test $pkg_failed = untried; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681$as_echo "no" >&6; }
7682 $bailout
7683else
7684 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7685 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687$as_echo "yes" >&6; }
7688 HAVE_COROSYNC=yes
7689fi
7690 CHECKCONFDB=yes
b6d7a484 7691 CHECKCMAP=yes
ad6254c5
AK
7692fi
7693
f11781c5 7694if test x$BUILDCOROSYNC = xyes; then
f30875db 7695
f11781c5
AK
7696pkg_failed=no
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7698$as_echo_n "checking for QUORUM... " >&6; }
7699
7700if test -n "$QUORUM_CFLAGS"; then
7701 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7702 elif test -n "$PKG_CONFIG"; then
7703 if test -n "$PKG_CONFIG" && \
7704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7705 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7706 ac_status=$?
f11781c5
AK
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; }; then
7709 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7710else
f11781c5 7711 pkg_failed=yes
f30875db 7712fi
f11781c5
AK
7713 else
7714 pkg_failed=untried
f30875db 7715fi
f11781c5
AK
7716if test -n "$QUORUM_LIBS"; then
7717 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7718 elif test -n "$PKG_CONFIG"; then
7719 if test -n "$PKG_CONFIG" && \
7720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7721 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7722 ac_status=$?
7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724 test $ac_status = 0; }; then
7725 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7726else
f11781c5 7727 pkg_failed=yes
f30875db 7728fi
f11781c5
AK
7729 else
7730 pkg_failed=untried
7731fi
7732
f30875db 7733
f11781c5
AK
7734
7735if test $pkg_failed = yes; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737$as_echo "no" >&6; }
7738
7739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7740 _pkg_short_errors_supported=yes
7741else
7742 _pkg_short_errors_supported=no
f30875db 7743fi
f11781c5
AK
7744 if test $_pkg_short_errors_supported = yes; then
7745 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7746 else
7747 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7748 fi
7749 # Put the nasty error message in config.log where it belongs
7750 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7751
f11781c5
AK
7752 $bailout
7753elif test $pkg_failed = untried; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
7756 $bailout
7757else
7758 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7759 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7761$as_echo "yes" >&6; }
7762 HAVE_QUORUM=yes
7763fi
7764 CHECKCPG=yes
7765 CHECKDLM=yes
d0191583
JM
7766fi
7767
f11781c5 7768if test x$BUILDOPENAIS = xyes; then
d0191583 7769
f11781c5
AK
7770pkg_failed=no
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7772$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7773
f11781c5
AK
7774if test -n "$SALCK_CFLAGS"; then
7775 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7776 elif test -n "$PKG_CONFIG"; then
7777 if test -n "$PKG_CONFIG" && \
7778 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7779 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7780 ac_status=$?
7781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7782 test $ac_status = 0; }; then
7783 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7784else
7785 pkg_failed=yes
7786fi
7787 else
7788 pkg_failed=untried
7789fi
7790if test -n "$SALCK_LIBS"; then
7791 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7792 elif test -n "$PKG_CONFIG"; then
7793 if test -n "$PKG_CONFIG" && \
7794 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7795 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7796 ac_status=$?
f11781c5
AK
7797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7798 test $ac_status = 0; }; then
7799 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7800else
f11781c5 7801 pkg_failed=yes
8a2fc586 7802fi
f11781c5
AK
7803 else
7804 pkg_failed=untried
8a2fc586 7805fi
d0191583 7806
d0191583 7807
f8f6ec92 7808
f11781c5
AK
7809if test $pkg_failed = yes; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811$as_echo "no" >&6; }
8a2fc586 7812
f11781c5
AK
7813if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7814 _pkg_short_errors_supported=yes
ad6254c5 7815else
f11781c5
AK
7816 _pkg_short_errors_supported=no
7817fi
7818 if test $_pkg_short_errors_supported = yes; then
7819 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7820 else
7821 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7822 fi
7823 # Put the nasty error message in config.log where it belongs
7824 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7825
f11781c5
AK
7826 $bailout
7827elif test $pkg_failed = untried; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7829$as_echo "no" >&6; }
7830 $bailout
ad6254c5 7831else
f11781c5
AK
7832 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7833 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7835$as_echo "yes" >&6; }
7836 HAVE_SALCK=yes
ad6254c5 7837fi
f11781c5 7838 CHECKCPG=yes
ad6254c5 7839fi
ad6254c5 7840
72b2cb61 7841
f8f6ec92 7842
f11781c5 7843if test x$CHECKCONFDB = xyes; then
f8f6ec92 7844
f11781c5
AK
7845pkg_failed=no
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7847$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7848
f11781c5
AK
7849if test -n "$CONFDB_CFLAGS"; then
7850 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7851 elif test -n "$PKG_CONFIG"; then
7852 if test -n "$PKG_CONFIG" && \
7853 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7854 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7855 ac_status=$?
f11781c5
AK
7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7857 test $ac_status = 0; }; then
7858 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7859else
f11781c5
AK
7860 pkg_failed=yes
7861fi
7862 else
7863 pkg_failed=untried
7864fi
7865if test -n "$CONFDB_LIBS"; then
7866 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7867 elif test -n "$PKG_CONFIG"; then
7868 if test -n "$PKG_CONFIG" && \
7869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7870 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; then
7874 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7875else
7876 pkg_failed=yes
7877fi
7878 else
7879 pkg_failed=untried
f8f6ec92
ZK
7880fi
7881
f8f6ec92 7882
66e941e8 7883
f11781c5
AK
7884if test $pkg_failed = yes; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886$as_echo "no" >&6; }
7887
7888if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7889 _pkg_short_errors_supported=yes
f8f6ec92 7890else
f11781c5 7891 _pkg_short_errors_supported=no
66e941e8 7892fi
f11781c5
AK
7893 if test $_pkg_short_errors_supported = yes; then
7894 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7895 else
7896 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7897 fi
7898 # Put the nasty error message in config.log where it belongs
7899 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7900
f11781c5
AK
7901 HAVE_CONFDB=no
7902elif test $pkg_failed = untried; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905 HAVE_CONFDB=no
7906else
7907 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7908 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7910$as_echo "yes" >&6; }
7911 HAVE_CONFDB=yes
66e941e8 7912fi
f11781c5
AK
7913
7914 for ac_header in corosync/confdb.h
7915do :
7916 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7917if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7918 cat >>confdefs.h <<_ACEOF
f11781c5 7919#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7920_ACEOF
f11781c5 7921 HAVE_CONFDB_H=yes
66e941e8 7922else
f11781c5 7923 HAVE_CONFDB_H=no
66e941e8 7924fi
dd1f2c09
MB
7925
7926done
7927
7928
f11781c5
AK
7929 if test x$HAVE_CONFDB != xyes && \
7930 test x$HAVE_CONFDB_H = xyes; then
7931 check_lib_no_libs confdb confdb_initialize
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7933$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7934 CONFDB_LIBS="-lconfdb"
7935 HAVE_CONFDB=yes
7936 fi
b6d7a484
AK
7937fi
7938
7939
7940if test x$CHECKCMAP = xyes; then
7941
7942pkg_failed=no
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7944$as_echo_n "checking for CMAP... " >&6; }
7945
7946if test -n "$CMAP_CFLAGS"; then
7947 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7948 elif test -n "$PKG_CONFIG"; then
7949 if test -n "$PKG_CONFIG" && \
7950 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7951 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7952 ac_status=$?
7953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7954 test $ac_status = 0; }; then
7955 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7956else
7957 pkg_failed=yes
7958fi
7959 else
7960 pkg_failed=untried
7961fi
7962if test -n "$CMAP_LIBS"; then
7963 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7964 elif test -n "$PKG_CONFIG"; then
7965 if test -n "$PKG_CONFIG" && \
7966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7967 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7968 ac_status=$?
7969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7970 test $ac_status = 0; }; then
7971 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7972else
7973 pkg_failed=yes
7974fi
7975 else
7976 pkg_failed=untried
7977fi
7978
7979
7980
7981if test $pkg_failed = yes; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
f11781c5 7984
b6d7a484
AK
7985if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7986 _pkg_short_errors_supported=yes
7987else
7988 _pkg_short_errors_supported=no
7989fi
7990 if test $_pkg_short_errors_supported = yes; then
7991 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7992 else
7993 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7994 fi
7995 # Put the nasty error message in config.log where it belongs
7996 echo "$CMAP_PKG_ERRORS" >&5
7997
7998 HAVE_CMAP=no
7999elif test $pkg_failed = untried; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
8002 HAVE_CMAP=no
8003else
8004 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
8005 CMAP_LIBS=$pkg_cv_CMAP_LIBS
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8007$as_echo "yes" >&6; }
8008 HAVE_CMAP=yes
8009fi
8010
8011 for ac_header in corosync/cmap.h
8012do :
8013 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
8014if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
8015 cat >>confdefs.h <<_ACEOF
8016#define HAVE_COROSYNC_CMAP_H 1
8017_ACEOF
8018 HAVE_CMAP_H=yes
8019else
8020 HAVE_CMAP_H=no
8021fi
8022
8023done
8024
8025
8026 if test x$HAVE_CMAP != xyes && \
8027 test x$HAVE_CMAP_H = xyes; then
8028 check_lib_no_libs cmap cmap_initialize
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
8030$as_echo "no pkg for cmap, using -lcmap" >&6; }
8031 CMAP_LIBS="-lcmap"
8032 HAVE_CMAP=yes
8033 fi
8034fi
8035
8036if test x$BUILDCOROSYNC = xyes; then
8037 if test x$HAVE_CMAP != xyes && \
8038 test x$HAVE_CONFDB != xyes && \
f11781c5 8039 test x$CLVMD != xall; then
b6d7a484 8040 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
f11781c5 8041 fi
dd1f2c09 8042fi
f11781c5
AK
8043
8044if test x$CHECKCPG = xyes; then
8045
8046pkg_failed=no
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8048$as_echo_n "checking for CPG... " >&6; }
8049
8050if test -n "$CPG_CFLAGS"; then
8051 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8052 elif test -n "$PKG_CONFIG"; then
8053 if test -n "$PKG_CONFIG" && \
8054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8055 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8056 ac_status=$?
8057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8058 test $ac_status = 0; }; then
8059 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 8060else
f11781c5
AK
8061 pkg_failed=yes
8062fi
8063 else
8064 pkg_failed=untried
8065fi
8066if test -n "$CPG_LIBS"; then
8067 pkg_cv_CPG_LIBS="$CPG_LIBS"
8068 elif test -n "$PKG_CONFIG"; then
8069 if test -n "$PKG_CONFIG" && \
8070 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8071 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 8072 ac_status=$?
f11781c5
AK
8073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8074 test $ac_status = 0; }; then
8075 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 8076else
f11781c5
AK
8077 pkg_failed=yes
8078fi
8079 else
8080 pkg_failed=untried
8081fi
8082
8083
8084
8085if test $pkg_failed = yes; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
8088
8089if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8090 _pkg_short_errors_supported=yes
8091else
8092 _pkg_short_errors_supported=no
8093fi
8094 if test $_pkg_short_errors_supported = yes; then
8095 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8096 else
8097 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8098 fi
8099 # Put the nasty error message in config.log where it belongs
8100 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 8101
f11781c5
AK
8102 $bailout
8103elif test $pkg_failed = untried; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106 $bailout
8107else
8108 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8109 CPG_LIBS=$pkg_cv_CPG_LIBS
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8111$as_echo "yes" >&6; }
8112 HAVE_CPG=yes
8113fi
dd1f2c09
MB
8114fi
8115
f11781c5 8116if test x$CHECKDLM = xyes; then
dd1f2c09 8117
f11781c5
AK
8118pkg_failed=no
8119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8120$as_echo_n "checking for DLM... " >&6; }
8121
8122if test -n "$DLM_CFLAGS"; then
8123 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8124 elif test -n "$PKG_CONFIG"; then
8125 if test -n "$PKG_CONFIG" && \
8126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8127 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8128 ac_status=$?
f11781c5
AK
8129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130 test $ac_status = 0; }; then
8131 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8132else
f11781c5
AK
8133 pkg_failed=yes
8134fi
8135 else
8136 pkg_failed=untried
8137fi
8138if test -n "$DLM_LIBS"; then
8139 pkg_cv_DLM_LIBS="$DLM_LIBS"
8140 elif test -n "$PKG_CONFIG"; then
8141 if test -n "$PKG_CONFIG" && \
8142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8143 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8144 ac_status=$?
8145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8146 test $ac_status = 0; }; then
8147 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8148else
8149 pkg_failed=yes
8150fi
8151 else
8152 pkg_failed=untried
dd1f2c09
MB
8153fi
8154
dd1f2c09 8155
dd1f2c09 8156
f11781c5
AK
8157if test $pkg_failed = yes; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
8160
8161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8162 _pkg_short_errors_supported=yes
dd1f2c09 8163else
f11781c5 8164 _pkg_short_errors_supported=no
dd1f2c09 8165fi
f11781c5
AK
8166 if test $_pkg_short_errors_supported = yes; then
8167 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8168 else
8169 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8170 fi
8171 # Put the nasty error message in config.log where it belongs
8172 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8173
f11781c5
AK
8174 NOTFOUND=0
8175 for ac_header in libdlm.h
8176do :
8177 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8178if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8179 cat >>confdefs.h <<_ACEOF
f11781c5 8180#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8181_ACEOF
8182
f11781c5
AK
8183else
8184 $bailout
dd1f2c09 8185fi
f8f6ec92
ZK
8186
8187done
8188
f11781c5
AK
8189 check_lib_no_libs dlm dlm_lock -lpthread
8190 if test $NOTFOUND = 0; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8192$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8193 DLM_LIBS="-ldlm -lpthread"
8194 HAVE_DLM=yes
8195 fi
8196elif test $pkg_failed = untried; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }
8199 NOTFOUND=0
8200 for ac_header in libdlm.h
8201do :
8202 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8203if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8204 cat >>confdefs.h <<_ACEOF
8205#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8206_ACEOF
8207
f8f6ec92 8208else
f11781c5 8209 $bailout
ad6254c5
AK
8210fi
8211
f11781c5 8212done
8b1a3214 8213
f11781c5
AK
8214 check_lib_no_libs dlm dlm_lock -lpthread
8215 if test $NOTFOUND = 0; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8217$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8218 DLM_LIBS="-ldlm -lpthread"
8219 HAVE_DLM=yes
8220 fi
8b1a3214 8221else
f11781c5
AK
8222 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8223 DLM_LIBS=$pkg_cv_DLM_LIBS
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8225$as_echo "yes" >&6; }
8226 HAVE_DLM=yes
8b1a3214 8227fi
8b1a3214
AK
8228fi
8229
f11781c5
AK
8230if test x$CLVMD = xall; then
8231 CLVMD=none
8232 CLVMD_CMANAGERS=""
8233 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
8234 if test x$HAVE_CMAN = xyes && \
8235 test x$HAVE_DLM = xyes; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8237$as_echo "Enabling clvmd cman cluster manager" >&6; }
8238 CLVMD="$CLVMD,cman"
8239 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8240 CLVMD_NEEDS_QDISKD=yes
8241 fi
8242 if test x$HAVE_COROSYNC = xyes && \
8243 test x$HAVE_QUORUM = xyes && \
8244 test x$HAVE_CPG = xyes && \
b6d7a484
AK
8245 test x$HAVE_DLM = xyes; then
8246 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
f11781c5
AK
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8248$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8249 CLVMD="$CLVMD,corosync"
8250 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
b6d7a484 8251 fi
f11781c5
AK
8252 fi
8253 if test x$HAVE_COROSYNC = xyes && \
8254 test x$HAVE_CPG = xyes && \
8255 test x$HAVE_SALCK = xyes; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8257$as_echo "Enabling clvmd openais cluster manager" >&6; }
8258 CLVMD="$CLVMD,openais"
8259 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8260 fi
8261 if test x$CLVMD_NEEDS_QDISKD != xno; then
8262 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8263 fi
8264 if test x$CLVMD = xnone; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8266$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8267 fi
8268fi
8269
75fad6ea
MB
8270if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8271 if test x$HAVE_CMAP = xyes; then
8272 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8273 fi
8274fi
8275
ad6254c5 8276################################################################################
f11781c5 8277if test "x$CLVMD" != xnone; then
ad6254c5 8278
f11781c5
AK
8279# Check whether --with-clvmd-pidfile was given.
8280if test "${with_clvmd_pidfile+set}" = set; then :
8281 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8282else
5723db01 8283 CLVMD_PIDFILE="$DEFAULT_PID_DIR/clvmd.pid"
ad6254c5 8284fi
7a197a62 8285
ad6254c5 8286
f11781c5
AK
8287cat >>confdefs.h <<_ACEOF
8288#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8289_ACEOF
ad6254c5 8290
ad6254c5 8291fi
7a197a62 8292
f11781c5
AK
8293################################################################################
8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8295$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8296# Check whether --enable-cmirrord was given.
8297if test "${enable_cmirrord+set}" = set; then :
8298 enableval=$enable_cmirrord; CMIRRORD=$enableval
8299else
8300 CMIRRORD=no
8301fi
8302
8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8304$as_echo "$CMIRRORD" >&6; }
ad6254c5 8305
f11781c5 8306BUILD_CMIRRORD=$CMIRRORD
7a197a62 8307
f11781c5
AK
8308################################################################################
8309if test "x$BUILD_CMIRRORD" = xyes; then
8310
8311# Check whether --with-cmirrord-pidfile was given.
8312if test "${with_cmirrord_pidfile+set}" = set; then :
8313 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8314else
5723db01 8315 CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid"
ad6254c5 8316fi
ad6254c5 8317
72b2cb61 8318
f11781c5
AK
8319cat >>confdefs.h <<_ACEOF
8320#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8321_ACEOF
8322
ad6254c5
AK
8323fi
8324
f11781c5
AK
8325################################################################################
8326if [ "x$BUILD_CMIRRORD" = xyes ]; then
8327 if test x$PKGCONFIG_INIT != x1; then
8328 pkg_config_init
8329 fi
ad6254c5 8330
62e38da1
JEB
8331
8332$as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h
8333
8334
f11781c5
AK
8335pkg_failed=no
8336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8337$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8338
f11781c5
AK
8339if test -n "$SACKPT_CFLAGS"; then
8340 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8341 elif test -n "$PKG_CONFIG"; then
8342 if test -n "$PKG_CONFIG" && \
8343 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8344 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8345 ac_status=$?
8346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8347 test $ac_status = 0; }; then
8348 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8349else
f11781c5
AK
8350 pkg_failed=yes
8351fi
8352 else
8353 pkg_failed=untried
8354fi
8355if test -n "$SACKPT_LIBS"; then
8356 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8357 elif test -n "$PKG_CONFIG"; then
8358 if test -n "$PKG_CONFIG" && \
8359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8360 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8361 ac_status=$?
f11781c5
AK
8362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8363 test $ac_status = 0; }; then
8364 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8365else
f11781c5
AK
8366 pkg_failed=yes
8367fi
8368 else
8369 pkg_failed=untried
8370fi
539f4a77
ZK
8371
8372
539f4a77 8373
f11781c5
AK
8374if test $pkg_failed = yes; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8376$as_echo "no" >&6; }
8377
8378if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8379 _pkg_short_errors_supported=yes
539f4a77 8380else
f11781c5 8381 _pkg_short_errors_supported=no
539f4a77 8382fi
f11781c5
AK
8383 if test $_pkg_short_errors_supported = yes; then
8384 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8385 else
8386 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8387 fi
8388 # Put the nasty error message in config.log where it belongs
8389 echo "$SACKPT_PKG_ERRORS" >&5
8390
62e38da1
JEB
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8392$as_echo "no libSaCkpt, compiling without it" >&6; }
f11781c5 8393
62e38da1 8394$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
f11781c5
AK
8395
8396elif test $pkg_failed = untried; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398$as_echo "no" >&6; }
62e38da1
JEB
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8400$as_echo "no libSaCkpt, compiling without it" >&6; }
f11781c5 8401
62e38da1 8402$as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
f11781c5 8403
539f4a77 8404else
f11781c5
AK
8405 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8406 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408$as_echo "yes" >&6; }
62e38da1 8409 HAVE_SACKPT=yes
539f4a77 8410fi
62e38da1 8411
f11781c5 8412 if test x$HAVE_CPG != xyes; then
539f4a77 8413
f11781c5
AK
8414pkg_failed=no
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8416$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8417
f11781c5
AK
8418if test -n "$CPG_CFLAGS"; then
8419 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8420 elif test -n "$PKG_CONFIG"; then
8421 if test -n "$PKG_CONFIG" && \
8422 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8423 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8424 ac_status=$?
f11781c5
AK
8425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8426 test $ac_status = 0; }; then
8427 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8428else
f11781c5
AK
8429 pkg_failed=yes
8430fi
8431 else
8432 pkg_failed=untried
8433fi
8434if test -n "$CPG_LIBS"; then
8435 pkg_cv_CPG_LIBS="$CPG_LIBS"
8436 elif test -n "$PKG_CONFIG"; then
8437 if test -n "$PKG_CONFIG" && \
8438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8439 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8440 ac_status=$?
8441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8442 test $ac_status = 0; }; then
8443 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8444else
8445 pkg_failed=yes
8446fi
8447 else
8448 pkg_failed=untried
8449fi
8450
8451
8452
8453if test $pkg_failed = yes; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
ad6254c5 8456
f11781c5
AK
8457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8458 _pkg_short_errors_supported=yes
8459else
8460 _pkg_short_errors_supported=no
ad6254c5 8461fi
f11781c5
AK
8462 if test $_pkg_short_errors_supported = yes; then
8463 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8464 else
8465 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8466 fi
8467 # Put the nasty error message in config.log where it belongs
8468 echo "$CPG_PKG_ERRORS" >&5
8469
8470 as_fn_error $? "Package requirements (libcpg) were not met:
8471
8472$CPG_PKG_ERRORS
8473
8474Consider adjusting the PKG_CONFIG_PATH environment variable if you
8475installed software in a non-standard prefix.
8476
8477Alternatively, you may set the environment variables CPG_CFLAGS
8478and CPG_LIBS to avoid the need to call pkg-config.
8479See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8480
f11781c5
AK
8481elif test $pkg_failed = untried; then
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
8484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8486as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8487is in your PATH or set the PKG_CONFIG environment variable to the full
8488path to pkg-config.
539f4a77 8489
f11781c5
AK
8490Alternatively, you may set the environment variables CPG_CFLAGS
8491and CPG_LIBS to avoid the need to call pkg-config.
8492See the pkg-config man page for more details.
539f4a77 8493
f11781c5
AK
8494To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8495See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8496
539f4a77 8497else
f11781c5
AK
8498 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8499 CPG_LIBS=$pkg_cv_CPG_LIBS
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8501$as_echo "yes" >&6; }
bc1024f8 8502
f11781c5
AK
8503fi
8504 fi
8505fi
8506
8507################################################################################
8508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8509$as_echo_n "checking whether to enable debugging... " >&6; }
8510# Check whether --enable-debug was given.
8511if test "${enable_debug+set}" = set; then :
8512 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8513else
f11781c5
AK
8514 DEBUG=no
8515fi
8516
8517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8518$as_echo "$DEBUG" >&6; }
539f4a77 8519
f11781c5
AK
8520if test x$DEBUG = xyes; then
8521 COPTIMISE_FLAG=
8522else
8523 CSCOPE_CMD=
06e459df
JM
8524fi
8525
f11781c5
AK
8526################################################################################
8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8528$as_echo_n "checking for C optimisation flag... " >&6; }
8529
8530# Check whether --with-optimisation was given.
8531if test "${with_optimisation+set}" = set; then :
8532 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8533fi
539f4a77 8534
f11781c5
AK
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8536$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8537
f11781c5
AK
8538################################################################################
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8540$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8541# Check whether --enable-profiling was given.
8542if test "${enable_profiling+set}" = set; then :
8543 enableval=$enable_profiling; PROFILING=$enableval
8544else
8545 PROFILING=no
539f4a77
ZK
8546fi
8547
f11781c5
AK
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8549$as_echo "$PROFILING" >&6; }
8550
8551if test "x$PROFILING" = xyes; then
8552 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8553 # Extract the first word of "lcov", so it can be a program name with args.
8554set dummy lcov; ac_word=$2
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556$as_echo_n "checking for $ac_word... " >&6; }
8557if test "${ac_cv_path_LCOV+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
539f4a77 8559else
f11781c5
AK
8560 case $LCOV in
8561 [\\/]* | ?:[\\/]*)
8562 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8563 ;;
8564 *)
8565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566for as_dir in $PATH
8567do
8568 IFS=$as_save_IFS
8569 test -z "$as_dir" && as_dir=.
8570 for ac_exec_ext in '' $ac_executable_extensions; do
8571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8572 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8574 break 2
8575 fi
8576done
8577 done
8578IFS=$as_save_IFS
539f4a77 8579
f11781c5
AK
8580 ;;
8581esac
8582fi
8583LCOV=$ac_cv_path_LCOV
8584if test -n "$LCOV"; then
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8586$as_echo "$LCOV" >&6; }
8587else
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
539f4a77
ZK
8590fi
8591
bc1024f8 8592
f11781c5
AK
8593 # Extract the first word of "genhtml", so it can be a program name with args.
8594set dummy genhtml; ac_word=$2
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8596$as_echo_n "checking for $ac_word... " >&6; }
8597if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8598 $as_echo_n "(cached) " >&6
ad6254c5 8599else
f11781c5
AK
8600 case $GENHTML in
8601 [\\/]* | ?:[\\/]*)
8602 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8603 ;;
8604 *)
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8615 fi
8616done
8617 done
8618IFS=$as_save_IFS
8a2fc586 8619
f11781c5
AK
8620 ;;
8621esac
8622fi
8623GENHTML=$ac_cv_path_GENHTML
8624if test -n "$GENHTML"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8626$as_echo "$GENHTML" >&6; }
8627else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
8630fi
8a2fc586 8631
8a2fc586 8632
f11781c5
AK
8633 if test -z "$LCOV" -o -z "$GENHTML"; then
8634 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8635 fi
8636 # Extract the first word of "genpng", so it can be a program name with args.
8637set dummy genpng; ac_word=$2
8638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639$as_echo_n "checking for $ac_word... " >&6; }
8640if test "${ac_cv_path_GENPNG+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642else
8643 case $GENPNG in
8644 [\\/]* | ?:[\\/]*)
8645 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8646 ;;
8647 *)
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8655 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657 break 2
8658 fi
8659done
8660 done
8661IFS=$as_save_IFS
ad6254c5 8662
f11781c5 8663 ;;
7a197a62 8664esac
f11781c5
AK
8665fi
8666GENPNG=$ac_cv_path_GENPNG
8667if test -n "$GENPNG"; then
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8669$as_echo "$GENPNG" >&6; }
ad6254c5 8670else
f11781c5
AK
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8672$as_echo "no" >&6; }
8673fi
8674
8675
8676 if test -n "$GENPNG"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8678$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8679 if $GENPNG --help > /dev/null 2>&1 ; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8681$as_echo "ok" >&6; }
8682 GENHTML="$GENHTML --frames"
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8685$as_echo "not supported" >&6; }
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8687$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8688 GENPNG=
8689 fi
8690 fi
8691fi
ad6254c5 8692
f11781c5
AK
8693################################################################################
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8695$as_echo_n "checking whether to enable unit testing... " >&6; }
8696# Check whether --enable-testing was given.
8697if test "${enable_testing+set}" = set; then :
8698 enableval=$enable_testing; TESTING=$enableval
8699else
8700 TESTING=no
ad6254c5 8701fi
7a197a62 8702
f11781c5
AK
8703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8704$as_echo "$TESTING" >&6; }
72b2cb61 8705
f11781c5 8706if test "$TESTING" = yes; then
426fc742
PR
8707
8708pkg_failed=no
8709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8710$as_echo_n "checking for CUNIT... " >&6; }
8711
8712if test -n "$CUNIT_CFLAGS"; then
8713 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8714 elif test -n "$PKG_CONFIG"; then
8715 if test -n "$PKG_CONFIG" && \
8716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8717 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8718 ac_status=$?
8719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8720 test $ac_status = 0; }; then
8721 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8722else
8723 pkg_failed=yes
8724fi
8725 else
8726 pkg_failed=untried
8727fi
8728if test -n "$CUNIT_LIBS"; then
8729 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8730 elif test -n "$PKG_CONFIG"; then
8731 if test -n "$PKG_CONFIG" && \
8732 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8733 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8734 ac_status=$?
8735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8736 test $ac_status = 0; }; then
8737 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
ad6254c5 8738else
426fc742
PR
8739 pkg_failed=yes
8740fi
8741 else
8742 pkg_failed=untried
ad6254c5
AK
8743fi
8744
7a197a62 8745
426fc742
PR
8746
8747if test $pkg_failed = yes; then
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749$as_echo "no" >&6; }
8750
8751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8752 _pkg_short_errors_supported=yes
8753else
8754 _pkg_short_errors_supported=no
8755fi
8756 if test $_pkg_short_errors_supported = yes; then
8757 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8758 else
8759 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8760 fi
8761 # Put the nasty error message in config.log where it belongs
8762 echo "$CUNIT_PKG_ERRORS" >&5
8763
8764 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8765
8766$CUNIT_PKG_ERRORS
8767
8768Consider adjusting the PKG_CONFIG_PATH environment variable if you
8769installed software in a non-standard prefix.
8770
8771Alternatively, you may set the environment variables CUNIT_CFLAGS
8772and CUNIT_LIBS to avoid the need to call pkg-config.
8773See the pkg-config man page for more details." "$LINENO" 5
8774
8775elif test $pkg_failed = untried; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777$as_echo "no" >&6; }
8778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8780as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8781is in your PATH or set the PKG_CONFIG environment variable to the full
8782path to pkg-config.
8783
8784Alternatively, you may set the environment variables CUNIT_CFLAGS
8785and CUNIT_LIBS to avoid the need to call pkg-config.
8786See the pkg-config man page for more details.
8787
8788To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8789See \`config.log' for more details" "$LINENO" 5; }
8790
8791else
8792 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8793 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8795$as_echo "yes" >&6; }
8796
8797fi
f11781c5 8798fi
ad6254c5 8799
f11781c5
AK
8800################################################################################
8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8802$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8803# Check whether --enable-valgrind_pool was given.
8804if test "${enable_valgrind_pool+set}" = set; then :
8805 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8806else
8807 VALGRIND_POOL=no
8808fi
8809
8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8811$as_echo "$VALGRIND_POOL" >&6; }
8812
8813if test "$VALGRIND_POOL" = yes; then
8814 for ac_header in valgrind/memcheck.h
8815do :
8816 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8817if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8818 cat >>confdefs.h <<_ACEOF
8819#define HAVE_VALGRIND_MEMCHECK_H 1
8820_ACEOF
ad6254c5 8821
ad6254c5 8822else
f11781c5 8823 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8824fi
8825
f11781c5
AK
8826done
8827
8828
8829$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8830
ad6254c5
AK
8831fi
8832
8833################################################################################
f11781c5
AK
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8835$as_echo_n "checking whether to use device-mapper... " >&6; }
8836# Check whether --enable-devmapper was given.
8837if test "${enable_devmapper+set}" = set; then :
8838 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8839fi
8840
f11781c5
AK
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8842$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8843
f11781c5 8844if test x$DEVMAPPER = xyes; then
ad6254c5 8845
f11781c5
AK
8846$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8847
8848fi
8849
cdd50823
ZK
8850################################################################################
8851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8852$as_echo_n "checking whether to build LVMetaD... " >&6; }
8853# Check whether --enable-lvmetad was given.
8854if test "${enable_lvmetad+set}" = set; then :
8855 enableval=$enable_lvmetad; LVMETAD=$enableval
8856fi
8857
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8859$as_echo "$LVMETAD" >&6; }
8860
8861BUILD_LVMETAD=$LVMETAD
8862
7126d8c2
AK
8863if test x$BUILD_LVMETAD = xyes; then
8864
8865$as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h
8866
5723db01
PR
8867
8868
8869# Check whether --with-lvmetad-pidfile was given.
8870if test "${with_lvmetad_pidfile+set}" = set; then :
8871 withval=$with_lvmetad_pidfile; LVMETAD_PIDFILE=$withval
8872else
8873 LVMETAD_PIDFILE="$DEFAULT_PID_DIR/lvmetad.pid"
8874fi
8875
8876
8877cat >>confdefs.h <<_ACEOF
8878#define LVMETAD_PIDFILE "$LVMETAD_PIDFILE"
8879_ACEOF
8880
7126d8c2
AK
8881fi
8882
f11781c5
AK
8883################################################################################
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8885$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8886# Check whether --enable-udev_sync was given.
8887if test "${enable_udev_sync+set}" = set; then :
8888 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8889else
f11781c5 8890 UDEV_SYNC=no
7a197a62 8891fi
ad6254c5 8892
f11781c5
AK
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8894$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8895
f11781c5 8896if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8897 if test x$PKGCONFIG_INIT != x1; then
8898 pkg_config_init
8899 fi
7a197a62 8900
d93275eb
PR
8901pkg_failed=no
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8903$as_echo_n "checking for UDEV... " >&6; }
8904
8905if test -n "$UDEV_CFLAGS"; then
8906 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8907 elif test -n "$PKG_CONFIG"; then
8908 if test -n "$PKG_CONFIG" && \
8909 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8910 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8911 ac_status=$?
8912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8913 test $ac_status = 0; }; then
8914 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8915else
d93275eb 8916 pkg_failed=yes
f11781c5 8917fi
d93275eb
PR
8918 else
8919 pkg_failed=untried
f11781c5 8920fi
d93275eb
PR
8921if test -n "$UDEV_LIBS"; then
8922 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8923 elif test -n "$PKG_CONFIG"; then
8924 if test -n "$PKG_CONFIG" && \
8925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8926 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8927 ac_status=$?
8928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8929 test $ac_status = 0; }; then
8930 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8931else
d93275eb 8932 pkg_failed=yes
68f2de6d 8933fi
d93275eb
PR
8934 else
8935 pkg_failed=untried
8936fi
8937
8938
8939
8940if test $pkg_failed = yes; then
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
8943
8944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8945 _pkg_short_errors_supported=yes
8946else
8947 _pkg_short_errors_supported=no
8948fi
8949 if test $_pkg_short_errors_supported = yes; then
8950 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8951 else
8952 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8953 fi
8954 # Put the nasty error message in config.log where it belongs
8955 echo "$UDEV_PKG_ERRORS" >&5
8956
8957 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8958
8959$UDEV_PKG_ERRORS
8960
8961Consider adjusting the PKG_CONFIG_PATH environment variable if you
8962installed software in a non-standard prefix.
8963
8964Alternatively, you may set the environment variables UDEV_CFLAGS
8965and UDEV_LIBS to avoid the need to call pkg-config.
8966See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8967
d93275eb
PR
8968elif test $pkg_failed = untried; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
8971 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8973as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8974is in your PATH or set the PKG_CONFIG environment variable to the full
8975path to pkg-config.
8976
8977Alternatively, you may set the environment variables UDEV_CFLAGS
8978and UDEV_LIBS to avoid the need to call pkg-config.
8979See the pkg-config man page for more details.
8980
8981To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8982See \`config.log' for more details" "$LINENO" 5; }
8983
8984else
8985 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8986 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8988$as_echo "yes" >&6; }
8989 UDEV_PC="libudev"
8990fi
68f2de6d 8991
f11781c5 8992$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8993
f11781c5
AK
8994fi
8995
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8997$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8998# Check whether --enable-udev_rules was given.
8999if test "${enable_udev_rules+set}" = set; then :
9000 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 9001else
f11781c5 9002 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
9003fi
9004
f11781c5
AK
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
9006$as_echo "$UDEV_RULES" >&6; }
68f2de6d 9007
5723db01
PR
9008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5
9009$as_echo_n "checking whether to enable executable path detection in udev rules... " >&6; }
9010# Check whether --enable-udev_rule_exec_detection was given.
9011if test "${enable_udev_rule_exec_detection+set}" = set; then :
9012 enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval
9013else
9014 UDEV_RULE_EXEC_DETECTION=no
9015fi
9016
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5
9018$as_echo "$UDEV_RULE_EXEC_DETECTION" >&6; }
9019
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5
9021$as_echo_n "checking whether udev supports built-in blkid... " >&6; }
9022test x$PKGCONFIG_INIT != x1 && pkg_config_init
9023if $($PKG_CONFIG --atleast-version=176 libudev); then
9024 UDEV_HAS_BUILTIN_BLKID=yes
9025else
9026 UDEV_HAS_BUILTIN_BLKID=no
b559a1e6 9027fi
5723db01
PR
9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
9029$as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
b559a1e6 9030
a5f46f6a 9031################################################################################
f11781c5
AK
9032# Check whether --enable-compat was given.
9033if test "${enable_compat+set}" = set; then :
9034 enableval=$enable_compat; DM_COMPAT=$enableval
9035else
9036 DM_COMPAT=no
9037fi
a5f46f6a 9038
f11781c5 9039
2061c0ec
AK
9040if test x$DM_COMPAT = xyes; then
9041 as_fn_error $? "--enable-compat is not currently supported.
9042Since device-mapper version 1.02.66, only one version (4) of the device-mapper
9043ioctl protocol is supported.
9044 " "$LINENO" 5
9045fi
9046
f11781c5
AK
9047################################################################################
9048# Check whether --enable-units-compat was given.
9049if test "${enable_units_compat+set}" = set; then :
9050 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 9051else
f11781c5 9052 UNITS_COMPAT=no
a5f46f6a
AK
9053fi
9054
9055
f11781c5 9056if test x$UNITS_COMPAT = xyes; then
78ce7acc 9057
f11781c5
AK
9058$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
9059
9060fi
9061
9062################################################################################
9063# Check whether --enable-ioctl was given.
9064if test "${enable_ioctl+set}" = set; then :
9065 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
9066fi
9067
a5f46f6a 9068
ad6254c5 9069################################################################################
f11781c5
AK
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
9071$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9072# Check whether --enable-o_direct was given.
9073if test "${enable_o_direct+set}" = set; then :
9074 enableval=$enable_o_direct; ODIRECT=$enableval
9075fi
ad6254c5 9076
f11781c5
AK
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
9078$as_echo "$ODIRECT" >&6; }
9079
9080if test x$ODIRECT = xyes; then
9081
9082$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 9083
ad6254c5 9084fi
ad6254c5 9085
f11781c5
AK
9086################################################################################
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
9088$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9089# Check whether --enable-applib was given.
9090if test "${enable_applib+set}" = set; then :
9091 enableval=$enable_applib; APPLIB=$enableval
9092else
9093 APPLIB=no
ad6254c5 9094fi
7a197a62 9095
f11781c5
AK
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
9097$as_echo "$APPLIB" >&6; }
ad6254c5 9098
f11781c5
AK
9099test x$APPLIB = xyes \
9100 && LVM2APP_LIB=-llvm2app \
9101 || LVM2APP_LIB=
ad6254c5 9102
f11781c5
AK
9103################################################################################
9104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
9105$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9106# Check whether --enable-cmdlib was given.
9107if test "${enable_cmdlib+set}" = set; then :
9108 enableval=$enable_cmdlib; CMDLIB=$enableval
9109else
9110 CMDLIB=no
ad6254c5 9111fi
7a197a62 9112
f11781c5
AK
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
9114$as_echo "$CMDLIB" >&6; }
7a197a62 9115
f11781c5
AK
9116test x$CMDLIB = xyes \
9117 && LVM2CMD_LIB=-llvm2cmd \
9118 || LVM2CMD_LIB=
9119
9120################################################################################
9121# Check whether --enable-pkgconfig was given.
9122if test "${enable_pkgconfig+set}" = set; then :
9123 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 9124else
f11781c5 9125 PKGCONFIG=no
ad6254c5 9126fi
ad6254c5 9127
ad6254c5 9128
f11781c5
AK
9129################################################################################
9130# Check whether --enable-write_install was given.
9131if test "${enable_write_install+set}" = set; then :
9132 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 9133else
f11781c5 9134 WRITE_INSTALL=no
ad6254c5
AK
9135fi
9136
ad6254c5 9137
f11781c5
AK
9138################################################################################
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9140$as_echo_n "checking whether to install fsadm... " >&6; }
9141# Check whether --enable-fsadm was given.
9142if test "${enable_fsadm+set}" = set; then :
9143 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
9144fi
9145
f11781c5
AK
9146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9147$as_echo "$FSADM" >&6; }
ad6254c5 9148
f11781c5
AK
9149################################################################################
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9151$as_echo_n "checking whether to use dmeventd... " >&6; }
9152# Check whether --enable-dmeventd was given.
9153if test "${enable_dmeventd+set}" = set; then :
9154 enableval=$enable_dmeventd; DMEVENTD=$enableval
9155fi
ad6254c5 9156
f11781c5
AK
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9158$as_echo "$DMEVENTD" >&6; }
ad6254c5 9159
f11781c5 9160BUILD_DMEVENTD=$DMEVENTD
ad6254c5 9161
f11781c5
AK
9162if test x$DMEVENTD = xyes; then
9163 if test x$MIRRORS != xinternal; then
9164 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9165 " "$LINENO" 5
9166 fi
9167 if test x$CMDLIB = xno; then
9168 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9169 " "$LINENO" 5
9170 fi
9171fi
ad6254c5 9172
f11781c5 9173if test x$DMEVENTD = xyes; then
ad6254c5 9174
f11781c5 9175$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 9176
f11781c5 9177fi
ad6254c5 9178
f11781c5 9179################################################################################
ad6254c5 9180
f11781c5
AK
9181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9182$as_echo_n "checking for getline in -lc... " >&6; }
9183if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 9184 $as_echo_n "(cached) " >&6
ad6254c5 9185else
f11781c5
AK
9186 ac_check_lib_save_LIBS=$LIBS
9187LIBS="-lc $LIBS"
9188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9189/* end confdefs.h. */
f11781c5
AK
9190
9191/* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
9194#ifdef __cplusplus
9195extern "C"
9196#endif
9197char getline ();
9198int
9199main ()
9200{
9201return getline ();
9202 ;
9203 return 0;
9204}
ad6254c5 9205_ACEOF
f11781c5
AK
9206if ac_fn_c_try_link "$LINENO"; then :
9207 ac_cv_lib_c_getline=yes
ad6254c5 9208else
f11781c5
AK
9209 ac_cv_lib_c_getline=no
9210fi
9211rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213LIBS=$ac_check_lib_save_LIBS
9214fi
9215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9216$as_echo "$ac_cv_lib_c_getline" >&6; }
9217if test "x$ac_cv_lib_c_getline" = x""yes; then :
9218
9219$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9220
ad6254c5 9221fi
7a197a62 9222
ad6254c5 9223
f11781c5
AK
9224################################################################################
9225
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9227$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9228if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9229 $as_echo_n "(cached) " >&6
9230else
9231 ac_check_lib_save_LIBS=$LIBS
9232LIBS="-lc $LIBS"
9233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9234/* end confdefs.h. */
f11781c5
AK
9235
9236/* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
9239#ifdef __cplusplus
9240extern "C"
9241#endif
9242char canonicalize_file_name ();
9243int
9244main ()
9245{
9246return canonicalize_file_name ();
9247 ;
9248 return 0;
9249}
ad6254c5 9250_ACEOF
f11781c5
AK
9251if ac_fn_c_try_link "$LINENO"; then :
9252 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9253else
f11781c5
AK
9254 ac_cv_lib_c_canonicalize_file_name=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext \
9257 conftest$ac_exeext conftest.$ac_ext
9258LIBS=$ac_check_lib_save_LIBS
9259fi
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9261$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9262if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9263
9264$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9265
ad6254c5 9266fi
7a197a62 9267
ad6254c5 9268
f11781c5
AK
9269################################################################################
9270if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9271 then exec_prefix="";
9272fi;
7a197a62 9273
f11781c5
AK
9274################################################################################
9275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9276$as_echo_n "checking for dlopen in -ldl... " >&6; }
9277if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9278 $as_echo_n "(cached) " >&6
ad6254c5 9279else
f11781c5
AK
9280 ac_check_lib_save_LIBS=$LIBS
9281LIBS="-ldl $LIBS"
9282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283/* end confdefs.h. */
ad6254c5 9284
f11781c5
AK
9285/* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288#ifdef __cplusplus
9289extern "C"
9290#endif
9291char dlopen ();
9292int
9293main ()
9294{
9295return dlopen ();
9296 ;
9297 return 0;
9298}
ad6254c5 9299_ACEOF
f11781c5
AK
9300if ac_fn_c_try_link "$LINENO"; then :
9301 ac_cv_lib_dl_dlopen=yes
ad6254c5 9302else
f11781c5 9303 ac_cv_lib_dl_dlopen=no
795ca3e5 9304fi
f11781c5
AK
9305rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307LIBS=$ac_check_lib_save_LIBS
9308fi
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9310$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9311if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9312
ad6254c5 9313
f11781c5 9314$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9315
f11781c5
AK
9316 DL_LIBS="-ldl"
9317 HAVE_LIBDL=yes
9318else
795ca3e5 9319
f11781c5
AK
9320 DL_LIBS=
9321 HAVE_LIBDL=no
9322fi
8106cdd5 9323
ad6254c5 9324
f11781c5
AK
9325################################################################################
9326if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9327 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9328 -o "x$RAID" = xshared \
f11781c5
AK
9329 \) -a "x$STATIC_LINK" = xyes ];
9330 then as_fn_error $? "Features cannot be 'shared' when building statically
9331" "$LINENO" 5
9332fi
ad6254c5 9333
f11781c5
AK
9334################################################################################
9335if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9337$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9338if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9339 $as_echo_n "(cached) " >&6
795ca3e5 9340else
f11781c5
AK
9341 ac_check_lib_save_LIBS=$LIBS
9342LIBS="-lpthread $LIBS"
9343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9344/* end confdefs.h. */
8a2fc586 9345
f11781c5
AK
9346/* Override any GCC internal prototype to avoid an error.
9347 Use char because int might match the return type of a GCC
9348 builtin and then its argument prototype would still apply. */
9349#ifdef __cplusplus
9350extern "C"
ad6254c5 9351#endif
f11781c5
AK
9352char pthread_mutex_lock ();
9353int
9354main ()
9355{
9356return pthread_mutex_lock ();
9357 ;
9358 return 0;
9359}
9360_ACEOF
9361if ac_fn_c_try_link "$LINENO"; then :
9362 ac_cv_lib_pthread_pthread_mutex_lock=yes
9363else
9364 ac_cv_lib_pthread_pthread_mutex_lock=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext \
9367 conftest$ac_exeext conftest.$ac_ext
9368LIBS=$ac_check_lib_save_LIBS
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9371$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9372if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9373 PTHREAD_LIBS="-lpthread"
9374else
9375 hard_bailout
9376fi
9377
9378fi
9379
9380################################################################################
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9382$as_echo_n "checking whether to enable selinux support... " >&6; }
9383# Check whether --enable-selinux was given.
9384if test "${enable_selinux+set}" = set; then :
9385 enableval=$enable_selinux; SELINUX=$enableval
9386fi
9387
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9389$as_echo "$SELINUX" >&6; }
8a2fc586 9390
f11781c5
AK
9391################################################################################
9392if test x$SELINUX = xyes; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9394$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9395if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9397else
9398 ac_check_lib_save_LIBS=$LIBS
9399LIBS="-lsepol $LIBS"
9400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h. */
8a2fc586 9402
7a197a62
AK
9403/* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9406#ifdef __cplusplus
9407extern "C"
ad6254c5 9408#endif
f11781c5 9409char sepol_check_context ();
ad6254c5
AK
9410int
9411main ()
9412{
f11781c5 9413return sepol_check_context ();
ad6254c5
AK
9414 ;
9415 return 0;
9416}
9417_ACEOF
f11781c5
AK
9418if ac_fn_c_try_link "$LINENO"; then :
9419 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9420else
f11781c5
AK
9421 ac_cv_lib_sepol_sepol_check_context=no
9422fi
9423rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425LIBS=$ac_check_lib_save_LIBS
80992638 9426fi
f11781c5
AK
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9428$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9429if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9430
80992638 9431
f11781c5
AK
9432$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9433
9434 SELINUX_LIBS="-lsepol"
8106cdd5 9435fi
795ca3e5 9436
f11781c5
AK
9437
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9439$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9440if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9441 $as_echo_n "(cached) " >&6
25fbec5b 9442else
f11781c5
AK
9443 ac_check_lib_save_LIBS=$LIBS
9444LIBS="-lselinux $LIBS"
9445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9446/* end confdefs.h. */
80992638 9447
7a197a62
AK
9448/* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
ad6254c5 9450 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9451#ifdef __cplusplus
9452extern "C"
9453#endif
f11781c5 9454char is_selinux_enabled ();
ad6254c5
AK
9455int
9456main ()
9457{
f11781c5 9458return is_selinux_enabled ();
ad6254c5
AK
9459 ;
9460 return 0;
9461}
9462_ACEOF
f11781c5
AK
9463if ac_fn_c_try_link "$LINENO"; then :
9464 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9465else
f11781c5 9466 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9467fi
f11781c5
AK
9468rm -f core conftest.err conftest.$ac_objext \
9469 conftest$ac_exeext conftest.$ac_ext
9470LIBS=$ac_check_lib_save_LIBS
25fbec5b 9471fi
f11781c5
AK
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9473$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9474if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9475
f11781c5
AK
9476 for ac_header in selinux/selinux.h
9477do :
9478 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9479if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9480 cat >>confdefs.h <<_ACEOF
9481#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9482_ACEOF
795ca3e5 9483
25fbec5b 9484else
f11781c5 9485 hard_bailout
795ca3e5 9486fi
795ca3e5 9487
f11781c5 9488done
795ca3e5 9489
f11781c5
AK
9490 for ac_header in selinux/label.h
9491do :
9492 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9493if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9494 cat >>confdefs.h <<_ACEOF
9495#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9496_ACEOF
ad6254c5 9497
ad6254c5 9498fi
7a197a62 9499
f11781c5 9500done
7a197a62 9501
ad6254c5 9502
f11781c5 9503$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9504
f11781c5
AK
9505 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9506 SELINUX_PC="libselinux"
9507 HAVE_SELINUX=yes
ad6254c5 9508else
8106cdd5 9509
f11781c5
AK
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9511$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9512 SELINUX_LIBS=
9513 SELINUX_PC=
9514 HAVE_SELINUX=no
795ca3e5 9515fi
ad6254c5 9516
795ca3e5
AK
9517fi
9518
f11781c5
AK
9519################################################################################
9520if test x$REALTIME = xyes; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9522$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9523if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9524 $as_echo_n "(cached) " >&6
26e7f2e0 9525else
f11781c5
AK
9526 ac_check_lib_save_LIBS=$LIBS
9527LIBS="-lrt $LIBS"
9528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9529/* end confdefs.h. */
ad6254c5 9530
f11781c5
AK
9531/* Override any GCC internal prototype to avoid an error.
9532 Use char because int might match the return type of a GCC
9533 builtin and then its argument prototype would still apply. */
9534#ifdef __cplusplus
9535extern "C"
9536#endif
9537char clock_gettime ();
ad6254c5
AK
9538int
9539main ()
9540{
f11781c5 9541return clock_gettime ();
ad6254c5
AK
9542 ;
9543 return 0;
9544}
9545_ACEOF
f11781c5
AK
9546if ac_fn_c_try_link "$LINENO"; then :
9547 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9548else
f11781c5 9549 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9550fi
f11781c5
AK
9551rm -f core conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9554fi
f11781c5
AK
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9556$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9557if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9558 HAVE_REALTIME=yes
9559else
9560 HAVE_REALTIME=no
8106cdd5 9561fi
ad6254c5 9562
ad6254c5 9563
f11781c5 9564 if test x$HAVE_REALTIME = xyes; then
7a197a62 9565
f11781c5 9566$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9567
f11781c5
AK
9568 LIBS="-lrt $LIBS"
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9571$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9572 fi
9573fi
9574
9575################################################################################
9576for ac_header in getopt.h
9577do :
9578 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9579if test "x$ac_cv_header_getopt_h" = x""yes; then :
9580 cat >>confdefs.h <<_ACEOF
9581#define HAVE_GETOPT_H 1
9582_ACEOF
9583
9584$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9585
ad6254c5 9586fi
7a197a62 9587
f11781c5 9588done
ad6254c5 9589
7a197a62 9590
f11781c5
AK
9591################################################################################
9592if test x$READLINE != xno; then
9593 lvm_saved_libs=$LIBS
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9595$as_echo_n "checking for library containing tgetent... " >&6; }
9596if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9597 $as_echo_n "(cached) " >&6
ad6254c5 9598else
f11781c5
AK
9599 ac_func_search_save_LIBS=$LIBS
9600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h. */
ad6254c5 9602
f11781c5
AK
9603/* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
9606#ifdef __cplusplus
9607extern "C"
9608#endif
9609char tgetent ();
9610int
9611main ()
9612{
9613return tgetent ();
9614 ;
9615 return 0;
9616}
ad6254c5 9617_ACEOF
f11781c5
AK
9618for ac_lib in '' tinfo ncurses curses termcap termlib; do
9619 if test -z "$ac_lib"; then
9620 ac_res="none required"
9621 else
9622 ac_res=-l$ac_lib
9623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9624 fi
9625 if ac_fn_c_try_link "$LINENO"; then :
9626 ac_cv_search_tgetent=$ac_res
9627fi
9628rm -f core conftest.err conftest.$ac_objext \
9629 conftest$ac_exeext
9630 if test "${ac_cv_search_tgetent+set}" = set; then :
9631 break
9632fi
9633done
9634if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9635
80992638 9636else
f11781c5 9637 ac_cv_search_tgetent=no
b896caa1 9638fi
f11781c5
AK
9639rm conftest.$ac_ext
9640LIBS=$ac_func_search_save_LIBS
9641fi
9642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9643$as_echo "$ac_cv_search_tgetent" >&6; }
9644ac_res=$ac_cv_search_tgetent
9645if test "$ac_res" != no; then :
9646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9647 READLINE_LIBS=$ac_cv_search_tgetent
9648else
ad6254c5 9649
f11781c5
AK
9650 if test "$READLINE" = yes; then
9651 as_fn_error $? "termcap could not be found which is required for the
9652--enable-readline option (which is enabled by default). Either disable readline
9653support with --disable-readline or download and install termcap from:
9654 ftp.gnu.org/gnu/termcap
9655Note: if you are using precompiled packages you will also need the development
9656 package as well (which may be called termcap-devel or something similar).
9657Note: (n)curses also seems to work as a substitute for termcap. This was
9658 not found either - but you could try installing that as well." "$LINENO" 5
9659 fi
9660fi
b896caa1 9661
f11781c5
AK
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9663$as_echo_n "checking for readline in -lreadline... " >&6; }
9664if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9665 $as_echo_n "(cached) " >&6
795ca3e5 9666else
f11781c5
AK
9667 ac_check_lib_save_LIBS=$LIBS
9668LIBS="-lreadline $LIBS"
9669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9670/* end confdefs.h. */
8a2fc586 9671
f11781c5
AK
9672/* Override any GCC internal prototype to avoid an error.
9673 Use char because int might match the return type of a GCC
9674 builtin and then its argument prototype would still apply. */
9675#ifdef __cplusplus
9676extern "C"
ad6254c5 9677#endif
f11781c5
AK
9678char readline ();
9679int
9680main ()
9681{
9682return readline ();
9683 ;
9684 return 0;
9685}
9686_ACEOF
9687if ac_fn_c_try_link "$LINENO"; then :
9688 ac_cv_lib_readline_readline=yes
9689else
9690 ac_cv_lib_readline_readline=no
9691fi
9692rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
9694LIBS=$ac_check_lib_save_LIBS
9695fi
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9697$as_echo "$ac_cv_lib_readline_readline" >&6; }
9698if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9699
8a2fc586 9700
f11781c5
AK
9701$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9702
9703 LIBS=$lvm_saved_libs
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9705$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9706if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9707 $as_echo_n "(cached) " >&6
9708else
9709 ac_check_lib_save_LIBS=$LIBS
9710LIBS="-lreadline $LIBS"
9711cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h. */
8a2fc586 9713
7a197a62
AK
9714/* Override any GCC internal prototype to avoid an error.
9715 Use char because int might match the return type of a GCC
9716 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9717#ifdef __cplusplus
9718extern "C"
ad6254c5 9719#endif
f11781c5 9720char rl_line_buffer ();
ad6254c5
AK
9721int
9722main ()
9723{
f11781c5 9724return rl_line_buffer ();
ad6254c5
AK
9725 ;
9726 return 0;
9727}
9728_ACEOF
f11781c5
AK
9729if ac_fn_c_try_link "$LINENO"; then :
9730 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9731else
f11781c5
AK
9732 ac_cv_lib_readline_rl_line_buffer=no
9733fi
9734rm -f core conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736LIBS=$ac_check_lib_save_LIBS
9737fi
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9739$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9740if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9741 READLINE_LIBS="-lreadline"
9742else
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9745$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9746 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9747
ad6254c5 9748fi
7a197a62 9749
f11781c5
AK
9750else
9751
9752 READLINE_LIBS=
9753 if test "$READLINE" = yes; then
9754 as_fn_error $? "GNU Readline could not be found which is required for the
9755--enable-readline option (which is enabled by default). Either disable readline
9756support with --disable-readline or download and install readline from:
9757 ftp.gnu.org/gnu/readline
9758Note: if you are using precompiled packages you will also need the development
9759package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9760 fi
ad6254c5 9761fi
f11781c5
AK
9762
9763 LIBS="$READLINE_LIBS $lvm_saved_libs"
9764 for ac_func in rl_completion_matches
9765do :
9766 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9767if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9768 cat >>confdefs.h <<_ACEOF
f11781c5 9769#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9770_ACEOF
9771
ad6254c5
AK
9772fi
9773done
9774
f11781c5 9775 LIBS=$lvm_saved_libs
ad6254c5
AK
9776fi
9777
f11781c5
AK
9778################################################################################
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9780$as_echo_n "checking whether to enable internationalisation... " >&6; }
9781# Check whether --enable-nls was given.
9782if test "${enable_nls+set}" = set; then :
9783 enableval=$enable_nls; INTL=$enableval
9784else
9785 INTL=no
9786fi
d911ec67 9787
f11781c5
AK
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9789$as_echo "$INTL" >&6; }
9790
9791if test x$INTL = xyes; then
9792# FIXME - Move this - can be device-mapper too
9793 INTL_PACKAGE="lvm2"
9794 # Extract the first word of "msgfmt", so it can be a program name with args.
9795set dummy msgfmt; ac_word=$2
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797$as_echo_n "checking for $ac_word... " >&6; }
9798if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9799 $as_echo_n "(cached) " >&6
d911ec67 9800else
f11781c5
AK
9801 case $MSGFMT in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9804 ;;
9805 *)
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9813 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9815 break 2
9816 fi
9817done
9818 done
9819IFS=$as_save_IFS
9820
9821 ;;
d911ec67 9822esac
f11781c5
AK
9823fi
9824MSGFMT=$ac_cv_path_MSGFMT
9825if test -n "$MSGFMT"; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9827$as_echo "$MSGFMT" >&6; }
d911ec67 9828else
f11781c5
AK
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9830$as_echo "no" >&6; }
9831fi
d911ec67 9832
f11781c5
AK
9833
9834 if [ "x$MSGFMT" == x ];
9835 then as_fn_error $? "msgfmt not found in path $PATH
9836 " "$LINENO" 5
9837 fi;
9838
9839
9840# Check whether --with-localedir was given.
9841if test "${with_localedir+set}" = set; then :
9842 withval=$with_localedir; LOCALEDIR=$withval
9843else
9844 LOCALEDIR='${prefix}/share/locale'
9845fi
9846
9847fi
9848
9849################################################################################
9850
9851# Check whether --with-confdir was given.
9852if test "${with_confdir+set}" = set; then :
9853 withval=$with_confdir; CONFDIR=$withval
9854else
9855 CONFDIR="/etc"
9856fi
9857
9858
9859
9860# Check whether --with-staticdir was given.
9861if test "${with_staticdir+set}" = set; then :
9862 withval=$with_staticdir; STATICDIR=$withval
9863else
9864 STATICDIR='${exec_prefix}/sbin'
9865fi
9866
9867
9868
9869# Check whether --with-usrlibdir was given.
9870if test "${with_usrlibdir+set}" = set; then :
9871 withval=$with_usrlibdir; usrlibdir=$withval
9872else
9873 usrlibdir='${prefix}/lib'
d911ec67
AK
9874fi
9875
d911ec67 9876
d911ec67 9877
f11781c5
AK
9878# Check whether --with-usrsbindir was given.
9879if test "${with_usrsbindir+set}" = set; then :
9880 withval=$with_usrsbindir; usrsbindir=$withval
9881else
9882 usrsbindir='${prefix}/sbin'
d911ec67
AK
9883fi
9884
d911ec67 9885
f11781c5 9886################################################################################
d911ec67 9887
f11781c5
AK
9888# Check whether --with-udev_prefix was given.
9889if test "${with_udev_prefix+set}" = set; then :
9890 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9891else
f11781c5 9892 udev_prefix='${exec_prefix}'
d911ec67 9893fi
d911ec67 9894
f11781c5
AK
9895
9896
9897# Check whether --with-udevdir was given.
9898if test "${with_udevdir+set}" = set; then :
9899 withval=$with_udevdir; udevdir=$withval
9900else
9901 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9902fi
f11781c5
AK
9903
9904
e587cb6a
PR
9905################################################################################
9906
9907# Check whether --with-systemdsystemunitdir was given.
9908if test "${with_systemdsystemunitdir+set}" = set; then :
9909 withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
9910else
767ce95a
ZK
9911 test x$PKGCONFIG_INIT != x1 && pkg_config_init
9912 pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
e587cb6a
PR
9913fi
9914
9915
9916if test -n "$pkg_systemdsystemunitdir"; then
9917 systemdsystemunitdir=$pkg_systemdsystemunitdir;
9918fi
9919
9920if test -z "$systemdsystemunitdir"; then
fa68466e
PR
9921 systemdsystemunitdir='${exec_prefix}/lib/systemd/system';
9922fi
9923
9924systemdutildir=$($PKG_CONFIG --variable=systemdutildir systemd)
9925if test -z "$systemdutildir"; then
9926 systemdutildir='${exec_prefix}/lib/systemd';
e587cb6a 9927fi
4417a8bd
PR
9928################################################################################
9929
9930# Check whether --with-tmpfilesdir was given.
9931if test "${with_tmpfilesdir+set}" = set; then :
9932 withval=$with_tmpfilesdir; tmpfilesdir=$withval
9933else
3f5cdf20 9934 tmpfilesdir='${prefix}/lib/tmpfiles.d'
4417a8bd
PR
9935fi
9936
f11781c5
AK
9937################################################################################
9938if test x$READLINE = xyes; then
9939 for ac_header in readline/readline.h readline/history.h
9940do :
9941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9942ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9943if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9944 cat >>confdefs.h <<_ACEOF
9945#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9946_ACEOF
9947
9948else
f11781c5 9949 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9950fi
9951
9952done
9953
9954fi
9955
f11781c5
AK
9956if test x$CLVMD != xnone; then
9957 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
9958do :
9959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9960ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9961if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9962 cat >>confdefs.h <<_ACEOF
9963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9964_ACEOF
ad6254c5 9965
f11781c5
AK
9966else
9967 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9968fi
7a197a62 9969
f11781c5 9970done
ad6254c5 9971
f11781c5
AK
9972 for ac_func in dup2 getmntent memmove select socket
9973do :
9974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9975ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9976if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9977 cat >>confdefs.h <<_ACEOF
9978#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9979_ACEOF
ad6254c5 9980
f11781c5
AK
9981else
9982 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9983fi
f11781c5 9984done
7a197a62 9985
f11781c5
AK
9986 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9987# -lseq on Dynix/PTX, -lgen on Unixware.
9988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9989$as_echo_n "checking for library containing getmntent... " >&6; }
9990if test "${ac_cv_search_getmntent+set}" = set; then :
9991 $as_echo_n "(cached) " >&6
9992else
9993 ac_func_search_save_LIBS=$LIBS
9994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h. */
ad6254c5 9996
f11781c5
AK
9997/* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10000#ifdef __cplusplus
10001extern "C"
10002#endif
10003char getmntent ();
10004int
10005main ()
10006{
10007return getmntent ();
10008 ;
10009 return 0;
10010}
10011_ACEOF
10012for ac_lib in '' sun seq gen; do
10013 if test -z "$ac_lib"; then
10014 ac_res="none required"
10015 else
10016 ac_res=-l$ac_lib
10017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10018 fi
10019 if ac_fn_c_try_link "$LINENO"; then :
10020 ac_cv_search_getmntent=$ac_res
10021fi
10022rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext
10024 if test "${ac_cv_search_getmntent+set}" = set; then :
10025 break
10026fi
10027done
10028if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 10029
ad6254c5 10030else
f11781c5 10031 ac_cv_search_getmntent=no
795ca3e5 10032fi
f11781c5
AK
10033rm conftest.$ac_ext
10034LIBS=$ac_func_search_save_LIBS
10035fi
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
10037$as_echo "$ac_cv_search_getmntent" >&6; }
10038ac_res=$ac_cv_search_getmntent
10039if test "$ac_res" != no; then :
10040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10041 ac_cv_func_getmntent=yes
10042
10043$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 10044
f11781c5
AK
10045else
10046 ac_cv_func_getmntent=no
8106cdd5 10047fi
f11781c5
AK
10048
10049
10050 for ac_header in sys/select.h sys/socket.h
10051do :
10052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10053ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10054if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 10055 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 10057_ACEOF
795ca3e5 10058
795ca3e5
AK
10059fi
10060
ad6254c5 10061done
80992638 10062
f11781c5
AK
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
10064$as_echo_n "checking types of arguments for select... " >&6; }
10065if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 10066 $as_echo_n "(cached) " >&6
83912faa 10067else
f11781c5
AK
10068 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
10069 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
10070 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
10072/* end confdefs.h. */
10073$ac_includes_default
f11781c5
AK
10074#ifdef HAVE_SYS_SELECT_H
10075# include <sys/select.h>
10076#endif
10077#ifdef HAVE_SYS_SOCKET_H
10078# include <sys/socket.h>
10079#endif
10080
10081int
10082main ()
10083{
10084extern int select ($ac_arg1,
10085 $ac_arg234, $ac_arg234, $ac_arg234,
10086 $ac_arg5);
10087 ;
10088 return 0;
10089}
ad6254c5 10090_ACEOF
f11781c5
AK
10091if ac_fn_c_try_compile "$LINENO"; then :
10092 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10093fi
10094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 done
10096 done
10097done
10098# Provide a safe default value.
10099: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 10100
ad6254c5 10101fi
f11781c5
AK
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10103$as_echo "$ac_cv_func_select_args" >&6; }
10104ac_save_IFS=$IFS; IFS=','
10105set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10106IFS=$ac_save_IFS
10107shift
7a197a62 10108
f11781c5
AK
10109cat >>confdefs.h <<_ACEOF
10110#define SELECT_TYPE_ARG1 $1
10111_ACEOF
ad6254c5 10112
f11781c5
AK
10113
10114cat >>confdefs.h <<_ACEOF
10115#define SELECT_TYPE_ARG234 ($2)
ad6254c5 10116_ACEOF
f11781c5
AK
10117
10118
10119cat >>confdefs.h <<_ACEOF
10120#define SELECT_TYPE_ARG5 ($3)
ad6254c5 10121_ACEOF
ad6254c5 10122
f11781c5
AK
10123rm -f conftest*
10124
ad6254c5 10125fi
7a197a62 10126
f11781c5
AK
10127if test x$CLUSTER != xnone; then
10128 for ac_header in sys/socket.h sys/un.h
10129do :
10130 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10131ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10132if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10133 cat >>confdefs.h <<_ACEOF
10134#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10135_ACEOF
ad6254c5 10136
f11781c5
AK
10137else
10138 as_fn_error $? "bailing out" "$LINENO" 5
10139fi
10140
10141done
10142
10143 for ac_func in socket
10144do :
10145 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10146if test "x$ac_cv_func_socket" = x""yes; then :
10147 cat >>confdefs.h <<_ACEOF
10148#define HAVE_SOCKET 1
10149_ACEOF
7a197a62 10150
80992638 10151else
f11781c5 10152 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 10153fi
f11781c5 10154done
83912faa 10155
69792976 10156fi
f11781c5
AK
10157
10158if test x$DMEVENTD = xyes; then
10159 for ac_header in arpa/inet.h
10160do :
10161 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10162if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 10163 cat >>confdefs.h <<_ACEOF
f11781c5 10164#define HAVE_ARPA_INET_H 1
ad6254c5 10165_ACEOF
69792976 10166
69792976 10167else
f11781c5 10168 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
10169fi
10170
ad6254c5 10171done
69792976 10172
ad6254c5
AK
10173fi
10174
f11781c5
AK
10175if test x$HAVE_LIBDL = xyes; then
10176 for ac_header in dlfcn.h
10177do :
10178 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10179if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10180 cat >>confdefs.h <<_ACEOF
10181#define HAVE_DLFCN_H 1
a5f46f6a 10182_ACEOF
a5f46f6a 10183
f11781c5
AK
10184else
10185 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10186fi
10187
f11781c5 10188done
a5f46f6a 10189
a5f46f6a
AK
10190fi
10191
f11781c5
AK
10192if test x$INTL = xyes; then
10193 for ac_header in libintl.h
10194do :
10195 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10196if test "x$ac_cv_header_libintl_h" = x""yes; then :
10197 cat >>confdefs.h <<_ACEOF
10198#define HAVE_LIBINTL_H 1
10199_ACEOF
a5f46f6a 10200
a5f46f6a 10201else
f11781c5 10202 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 10203fi
f11781c5
AK
10204
10205done
a5f46f6a
AK
10206
10207fi
f11781c5
AK
10208
10209if test x$UDEV_SYNC = xyes; then
10210 for ac_header in sys/ipc.h sys/sem.h
10211do :
10212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10213ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10214if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
10215 cat >>confdefs.h <<_ACEOF
10216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217_ACEOF
10218
10219else
f11781c5 10220 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10221fi
10222
10223done
10224
10225fi
10226
a653923f
AK
10227################################################################################
10228# Extract the first word of "modprobe", so it can be a program name with args.
10229set dummy modprobe; ac_word=$2
f11781c5 10230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 10231$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 10232if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 10233 $as_echo_n "(cached) " >&6
72b2cb61
AK
10234else
10235 case $MODPROBE_CMD in
10236 [\\/]* | ?:[\\/]*)
10237 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10238 ;;
10239 *)
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
f11781c5 10245 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10247 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10249 break 2
10250 fi
10251done
f11781c5 10252 done
7a197a62 10253IFS=$as_save_IFS
72b2cb61
AK
10254
10255 ;;
10256esac
10257fi
10258MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10259if test -n "$MODPROBE_CMD"; then
f11781c5 10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10261$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10262else
f11781c5 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10264$as_echo "no" >&6; }
72b2cb61
AK
10265fi
10266
a653923f 10267
7a197a62 10268
a653923f 10269if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10270
10271cat >>confdefs.h <<_ACEOF
10272#define MODPROBE_CMD "$MODPROBE_CMD"
10273_ACEOF
10274
a653923f
AK
10275fi
10276
b5c2529b 10277
a9b601e2
ZK
10278lvm_exec_prefix=$exec_prefix
10279test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10280test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 10281LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 10282
b5c2529b 10283cat >>confdefs.h <<_ACEOF
d2c11605 10284#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
10285_ACEOF
10286
10287
10288if test "$CLVMD" != none; then
10289 clvmd_prefix=$ac_default_prefix
d2c11605 10290 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
10291 test "$prefix" != NONE && clvmd_prefix=$prefix
10292
10293cat >>confdefs.h <<_ACEOF
d2c11605 10294#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
10295_ACEOF
10296
10297fi
10298
80992638 10299################################################################################
93bd259b
AK
10300if test "$BUILD_DMEVENTD" = yes; then
10301
10302# Check whether --with-dmeventd-pidfile was given.
f11781c5 10303if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10304 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10305else
5723db01 10306 DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid"
93bd259b
AK
10307fi
10308
93bd259b 10309
71082be4
ZK
10310cat >>confdefs.h <<_ACEOF
10311#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10312_ACEOF
93bd259b 10313
71082be4 10314fi
93bd259b
AK
10315
10316if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10317
10318# Check whether --with-dmeventd-path was given.
f11781c5 10319if test "${with_dmeventd_path+set}" = set; then :
71082be4 10320 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10321else
71082be4 10322 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10323fi
10324
93bd259b 10325
71082be4
ZK
10326cat >>confdefs.h <<_ACEOF
10327#define DMEVENTD_PATH "$DMEVENTD_PATH"
10328_ACEOF
3399ae32 10329
71082be4 10330fi
3399ae32 10331
71082be4 10332################################################################################
3399ae32
AK
10333
10334# Check whether --with-default-system-dir was given.
f11781c5 10335if test "${with_default_system_dir+set}" = set; then :
71082be4 10336 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10337else
71082be4 10338 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10339fi
10340
71082be4 10341
3399ae32
AK
10342cat >>confdefs.h <<_ACEOF
10343#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10344_ACEOF
10345
10346
10347
3399ae32 10348# Check whether --with-default-archive-subdir was given.
f11781c5 10349if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10350 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10351else
71082be4 10352 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10353fi
10354
71082be4 10355
3399ae32
AK
10356cat >>confdefs.h <<_ACEOF
10357#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10358_ACEOF
10359
10360
10361
3399ae32 10362# Check whether --with-default-backup-subdir was given.
f11781c5 10363if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10364 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10365else
71082be4 10366 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10367fi
10368
71082be4 10369
3399ae32
AK
10370cat >>confdefs.h <<_ACEOF
10371#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10372_ACEOF
10373
10374
10375
3399ae32 10376# Check whether --with-default-cache-subdir was given.
f11781c5 10377if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10378 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10379else
71082be4 10380 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10381fi
10382
71082be4 10383
3399ae32
AK
10384cat >>confdefs.h <<_ACEOF
10385#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10386_ACEOF
10387
10388
10389
3399ae32 10390# Check whether --with-default-locking-dir was given.
f11781c5 10391if test "${with_default_locking_dir+set}" = set; then :
71082be4 10392 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10393else
71082be4 10394 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10395fi
10396
71082be4 10397
3399ae32
AK
10398cat >>confdefs.h <<_ACEOF
10399#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10400_ACEOF
10401
10402
fea55602
DW
10403################################################################################
10404
10405# Check whether --with-default-data-alignment was given.
f11781c5 10406if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10407 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10408else
10409 DEFAULT_DATA_ALIGNMENT=1
10410fi
10411
10412
10413cat >>confdefs.h <<_ACEOF
10414#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10415_ACEOF
10416
10417
93bd259b 10418################################################################################
f11781c5 10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10420$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10421
10422# Check whether --with-interface was given.
f11781c5 10423if test "${with_interface+set}" = set; then :
71082be4 10424 withval=$with_interface; interface=$withval
93bd259b 10425else
71082be4 10426 interface=ioctl
93bd259b
AK
10427fi
10428
10429if [ "x$interface" != xioctl ];
10430then
f11781c5 10431 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10432fi
f11781c5 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10434$as_echo "$interface" >&6; }
93bd259b
AK
10435
10436################################################################################
db8b5af9 10437DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10438
10439cat >>confdefs.h <<_ACEOF
10440#define DM_LIB_VERSION $DM_LIB_VERSION
10441_ACEOF
10442
10443
db8b5af9 10444DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10445
db8b5af9 10446LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10447
db8b5af9 10448VER=`cat "$srcdir"/VERSION`
bf456146 10449LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10450VER=`echo "$VER" | $AWK '{print $1}'`
10451LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10452VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10453LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10454LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10455LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10456LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10457
80992638 10458################################################################################
fae0c576 10459
83912faa 10460
795ca3e5
AK
10461
10462
10463
10464
10465
10466
5a52dca9 10467
8ef2b021 10468
199e490e 10469
69792976
AK
10470
10471
10472
d0191583 10473
69792976 10474
8106cdd5
AK
10475
10476
10477
10478
10479
d68a82ec 10480
036f273a 10481
7d1552c9 10482
8106cdd5 10483
0a62c911 10484
8106cdd5 10485
4a7f3eb2 10486
4922197a
AK
10487
10488
d8ac0fbc 10489
1a9ea74d 10490
8a2fc586
AK
10491
10492
d0191583 10493
93bd259b
AK
10494
10495
10496
10497
10498
d0191583
JM
10499
10500
10501
10502
10503
8a2fc586 10504
19a2c6e0 10505
f7f0854e
ZK
10506
10507
3ceb7608 10508
8ce0cbda 10509
8b1a3214 10510
ec6a6fbe
AK
10511
10512
10513
10514
e2997b73
AK
10515
10516
10517
10518
10519
10520
a946372e
AK
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
ec6a6fbe 10532
cac52ca4 10533
d3c8211f 10534
7e3fe830 10535
a5f46f6a
AK
10536
10537
10538
572fefeb 10539
90c80887 10540
3399ae32
AK
10541
10542
10543
10544
10545
90c80887 10546
bf456146 10547
e1b8a236 10548
0878503f 10549
8fea97b7 10550
54b362f9 10551
b1f08e51 10552
d1e8046f 10553
fea55602 10554
c89bc357 10555
6e5c1f75 10556
3ba4a195 10557
d2c11605
ZK
10558
10559
cdd50823 10560
426fc742
PR
10561
10562
b6d7a484
AK
10563
10564
bf09a320 10565
e587cb6a 10566
b559a1e6 10567
5723db01
PR
10568
10569
10570
4417a8bd 10571
f61cacad 10572
fa68466e 10573
68f2de6d
AK
10574
10575
80992638 10576################################################################################
5723db01 10577ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.socket scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10578
ad6254c5 10579cat >confcache <<\_ACEOF
795ca3e5
AK
10580# This file is a shell script that caches the results of configure
10581# tests run on this system so they can be shared between configure
ad6254c5
AK
10582# scripts and configure runs, see configure's option --config-cache.
10583# It is not useful on other systems. If it contains results you don't
10584# want to keep, you may remove or edit it.
795ca3e5 10585#
ad6254c5
AK
10586# config.status only pays attention to the cache file if you give it
10587# the --recheck option to rerun configure.
795ca3e5 10588#
ad6254c5
AK
10589# `ac_cv_env_foo' variables (set or unset) will be overridden when
10590# loading this file, other *unset* `ac_cv_foo' will be assigned the
10591# following values.
10592
10593_ACEOF
10594
795ca3e5
AK
10595# The following way of writing the cache mishandles newlines in values,
10596# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10597# So, we kill variables containing newlines.
795ca3e5
AK
10598# Ultrix sh set writes to stderr and can't be redirected directly,
10599# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10600(
10601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10602 eval ac_val=\$$ac_var
10603 case $ac_val in #(
10604 *${as_nl}*)
10605 case $ac_var in #(
f11781c5 10606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10607$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10608 esac
10609 case $ac_var in #(
10610 _ | IFS | as_nl) ;; #(
ec6a6fbe 10611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10612 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10613 esac ;;
10614 esac
10615 done
10616
ad6254c5 10617 (set) 2>&1 |
7a197a62
AK
10618 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10619 *${as_nl}ac_space=\ *)
f11781c5
AK
10620 # `set' does not quote correctly, so add quotes: double-quote
10621 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10622 sed -n \
8a2fc586
AK
10623 "s/'/'\\\\''/g;
10624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10625 ;; #(
ad6254c5
AK
10626 *)
10627 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10629 ;;
7a197a62
AK
10630 esac |
10631 sort
10632) |
ad6254c5 10633 sed '
7a197a62 10634 /^ac_cv_env_/b end
ad6254c5 10635 t clear
7a197a62 10636 :clear
ad6254c5
AK
10637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10638 t end
7a197a62
AK
10639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10640 :end' >>confcache
10641if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10642 if test -w "$cache_file"; then
10643 test "x$cache_file" != "x/dev/null" &&
f11781c5 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10645$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10646 cat confcache >$cache_file
795ca3e5 10647 else
f11781c5 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10649$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10650 fi
10651fi
10652rm -f confcache
10653
795ca3e5
AK
10654test "x$prefix" = xNONE && prefix=$ac_default_prefix
10655# Let make expand exec_prefix.
10656test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10657
72b2cb61 10658DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10659
10660ac_libobjs=
10661ac_ltlibobjs=
f11781c5 10662U=
ad6254c5
AK
10663for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10664 # 1. Remove the extension, and $U if already installed.
7a197a62 10665 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10666 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10668 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10669 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10670 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10671done
10672LIBOBJS=$ac_libobjs
80992638 10673
ad6254c5
AK
10674LTLIBOBJS=$ac_ltlibobjs
10675
10676
10677
10678: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10679ac_write_fail=0
ad6254c5
AK
10680ac_clean_files_save=$ac_clean_files
10681ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10682{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10683$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10684as_write_fail=0
10685cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10686#! $SHELL
10687# Generated by $as_me.
795ca3e5 10688# Run this file to recreate the current configuration.
795ca3e5 10689# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10690# configure, is in config.log if it exists.
10691
10692debug=false
10693ac_cs_recheck=false
10694ac_cs_silent=false
ad6254c5 10695
f11781c5
AK
10696SHELL=\${CONFIG_SHELL-$SHELL}
10697export SHELL
10698_ASEOF
10699cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10700## -------------------- ##
10701## M4sh Initialization. ##
10702## -------------------- ##
ad6254c5 10703
25fbec5b
AK
10704# Be more Bourne compatible
10705DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10706if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10707 emulate sh
10708 NULLCMD=:
ec6a6fbe 10709 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10710 # is contrary to our usage. Disable this feature.
10711 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10712 setopt NO_GLOB_SUBST
10713else
f11781c5
AK
10714 case `(set -o) 2>/dev/null` in #(
10715 *posix*) :
10716 set -o posix ;; #(
10717 *) :
10718 ;;
25fbec5b 10719esac
7a197a62 10720fi
25fbec5b
AK
10721
10722
ec6a6fbe
AK
10723as_nl='
10724'
10725export as_nl
10726# Printing a long string crashes Solaris 7 /usr/bin/printf.
10727as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10728as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10729as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10730# Prefer a ksh shell builtin over an external printf program on Solaris,
10731# but without wasting forks for bash or zsh.
10732if test -z "$BASH_VERSION$ZSH_VERSION" \
10733 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10734 as_echo='print -r --'
10735 as_echo_n='print -rn --'
10736elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10737 as_echo='printf %s\n'
10738 as_echo_n='printf %s'
10739else
10740 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10741 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10742 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10743 else
ec6a6fbe
AK
10744 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10745 as_echo_n_body='eval
10746 arg=$1;
f11781c5 10747 case $arg in #(
ec6a6fbe
AK
10748 *"$as_nl"*)
10749 expr "X$arg" : "X\\(.*\\)$as_nl";
10750 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10751 esac;
10752 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10753 '
10754 export as_echo_n_body
10755 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10756 fi
ec6a6fbe
AK
10757 export as_echo_body
10758 as_echo='sh -c $as_echo_body as_echo'
10759fi
10760
10761# The user is always right.
10762if test "${PATH_SEPARATOR+set}" != set; then
10763 PATH_SEPARATOR=:
10764 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10765 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10766 PATH_SEPARATOR=';'
10767 }
ad6254c5
AK
10768fi
10769
ad6254c5 10770
7a197a62
AK
10771# IFS
10772# We need space, tab and new line, in precisely that order. Quoting is
10773# there to prevent editors from complaining about space-tab.
10774# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10775# splitting by setting IFS to empty value.)
7a197a62
AK
10776IFS=" "" $as_nl"
10777
10778# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10779case $0 in #((
7a197a62
AK
10780 *[\\/]* ) as_myself=$0 ;;
10781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
f11781c5
AK
10786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10787 done
7a197a62
AK
10788IFS=$as_save_IFS
10789
10790 ;;
10791esac
10792# We did not find ourselves, most probably we were run as `sh COMMAND'
10793# in which case we are not to be found in the path.
10794if test "x$as_myself" = x; then
10795 as_myself=$0
10796fi
10797if test ! -f "$as_myself"; then
ec6a6fbe 10798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10799 exit 1
7a197a62
AK
10800fi
10801
f11781c5
AK
10802# Unset variables that we do not need and which cause bugs (e.g. in
10803# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10804# suppresses any "Segmentation fault" message there. '((' could
10805# trigger a bug in pdksh 5.2.14.
10806for as_var in BASH_ENV ENV MAIL MAILPATH
10807do eval test x\${$as_var+set} = xset \
10808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10809done
ad6254c5
AK
10810PS1='$ '
10811PS2='> '
10812PS4='+ '
10813
10814# NLS nuisances.
ec6a6fbe
AK
10815LC_ALL=C
10816export LC_ALL
10817LANGUAGE=C
10818export LANGUAGE
8106cdd5 10819
f11781c5
AK
10820# CDPATH.
10821(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10822
10823
10824# as_fn_error STATUS ERROR [LINENO LOG_FD]
10825# ----------------------------------------
10826# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10827# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10828# script with STATUS, using 1 if that was 0.
10829as_fn_error ()
10830{
10831 as_status=$1; test $as_status -eq 0 && as_status=1
10832 if test "$4"; then
10833 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10835 fi
10836 $as_echo "$as_me: error: $2" >&2
10837 as_fn_exit $as_status
10838} # as_fn_error
10839
10840
10841# as_fn_set_status STATUS
10842# -----------------------
10843# Set $? to STATUS, without forking.
10844as_fn_set_status ()
10845{
10846 return $1
10847} # as_fn_set_status
10848
10849# as_fn_exit STATUS
10850# -----------------
10851# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10852as_fn_exit ()
10853{
10854 set +e
10855 as_fn_set_status $1
10856 exit $1
10857} # as_fn_exit
10858
10859# as_fn_unset VAR
10860# ---------------
10861# Portably unset VAR.
10862as_fn_unset ()
10863{
10864 { eval $1=; unset $1;}
10865}
10866as_unset=as_fn_unset
10867# as_fn_append VAR VALUE
10868# ----------------------
10869# Append the text in VALUE to the end of the definition contained in VAR. Take
10870# advantage of any shell optimizations that allow amortized linear growth over
10871# repeated appends, instead of the typical quadratic growth present in naive
10872# implementations.
10873if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10874 eval 'as_fn_append ()
10875 {
10876 eval $1+=\$2
10877 }'
10878else
10879 as_fn_append ()
10880 {
10881 eval $1=\$$1\$2
10882 }
10883fi # as_fn_append
10884
10885# as_fn_arith ARG...
10886# ------------------
10887# Perform arithmetic evaluation on the ARGs, and store the result in the
10888# global $as_val. Take advantage of shells that can avoid forks. The arguments
10889# must be portable across $(()) and expr.
10890if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10891 eval 'as_fn_arith ()
10892 {
10893 as_val=$(( $* ))
10894 }'
10895else
10896 as_fn_arith ()
10897 {
10898 as_val=`expr "$@" || test $? -eq 1`
10899 }
10900fi # as_fn_arith
10901
10902
7a197a62
AK
10903if expr a : '\(a\)' >/dev/null 2>&1 &&
10904 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10905 as_expr=expr
10906else
10907 as_expr=false
10908fi
8106cdd5 10909
7a197a62 10910if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10911 as_basename=basename
10912else
10913 as_basename=false
10914fi
10915
f11781c5
AK
10916if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10917 as_dirname=dirname
10918else
10919 as_dirname=false
10920fi
ad6254c5 10921
7a197a62 10922as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10923$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10924 X"$0" : 'X\(//\)$' \| \
7a197a62 10925 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10926$as_echo X/"$0" |
7a197a62
AK
10927 sed '/^.*\/\([^/][^/]*\)\/*$/{
10928 s//\1/
10929 q
10930 }
10931 /^X\/\(\/\/\)$/{
10932 s//\1/
10933 q
10934 }
10935 /^X\/\(\/\).*/{
10936 s//\1/
10937 q
10938 }
10939 s/.*/./; q'`
ad6254c5 10940
f11781c5
AK
10941# Avoid depending upon Character Ranges.
10942as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10944as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10945as_cr_digits='0123456789'
10946as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10947
10948ECHO_C= ECHO_N= ECHO_T=
f11781c5 10949case `echo -n x` in #(((((
7a197a62 10950-n*)
f11781c5 10951 case `echo 'xy\c'` in
7a197a62 10952 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10953 xy) ECHO_C='\c';;
10954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10955 ECHO_T=' ';;
7a197a62
AK
10956 esac;;
10957*)
10958 ECHO_N='-n';;
ad6254c5 10959esac
80992638 10960
ad6254c5 10961rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10962if test -d conf$$.dir; then
10963 rm -f conf$$.dir/conf$$.file
10964else
10965 rm -f conf$$.dir
ec6a6fbe
AK
10966 mkdir conf$$.dir 2>/dev/null
10967fi
10968if (echo >conf$$.file) 2>/dev/null; then
10969 if ln -s conf$$.file conf$$ 2>/dev/null; then
10970 as_ln_s='ln -s'
10971 # ... but there are two gotchas:
10972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10974 # In both cases, we have to default to `cp -p'.
10975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10976 as_ln_s='cp -p'
10977 elif ln conf$$.file conf$$ 2>/dev/null; then
10978 as_ln_s=ln
10979 else
ad6254c5 10980 as_ln_s='cp -p'
ec6a6fbe 10981 fi
ad6254c5
AK
10982else
10983 as_ln_s='cp -p'
10984fi
7a197a62
AK
10985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10986rmdir conf$$.dir 2>/dev/null
8106cdd5 10987
f11781c5
AK
10988
10989# as_fn_mkdir_p
10990# -------------
10991# Create "$as_dir" as a directory, including parents if necessary.
10992as_fn_mkdir_p ()
10993{
10994
10995 case $as_dir in #(
10996 -*) as_dir=./$as_dir;;
10997 esac
10998 test -d "$as_dir" || eval $as_mkdir_p || {
10999 as_dirs=
11000 while :; do
11001 case $as_dir in #(
11002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11003 *) as_qdir=$as_dir;;
11004 esac
11005 as_dirs="'$as_qdir' $as_dirs"
11006 as_dir=`$as_dirname -- "$as_dir" ||
11007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11008 X"$as_dir" : 'X\(//\)[^/]' \| \
11009 X"$as_dir" : 'X\(//\)$' \| \
11010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11011$as_echo X"$as_dir" |
11012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11013 s//\1/
11014 q
11015 }
11016 /^X\(\/\/\)[^/].*/{
11017 s//\1/
11018 q
11019 }
11020 /^X\(\/\/\)$/{
11021 s//\1/
11022 q
11023 }
11024 /^X\(\/\).*/{
11025 s//\1/
11026 q
11027 }
11028 s/.*/./; q'`
11029 test -d "$as_dir" && break
11030 done
11031 test -z "$as_dirs" || eval "mkdir $as_dirs"
11032 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11033
11034
11035} # as_fn_mkdir_p
ad6254c5 11036if mkdir -p . 2>/dev/null; then
f11781c5 11037 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 11038else
8a2fc586 11039 test -d ./-p && rmdir ./-p
ad6254c5
AK
11040 as_mkdir_p=false
11041fi
11042
25fbec5b
AK
11043if test -x / >/dev/null 2>&1; then
11044 as_test_x='test -x'
7a197a62 11045else
25fbec5b
AK
11046 if ls -dL / >/dev/null 2>&1; then
11047 as_ls_L_option=L
11048 else
11049 as_ls_L_option=
11050 fi
11051 as_test_x='
11052 eval sh -c '\''
11053 if test -d "$1"; then
ec6a6fbe 11054 test -d "$1/.";
25fbec5b 11055 else
f11781c5 11056 case $1 in #(
ec6a6fbe 11057 -*)set "./$1";;
25fbec5b 11058 esac;
f11781c5 11059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
11060 ???[sx]*):;;*)false;;esac;fi
11061 '\'' sh
11062 '
7a197a62 11063fi
25fbec5b 11064as_executable_p=$as_test_x
ad6254c5
AK
11065
11066# Sed expression to map a string onto a valid CPP name.
8a2fc586 11067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11068
11069# Sed expression to map a string onto a valid variable name.
8a2fc586 11070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
11071
11072
ad6254c5 11073exec 6>&1
f11781c5
AK
11074## ----------------------------------- ##
11075## Main body of $CONFIG_STATUS script. ##
11076## ----------------------------------- ##
11077_ASEOF
11078test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 11079
f11781c5
AK
11080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11081# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 11082# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
11083# values after options handling.
11084ac_log="
ad6254c5 11085This file was extended by $as_me, which was
f11781c5 11086generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
11087
11088 CONFIG_FILES = $CONFIG_FILES
11089 CONFIG_HEADERS = $CONFIG_HEADERS
11090 CONFIG_LINKS = $CONFIG_LINKS
11091 CONFIG_COMMANDS = $CONFIG_COMMANDS
11092 $ $0 $@
11093
7a197a62
AK
11094on `(hostname || uname -n) 2>/dev/null | sed 1q`
11095"
11096
ad6254c5
AK
11097_ACEOF
11098
ec6a6fbe
AK
11099case $ac_config_files in *"
11100"*) set x $ac_config_files; shift; ac_config_files=$*;;
11101esac
11102
11103case $ac_config_headers in *"
11104"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11105esac
11106
11107
11108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11109# Files that config.status was made for.
68f2de6d
AK
11110config_files="$ac_config_files"
11111config_headers="$ac_config_headers"
ad6254c5 11112
7a197a62 11113_ACEOF
ad6254c5 11114
ec6a6fbe 11115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 11116ac_cs_usage="\
f11781c5
AK
11117\`$as_me' instantiates files and other configuration actions
11118from templates according to the current configuration. Unless the files
11119and actions are specified as TAGs, all are instantiated by default.
ad6254c5 11120
f11781c5 11121Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
11122
11123 -h, --help print this help, then exit
25fbec5b 11124 -V, --version print version number and configuration settings, then exit
f11781c5 11125 --config print configuration, then exit
ec6a6fbe
AK
11126 -q, --quiet, --silent
11127 do not print progress messages
ad6254c5
AK
11128 -d, --debug don't remove temporary files
11129 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
11130 --file=FILE[:TEMPLATE]
11131 instantiate the configuration file FILE
11132 --header=FILE[:TEMPLATE]
11133 instantiate the configuration header FILE
ad6254c5
AK
11134
11135Configuration files:
11136$config_files
11137
72b2cb61
AK
11138Configuration headers:
11139$config_headers
11140
f11781c5 11141Report bugs to the package provider."
ad6254c5 11142
7a197a62 11143_ACEOF
ec6a6fbe 11144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 11145ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
11146ac_cs_version="\\
11147config.status
f11781c5
AK
11148configured by $0, generated by GNU Autoconf 2.66,
11149 with options \\"\$ac_cs_config\\"
ad6254c5 11150
f11781c5 11151Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
11152This config.status script is free software; the Free Software Foundation
11153gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
11154
11155ac_pwd='$ac_pwd'
11156srcdir='$srcdir'
11157INSTALL='$INSTALL'
fddafd51 11158MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
11159AWK='$AWK'
11160test -n "\$AWK" || AWK=awk
ad6254c5
AK
11161_ACEOF
11162
ec6a6fbe
AK
11163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11164# The default lists apply if the user does not specify any file.
ad6254c5
AK
11165ac_need_defaults=:
11166while test $# != 0
11167do
11168 case $1 in
11169 --*=*)
7a197a62
AK
11170 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11171 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
11172 ac_shift=:
11173 ;;
7a197a62 11174 *)
ad6254c5
AK
11175 ac_option=$1
11176 ac_optarg=$2
11177 ac_shift=shift
11178 ;;
ad6254c5
AK
11179 esac
11180
11181 case $ac_option in
11182 # Handling of the options.
ad6254c5
AK
11183 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11184 ac_cs_recheck=: ;;
7a197a62 11185 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 11186 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
11187 --config | --confi | --conf | --con | --co | --c )
11188 $as_echo "$ac_cs_config"; exit ;;
7a197a62 11189 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
11190 debug=: ;;
11191 --file | --fil | --fi | --f )
11192 $ac_shift
ec6a6fbe
AK
11193 case $ac_optarg in
11194 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11195 esac
f11781c5 11196 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
11197 ac_need_defaults=false;;
11198 --header | --heade | --head | --hea )
11199 $ac_shift
ec6a6fbe
AK
11200 case $ac_optarg in
11201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11202 esac
f11781c5 11203 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 11204 ac_need_defaults=false;;
7a197a62
AK
11205 --he | --h)
11206 # Conflict between --help and --header
f11781c5
AK
11207 as_fn_error $? "ambiguous option: \`$1'
11208Try \`$0 --help' for more information.";;
7a197a62 11209 --help | --hel | -h )
ec6a6fbe 11210 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11211 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11212 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11213 ac_cs_silent=: ;;
11214
11215 # This is an error.
f11781c5
AK
11216 -*) as_fn_error $? "unrecognized option: \`$1'
11217Try \`$0 --help' for more information." ;;
ad6254c5 11218
f11781c5 11219 *) as_fn_append ac_config_targets " $1"
7a197a62 11220 ac_need_defaults=false ;;
ad6254c5
AK
11221
11222 esac
11223 shift
11224done
11225
11226ac_configure_extra_args=
11227
11228if $ac_cs_silent; then
11229 exec 6>/dev/null
11230 ac_configure_extra_args="$ac_configure_extra_args --silent"
11231fi
11232
11233_ACEOF
ec6a6fbe 11234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11235if \$ac_cs_recheck; then
ec6a6fbe
AK
11236 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11237 shift
11238 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11239 CONFIG_SHELL='$SHELL'
7a197a62 11240 export CONFIG_SHELL
ec6a6fbe 11241 exec "\$@"
ad6254c5
AK
11242fi
11243
11244_ACEOF
ec6a6fbe 11245cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11246exec 5>>config.log
11247{
11248 echo
11249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11250## Running $as_me. ##
11251_ASBOX
ec6a6fbe 11252 $as_echo "$ac_log"
7a197a62 11253} >&5
ad6254c5 11254
7a197a62 11255_ACEOF
ec6a6fbe 11256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11257_ACEOF
ad6254c5 11258
ec6a6fbe 11259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11260
11261# Handling of arguments.
ad6254c5
AK
11262for ac_config_target in $ac_config_targets
11263do
7a197a62
AK
11264 case $ac_config_target in
11265 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11266 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11267 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11268 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11269 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11270 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
11271 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11272 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11273 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11274 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 11275 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
11276 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11277 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
2bc1d759 11278 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
cdd50823 11279 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 11280 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11281 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11282 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11283 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11284 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11285 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11286 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11287 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11288 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11289 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11290 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 11291 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 11292 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 11293 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
7126d8c2
AK
11294 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
11295 "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;;
11296 "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;;
93bd259b
AK
11297 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11298 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11299 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11300 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11301 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11302 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11303 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11304 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
a30491b2 11305 "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;;
dac3c36f 11306 "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;;
da532741 11307 "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;;
595eaf92 11308 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
5723db01 11309 "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;;
6e5c1f75
PR
11310 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11311 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
4417a8bd 11312 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
7a197a62 11313 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11314 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11315 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
9493f1df 11316 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
7a197a62 11317 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11318 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11319 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11320 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11321 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11322
f11781c5 11323 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11324 esac
ad6254c5
AK
11325done
11326
7a197a62 11327
ad6254c5
AK
11328# If the user did not use the arguments to specify the items to instantiate,
11329# then the envvar interface is used. Set only those that are not.
11330# We use the long form for the default assignment because of an extremely
11331# bizarre bug on SunOS 4.1.3.
11332if $ac_need_defaults; then
11333 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11334 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11335fi
11336
11337# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11338# simply because there is no reason against having it here, and in addition,
ad6254c5 11339# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11340# Hook for its removal unless debugging.
11341# Note that there is a small window in which the directory will not be cleaned:
11342# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11343$debug ||
11344{
7a197a62
AK
11345 tmp=
11346 trap 'exit_status=$?
11347 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11348' 0
f11781c5 11349 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11350}
ad6254c5
AK
11351# Create a (secure) tmp directory for tmp files.
11352
11353{
7a197a62 11354 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11355 test -n "$tmp" && test -d "$tmp"
11356} ||
11357{
7a197a62
AK
11358 tmp=./conf$$-$RANDOM
11359 (umask 077 && mkdir "$tmp")
f11781c5 11360} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11361
ec6a6fbe
AK
11362# Set up the scripts for CONFIG_FILES section.
11363# No need to generate them if there are no CONFIG_FILES.
11364# This happens for instance with `./config.status config.h'.
1995c9ff 11365if test -n "$CONFIG_FILES"; then
7a197a62 11366
68f2de6d 11367
f11781c5
AK
11368ac_cr=`echo X | tr X '\015'`
11369# On cygwin, bash can eat \r inside `` if the user requested igncr.
11370# But we know of no other shell where ac_cr would be empty at this
11371# point, so we can use a bashism as a fallback.
11372if test "x$ac_cr" = x; then
11373 eval ac_cr=\$\'\\r\'
11374fi
ec6a6fbe
AK
11375ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11376if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11377 ac_cs_awk_cr='\\r'
11378else
11379 ac_cs_awk_cr=$ac_cr
1995c9ff 11380fi
7a197a62 11381
ec6a6fbe 11382echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11383_ACEOF
7a197a62 11384
8106cdd5 11385
ec6a6fbe
AK
11386{
11387 echo "cat >conf$$subs.awk <<_ACEOF" &&
11388 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11389 echo "_ACEOF"
11390} >conf$$subs.sh ||
f11781c5
AK
11391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11392ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11393ac_delim='%!_!# '
11394for ac_last_try in false false false false false :; do
ec6a6fbe 11395 . ./conf$$subs.sh ||
f11781c5 11396 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11397
11398 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11399 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11400 break
11401 elif $ac_last_try; then
f11781c5 11402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11403 else
11404 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11405 fi
11406done
ec6a6fbe
AK
11407rm -f conf$$subs.sh
11408
11409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11410cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11411_ACEOF
11412sed -n '
11413h
11414s/^/S["/; s/!.*/"]=/
11415p
11416g
11417s/^[^!]*!//
11418:repl
11419t repl
11420s/'"$ac_delim"'$//
11421t delim
11422:nl
11423h
f11781c5 11424s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11425t more1
11426s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11427p
11428n
11429b repl
11430:more1
11431s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11432p
11433g
11434s/.\{148\}//
11435t nl
11436:delim
11437h
f11781c5 11438s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11439t more2
11440s/["\\]/\\&/g; s/^/"/; s/$/"/
11441p
11442b
11443:more2
11444s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11445p
11446g
11447s/.\{148\}//
11448t delim
11449' <conf$$subs.awk | sed '
11450/^[^""]/{
11451 N
11452 s/\n//
11453}
11454' >>$CONFIG_STATUS || ac_write_fail=1
11455rm -f conf$$subs.awk
11456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11457_ACAWK
11458cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11459 for (key in S) S_is_set[key] = 1
11460 FS = "\a"
7a197a62 11461
ec6a6fbe
AK
11462}
11463{
11464 line = $ 0
11465 nfields = split(line, field, "@")
11466 substed = 0
11467 len = length(field[1])
11468 for (i = 2; i < nfields; i++) {
11469 key = field[i]
11470 keylen = length(key)
11471 if (S_is_set[key]) {
11472 value = S[key]
11473 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11474 len += length(value) + length(field[++i])
11475 substed = 1
11476 } else
11477 len += 1 + keylen
11478 }
11479
11480 print line
11481}
fddafd51 11482
ec6a6fbe 11483_ACAWK
1995c9ff 11484_ACEOF
ec6a6fbe
AK
11485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11486if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11487 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11488else
11489 cat
11490fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11491 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11492_ACEOF
11493
f11781c5
AK
11494# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11495# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11496# trailing colons and then remove the whole line if VPATH becomes empty
11497# (actually we leave an empty line to preserve line numbers).
11498if test "x$srcdir" = x.; then
f11781c5
AK
11499 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11500h
11501s///
11502s/^/:/
11503s/[ ]*$/:/
11504s/:\$(srcdir):/:/g
11505s/:\${srcdir}:/:/g
11506s/:@srcdir@:/:/g
11507s/^:*//
7a197a62 11508s/:*$//
f11781c5
AK
11509x
11510s/\(=[ ]*\).*/\1/
11511G
11512s/\n//
7a197a62
AK
11513s/^[^=]*=[ ]*$//
11514}'
11515fi
11516
ec6a6fbe 11517cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11518fi # test -n "$CONFIG_FILES"
11519
ec6a6fbe
AK
11520# Set up the scripts for CONFIG_HEADERS section.
11521# No need to generate them if there are no CONFIG_HEADERS.
11522# This happens for instance with `./config.status Makefile'.
11523if test -n "$CONFIG_HEADERS"; then
11524cat >"$tmp/defines.awk" <<\_ACAWK ||
11525BEGIN {
11526_ACEOF
11527
11528# Transform confdefs.h into an awk script `defines.awk', embedded as
11529# here-document in config.status, that substitutes the proper values into
11530# config.h.in to produce config.h.
11531
11532# Create a delimiter string that does not exist in confdefs.h, to ease
11533# handling of long lines.
11534ac_delim='%!_!# '
11535for ac_last_try in false false :; do
11536 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11537 if test -z "$ac_t"; then
11538 break
11539 elif $ac_last_try; then
f11781c5 11540 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11541 else
11542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11543 fi
11544done
11545
11546# For the awk script, D is an array of macro values keyed by name,
11547# likewise P contains macro parameters if any. Preserve backslash
11548# newline sequences.
11549
11550ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11551sed -n '
11552s/.\{148\}/&'"$ac_delim"'/g
11553t rset
11554:rset
11555s/^[ ]*#[ ]*define[ ][ ]*/ /
11556t def
11557d
11558:def
11559s/\\$//
11560t bsnl
11561s/["\\]/\\&/g
11562s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11563D["\1"]=" \3"/p
11564s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11565d
11566:bsnl
11567s/["\\]/\\&/g
11568s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11569D["\1"]=" \3\\\\\\n"\\/p
11570t cont
11571s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11572t cont
11573d
11574:cont
11575n
11576s/.\{148\}/&'"$ac_delim"'/g
11577t clear
11578:clear
11579s/\\$//
11580t bsnlc
11581s/["\\]/\\&/g; s/^/"/; s/$/"/p
11582d
11583:bsnlc
11584s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11585b cont
11586' <confdefs.h | sed '
11587s/'"$ac_delim"'/"\\\
11588"/g' >>$CONFIG_STATUS || ac_write_fail=1
11589
11590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11591 for (key in D) D_is_set[key] = 1
11592 FS = "\a"
11593}
11594/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11595 line = \$ 0
11596 split(line, arg, " ")
11597 if (arg[1] == "#") {
11598 defundef = arg[2]
11599 mac1 = arg[3]
11600 } else {
11601 defundef = substr(arg[1], 2)
11602 mac1 = arg[2]
11603 }
11604 split(mac1, mac2, "(") #)
11605 macro = mac2[1]
11606 prefix = substr(line, 1, index(line, defundef) - 1)
11607 if (D_is_set[macro]) {
11608 # Preserve the white space surrounding the "#".
11609 print prefix "define", macro P[macro] D[macro]
11610 next
11611 } else {
11612 # Replace #undef with comments. This is necessary, for example,
11613 # in the case of _POSIX_SOURCE, which is predefined and required
11614 # on some systems where configure will not decide to define it.
11615 if (defundef == "undef") {
11616 print "/*", prefix defundef, macro, "*/"
11617 next
11618 }
11619 }
11620}
11621{ print }
11622_ACAWK
11623_ACEOF
11624cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11625 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11626fi # test -n "$CONFIG_HEADERS"
11627
7a197a62 11628
ec6a6fbe
AK
11629eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11630shift
11631for ac_tag
7a197a62
AK
11632do
11633 case $ac_tag in
11634 :[FHLC]) ac_mode=$ac_tag; continue;;
11635 esac
11636 case $ac_mode$ac_tag in
11637 :[FHL]*:*);;
f11781c5 11638 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11639 :[FH]-) ac_tag=-:-;;
11640 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11641 esac
11642 ac_save_IFS=$IFS
11643 IFS=:
11644 set x $ac_tag
11645 IFS=$ac_save_IFS
11646 shift
11647 ac_file=$1
11648 shift
11649
11650 case $ac_mode in
11651 :L) ac_source=$1;;
11652 :[FH])
11653 ac_file_inputs=
11654 for ac_f
11655 do
11656 case $ac_f in
11657 -) ac_f="$tmp/stdin";;
11658 *) # Look for the file first in the build tree, then in the source tree
11659 # (if the path is not absolute). The absolute path cannot be DOS-style,
11660 # because $ac_f cannot contain `:'.
11661 test -f "$ac_f" ||
11662 case $ac_f in
11663 [\\/$]*) false;;
11664 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11665 esac ||
f11781c5 11666 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11667 esac
ec6a6fbe 11668 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11669 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11670 done
11671
11672 # Let's still pretend it is `configure' which instantiates (i.e., don't
11673 # use $as_me), people would be surprised to read:
11674 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11675 configure_input='Generated from '`
11676 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11677 `' by configure.'
7a197a62
AK
11678 if test x"$ac_file" != x-; then
11679 configure_input="$ac_file. $configure_input"
f11781c5 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11681$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11682 fi
ec6a6fbe
AK
11683 # Neutralize special characters interpreted by sed in replacement strings.
11684 case $configure_input in #(
11685 *\&* | *\|* | *\\* )
11686 ac_sed_conf_input=`$as_echo "$configure_input" |
11687 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11688 *) ac_sed_conf_input=$configure_input;;
11689 esac
7a197a62
AK
11690
11691 case $ac_tag in
ec6a6fbe 11692 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11694 esac
11695 ;;
80992638 11696 esac
8106cdd5 11697
7a197a62 11698 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11699$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11700 X"$ac_file" : 'X\(//\)[^/]' \| \
11701 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11702 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11703$as_echo X"$ac_file" |
7a197a62
AK
11704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11705 s//\1/
11706 q
11707 }
11708 /^X\(\/\/\)[^/].*/{
11709 s//\1/
11710 q
11711 }
11712 /^X\(\/\/\)$/{
11713 s//\1/
11714 q
11715 }
11716 /^X\(\/\).*/{
11717 s//\1/
11718 q
11719 }
11720 s/.*/./; q'`
f11781c5 11721 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11722 ac_builddir=.
11723
7a197a62
AK
11724case "$ac_dir" in
11725.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11726*)
ec6a6fbe 11727 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11728 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11729 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11730 case $ac_top_builddir_sub in
11731 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11732 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11733 esac ;;
11734esac
11735ac_abs_top_builddir=$ac_pwd
11736ac_abs_builddir=$ac_pwd$ac_dir_suffix
11737# for backward compatibility:
11738ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11739
11740case $srcdir in
7a197a62 11741 .) # We are building in place.
ad6254c5 11742 ac_srcdir=.
7a197a62
AK
11743 ac_top_srcdir=$ac_top_builddir_sub
11744 ac_abs_top_srcdir=$ac_pwd ;;
11745 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11746 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11747 ac_top_srcdir=$srcdir
11748 ac_abs_top_srcdir=$srcdir ;;
11749 *) # Relative name.
11750 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11751 ac_top_srcdir=$ac_top_build_prefix$srcdir
11752 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11753esac
7a197a62 11754ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11755
ad6254c5 11756
7a197a62
AK
11757 case $ac_mode in
11758 :F)
11759 #
11760 # CONFIG_FILE
11761 #
ad6254c5
AK
11762
11763 case $INSTALL in
11764 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11765 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11766 esac
fddafd51
ZK
11767 ac_MKDIR_P=$MKDIR_P
11768 case $MKDIR_P in
11769 [\\/$]* | ?:[\\/]* ) ;;
11770 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11771 esac
7a197a62 11772_ACEOF
795ca3e5 11773
ec6a6fbe 11774cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11775# If the template does not know about datarootdir, expand it.
11776# FIXME: This hack should be removed a few years after 2.60.
11777ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11778ac_sed_dataroot='
11779/datarootdir/ {
7a197a62
AK
11780 p
11781 q
11782}
11783/@datadir@/p
11784/@docdir@/p
11785/@infodir@/p
11786/@localedir@/p
f11781c5 11787/@mandir@/p'
ec6a6fbe 11788case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11789*datarootdir*) ac_datarootdir_seen=yes;;
11790*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11792$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11793_ACEOF
ec6a6fbe 11794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11795 ac_datarootdir_hack='
11796 s&@datadir@&$datadir&g
11797 s&@docdir@&$docdir&g
11798 s&@infodir@&$infodir&g
11799 s&@localedir@&$localedir&g
11800 s&@mandir@&$mandir&g
f11781c5 11801 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11802esac
11803_ACEOF
11804
11805# Neutralize VPATH when `$srcdir' = `.'.
11806# Shell code in configure.ac might set extrasub.
11807# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11809ac_sed_extra="$ac_vpsub
ad6254c5
AK
11810$extrasub
11811_ACEOF
ec6a6fbe 11812cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11813:t
11814/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11815s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11816s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11817s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11818s&@srcdir@&$ac_srcdir&;t t
11819s&@abs_srcdir@&$ac_abs_srcdir&;t t
11820s&@top_srcdir@&$ac_top_srcdir&;t t
11821s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11822s&@builddir@&$ac_builddir&;t t
11823s&@abs_builddir@&$ac_abs_builddir&;t t
11824s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11825s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11826s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11827$ac_datarootdir_hack
ec6a6fbe
AK
11828"
11829eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11831
11832test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11833 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11836which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11837$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11838which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11839
11840 rm -f "$tmp/stdin"
72b2cb61 11841 case $ac_file in
ec6a6fbe
AK
11842 -) cat "$tmp/out" && rm -f "$tmp/out";;
11843 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11844 esac \
f11781c5 11845 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11846 ;;
11847 :H)
11848 #
11849 # CONFIG_HEADER
11850 #
72b2cb61 11851 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11852 {
11853 $as_echo "/* $configure_input */" \
11854 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11855 } >"$tmp/config.h" \
f11781c5 11856 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11857 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11858 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11859$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11860 else
ec6a6fbe
AK
11861 rm -f "$ac_file"
11862 mv "$tmp/config.h" "$ac_file" \
f11781c5 11863 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11864 fi
11865 else
ec6a6fbe
AK
11866 $as_echo "/* $configure_input */" \
11867 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11868 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11869 fi
7a197a62
AK
11870 ;;
11871
11872
11873 esac
11874
11875done # for ac_tag
795ca3e5 11876
795ca3e5 11877
f11781c5 11878as_fn_exit 0
ad6254c5 11879_ACEOF
ad6254c5
AK
11880ac_clean_files=$ac_clean_files_save
11881
ec6a6fbe 11882test $ac_write_fail = 0 ||
f11781c5 11883 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11884
ad6254c5
AK
11885
11886# configure is writing to config.log, and then calls config.status.
11887# config.status does its own redirection, appending to config.log.
11888# Unfortunately, on DOS this fails, as config.log is still kept open
11889# by configure, so config.status won't be able to write to it; its
11890# output is simply discarded. So we exec the FD to /dev/null,
11891# effectively closing config.log, so it can be properly (re)opened and
11892# appended to by config.status. When coming back to configure, we
11893# need to make the FD available again.
11894if test "$no_create" != yes; then
11895 ac_cs_success=:
11896 ac_config_status_args=
11897 test "$silent" = yes &&
11898 ac_config_status_args="$ac_config_status_args --quiet"
11899 exec 5>/dev/null
11900 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11901 exec 5>>config.log
11902 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11903 # would make configure fail if this is the last instruction.
f11781c5 11904 $ac_cs_success || as_fn_exit 1
ad6254c5 11905fi
ec6a6fbe 11906if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11908$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11909fi
795ca3e5 11910
2dc95e1c
AK
11911
11912if test x$ODIRECT != xyes; then
f11781c5 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11914$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11915fi
This page took 1.90897 seconds and 5 git commands to generate.