]> sourceware.org Git - lvm2.git/blame - configure
A compromise integration of LVMetaD into the build: I have kept all the
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 443
f11781c5
AK
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
6e5c1f75 606DMEVENTD_PIDFILE
23b059e7 607WRITE_INSTALL
0878503f 608UDEV_SYNC
a5f46f6a 609UDEV_RULES
f7f0854e 610UDEV_PC
3ba4a195 611THIN
54b362f9 612TESTING
ec6a6fbe
AK
613STATIC_LINK
614STATICDIR
615SNAPSHOTS
f7f0854e 616SELINUX_PC
e1b8a236 617SELINUX_LIBS
cac52ca4 618REPLICATORS
539f4a77 619READLINE_LIBS
cac52ca4 620RAID
f30875db 621PTHREAD_LIBS
ec6a6fbe
AK
622POOL
623PKGCONFIG
606d0858 624OCFDIR
37ddf259 625OCF
ec6a6fbe
AK
626MIRRORS
627LVM_RELEASE_DATE
628LVM_RELEASE
629LVM_PATCHLEVEL
630LVM_MINOR
631LVM_MAJOR
bf456146 632LVM_LIBAPI
ec6a6fbe 633LVM_VERSION
ec6a6fbe
AK
634LVM1_FALLBACK
635LVM1
636LOCALEDIR
637LIB_SUFFIX
638LDDEPS
639JOBS
640INTL_PACKAGE
641INTL
ec6a6fbe
AK
642HAVE_REALTIME
643HAVE_LIBDL
ec6a6fbe
AK
644FSADM
645DM_LIB_PATCHLEVEL
646DM_LIB_VERSION
647DM_IOCTLS
648DM_DEVICE_UID
649DM_DEVICE_MODE
650DM_DEVICE_GID
651DM_COMPAT
d1e8046f 652DMEVENTD_PATH
ec6a6fbe 653DMEVENTD
19a2c6e0 654DL_LIBS
ec6a6fbe 655DEVMAPPER
b1f08e51 656DEFAULT_RUN_DIR
3399ae32 657DEFAULT_LOCK_DIR
fea55602 658DEFAULT_DATA_ALIGNMENT
3399ae32
AK
659DEFAULT_CACHE_SUBDIR
660DEFAULT_BACKUP_SUBDIR
661DEFAULT_ARCHIVE_SUBDIR
662DEFAULT_SYS_DIR
ec6a6fbe
AK
663DEBUG
664COPTIMISE_FLAG
e2997b73 665CONFDIR
ec6a6fbe 666CMDLIB
c89bc357 667CLVMD_CMANAGERS
ec6a6fbe
AK
668CLVMD
669CLUSTER
670CLDWHOLEARCHIVE
671CLDNOWHOLEARCHIVE
672CLDFLAGS
673BUILD_DMEVENTD
66fd4529 674BUILD_CMIRRORD
572fefeb 675APPLIB
ec6a6fbe
AK
676MODPROBE_CMD
677MSGFMT
678LVM2CMD_LIB
572fefeb 679LVM2APP_LIB
d93275eb
PR
680UDEV_LIBS
681UDEV_CFLAGS
54b362f9
AK
682VALGRIND
683RUBY19
fd4728e1 684GENPNG
ec6a6fbe
AK
685GENHTML
686LCOV
90c80887
AK
687SACKPT_LIBS
688SACKPT_CFLAGS
a946372e
AK
689DLM_LIBS
690DLM_CFLAGS
e2997b73
AK
691CPG_LIBS
692CPG_CFLAGS
693CONFDB_LIBS
694CONFDB_CFLAGS
a946372e
AK
695SALCK_LIBS
696SALCK_CFLAGS
e2997b73
AK
697QUORUM_LIBS
698QUORUM_CFLAGS
a946372e
AK
699COROSYNC_LIBS
700COROSYNC_CFLAGS
701CMAN_LIBS
702CMAN_CFLAGS
a946372e
AK
703PKGCONFIGINIT_LIBS
704PKGCONFIGINIT_CFLAGS
f11781c5
AK
705PKG_CONFIG_LIBDIR
706PKG_CONFIG_PATH
e2997b73 707PKG_CONFIG
ec6a6fbe
AK
708POW_LIB
709LIBOBJS
710ALLOCA
711CSCOPE_CMD
712CFLOW_CMD
713RANLIB
714MKDIR_P
715SET_MAKE
716LN_S
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720EGREP
721GREP
722CPP
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730AWK
731SED
732target_os
733target_vendor
734target_cpu
735target
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
f11781c5 774PACKAGE_URL
ec6a6fbe
AK
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
ad6254c5 782ac_subst_files=''
ec6a6fbe
AK
783ac_user_opts='
784enable_option_checking
785enable_static_link
786with_user
787with_group
788with_device_uid
789with_device_gid
790with_device_mode
d0df875d 791with_device_nodes_on
ec6a6fbe
AK
792enable_lvm1_fallback
793with_lvm1
794with_pool
795with_cluster
796with_snapshots
797with_mirrors
cac52ca4 798with_raid
8fea97b7 799with_replicators
3ba4a195 800with_thin
ec6a6fbe
AK
801enable_readline
802enable_realtime
37ddf259 803enable_ocf
606d0858 804with_ocfdir
ec6a6fbe 805with_clvmd
8c4e8a18 806with_clvmd_pidfile
66fd4529
AK
807enable_cmirrord
808with_cmirrord_pidfile
ec6a6fbe
AK
809enable_debug
810with_optimisation
811enable_profiling
54b362f9 812enable_testing
d1e8046f 813enable_valgrind_pool
ec6a6fbe 814enable_devmapper
a5f46f6a
AK
815enable_udev_sync
816enable_udev_rules
ec6a6fbe 817enable_compat
95eaa683 818enable_units_compat
ec6a6fbe
AK
819enable_ioctl
820enable_o_direct
572fefeb 821enable_applib
ec6a6fbe
AK
822enable_cmdlib
823enable_pkgconfig
23b059e7 824enable_write_install
ec6a6fbe
AK
825enable_fsadm
826enable_dmeventd
827enable_selinux
828enable_nls
829with_localedir
830with_confdir
831with_staticdir
832with_usrlibdir
833with_usrsbindir
a5f46f6a 834with_udev_prefix
78ce7acc 835with_udevdir
ec6a6fbe
AK
836with_dmeventd_pidfile
837with_dmeventd_path
8bae0a1e 838with_default_run_dir
3399ae32
AK
839with_default_system_dir
840with_default_archive_subdir
841with_default_backup_subdir
842with_default_cache_subdir
843with_default_locking_dir
fea55602 844with_default_data_alignment
ec6a6fbe
AK
845with_interface
846'
7a197a62
AK
847 ac_precious_vars='build_alias
848host_alias
849target_alias
850CC
851CFLAGS
852LDFLAGS
25fbec5b 853LIBS
7a197a62 854CPPFLAGS
e2997b73
AK
855CPP
856PKG_CONFIG
f11781c5
AK
857PKG_CONFIG_PATH
858PKG_CONFIG_LIBDIR
a946372e
AK
859PKGCONFIGINIT_CFLAGS
860PKGCONFIGINIT_LIBS
a946372e
AK
861CMAN_CFLAGS
862CMAN_LIBS
863COROSYNC_CFLAGS
864COROSYNC_LIBS
e2997b73
AK
865QUORUM_CFLAGS
866QUORUM_LIBS
a946372e
AK
867SALCK_CFLAGS
868SALCK_LIBS
e2997b73
AK
869CONFDB_CFLAGS
870CONFDB_LIBS
871CPG_CFLAGS
a946372e
AK
872CPG_LIBS
873DLM_CFLAGS
90c80887
AK
874DLM_LIBS
875SACKPT_CFLAGS
d93275eb
PR
876SACKPT_LIBS
877UDEV_CFLAGS
878UDEV_LIBS'
7a197a62 879
795ca3e5
AK
880
881# Initialize some variables set by options.
ad6254c5
AK
882ac_init_help=
883ac_init_version=false
ec6a6fbe
AK
884ac_unrecognized_opts=
885ac_unrecognized_sep=
795ca3e5
AK
886# The variables have the same names as the options, with
887# dashes changed to underlines.
ad6254c5 888cache_file=/dev/null
795ca3e5 889exec_prefix=NONE
795ca3e5 890no_create=
795ca3e5
AK
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
795ca3e5
AK
899verbose=
900x_includes=NONE
901x_libraries=NONE
ad6254c5
AK
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 908# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
7a197a62
AK
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
795ca3e5
AK
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
795ca3e5
AK
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
7a197a62
AK
919docdir='${datarootdir}/doc/${PACKAGE}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
795ca3e5 928
795ca3e5 929ac_prev=
7a197a62 930ac_dashdash=
795ca3e5
AK
931for ac_option
932do
795ca3e5
AK
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
7a197a62 935 eval $ac_prev=\$ac_option
795ca3e5
AK
936 ac_prev=
937 continue
938 fi
939
7a197a62
AK
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
795ca3e5
AK
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
7a197a62
AK
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
795ca3e5
AK
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 954 bindir=$ac_optarg ;;
795ca3e5
AK
955
956 -build | --build | --buil | --bui | --bu)
ad6254c5 957 ac_prev=build_alias ;;
795ca3e5 958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 959 build_alias=$ac_optarg ;;
795ca3e5
AK
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
795ca3e5 970
7a197a62 971 -datadir | --datadir | --datadi | --datad)
795ca3e5 972 ac_prev=datadir ;;
7a197a62 973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 974 datadir=$ac_optarg ;;
795ca3e5 975
7a197a62
AK
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
795ca3e5 983 -disable-* | --disable-*)
ec6a6fbe 984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 985 # Reject names that are not valid shell variable names.
ec6a6fbe 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 987 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
7a197a62
AK
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
795ca3e5
AK
1008
1009 -enable-* | --enable-*)
ec6a6fbe 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1011 # Reject names that are not valid shell variable names.
ec6a6fbe 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1013 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
ad6254c5 1032 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
ad6254c5
AK
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
795ca3e5
AK
1044
1045 -host | --host | --hos | --ho)
ad6254c5 1046 ac_prev=host_alias ;;
795ca3e5 1047 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1048 host_alias=$ac_optarg ;;
795ca3e5 1049
7a197a62
AK
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
795ca3e5
AK
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1061 includedir=$ac_optarg ;;
795ca3e5
AK
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1066 infodir=$ac_optarg ;;
795ca3e5
AK
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1071 libdir=$ac_optarg ;;
795ca3e5
AK
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1078 libexecdir=$ac_optarg ;;
795ca3e5 1079
7a197a62
AK
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
795ca3e5 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1086 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1090 localstatedir=$ac_optarg ;;
795ca3e5
AK
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1095 mandir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1102 | --no-cr | --no-c | -n)
795ca3e5
AK
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1116 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1121 prefix=$ac_optarg ;;
795ca3e5
AK
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1128 program_prefix=$ac_optarg ;;
795ca3e5
AK
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1135 program_suffix=$ac_optarg ;;
795ca3e5
AK
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1152 program_transform_name=$ac_optarg ;;
795ca3e5 1153
7a197a62
AK
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
795ca3e5
AK
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
ad6254c5 1172 sbindir=$ac_optarg ;;
795ca3e5
AK
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
ad6254c5 1183 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
ad6254c5 1188 site=$ac_optarg ;;
795ca3e5
AK
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1193 srcdir=$ac_optarg ;;
795ca3e5
AK
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1200 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1203 ac_prev=target_alias ;;
795ca3e5 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1205 target_alias=$ac_optarg ;;
795ca3e5
AK
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
ad6254c5
AK
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
795ca3e5
AK
1212
1213 -with-* | --with-*)
ec6a6fbe 1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1215 # Reject names that are not valid shell variable names.
ec6a6fbe 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1217 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1228
1229 -without-* | --without-*)
ec6a6fbe 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1231 # Reject names that are not valid shell variable names.
ec6a6fbe 1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1233 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
795ca3e5
AK
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1254 x_includes=$ac_optarg ;;
795ca3e5
AK
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1261 x_libraries=$ac_optarg ;;
795ca3e5 1262
f11781c5
AK
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
795ca3e5
AK
1265 ;;
1266
ad6254c5
AK
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
f11781c5
AK
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
7a197a62 1274 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1275 export $ac_envvar ;;
1276
795ca3e5 1277 *)
ad6254c5 1278 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
ad6254c5 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1290 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1291fi
795ca3e5 1292
ec6a6fbe
AK
1293if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
f11781c5 1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299fi
1300
1301# Check all directory arguments for consistency.
7a197a62
AK
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
795ca3e5 1306do
7a197a62 1307 eval ac_val=\$$ac_var
ec6a6fbe
AK
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
ad6254c5 1315 case $ac_val in
7a197a62
AK
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1318 esac
f11781c5 1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1320done
1321
ad6254c5
AK
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
f11781c5
AK
1333 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
8106cdd5 1339
ad6254c5
AK
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
795ca3e5 1344
795ca3e5 1345
7a197a62
AK
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1349 as_fn_error $? "working directory cannot be determined"
7a197a62 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1351 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1352
1353
795ca3e5
AK
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
7a197a62 1357 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363$as_echo X"$as_myself" |
7a197a62
AK
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
795ca3e5 1381 srcdir=$ac_confdir
7a197a62 1382 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1383 srcdir=..
1384 fi
1385else
1386 ac_srcdir_defaulted=no
1387fi
7a197a62
AK
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1391fi
7a197a62
AK
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
f11781c5 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1395 pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
1406for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411done
ad6254c5
AK
1412
1413#
1414# Report the --help message.
1415#
1416if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1419 cat <<_ACEOF
1420\`configure' configures this package to adapt to many kinds of systems.
1421
1422Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425VAR=VALUE. See below for descriptions of some of the useful variables.
1426
1427Defaults for the options are specified in brackets.
1428
1429Configuration:
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
f11781c5 1434 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439
ad6254c5
AK
1440Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1442 [$ac_default_prefix]
ad6254c5 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1444 [PREFIX]
ad6254c5
AK
1445
1446By default, \`make install' will install all the files in
1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449for instance \`--prefix=\$HOME'.
1450
1451For better control, use the options below.
1452
1453Fine tuning of the installation directories:
ec6a6fbe
AK
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1473_ACEOF
1474
1475 cat <<\_ACEOF
1476
1477System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 --target=TARGET configure for building compilers for TARGET [HOST]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485
1486 cat <<\_ACEOF
1487
1488Optional Features:
ec6a6fbe 1489 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1492 --enable-static_link use this to link the tools to their libraries
1493 statically (default is dynamic linking
1494 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1495 device-mapper is missing from the kernel
71082be4
ZK
1496 --disable-readline disable readline support
1497 --enable-realtime enable realtime clock support
37ddf259
AK
1498 --enable-ocf enable Open Cluster Framework (OCF) compliant
1499 resource agents
71082be4
ZK
1500 --enable-cmirrord enable the cluster mirror log daemon
1501 --enable-debug enable debugging
1502 --enable-profiling gather gcov profiling data
54b362f9 1503 --enable-testing enable testing targets in the makefile
d1e8046f 1504 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1505 --disable-devmapper disable LVM2 device-mapper interaction
1506 --enable-udev_sync enable synchronisation with udev processing
1507 --enable-udev_rules install rule files needed for udev synchronisation
1508 --enable-compat enable support for old device-mapper versions
1509 --enable-units-compat enable output compatibility with old versions that
1510 that do not use KiB-style unit suffixes
1511 --disable-driver disable calls to device-mapper in the kernel
1512 --disable-o_direct disable O_DIRECT
1513 --enable-applib build application library
1514 --enable-cmdlib build shared command library
1515 --enable-pkgconfig install pkgconfig support
1516 --enable-write_install install user writable files
1517 --disable-fsadm disable fsadm
1518 --enable-dmeventd enable the device-mapper event daemon
1519 --disable-selinux disable selinux support
1520 --enable-nls enable Native Language Support
ad6254c5
AK
1521
1522Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1525 --with-user=USER set the owner of installed files [[USER=]]
1526 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1527 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1528 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1529 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1530 --with-device-nodes-on=ON
1531 create nodes on resume or create [[ON=resume]]
ad6254c5 1532 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1533 [[TYPE=internal]]
ad6254c5 1534 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1535 [[TYPE=internal]]
71082be4 1536 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1537 [[TYPE=internal]]
71082be4 1538 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
71082be4 1540 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
cac52ca4
JEB
1542 --with-raid=TYPE mirror support: internal/shared/none
1543 [[TYPE=internal]]
71082be4 1544 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1545 [[TYPE=none]]
3ba4a195
ZK
1546 --with-thin=TYPE thin provisioning support: internal/shared/none
1547 [[TYPE=none]]
606d0858
AK
1548 --with-ocfdir=DIR install OCF files in DIR
1549 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1550 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1551 The following cluster manager combinations are valid:
a946372e
AK
1552 * cman (RHEL5 or equivalent)
1553 * cman,corosync,openais (or selection of them)
1091650a 1554 * singlenode (localhost only)
a946372e
AK
1555 * all (autodetect)
1556 * none (disable build)
71082be4 1557 [TYPE=none]
8c4e8a18 1558 --with-clvmd-pidfile=PATH
f11781c5 1559 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1560 --with-cmirrord-pidfile=PATH
f11781c5
AK
1561 cmirrord pidfile [[/var/run/cmirrord.pid]]
1562 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1563 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1564 --with-confdir=DIR configuration files in DIR [[/etc]]
1565 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1566 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1567 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1568 --with-udev-prefix=UPREFIX
f11781c5
AK
1569 install udev rule files in UPREFIX [[EPREFIX]]
1570 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1571 --with-dmeventd-pidfile=PATH
f11781c5 1572 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1573 --with-dmeventd-path=PATH
f11781c5 1574 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1575 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1576 --with-default-system-dir=DIR
f11781c5 1577 default LVM system directory [[/etc/lvm]]
71082be4 1578 --with-default-archive-subdir=SUBDIR
f11781c5 1579 default metadata archive subdir [[archive]]
71082be4 1580 --with-default-backup-subdir=SUBDIR
f11781c5 1581 default metadata backup subdir [[backup]]
71082be4 1582 --with-default-cache-subdir=SUBDIR
f11781c5 1583 default metadata cache subdir [[cache]]
71082be4 1584 --with-default-locking-dir=DIR
f11781c5 1585 default locking directory [[/var/lock/lvm]]
fea55602 1586 --with-default-data-alignment=NUM
f11781c5
AK
1587 set the default data alignment in MiB [[1]]
1588 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1589
1590Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
25fbec5b 1595 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1596 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1597 you have headers in a nonstandard directory <include dir>
ad6254c5 1598 CPP C preprocessor
e2997b73 1599 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1600 PKG_CONFIG_PATH
1601 directories to add to pkg-config's search path
1602 PKG_CONFIG_LIBDIR
1603 path overriding pkg-config's built-in search path
a946372e
AK
1604 PKGCONFIGINIT_CFLAGS
1605 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1606 PKGCONFIGINIT_LIBS
1607 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1608 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1609 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1610 COROSYNC_CFLAGS
1611 C compiler flags for COROSYNC, overriding pkg-config
1612 COROSYNC_LIBS
1613 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1614 QUORUM_CFLAGS
1615 C compiler flags for QUORUM, overriding pkg-config
1616 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1617 SALCK_CFLAGS
1618 C compiler flags for SALCK, overriding pkg-config
1619 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1620 CONFDB_CFLAGS
1621 C compiler flags for CONFDB, overriding pkg-config
1622 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1623 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1624 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1625 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1626 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1627 SACKPT_CFLAGS
1628 C compiler flags for SACKPT, overriding pkg-config
1629 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1630 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1631 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1632
1633Use these variables to override the choices made by `configure' or to help
1634it to find libraries and programs with nonstandard names/locations.
1635
f11781c5 1636Report bugs to the package provider.
ad6254c5 1637_ACEOF
7a197a62 1638ac_status=$?
ad6254c5
AK
1639fi
1640
1641if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
ad6254c5 1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1646 continue
ad6254c5
AK
1647 ac_builddir=.
1648
7a197a62
AK
1649case "$ac_dir" in
1650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651*)
ec6a6fbe 1652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1653 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 esac ;;
1659esac
1660ac_abs_top_builddir=$ac_pwd
1661ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662# for backward compatibility:
1663ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1664
1665case $srcdir in
7a197a62 1666 .) # We are building in place.
ad6254c5 1667 ac_srcdir=.
7a197a62
AK
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1671 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1674 *) # Relative name.
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1678esac
7a197a62
AK
1679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1689 else
ec6a6fbe 1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1691 fi || ac_status=$?
1692 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1693 done
1694fi
1695
7a197a62 1696test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1697if $ac_init_version; then
1698 cat <<\_ACEOF
7a197a62 1699configure
f11781c5 1700generated by GNU Autoconf 2.66
ad6254c5 1701
f11781c5 1702Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1703This configure script is free software; the Free Software Foundation
1704gives unlimited permission to copy, distribute and modify it.
1705_ACEOF
7a197a62 1706 exit
ad6254c5 1707fi
ad6254c5 1708
f11781c5
AK
1709## ------------------------ ##
1710## Autoconf initialization. ##
1711## ------------------------ ##
ad6254c5 1712
f11781c5
AK
1713# ac_fn_c_try_compile LINENO
1714# --------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_compile ()
ad6254c5 1717{
f11781c5
AK
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1743
f11781c5
AK
1744 ac_retval=1
1745fi
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 as_fn_set_status $ac_retval
ad6254c5 1748
f11781c5 1749} # ac_fn_c_try_compile
ad6254c5 1750
f11781c5
AK
1751# ac_fn_c_try_cpp LINENO
1752# ----------------------
1753# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_cpp ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 if { { ac_try="$ac_cpp conftest.$ac_ext"
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } >/dev/null && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1775 }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1780
f11781c5
AK
1781 ac_retval=1
1782fi
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 as_fn_set_status $ac_retval
ad6254c5 1785
f11781c5 1786} # ac_fn_c_try_cpp
d911ec67 1787
f11781c5
AK
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
d911ec67 1792{
f11781c5
AK
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
d911ec67
AK
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
f11781c5
AK
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
d911ec67 1803 ac_status=$?
f11781c5
AK
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
d911ec67 1818else
f11781c5 1819 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
f11781c5 1822 ac_retval=1
d911ec67 1823fi
f11781c5
AK
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 as_fn_set_status $ac_retval
d911ec67 1831
f11781c5 1832} # ac_fn_c_try_link
d911ec67 1833
f11781c5
AK
1834# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1835# -------------------------------------------------------
1836# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1837# the include files in INCLUDES and setting the cache variable VAR
1838# accordingly.
1839ac_fn_c_check_header_mongrel ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 if eval "test \"\${$3+set}\"" = set; then :
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1846 $as_echo_n "(cached) " >&6
1847fi
f11781c5
AK
1848eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1850$as_echo "$ac_res" >&6; }
1851else
1852 # Is the header compilable?
f11781c5
AK
1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1854$as_echo_n "checking $2 usability... " >&6; }
1855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1856/* end confdefs.h. */
f11781c5
AK
1857$4
1858#include <$2>
d911ec67 1859_ACEOF
f11781c5 1860if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1861 ac_header_compiler=yes
1862else
f11781c5 1863 ac_header_compiler=no
d911ec67 1864fi
d911ec67 1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1867$as_echo "$ac_header_compiler" >&6; }
1868
1869# Is the header present?
f11781c5
AK
1870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1871$as_echo_n "checking $2 presence... " >&6; }
1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1873/* end confdefs.h. */
f11781c5 1874#include <$2>
d911ec67 1875_ACEOF
f11781c5 1876if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1877 ac_header_preproc=yes
1878else
d911ec67
AK
1879 ac_header_preproc=no
1880fi
d911ec67 1881rm -f conftest.err conftest.$ac_ext
f11781c5 1882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1883$as_echo "$ac_header_preproc" >&6; }
1884
1885# So? What about this header?
f11781c5 1886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1887 yes:no: )
f11781c5
AK
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1889$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1892 ;;
1893 no:yes:* )
f11781c5
AK
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1895$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1897$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1899$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1901$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1904 ;;
1905esac
f11781c5
AK
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1909 $as_echo_n "(cached) " >&6
1910else
f11781c5 1911 eval "$3=\$ac_header_compiler"
d911ec67 1912fi
f11781c5
AK
1913eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1915$as_echo "$ac_res" >&6; }
ad6254c5 1916fi
f11781c5 1917 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1918
f11781c5 1919} # ac_fn_c_check_header_mongrel
ad6254c5 1920
f11781c5
AK
1921# ac_fn_c_try_run LINENO
1922# ----------------------
1923# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1924# that executables *can* be run.
1925ac_fn_c_try_run ()
ad6254c5 1926{
f11781c5
AK
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 if { { ac_try="$ac_link"
7a197a62
AK
1929case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932esac
f11781c5
AK
1933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934$as_echo "$ac_try_echo"; } >&5
7a197a62 1935 (eval "$ac_link") 2>&5
ad6254c5 1936 ac_status=$?
f11781c5
AK
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1939 { { case "(($ac_try" in
7a197a62
AK
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942esac
f11781c5
AK
1943eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944$as_echo "$ac_try_echo"; } >&5
7a197a62 1945 (eval "$ac_try") 2>&5
ad6254c5 1946 ac_status=$?
f11781c5
AK
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; }; }; then :
1949 ac_retval=0
ad6254c5 1950else
ec6a6fbe 1951 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1952 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1953sed 's/^/| /' conftest.$ac_ext >&5
1954
f11781c5 1955 ac_retval=$ac_status
ad6254c5 1956fi
f11781c5
AK
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 as_fn_set_status $ac_retval
ad6254c5 1960
f11781c5 1961} # ac_fn_c_try_run
ad6254c5 1962
f11781c5
AK
1963# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1964# -------------------------------------------------------
1965# Tests whether HEADER exists and can be compiled using the include files in
1966# INCLUDES, setting the cache variable VAR accordingly.
1967ac_fn_c_check_header_compile ()
1968{
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971$as_echo_n "checking for $2... " >&6; }
1972if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1973 $as_echo_n "(cached) " >&6
ad6254c5 1974else
f11781c5 1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1976/* end confdefs.h. */
f11781c5
AK
1977$4
1978#include <$2>
ad6254c5 1979_ACEOF
f11781c5
AK
1980if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$3=yes"
ad6254c5 1982else
f11781c5 1983 eval "$3=no"
ad6254c5 1984fi
7a197a62 1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1986fi
f11781c5
AK
1987eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1989$as_echo "$ac_res" >&6; }
f11781c5 1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1991
f11781c5 1992} # ac_fn_c_check_header_compile
ad6254c5 1993
f11781c5
AK
1994# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995# ----------------------------------------------------
1996# Tries to find if the field MEMBER exists in type AGGR, after including
1997# INCLUDES, setting cache variable VAR accordingly.
1998ac_fn_c_check_member ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002$as_echo_n "checking for $2.$3... " >&6; }
2003if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2004 $as_echo_n "(cached) " >&6
795ca3e5 2005else
f11781c5
AK
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$5
2009int
2010main ()
2011{
2012static $2 ac_aggr;
2013if (ac_aggr.$3)
2014return 0;
2015 ;
2016 return 0;
2017}
ad6254c5 2018_ACEOF
f11781c5
AK
2019if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2023/* end confdefs.h. */
f11781c5
AK
2024$5
2025int
2026main ()
2027{
2028static $2 ac_aggr;
2029if (sizeof ac_aggr.$3)
2030return 0;
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$4=yes"
2037else
2038 eval "$4=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$4
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048
2049} # ac_fn_c_check_member
795ca3e5 2050
f11781c5
AK
2051# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052# -------------------------------------------
2053# Tests whether TYPE exists after having included INCLUDES, setting cache
2054# variable VAR accordingly.
2055ac_fn_c_check_type ()
2056{
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval "test \"\${$3+set}\"" = set; then :
2061 $as_echo_n "(cached) " >&6
2062else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
ad6254c5
AK
2067int
2068main ()
2069{
f11781c5
AK
2070if (sizeof ($2))
2071 return 0;
ad6254c5
AK
2072 ;
2073 return 0;
2074}
2075_ACEOF
f11781c5
AK
2076if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083if (sizeof (($2)))
2084 return 0;
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2090
f11781c5
AK
2091else
2092 eval "$3=yes"
795ca3e5 2093fi
f11781c5
AK
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2097fi
f11781c5
AK
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2100$as_echo "$ac_res" >&6; }
f11781c5 2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2102
f11781c5 2103} # ac_fn_c_check_type
ad6254c5 2104
f11781c5
AK
2105# ac_fn_c_find_intX_t LINENO BITS VAR
2106# -----------------------------------
2107# Finds a signed integer type with width BITS, setting cache variable VAR
2108# accordingly.
2109ac_fn_c_find_intX_t ()
2110{
2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2113$as_echo_n "checking for int$2_t... " >&6; }
2114if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2115 $as_echo_n "(cached) " >&6
ad6254c5 2116else
f11781c5
AK
2117 eval "$3=no"
2118 # Order is important - never check a type that is potentially smaller
2119 # than half of the expected target width.
2120 for ac_type in int$2_t 'int' 'long int' \
2121 'long long int' 'short int' 'signed char'; do
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2123/* end confdefs.h. */
2124$ac_includes_default
f11781c5 2125 enum { N = $2 / 2 - 1 };
7a197a62
AK
2126int
2127main ()
2128{
f11781c5
AK
2129static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2130test_array [0] = 0
7a197a62 2131
f11781c5
AK
2132 ;
2133 return 0;
2134}
2135_ACEOF
2136if ac_fn_c_try_compile "$LINENO"; then :
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$ac_includes_default
2140 enum { N = $2 / 2 - 1 };
2141int
2142main ()
2143{
2144static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2145 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2146test_array [0] = 0
7a197a62
AK
2147
2148 ;
2149 return 0;
2150}
ad6254c5 2151_ACEOF
f11781c5 2152if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2153
f11781c5
AK
2154else
2155 case $ac_type in #(
2156 int$2_t) :
2157 eval "$3=yes" ;; #(
2158 *) :
2159 eval "$3=\$ac_type" ;;
2160esac
ad6254c5 2161fi
f11781c5 2162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2163fi
f11781c5
AK
2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2166
2167else
f11781c5 2168 break
ad6254c5 2169fi
f11781c5 2170 done
ad6254c5 2171fi
f11781c5
AK
2172eval ac_res=\$$3
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174$as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176
2177} # ac_fn_c_find_intX_t
2178
2179# ac_fn_c_find_uintX_t LINENO BITS VAR
2180# ------------------------------------
2181# Finds an unsigned integer type with width BITS, setting cache variable VAR
2182# accordingly.
2183ac_fn_c_find_uintX_t ()
2184{
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2187$as_echo_n "checking for uint$2_t... " >&6; }
2188if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2189 $as_echo_n "(cached) " >&6
ad6254c5 2190else
f11781c5
AK
2191 eval "$3=no"
2192 # Order is important - never check a type that is potentially smaller
2193 # than half of the expected target width.
2194 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2195 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2197/* end confdefs.h. */
7a197a62 2198$ac_includes_default
ad6254c5
AK
2199int
2200main ()
2201{
f11781c5
AK
2202static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2203test_array [0] = 0
ad6254c5 2204
f11781c5
AK
2205 ;
2206 return 0;
ad6254c5
AK
2207}
2208_ACEOF
f11781c5
AK
2209if ac_fn_c_try_compile "$LINENO"; then :
2210 case $ac_type in #(
2211 uint$2_t) :
2212 eval "$3=yes" ;; #(
2213 *) :
2214 eval "$3=\$ac_type" ;;
7a197a62 2215esac
ad6254c5 2216fi
f11781c5
AK
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2219
f11781c5
AK
2220else
2221 break
ad6254c5 2222fi
f11781c5 2223 done
ad6254c5 2224fi
f11781c5
AK
2225eval ac_res=\$$3
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2227$as_echo "$ac_res" >&6; }
2228 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2229
f11781c5 2230} # ac_fn_c_find_uintX_t
ad6254c5 2231
f11781c5
AK
2232# ac_fn_c_check_func LINENO FUNC VAR
2233# ----------------------------------
2234# Tests whether FUNC exists, setting the cache variable VAR accordingly
2235ac_fn_c_check_func ()
2236{
2237 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239$as_echo_n "checking for $2... " >&6; }
2240if eval "test \"\${$3+set}\"" = set; then :
2241 $as_echo_n "(cached) " >&6
ad6254c5 2242else
f11781c5
AK
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h. */
2245/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2247#define $2 innocuous_$2
ad6254c5 2248
f11781c5
AK
2249/* System header to define __stub macros and hopefully few prototypes,
2250 which can conflict with char $2 (); below.
2251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2252 <limits.h> exists even on freestanding compilers. */
ad6254c5 2253
f11781c5
AK
2254#ifdef __STDC__
2255# include <limits.h>
2256#else
2257# include <assert.h>
2258#endif
ad6254c5 2259
f11781c5
AK
2260#undef $2
2261
2262/* Override any GCC internal prototype to avoid an error.
2263 Use char because int might match the return type of a GCC
2264 builtin and then its argument prototype would still apply. */
2265#ifdef __cplusplus
2266extern "C"
2267#endif
2268char $2 ();
2269/* The GNU C library defines this for functions which it implements
2270 to always fail with ENOSYS. Some functions are actually named
2271 something starting with __ and the normal name is an alias. */
2272#if defined __stub_$2 || defined __stub___$2
2273choke me
2274#endif
ad6254c5 2275
ad6254c5
AK
2276int
2277main ()
2278{
f11781c5 2279return $2 ();
ad6254c5
AK
2280 ;
2281 return 0;
2282}
2283_ACEOF
f11781c5
AK
2284if ac_fn_c_try_link "$LINENO"; then :
2285 eval "$3=yes"
ad6254c5 2286else
f11781c5 2287 eval "$3=no"
ad6254c5 2288fi
f11781c5
AK
2289rm -f core conftest.err conftest.$ac_objext \
2290 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2291fi
f11781c5
AK
2292eval ac_res=\$$3
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2294$as_echo "$ac_res" >&6; }
2295 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2296
f11781c5
AK
2297} # ac_fn_c_check_func
2298cat >config.log <<_ACEOF
2299This file contains any messages produced by compilers while
2300running configure, to aid debugging if configure makes a mistake.
7a197a62 2301
f11781c5
AK
2302It was created by $as_me, which was
2303generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2304
f11781c5 2305 $ $0 $@
ad6254c5 2306
ad6254c5 2307_ACEOF
f11781c5
AK
2308exec 5>>config.log
2309{
2310cat <<_ASUNAME
2311## --------- ##
2312## Platform. ##
2313## --------- ##
ad6254c5 2314
f11781c5
AK
2315hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2316uname -m = `(uname -m) 2>/dev/null || echo unknown`
2317uname -r = `(uname -r) 2>/dev/null || echo unknown`
2318uname -s = `(uname -s) 2>/dev/null || echo unknown`
2319uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2320
f11781c5
AK
2321/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2322/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2323
f11781c5
AK
2324/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2325/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2326/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2327/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2328/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2329/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2330/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2331
2332_ASUNAME
2333
2334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 $as_echo "PATH: $as_dir"
2340 done
2341IFS=$as_save_IFS
2342
2343} >&5
2344
2345cat >&5 <<_ACEOF
2346
2347
2348## ----------- ##
2349## Core tests. ##
2350## ----------- ##
ad6254c5 2351
ad6254c5 2352_ACEOF
ad6254c5 2353
7a197a62 2354
f11781c5
AK
2355# Keep a trace of the command line.
2356# Strip out --no-create and --no-recursion so they do not pile up.
2357# Strip out --silent because we don't want to record it for future runs.
2358# Also quote any args containing shell meta-characters.
2359# Make two passes to allow for proper duplicate-argument suppression.
2360ac_configure_args=
2361ac_configure_args0=
2362ac_configure_args1=
2363ac_must_keep_next=false
2364for ac_pass in 1 2
2365do
2366 for ac_arg
2367 do
2368 case $ac_arg in
2369 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2371 | -silent | --silent | --silen | --sile | --sil)
2372 continue ;;
2373 *\'*)
2374 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 esac
2376 case $ac_pass in
2377 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2378 2)
2379 as_fn_append ac_configure_args1 " '$ac_arg'"
2380 if test $ac_must_keep_next = true; then
2381 ac_must_keep_next=false # Got value, back to normal.
2382 else
2383 case $ac_arg in
2384 *=* | --config-cache | -C | -disable-* | --disable-* \
2385 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2386 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2387 | -with-* | --with-* | -without-* | --without-* | --x)
2388 case "$ac_configure_args0 " in
2389 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2390 esac
2391 ;;
2392 -* ) ac_must_keep_next=true ;;
2393 esac
2394 fi
2395 as_fn_append ac_configure_args " '$ac_arg'"
2396 ;;
2397 esac
2398 done
2399done
2400{ ac_configure_args0=; unset ac_configure_args0;}
2401{ ac_configure_args1=; unset ac_configure_args1;}
2402
2403# When interrupted or exit'd, cleanup temporary files, and complete
2404# config.log. We remove comments because anyway the quotes in there
2405# would cause problems or look ugly.
2406# WARNING: Use '\'' to represent an apostrophe within the trap.
2407# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2408trap 'exit_status=$?
2409 # Save into config.log some information that might help in debugging.
2410 {
2411 echo
2412
2413 $as_echo "## ---------------- ##
2414## Cache variables. ##
2415## ---------------- ##"
2416 echo
2417 # The following way of writing the cache mishandles newlines in values,
2418(
2419 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2420 eval ac_val=\$$ac_var
2421 case $ac_val in #(
2422 *${as_nl}*)
2423 case $ac_var in #(
2424 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2425$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2426 esac
2427 case $ac_var in #(
2428 _ | IFS | as_nl) ;; #(
2429 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2430 *) { eval $ac_var=; unset $ac_var;} ;;
2431 esac ;;
2432 esac
2433 done
2434 (set) 2>&1 |
2435 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2436 *${as_nl}ac_space=\ *)
2437 sed -n \
2438 "s/'\''/'\''\\\\'\'''\''/g;
2439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440 ;; #(
2441 *)
2442 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2443 ;;
2444 esac |
2445 sort
2446)
2447 echo
2448
2449 $as_echo "## ----------------- ##
2450## Output variables. ##
2451## ----------------- ##"
2452 echo
2453 for ac_var in $ac_subst_vars
2454 do
2455 eval ac_val=\$$ac_var
2456 case $ac_val in
2457 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458 esac
2459 $as_echo "$ac_var='\''$ac_val'\''"
2460 done | sort
2461 echo
2462
2463 if test -n "$ac_subst_files"; then
2464 $as_echo "## ------------------- ##
2465## File substitutions. ##
2466## ------------------- ##"
2467 echo
2468 for ac_var in $ac_subst_files
2469 do
2470 eval ac_val=\$$ac_var
2471 case $ac_val in
2472 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 esac
2474 $as_echo "$ac_var='\''$ac_val'\''"
2475 done | sort
2476 echo
2477 fi
2478
2479 if test -s confdefs.h; then
2480 $as_echo "## ----------- ##
2481## confdefs.h. ##
2482## ----------- ##"
2483 echo
2484 cat confdefs.h
2485 echo
2486 fi
2487 test "$ac_signal" != 0 &&
2488 $as_echo "$as_me: caught signal $ac_signal"
2489 $as_echo "$as_me: exit $exit_status"
2490 } >&5
2491 rm -f core *.core core.conftest.* &&
2492 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2493 exit $exit_status
2494' 0
2495for ac_signal in 1 2 13 15; do
2496 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2497done
2498ac_signal=0
2499
2500# confdefs.h avoids OS command line length limits that DEFS can exceed.
2501rm -f -r conftest* confdefs.h
7a197a62 2502
f11781c5 2503$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2504
f11781c5 2505# Predefined preprocessor variables.
ad6254c5
AK
2506
2507cat >>confdefs.h <<_ACEOF
f11781c5 2508#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2509_ACEOF
2510
f11781c5
AK
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2513_ACEOF
ad6254c5 2514
f11781c5
AK
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2517_ACEOF
f11781c5
AK
2518
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2521_ACEOF
ad6254c5 2522
f11781c5
AK
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2525_ACEOF
7a197a62 2526
f11781c5
AK
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_URL "$PACKAGE_URL"
2529_ACEOF
ad6254c5 2530
7a197a62 2531
f11781c5
AK
2532# Let the site file select an alternate cache file if it wants to.
2533# Prefer an explicitly selected file to automatically selected ones.
2534ac_site_file1=NONE
2535ac_site_file2=NONE
2536if test -n "$CONFIG_SITE"; then
2537 # We do not want a PATH search for config.site.
2538 case $CONFIG_SITE in #((
2539 -*) ac_site_file1=./$CONFIG_SITE;;
2540 */*) ac_site_file1=$CONFIG_SITE;;
2541 *) ac_site_file1=./$CONFIG_SITE;;
2542 esac
2543elif test "x$prefix" != xNONE; then
2544 ac_site_file1=$prefix/share/config.site
2545 ac_site_file2=$prefix/etc/config.site
ad6254c5 2546else
f11781c5
AK
2547 ac_site_file1=$ac_default_prefix/share/config.site
2548 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2549fi
f11781c5
AK
2550for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2551do
2552 test "x$ac_site_file" = xNONE && continue
2553 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2555$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2556 sed 's/^/| /' "$ac_site_file" >&5
2557 . "$ac_site_file" \
2558 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560as_fn_error $? "failed to load site script $ac_site_file
2561See \`config.log' for more details" "$LINENO" 5; }
2562 fi
2563done
ad6254c5 2564
f11781c5
AK
2565if test -r "$cache_file"; then
2566 # Some versions of bash will fail to source /dev/null (special files
2567 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2568 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2570$as_echo "$as_me: loading cache $cache_file" >&6;}
2571 case $cache_file in
2572 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2573 *) . "./$cache_file";;
2574 esac
2575 fi
2576else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2578$as_echo "$as_me: creating cache $cache_file" >&6;}
2579 >$cache_file
ad6254c5 2580fi
ad6254c5 2581
f11781c5
AK
2582as_fn_append ac_header_list " stdlib.h"
2583as_fn_append ac_header_list " unistd.h"
2584as_fn_append ac_header_list " sys/param.h"
2585# Check that the precious variables saved in the cache have kept the same
2586# value.
2587ac_cache_corrupted=false
2588for ac_var in $ac_precious_vars; do
2589 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2590 eval ac_new_set=\$ac_env_${ac_var}_set
2591 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2592 eval ac_new_val=\$ac_env_${ac_var}_value
2593 case $ac_old_set,$ac_new_set in
2594 set,)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2596$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,set)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2600$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,);;
2603 *)
2604 if test "x$ac_old_val" != "x$ac_new_val"; then
2605 # differences in whitespace do not lead to failure.
2606 ac_old_val_w=`echo x $ac_old_val`
2607 ac_new_val_w=`echo x $ac_new_val`
2608 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2610$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2611 ac_cache_corrupted=:
2612 else
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2614$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2615 eval $ac_var=\$ac_old_val
2616 fi
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2618$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2620$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2621 fi;;
2622 esac
2623 # Pass precious variables to config.status.
2624 if test "$ac_new_set" = set; then
2625 case $ac_new_val in
2626 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2627 *) ac_arg=$ac_var=$ac_new_val ;;
2628 esac
2629 case " $ac_configure_args " in
2630 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2631 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2632 esac
2633 fi
2634done
2635if $ac_cache_corrupted; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2639$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2640 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2641fi
f11781c5
AK
2642## -------------------- ##
2643## Main body of script. ##
2644## -------------------- ##
ad6254c5 2645
f11781c5
AK
2646ac_ext=c
2647ac_cpp='$CPP $CPPFLAGS'
2648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2651
ad6254c5 2652
ad6254c5 2653
f11781c5 2654ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2655
2656
f11781c5
AK
2657################################################################################
2658ac_aux_dir=
2659for ac_dir in autoconf "$srcdir"/autoconf; do
2660 if test -f "$ac_dir/install-sh"; then
2661 ac_aux_dir=$ac_dir
2662 ac_install_sh="$ac_aux_dir/install-sh -c"
2663 break
2664 elif test -f "$ac_dir/install.sh"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/install.sh -c"
2667 break
2668 elif test -f "$ac_dir/shtool"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/shtool install -c"
2671 break
2672 fi
2673done
2674if test -z "$ac_aux_dir"; then
2675 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2676fi
ad6254c5 2677
f11781c5
AK
2678# These three variables are undocumented and unsupported,
2679# and are intended to be withdrawn in a future Autoconf release.
2680# They can cause serious problems if a builder's source tree is in a directory
2681# whose full name contains unusual characters.
2682ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2683ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2684ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2685
ad6254c5 2686
8a2fc586 2687
f11781c5
AK
2688################################################################################
2689# Make sure we can run config.sub.
2690$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2691 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2692
f11781c5
AK
2693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2694$as_echo_n "checking build system type... " >&6; }
2695if test "${ac_cv_build+set}" = set; then :
2696 $as_echo_n "(cached) " >&6
2697else
2698 ac_build_alias=$build_alias
2699test "x$ac_build_alias" = x &&
2700 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2701test "x$ac_build_alias" = x &&
2702 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2703ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2704 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2705
2706fi
f11781c5
AK
2707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2708$as_echo "$ac_cv_build" >&6; }
2709case $ac_cv_build in
2710*-*-*) ;;
2711*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2712esac
2713build=$ac_cv_build
2714ac_save_IFS=$IFS; IFS='-'
2715set x $ac_cv_build
2716shift
2717build_cpu=$1
2718build_vendor=$2
2719shift; shift
2720# Remember, the first character of IFS is used to create $*,
2721# except with old shells:
2722build_os=$*
2723IFS=$ac_save_IFS
2724case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2725
2726
f11781c5
AK
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2728$as_echo_n "checking host system type... " >&6; }
2729if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2730 $as_echo_n "(cached) " >&6
ad6254c5 2731else
f11781c5
AK
2732 if test "x$host_alias" = x; then
2733 ac_cv_host=$ac_cv_build
ad6254c5 2734else
f11781c5
AK
2735 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2736 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2737fi
ad6254c5 2738
f11781c5
AK
2739fi
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2741$as_echo "$ac_cv_host" >&6; }
2742case $ac_cv_host in
2743*-*-*) ;;
2744*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2745esac
2746host=$ac_cv_host
2747ac_save_IFS=$IFS; IFS='-'
2748set x $ac_cv_host
2749shift
2750host_cpu=$1
2751host_vendor=$2
2752shift; shift
2753# Remember, the first character of IFS is used to create $*,
2754# except with old shells:
2755host_os=$*
2756IFS=$ac_save_IFS
2757case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2758
ad6254c5 2759
f11781c5
AK
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2761$as_echo_n "checking target system type... " >&6; }
2762if test "${ac_cv_target+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
ad6254c5 2764else
f11781c5
AK
2765 if test "x$target_alias" = x; then
2766 ac_cv_target=$ac_cv_host
2767else
2768 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2770fi
7a197a62 2771
ad6254c5 2772fi
f11781c5
AK
2773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2774$as_echo "$ac_cv_target" >&6; }
2775case $ac_cv_target in
2776*-*-*) ;;
2777*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2778esac
f11781c5
AK
2779target=$ac_cv_target
2780ac_save_IFS=$IFS; IFS='-'
2781set x $ac_cv_target
2782shift
2783target_cpu=$1
2784target_vendor=$2
2785shift; shift
2786# Remember, the first character of IFS is used to create $*,
2787# except with old shells:
2788target_os=$*
2789IFS=$ac_save_IFS
2790case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2791
ad6254c5 2792
f11781c5
AK
2793# The aliases save the names the user supplied, while $host etc.
2794# will get canonicalized.
2795test -n "$target_alias" &&
2796 test "$program_prefix$program_suffix$program_transform_name" = \
2797 NONENONEs,x,x, &&
2798 program_prefix=${target_alias}-
ad6254c5 2799
f11781c5
AK
2800case "$host_os" in
2801 linux*)
2802 CFLAGS="$CFLAGS"
2803 COPTIMISE_FLAG="-O2"
2804 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2805 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2806 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2807 LDDEPS="$LDDEPS .export.sym"
2808 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2809 LIB_SUFFIX=so
2810 DEVMAPPER=yes
2811 ODIRECT=yes
2812 DM_IOCTLS=yes
2813 SELINUX=yes
2814 CLUSTER=internal
2815 FSADM=yes
2816 ;;
2817 darwin*)
2818 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2819 COPTIMISE_FLAG="-O2"
2820 CLDFLAGS="$CLDFLAGS"
2821 CLDWHOLEARCHIVE="-all_load"
2822 CLDNOWHOLEARCHIVE=
2823 LIB_SUFFIX=dylib
2824 DEVMAPPER=yes
2825 ODIRECT=no
2826 DM_IOCTLS=no
2827 SELINUX=no
2828 CLUSTER=none
2829 FSADM=no
2830 ;;
2831esac
ad6254c5 2832
f11781c5
AK
2833################################################################################
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2835$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2836if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2837 $as_echo_n "(cached) " >&6
ad6254c5 2838else
f11781c5
AK
2839 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2840 for ac_i in 1 2 3 4 5 6 7; do
2841 ac_script="$ac_script$as_nl$ac_script"
2842 done
2843 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2844 { ac_script=; unset ac_script;}
2845 if test -z "$SED"; then
2846 ac_path_SED_found=false
2847 # Loop through the user's path and test for each of PROGNAME-LIST
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_prog in sed gsed; do
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2856 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2857# Check for GNU ac_path_SED and select it if it is found.
2858 # Check for GNU $ac_path_SED
2859case `"$ac_path_SED" --version 2>&1` in
2860*GNU*)
2861 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2862*)
2863 ac_count=0
2864 $as_echo_n 0123456789 >"conftest.in"
2865 while :
2866 do
2867 cat "conftest.in" "conftest.in" >"conftest.tmp"
2868 mv "conftest.tmp" "conftest.in"
2869 cp "conftest.in" "conftest.nl"
2870 $as_echo '' >> "conftest.nl"
2871 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2873 as_fn_arith $ac_count + 1 && ac_count=$as_val
2874 if test $ac_count -gt ${ac_path_SED_max-0}; then
2875 # Best one so far, save it but keep looking for a better one
2876 ac_cv_path_SED="$ac_path_SED"
2877 ac_path_SED_max=$ac_count
2878 fi
2879 # 10*(2^10) chars as input seems more than enough
2880 test $ac_count -gt 10 && break
2881 done
2882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2883esac
ad6254c5 2884
f11781c5
AK
2885 $ac_path_SED_found && break 3
2886 done
2887 done
2888 done
2889IFS=$as_save_IFS
2890 if test -z "$ac_cv_path_SED"; then
2891 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2892 fi
2893else
2894 ac_cv_path_SED=$SED
ad6254c5 2895fi
7a197a62 2896
f11781c5
AK
2897fi
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2899$as_echo "$ac_cv_path_SED" >&6; }
2900 SED="$ac_cv_path_SED"
2901 rm -f conftest.sed
ad6254c5 2902
f11781c5
AK
2903for ac_prog in gawk mawk nawk awk
2904do
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906set dummy $ac_prog; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
2909if test "${ac_cv_prog_AWK+set}" = set; then :
2910 $as_echo_n "(cached) " >&6
ad6254c5 2911else
f11781c5
AK
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_AWK="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926done
2927 done
2928IFS=$as_save_IFS
ad6254c5 2929
ad6254c5 2930fi
ad6254c5 2931fi
f11781c5
AK
2932AWK=$ac_cv_prog_AWK
2933if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935$as_echo "$AWK" >&6; }
2936else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
ad6254c5 2939fi
ad6254c5 2940
ad6254c5 2941
f11781c5 2942 test -n "$AWK" && break
ad6254c5
AK
2943done
2944
f11781c5
AK
2945ac_ext=c
2946ac_cpp='$CPP $CPPFLAGS'
2947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949ac_compiler_gnu=$ac_cv_c_compiler_gnu
2950if test -n "$ac_tool_prefix"; then
2951 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2952set dummy ${ac_tool_prefix}gcc; ac_word=$2
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954$as_echo_n "checking for $ac_word... " >&6; }
2955if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2956 $as_echo_n "(cached) " >&6
ad6254c5 2957else
f11781c5
AK
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2960else
f11781c5
AK
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972done
2973 done
2974IFS=$as_save_IFS
ad6254c5 2975
ad6254c5 2976fi
ad6254c5 2977fi
f11781c5
AK
2978CC=$ac_cv_prog_CC
2979if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981$as_echo "$CC" >&6; }
2982else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984$as_echo "no" >&6; }
ad6254c5 2985fi
ad6254c5 2986
f11781c5
AK
2987
2988fi
2989if test -z "$ac_cv_prog_CC"; then
2990 ac_ct_CC=$CC
2991 # Extract the first word of "gcc", so it can be a program name with args.
2992set dummy gcc; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 2996 $as_echo_n "(cached) " >&6
ad6254c5 2997else
f11781c5
AK
2998 if test -n "$ac_ct_CC"; then
2999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3000else
f11781c5
AK
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3008 ac_cv_prog_ac_ct_CC="gcc"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012done
3013 done
3014IFS=$as_save_IFS
d911ec67 3015
d911ec67 3016fi
d911ec67 3017fi
f11781c5
AK
3018ac_ct_CC=$ac_cv_prog_ac_ct_CC
3019if test -n "$ac_ct_CC"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3021$as_echo "$ac_ct_CC" >&6; }
3022else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
d911ec67 3025fi
d911ec67 3026
f11781c5
AK
3027 if test "x$ac_ct_CC" = x; then
3028 CC=""
3029 else
3030 case $cross_compiling:$ac_tool_warned in
3031yes:)
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3034ac_tool_warned=yes ;;
3035esac
3036 CC=$ac_ct_CC
3037 fi
3038else
3039 CC="$ac_cv_prog_CC"
d911ec67 3040fi
d911ec67 3041
f11781c5
AK
3042if test -z "$CC"; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}cc; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3049 $as_echo_n "(cached) " >&6
d911ec67 3050else
f11781c5
AK
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3053else
f11781c5
AK
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3061 ac_cv_prog_CC="${ac_tool_prefix}cc"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
d911ec67 3068
f11781c5
AK
3069fi
3070fi
3071CC=$ac_cv_prog_CC
3072if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074$as_echo "$CC" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
d911ec67
AK
3078fi
3079
d911ec67 3080
f11781c5
AK
3081 fi
3082fi
3083if test -z "$CC"; then
3084 # Extract the first word of "cc", so it can be a program name with args.
3085set dummy cc; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if test "${ac_cv_prog_CC+set}" = set; then :
3089 $as_echo_n "(cached) " >&6
d911ec67 3090else
f11781c5
AK
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3093else
3094 ac_prog_rejected=no
3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096for as_dir in $PATH
3097do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3103 ac_prog_rejected=yes
3104 continue
3105 fi
3106 ac_cv_prog_CC="cc"
3107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3108 break 2
3109 fi
3110done
3111 done
3112IFS=$as_save_IFS
d911ec67 3113
f11781c5
AK
3114if test $ac_prog_rejected = yes; then
3115 # We found a bogon in the path, so make sure we never use it.
3116 set dummy $ac_cv_prog_CC
3117 shift
3118 if test $# != 0; then
3119 # We chose a different compiler from the bogus one.
3120 # However, it has the same basename, so the bogon will be chosen
3121 # first if we set CC to just the basename; use the full file name.
3122 shift
3123 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3124 fi
3125fi
3126fi
3127fi
3128CC=$ac_cv_prog_CC
3129if test -n "$CC"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131$as_echo "$CC" >&6; }
3132else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134$as_echo "no" >&6; }
d911ec67
AK
3135fi
3136
d911ec67 3137
f11781c5
AK
3138fi
3139if test -z "$CC"; then
3140 if test -n "$ac_tool_prefix"; then
3141 for ac_prog in cl.exe
3142 do
3143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3144set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146$as_echo_n "checking for $ac_word... " >&6; }
3147if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3148 $as_echo_n "(cached) " >&6
3149else
f11781c5
AK
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152else
3153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154for as_dir in $PATH
3155do
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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
AK
3167
3168fi
f11781c5
AK
3169fi
3170CC=$ac_cv_prog_CC
3171if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173$as_echo "$CC" >&6; }
3174else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
d911ec67
AK
3177fi
3178
d911ec67 3179
f11781c5
AK
3180 test -n "$CC" && break
3181 done
3182fi
3183if test -z "$CC"; then
3184 ac_ct_CC=$CC
3185 for ac_prog in cl.exe
3186do
3187 # Extract the first word of "$ac_prog", so it can be a program name with args.
3188set dummy $ac_prog; ac_word=$2
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3190$as_echo_n "checking for $ac_word... " >&6; }
3191if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3192 $as_echo_n "(cached) " >&6
3193else
f11781c5
AK
3194 if test -n "$ac_ct_CC"; then
3195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3196else
f11781c5
AK
3197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198for as_dir in $PATH
3199do
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3204 ac_cv_prog_ac_ct_CC="$ac_prog"
3205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 break 2
3207 fi
3208done
3209 done
3210IFS=$as_save_IFS
ad6254c5 3211
ad6254c5 3212fi
ad6254c5 3213fi
f11781c5
AK
3214ac_ct_CC=$ac_cv_prog_ac_ct_CC
3215if test -n "$ac_ct_CC"; then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3217$as_echo "$ac_ct_CC" >&6; }
3218else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
ad6254c5 3221fi
ad6254c5 3222
d911ec67 3223
f11781c5
AK
3224 test -n "$ac_ct_CC" && break
3225done
d911ec67 3226
f11781c5
AK
3227 if test "x$ac_ct_CC" = x; then
3228 CC=""
3229 else
3230 case $cross_compiling:$ac_tool_warned in
3231yes:)
3232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3234ac_tool_warned=yes ;;
d911ec67 3235esac
f11781c5
AK
3236 CC=$ac_ct_CC
3237 fi
3238fi
ad6254c5
AK
3239
3240fi
d911ec67
AK
3241
3242
f11781c5
AK
3243test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245as_fn_error $? "no acceptable C compiler found in \$PATH
3246See \`config.log' for more details" "$LINENO" 5; }
3247
3248# Provide some information about the compiler.
3249$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3250set X $ac_compile
3251ac_compiler=$2
3252for ac_option in --version -v -V -qversion; do
3253 { { ac_try="$ac_compiler $ac_option >&5"
3254case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257esac
3258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3259$as_echo "$ac_try_echo"; } >&5
3260 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3261 ac_status=$?
3262 if test -s conftest.err; then
3263 sed '10a\
3264... rest of stderr output deleted ...
3265 10q' conftest.err >conftest.er1
3266 cat conftest.er1 >&5
3267 fi
3268 rm -f conftest.er1 conftest.err
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271done
ad6254c5 3272
f11781c5 3273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3274/* end confdefs.h. */
f11781c5 3275
ad6254c5
AK
3276int
3277main ()
3278{
f11781c5 3279
ad6254c5
AK
3280 ;
3281 return 0;
3282}
3283_ACEOF
f11781c5
AK
3284ac_clean_files_save=$ac_clean_files
3285ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3286# Try to create an executable without -o first, disregard a.out.
3287# It will help us diagnose broken compilers, and finding out an intuition
3288# of exeext.
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3290$as_echo_n "checking whether the C compiler works... " >&6; }
3291ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3292
3293# The possible output files:
3294ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3295
3296ac_rmfiles=
3297for ac_file in $ac_files
3298do
3299 case $ac_file in
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3301 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3302 esac
3303done
3304rm -f $ac_rmfiles
3305
3306if { { ac_try="$ac_link_default"
7a197a62
AK
3307case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310esac
f11781c5
AK
3311eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312$as_echo "$ac_try_echo"; } >&5
3313 (eval "$ac_link_default") 2>&5
ad6254c5 3314 ac_status=$?
f11781c5
AK
3315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }; then :
3317 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3318# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3319# in a Makefile. We should not override ac_cv_exeext if it was cached,
3320# so that the user can short-circuit this test for compilers unknown to
3321# Autoconf.
3322for ac_file in $ac_files ''
3323do
3324 test -f "$ac_file" || continue
3325 case $ac_file in
3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3327 ;;
3328 [ab].out )
3329 # We found the default executable, but exeext='' is most
3330 # certainly right.
3331 break;;
3332 *.* )
3333 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3334 then :; else
3335 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 fi
3337 # We set ac_cv_exeext here because the later test for it is not
3338 # safe: cross compilers may not add the suffix if given an `-o'
3339 # argument, so we may need to know it at that point already.
3340 # Even if this section looks crufty: it has the advantage of
3341 # actually working.
3342 break;;
3343 * )
3344 break;;
3345 esac
3346done
3347test "$ac_cv_exeext" = no && ac_cv_exeext=
3348
ad6254c5 3349else
f11781c5
AK
3350 ac_file=''
3351fi
3352if test -z "$ac_file"; then :
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
ec6a6fbe 3355$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3356sed 's/^/| /' conftest.$ac_ext >&5
3357
f11781c5
AK
3358{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360as_fn_error 77 "C compiler cannot create executables
3361See \`config.log' for more details" "$LINENO" 5; }
3362else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364$as_echo "yes" >&6; }
ad6254c5 3365fi
f11781c5
AK
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3367$as_echo_n "checking for C compiler default output file name... " >&6; }
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3369$as_echo "$ac_file" >&6; }
3370ac_exeext=$ac_cv_exeext
7a197a62 3371
f11781c5
AK
3372rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3373ac_clean_files=$ac_clean_files_save
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3375$as_echo_n "checking for suffix of executables... " >&6; }
3376if { { ac_try="$ac_link"
3377case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
8a2fc586 3380esac
f11781c5
AK
3381eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382$as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_link") 2>&5
3384 ac_status=$?
3385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386 test $ac_status = 0; }; then :
3387 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3388# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3389# work properly (i.e., refer to `conftest.exe'), while it won't with
3390# `rm'.
3391for ac_file in conftest.exe conftest conftest.*; do
3392 test -f "$ac_file" || continue
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3395 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 break;;
3397 * ) break;;
3398 esac
3399done
3400else
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3404See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3405fi
f11781c5
AK
3406rm -f conftest conftest$ac_cv_exeext
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3408$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3409
f11781c5
AK
3410rm -f conftest.$ac_ext
3411EXEEXT=$ac_cv_exeext
3412ac_exeext=$EXEEXT
3413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3414/* end confdefs.h. */
f11781c5 3415#include <stdio.h>
ad6254c5 3416int
f11781c5 3417main ()
ad6254c5 3418{
f11781c5
AK
3419FILE *f = fopen ("conftest.out", "w");
3420 return ferror (f) || fclose (f) != 0;
ad6254c5 3421
f11781c5 3422 ;
7a197a62 3423 return 0;
ad6254c5 3424}
ad6254c5 3425_ACEOF
f11781c5
AK
3426ac_clean_files="$ac_clean_files conftest.out"
3427# Check that the compiler produces executables we can run. If not, either
3428# the compiler is broken, or we cross compile.
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3430$as_echo_n "checking whether we are cross compiling... " >&6; }
3431if test "$cross_compiling" != yes; then
3432 { { ac_try="$ac_link"
7a197a62
AK
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
f11781c5
AK
3437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438$as_echo "$ac_try_echo"; } >&5
7a197a62 3439 (eval "$ac_link") 2>&5
ad6254c5 3440 ac_status=$?
f11781c5
AK
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443 if { ac_try='./conftest$ac_cv_exeext'
3444 { { case "(($ac_try" in
7a197a62
AK
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447esac
f11781c5
AK
3448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449$as_echo "$ac_try_echo"; } >&5
7a197a62 3450 (eval "$ac_try") 2>&5
ad6254c5 3451 ac_status=$?
f11781c5
AK
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; }; then
3454 cross_compiling=no
3455 else
3456 if test "$cross_compiling" = maybe; then
3457 cross_compiling=yes
3458 else
3459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3461as_fn_error $? "cannot run C compiled programs.
3462If you meant to cross compile, use \`--host'.
3463See \`config.log' for more details" "$LINENO" 5; }
3464 fi
3465 fi
3466fi
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3468$as_echo "$cross_compiling" >&6; }
3469
3470rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3471ac_clean_files=$ac_clean_files_save
3472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3473$as_echo_n "checking for suffix of object files... " >&6; }
3474if test "${ac_cv_objext+set}" = set; then :
3475 $as_echo_n "(cached) " >&6
3476else
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478/* end confdefs.h. */
ad6254c5
AK
3479
3480int
3481main ()
3482{
f11781c5 3483
ad6254c5
AK
3484 ;
3485 return 0;
3486}
3487_ACEOF
f11781c5
AK
3488rm -f conftest.o conftest.obj
3489if { { ac_try="$ac_compile"
7a197a62
AK
3490case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493esac
f11781c5
AK
3494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3495$as_echo "$ac_try_echo"; } >&5
3496 (eval "$ac_compile") 2>&5
ad6254c5 3497 ac_status=$?
f11781c5
AK
3498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499 test $ac_status = 0; }; then :
3500 for ac_file in conftest.o conftest.obj conftest.*; do
3501 test -f "$ac_file" || continue;
3502 case $ac_file in
3503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3505 break;;
3506 esac
3507done
ad6254c5 3508else
ec6a6fbe 3509 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
f11781c5
AK
3512{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3514as_fn_error $? "cannot compute suffix of object files: cannot compile
3515See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3516fi
f11781c5 3517rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3518fi
f11781c5
AK
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3520$as_echo "$ac_cv_objext" >&6; }
3521OBJEXT=$ac_cv_objext
3522ac_objext=$OBJEXT
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3524$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3525if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3526 $as_echo_n "(cached) " >&6
ad6254c5 3527else
f11781c5 3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3529/* end confdefs.h. */
3530
ad6254c5
AK
3531int
3532main ()
3533{
f11781c5
AK
3534#ifndef __GNUC__
3535 choke me
3536#endif
3537
ad6254c5
AK
3538 ;
3539 return 0;
3540}
3541_ACEOF
f11781c5
AK
3542if ac_fn_c_try_compile "$LINENO"; then :
3543 ac_compiler_gnu=yes
ad6254c5 3544else
f11781c5 3545 ac_compiler_gnu=no
ad6254c5 3546fi
f11781c5
AK
3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3549
d0191583 3550fi
f11781c5
AK
3551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3552$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3553if test $ac_compiler_gnu = yes; then
3554 GCC=yes
d0191583 3555else
f11781c5 3556 GCC=
d0191583 3557fi
f11781c5
AK
3558ac_test_CFLAGS=${CFLAGS+set}
3559ac_save_CFLAGS=$CFLAGS
3560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3561$as_echo_n "checking whether $CC accepts -g... " >&6; }
3562if test "${ac_cv_prog_cc_g+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564else
3565 ac_save_c_werror_flag=$ac_c_werror_flag
3566 ac_c_werror_flag=yes
3567 ac_cv_prog_cc_g=no
3568 CFLAGS="-g"
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h. */
72b2cb61 3571
f11781c5
AK
3572int
3573main ()
3574{
72b2cb61 3575
f11781c5
AK
3576 ;
3577 return 0;
3578}
3579_ACEOF
3580if ac_fn_c_try_compile "$LINENO"; then :
3581 ac_cv_prog_cc_g=yes
3582else
3583 CFLAGS=""
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585/* end confdefs.h. */
ad6254c5 3586
f11781c5
AK
3587int
3588main ()
3589{
ad6254c5 3590
f11781c5
AK
3591 ;
3592 return 0;
3593}
d0191583 3594_ACEOF
f11781c5
AK
3595if ac_fn_c_try_compile "$LINENO"; then :
3596
3597else
3598 ac_c_werror_flag=$ac_save_c_werror_flag
3599 CFLAGS="-g"
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3601/* end confdefs.h. */
7a197a62 3602
f11781c5
AK
3603int
3604main ()
3605{
ad6254c5 3606
f11781c5
AK
3607 ;
3608 return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_cv_prog_cc_g=yes
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615fi
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 ac_c_werror_flag=$ac_save_c_werror_flag
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3622$as_echo "$ac_cv_prog_cc_g" >&6; }
3623if test "$ac_test_CFLAGS" = set; then
3624 CFLAGS=$ac_save_CFLAGS
3625elif test $ac_cv_prog_cc_g = yes; then
3626 if test "$GCC" = yes; then
3627 CFLAGS="-g -O2"
3628 else
3629 CFLAGS="-g"
3630 fi
3631else
3632 if test "$GCC" = yes; then
3633 CFLAGS="-O2"
3634 else
3635 CFLAGS=
3636 fi
3637fi
3638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640if test "${ac_cv_prog_cc_c89+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642else
3643 ac_cv_prog_cc_c89=no
3644ac_save_CC=$CC
3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h. */
3647#include <stdarg.h>
3648#include <stdio.h>
3649#include <sys/types.h>
3650#include <sys/stat.h>
3651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3652struct buf { int x; };
3653FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654static char *e (p, i)
3655 char **p;
3656 int i;
3657{
3658 return p[i];
3659}
3660static char *f (char * (*g) (char **, int), char **p, ...)
3661{
3662 char *s;
3663 va_list v;
3664 va_start (v,p);
3665 s = g (p, va_arg (v,int));
3666 va_end (v);
3667 return s;
3668}
ad6254c5 3669
f11781c5
AK
3670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3671 function prototypes and stuff, but not '\xHH' hex character constants.
3672 These don't provoke an error unfortunately, instead are silently treated
3673 as 'x'. The following induces an error, until -std is added to get
3674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3675 array size at least. It's necessary to write '\x00'==0 to get something
3676 that's true only with -std. */
3677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3678
f11781c5
AK
3679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680 inside strings and character constants. */
3681#define FOO(x) 'x'
3682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3683
f11781c5
AK
3684int test (int i, double x);
3685struct s1 {int (*f) (int a);};
3686struct s2 {int (*f) (double a);};
3687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688int argc;
3689char **argv;
d0191583
JM
3690int
3691main ()
3692{
f11781c5 3693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3694 ;
3695 return 0;
3696}
72b2cb61 3697_ACEOF
f11781c5
AK
3698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700do
3701 CC="$ac_save_CC $ac_arg"
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_prog_cc_c89=$ac_arg
3704fi
3705rm -f core conftest.err conftest.$ac_objext
3706 test "x$ac_cv_prog_cc_c89" != "xno" && break
3707done
3708rm -f conftest.$ac_ext
3709CC=$ac_save_CC
3710
3711fi
3712# AC_CACHE_VAL
3713case "x$ac_cv_prog_cc_c89" in
3714 x)
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3716$as_echo "none needed" >&6; } ;;
3717 xno)
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3719$as_echo "unsupported" >&6; } ;;
3720 *)
3721 CC="$CC $ac_cv_prog_cc_c89"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3723$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3724esac
f11781c5
AK
3725if test "x$ac_cv_prog_cc_c89" != xno; then :
3726
3727fi
3728
3729ac_ext=c
3730ac_cpp='$CPP $CPPFLAGS'
3731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3734
ad6254c5 3735
7a197a62 3736
f11781c5
AK
3737ac_ext=c
3738ac_cpp='$CPP $CPPFLAGS'
3739ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3743$as_echo_n "checking how to run the C preprocessor... " >&6; }
3744# On Suns, sometimes $CPP names a directory.
3745if test -n "$CPP" && test -d "$CPP"; then
3746 CPP=
3747fi
3748if test -z "$CPP"; then
3749 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3750 $as_echo_n "(cached) " >&6
ad6254c5 3751else
f11781c5
AK
3752 # Double quotes because CPP needs to be expanded
3753 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3754 do
3755 ac_preproc_ok=false
3756for ac_c_preproc_warn_flag in '' yes
3757do
3758 # Use a header file that comes with gcc, so configuring glibc
3759 # with a fresh cross-compiler works.
3760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3761 # <limits.h> exists even on freestanding compilers.
3762 # On the NeXT, cc -E runs the code through the compiler's parser,
3763 # not just through cpp. "Syntax error" is here to catch this case.
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3765/* end confdefs.h. */
d0191583
JM
3766#ifdef __STDC__
3767# include <limits.h>
3768#else
3769# include <assert.h>
3770#endif
f11781c5
AK
3771 Syntax error
3772_ACEOF
3773if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3774
f11781c5
AK
3775else
3776 # Broken: fails on valid input.
3777continue
3778fi
3779rm -f conftest.err conftest.$ac_ext
d0191583 3780
f11781c5
AK
3781 # OK, works on sane cases. Now check whether nonexistent headers
3782 # can be detected and how.
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784/* end confdefs.h. */
3785#include <ac_nonexistent.h>
72b2cb61 3786_ACEOF
f11781c5
AK
3787if ac_fn_c_try_cpp "$LINENO"; then :
3788 # Broken: success on invalid input.
3789continue
d0191583 3790else
f11781c5
AK
3791 # Passes both tests.
3792ac_preproc_ok=:
3793break
ad6254c5 3794fi
f11781c5 3795rm -f conftest.err conftest.$ac_ext
ad6254c5 3796
f11781c5
AK
3797done
3798# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3799rm -f conftest.err conftest.$ac_ext
3800if $ac_preproc_ok; then :
3801 break
7a197a62
AK
3802fi
3803
f11781c5
AK
3804 done
3805 ac_cv_prog_CPP=$CPP
ad6254c5 3806
7a197a62 3807fi
f11781c5
AK
3808 CPP=$ac_cv_prog_CPP
3809else
3810 ac_cv_prog_CPP=$CPP
d0191583 3811fi
f11781c5
AK
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3813$as_echo "$CPP" >&6; }
3814ac_preproc_ok=false
3815for ac_c_preproc_warn_flag in '' yes
3816do
3817 # Use a header file that comes with gcc, so configuring glibc
3818 # with a fresh cross-compiler works.
3819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3820 # <limits.h> exists even on freestanding compilers.
3821 # On the NeXT, cc -E runs the code through the compiler's parser,
3822 # not just through cpp. "Syntax error" is here to catch this case.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824/* end confdefs.h. */
3825#ifdef __STDC__
3826# include <limits.h>
3827#else
3828# include <assert.h>
3829#endif
3830 Syntax error
3831_ACEOF
3832if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3833
9c961554 3834else
f11781c5
AK
3835 # Broken: fails on valid input.
3836continue
9c961554 3837fi
f11781c5 3838rm -f conftest.err conftest.$ac_ext
9c961554 3839
f11781c5
AK
3840 # OK, works on sane cases. Now check whether nonexistent headers
3841 # can be detected and how.
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843/* end confdefs.h. */
3844#include <ac_nonexistent.h>
3845_ACEOF
3846if ac_fn_c_try_cpp "$LINENO"; then :
3847 # Broken: success on invalid input.
3848continue
3849else
3850 # Passes both tests.
3851ac_preproc_ok=:
3852break
3853fi
3854rm -f conftest.err conftest.$ac_ext
ad6254c5 3855
f11781c5
AK
3856done
3857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858rm -f conftest.err conftest.$ac_ext
3859if $ac_preproc_ok; then :
d0191583 3860
f11781c5
AK
3861else
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3865See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3866fi
3867
f11781c5
AK
3868ac_ext=c
3869ac_cpp='$CPP $CPPFLAGS'
3870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3873
ad6254c5 3874
f11781c5
AK
3875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3876$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3877if test "${ac_cv_path_GREP+set}" = set; then :
3878 $as_echo_n "(cached) " >&6
3879else
3880 if test -z "$GREP"; then
3881 ac_path_GREP_found=false
3882 # Loop through the user's path and test for each of PROGNAME-LIST
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_prog in grep ggrep; do
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3891 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3892# Check for GNU ac_path_GREP and select it if it is found.
3893 # Check for GNU $ac_path_GREP
3894case `"$ac_path_GREP" --version 2>&1` in
3895*GNU*)
3896 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3897*)
3898 ac_count=0
3899 $as_echo_n 0123456789 >"conftest.in"
3900 while :
3901 do
3902 cat "conftest.in" "conftest.in" >"conftest.tmp"
3903 mv "conftest.tmp" "conftest.in"
3904 cp "conftest.in" "conftest.nl"
3905 $as_echo 'GREP' >> "conftest.nl"
3906 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3907 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3908 as_fn_arith $ac_count + 1 && ac_count=$as_val
3909 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3910 # Best one so far, save it but keep looking for a better one
3911 ac_cv_path_GREP="$ac_path_GREP"
3912 ac_path_GREP_max=$ac_count
3913 fi
3914 # 10*(2^10) chars as input seems more than enough
3915 test $ac_count -gt 10 && break
3916 done
3917 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3918esac
ad6254c5 3919
f11781c5
AK
3920 $ac_path_GREP_found && break 3
3921 done
3922 done
3923 done
3924IFS=$as_save_IFS
3925 if test -z "$ac_cv_path_GREP"; then
3926 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3927 fi
3928else
3929 ac_cv_path_GREP=$GREP
7a197a62
AK
3930fi
3931
d0191583 3932fi
f11781c5
AK
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3934$as_echo "$ac_cv_path_GREP" >&6; }
3935 GREP="$ac_cv_path_GREP"
ad6254c5 3936
24bbc4d7 3937
f11781c5
AK
3938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3939$as_echo_n "checking for egrep... " >&6; }
3940if test "${ac_cv_path_EGREP+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942else
3943 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3944 then ac_cv_path_EGREP="$GREP -E"
3945 else
3946 if test -z "$EGREP"; then
3947 ac_path_EGREP_found=false
3948 # Loop through the user's path and test for each of PROGNAME-LIST
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_prog in egrep; do
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3957 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3958# Check for GNU ac_path_EGREP and select it if it is found.
3959 # Check for GNU $ac_path_EGREP
3960case `"$ac_path_EGREP" --version 2>&1` in
3961*GNU*)
3962 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3963*)
3964 ac_count=0
3965 $as_echo_n 0123456789 >"conftest.in"
3966 while :
3967 do
3968 cat "conftest.in" "conftest.in" >"conftest.tmp"
3969 mv "conftest.tmp" "conftest.in"
3970 cp "conftest.in" "conftest.nl"
3971 $as_echo 'EGREP' >> "conftest.nl"
3972 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3974 as_fn_arith $ac_count + 1 && ac_count=$as_val
3975 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3976 # Best one so far, save it but keep looking for a better one
3977 ac_cv_path_EGREP="$ac_path_EGREP"
3978 ac_path_EGREP_max=$ac_count
3979 fi
3980 # 10*(2^10) chars as input seems more than enough
3981 test $ac_count -gt 10 && break
3982 done
3983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3984esac
24bbc4d7 3985
f11781c5
AK
3986 $ac_path_EGREP_found && break 3
3987 done
3988 done
3989 done
3990IFS=$as_save_IFS
3991 if test -z "$ac_cv_path_EGREP"; then
3992 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3993 fi
24bbc4d7 3994else
f11781c5 3995 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
3996fi
3997
f11781c5 3998 fi
24bbc4d7 3999fi
f11781c5
AK
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4001$as_echo "$ac_cv_path_EGREP" >&6; }
4002 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4003
4004
f11781c5
AK
4005if test $ac_cv_c_compiler_gnu = yes; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4007$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4008if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
93bd259b 4010else
f11781c5
AK
4011 ac_pattern="Autoconf.*'x'"
4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4013/* end confdefs.h. */
4014#include <sgtty.h>
4015Autoconf TIOCGETP
4016_ACEOF
4017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4019 ac_cv_prog_gcc_traditional=yes
d0191583 4020else
f11781c5 4021 ac_cv_prog_gcc_traditional=no
7a197a62 4022fi
f11781c5 4023rm -f conftest*
7a197a62 4024
72b2cb61 4025
f11781c5
AK
4026 if test $ac_cv_prog_gcc_traditional = no; then
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h. */
4029#include <termio.h>
4030Autoconf TCGETA
72b2cb61 4031_ACEOF
f11781c5
AK
4032if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4034 ac_cv_prog_gcc_traditional=yes
ad6254c5 4035fi
f11781c5 4036rm -f conftest*
ad6254c5 4037
f11781c5 4038 fi
7a197a62 4039fi
f11781c5
AK
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4041$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4042 if test $ac_cv_prog_gcc_traditional = yes; then
4043 CC="$CC -traditional"
4044 fi
ad6254c5
AK
4045fi
4046
f11781c5
AK
4047# Find a good install program. We prefer a C program (faster),
4048# so one script is as good as another. But avoid the broken or
4049# incompatible versions:
4050# SysV /etc/install, /usr/sbin/install
4051# SunOS /usr/etc/install
4052# IRIX /sbin/install
4053# AIX /bin/install
4054# AmigaOS /C/install, which installs bootblocks on floppy discs
4055# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4056# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4057# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4058# OS/2's system install, which has a completely different semantic
4059# ./install, which can be erroneously created by make from ./install.sh.
4060# Reject install programs that cannot install multiple files.
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4062$as_echo_n "checking for a BSD-compatible install... " >&6; }
4063if test -z "$INSTALL"; then
4064if test "${ac_cv_path_install+set}" = set; then :
4065 $as_echo_n "(cached) " >&6
ad6254c5 4066else
f11781c5
AK
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 # Account for people who put trailing slashes in PATH elements.
4073case $as_dir/ in #((
4074 ./ | .// | /[cC]/* | \
4075 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4076 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4077 /usr/ucb/* ) ;;
4078 *)
4079 # OSF1 and SCO ODT 3.0 have their own names for install.
4080 # Don't use installbsd from OSF since it installs stuff as root
4081 # by default.
4082 for ac_prog in ginstall scoinst install; do
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4085 if test $ac_prog = install &&
4086 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4087 # AIX install. It has an incompatible calling convention.
4088 :
4089 elif test $ac_prog = install &&
4090 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4091 # program-specific install script used by HP pwplus--don't use.
4092 :
4093 else
4094 rm -rf conftest.one conftest.two conftest.dir
4095 echo one > conftest.one
4096 echo two > conftest.two
4097 mkdir conftest.dir
4098 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4099 test -s conftest.one && test -s conftest.two &&
4100 test -s conftest.dir/conftest.one &&
4101 test -s conftest.dir/conftest.two
4102 then
4103 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4104 break 3
4105 fi
4106 fi
4107 fi
4108 done
4109 done
4110 ;;
4111esac
7a197a62 4112
f11781c5
AK
4113 done
4114IFS=$as_save_IFS
d0191583 4115
f11781c5 4116rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4117
4118fi
f11781c5
AK
4119 if test "${ac_cv_path_install+set}" = set; then
4120 INSTALL=$ac_cv_path_install
4121 else
4122 # As a last resort, use the slow shell script. Don't cache a
4123 # value for INSTALL within a source directory, because that will
4124 # break other packages using the cache if that directory is
4125 # removed, or if the value is a relative name.
4126 INSTALL=$ac_install_sh
4127 fi
7a197a62 4128fi
f11781c5
AK
4129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4130$as_echo "$INSTALL" >&6; }
7a197a62 4131
f11781c5
AK
4132# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4133# It thinks the first close brace ends the variable substitution.
4134test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4135
f11781c5 4136test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4137
f11781c5 4138test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4139
f11781c5
AK
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4141$as_echo_n "checking whether ln -s works... " >&6; }
4142LN_S=$as_ln_s
4143if test "$LN_S" = "ln -s"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4145$as_echo "yes" >&6; }
4146else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4148$as_echo "no, using $LN_S" >&6; }
15d91f5a 4149fi
ad6254c5 4150
f11781c5
AK
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4152$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4153set x ${MAKE-make}
4154ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4155if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4156 $as_echo_n "(cached) " >&6
d0191583 4157else
f11781c5
AK
4158 cat >conftest.make <<\_ACEOF
4159SHELL = /bin/sh
4160all:
4161 @echo '@@@%%%=$(MAKE)=@@@%%%'
4162_ACEOF
4163# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4164case `${MAKE-make} -f conftest.make 2>/dev/null` in
4165 *@@@%%%=?*=@@@%%%*)
4166 eval ac_cv_prog_make_${ac_make}_set=yes;;
4167 *)
4168 eval ac_cv_prog_make_${ac_make}_set=no;;
4169esac
4170rm -f conftest.make
4171fi
4172if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4174$as_echo "yes" >&6; }
4175 SET_MAKE=
4176else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178$as_echo "no" >&6; }
4179 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4180fi
4181
f11781c5
AK
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4183$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4184if test -z "$MKDIR_P"; then
4185 if test "${ac_cv_path_mkdir+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4190do
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_prog in mkdir gmkdir; do
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4196 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4197 'mkdir (GNU coreutils) '* | \
4198 'mkdir (coreutils) '* | \
4199 'mkdir (fileutils) '4.1*)
4200 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4201 break 3;;
4202 esac
4203 done
4204 done
4205 done
4206IFS=$as_save_IFS
d0191583 4207
f11781c5 4208fi
ad6254c5 4209
f11781c5
AK
4210 test -d ./--version && rmdir ./--version
4211 if test "${ac_cv_path_mkdir+set}" = set; then
4212 MKDIR_P="$ac_cv_path_mkdir -p"
4213 else
4214 # As a last resort, use the slow shell script. Don't cache a
4215 # value for MKDIR_P within a source directory, because that will
4216 # break other packages using the cache if that directory is
4217 # removed, or if the value is a relative name.
4218 MKDIR_P="$ac_install_sh -d"
4219 fi
ad6254c5 4220fi
f11781c5
AK
4221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4222$as_echo "$MKDIR_P" >&6; }
7a197a62 4223
f11781c5
AK
4224if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228$as_echo_n "checking for $ac_word... " >&6; }
4229if test "${ac_cv_prog_RANLIB+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231else
4232 if test -n "$RANLIB"; then
4233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4234else
4235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246done
4247 done
4248IFS=$as_save_IFS
d0191583 4249
f11781c5
AK
4250fi
4251fi
4252RANLIB=$ac_cv_prog_RANLIB
4253if test -n "$RANLIB"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4255$as_echo "$RANLIB" >&6; }
d0191583 4256else
f11781c5
AK
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
ad6254c5 4259fi
ad6254c5 4260
8a2fc586 4261
d0191583 4262fi
f11781c5
AK
4263if test -z "$ac_cv_prog_RANLIB"; then
4264 ac_ct_RANLIB=$RANLIB
4265 # Extract the first word of "ranlib", so it can be a program name with args.
4266set dummy ranlib; ac_word=$2
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
4269if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
4271else
4272 if test -n "$ac_ct_RANLIB"; then
4273 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4274else
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282 ac_cv_prog_ac_ct_RANLIB="ranlib"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4285 fi
4286done
4287 done
4288IFS=$as_save_IFS
8a2fc586 4289
f11781c5
AK
4290fi
4291fi
4292ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4293if test -n "$ac_ct_RANLIB"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4295$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4296else
f11781c5
AK
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298$as_echo "no" >&6; }
8fea97b7
ZK
4299fi
4300
f11781c5
AK
4301 if test "x$ac_ct_RANLIB" = x; then
4302 RANLIB=":"
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305yes:)
4306{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308ac_tool_warned=yes ;;
8fea97b7 4309esac
f11781c5
AK
4310 RANLIB=$ac_ct_RANLIB
4311 fi
d0191583 4312else
f11781c5 4313 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4314fi
8a2fc586 4315
f11781c5
AK
4316# Extract the first word of "cflow", so it can be a program name with args.
4317set dummy cflow; ac_word=$2
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319$as_echo_n "checking for $ac_word... " >&6; }
4320if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322else
4323 case $CFLOW_CMD in
4324 [\\/]* | ?:[\\/]*)
4325 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4326 ;;
4327 *)
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329for as_dir in $PATH
4330do
4331 IFS=$as_save_IFS
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 break 2
4338 fi
4339done
4340 done
4341IFS=$as_save_IFS
8a2fc586 4342
f11781c5
AK
4343 ;;
4344esac
ad6254c5 4345fi
f11781c5
AK
4346CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4347if test -n "$CFLOW_CMD"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4349$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4350else
f11781c5
AK
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
37ddf259
AK
4353fi
4354
e2997b73 4355
f11781c5
AK
4356# Extract the first word of "cscope", so it can be a program name with args.
4357set dummy cscope; ac_word=$2
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4359$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4360if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4361 $as_echo_n "(cached) " >&6
4362else
f11781c5 4363 case $CSCOPE_CMD in
e2997b73 4364 [\\/]* | ?:[\\/]*)
f11781c5 4365 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4366 ;;
4367 *)
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
f11781c5 4373 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4375 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4377 break 2
4378 fi
4379done
f11781c5 4380 done
e2997b73
AK
4381IFS=$as_save_IFS
4382
4383 ;;
4384esac
4385fi
f11781c5
AK
4386CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4387if test -n "$CSCOPE_CMD"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4389$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4390else
f11781c5 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4392$as_echo "no" >&6; }
4393fi
f11781c5
AK
4394
4395
4396
4397################################################################################
4398ac_header_dirent=no
4399for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4400 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4402$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4403if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4404 $as_echo_n "(cached) " >&6
4405else
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407/* end confdefs.h. */
4408#include <sys/types.h>
4409#include <$ac_hdr>
4410
4411int
4412main ()
4413{
4414if ((DIR *) 0)
4415return 0;
4416 ;
4417 return 0;
4418}
4419_ACEOF
4420if ac_fn_c_try_compile "$LINENO"; then :
4421 eval "$as_ac_Header=yes"
4422else
4423 eval "$as_ac_Header=no"
4424fi
4425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426fi
4427eval ac_res=\$$as_ac_Header
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4429$as_echo "$ac_res" >&6; }
4430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4431 cat >>confdefs.h <<_ACEOF
4432#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4433_ACEOF
4434
4435ac_header_dirent=$ac_hdr; break
4436fi
4437
4438done
4439# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4440if test $ac_header_dirent = dirent.h; then
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4442$as_echo_n "checking for library containing opendir... " >&6; }
4443if test "${ac_cv_search_opendir+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445else
4446 ac_func_search_save_LIBS=$LIBS
4447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4448/* end confdefs.h. */
4449
4450/* Override any GCC internal prototype to avoid an error.
4451 Use char because int might match the return type of a GCC
4452 builtin and then its argument prototype would still apply. */
4453#ifdef __cplusplus
4454extern "C"
4455#endif
4456char opendir ();
4457int
4458main ()
4459{
4460return opendir ();
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465for ac_lib in '' dir; do
4466 if test -z "$ac_lib"; then
4467 ac_res="none required"
4468 else
4469 ac_res=-l$ac_lib
4470 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4471 fi
4472 if ac_fn_c_try_link "$LINENO"; then :
4473 ac_cv_search_opendir=$ac_res
4474fi
4475rm -f core conftest.err conftest.$ac_objext \
4476 conftest$ac_exeext
4477 if test "${ac_cv_search_opendir+set}" = set; then :
4478 break
4479fi
4480done
4481if test "${ac_cv_search_opendir+set}" = set; then :
4482
4483else
4484 ac_cv_search_opendir=no
4485fi
4486rm conftest.$ac_ext
4487LIBS=$ac_func_search_save_LIBS
4488fi
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4490$as_echo "$ac_cv_search_opendir" >&6; }
4491ac_res=$ac_cv_search_opendir
4492if test "$ac_res" != no; then :
4493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4494
4495fi
f11781c5
AK
4496
4497else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4499$as_echo_n "checking for library containing opendir... " >&6; }
4500if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4501 $as_echo_n "(cached) " >&6
4502else
f11781c5
AK
4503 ac_func_search_save_LIBS=$LIBS
4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505/* end confdefs.h. */
e2997b73 4506
f11781c5
AK
4507/* Override any GCC internal prototype to avoid an error.
4508 Use char because int might match the return type of a GCC
4509 builtin and then its argument prototype would still apply. */
4510#ifdef __cplusplus
4511extern "C"
4512#endif
4513char opendir ();
4514int
4515main ()
4516{
4517return opendir ();
4518 ;
4519 return 0;
4520}
4521_ACEOF
4522for ac_lib in '' x; do
4523 if test -z "$ac_lib"; then
4524 ac_res="none required"
4525 else
4526 ac_res=-l$ac_lib
4527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4528 fi
4529 if ac_fn_c_try_link "$LINENO"; then :
4530 ac_cv_search_opendir=$ac_res
e2997b73 4531fi
f11781c5
AK
4532rm -f core conftest.err conftest.$ac_objext \
4533 conftest$ac_exeext
4534 if test "${ac_cv_search_opendir+set}" = set; then :
4535 break
e2997b73 4536fi
f11781c5
AK
4537done
4538if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4539
e2997b73 4540else
f11781c5
AK
4541 ac_cv_search_opendir=no
4542fi
4543rm conftest.$ac_ext
4544LIBS=$ac_func_search_save_LIBS
e2997b73 4545fi
f11781c5
AK
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4547$as_echo "$ac_cv_search_opendir" >&6; }
4548ac_res=$ac_cv_search_opendir
4549if test "$ac_res" != no; then :
4550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4551
4552fi
8c4e8a18 4553
e2997b73
AK
4554fi
4555
f11781c5
AK
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4557$as_echo_n "checking for ANSI C header files... " >&6; }
4558if test "${ac_cv_header_stdc+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560else
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562/* end confdefs.h. */
4563#include <stdlib.h>
4564#include <stdarg.h>
4565#include <string.h>
4566#include <float.h>
e2997b73 4567
f11781c5
AK
4568int
4569main ()
4570{
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
4576if ac_fn_c_try_compile "$LINENO"; then :
4577 ac_cv_header_stdc=yes
e2997b73 4578else
f11781c5 4579 ac_cv_header_stdc=no
e2997b73 4580fi
f11781c5
AK
4581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4582
4583if test $ac_cv_header_stdc = yes; then
4584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4587#include <string.h>
4588
4589_ACEOF
4590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4591 $EGREP "memchr" >/dev/null 2>&1; then :
4592
e2997b73 4593else
f11781c5 4594 ac_cv_header_stdc=no
e2997b73 4595fi
f11781c5 4596rm -f conftest*
e2997b73 4597
f11781c5 4598fi
e2997b73 4599
f11781c5
AK
4600if test $ac_cv_header_stdc = yes; then
4601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h. */
4604#include <stdlib.h>
e2997b73 4605
f11781c5
AK
4606_ACEOF
4607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4608 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4609
e2997b73 4610else
f11781c5 4611 ac_cv_header_stdc=no
e2997b73 4612fi
f11781c5 4613rm -f conftest*
e2997b73 4614
e2997b73 4615fi
90c80887 4616
f11781c5
AK
4617if test $ac_cv_header_stdc = yes; then
4618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4619 if test "$cross_compiling" = yes; then :
4620 :
4621else
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h. */
4624#include <ctype.h>
4625#include <stdlib.h>
4626#if ((' ' & 0x0FF) == 0x020)
4627# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4628# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4629#else
4630# define ISLOWER(c) \
4631 (('a' <= (c) && (c) <= 'i') \
4632 || ('j' <= (c) && (c) <= 'r') \
4633 || ('s' <= (c) && (c) <= 'z'))
4634# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4635#endif
4636
4637#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4638int
4639main ()
4640{
4641 int i;
4642 for (i = 0; i < 256; i++)
4643 if (XOR (islower (i), ISLOWER (i))
4644 || toupper (i) != TOUPPER (i))
4645 return 2;
4646 return 0;
4647}
4648_ACEOF
4649if ac_fn_c_try_run "$LINENO"; then :
90c80887 4650
90c80887 4651else
f11781c5 4652 ac_cv_header_stdc=no
90c80887 4653fi
f11781c5
AK
4654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4655 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4656fi
90c80887 4657
90c80887 4658fi
90c80887 4659fi
f11781c5
AK
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4661$as_echo "$ac_cv_header_stdc" >&6; }
4662if test $ac_cv_header_stdc = yes; then
90c80887 4663
f11781c5 4664$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4665
90c80887 4666fi
f11781c5
AK
4667
4668# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4669for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4670 inttypes.h stdint.h unistd.h
4671do :
4672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4673ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4674"
4675if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4676 cat >>confdefs.h <<_ACEOF
4677#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678_ACEOF
4679
90c80887 4680fi
f11781c5
AK
4681
4682done
4683
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4686$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4687if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h. */
4692#include <sys/types.h>
4693int
4694main ()
4695{
4696return makedev(0, 0);
4697 ;
4698 return 0;
4699}
4700_ACEOF
4701if ac_fn_c_try_link "$LINENO"; then :
4702 ac_cv_header_sys_types_h_makedev=yes
4703else
4704 ac_cv_header_sys_types_h_makedev=no
90c80887 4705fi
f11781c5
AK
4706rm -f core conftest.err conftest.$ac_objext \
4707 conftest$ac_exeext conftest.$ac_ext
4708
90c80887 4709fi
f11781c5
AK
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4711$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4712
4713if test $ac_cv_header_sys_types_h_makedev = no; then
4714ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4715if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4716
4717$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4718
a946372e 4719fi
e2997b73 4720
e2997b73 4721
a946372e 4722
f11781c5
AK
4723 if test $ac_cv_header_sys_mkdev_h = no; then
4724 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4725if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4726
4727$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4728
e2997b73 4729fi
a946372e 4730
a946372e 4731
f11781c5
AK
4732 fi
4733fi
4734
4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4736$as_echo_n "checking for ANSI C header files... " >&6; }
4737if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4738 $as_echo_n "(cached) " >&6
4739else
f11781c5 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4741/* end confdefs.h. */
f11781c5
AK
4742#include <stdlib.h>
4743#include <stdarg.h>
4744#include <string.h>
4745#include <float.h>
a946372e 4746
a946372e
AK
4747int
4748main ()
4749{
f11781c5 4750
a946372e
AK
4751 ;
4752 return 0;
4753}
4754_ACEOF
f11781c5
AK
4755if ac_fn_c_try_compile "$LINENO"; then :
4756 ac_cv_header_stdc=yes
e2997b73 4757else
f11781c5
AK
4758 ac_cv_header_stdc=no
4759fi
4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761
4762if test $ac_cv_header_stdc = yes; then
4763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h. */
4766#include <string.h>
4767
4768_ACEOF
4769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4771
f11781c5
AK
4772else
4773 ac_cv_header_stdc=no
a946372e 4774fi
f11781c5 4775rm -f conftest*
e2997b73 4776
a946372e 4777fi
e2997b73 4778
f11781c5
AK
4779if test $ac_cv_header_stdc = yes; then
4780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4782/* end confdefs.h. */
4783#include <stdlib.h>
4784
4785_ACEOF
4786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4787 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4788
e2997b73 4789else
f11781c5 4790 ac_cv_header_stdc=no
e2997b73 4791fi
f11781c5 4792rm -f conftest*
e2997b73 4793
f11781c5 4794fi
a946372e 4795
f11781c5
AK
4796if test $ac_cv_header_stdc = yes; then
4797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4798 if test "$cross_compiling" = yes; then :
4799 :
4800else
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803#include <ctype.h>
4804#include <stdlib.h>
4805#if ((' ' & 0x0FF) == 0x020)
4806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4808#else
4809# define ISLOWER(c) \
4810 (('a' <= (c) && (c) <= 'i') \
4811 || ('j' <= (c) && (c) <= 'r') \
4812 || ('s' <= (c) && (c) <= 'z'))
4813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4814#endif
e2997b73 4815
f11781c5
AK
4816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4817int
4818main ()
4819{
4820 int i;
4821 for (i = 0; i < 256; i++)
4822 if (XOR (islower (i), ISLOWER (i))
4823 || toupper (i) != TOUPPER (i))
4824 return 2;
4825 return 0;
4826}
4827_ACEOF
4828if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4829
e2997b73 4830else
f11781c5 4831 ac_cv_header_stdc=no
e2997b73 4832fi
f11781c5
AK
4833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4835fi
f11781c5 4836
e2997b73 4837fi
e2997b73 4838fi
f11781c5
AK
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4840$as_echo "$ac_cv_header_stdc" >&6; }
4841if test $ac_cv_header_stdc = yes; then
e2997b73 4842
f11781c5 4843$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4844
f11781c5 4845fi
e2997b73 4846
f11781c5
AK
4847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4848$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4849if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4850 $as_echo_n "(cached) " >&6
4851else
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853/* end confdefs.h. */
4854#include <sys/types.h>
4855#include <sys/wait.h>
4856#ifndef WEXITSTATUS
4857# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4858#endif
4859#ifndef WIFEXITED
4860# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4861#endif
e2997b73 4862
f11781c5
AK
4863int
4864main ()
4865{
4866 int s;
4867 wait (&s);
4868 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4869 ;
4870 return 0;
4871}
4872_ACEOF
4873if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_cv_header_sys_wait_h=yes
e2997b73 4875else
f11781c5 4876 ac_cv_header_sys_wait_h=no
e2997b73 4877fi
f11781c5
AK
4878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879fi
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4881$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4882if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4883
f11781c5 4884$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4885
d0191583 4886fi
f11781c5
AK
4887
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4889$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4890if test "${ac_cv_header_time+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
fc54be10 4892else
f11781c5 4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4894/* end confdefs.h. */
f11781c5
AK
4895#include <sys/types.h>
4896#include <sys/time.h>
4897#include <time.h>
4898
4899int
4900main ()
4901{
4902if ((struct tm *) 0)
4903return 0;
4904 ;
4905 return 0;
4906}
a946372e 4907_ACEOF
f11781c5
AK
4908if ac_fn_c_try_compile "$LINENO"; then :
4909 ac_cv_header_time=yes
a946372e 4910else
f11781c5
AK
4911 ac_cv_header_time=no
4912fi
4913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4914fi
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4916$as_echo "$ac_cv_header_time" >&6; }
4917if test $ac_cv_header_time = yes; then
4918
4919$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4920
4921fi
4922
4923
4924for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4925 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4926 sys/wait.h time.h
4927do :
4928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4929ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4930if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4931 cat >>confdefs.h <<_ACEOF
4932#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4933_ACEOF
d0191583 4934
f11781c5
AK
4935else
4936 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4937fi
4938
f11781c5 4939done
fddafd51 4940
f11781c5
AK
4941
4942case "$host_os" in
4943 linux*)
4944 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4945do :
4946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4947ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4949 cat >>confdefs.h <<_ACEOF
4950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4951_ACEOF
a946372e 4952
f11781c5
AK
4953else
4954 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4955fi
4956
f11781c5
AK
4957done
4958 ;;
4959 darwin*)
4960 for ac_header in machine/endian.h sys/disk.h
4961do :
4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4964if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4965 cat >>confdefs.h <<_ACEOF
4966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4967_ACEOF
a946372e 4968
f11781c5
AK
4969else
4970 as_fn_error $? "bailing out" "$LINENO" 5
4971fi
a946372e 4972
f11781c5
AK
4973done
4974 ;;
a946372e 4975esac
f11781c5
AK
4976
4977for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4978 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4979 sys/types.h unistd.h
4980do :
4981 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4982ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4983if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4984 cat >>confdefs.h <<_ACEOF
4985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4986_ACEOF
4987
a946372e 4988else
f11781c5 4989 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4990fi
a946372e 4991
f11781c5
AK
4992done
4993
4994for ac_header in termios.h sys/statvfs.h
4995do :
4996 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4997ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
4999 cat >>confdefs.h <<_ACEOF
5000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001_ACEOF
5002
a946372e
AK
5003fi
5004
5005done
5006
a946372e 5007
f11781c5
AK
5008################################################################################
5009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5010$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5011if test "${ac_cv_c_const+set}" = set; then :
a946372e 5012 $as_echo_n "(cached) " >&6
a946372e 5013else
f11781c5 5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5015/* end confdefs.h. */
a946372e 5016
f11781c5
AK
5017int
5018main ()
5019{
5020/* FIXME: Include the comments suggested by Paul. */
5021#ifndef __cplusplus
5022 /* Ultrix mips cc rejects this. */
5023 typedef int charset[2];
5024 const charset cs;
5025 /* SunOS 4.1.1 cc rejects this. */
5026 char const *const *pcpcc;
5027 char **ppc;
5028 /* NEC SVR4.0.2 mips cc rejects this. */
5029 struct point {int x, y;};
5030 static struct point const zero = {0,0};
5031 /* AIX XL C 1.02.0.0 rejects this.
5032 It does not let you subtract one const X* pointer from another in
5033 an arm of an if-expression whose if-part is not a constant
5034 expression */
5035 const char *g = "string";
5036 pcpcc = &g + (g ? g-g : 0);
5037 /* HPUX 7.0 cc rejects these. */
5038 ++pcpcc;
5039 ppc = (char**) pcpcc;
5040 pcpcc = (char const *const *) ppc;
5041 { /* SCO 3.2v4 cc rejects this. */
5042 char *t;
5043 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5044
f11781c5
AK
5045 *t++ = 0;
5046 if (s) return 0;
5047 }
5048 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5049 int x[] = {25, 17};
5050 const int *foo = &x[0];
5051 ++foo;
5052 }
5053 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5054 typedef const int *iptr;
5055 iptr p = 0;
5056 ++p;
5057 }
5058 { /* AIX XL C 1.02.0.0 rejects this saying
5059 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5060 struct s { int j; const int *ap[3]; };
5061 struct s *b; b->j = 5;
5062 }
5063 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5064 const int foo = 10;
5065 if (!foo) return 0;
5066 }
5067 return !cs[0] && !zero.x;
5068#endif
a946372e 5069
f11781c5
AK
5070 ;
5071 return 0;
5072}
a946372e 5073_ACEOF
f11781c5
AK
5074if ac_fn_c_try_compile "$LINENO"; then :
5075 ac_cv_c_const=yes
a946372e 5076else
f11781c5
AK
5077 ac_cv_c_const=no
5078fi
5079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5080fi
f11781c5
AK
5081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5082$as_echo "$ac_cv_c_const" >&6; }
5083if test $ac_cv_c_const = no; then
a946372e 5084
f11781c5 5085$as_echo "#define const /**/" >>confdefs.h
a946372e 5086
f11781c5 5087fi
a946372e 5088
f11781c5
AK
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5090$as_echo_n "checking for inline... " >&6; }
5091if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5092 $as_echo_n "(cached) " >&6
5093else
f11781c5
AK
5094 ac_cv_c_inline=no
5095for ac_kw in inline __inline__ __inline; do
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097/* end confdefs.h. */
5098#ifndef __cplusplus
5099typedef int foo_t;
5100static $ac_kw foo_t static_foo () {return 0; }
5101$ac_kw foo_t foo () {return 0; }
5102#endif
5103
5104_ACEOF
5105if ac_fn_c_try_compile "$LINENO"; then :
5106 ac_cv_c_inline=$ac_kw
a946372e 5107fi
f11781c5
AK
5108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 test "$ac_cv_c_inline" != no && break
5110done
a946372e
AK
5111
5112fi
f11781c5
AK
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5114$as_echo "$ac_cv_c_inline" >&6; }
5115
5116case $ac_cv_c_inline in
5117 inline | yes) ;;
5118 *)
5119 case $ac_cv_c_inline in
5120 no) ac_val=;;
5121 *) ac_val=$ac_cv_c_inline;;
5122 esac
5123 cat >>confdefs.h <<_ACEOF
5124#ifndef __cplusplus
5125#define inline $ac_val
5126#endif
5127_ACEOF
5128 ;;
5129esac
5130
5131ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5132if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5133
5134cat >>confdefs.h <<_ACEOF
5135#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5136_ACEOF
5137
f11781c5 5138
a946372e
AK
5139fi
5140
f11781c5
AK
5141ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5142if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5143
a946372e 5144else
f11781c5
AK
5145
5146cat >>confdefs.h <<_ACEOF
5147#define off_t long int
5148_ACEOF
5149
a946372e
AK
5150fi
5151
f11781c5
AK
5152ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5153if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5154
a946372e 5155else
f11781c5
AK
5156
5157cat >>confdefs.h <<_ACEOF
5158#define pid_t int
5159_ACEOF
5160
5161fi
5162
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5164$as_echo_n "checking return type of signal handlers... " >&6; }
5165if test "${ac_cv_type_signal+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
a946372e 5167else
f11781c5
AK
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h. */
5170#include <sys/types.h>
5171#include <signal.h>
5172
5173int
5174main ()
5175{
5176return *(signal (0, 0)) (0) == 1;
5177 ;
5178 return 0;
5179}
5180_ACEOF
5181if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_type_signal=int
5183else
5184 ac_cv_type_signal=void
a946372e 5185fi
f11781c5 5186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5187fi
f11781c5
AK
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5189$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5190
f11781c5
AK
5191cat >>confdefs.h <<_ACEOF
5192#define RETSIGTYPE $ac_cv_type_signal
5193_ACEOF
a946372e
AK
5194
5195
f11781c5
AK
5196ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5197if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5198
a946372e 5199else
a946372e 5200
f11781c5
AK
5201cat >>confdefs.h <<_ACEOF
5202#define size_t unsigned int
5203_ACEOF
a946372e 5204
a946372e 5205fi
f11781c5
AK
5206
5207ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5208if test "x$ac_cv_type_mode_t" = x""yes; then :
5209
a946372e 5210else
f11781c5
AK
5211
5212cat >>confdefs.h <<_ACEOF
5213#define mode_t int
a946372e 5214_ACEOF
a946372e 5215
a946372e
AK
5216fi
5217
f11781c5
AK
5218ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5219case $ac_cv_c_int8_t in #(
5220 no|yes) ;; #(
5221 *)
a946372e 5222
f11781c5
AK
5223cat >>confdefs.h <<_ACEOF
5224#define int8_t $ac_cv_c_int8_t
a946372e 5225_ACEOF
f11781c5 5226;;
a946372e 5227esac
a946372e 5228
f11781c5
AK
5229ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5230case $ac_cv_c_int16_t in #(
5231 no|yes) ;; #(
5232 *)
a946372e 5233
f11781c5
AK
5234cat >>confdefs.h <<_ACEOF
5235#define int16_t $ac_cv_c_int16_t
5236_ACEOF
5237;;
5238esac
a946372e 5239
f11781c5
AK
5240ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5241case $ac_cv_c_int32_t in #(
5242 no|yes) ;; #(
5243 *)
a946372e 5244
f11781c5
AK
5245cat >>confdefs.h <<_ACEOF
5246#define int32_t $ac_cv_c_int32_t
5247_ACEOF
5248;;
a946372e 5249esac
a946372e 5250
f11781c5
AK
5251ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5252case $ac_cv_c_int64_t in #(
5253 no|yes) ;; #(
5254 *)
5255
5256cat >>confdefs.h <<_ACEOF
5257#define int64_t $ac_cv_c_int64_t
a946372e 5258_ACEOF
f11781c5
AK
5259;;
5260esac
5261
5262ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5263if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5264
5265else
a946372e 5266
f11781c5
AK
5267cat >>confdefs.h <<_ACEOF
5268#define ssize_t int
5269_ACEOF
a946372e 5270
f11781c5 5271fi
a946372e 5272
f11781c5
AK
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5274$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5275if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5276 $as_echo_n "(cached) " >&6
a946372e 5277else
f11781c5 5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5279/* end confdefs.h. */
f11781c5
AK
5280#include <sys/types.h>
5281
a946372e 5282_ACEOF
f11781c5
AK
5283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5284 $EGREP "uid_t" >/dev/null 2>&1; then :
5285 ac_cv_type_uid_t=yes
a946372e 5286else
f11781c5
AK
5287 ac_cv_type_uid_t=no
5288fi
5289rm -f conftest*
a946372e 5290
a946372e 5291fi
f11781c5
AK
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5293$as_echo "$ac_cv_type_uid_t" >&6; }
5294if test $ac_cv_type_uid_t = no; then
a946372e 5295
f11781c5 5296$as_echo "#define uid_t int" >>confdefs.h
a946372e 5297
f11781c5
AK
5298
5299$as_echo "#define gid_t int" >>confdefs.h
5300
5301fi
5302
5303ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5304case $ac_cv_c_uint8_t in #(
5305 no|yes) ;; #(
5306 *)
5307
5308$as_echo "#define _UINT8_T 1" >>confdefs.h
5309
5310
5311cat >>confdefs.h <<_ACEOF
5312#define uint8_t $ac_cv_c_uint8_t
a946372e 5313_ACEOF
f11781c5
AK
5314;;
5315 esac
5316
5317ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5318case $ac_cv_c_uint16_t in #(
5319 no|yes) ;; #(
5320 *)
5321
5322
5323cat >>confdefs.h <<_ACEOF
5324#define uint16_t $ac_cv_c_uint16_t
a946372e 5325_ACEOF
f11781c5
AK
5326;;
5327 esac
a946372e 5328
f11781c5
AK
5329ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5330case $ac_cv_c_uint32_t in #(
5331 no|yes) ;; #(
5332 *)
a946372e 5333
f11781c5 5334$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5335
a946372e 5336
f11781c5
AK
5337cat >>confdefs.h <<_ACEOF
5338#define uint32_t $ac_cv_c_uint32_t
5339_ACEOF
5340;;
5341 esac
5342
5343ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5344case $ac_cv_c_uint64_t in #(
5345 no|yes) ;; #(
5346 *)
5347
5348$as_echo "#define _UINT64_T 1" >>confdefs.h
5349
5350
5351cat >>confdefs.h <<_ACEOF
5352#define uint64_t $ac_cv_c_uint64_t
5353_ACEOF
5354;;
5355 esac
5356
5357ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5358if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5359
5360cat >>confdefs.h <<_ACEOF
5361#define HAVE_STRUCT_STAT_ST_RDEV 1
5362_ACEOF
5363
5364
5365fi
5366
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5368$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5369if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5370 $as_echo_n "(cached) " >&6
5371else
f11781c5
AK
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h. */
5374#include <sys/types.h>
5375#include <time.h>
5376
5377int
5378main ()
5379{
5380struct tm tm;
5381 int *p = &tm.tm_sec;
5382 return !p;
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_struct_tm=time.h
5389else
5390 ac_cv_struct_tm=sys/time.h
a946372e 5391fi
f11781c5
AK
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5393fi
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5395$as_echo "$ac_cv_struct_tm" >&6; }
5396if test $ac_cv_struct_tm = sys/time.h; then
5397
5398$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5399
5400fi
f11781c5
AK
5401
5402
5403################################################################################
5404for ac_func in ftruncate gethostname getpagesize \
5405 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5406 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5407 strstr strtol strtoul uname
5408do :
5409 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5410ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5411if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5412 cat >>confdefs.h <<_ACEOF
f11781c5 5413#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5414_ACEOF
5415
5416else
f11781c5 5417 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5418fi
a946372e
AK
5419done
5420
f11781c5
AK
5421for ac_func in siginterrupt
5422do :
5423 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5424if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5425 cat >>confdefs.h <<_ACEOF
5426#define HAVE_SIGINTERRUPT 1
5427_ACEOF
a946372e 5428
f11781c5
AK
5429fi
5430done
a946372e 5431
f11781c5
AK
5432# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5433# for constant arguments. Useless!
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5435$as_echo_n "checking for working alloca.h... " >&6; }
5436if test "${ac_cv_working_alloca_h+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
a946372e 5438else
f11781c5
AK
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h. */
5441#include <alloca.h>
5442int
5443main ()
5444{
5445char *p = (char *) alloca (2 * sizeof (int));
5446 if (p) return 0;
5447 ;
5448 return 0;
5449}
5450_ACEOF
5451if ac_fn_c_try_link "$LINENO"; then :
5452 ac_cv_working_alloca_h=yes
a946372e 5453else
f11781c5 5454 ac_cv_working_alloca_h=no
a946372e 5455fi
f11781c5
AK
5456rm -f core conftest.err conftest.$ac_objext \
5457 conftest$ac_exeext conftest.$ac_ext
a946372e 5458fi
f11781c5
AK
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5460$as_echo "$ac_cv_working_alloca_h" >&6; }
5461if test $ac_cv_working_alloca_h = yes; then
a946372e 5462
f11781c5 5463$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5464
a946372e 5465fi
a946372e 5466
f11781c5
AK
5467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5468$as_echo_n "checking for alloca... " >&6; }
5469if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5470 $as_echo_n "(cached) " >&6
a946372e 5471else
f11781c5 5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5473/* end confdefs.h. */
f11781c5
AK
5474#ifdef __GNUC__
5475# define alloca __builtin_alloca
5476#else
5477# ifdef _MSC_VER
5478# include <malloc.h>
5479# define alloca _alloca
5480# else
5481# ifdef HAVE_ALLOCA_H
5482# include <alloca.h>
5483# else
5484# ifdef _AIX
5485 #pragma alloca
5486# else
5487# ifndef alloca /* predefined by HP cc +Olibcalls */
5488char *alloca ();
5489# endif
5490# endif
5491# endif
5492# endif
5493#endif
a946372e 5494
f11781c5
AK
5495int
5496main ()
5497{
5498char *p = (char *) alloca (1);
5499 if (p) return 0;
5500 ;
5501 return 0;
5502}
a946372e 5503_ACEOF
f11781c5
AK
5504if ac_fn_c_try_link "$LINENO"; then :
5505 ac_cv_func_alloca_works=yes
a946372e 5506else
f11781c5 5507 ac_cv_func_alloca_works=no
a946372e 5508fi
f11781c5
AK
5509rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511fi
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5513$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5514
f11781c5 5515if test $ac_cv_func_alloca_works = yes; then
a946372e 5516
f11781c5 5517$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5518
a946372e 5519else
f11781c5
AK
5520 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5521# that cause trouble. Some versions do not even contain alloca or
5522# contain a buggy version. If you still want to use their alloca,
5523# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5524
f11781c5 5525ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5526
f11781c5 5527$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5528
a946372e 5529
f11781c5
AK
5530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5531$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5532if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5533 $as_echo_n "(cached) " >&6
a946372e 5534else
f11781c5 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5536/* end confdefs.h. */
f11781c5
AK
5537#if defined CRAY && ! defined CRAY2
5538webecray
5539#else
5540wenotbecray
5541#endif
5542
a946372e 5543_ACEOF
f11781c5
AK
5544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5545 $EGREP "webecray" >/dev/null 2>&1; then :
5546 ac_cv_os_cray=yes
a946372e 5547else
f11781c5 5548 ac_cv_os_cray=no
a946372e 5549fi
f11781c5 5550rm -f conftest*
a946372e 5551
f11781c5
AK
5552fi
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5554$as_echo "$ac_cv_os_cray" >&6; }
5555if test $ac_cv_os_cray = yes; then
5556 for ac_func in _getb67 GETB67 getb67; do
5557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5558ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5559if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5560
f11781c5
AK
5561cat >>confdefs.h <<_ACEOF
5562#define CRAY_STACKSEG_END $ac_func
a946372e 5563_ACEOF
a946372e 5564
f11781c5 5565 break
a946372e
AK
5566fi
5567
f11781c5
AK
5568 done
5569fi
a946372e 5570
f11781c5
AK
5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5572$as_echo_n "checking stack direction for C alloca... " >&6; }
5573if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5574 $as_echo_n "(cached) " >&6
5575else
f11781c5
AK
5576 if test "$cross_compiling" = yes; then :
5577 ac_cv_c_stack_direction=0
5578else
5579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5580/* end confdefs.h. */
5581$ac_includes_default
5582int
5583find_stack_direction ()
5584{
5585 static char *addr = 0;
5586 auto char dummy;
5587 if (addr == 0)
5588 {
5589 addr = &dummy;
5590 return find_stack_direction ();
5591 }
5592 else
5593 return (&dummy > addr) ? 1 : -1;
5594}
5595
5596int
5597main ()
5598{
5599 return find_stack_direction () < 0;
5600}
5601_ACEOF
5602if ac_fn_c_try_run "$LINENO"; then :
5603 ac_cv_c_stack_direction=1
5604else
5605 ac_cv_c_stack_direction=-1
5606fi
5607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5608 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5609fi
a946372e
AK
5610
5611fi
f11781c5
AK
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5613$as_echo "$ac_cv_c_stack_direction" >&6; }
5614cat >>confdefs.h <<_ACEOF
5615#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5616_ACEOF
5617
f11781c5 5618
a946372e
AK
5619fi
5620
f11781c5
AK
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5622$as_echo_n "checking whether closedir returns void... " >&6; }
5623if test "${ac_cv_func_closedir_void+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
5625else
5626 if test "$cross_compiling" = yes; then :
5627 ac_cv_func_closedir_void=yes
5628else
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631$ac_includes_default
5632#include <$ac_header_dirent>
5633#ifndef __cplusplus
5634int closedir ();
5635#endif
a946372e 5636
f11781c5
AK
5637int
5638main ()
5639{
5640return closedir (opendir (".")) != 0;
5641 ;
5642 return 0;
5643}
5644_ACEOF
5645if ac_fn_c_try_run "$LINENO"; then :
5646 ac_cv_func_closedir_void=no
a946372e 5647else
f11781c5 5648 ac_cv_func_closedir_void=yes
a946372e 5649fi
f11781c5
AK
5650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5651 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5652fi
5653
f11781c5
AK
5654fi
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5656$as_echo "$ac_cv_func_closedir_void" >&6; }
5657if test $ac_cv_func_closedir_void = yes; then
a946372e 5658
f11781c5 5659$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5660
a946372e
AK
5661fi
5662
f11781c5
AK
5663for ac_header in unistd.h
5664do :
5665 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5666if test "x$ac_cv_header_unistd_h" = x""yes; then :
5667 cat >>confdefs.h <<_ACEOF
5668#define HAVE_UNISTD_H 1
5669_ACEOF
a946372e 5670
f11781c5 5671fi
a946372e 5672
f11781c5 5673done
a946372e 5674
f11781c5
AK
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5676$as_echo_n "checking for working chown... " >&6; }
5677if test "${ac_cv_func_chown_works+set}" = set; then :
5678 $as_echo_n "(cached) " >&6
a946372e 5679else
f11781c5
AK
5680 if test "$cross_compiling" = yes; then :
5681 ac_cv_func_chown_works=no
a946372e 5682else
f11781c5
AK
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685$ac_includes_default
5686#include <fcntl.h>
a946372e 5687
f11781c5
AK
5688int
5689main ()
5690{
5691 char *f = "conftest.chown";
5692 struct stat before, after;
a946372e 5693
f11781c5
AK
5694 if (creat (f, 0600) < 0)
5695 return 1;
5696 if (stat (f, &before) < 0)
5697 return 1;
5698 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5699 return 1;
5700 if (stat (f, &after) < 0)
5701 return 1;
5702 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5703
f11781c5
AK
5704 ;
5705 return 0;
5706}
5707_ACEOF
5708if ac_fn_c_try_run "$LINENO"; then :
5709 ac_cv_func_chown_works=yes
a946372e 5710else
f11781c5 5711 ac_cv_func_chown_works=no
a946372e 5712fi
f11781c5
AK
5713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5714 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5715fi
5716
f11781c5 5717rm -f conftest.chown
a946372e 5718
f11781c5
AK
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5721$as_echo "$ac_cv_func_chown_works" >&6; }
5722if test $ac_cv_func_chown_works = yes; then
a946372e 5723
f11781c5 5724$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5725
a946372e 5726fi
a946372e 5727
f11781c5
AK
5728for ac_header in vfork.h
5729do :
5730 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5731if test "x$ac_cv_header_vfork_h" = x""yes; then :
5732 cat >>confdefs.h <<_ACEOF
5733#define HAVE_VFORK_H 1
5734_ACEOF
a946372e 5735
f11781c5 5736fi
a946372e 5737
f11781c5 5738done
a946372e 5739
f11781c5
AK
5740for ac_func in fork vfork
5741do :
5742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5743ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5744if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5745 cat >>confdefs.h <<_ACEOF
5746#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5747_ACEOF
a946372e 5748
f11781c5
AK
5749fi
5750done
a946372e 5751
f11781c5
AK
5752if test "x$ac_cv_func_fork" = xyes; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5754$as_echo_n "checking for working fork... " >&6; }
5755if test "${ac_cv_func_fork_works+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757else
5758 if test "$cross_compiling" = yes; then :
5759 ac_cv_func_fork_works=cross
5760else
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762/* end confdefs.h. */
5763$ac_includes_default
5764int
5765main ()
5766{
a946372e 5767
f11781c5
AK
5768 /* By Ruediger Kuhlmann. */
5769 return fork () < 0;
a946372e 5770
f11781c5
AK
5771 ;
5772 return 0;
5773}
5774_ACEOF
5775if ac_fn_c_try_run "$LINENO"; then :
5776 ac_cv_func_fork_works=yes
a946372e 5777else
f11781c5
AK
5778 ac_cv_func_fork_works=no
5779fi
5780rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5781 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5782fi
a946372e 5783
f11781c5
AK
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5786$as_echo "$ac_cv_func_fork_works" >&6; }
5787
a946372e 5788else
f11781c5 5789 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5790fi
f11781c5
AK
5791if test "x$ac_cv_func_fork_works" = xcross; then
5792 case $host in
5793 *-*-amigaos* | *-*-msdosdjgpp*)
5794 # Override, as these systems have only a dummy fork() stub
5795 ac_cv_func_fork_works=no
5796 ;;
5797 *)
5798 ac_cv_func_fork_works=yes
5799 ;;
5800 esac
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5802$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5803fi
f11781c5
AK
5804ac_cv_func_vfork_works=$ac_cv_func_vfork
5805if test "x$ac_cv_func_vfork" = xyes; then
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5807$as_echo_n "checking for working vfork... " >&6; }
5808if test "${ac_cv_func_vfork_works+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810else
5811 if test "$cross_compiling" = yes; then :
5812 ac_cv_func_vfork_works=cross
5813else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815/* end confdefs.h. */
5816/* Thanks to Paul Eggert for this test. */
5817$ac_includes_default
5818#include <sys/wait.h>
5819#ifdef HAVE_VFORK_H
5820# include <vfork.h>
5821#endif
5822/* On some sparc systems, changes by the child to local and incoming
5823 argument registers are propagated back to the parent. The compiler
5824 is told about this with #include <vfork.h>, but some compilers
5825 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5826 static variable whose address is put into a register that is
5827 clobbered by the vfork. */
5828static void
5829#ifdef __cplusplus
5830sparc_address_test (int arg)
5831# else
5832sparc_address_test (arg) int arg;
5833#endif
5834{
5835 static pid_t child;
5836 if (!child) {
5837 child = vfork ();
5838 if (child < 0) {
5839 perror ("vfork");
5840 _exit(2);
5841 }
5842 if (!child) {
5843 arg = getpid();
5844 write(-1, "", 0);
5845 _exit (arg);
5846 }
5847 }
5848}
a946372e 5849
f11781c5
AK
5850int
5851main ()
5852{
5853 pid_t parent = getpid ();
5854 pid_t child;
a946372e 5855
f11781c5 5856 sparc_address_test (0);
a946372e 5857
f11781c5 5858 child = vfork ();
a946372e 5859
f11781c5
AK
5860 if (child == 0) {
5861 /* Here is another test for sparc vfork register problems. This
5862 test uses lots of local variables, at least as many local
5863 variables as main has allocated so far including compiler
5864 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5865 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5866 reuse the register of parent for one of the local variables,
5867 since it will think that parent can't possibly be used any more
5868 in this routine. Assigning to the local variable will thus
5869 munge parent in the parent process. */
5870 pid_t
5871 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5872 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5873 /* Convince the compiler that p..p7 are live; otherwise, it might
5874 use the same hardware register for all 8 local variables. */
5875 if (p != p1 || p != p2 || p != p3 || p != p4
5876 || p != p5 || p != p6 || p != p7)
5877 _exit(1);
a946372e 5878
f11781c5
AK
5879 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5880 from child file descriptors. If the child closes a descriptor
5881 before it execs or exits, this munges the parent's descriptor
5882 as well. Test for this by closing stdout in the child. */
5883 _exit(close(fileno(stdout)) != 0);
5884 } else {
5885 int status;
5886 struct stat st;
5887
5888 while (wait(&status) != child)
5889 ;
5890 return (
5891 /* Was there some problem with vforking? */
5892 child < 0
5893
5894 /* Did the child fail? (This shouldn't happen.) */
5895 || status
5896
5897 /* Did the vfork/compiler bug occur? */
5898 || parent != getpid()
5899
5900 /* Did the file descriptor bug occur? */
5901 || fstat(fileno(stdout), &st) != 0
5902 );
5903 }
5904}
5905_ACEOF
5906if ac_fn_c_try_run "$LINENO"; then :
5907 ac_cv_func_vfork_works=yes
a946372e 5908else
f11781c5 5909 ac_cv_func_vfork_works=no
a946372e 5910fi
f11781c5
AK
5911rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5912 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5913fi
f11781c5 5914
a946372e 5915fi
f11781c5
AK
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5917$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5918
f11781c5
AK
5919fi;
5920if test "x$ac_cv_func_fork_works" = xcross; then
5921 ac_cv_func_vfork_works=$ac_cv_func_vfork
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5923$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5924fi
a946372e 5925
f11781c5 5926if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5927
f11781c5 5928$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5929
a946372e 5930else
a946372e 5931
f11781c5
AK
5932$as_echo "#define vfork fork" >>confdefs.h
5933
a946372e 5934fi
f11781c5 5935if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5936
f11781c5 5937$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5938
a946372e 5939fi
f11781c5
AK
5940
5941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5942$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5943if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
a946372e 5945else
f11781c5
AK
5946 rm -f conftest.sym conftest.file
5947echo >conftest.file
5948if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5949 if test "$cross_compiling" = yes; then :
5950 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5951else
f11781c5 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5953/* end confdefs.h. */
f11781c5
AK
5954$ac_includes_default
5955int
5956main ()
5957{
5958struct stat sbuf;
5959 /* Linux will dereference the symlink and fail, as required by POSIX.
5960 That is better in the sense that it means we will not
5961 have to compile and use the lstat wrapper. */
5962 return lstat ("conftest.sym/", &sbuf) == 0;
5963 ;
5964 return 0;
5965}
a946372e 5966_ACEOF
f11781c5
AK
5967if ac_fn_c_try_run "$LINENO"; then :
5968 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5969else
f11781c5 5970 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5971fi
f11781c5
AK
5972rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5973 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5974fi
a946372e 5975
a946372e 5976else
f11781c5
AK
5977 # If the `ln -s' command failed, then we probably don't even
5978 # have an lstat function.
5979 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5980fi
f11781c5 5981rm -f conftest.sym conftest.file
a946372e 5982
f11781c5
AK
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5985$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5986
f11781c5 5987test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5988
f11781c5
AK
5989cat >>confdefs.h <<_ACEOF
5990#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5991_ACEOF
a946372e 5992
a946372e 5993
f11781c5
AK
5994if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5995 case " $LIBOBJS " in
5996 *" lstat.$ac_objext "* ) ;;
5997 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5998 ;;
5999esac
a946372e 6000
f11781c5 6001fi
a946372e 6002
f11781c5
AK
6003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6004$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6005if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6006 $as_echo_n "(cached) " >&6
a946372e 6007else
f11781c5
AK
6008 if test "$cross_compiling" = yes; then :
6009 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6010else
f11781c5
AK
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012/* end confdefs.h. */
6013$ac_includes_default
6014int
6015main ()
6016{
6017struct stat sbuf;
6018 return lstat ("", &sbuf) == 0;
6019 ;
6020 return 0;
6021}
6022_ACEOF
6023if ac_fn_c_try_run "$LINENO"; then :
6024 ac_cv_func_lstat_empty_string_bug=no
6025else
6026 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6027fi
f11781c5
AK
6028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6029 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6030fi
6031
f11781c5
AK
6032fi
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6034$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6035if test $ac_cv_func_lstat_empty_string_bug = yes; then
6036 case " $LIBOBJS " in
6037 *" lstat.$ac_objext "* ) ;;
6038 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6039 ;;
6040esac
a946372e
AK
6041
6042
f11781c5
AK
6043cat >>confdefs.h <<_ACEOF
6044#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6045_ACEOF
a946372e 6046
a946372e 6047fi
a946372e 6048
f11781c5
AK
6049for ac_header in stdlib.h
6050do :
6051 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6052if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6053 cat >>confdefs.h <<_ACEOF
6054#define HAVE_STDLIB_H 1
6055_ACEOF
6056
a946372e
AK
6057fi
6058
f11781c5 6059done
a946372e 6060
f11781c5
AK
6061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6062$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6063if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6064 $as_echo_n "(cached) " >&6
6065else
6066 if test "$cross_compiling" = yes; then :
6067 ac_cv_func_malloc_0_nonnull=no
6068else
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070/* end confdefs.h. */
6071#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6072# include <stdlib.h>
6073#else
6074char *malloc ();
6075#endif
a946372e 6076
f11781c5
AK
6077int
6078main ()
6079{
6080return ! malloc (0);
6081 ;
6082 return 0;
6083}
6084_ACEOF
6085if ac_fn_c_try_run "$LINENO"; then :
6086 ac_cv_func_malloc_0_nonnull=yes
a946372e 6087else
f11781c5 6088 ac_cv_func_malloc_0_nonnull=no
a946372e 6089fi
f11781c5
AK
6090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6091 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6092fi
f11781c5 6093
a946372e 6094fi
f11781c5
AK
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6096$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6097if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6098
f11781c5 6099$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6100
f11781c5
AK
6101else
6102 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6103
f11781c5
AK
6104 case " $LIBOBJS " in
6105 *" malloc.$ac_objext "* ) ;;
6106 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6107 ;;
6108esac
6109
6110
6111$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6112
a946372e 6113fi
a946372e 6114
a946372e 6115
f11781c5
AK
6116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6117$as_echo_n "checking for working memcmp... " >&6; }
6118if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6119 $as_echo_n "(cached) " >&6
a946372e 6120else
f11781c5
AK
6121 if test "$cross_compiling" = yes; then :
6122 ac_cv_func_memcmp_working=no
6123else
6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6125/* end confdefs.h. */
6126$ac_includes_default
f11781c5
AK
6127int
6128main ()
6129{
a946372e 6130
f11781c5
AK
6131 /* Some versions of memcmp are not 8-bit clean. */
6132 char c0 = '\100', c1 = '\200', c2 = '\201';
6133 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6134 return 1;
a946372e 6135
f11781c5
AK
6136 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6137 or more and with at least one buffer not starting on a 4-byte boundary.
6138 William Lewis provided this test program. */
6139 {
6140 char foo[21];
6141 char bar[21];
6142 int i;
6143 for (i = 0; i < 4; i++)
6144 {
6145 char *a = foo + i;
6146 char *b = bar + i;
6147 strcpy (a, "--------01111111");
6148 strcpy (b, "--------10000000");
6149 if (memcmp (a, b, 16) >= 0)
6150 return 1;
6151 }
6152 return 0;
6153 }
a946372e 6154
f11781c5
AK
6155 ;
6156 return 0;
6157}
a946372e 6158_ACEOF
f11781c5
AK
6159if ac_fn_c_try_run "$LINENO"; then :
6160 ac_cv_func_memcmp_working=yes
a946372e 6161else
f11781c5
AK
6162 ac_cv_func_memcmp_working=no
6163fi
6164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6165 conftest.$ac_objext conftest.beam conftest.$ac_ext
6166fi
a946372e 6167
a946372e 6168fi
f11781c5
AK
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6170$as_echo "$ac_cv_func_memcmp_working" >&6; }
6171test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6172 *" memcmp.$ac_objext "* ) ;;
6173 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6174 ;;
6175esac
a946372e 6176
a946372e 6177
a946372e 6178
a946372e 6179
f11781c5
AK
6180
6181 for ac_header in $ac_header_list
6182do :
6183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6184ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6185"
6186if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6187 cat >>confdefs.h <<_ACEOF
6188#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6189_ACEOF
6190
a946372e
AK
6191fi
6192
6193done
6194
a946372e 6195
f11781c5
AK
6196
6197
6198
6199
6200
6201
6202for ac_func in getpagesize
6203do :
6204 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6205if test "x$ac_cv_func_getpagesize" = x""yes; then :
6206 cat >>confdefs.h <<_ACEOF
6207#define HAVE_GETPAGESIZE 1
6208_ACEOF
6209
a946372e 6210fi
f11781c5
AK
6211done
6212
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6214$as_echo_n "checking for working mmap... " >&6; }
6215if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
a946372e 6217else
f11781c5
AK
6218 if test "$cross_compiling" = yes; then :
6219 ac_cv_func_mmap_fixed_mapped=no
6220else
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6222/* end confdefs.h. */
6223$ac_includes_default
f11781c5
AK
6224/* malloc might have been renamed as rpl_malloc. */
6225#undef malloc
6226
6227/* Thanks to Mike Haertel and Jim Avera for this test.
6228 Here is a matrix of mmap possibilities:
6229 mmap private not fixed
6230 mmap private fixed at somewhere currently unmapped
6231 mmap private fixed at somewhere already mapped
6232 mmap shared not fixed
6233 mmap shared fixed at somewhere currently unmapped
6234 mmap shared fixed at somewhere already mapped
6235 For private mappings, we should verify that changes cannot be read()
6236 back from the file, nor mmap's back from the file at a different
6237 address. (There have been systems where private was not correctly
6238 implemented like the infamous i386 svr4.0, and systems where the
6239 VM page cache was not coherent with the file system buffer cache
6240 like early versions of FreeBSD and possibly contemporary NetBSD.)
6241 For shared mappings, we should conversely verify that changes get
6242 propagated back to all the places they're supposed to be.
6243
6244 Grep wants private fixed already mapped.
6245 The main things grep needs to know about mmap are:
6246 * does it exist and is it safe to write into the mmap'd area
6247 * how to use it (BSD variants) */
6248
6249#include <fcntl.h>
6250#include <sys/mman.h>
6251
6252#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6253char *malloc ();
6254#endif
6255
6256/* This mess was copied from the GNU getpagesize.h. */
6257#ifndef HAVE_GETPAGESIZE
6258# ifdef _SC_PAGESIZE
6259# define getpagesize() sysconf(_SC_PAGESIZE)
6260# else /* no _SC_PAGESIZE */
6261# ifdef HAVE_SYS_PARAM_H
6262# include <sys/param.h>
6263# ifdef EXEC_PAGESIZE
6264# define getpagesize() EXEC_PAGESIZE
6265# else /* no EXEC_PAGESIZE */
6266# ifdef NBPG
6267# define getpagesize() NBPG * CLSIZE
6268# ifndef CLSIZE
6269# define CLSIZE 1
6270# endif /* no CLSIZE */
6271# else /* no NBPG */
6272# ifdef NBPC
6273# define getpagesize() NBPC
6274# else /* no NBPC */
6275# ifdef PAGESIZE
6276# define getpagesize() PAGESIZE
6277# endif /* PAGESIZE */
6278# endif /* no NBPC */
6279# endif /* no NBPG */
6280# endif /* no EXEC_PAGESIZE */
6281# else /* no HAVE_SYS_PARAM_H */
6282# define getpagesize() 8192 /* punt totally */
6283# endif /* no HAVE_SYS_PARAM_H */
6284# endif /* no _SC_PAGESIZE */
6285
6286#endif /* no HAVE_GETPAGESIZE */
6287
6288int
6289main ()
6290{
6291 char *data, *data2, *data3;
6292 const char *cdata2;
6293 int i, pagesize;
6294 int fd, fd2;
6295
6296 pagesize = getpagesize ();
6297
6298 /* First, make a file with some known garbage in it. */
6299 data = (char *) malloc (pagesize);
6300 if (!data)
6301 return 1;
6302 for (i = 0; i < pagesize; ++i)
6303 *(data + i) = rand ();
6304 umask (0);
6305 fd = creat ("conftest.mmap", 0600);
6306 if (fd < 0)
6307 return 2;
6308 if (write (fd, data, pagesize) != pagesize)
6309 return 3;
6310 close (fd);
6311
6312 /* Next, check that the tail of a page is zero-filled. File must have
6313 non-zero length, otherwise we risk SIGBUS for entire page. */
6314 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6315 if (fd2 < 0)
6316 return 4;
6317 cdata2 = "";
6318 if (write (fd2, cdata2, 1) != 1)
6319 return 5;
6320 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6321 if (data2 == MAP_FAILED)
6322 return 6;
6323 for (i = 0; i < pagesize; ++i)
6324 if (*(data2 + i))
6325 return 7;
6326 close (fd2);
6327 if (munmap (data2, pagesize))
6328 return 8;
6329
6330 /* Next, try to mmap the file at a fixed address which already has
6331 something else allocated at it. If we can, also make sure that
6332 we see the same garbage. */
6333 fd = open ("conftest.mmap", O_RDWR);
6334 if (fd < 0)
6335 return 9;
6336 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6337 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6338 return 10;
6339 for (i = 0; i < pagesize; ++i)
6340 if (*(data + i) != *(data2 + i))
6341 return 11;
6342
6343 /* Finally, make sure that changes to the mapped area do not
6344 percolate back to the file as seen by read(). (This is a bug on
6345 some variants of i386 svr4.0.) */
6346 for (i = 0; i < pagesize; ++i)
6347 *(data2 + i) = *(data2 + i) + 1;
6348 data3 = (char *) malloc (pagesize);
6349 if (!data3)
6350 return 12;
6351 if (read (fd, data3, pagesize) != pagesize)
6352 return 13;
6353 for (i = 0; i < pagesize; ++i)
6354 if (*(data + i) != *(data3 + i))
6355 return 14;
6356 close (fd);
6357 return 0;
6358}
a946372e 6359_ACEOF
f11781c5
AK
6360if ac_fn_c_try_run "$LINENO"; then :
6361 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6362else
f11781c5
AK
6363 ac_cv_func_mmap_fixed_mapped=no
6364fi
6365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6366 conftest.$ac_objext conftest.beam conftest.$ac_ext
6367fi
a946372e 6368
a946372e 6369fi
f11781c5
AK
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6371$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6372if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6373
f11781c5 6374$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6375
f11781c5
AK
6376fi
6377rm -f conftest.mmap conftest.txt
6378
6379for ac_header in stdlib.h
6380do :
6381 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6382if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6383 cat >>confdefs.h <<_ACEOF
6384#define HAVE_STDLIB_H 1
a946372e 6385_ACEOF
f11781c5
AK
6386
6387fi
6388
6389done
6390
6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6392$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6393if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6394 $as_echo_n "(cached) " >&6
6395else
6396 if test "$cross_compiling" = yes; then :
6397 ac_cv_func_realloc_0_nonnull=no
6398else
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6400/* end confdefs.h. */
f11781c5
AK
6401#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6402# include <stdlib.h>
6403#else
6404char *realloc ();
6405#endif
6406
6407int
6408main ()
6409{
6410return ! realloc (0, 0);
6411 ;
6412 return 0;
6413}
a946372e 6414_ACEOF
f11781c5
AK
6415if ac_fn_c_try_run "$LINENO"; then :
6416 ac_cv_func_realloc_0_nonnull=yes
a946372e 6417else
f11781c5
AK
6418 ac_cv_func_realloc_0_nonnull=no
6419fi
6420rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6421 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6422fi
6423
f11781c5
AK
6424fi
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6426$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6427if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6428
f11781c5 6429$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6430
a946372e 6431else
f11781c5
AK
6432 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6433
6434 case " $LIBOBJS " in
6435 *" realloc.$ac_objext "* ) ;;
6436 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6437 ;;
6438esac
a946372e 6439
a946372e 6440
f11781c5
AK
6441$as_echo "#define realloc rpl_realloc" >>confdefs.h
6442
a946372e
AK
6443fi
6444
a946372e 6445
f11781c5
AK
6446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6447$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6448if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
a946372e 6450else
f11781c5
AK
6451 if test "$cross_compiling" = yes; then :
6452 ac_cv_func_stat_empty_string_bug=yes
6453else
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h. */
6456$ac_includes_default
6457int
6458main ()
6459{
6460struct stat sbuf;
6461 return stat ("", &sbuf) == 0;
6462 ;
6463 return 0;
6464}
6465_ACEOF
6466if ac_fn_c_try_run "$LINENO"; then :
6467 ac_cv_func_stat_empty_string_bug=no
6468else
6469 ac_cv_func_stat_empty_string_bug=yes
a946372e 6470fi
f11781c5
AK
6471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6472 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6473fi
6474
8c4e8a18 6475fi
f11781c5
AK
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6477$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6478if test $ac_cv_func_stat_empty_string_bug = yes; then
6479 case " $LIBOBJS " in
6480 *" stat.$ac_objext "* ) ;;
6481 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6482 ;;
6483esac
8c4e8a18
FDN
6484
6485
6486cat >>confdefs.h <<_ACEOF
f11781c5 6487#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6488_ACEOF
6489
6490fi
6491
f11781c5
AK
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6493$as_echo_n "checking for working strtod... " >&6; }
6494if test "${ac_cv_func_strtod+set}" = set; then :
6495 $as_echo_n "(cached) " >&6
66fd4529 6496else
f11781c5
AK
6497 if test "$cross_compiling" = yes; then :
6498 ac_cv_func_strtod=no
6499else
6500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6501/* end confdefs.h. */
66fd4529 6502
f11781c5
AK
6503$ac_includes_default
6504#ifndef strtod
6505double strtod ();
6506#endif
6507int
6508main()
6509{
6510 {
6511 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6512 char *string = " +69";
6513 char *term;
6514 double value;
6515 value = strtod (string, &term);
6516 if (value != 69 || term != (string + 4))
6517 return 1;
6518 }
66fd4529 6519
f11781c5
AK
6520 {
6521 /* Under Solaris 2.4, strtod returns the wrong value for the
6522 terminating character under some conditions. */
6523 char *string = "NaN";
6524 char *term;
6525 strtod (string, &term);
6526 if (term != string && *(term - 1) == 0)
6527 return 1;
6528 }
6529 return 0;
6530}
66fd4529 6531
f11781c5
AK
6532_ACEOF
6533if ac_fn_c_try_run "$LINENO"; then :
6534 ac_cv_func_strtod=yes
66fd4529 6535else
f11781c5
AK
6536 ac_cv_func_strtod=no
6537fi
6538rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6539 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6540fi
6541
f11781c5
AK
6542fi
6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6544$as_echo "$ac_cv_func_strtod" >&6; }
6545if test $ac_cv_func_strtod = no; then
6546 case " $LIBOBJS " in
6547 *" strtod.$ac_objext "* ) ;;
6548 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6549 ;;
6550esac
71082be4 6551
f11781c5
AK
6552ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6553if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6554
66fd4529 6555fi
a946372e 6556
f11781c5
AK
6557if test $ac_cv_func_pow = no; then
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6559$as_echo_n "checking for pow in -lm... " >&6; }
6560if test "${ac_cv_lib_m_pow+set}" = set; then :
6561 $as_echo_n "(cached) " >&6
6562else
6563 ac_check_lib_save_LIBS=$LIBS
6564LIBS="-lm $LIBS"
6565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h. */
90c80887 6567
f11781c5
AK
6568/* Override any GCC internal prototype to avoid an error.
6569 Use char because int might match the return type of a GCC
6570 builtin and then its argument prototype would still apply. */
6571#ifdef __cplusplus
6572extern "C"
6573#endif
6574char pow ();
6575int
6576main ()
6577{
6578return pow ();
6579 ;
6580 return 0;
6581}
6582_ACEOF
6583if ac_fn_c_try_link "$LINENO"; then :
6584 ac_cv_lib_m_pow=yes
90c80887 6585else
f11781c5 6586 ac_cv_lib_m_pow=no
90c80887 6587fi
f11781c5
AK
6588rm -f core conftest.err conftest.$ac_objext \
6589 conftest$ac_exeext conftest.$ac_ext
6590LIBS=$ac_check_lib_save_LIBS
90c80887 6591fi
f11781c5
AK
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6593$as_echo "$ac_cv_lib_m_pow" >&6; }
6594if test "x$ac_cv_lib_m_pow" = x""yes; then :
6595 POW_LIB=-lm
90c80887 6596else
f11781c5
AK
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6598$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6599fi
f11781c5 6600
90c80887
AK
6601fi
6602
f11781c5
AK
6603fi
6604
6605for ac_func in vprintf
6606do :
6607 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6608if test "x$ac_cv_func_vprintf" = x""yes; then :
6609 cat >>confdefs.h <<_ACEOF
6610#define HAVE_VPRINTF 1
6611_ACEOF
90c80887 6612
f11781c5
AK
6613ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6614if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6615
f11781c5 6616$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6617
90c80887 6618fi
90c80887 6619
f11781c5
AK
6620fi
6621done
90c80887 6622
90c80887 6623
90c80887 6624
f11781c5
AK
6625################################################################################
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6627$as_echo_n "checking whether to use static linking... " >&6; }
6628# Check whether --enable-static_link was given.
6629if test "${enable_static_link+set}" = set; then :
6630 enableval=$enable_static_link; STATIC_LINK=$enableval
6631else
6632 STATIC_LINK=no
6633fi
90c80887 6634
f11781c5
AK
6635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6636$as_echo "$STATIC_LINK" >&6; }
90c80887 6637
f11781c5 6638################################################################################
90c80887 6639
90c80887 6640
f11781c5
AK
6641################################################################################
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6643$as_echo_n "checking file owner... " >&6; }
90c80887 6644
f11781c5
AK
6645# Check whether --with-user was given.
6646if test "${with_user+set}" = set; then :
6647 withval=$with_user; OWNER=$withval
6648fi
90c80887 6649
f11781c5
AK
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6651$as_echo "$OWNER" >&6; }
90c80887 6652
f11781c5
AK
6653if test x$OWNER != x; then
6654 INSTALL="$INSTALL -o $OWNER"
90c80887 6655fi
a946372e 6656
f11781c5
AK
6657################################################################################
6658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6659$as_echo_n "checking group owner... " >&6; }
a946372e 6660
f11781c5
AK
6661# Check whether --with-group was given.
6662if test "${with_group+set}" = set; then :
6663 withval=$with_group; GROUP=$withval
a946372e 6664fi
f11781c5
AK
6665
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6667$as_echo "$GROUP" >&6; }
6668
6669if test x$GROUP != x; then
6670 INSTALL="$INSTALL -g $GROUP"
a946372e 6671fi
f11781c5
AK
6672
6673################################################################################
6674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6675$as_echo_n "checking device node uid... " >&6; }
6676
6677
6678# Check whether --with-device-uid was given.
6679if test "${with_device_uid+set}" = set; then :
6680 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6681else
f11781c5 6682 DM_DEVICE_UID=0
a946372e
AK
6683fi
6684
f11781c5
AK
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6686$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6687
f11781c5
AK
6688################################################################################
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6690$as_echo_n "checking device node gid... " >&6; }
a946372e 6691
a946372e 6692
f11781c5
AK
6693# Check whether --with-device-gid was given.
6694if test "${with_device_gid+set}" = set; then :
6695 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6696else
f11781c5 6697 DM_DEVICE_GID=0
a946372e 6698fi
a946372e 6699
f11781c5
AK
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6701$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6702
f11781c5
AK
6703################################################################################
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6705$as_echo_n "checking device node mode... " >&6; }
90c80887 6706
90c80887 6707
f11781c5
AK
6708# Check whether --with-device-mode was given.
6709if test "${with_device_mode+set}" = set; then :
6710 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6711else
6712 DM_DEVICE_MODE=0600
6713fi
90c80887 6714
f11781c5
AK
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6716$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6717
d0df875d
ZK
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6719$as_echo_n "checking when to create device nodes... " >&6; }
6720
6721# Check whether --with-device-nodes-on was given.
6722if test "${with_device_nodes_on+set}" = set; then :
6723 withval=$with_device_nodes_on; ADD_NODE=$withval
6724else
6725 ADD_NODE=resume
6726fi
6727
6728case "$ADD_NODE" in
6729 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6730 create) add_on=DM_ADD_NODE_ON_CREATE;;
6731 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6732esac
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6734$as_echo "on $ADD_NODE" >&6; }
6735
6736cat >>confdefs.h <<_ACEOF
6737#define DEFAULT_DM_ADD_NODE $add_on
6738_ACEOF
6739
6740
f11781c5
AK
6741################################################################################
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6743$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6744# Check whether --enable-lvm1_fallback was given.
6745if test "${enable_lvm1_fallback+set}" = set; then :
6746 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6747else
6748 LVM1_FALLBACK=no
6749fi
90c80887 6750
f11781c5
AK
6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6752$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6753
f11781c5 6754if test x$LVM1_FALLBACK = xyes; then
90c80887 6755
f11781c5 6756$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6757
f11781c5 6758fi
90c80887 6759
f11781c5
AK
6760################################################################################
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6762$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6763
6764# Check whether --with-lvm1 was given.
6765if test "${with_lvm1+set}" = set; then :
6766 withval=$with_lvm1; LVM1=$withval
a946372e 6767else
f11781c5 6768 LVM1=internal
a946372e 6769fi
f11781c5
AK
6770
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6772$as_echo "$LVM1" >&6; }
6773
6774if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6775 then as_fn_error $? "--with-lvm1 parameter invalid
6776" "$LINENO" 5
6777fi;
6778
6779if test x$LVM1 = xinternal; then
6780
6781$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6782
a946372e
AK
6783fi
6784
6785################################################################################
f11781c5
AK
6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6787$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6788
6789# Check whether --with-pool was given.
6790if test "${with_pool+set}" = set; then :
6791 withval=$with_pool; POOL=$withval
a946372e 6792else
f11781c5 6793 POOL=internal
a946372e
AK
6794fi
6795
f11781c5
AK
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6797$as_echo "$POOL" >&6; }
6798
6799if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6800 then as_fn_error $? "--with-pool parameter invalid
6801" "$LINENO" 5
6802fi;
6803
6804if test x$POOL = xinternal; then
6805
6806$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6807
a946372e
AK
6808fi
6809
6810################################################################################
f11781c5
AK
6811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6812$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6813
f11781c5
AK
6814# Check whether --with-cluster was given.
6815if test "${with_cluster+set}" = set; then :
6816 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6817fi
6818
f11781c5
AK
6819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6820$as_echo "$CLUSTER" >&6; }
a946372e 6821
f11781c5
AK
6822if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6823 then as_fn_error $? "--with-cluster parameter invalid
6824" "$LINENO" 5
6825fi;
fddafd51 6826
f11781c5 6827if test x$CLUSTER = xinternal; then
5556819a 6828
f11781c5 6829$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6830
fddafd51 6831fi
f11781c5
AK
6832
6833################################################################################
6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6835$as_echo_n "checking whether to include snapshots... " >&6; }
6836
6837# Check whether --with-snapshots was given.
6838if test "${with_snapshots+set}" = set; then :
6839 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6840else
f11781c5 6841 SNAPSHOTS=internal
fddafd51
ZK
6842fi
6843
f11781c5
AK
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6845$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6846
f11781c5
AK
6847if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6848 then as_fn_error $? "--with-snapshots parameter invalid
6849" "$LINENO" 5
6850fi;
fddafd51 6851
f11781c5
AK
6852if test x$SNAPSHOTS = xinternal; then
6853
6854$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6855
6856fi
6857
6858################################################################################
6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6860$as_echo_n "checking whether to include mirrors... " >&6; }
6861
6862# Check whether --with-mirrors was given.
6863if test "${with_mirrors+set}" = set; then :
6864 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6865else
f11781c5 6866 MIRRORS=internal
fddafd51
ZK
6867fi
6868
f11781c5
AK
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6870$as_echo "$MIRRORS" >&6; }
fddafd51 6871
f11781c5
AK
6872if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6873 then as_fn_error $? "--with-mirrors parameter invalid
6874" "$LINENO" 5
6875fi;
6876
6877if test x$MIRRORS = xinternal; then
6878
6879$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6880
6881fi
6882
cac52ca4
JEB
6883################################################################################
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6885$as_echo_n "checking whether to include raid... " >&6; }
6886
6887# Check whether --with-raid was given.
6888if test "${with_raid+set}" = set; then :
6889 withval=$with_raid; RAID=$withval
6890else
6891 RAID=internal
6892fi
6893
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6895$as_echo "$RAID" >&6; }
6896
6897if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6898 then as_fn_error $? "--with-raid parameter invalid
6899" "$LINENO" 5
6900fi;
6901
6902if test x$RAID = xinternal; then
6903
6904$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6905
6906fi
6907
f11781c5
AK
6908################################################################################
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6910$as_echo_n "checking whether to include replicators... " >&6; }
6911
6912# Check whether --with-replicators was given.
6913if test "${with_replicators+set}" = set; then :
6914 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6915else
f11781c5
AK
6916 REPLICATORS=none
6917fi
fd4728e1 6918
f11781c5
AK
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6920$as_echo "$REPLICATORS" >&6; }
6921
6922case "$REPLICATORS" in
6923 none|shared) ;;
6924 internal)
6925$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6926 ;;
6927 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6928esac
f11781c5 6929
3ba4a195
ZK
6930################################################################################
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6932$as_echo_n "checking whether to include thin provisioning... " >&6; }
6933
6934# Check whether --with-thin was given.
6935if test "${with_thin+set}" = set; then :
6936 withval=$with_thin; THIN=$withval
6937else
6938 THIN=none
6939fi
6940
6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6942$as_echo "$THIN" >&6; }
6943
6944case "$THIN" in
6945 none|shared) ;;
6946 internal)
6947$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6948 ;;
6949 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6950esac
6951
f11781c5
AK
6952################################################################################
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6954$as_echo_n "checking whether to enable readline... " >&6; }
6955# Check whether --enable-readline was given.
6956if test "${enable_readline+set}" = set; then :
6957 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6958else
f11781c5 6959 READLINE=maybe
fd4728e1
ZK
6960fi
6961
f11781c5
AK
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6963$as_echo "$READLINE" >&6; }
fd4728e1 6964
f11781c5
AK
6965################################################################################
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6967$as_echo_n "checking whether to enable realtime support... " >&6; }
6968# Check whether --enable-realtime was given.
6969if test "${enable_realtime+set}" = set; then :
6970 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6971fi
d0191583 6972
f11781c5
AK
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6974$as_echo "$REALTIME" >&6; }
6975
54b362f9 6976################################################################################
f11781c5
AK
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6978$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6979# Check whether --enable-ocf was given.
6980if test "${enable_ocf+set}" = set; then :
6981 enableval=$enable_ocf; OCF=$enableval
54b362f9 6982else
f11781c5 6983 OCF=no
54b362f9
AK
6984fi
6985
f11781c5
AK
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6987$as_echo "$OCF" >&6; }
54b362f9 6988
606d0858
AK
6989# Check whether --with-ocfdir was given.
6990if test "${with_ocfdir+set}" = set; then :
6991 withval=$with_ocfdir; OCFDIR=$withval
6992else
6993 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6994fi
6995
6996
f11781c5
AK
6997################################################################################
6998pkg_config_init() {
6999
7000
7001
7002
7003
7004
7005if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7008set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7010$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7011if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7012 $as_echo_n "(cached) " >&6
7013else
f11781c5 7014 case $PKG_CONFIG in
54b362f9 7015 [\\/]* | ?:[\\/]*)
f11781c5 7016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7017 ;;
7018 *)
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
f11781c5 7024 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7028 break 2
7029 fi
7030done
f11781c5 7031 done
54b362f9
AK
7032IFS=$as_save_IFS
7033
7034 ;;
7035esac
7036fi
f11781c5
AK
7037PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7038if test -n "$PKG_CONFIG"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7040$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7041else
f11781c5 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7043$as_echo "no" >&6; }
7044fi
7045
7046
f11781c5
AK
7047fi
7048if test -z "$ac_cv_path_PKG_CONFIG"; then
7049 ac_pt_PKG_CONFIG=$PKG_CONFIG
7050 # Extract the first word of "pkg-config", so it can be a program name with args.
7051set dummy pkg-config; ac_word=$2
7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7053$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7054if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7055 $as_echo_n "(cached) " >&6
7056else
f11781c5 7057 case $ac_pt_PKG_CONFIG in
54b362f9 7058 [\\/]* | ?:[\\/]*)
f11781c5 7059 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7060 ;;
7061 *)
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063for as_dir in $PATH
7064do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
f11781c5 7067 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7069 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7071 break 2
7072 fi
7073done
f11781c5 7074 done
54b362f9
AK
7075IFS=$as_save_IFS
7076
7077 ;;
7078esac
7079fi
f11781c5
AK
7080ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7081if test -n "$ac_pt_PKG_CONFIG"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7083$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7084else
f11781c5 7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7086$as_echo "no" >&6; }
7087fi
7088
f11781c5
AK
7089 if test "x$ac_pt_PKG_CONFIG" = x; then
7090 PKG_CONFIG=""
7091 else
7092 case $cross_compiling:$ac_tool_warned in
7093yes:)
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7096ac_tool_warned=yes ;;
7097esac
7098 PKG_CONFIG=$ac_pt_PKG_CONFIG
7099 fi
d1e8046f 7100else
f11781c5 7101 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7102fi
7103
f11781c5
AK
7104fi
7105if test -n "$PKG_CONFIG"; then
7106 _pkg_min_version=0.9.0
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7108$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7109 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7111$as_echo "yes" >&6; }
7112 else
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114$as_echo "no" >&6; }
7115 PKG_CONFIG=""
7116 fi
7117fi
d1e8046f 7118
f11781c5
AK
7119pkg_failed=no
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7121$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7122
f11781c5
AK
7123if test -n "$PKGCONFIGINIT_CFLAGS"; then
7124 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7125 elif test -n "$PKG_CONFIG"; then
7126 if test -n "$PKG_CONFIG" && \
7127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7128 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7129 ac_status=$?
7130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7131 test $ac_status = 0; }; then
7132 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7133else
f11781c5
AK
7134 pkg_failed=yes
7135fi
7136 else
7137 pkg_failed=untried
7138fi
7139if test -n "$PKGCONFIGINIT_LIBS"; then
7140 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7141 elif test -n "$PKG_CONFIG"; then
7142 if test -n "$PKG_CONFIG" && \
7143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7144 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7145 ac_status=$?
f11781c5
AK
7146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147 test $ac_status = 0; }; then
7148 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7149else
f11781c5
AK
7150 pkg_failed=yes
7151fi
7152 else
7153 pkg_failed=untried
d1e8046f
AK
7154fi
7155
d1e8046f 7156
f11781c5
AK
7157
7158if test $pkg_failed = yes; then
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160$as_echo "no" >&6; }
7161
7162if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7163 _pkg_short_errors_supported=yes
7164else
7165 _pkg_short_errors_supported=no
7166fi
7167 if test $_pkg_short_errors_supported = yes; then
7168 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7169 else
7170 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7171 fi
7172 # Put the nasty error message in config.log where it belongs
7173 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7174
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7176$as_echo "pkg-config initialized" >&6; }
7177elif test $pkg_failed = untried; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179$as_echo "no" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7181$as_echo "pkg-config initialized" >&6; }
d1e8046f 7182else
f11781c5
AK
7183 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7184 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7186$as_echo "yes" >&6; }
d1e8046f 7187
d1e8046f 7188fi
f11781c5
AK
7189 PKGCONFIG_INIT=1
7190}
d1e8046f 7191
f11781c5
AK
7192################################################################################
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7194$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7195
f11781c5
AK
7196# Check whether --with-clvmd was given.
7197if test "${with_clvmd+set}" = set; then :
7198 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7199else
f11781c5 7200 CLVMD=none
d1e8046f 7201fi
d1e8046f 7202
f11781c5
AK
7203if test x$CLVMD = xyes; then
7204 CLVMD=all
d1e8046f 7205fi
f11781c5
AK
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7207$as_echo "$CLVMD" >&6; }
d1e8046f 7208
f11781c5
AK
7209if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7210 CLUSTER=internal
d1e8046f
AK
7211fi
7212
f11781c5
AK
7213if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7214 pkg_config_init
7215fi
d1e8046f 7216
f11781c5
AK
7217CLVMD_CMANAGERS=""
7218CLVMD_NEEDS_QDISKD=no
d1e8046f 7219
f11781c5 7220if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7221 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7222fi
f11781c5
AK
7223if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7224 BUILDCMAN=yes
7225 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7226 CLVMD_NEEDS_QDISKD=yes
7227fi
7228if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7229 BUILDCOROSYNC=yes
7230 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7231fi
7232if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7233 BUILDOPENAIS=yes
7234 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7235fi
7236if test x$CLVMD_NEEDS_QDISKD != xno; then
7237 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7238fi
7239
f11781c5
AK
7240soft_bailout() {
7241 NOTFOUND=1
7242}
ad6254c5 7243
f11781c5
AK
7244hard_bailout() {
7245 as_fn_error $? "bailing out" "$LINENO" 5
7246}
ad6254c5 7247
f11781c5
AK
7248if test x$CLVMD = xall; then
7249 bailout=soft_bailout
f11781c5
AK
7250 BUILDCMAN=yes
7251 BUILDCOROSYNC=yes
7252 BUILDOPENAIS=yes
a5f46f6a 7253else
f11781c5 7254 bailout=hard_bailout
a5f46f6a
AK
7255fi
7256
f11781c5
AK
7257check_lib_no_libs() {
7258 lib_no_libs_arg1=$1
7259 shift
7260 lib_no_libs_arg2=$1
7261 shift
7262 lib_no_libs_args=$@
7263 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7265$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7266if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7267 $as_echo_n "(cached) " >&6
7268else
7269 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7270LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7271cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7272/* end confdefs.h. */
7273
7274/* Override any GCC internal prototype to avoid an error.
7275 Use char because int might match the return type of a GCC
7276 builtin and then its argument prototype would still apply. */
7277#ifdef __cplusplus
7278extern "C"
7279#endif
f11781c5 7280char $lib_no_libs_arg2 ();
90c80887
AK
7281int
7282main ()
7283{
f11781c5 7284return $lib_no_libs_arg2 ();
90c80887
AK
7285 ;
7286 return 0;
7287}
7288_ACEOF
f11781c5
AK
7289if ac_fn_c_try_link "$LINENO"; then :
7290 eval "$as_ac_Lib=yes"
90c80887 7291else
f11781c5 7292 eval "$as_ac_Lib=no"
90c80887 7293fi
f11781c5
AK
7294rm -f core conftest.err conftest.$ac_objext \
7295 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7296LIBS=$ac_check_lib_save_LIBS
7297fi
f11781c5
AK
7298eval ac_res=\$$as_ac_Lib
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7300$as_echo "$ac_res" >&6; }
7301if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7302 cat >>confdefs.h <<_ACEOF
7303#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7304_ACEOF
7305
7306 LIBS="-l$lib_no_libs_arg1 $LIBS"
7307
90c80887 7308else
f11781c5 7309 $bailout
90c80887
AK
7310fi
7311
f11781c5
AK
7312 LIBS=$ac_check_lib_save_LIBS
7313}
90c80887 7314
f11781c5 7315if test x$BUILDCMAN = xyes; then
ad6254c5 7316
f11781c5
AK
7317pkg_failed=no
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7319$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7320
f11781c5
AK
7321if test -n "$CMAN_CFLAGS"; then
7322 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7323 elif test -n "$PKG_CONFIG"; then
7324 if test -n "$PKG_CONFIG" && \
7325 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7326 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7327 ac_status=$?
7328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7329 test $ac_status = 0; }; then
7330 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7331else
7332 pkg_failed=yes
ad6254c5 7333fi
f11781c5
AK
7334 else
7335 pkg_failed=untried
ad6254c5 7336fi
f11781c5
AK
7337if test -n "$CMAN_LIBS"; then
7338 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7339 elif test -n "$PKG_CONFIG"; then
7340 if test -n "$PKG_CONFIG" && \
7341 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7342 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7343 ac_status=$?
f11781c5
AK
7344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7345 test $ac_status = 0; }; then
7346 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7347else
f11781c5
AK
7348 pkg_failed=yes
7349fi
7350 else
7351 pkg_failed=untried
93bd259b
AK
7352fi
7353
f11781c5
AK
7354
7355
7356if test $pkg_failed = yes; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
7359
7360if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7361 _pkg_short_errors_supported=yes
7362else
7363 _pkg_short_errors_supported=no
93bd259b 7364fi
f11781c5
AK
7365 if test $_pkg_short_errors_supported = yes; then
7366 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7367 else
7368 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7369 fi
7370 # Put the nasty error message in config.log where it belongs
7371 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7372
f11781c5
AK
7373 NOTFOUND=0
7374 for ac_header in libcman.h
7375do :
7376 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7377if test "x$ac_cv_header_libcman_h" = x""yes; then :
7378 cat >>confdefs.h <<_ACEOF
7379#define HAVE_LIBCMAN_H 1
93bd259b
AK
7380_ACEOF
7381
f11781c5
AK
7382else
7383 $bailout
93bd259b
AK
7384fi
7385
f11781c5 7386done
93bd259b 7387
f11781c5
AK
7388 check_lib_no_libs cman cman_init
7389 if test $NOTFOUND = 0; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7391$as_echo "no pkg for libcman, using -lcman" >&6; }
7392 CMAN_LIBS="-lcman"
7393 HAVE_CMAN=yes
7394 fi
7395elif test $pkg_failed = untried; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397$as_echo "no" >&6; }
7398 NOTFOUND=0
7399 for ac_header in libcman.h
7400do :
7401 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7402if test "x$ac_cv_header_libcman_h" = x""yes; then :
7403 cat >>confdefs.h <<_ACEOF
7404#define HAVE_LIBCMAN_H 1
93bd259b 7405_ACEOF
93bd259b 7406
93bd259b 7407else
f11781c5 7408 $bailout
93bd259b
AK
7409fi
7410
f11781c5
AK
7411done
7412
7413 check_lib_no_libs cman cman_init
7414 if test $NOTFOUND = 0; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7416$as_echo "no pkg for libcman, using -lcman" >&6; }
7417 CMAN_LIBS="-lcman"
7418 HAVE_CMAN=yes
7419 fi
7420else
7421 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7422 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7424$as_echo "yes" >&6; }
7425 HAVE_CMAN=yes
93bd259b 7426fi
f11781c5
AK
7427 CHECKCONFDB=yes
7428 CHECKDLM=yes
93bd259b
AK
7429fi
7430
f11781c5
AK
7431if test x$BUILDCOROSYNC = xyes || \
7432 test x$BUILDOPENAIS = xyes; then
93bd259b 7433
f11781c5
AK
7434pkg_failed=no
7435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7436$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7437
f11781c5
AK
7438if test -n "$COROSYNC_CFLAGS"; then
7439 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7440 elif test -n "$PKG_CONFIG"; then
7441 if test -n "$PKG_CONFIG" && \
7442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7443 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7444 ac_status=$?
7445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7446 test $ac_status = 0; }; then
7447 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7448else
f11781c5
AK
7449 pkg_failed=yes
7450fi
7451 else
7452 pkg_failed=untried
7453fi
7454if test -n "$COROSYNC_LIBS"; then
7455 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7456 elif test -n "$PKG_CONFIG"; then
7457 if test -n "$PKG_CONFIG" && \
7458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7459 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7460 ac_status=$?
f11781c5
AK
7461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7462 test $ac_status = 0; }; then
7463 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7464else
f11781c5 7465 pkg_failed=yes
ad6254c5 7466fi
f11781c5
AK
7467 else
7468 pkg_failed=untried
ad6254c5 7469fi
ad6254c5 7470
72b2cb61 7471
72b2cb61 7472
f11781c5
AK
7473if test $pkg_failed = yes; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
19a2c6e0 7476
f11781c5
AK
7477if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7478 _pkg_short_errors_supported=yes
7479else
7480 _pkg_short_errors_supported=no
ad6254c5 7481fi
f11781c5
AK
7482 if test $_pkg_short_errors_supported = yes; then
7483 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7484 else
7485 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7486 fi
7487 # Put the nasty error message in config.log where it belongs
7488 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7489
f11781c5
AK
7490 $bailout
7491elif test $pkg_failed = untried; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493$as_echo "no" >&6; }
7494 $bailout
7495else
7496 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7497 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7499$as_echo "yes" >&6; }
7500 HAVE_COROSYNC=yes
7501fi
7502 CHECKCONFDB=yes
ad6254c5
AK
7503fi
7504
f11781c5 7505if test x$BUILDCOROSYNC = xyes; then
f30875db 7506
f11781c5
AK
7507pkg_failed=no
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7509$as_echo_n "checking for QUORUM... " >&6; }
7510
7511if test -n "$QUORUM_CFLAGS"; then
7512 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7513 elif test -n "$PKG_CONFIG"; then
7514 if test -n "$PKG_CONFIG" && \
7515 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7516 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7517 ac_status=$?
f11781c5
AK
7518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7519 test $ac_status = 0; }; then
7520 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7521else
f11781c5 7522 pkg_failed=yes
f30875db 7523fi
f11781c5
AK
7524 else
7525 pkg_failed=untried
f30875db 7526fi
f11781c5
AK
7527if test -n "$QUORUM_LIBS"; then
7528 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7529 elif test -n "$PKG_CONFIG"; then
7530 if test -n "$PKG_CONFIG" && \
7531 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7532 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7533 ac_status=$?
7534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535 test $ac_status = 0; }; then
7536 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7537else
f11781c5 7538 pkg_failed=yes
f30875db 7539fi
f11781c5
AK
7540 else
7541 pkg_failed=untried
7542fi
7543
f30875db 7544
f11781c5
AK
7545
7546if test $pkg_failed = yes; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548$as_echo "no" >&6; }
7549
7550if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7551 _pkg_short_errors_supported=yes
7552else
7553 _pkg_short_errors_supported=no
f30875db 7554fi
f11781c5
AK
7555 if test $_pkg_short_errors_supported = yes; then
7556 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7557 else
7558 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7559 fi
7560 # Put the nasty error message in config.log where it belongs
7561 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7562
f11781c5
AK
7563 $bailout
7564elif test $pkg_failed = untried; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567 $bailout
7568else
7569 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7570 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7572$as_echo "yes" >&6; }
7573 HAVE_QUORUM=yes
7574fi
7575 CHECKCPG=yes
7576 CHECKDLM=yes
d0191583
JM
7577fi
7578
f11781c5 7579if test x$BUILDOPENAIS = xyes; then
d0191583 7580
f11781c5
AK
7581pkg_failed=no
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7583$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7584
f11781c5
AK
7585if test -n "$SALCK_CFLAGS"; then
7586 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7587 elif test -n "$PKG_CONFIG"; then
7588 if test -n "$PKG_CONFIG" && \
7589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7590 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7591 ac_status=$?
7592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7593 test $ac_status = 0; }; then
7594 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7595else
7596 pkg_failed=yes
7597fi
7598 else
7599 pkg_failed=untried
7600fi
7601if test -n "$SALCK_LIBS"; then
7602 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7603 elif test -n "$PKG_CONFIG"; then
7604 if test -n "$PKG_CONFIG" && \
7605 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7606 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7607 ac_status=$?
f11781c5
AK
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; }; then
7610 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7611else
f11781c5 7612 pkg_failed=yes
8a2fc586 7613fi
f11781c5
AK
7614 else
7615 pkg_failed=untried
8a2fc586 7616fi
d0191583 7617
d0191583 7618
f8f6ec92 7619
f11781c5
AK
7620if test $pkg_failed = yes; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
8a2fc586 7623
f11781c5
AK
7624if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7625 _pkg_short_errors_supported=yes
ad6254c5 7626else
f11781c5
AK
7627 _pkg_short_errors_supported=no
7628fi
7629 if test $_pkg_short_errors_supported = yes; then
7630 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7631 else
7632 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7633 fi
7634 # Put the nasty error message in config.log where it belongs
7635 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7636
f11781c5
AK
7637 $bailout
7638elif test $pkg_failed = untried; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7640$as_echo "no" >&6; }
7641 $bailout
ad6254c5 7642else
f11781c5
AK
7643 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7644 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646$as_echo "yes" >&6; }
7647 HAVE_SALCK=yes
ad6254c5 7648fi
f11781c5 7649 CHECKCPG=yes
ad6254c5 7650fi
ad6254c5 7651
72b2cb61 7652
f8f6ec92 7653
f11781c5 7654if test x$CHECKCONFDB = xyes; then
f8f6ec92 7655
f11781c5
AK
7656pkg_failed=no
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7658$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7659
f11781c5
AK
7660if test -n "$CONFDB_CFLAGS"; then
7661 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7662 elif test -n "$PKG_CONFIG"; then
7663 if test -n "$PKG_CONFIG" && \
7664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7665 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7666 ac_status=$?
f11781c5
AK
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7670else
f11781c5
AK
7671 pkg_failed=yes
7672fi
7673 else
7674 pkg_failed=untried
7675fi
7676if test -n "$CONFDB_LIBS"; then
7677 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7678 elif test -n "$PKG_CONFIG"; then
7679 if test -n "$PKG_CONFIG" && \
7680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7681 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7682 ac_status=$?
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; then
7685 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7686else
7687 pkg_failed=yes
7688fi
7689 else
7690 pkg_failed=untried
f8f6ec92
ZK
7691fi
7692
f8f6ec92 7693
66e941e8 7694
f11781c5
AK
7695if test $pkg_failed = yes; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
7698
7699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7700 _pkg_short_errors_supported=yes
f8f6ec92 7701else
f11781c5 7702 _pkg_short_errors_supported=no
66e941e8 7703fi
f11781c5
AK
7704 if test $_pkg_short_errors_supported = yes; then
7705 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7706 else
7707 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7708 fi
7709 # Put the nasty error message in config.log where it belongs
7710 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7711
f11781c5
AK
7712 HAVE_CONFDB=no
7713elif test $pkg_failed = untried; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715$as_echo "no" >&6; }
7716 HAVE_CONFDB=no
7717else
7718 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7719 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7721$as_echo "yes" >&6; }
7722 HAVE_CONFDB=yes
66e941e8 7723fi
f11781c5
AK
7724
7725 for ac_header in corosync/confdb.h
7726do :
7727 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7728if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7729 cat >>confdefs.h <<_ACEOF
f11781c5 7730#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7731_ACEOF
f11781c5 7732 HAVE_CONFDB_H=yes
66e941e8 7733else
f11781c5 7734 HAVE_CONFDB_H=no
66e941e8 7735fi
dd1f2c09
MB
7736
7737done
7738
7739
f11781c5
AK
7740 if test x$HAVE_CONFDB != xyes && \
7741 test x$HAVE_CONFDB_H = xyes; then
7742 check_lib_no_libs confdb confdb_initialize
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7744$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7745 CONFDB_LIBS="-lconfdb"
7746 HAVE_CONFDB=yes
7747 fi
7748
7749 if test x$BUILDCOROSYNC = xyes && \
7750 test x$HAVE_CONFDB != xyes &&
7751 test x$CLVMD != xall; then
7752 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7753 fi
dd1f2c09 7754fi
f11781c5
AK
7755
7756if test x$CHECKCPG = xyes; then
7757
7758pkg_failed=no
7759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7760$as_echo_n "checking for CPG... " >&6; }
7761
7762if test -n "$CPG_CFLAGS"; then
7763 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7764 elif test -n "$PKG_CONFIG"; then
7765 if test -n "$PKG_CONFIG" && \
7766 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7767 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7768 ac_status=$?
7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7770 test $ac_status = 0; }; then
7771 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7772else
f11781c5
AK
7773 pkg_failed=yes
7774fi
7775 else
7776 pkg_failed=untried
7777fi
7778if test -n "$CPG_LIBS"; then
7779 pkg_cv_CPG_LIBS="$CPG_LIBS"
7780 elif test -n "$PKG_CONFIG"; then
7781 if test -n "$PKG_CONFIG" && \
7782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7783 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7784 ac_status=$?
f11781c5
AK
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7788else
f11781c5
AK
7789 pkg_failed=yes
7790fi
7791 else
7792 pkg_failed=untried
7793fi
7794
7795
7796
7797if test $pkg_failed = yes; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799$as_echo "no" >&6; }
7800
7801if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7802 _pkg_short_errors_supported=yes
7803else
7804 _pkg_short_errors_supported=no
7805fi
7806 if test $_pkg_short_errors_supported = yes; then
7807 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7808 else
7809 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7810 fi
7811 # Put the nasty error message in config.log where it belongs
7812 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7813
f11781c5
AK
7814 $bailout
7815elif test $pkg_failed = untried; then
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817$as_echo "no" >&6; }
7818 $bailout
7819else
7820 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7821 CPG_LIBS=$pkg_cv_CPG_LIBS
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7823$as_echo "yes" >&6; }
7824 HAVE_CPG=yes
7825fi
dd1f2c09
MB
7826fi
7827
f11781c5 7828if test x$CHECKDLM = xyes; then
dd1f2c09 7829
f11781c5
AK
7830pkg_failed=no
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7832$as_echo_n "checking for DLM... " >&6; }
7833
7834if test -n "$DLM_CFLAGS"; then
7835 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7836 elif test -n "$PKG_CONFIG"; then
7837 if test -n "$PKG_CONFIG" && \
7838 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7839 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7840 ac_status=$?
f11781c5
AK
7841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7842 test $ac_status = 0; }; then
7843 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7844else
f11781c5
AK
7845 pkg_failed=yes
7846fi
7847 else
7848 pkg_failed=untried
7849fi
7850if test -n "$DLM_LIBS"; then
7851 pkg_cv_DLM_LIBS="$DLM_LIBS"
7852 elif test -n "$PKG_CONFIG"; then
7853 if test -n "$PKG_CONFIG" && \
7854 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7855 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7856 ac_status=$?
7857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7858 test $ac_status = 0; }; then
7859 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7860else
7861 pkg_failed=yes
7862fi
7863 else
7864 pkg_failed=untried
dd1f2c09
MB
7865fi
7866
dd1f2c09 7867
dd1f2c09 7868
f11781c5
AK
7869if test $pkg_failed = yes; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
7872
7873if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7874 _pkg_short_errors_supported=yes
dd1f2c09 7875else
f11781c5 7876 _pkg_short_errors_supported=no
dd1f2c09 7877fi
f11781c5
AK
7878 if test $_pkg_short_errors_supported = yes; then
7879 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7880 else
7881 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7882 fi
7883 # Put the nasty error message in config.log where it belongs
7884 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 7885
f11781c5
AK
7886 NOTFOUND=0
7887 for ac_header in libdlm.h
7888do :
7889 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7890if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 7891 cat >>confdefs.h <<_ACEOF
f11781c5 7892#define HAVE_LIBDLM_H 1
dd1f2c09
MB
7893_ACEOF
7894
f11781c5
AK
7895else
7896 $bailout
dd1f2c09 7897fi
f8f6ec92
ZK
7898
7899done
7900
f11781c5
AK
7901 check_lib_no_libs dlm dlm_lock -lpthread
7902 if test $NOTFOUND = 0; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7904$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7905 DLM_LIBS="-ldlm -lpthread"
7906 HAVE_DLM=yes
7907 fi
7908elif test $pkg_failed = untried; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910$as_echo "no" >&6; }
7911 NOTFOUND=0
7912 for ac_header in libdlm.h
7913do :
7914 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7915if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7916 cat >>confdefs.h <<_ACEOF
7917#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
7918_ACEOF
7919
f8f6ec92 7920else
f11781c5 7921 $bailout
ad6254c5
AK
7922fi
7923
f11781c5 7924done
8b1a3214 7925
f11781c5
AK
7926 check_lib_no_libs dlm dlm_lock -lpthread
7927 if test $NOTFOUND = 0; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7929$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7930 DLM_LIBS="-ldlm -lpthread"
7931 HAVE_DLM=yes
7932 fi
8b1a3214 7933else
f11781c5
AK
7934 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7935 DLM_LIBS=$pkg_cv_DLM_LIBS
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7937$as_echo "yes" >&6; }
7938 HAVE_DLM=yes
8b1a3214 7939fi
8b1a3214
AK
7940fi
7941
f11781c5
AK
7942if test x$CLVMD = xall; then
7943 CLVMD=none
7944 CLVMD_CMANAGERS=""
7945 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
7946 if test x$HAVE_CMAN = xyes && \
7947 test x$HAVE_DLM = xyes; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7949$as_echo "Enabling clvmd cman cluster manager" >&6; }
7950 CLVMD="$CLVMD,cman"
7951 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7952 CLVMD_NEEDS_QDISKD=yes
7953 fi
7954 if test x$HAVE_COROSYNC = xyes && \
7955 test x$HAVE_QUORUM = xyes && \
7956 test x$HAVE_CPG = xyes && \
7957 test x$HAVE_DLM = xyes && \
7958 test x$HAVE_CONFDB = xyes; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7960$as_echo "Enabling clvmd corosync cluster manager" >&6; }
7961 CLVMD="$CLVMD,corosync"
7962 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7963 fi
7964 if test x$HAVE_COROSYNC = xyes && \
7965 test x$HAVE_CPG = xyes && \
7966 test x$HAVE_SALCK = xyes; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7968$as_echo "Enabling clvmd openais cluster manager" >&6; }
7969 CLVMD="$CLVMD,openais"
7970 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7971 fi
7972 if test x$CLVMD_NEEDS_QDISKD != xno; then
7973 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7974 fi
7975 if test x$CLVMD = xnone; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7977$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
7978 fi
7979fi
7980
ad6254c5 7981################################################################################
f11781c5 7982if test "x$CLVMD" != xnone; then
ad6254c5 7983
f11781c5
AK
7984# Check whether --with-clvmd-pidfile was given.
7985if test "${with_clvmd_pidfile+set}" = set; then :
7986 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 7987else
f11781c5 7988 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 7989fi
7a197a62 7990
ad6254c5 7991
f11781c5
AK
7992cat >>confdefs.h <<_ACEOF
7993#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 7994_ACEOF
ad6254c5 7995
ad6254c5 7996fi
7a197a62 7997
f11781c5
AK
7998################################################################################
7999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8000$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8001# Check whether --enable-cmirrord was given.
8002if test "${enable_cmirrord+set}" = set; then :
8003 enableval=$enable_cmirrord; CMIRRORD=$enableval
8004else
8005 CMIRRORD=no
8006fi
8007
8008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8009$as_echo "$CMIRRORD" >&6; }
ad6254c5 8010
f11781c5 8011BUILD_CMIRRORD=$CMIRRORD
7a197a62 8012
f11781c5
AK
8013################################################################################
8014if test "x$BUILD_CMIRRORD" = xyes; then
8015
8016# Check whether --with-cmirrord-pidfile was given.
8017if test "${with_cmirrord_pidfile+set}" = set; then :
8018 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8019else
f11781c5 8020 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8021fi
ad6254c5 8022
72b2cb61 8023
f11781c5
AK
8024cat >>confdefs.h <<_ACEOF
8025#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8026_ACEOF
8027
ad6254c5
AK
8028fi
8029
f11781c5
AK
8030################################################################################
8031if [ "x$BUILD_CMIRRORD" = xyes ]; then
8032 if test x$PKGCONFIG_INIT != x1; then
8033 pkg_config_init
8034 fi
ad6254c5 8035
f11781c5
AK
8036pkg_failed=no
8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8038$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8039
f11781c5
AK
8040if test -n "$SACKPT_CFLAGS"; then
8041 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8042 elif test -n "$PKG_CONFIG"; then
8043 if test -n "$PKG_CONFIG" && \
8044 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8045 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8046 ac_status=$?
8047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8048 test $ac_status = 0; }; then
8049 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8050else
f11781c5
AK
8051 pkg_failed=yes
8052fi
8053 else
8054 pkg_failed=untried
8055fi
8056if test -n "$SACKPT_LIBS"; then
8057 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8058 elif test -n "$PKG_CONFIG"; then
8059 if test -n "$PKG_CONFIG" && \
8060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8061 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8062 ac_status=$?
f11781c5
AK
8063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8064 test $ac_status = 0; }; then
8065 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8066else
f11781c5
AK
8067 pkg_failed=yes
8068fi
8069 else
8070 pkg_failed=untried
8071fi
539f4a77
ZK
8072
8073
539f4a77 8074
f11781c5
AK
8075if test $pkg_failed = yes; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077$as_echo "no" >&6; }
8078
8079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8080 _pkg_short_errors_supported=yes
539f4a77 8081else
f11781c5 8082 _pkg_short_errors_supported=no
539f4a77 8083fi
f11781c5
AK
8084 if test $_pkg_short_errors_supported = yes; then
8085 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8086 else
8087 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8088 fi
8089 # Put the nasty error message in config.log where it belongs
8090 echo "$SACKPT_PKG_ERRORS" >&5
8091
8092 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8093
8094$SACKPT_PKG_ERRORS
8095
8096Consider adjusting the PKG_CONFIG_PATH environment variable if you
8097installed software in a non-standard prefix.
8098
8099Alternatively, you may set the environment variables SACKPT_CFLAGS
8100and SACKPT_LIBS to avoid the need to call pkg-config.
8101See the pkg-config man page for more details." "$LINENO" 5
8102
8103elif test $pkg_failed = untried; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105$as_echo "no" >&6; }
8106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8108as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8109is in your PATH or set the PKG_CONFIG environment variable to the full
8110path to pkg-config.
8111
8112Alternatively, you may set the environment variables SACKPT_CFLAGS
8113and SACKPT_LIBS to avoid the need to call pkg-config.
8114See the pkg-config man page for more details.
8115
8116To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8117See \`config.log' for more details" "$LINENO" 5; }
8118
539f4a77 8119else
f11781c5
AK
8120 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8121 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8123$as_echo "yes" >&6; }
539f4a77 8124
539f4a77 8125fi
f11781c5 8126 if test x$HAVE_CPG != xyes; then
539f4a77 8127
f11781c5
AK
8128pkg_failed=no
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8130$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8131
f11781c5
AK
8132if test -n "$CPG_CFLAGS"; then
8133 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8134 elif test -n "$PKG_CONFIG"; then
8135 if test -n "$PKG_CONFIG" && \
8136 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8137 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8138 ac_status=$?
f11781c5
AK
8139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8140 test $ac_status = 0; }; then
8141 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8142else
f11781c5
AK
8143 pkg_failed=yes
8144fi
8145 else
8146 pkg_failed=untried
8147fi
8148if test -n "$CPG_LIBS"; then
8149 pkg_cv_CPG_LIBS="$CPG_LIBS"
8150 elif test -n "$PKG_CONFIG"; then
8151 if test -n "$PKG_CONFIG" && \
8152 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8153 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8154 ac_status=$?
8155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156 test $ac_status = 0; }; then
8157 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8158else
8159 pkg_failed=yes
8160fi
8161 else
8162 pkg_failed=untried
8163fi
8164
8165
8166
8167if test $pkg_failed = yes; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169$as_echo "no" >&6; }
ad6254c5 8170
f11781c5
AK
8171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8172 _pkg_short_errors_supported=yes
8173else
8174 _pkg_short_errors_supported=no
ad6254c5 8175fi
f11781c5
AK
8176 if test $_pkg_short_errors_supported = yes; then
8177 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8178 else
8179 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8180 fi
8181 # Put the nasty error message in config.log where it belongs
8182 echo "$CPG_PKG_ERRORS" >&5
8183
8184 as_fn_error $? "Package requirements (libcpg) were not met:
8185
8186$CPG_PKG_ERRORS
8187
8188Consider adjusting the PKG_CONFIG_PATH environment variable if you
8189installed software in a non-standard prefix.
8190
8191Alternatively, you may set the environment variables CPG_CFLAGS
8192and CPG_LIBS to avoid the need to call pkg-config.
8193See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8194
f11781c5
AK
8195elif test $pkg_failed = untried; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197$as_echo "no" >&6; }
8198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8200as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8201is in your PATH or set the PKG_CONFIG environment variable to the full
8202path to pkg-config.
539f4a77 8203
f11781c5
AK
8204Alternatively, you may set the environment variables CPG_CFLAGS
8205and CPG_LIBS to avoid the need to call pkg-config.
8206See the pkg-config man page for more details.
539f4a77 8207
f11781c5
AK
8208To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8209See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8210
539f4a77 8211else
f11781c5
AK
8212 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8213 CPG_LIBS=$pkg_cv_CPG_LIBS
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8215$as_echo "yes" >&6; }
bc1024f8 8216
f11781c5
AK
8217fi
8218 fi
8219fi
8220
8221################################################################################
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8223$as_echo_n "checking whether to enable debugging... " >&6; }
8224# Check whether --enable-debug was given.
8225if test "${enable_debug+set}" = set; then :
8226 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8227else
f11781c5
AK
8228 DEBUG=no
8229fi
8230
8231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8232$as_echo "$DEBUG" >&6; }
539f4a77 8233
f11781c5
AK
8234if test x$DEBUG = xyes; then
8235 COPTIMISE_FLAG=
8236else
8237 CSCOPE_CMD=
06e459df
JM
8238fi
8239
f11781c5
AK
8240################################################################################
8241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8242$as_echo_n "checking for C optimisation flag... " >&6; }
8243
8244# Check whether --with-optimisation was given.
8245if test "${with_optimisation+set}" = set; then :
8246 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8247fi
539f4a77 8248
f11781c5
AK
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8250$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8251
f11781c5
AK
8252################################################################################
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8254$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8255# Check whether --enable-profiling was given.
8256if test "${enable_profiling+set}" = set; then :
8257 enableval=$enable_profiling; PROFILING=$enableval
8258else
8259 PROFILING=no
539f4a77
ZK
8260fi
8261
f11781c5
AK
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8263$as_echo "$PROFILING" >&6; }
8264
8265if test "x$PROFILING" = xyes; then
8266 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8267 # Extract the first word of "lcov", so it can be a program name with args.
8268set dummy lcov; ac_word=$2
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270$as_echo_n "checking for $ac_word... " >&6; }
8271if test "${ac_cv_path_LCOV+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
539f4a77 8273else
f11781c5
AK
8274 case $LCOV in
8275 [\\/]* | ?:[\\/]*)
8276 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8277 ;;
8278 *)
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280for as_dir in $PATH
8281do
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290done
8291 done
8292IFS=$as_save_IFS
539f4a77 8293
f11781c5
AK
8294 ;;
8295esac
8296fi
8297LCOV=$ac_cv_path_LCOV
8298if test -n "$LCOV"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8300$as_echo "$LCOV" >&6; }
8301else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }
539f4a77
ZK
8304fi
8305
bc1024f8 8306
f11781c5
AK
8307 # Extract the first word of "genhtml", so it can be a program name with args.
8308set dummy genhtml; ac_word=$2
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310$as_echo_n "checking for $ac_word... " >&6; }
8311if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8312 $as_echo_n "(cached) " >&6
ad6254c5 8313else
f11781c5
AK
8314 case $GENHTML in
8315 [\\/]* | ?:[\\/]*)
8316 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8317 ;;
8318 *)
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8328 break 2
8329 fi
8330done
8331 done
8332IFS=$as_save_IFS
8a2fc586 8333
f11781c5
AK
8334 ;;
8335esac
8336fi
8337GENHTML=$ac_cv_path_GENHTML
8338if test -n "$GENHTML"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8340$as_echo "$GENHTML" >&6; }
8341else
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8343$as_echo "no" >&6; }
8344fi
8a2fc586 8345
8a2fc586 8346
f11781c5
AK
8347 if test -z "$LCOV" -o -z "$GENHTML"; then
8348 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8349 fi
8350 # Extract the first word of "genpng", so it can be a program name with args.
8351set dummy genpng; ac_word=$2
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353$as_echo_n "checking for $ac_word... " >&6; }
8354if test "${ac_cv_path_GENPNG+set}" = set; then :
8355 $as_echo_n "(cached) " >&6
8356else
8357 case $GENPNG in
8358 [\\/]* | ?:[\\/]*)
8359 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8360 ;;
8361 *)
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8369 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373done
8374 done
8375IFS=$as_save_IFS
ad6254c5 8376
f11781c5 8377 ;;
7a197a62 8378esac
f11781c5
AK
8379fi
8380GENPNG=$ac_cv_path_GENPNG
8381if test -n "$GENPNG"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8383$as_echo "$GENPNG" >&6; }
ad6254c5 8384else
f11781c5
AK
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
8387fi
8388
8389
8390 if test -n "$GENPNG"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8392$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8393 if $GENPNG --help > /dev/null 2>&1 ; then
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8395$as_echo "ok" >&6; }
8396 GENHTML="$GENHTML --frames"
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8399$as_echo "not supported" >&6; }
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8401$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8402 GENPNG=
8403 fi
8404 fi
8405fi
ad6254c5 8406
f11781c5
AK
8407################################################################################
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8409$as_echo_n "checking whether to enable unit testing... " >&6; }
8410# Check whether --enable-testing was given.
8411if test "${enable_testing+set}" = set; then :
8412 enableval=$enable_testing; TESTING=$enableval
8413else
8414 TESTING=no
ad6254c5 8415fi
7a197a62 8416
f11781c5
AK
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8418$as_echo "$TESTING" >&6; }
72b2cb61 8419
f11781c5
AK
8420if test "$TESTING" = yes; then
8421 # Extract the first word of "ruby1.9", so it can be a program name with args.
8422set dummy ruby1.9; ac_word=$2
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424$as_echo_n "checking for $ac_word... " >&6; }
8425if test "${ac_cv_path_RUBY19+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427else
8428 case $RUBY19 in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8431 ;;
8432 *)
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434for as_dir in $PATH
8435do
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
bc1024f8 8444done
f11781c5
AK
8445 done
8446IFS=$as_save_IFS
ad6254c5 8447
f11781c5
AK
8448 ;;
8449esac
ad6254c5 8450fi
f11781c5
AK
8451RUBY19=$ac_cv_path_RUBY19
8452if test -n "$RUBY19"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8454$as_echo "$RUBY19" >&6; }
ad6254c5 8455else
f11781c5
AK
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457$as_echo "no" >&6; }
7a197a62
AK
8458fi
8459
ad6254c5 8460
f11781c5
AK
8461 # Extract the first word of "valgrind", so it can be a program name with args.
8462set dummy valgrind; ac_word=$2
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8464$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8465if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8466 $as_echo_n "(cached) " >&6
ad6254c5 8467else
f11781c5 8468 case $VALGRIND in
ad6254c5 8469 [\\/]* | ?:[\\/]*)
f11781c5 8470 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8471 ;;
8472 *)
8473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474for as_dir in $PATH
8475do
8476 IFS=$as_save_IFS
8477 test -z "$as_dir" && as_dir=.
f11781c5 8478 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8480 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8482 break 2
8483 fi
8484done
f11781c5 8485 done
7a197a62 8486IFS=$as_save_IFS
ad6254c5
AK
8487
8488 ;;
8489esac
8490fi
f11781c5
AK
8491VALGRIND=$ac_cv_path_VALGRIND
8492if test -n "$VALGRIND"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8494$as_echo "$VALGRIND" >&6; }
ad6254c5 8495else
f11781c5 8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8497$as_echo "no" >&6; }
ad6254c5
AK
8498fi
8499
7a197a62 8500
f11781c5
AK
8501 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8502 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8503 fi
8504fi
ad6254c5 8505
f11781c5
AK
8506################################################################################
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8508$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8509# Check whether --enable-valgrind_pool was given.
8510if test "${enable_valgrind_pool+set}" = set; then :
8511 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8512else
8513 VALGRIND_POOL=no
8514fi
8515
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8517$as_echo "$VALGRIND_POOL" >&6; }
8518
8519if test "$VALGRIND_POOL" = yes; then
8520 for ac_header in valgrind/memcheck.h
8521do :
8522 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8523if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8524 cat >>confdefs.h <<_ACEOF
8525#define HAVE_VALGRIND_MEMCHECK_H 1
8526_ACEOF
ad6254c5 8527
ad6254c5 8528else
f11781c5 8529 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8530fi
8531
f11781c5
AK
8532done
8533
8534
8535$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8536
ad6254c5
AK
8537fi
8538
8539################################################################################
f11781c5
AK
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8541$as_echo_n "checking whether to use device-mapper... " >&6; }
8542# Check whether --enable-devmapper was given.
8543if test "${enable_devmapper+set}" = set; then :
8544 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8545fi
8546
f11781c5
AK
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8548$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8549
f11781c5 8550if test x$DEVMAPPER = xyes; then
ad6254c5 8551
f11781c5
AK
8552$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8553
8554fi
8555
8556################################################################################
8557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8558$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8559# Check whether --enable-udev_sync was given.
8560if test "${enable_udev_sync+set}" = set; then :
8561 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8562else
f11781c5 8563 UDEV_SYNC=no
7a197a62 8564fi
ad6254c5 8565
f11781c5
AK
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8567$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8568
f11781c5 8569if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8570 if test x$PKGCONFIG_INIT != x1; then
8571 pkg_config_init
8572 fi
7a197a62 8573
d93275eb
PR
8574pkg_failed=no
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8576$as_echo_n "checking for UDEV... " >&6; }
8577
8578if test -n "$UDEV_CFLAGS"; then
8579 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8580 elif test -n "$PKG_CONFIG"; then
8581 if test -n "$PKG_CONFIG" && \
8582 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8583 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8584 ac_status=$?
8585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8586 test $ac_status = 0; }; then
8587 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8588else
d93275eb 8589 pkg_failed=yes
f11781c5 8590fi
d93275eb
PR
8591 else
8592 pkg_failed=untried
f11781c5 8593fi
d93275eb
PR
8594if test -n "$UDEV_LIBS"; then
8595 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8596 elif test -n "$PKG_CONFIG"; then
8597 if test -n "$PKG_CONFIG" && \
8598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8599 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8600 ac_status=$?
8601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8602 test $ac_status = 0; }; then
8603 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8604else
d93275eb 8605 pkg_failed=yes
68f2de6d 8606fi
d93275eb
PR
8607 else
8608 pkg_failed=untried
8609fi
8610
8611
8612
8613if test $pkg_failed = yes; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615$as_echo "no" >&6; }
8616
8617if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8618 _pkg_short_errors_supported=yes
8619else
8620 _pkg_short_errors_supported=no
8621fi
8622 if test $_pkg_short_errors_supported = yes; then
8623 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8624 else
8625 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8626 fi
8627 # Put the nasty error message in config.log where it belongs
8628 echo "$UDEV_PKG_ERRORS" >&5
8629
8630 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8631
8632$UDEV_PKG_ERRORS
8633
8634Consider adjusting the PKG_CONFIG_PATH environment variable if you
8635installed software in a non-standard prefix.
8636
8637Alternatively, you may set the environment variables UDEV_CFLAGS
8638and UDEV_LIBS to avoid the need to call pkg-config.
8639See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8640
d93275eb
PR
8641elif test $pkg_failed = untried; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643$as_echo "no" >&6; }
8644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8646as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8647is in your PATH or set the PKG_CONFIG environment variable to the full
8648path to pkg-config.
8649
8650Alternatively, you may set the environment variables UDEV_CFLAGS
8651and UDEV_LIBS to avoid the need to call pkg-config.
8652See the pkg-config man page for more details.
8653
8654To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8655See \`config.log' for more details" "$LINENO" 5; }
8656
8657else
8658 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8659 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8661$as_echo "yes" >&6; }
8662 UDEV_PC="libudev"
8663fi
68f2de6d 8664
f11781c5 8665$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8666
f11781c5
AK
8667fi
8668
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8670$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8671# Check whether --enable-udev_rules was given.
8672if test "${enable_udev_rules+set}" = set; then :
8673 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8674else
f11781c5 8675 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8676fi
8677
f11781c5
AK
8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8679$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8680
a5f46f6a 8681################################################################################
f11781c5
AK
8682# Check whether --enable-compat was given.
8683if test "${enable_compat+set}" = set; then :
8684 enableval=$enable_compat; DM_COMPAT=$enableval
8685else
8686 DM_COMPAT=no
8687fi
a5f46f6a 8688
f11781c5 8689
2061c0ec
AK
8690if test x$DM_COMPAT = xyes; then
8691 as_fn_error $? "--enable-compat is not currently supported.
8692Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8693ioctl protocol is supported.
8694 " "$LINENO" 5
8695fi
8696
f11781c5
AK
8697################################################################################
8698# Check whether --enable-units-compat was given.
8699if test "${enable_units_compat+set}" = set; then :
8700 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8701else
f11781c5 8702 UNITS_COMPAT=no
a5f46f6a
AK
8703fi
8704
8705
f11781c5 8706if test x$UNITS_COMPAT = xyes; then
78ce7acc 8707
f11781c5
AK
8708$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8709
8710fi
8711
8712################################################################################
8713# Check whether --enable-ioctl was given.
8714if test "${enable_ioctl+set}" = set; then :
8715 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8716fi
8717
a5f46f6a 8718
ad6254c5 8719################################################################################
f11781c5
AK
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8721$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8722# Check whether --enable-o_direct was given.
8723if test "${enable_o_direct+set}" = set; then :
8724 enableval=$enable_o_direct; ODIRECT=$enableval
8725fi
ad6254c5 8726
f11781c5
AK
8727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8728$as_echo "$ODIRECT" >&6; }
8729
8730if test x$ODIRECT = xyes; then
8731
8732$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8733
ad6254c5 8734fi
ad6254c5 8735
f11781c5
AK
8736################################################################################
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8738$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8739# Check whether --enable-applib was given.
8740if test "${enable_applib+set}" = set; then :
8741 enableval=$enable_applib; APPLIB=$enableval
8742else
8743 APPLIB=no
ad6254c5 8744fi
7a197a62 8745
f11781c5
AK
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8747$as_echo "$APPLIB" >&6; }
ad6254c5 8748
f11781c5
AK
8749test x$APPLIB = xyes \
8750 && LVM2APP_LIB=-llvm2app \
8751 || LVM2APP_LIB=
ad6254c5 8752
f11781c5
AK
8753################################################################################
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8755$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8756# Check whether --enable-cmdlib was given.
8757if test "${enable_cmdlib+set}" = set; then :
8758 enableval=$enable_cmdlib; CMDLIB=$enableval
8759else
8760 CMDLIB=no
ad6254c5 8761fi
7a197a62 8762
f11781c5
AK
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8764$as_echo "$CMDLIB" >&6; }
7a197a62 8765
f11781c5
AK
8766test x$CMDLIB = xyes \
8767 && LVM2CMD_LIB=-llvm2cmd \
8768 || LVM2CMD_LIB=
8769
8770################################################################################
8771# Check whether --enable-pkgconfig was given.
8772if test "${enable_pkgconfig+set}" = set; then :
8773 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8774else
f11781c5 8775 PKGCONFIG=no
ad6254c5 8776fi
ad6254c5 8777
ad6254c5 8778
f11781c5
AK
8779################################################################################
8780# Check whether --enable-write_install was given.
8781if test "${enable_write_install+set}" = set; then :
8782 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8783else
f11781c5 8784 WRITE_INSTALL=no
ad6254c5
AK
8785fi
8786
ad6254c5 8787
f11781c5
AK
8788################################################################################
8789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8790$as_echo_n "checking whether to install fsadm... " >&6; }
8791# Check whether --enable-fsadm was given.
8792if test "${enable_fsadm+set}" = set; then :
8793 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8794fi
8795
f11781c5
AK
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8797$as_echo "$FSADM" >&6; }
ad6254c5 8798
f11781c5
AK
8799################################################################################
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8801$as_echo_n "checking whether to use dmeventd... " >&6; }
8802# Check whether --enable-dmeventd was given.
8803if test "${enable_dmeventd+set}" = set; then :
8804 enableval=$enable_dmeventd; DMEVENTD=$enableval
8805fi
ad6254c5 8806
f11781c5
AK
8807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8808$as_echo "$DMEVENTD" >&6; }
ad6254c5 8809
f11781c5 8810BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8811
f11781c5
AK
8812if test x$DMEVENTD = xyes; then
8813 if test x$MIRRORS != xinternal; then
8814 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8815 " "$LINENO" 5
8816 fi
8817 if test x$CMDLIB = xno; then
8818 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8819 " "$LINENO" 5
8820 fi
8821fi
ad6254c5 8822
f11781c5 8823if test x$DMEVENTD = xyes; then
ad6254c5 8824
f11781c5 8825$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8826
f11781c5 8827fi
ad6254c5 8828
f11781c5 8829################################################################################
ad6254c5 8830
f11781c5
AK
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8832$as_echo_n "checking for getline in -lc... " >&6; }
8833if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8834 $as_echo_n "(cached) " >&6
ad6254c5 8835else
f11781c5
AK
8836 ac_check_lib_save_LIBS=$LIBS
8837LIBS="-lc $LIBS"
8838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8839/* end confdefs.h. */
f11781c5
AK
8840
8841/* Override any GCC internal prototype to avoid an error.
8842 Use char because int might match the return type of a GCC
8843 builtin and then its argument prototype would still apply. */
8844#ifdef __cplusplus
8845extern "C"
8846#endif
8847char getline ();
8848int
8849main ()
8850{
8851return getline ();
8852 ;
8853 return 0;
8854}
ad6254c5 8855_ACEOF
f11781c5
AK
8856if ac_fn_c_try_link "$LINENO"; then :
8857 ac_cv_lib_c_getline=yes
ad6254c5 8858else
f11781c5
AK
8859 ac_cv_lib_c_getline=no
8860fi
8861rm -f core conftest.err conftest.$ac_objext \
8862 conftest$ac_exeext conftest.$ac_ext
8863LIBS=$ac_check_lib_save_LIBS
8864fi
8865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8866$as_echo "$ac_cv_lib_c_getline" >&6; }
8867if test "x$ac_cv_lib_c_getline" = x""yes; then :
8868
8869$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8870
ad6254c5 8871fi
7a197a62 8872
ad6254c5 8873
f11781c5
AK
8874################################################################################
8875
8876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8877$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8878if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8879 $as_echo_n "(cached) " >&6
8880else
8881 ac_check_lib_save_LIBS=$LIBS
8882LIBS="-lc $LIBS"
8883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8884/* end confdefs.h. */
f11781c5
AK
8885
8886/* Override any GCC internal prototype to avoid an error.
8887 Use char because int might match the return type of a GCC
8888 builtin and then its argument prototype would still apply. */
8889#ifdef __cplusplus
8890extern "C"
8891#endif
8892char canonicalize_file_name ();
8893int
8894main ()
8895{
8896return canonicalize_file_name ();
8897 ;
8898 return 0;
8899}
ad6254c5 8900_ACEOF
f11781c5
AK
8901if ac_fn_c_try_link "$LINENO"; then :
8902 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 8903else
f11781c5
AK
8904 ac_cv_lib_c_canonicalize_file_name=no
8905fi
8906rm -f core conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
8908LIBS=$ac_check_lib_save_LIBS
8909fi
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8911$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8912if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8913
8914$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 8915
ad6254c5 8916fi
7a197a62 8917
ad6254c5 8918
f11781c5
AK
8919################################################################################
8920if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8921 then exec_prefix="";
8922fi;
7a197a62 8923
f11781c5
AK
8924################################################################################
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8926$as_echo_n "checking for dlopen in -ldl... " >&6; }
8927if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 8928 $as_echo_n "(cached) " >&6
ad6254c5 8929else
f11781c5
AK
8930 ac_check_lib_save_LIBS=$LIBS
8931LIBS="-ldl $LIBS"
8932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h. */
ad6254c5 8934
f11781c5
AK
8935/* Override any GCC internal prototype to avoid an error.
8936 Use char because int might match the return type of a GCC
8937 builtin and then its argument prototype would still apply. */
8938#ifdef __cplusplus
8939extern "C"
8940#endif
8941char dlopen ();
8942int
8943main ()
8944{
8945return dlopen ();
8946 ;
8947 return 0;
8948}
ad6254c5 8949_ACEOF
f11781c5
AK
8950if ac_fn_c_try_link "$LINENO"; then :
8951 ac_cv_lib_dl_dlopen=yes
ad6254c5 8952else
f11781c5 8953 ac_cv_lib_dl_dlopen=no
795ca3e5 8954fi
f11781c5
AK
8955rm -f core conftest.err conftest.$ac_objext \
8956 conftest$ac_exeext conftest.$ac_ext
8957LIBS=$ac_check_lib_save_LIBS
8958fi
8959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8960$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8961if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 8962
ad6254c5 8963
f11781c5 8964$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 8965
f11781c5
AK
8966 DL_LIBS="-ldl"
8967 HAVE_LIBDL=yes
8968else
795ca3e5 8969
f11781c5
AK
8970 DL_LIBS=
8971 HAVE_LIBDL=no
8972fi
8106cdd5 8973
ad6254c5 8974
f11781c5
AK
8975################################################################################
8976if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8977 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 8978 -o "x$RAID" = xshared \
f11781c5
AK
8979 \) -a "x$STATIC_LINK" = xyes ];
8980 then as_fn_error $? "Features cannot be 'shared' when building statically
8981" "$LINENO" 5
8982fi
ad6254c5 8983
f11781c5
AK
8984################################################################################
8985if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
8987$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
8988if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 8989 $as_echo_n "(cached) " >&6
795ca3e5 8990else
f11781c5
AK
8991 ac_check_lib_save_LIBS=$LIBS
8992LIBS="-lpthread $LIBS"
8993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8994/* end confdefs.h. */
8a2fc586 8995
f11781c5
AK
8996/* Override any GCC internal prototype to avoid an error.
8997 Use char because int might match the return type of a GCC
8998 builtin and then its argument prototype would still apply. */
8999#ifdef __cplusplus
9000extern "C"
ad6254c5 9001#endif
f11781c5
AK
9002char pthread_mutex_lock ();
9003int
9004main ()
9005{
9006return pthread_mutex_lock ();
9007 ;
9008 return 0;
9009}
9010_ACEOF
9011if ac_fn_c_try_link "$LINENO"; then :
9012 ac_cv_lib_pthread_pthread_mutex_lock=yes
9013else
9014 ac_cv_lib_pthread_pthread_mutex_lock=no
9015fi
9016rm -f core conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018LIBS=$ac_check_lib_save_LIBS
9019fi
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9021$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9022if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9023 PTHREAD_LIBS="-lpthread"
9024else
9025 hard_bailout
9026fi
9027
9028fi
9029
9030################################################################################
9031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9032$as_echo_n "checking whether to enable selinux support... " >&6; }
9033# Check whether --enable-selinux was given.
9034if test "${enable_selinux+set}" = set; then :
9035 enableval=$enable_selinux; SELINUX=$enableval
9036fi
9037
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9039$as_echo "$SELINUX" >&6; }
8a2fc586 9040
f11781c5
AK
9041################################################################################
9042if test x$SELINUX = xyes; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9044$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9045if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
9047else
9048 ac_check_lib_save_LIBS=$LIBS
9049LIBS="-lsepol $LIBS"
9050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051/* end confdefs.h. */
8a2fc586 9052
7a197a62
AK
9053/* Override any GCC internal prototype to avoid an error.
9054 Use char because int might match the return type of a GCC
9055 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9056#ifdef __cplusplus
9057extern "C"
ad6254c5 9058#endif
f11781c5 9059char sepol_check_context ();
ad6254c5
AK
9060int
9061main ()
9062{
f11781c5 9063return sepol_check_context ();
ad6254c5
AK
9064 ;
9065 return 0;
9066}
9067_ACEOF
f11781c5
AK
9068if ac_fn_c_try_link "$LINENO"; then :
9069 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9070else
f11781c5
AK
9071 ac_cv_lib_sepol_sepol_check_context=no
9072fi
9073rm -f core conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075LIBS=$ac_check_lib_save_LIBS
80992638 9076fi
f11781c5
AK
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9078$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9079if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9080
80992638 9081
f11781c5
AK
9082$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9083
9084 SELINUX_LIBS="-lsepol"
8106cdd5 9085fi
795ca3e5 9086
f11781c5
AK
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9089$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9090if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9091 $as_echo_n "(cached) " >&6
25fbec5b 9092else
f11781c5
AK
9093 ac_check_lib_save_LIBS=$LIBS
9094LIBS="-lselinux $LIBS"
9095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9096/* end confdefs.h. */
80992638 9097
7a197a62
AK
9098/* Override any GCC internal prototype to avoid an error.
9099 Use char because int might match the return type of a GCC
ad6254c5 9100 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9101#ifdef __cplusplus
9102extern "C"
9103#endif
f11781c5 9104char is_selinux_enabled ();
ad6254c5
AK
9105int
9106main ()
9107{
f11781c5 9108return is_selinux_enabled ();
ad6254c5
AK
9109 ;
9110 return 0;
9111}
9112_ACEOF
f11781c5
AK
9113if ac_fn_c_try_link "$LINENO"; then :
9114 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9115else
f11781c5 9116 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9117fi
f11781c5
AK
9118rm -f core conftest.err conftest.$ac_objext \
9119 conftest$ac_exeext conftest.$ac_ext
9120LIBS=$ac_check_lib_save_LIBS
25fbec5b 9121fi
f11781c5
AK
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9123$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9124if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9125
f11781c5
AK
9126 for ac_header in selinux/selinux.h
9127do :
9128 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9129if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9130 cat >>confdefs.h <<_ACEOF
9131#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9132_ACEOF
795ca3e5 9133
25fbec5b 9134else
f11781c5 9135 hard_bailout
795ca3e5 9136fi
795ca3e5 9137
f11781c5 9138done
795ca3e5 9139
f11781c5
AK
9140 for ac_header in selinux/label.h
9141do :
9142 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9143if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9144 cat >>confdefs.h <<_ACEOF
9145#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9146_ACEOF
ad6254c5 9147
ad6254c5 9148fi
7a197a62 9149
f11781c5 9150done
7a197a62 9151
ad6254c5 9152
f11781c5 9153$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9154
f11781c5
AK
9155 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9156 SELINUX_PC="libselinux"
9157 HAVE_SELINUX=yes
ad6254c5 9158else
8106cdd5 9159
f11781c5
AK
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9161$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9162 SELINUX_LIBS=
9163 SELINUX_PC=
9164 HAVE_SELINUX=no
795ca3e5 9165fi
ad6254c5 9166
795ca3e5
AK
9167fi
9168
f11781c5
AK
9169################################################################################
9170if test x$REALTIME = xyes; then
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9172$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9173if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9174 $as_echo_n "(cached) " >&6
26e7f2e0 9175else
f11781c5
AK
9176 ac_check_lib_save_LIBS=$LIBS
9177LIBS="-lrt $LIBS"
9178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9179/* end confdefs.h. */
ad6254c5 9180
f11781c5
AK
9181/* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9184#ifdef __cplusplus
9185extern "C"
9186#endif
9187char clock_gettime ();
ad6254c5
AK
9188int
9189main ()
9190{
f11781c5 9191return clock_gettime ();
ad6254c5
AK
9192 ;
9193 return 0;
9194}
9195_ACEOF
f11781c5
AK
9196if ac_fn_c_try_link "$LINENO"; then :
9197 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9198else
f11781c5 9199 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9200fi
f11781c5
AK
9201rm -f core conftest.err conftest.$ac_objext \
9202 conftest$ac_exeext conftest.$ac_ext
9203LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9204fi
f11781c5
AK
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9206$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9207if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9208 HAVE_REALTIME=yes
9209else
9210 HAVE_REALTIME=no
8106cdd5 9211fi
ad6254c5 9212
ad6254c5 9213
f11781c5 9214 if test x$HAVE_REALTIME = xyes; then
7a197a62 9215
f11781c5 9216$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9217
f11781c5
AK
9218 LIBS="-lrt $LIBS"
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9221$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9222 fi
9223fi
9224
9225################################################################################
9226for ac_header in getopt.h
9227do :
9228 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9229if test "x$ac_cv_header_getopt_h" = x""yes; then :
9230 cat >>confdefs.h <<_ACEOF
9231#define HAVE_GETOPT_H 1
9232_ACEOF
9233
9234$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9235
ad6254c5 9236fi
7a197a62 9237
f11781c5 9238done
ad6254c5 9239
7a197a62 9240
f11781c5
AK
9241################################################################################
9242if test x$READLINE != xno; then
9243 lvm_saved_libs=$LIBS
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9245$as_echo_n "checking for library containing tgetent... " >&6; }
9246if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9247 $as_echo_n "(cached) " >&6
ad6254c5 9248else
f11781c5
AK
9249 ac_func_search_save_LIBS=$LIBS
9250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h. */
ad6254c5 9252
f11781c5
AK
9253/* Override any GCC internal prototype to avoid an error.
9254 Use char because int might match the return type of a GCC
9255 builtin and then its argument prototype would still apply. */
9256#ifdef __cplusplus
9257extern "C"
9258#endif
9259char tgetent ();
9260int
9261main ()
9262{
9263return tgetent ();
9264 ;
9265 return 0;
9266}
ad6254c5 9267_ACEOF
f11781c5
AK
9268for ac_lib in '' tinfo ncurses curses termcap termlib; do
9269 if test -z "$ac_lib"; then
9270 ac_res="none required"
9271 else
9272 ac_res=-l$ac_lib
9273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9274 fi
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 ac_cv_search_tgetent=$ac_res
9277fi
9278rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext
9280 if test "${ac_cv_search_tgetent+set}" = set; then :
9281 break
9282fi
9283done
9284if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9285
80992638 9286else
f11781c5 9287 ac_cv_search_tgetent=no
b896caa1 9288fi
f11781c5
AK
9289rm conftest.$ac_ext
9290LIBS=$ac_func_search_save_LIBS
9291fi
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9293$as_echo "$ac_cv_search_tgetent" >&6; }
9294ac_res=$ac_cv_search_tgetent
9295if test "$ac_res" != no; then :
9296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9297 READLINE_LIBS=$ac_cv_search_tgetent
9298else
ad6254c5 9299
f11781c5
AK
9300 if test "$READLINE" = yes; then
9301 as_fn_error $? "termcap could not be found which is required for the
9302--enable-readline option (which is enabled by default). Either disable readline
9303support with --disable-readline or download and install termcap from:
9304 ftp.gnu.org/gnu/termcap
9305Note: if you are using precompiled packages you will also need the development
9306 package as well (which may be called termcap-devel or something similar).
9307Note: (n)curses also seems to work as a substitute for termcap. This was
9308 not found either - but you could try installing that as well." "$LINENO" 5
9309 fi
9310fi
b896caa1 9311
f11781c5
AK
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9313$as_echo_n "checking for readline in -lreadline... " >&6; }
9314if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9315 $as_echo_n "(cached) " >&6
795ca3e5 9316else
f11781c5
AK
9317 ac_check_lib_save_LIBS=$LIBS
9318LIBS="-lreadline $LIBS"
9319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9320/* end confdefs.h. */
8a2fc586 9321
f11781c5
AK
9322/* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
9325#ifdef __cplusplus
9326extern "C"
ad6254c5 9327#endif
f11781c5
AK
9328char readline ();
9329int
9330main ()
9331{
9332return readline ();
9333 ;
9334 return 0;
9335}
9336_ACEOF
9337if ac_fn_c_try_link "$LINENO"; then :
9338 ac_cv_lib_readline_readline=yes
9339else
9340 ac_cv_lib_readline_readline=no
9341fi
9342rm -f core conftest.err conftest.$ac_objext \
9343 conftest$ac_exeext conftest.$ac_ext
9344LIBS=$ac_check_lib_save_LIBS
9345fi
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9347$as_echo "$ac_cv_lib_readline_readline" >&6; }
9348if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9349
8a2fc586 9350
f11781c5
AK
9351$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9352
9353 LIBS=$lvm_saved_libs
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9355$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9356if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358else
9359 ac_check_lib_save_LIBS=$LIBS
9360LIBS="-lreadline $LIBS"
9361cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362/* end confdefs.h. */
8a2fc586 9363
7a197a62
AK
9364/* Override any GCC internal prototype to avoid an error.
9365 Use char because int might match the return type of a GCC
9366 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9367#ifdef __cplusplus
9368extern "C"
ad6254c5 9369#endif
f11781c5 9370char rl_line_buffer ();
ad6254c5
AK
9371int
9372main ()
9373{
f11781c5 9374return rl_line_buffer ();
ad6254c5
AK
9375 ;
9376 return 0;
9377}
9378_ACEOF
f11781c5
AK
9379if ac_fn_c_try_link "$LINENO"; then :
9380 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9381else
f11781c5
AK
9382 ac_cv_lib_readline_rl_line_buffer=no
9383fi
9384rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext conftest.$ac_ext
9386LIBS=$ac_check_lib_save_LIBS
9387fi
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9389$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9390if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9391 READLINE_LIBS="-lreadline"
9392else
9393
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9395$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9396 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9397
ad6254c5 9398fi
7a197a62 9399
f11781c5
AK
9400else
9401
9402 READLINE_LIBS=
9403 if test "$READLINE" = yes; then
9404 as_fn_error $? "GNU Readline could not be found which is required for the
9405--enable-readline option (which is enabled by default). Either disable readline
9406support with --disable-readline or download and install readline from:
9407 ftp.gnu.org/gnu/readline
9408Note: if you are using precompiled packages you will also need the development
9409package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9410 fi
ad6254c5 9411fi
f11781c5
AK
9412
9413 LIBS="$READLINE_LIBS $lvm_saved_libs"
9414 for ac_func in rl_completion_matches
9415do :
9416 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9417if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9418 cat >>confdefs.h <<_ACEOF
f11781c5 9419#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9420_ACEOF
9421
ad6254c5
AK
9422fi
9423done
9424
f11781c5 9425 LIBS=$lvm_saved_libs
ad6254c5
AK
9426fi
9427
f11781c5
AK
9428################################################################################
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9430$as_echo_n "checking whether to enable internationalisation... " >&6; }
9431# Check whether --enable-nls was given.
9432if test "${enable_nls+set}" = set; then :
9433 enableval=$enable_nls; INTL=$enableval
9434else
9435 INTL=no
9436fi
d911ec67 9437
f11781c5
AK
9438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9439$as_echo "$INTL" >&6; }
9440
9441if test x$INTL = xyes; then
9442# FIXME - Move this - can be device-mapper too
9443 INTL_PACKAGE="lvm2"
9444 # Extract the first word of "msgfmt", so it can be a program name with args.
9445set dummy msgfmt; ac_word=$2
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9447$as_echo_n "checking for $ac_word... " >&6; }
9448if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9449 $as_echo_n "(cached) " >&6
d911ec67 9450else
f11781c5
AK
9451 case $MSGFMT in
9452 [\\/]* | ?:[\\/]*)
9453 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9454 ;;
9455 *)
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457for as_dir in $PATH
9458do
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9463 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9465 break 2
9466 fi
9467done
9468 done
9469IFS=$as_save_IFS
9470
9471 ;;
d911ec67 9472esac
f11781c5
AK
9473fi
9474MSGFMT=$ac_cv_path_MSGFMT
9475if test -n "$MSGFMT"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9477$as_echo "$MSGFMT" >&6; }
d911ec67 9478else
f11781c5
AK
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480$as_echo "no" >&6; }
9481fi
d911ec67 9482
f11781c5
AK
9483
9484 if [ "x$MSGFMT" == x ];
9485 then as_fn_error $? "msgfmt not found in path $PATH
9486 " "$LINENO" 5
9487 fi;
9488
9489
9490# Check whether --with-localedir was given.
9491if test "${with_localedir+set}" = set; then :
9492 withval=$with_localedir; LOCALEDIR=$withval
9493else
9494 LOCALEDIR='${prefix}/share/locale'
9495fi
9496
9497fi
9498
9499################################################################################
9500
9501# Check whether --with-confdir was given.
9502if test "${with_confdir+set}" = set; then :
9503 withval=$with_confdir; CONFDIR=$withval
9504else
9505 CONFDIR="/etc"
9506fi
9507
9508
9509
9510# Check whether --with-staticdir was given.
9511if test "${with_staticdir+set}" = set; then :
9512 withval=$with_staticdir; STATICDIR=$withval
9513else
9514 STATICDIR='${exec_prefix}/sbin'
9515fi
9516
9517
9518
9519# Check whether --with-usrlibdir was given.
9520if test "${with_usrlibdir+set}" = set; then :
9521 withval=$with_usrlibdir; usrlibdir=$withval
9522else
9523 usrlibdir='${prefix}/lib'
d911ec67
AK
9524fi
9525
d911ec67 9526
d911ec67 9527
f11781c5
AK
9528# Check whether --with-usrsbindir was given.
9529if test "${with_usrsbindir+set}" = set; then :
9530 withval=$with_usrsbindir; usrsbindir=$withval
9531else
9532 usrsbindir='${prefix}/sbin'
d911ec67
AK
9533fi
9534
d911ec67 9535
f11781c5 9536################################################################################
d911ec67 9537
f11781c5
AK
9538# Check whether --with-udev_prefix was given.
9539if test "${with_udev_prefix+set}" = set; then :
9540 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9541else
f11781c5 9542 udev_prefix='${exec_prefix}'
d911ec67 9543fi
d911ec67 9544
f11781c5
AK
9545
9546
9547# Check whether --with-udevdir was given.
9548if test "${with_udevdir+set}" = set; then :
9549 withval=$with_udevdir; udevdir=$withval
9550else
9551 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9552fi
f11781c5
AK
9553
9554
9555################################################################################
9556if test x$READLINE = xyes; then
9557 for ac_header in readline/readline.h readline/history.h
9558do :
9559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9560ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9561if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9562 cat >>confdefs.h <<_ACEOF
9563#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9564_ACEOF
9565
9566else
f11781c5 9567 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9568fi
9569
9570done
9571
9572fi
9573
f11781c5
AK
9574if test x$CLVMD != xnone; then
9575 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
9576do :
9577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9578ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9579if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9580 cat >>confdefs.h <<_ACEOF
9581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9582_ACEOF
ad6254c5 9583
f11781c5
AK
9584else
9585 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9586fi
7a197a62 9587
f11781c5 9588done
ad6254c5 9589
f11781c5
AK
9590 for ac_func in dup2 getmntent memmove select socket
9591do :
9592 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9593ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9594if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9595 cat >>confdefs.h <<_ACEOF
9596#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9597_ACEOF
ad6254c5 9598
f11781c5
AK
9599else
9600 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9601fi
f11781c5 9602done
7a197a62 9603
f11781c5
AK
9604 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9605# -lseq on Dynix/PTX, -lgen on Unixware.
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9607$as_echo_n "checking for library containing getmntent... " >&6; }
9608if test "${ac_cv_search_getmntent+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
9610else
9611 ac_func_search_save_LIBS=$LIBS
9612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613/* end confdefs.h. */
ad6254c5 9614
f11781c5
AK
9615/* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9618#ifdef __cplusplus
9619extern "C"
9620#endif
9621char getmntent ();
9622int
9623main ()
9624{
9625return getmntent ();
9626 ;
9627 return 0;
9628}
9629_ACEOF
9630for ac_lib in '' sun seq gen; do
9631 if test -z "$ac_lib"; then
9632 ac_res="none required"
9633 else
9634 ac_res=-l$ac_lib
9635 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9636 fi
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 ac_cv_search_getmntent=$ac_res
9639fi
9640rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext
9642 if test "${ac_cv_search_getmntent+set}" = set; then :
9643 break
9644fi
9645done
9646if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9647
ad6254c5 9648else
f11781c5 9649 ac_cv_search_getmntent=no
795ca3e5 9650fi
f11781c5
AK
9651rm conftest.$ac_ext
9652LIBS=$ac_func_search_save_LIBS
9653fi
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9655$as_echo "$ac_cv_search_getmntent" >&6; }
9656ac_res=$ac_cv_search_getmntent
9657if test "$ac_res" != no; then :
9658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9659 ac_cv_func_getmntent=yes
9660
9661$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9662
f11781c5
AK
9663else
9664 ac_cv_func_getmntent=no
8106cdd5 9665fi
f11781c5
AK
9666
9667
9668 for ac_header in sys/select.h sys/socket.h
9669do :
9670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9671ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9672if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9673 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9675_ACEOF
795ca3e5 9676
795ca3e5
AK
9677fi
9678
ad6254c5 9679done
80992638 9680
f11781c5
AK
9681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9682$as_echo_n "checking types of arguments for select... " >&6; }
9683if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9684 $as_echo_n "(cached) " >&6
83912faa 9685else
f11781c5
AK
9686 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9687 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9688 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9690/* end confdefs.h. */
9691$ac_includes_default
f11781c5
AK
9692#ifdef HAVE_SYS_SELECT_H
9693# include <sys/select.h>
9694#endif
9695#ifdef HAVE_SYS_SOCKET_H
9696# include <sys/socket.h>
9697#endif
9698
9699int
9700main ()
9701{
9702extern int select ($ac_arg1,
9703 $ac_arg234, $ac_arg234, $ac_arg234,
9704 $ac_arg5);
9705 ;
9706 return 0;
9707}
ad6254c5 9708_ACEOF
f11781c5
AK
9709if ac_fn_c_try_compile "$LINENO"; then :
9710 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9711fi
9712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 done
9714 done
9715done
9716# Provide a safe default value.
9717: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9718
ad6254c5 9719fi
f11781c5
AK
9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9721$as_echo "$ac_cv_func_select_args" >&6; }
9722ac_save_IFS=$IFS; IFS=','
9723set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9724IFS=$ac_save_IFS
9725shift
7a197a62 9726
f11781c5
AK
9727cat >>confdefs.h <<_ACEOF
9728#define SELECT_TYPE_ARG1 $1
9729_ACEOF
ad6254c5 9730
f11781c5
AK
9731
9732cat >>confdefs.h <<_ACEOF
9733#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9734_ACEOF
f11781c5
AK
9735
9736
9737cat >>confdefs.h <<_ACEOF
9738#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9739_ACEOF
ad6254c5 9740
f11781c5
AK
9741rm -f conftest*
9742
ad6254c5 9743fi
7a197a62 9744
f11781c5
AK
9745if test x$CLUSTER != xnone; then
9746 for ac_header in sys/socket.h sys/un.h
9747do :
9748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9749ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9751 cat >>confdefs.h <<_ACEOF
9752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9753_ACEOF
ad6254c5 9754
f11781c5
AK
9755else
9756 as_fn_error $? "bailing out" "$LINENO" 5
9757fi
9758
9759done
9760
9761 for ac_func in socket
9762do :
9763 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9764if test "x$ac_cv_func_socket" = x""yes; then :
9765 cat >>confdefs.h <<_ACEOF
9766#define HAVE_SOCKET 1
9767_ACEOF
7a197a62 9768
80992638 9769else
f11781c5 9770 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9771fi
f11781c5 9772done
83912faa 9773
69792976 9774fi
f11781c5
AK
9775
9776if test x$DMEVENTD = xyes; then
9777 for ac_header in arpa/inet.h
9778do :
9779 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9780if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9781 cat >>confdefs.h <<_ACEOF
f11781c5 9782#define HAVE_ARPA_INET_H 1
ad6254c5 9783_ACEOF
69792976 9784
69792976 9785else
f11781c5 9786 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9787fi
9788
ad6254c5 9789done
69792976 9790
ad6254c5
AK
9791fi
9792
f11781c5
AK
9793if test x$HAVE_LIBDL = xyes; then
9794 for ac_header in dlfcn.h
9795do :
9796 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9797if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9798 cat >>confdefs.h <<_ACEOF
9799#define HAVE_DLFCN_H 1
a5f46f6a 9800_ACEOF
a5f46f6a 9801
f11781c5
AK
9802else
9803 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9804fi
9805
f11781c5 9806done
a5f46f6a 9807
a5f46f6a
AK
9808fi
9809
f11781c5
AK
9810if test x$INTL = xyes; then
9811 for ac_header in libintl.h
9812do :
9813 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9814if test "x$ac_cv_header_libintl_h" = x""yes; then :
9815 cat >>confdefs.h <<_ACEOF
9816#define HAVE_LIBINTL_H 1
9817_ACEOF
a5f46f6a 9818
a5f46f6a 9819else
f11781c5 9820 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9821fi
f11781c5
AK
9822
9823done
a5f46f6a
AK
9824
9825fi
f11781c5
AK
9826
9827if test x$UDEV_SYNC = xyes; then
9828 for ac_header in sys/ipc.h sys/sem.h
9829do :
9830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9832if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9833 cat >>confdefs.h <<_ACEOF
9834#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9835_ACEOF
9836
9837else
f11781c5 9838 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9839fi
9840
9841done
9842
9843fi
9844
a653923f
AK
9845################################################################################
9846# Extract the first word of "modprobe", so it can be a program name with args.
9847set dummy modprobe; ac_word=$2
f11781c5 9848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9849$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9850if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9851 $as_echo_n "(cached) " >&6
72b2cb61
AK
9852else
9853 case $MODPROBE_CMD in
9854 [\\/]* | ?:[\\/]*)
9855 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9856 ;;
9857 *)
9858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859for as_dir in $PATH
9860do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
f11781c5 9863 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9865 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9867 break 2
9868 fi
9869done
f11781c5 9870 done
7a197a62 9871IFS=$as_save_IFS
72b2cb61
AK
9872
9873 ;;
9874esac
9875fi
9876MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9877if test -n "$MODPROBE_CMD"; then
f11781c5 9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9879$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9880else
f11781c5 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9882$as_echo "no" >&6; }
72b2cb61
AK
9883fi
9884
a653923f 9885
7a197a62 9886
a653923f 9887if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9888
9889cat >>confdefs.h <<_ACEOF
9890#define MODPROBE_CMD "$MODPROBE_CMD"
9891_ACEOF
9892
a653923f
AK
9893fi
9894
b5c2529b 9895
a9b601e2
ZK
9896lvm_exec_prefix=$exec_prefix
9897test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9898test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
9899
b5c2529b 9900cat >>confdefs.h <<_ACEOF
a9b601e2 9901#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
9902_ACEOF
9903
9904
9905if test "$CLVMD" != none; then
9906 clvmd_prefix=$ac_default_prefix
9907 test "$prefix" != NONE && clvmd_prefix=$prefix
9908
9909cat >>confdefs.h <<_ACEOF
9910#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
9911_ACEOF
9912
9913fi
9914
80992638 9915################################################################################
93bd259b
AK
9916if test "$BUILD_DMEVENTD" = yes; then
9917
9918# Check whether --with-dmeventd-pidfile was given.
f11781c5 9919if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 9920 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 9921else
71082be4 9922 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
9923fi
9924
93bd259b 9925
71082be4
ZK
9926cat >>confdefs.h <<_ACEOF
9927#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9928_ACEOF
93bd259b 9929
71082be4 9930fi
93bd259b
AK
9931
9932if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
9933
9934# Check whether --with-dmeventd-path was given.
f11781c5 9935if test "${with_dmeventd_path+set}" = set; then :
71082be4 9936 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 9937else
71082be4 9938 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
9939fi
9940
93bd259b 9941
71082be4
ZK
9942cat >>confdefs.h <<_ACEOF
9943#define DMEVENTD_PATH "$DMEVENTD_PATH"
9944_ACEOF
3399ae32 9945
71082be4 9946fi
3399ae32 9947
8bae0a1e
AK
9948
9949
8bae0a1e 9950# Check whether --with-default-run-dir was given.
f11781c5 9951if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
9952 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9953else
9954 DEFAULT_RUN_DIR="/var/run/lvm"
9955fi
9956
9957cat >>confdefs.h <<_ACEOF
9958#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9959_ACEOF
9960
9961
71082be4 9962################################################################################
3399ae32
AK
9963
9964# Check whether --with-default-system-dir was given.
f11781c5 9965if test "${with_default_system_dir+set}" = set; then :
71082be4 9966 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 9967else
71082be4 9968 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
9969fi
9970
71082be4 9971
3399ae32
AK
9972cat >>confdefs.h <<_ACEOF
9973#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9974_ACEOF
9975
9976
9977
3399ae32 9978# Check whether --with-default-archive-subdir was given.
f11781c5 9979if test "${with_default_archive_subdir+set}" = set; then :
71082be4 9980 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 9981else
71082be4 9982 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
9983fi
9984
71082be4 9985
3399ae32
AK
9986cat >>confdefs.h <<_ACEOF
9987#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
9988_ACEOF
9989
9990
9991
3399ae32 9992# Check whether --with-default-backup-subdir was given.
f11781c5 9993if test "${with_default_backup_subdir+set}" = set; then :
71082be4 9994 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 9995else
71082be4 9996 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
9997fi
9998
71082be4 9999
3399ae32
AK
10000cat >>confdefs.h <<_ACEOF
10001#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10002_ACEOF
10003
10004
10005
3399ae32 10006# Check whether --with-default-cache-subdir was given.
f11781c5 10007if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10008 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10009else
71082be4 10010 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10011fi
10012
71082be4 10013
3399ae32
AK
10014cat >>confdefs.h <<_ACEOF
10015#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10016_ACEOF
10017
10018
10019
3399ae32 10020# Check whether --with-default-locking-dir was given.
f11781c5 10021if test "${with_default_locking_dir+set}" = set; then :
71082be4 10022 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10023else
71082be4 10024 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10025fi
10026
71082be4 10027
3399ae32
AK
10028cat >>confdefs.h <<_ACEOF
10029#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10030_ACEOF
10031
10032
fea55602
DW
10033################################################################################
10034
10035# Check whether --with-default-data-alignment was given.
f11781c5 10036if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10037 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10038else
10039 DEFAULT_DATA_ALIGNMENT=1
10040fi
10041
10042
10043cat >>confdefs.h <<_ACEOF
10044#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10045_ACEOF
10046
10047
93bd259b 10048################################################################################
f11781c5 10049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10050$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10051
10052# Check whether --with-interface was given.
f11781c5 10053if test "${with_interface+set}" = set; then :
71082be4 10054 withval=$with_interface; interface=$withval
93bd259b 10055else
71082be4 10056 interface=ioctl
93bd259b
AK
10057fi
10058
10059if [ "x$interface" != xioctl ];
10060then
f11781c5 10061 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10062fi
f11781c5 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10064$as_echo "$interface" >&6; }
93bd259b
AK
10065
10066################################################################################
db8b5af9 10067DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10068
10069cat >>confdefs.h <<_ACEOF
10070#define DM_LIB_VERSION $DM_LIB_VERSION
10071_ACEOF
10072
10073
db8b5af9 10074DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10075
db8b5af9 10076LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10077
db8b5af9 10078VER=`cat "$srcdir"/VERSION`
bf456146 10079LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10080VER=`echo "$VER" | $AWK '{print $1}'`
10081LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10082VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10083LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10084LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10085LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10086LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10087
80992638 10088################################################################################
fae0c576 10089
83912faa 10090
795ca3e5
AK
10091
10092
10093
10094
10095
10096
5a52dca9 10097
8ef2b021 10098
199e490e 10099
69792976
AK
10100
10101
10102
d0191583 10103
69792976 10104
8106cdd5
AK
10105
10106
10107
10108
10109
d68a82ec 10110
036f273a 10111
7d1552c9 10112
8106cdd5 10113
0a62c911 10114
8106cdd5 10115
4a7f3eb2 10116
4922197a
AK
10117
10118
d8ac0fbc 10119
1a9ea74d 10120
8a2fc586
AK
10121
10122
d0191583 10123
93bd259b
AK
10124
10125
10126
10127
10128
d0191583
JM
10129
10130
10131
10132
10133
8a2fc586 10134
19a2c6e0 10135
f7f0854e
ZK
10136
10137
3ceb7608 10138
8ce0cbda 10139
8b1a3214 10140
ec6a6fbe
AK
10141
10142
10143
10144
e2997b73
AK
10145
10146
10147
10148
10149
10150
a946372e
AK
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
ec6a6fbe 10162
cac52ca4 10163
d3c8211f 10164
7e3fe830 10165
a5f46f6a
AK
10166
10167
10168
572fefeb 10169
90c80887 10170
3399ae32
AK
10171
10172
10173
10174
10175
90c80887 10176
bf456146 10177
e1b8a236 10178
0878503f 10179
8fea97b7 10180
54b362f9 10181
b1f08e51 10182
d1e8046f 10183
fea55602 10184
c89bc357 10185
6e5c1f75 10186
3ba4a195 10187
68f2de6d
AK
10188
10189
80992638 10190################################################################################
3ba4a195 10191ac_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 doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10192
ad6254c5 10193cat >confcache <<\_ACEOF
795ca3e5
AK
10194# This file is a shell script that caches the results of configure
10195# tests run on this system so they can be shared between configure
ad6254c5
AK
10196# scripts and configure runs, see configure's option --config-cache.
10197# It is not useful on other systems. If it contains results you don't
10198# want to keep, you may remove or edit it.
795ca3e5 10199#
ad6254c5
AK
10200# config.status only pays attention to the cache file if you give it
10201# the --recheck option to rerun configure.
795ca3e5 10202#
ad6254c5
AK
10203# `ac_cv_env_foo' variables (set or unset) will be overridden when
10204# loading this file, other *unset* `ac_cv_foo' will be assigned the
10205# following values.
10206
10207_ACEOF
10208
795ca3e5
AK
10209# The following way of writing the cache mishandles newlines in values,
10210# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10211# So, we kill variables containing newlines.
795ca3e5
AK
10212# Ultrix sh set writes to stderr and can't be redirected directly,
10213# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10214(
10215 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10216 eval ac_val=\$$ac_var
10217 case $ac_val in #(
10218 *${as_nl}*)
10219 case $ac_var in #(
f11781c5 10220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10221$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10222 esac
10223 case $ac_var in #(
10224 _ | IFS | as_nl) ;; #(
ec6a6fbe 10225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10226 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10227 esac ;;
10228 esac
10229 done
10230
ad6254c5 10231 (set) 2>&1 |
7a197a62
AK
10232 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10233 *${as_nl}ac_space=\ *)
f11781c5
AK
10234 # `set' does not quote correctly, so add quotes: double-quote
10235 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10236 sed -n \
8a2fc586
AK
10237 "s/'/'\\\\''/g;
10238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10239 ;; #(
ad6254c5
AK
10240 *)
10241 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10243 ;;
7a197a62
AK
10244 esac |
10245 sort
10246) |
ad6254c5 10247 sed '
7a197a62 10248 /^ac_cv_env_/b end
ad6254c5 10249 t clear
7a197a62 10250 :clear
ad6254c5
AK
10251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10252 t end
7a197a62
AK
10253 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10254 :end' >>confcache
10255if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10256 if test -w "$cache_file"; then
10257 test "x$cache_file" != "x/dev/null" &&
f11781c5 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10259$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10260 cat confcache >$cache_file
795ca3e5 10261 else
f11781c5 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10263$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10264 fi
10265fi
10266rm -f confcache
10267
795ca3e5
AK
10268test "x$prefix" = xNONE && prefix=$ac_default_prefix
10269# Let make expand exec_prefix.
10270test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10271
72b2cb61 10272DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10273
10274ac_libobjs=
10275ac_ltlibobjs=
f11781c5 10276U=
ad6254c5
AK
10277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10278 # 1. Remove the extension, and $U if already installed.
7a197a62 10279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10280 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10282 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10283 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10284 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10285done
10286LIBOBJS=$ac_libobjs
80992638 10287
ad6254c5
AK
10288LTLIBOBJS=$ac_ltlibobjs
10289
10290
10291
10292: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10293ac_write_fail=0
ad6254c5
AK
10294ac_clean_files_save=$ac_clean_files
10295ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10296{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10297$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10298as_write_fail=0
10299cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10300#! $SHELL
10301# Generated by $as_me.
795ca3e5 10302# Run this file to recreate the current configuration.
795ca3e5 10303# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10304# configure, is in config.log if it exists.
10305
10306debug=false
10307ac_cs_recheck=false
10308ac_cs_silent=false
ad6254c5 10309
f11781c5
AK
10310SHELL=\${CONFIG_SHELL-$SHELL}
10311export SHELL
10312_ASEOF
10313cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10314## -------------------- ##
10315## M4sh Initialization. ##
10316## -------------------- ##
ad6254c5 10317
25fbec5b
AK
10318# Be more Bourne compatible
10319DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10320if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10321 emulate sh
10322 NULLCMD=:
ec6a6fbe 10323 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10324 # is contrary to our usage. Disable this feature.
10325 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10326 setopt NO_GLOB_SUBST
10327else
f11781c5
AK
10328 case `(set -o) 2>/dev/null` in #(
10329 *posix*) :
10330 set -o posix ;; #(
10331 *) :
10332 ;;
25fbec5b 10333esac
7a197a62 10334fi
25fbec5b
AK
10335
10336
ec6a6fbe
AK
10337as_nl='
10338'
10339export as_nl
10340# Printing a long string crashes Solaris 7 /usr/bin/printf.
10341as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10342as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10343as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10344# Prefer a ksh shell builtin over an external printf program on Solaris,
10345# but without wasting forks for bash or zsh.
10346if test -z "$BASH_VERSION$ZSH_VERSION" \
10347 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10348 as_echo='print -r --'
10349 as_echo_n='print -rn --'
10350elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10351 as_echo='printf %s\n'
10352 as_echo_n='printf %s'
10353else
10354 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10355 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10356 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10357 else
ec6a6fbe
AK
10358 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10359 as_echo_n_body='eval
10360 arg=$1;
f11781c5 10361 case $arg in #(
ec6a6fbe
AK
10362 *"$as_nl"*)
10363 expr "X$arg" : "X\\(.*\\)$as_nl";
10364 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10365 esac;
10366 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10367 '
10368 export as_echo_n_body
10369 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10370 fi
ec6a6fbe
AK
10371 export as_echo_body
10372 as_echo='sh -c $as_echo_body as_echo'
10373fi
10374
10375# The user is always right.
10376if test "${PATH_SEPARATOR+set}" != set; then
10377 PATH_SEPARATOR=:
10378 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10379 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10380 PATH_SEPARATOR=';'
10381 }
ad6254c5
AK
10382fi
10383
ad6254c5 10384
7a197a62
AK
10385# IFS
10386# We need space, tab and new line, in precisely that order. Quoting is
10387# there to prevent editors from complaining about space-tab.
10388# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10389# splitting by setting IFS to empty value.)
7a197a62
AK
10390IFS=" "" $as_nl"
10391
10392# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10393case $0 in #((
7a197a62
AK
10394 *[\\/]* ) as_myself=$0 ;;
10395 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
f11781c5
AK
10400 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10401 done
7a197a62
AK
10402IFS=$as_save_IFS
10403
10404 ;;
10405esac
10406# We did not find ourselves, most probably we were run as `sh COMMAND'
10407# in which case we are not to be found in the path.
10408if test "x$as_myself" = x; then
10409 as_myself=$0
10410fi
10411if test ! -f "$as_myself"; then
ec6a6fbe 10412 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10413 exit 1
7a197a62
AK
10414fi
10415
f11781c5
AK
10416# Unset variables that we do not need and which cause bugs (e.g. in
10417# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10418# suppresses any "Segmentation fault" message there. '((' could
10419# trigger a bug in pdksh 5.2.14.
10420for as_var in BASH_ENV ENV MAIL MAILPATH
10421do eval test x\${$as_var+set} = xset \
10422 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10423done
ad6254c5
AK
10424PS1='$ '
10425PS2='> '
10426PS4='+ '
10427
10428# NLS nuisances.
ec6a6fbe
AK
10429LC_ALL=C
10430export LC_ALL
10431LANGUAGE=C
10432export LANGUAGE
8106cdd5 10433
f11781c5
AK
10434# CDPATH.
10435(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10436
10437
10438# as_fn_error STATUS ERROR [LINENO LOG_FD]
10439# ----------------------------------------
10440# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10441# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10442# script with STATUS, using 1 if that was 0.
10443as_fn_error ()
10444{
10445 as_status=$1; test $as_status -eq 0 && as_status=1
10446 if test "$4"; then
10447 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10448 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10449 fi
10450 $as_echo "$as_me: error: $2" >&2
10451 as_fn_exit $as_status
10452} # as_fn_error
10453
10454
10455# as_fn_set_status STATUS
10456# -----------------------
10457# Set $? to STATUS, without forking.
10458as_fn_set_status ()
10459{
10460 return $1
10461} # as_fn_set_status
10462
10463# as_fn_exit STATUS
10464# -----------------
10465# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10466as_fn_exit ()
10467{
10468 set +e
10469 as_fn_set_status $1
10470 exit $1
10471} # as_fn_exit
10472
10473# as_fn_unset VAR
10474# ---------------
10475# Portably unset VAR.
10476as_fn_unset ()
10477{
10478 { eval $1=; unset $1;}
10479}
10480as_unset=as_fn_unset
10481# as_fn_append VAR VALUE
10482# ----------------------
10483# Append the text in VALUE to the end of the definition contained in VAR. Take
10484# advantage of any shell optimizations that allow amortized linear growth over
10485# repeated appends, instead of the typical quadratic growth present in naive
10486# implementations.
10487if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10488 eval 'as_fn_append ()
10489 {
10490 eval $1+=\$2
10491 }'
10492else
10493 as_fn_append ()
10494 {
10495 eval $1=\$$1\$2
10496 }
10497fi # as_fn_append
10498
10499# as_fn_arith ARG...
10500# ------------------
10501# Perform arithmetic evaluation on the ARGs, and store the result in the
10502# global $as_val. Take advantage of shells that can avoid forks. The arguments
10503# must be portable across $(()) and expr.
10504if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10505 eval 'as_fn_arith ()
10506 {
10507 as_val=$(( $* ))
10508 }'
10509else
10510 as_fn_arith ()
10511 {
10512 as_val=`expr "$@" || test $? -eq 1`
10513 }
10514fi # as_fn_arith
10515
10516
7a197a62
AK
10517if expr a : '\(a\)' >/dev/null 2>&1 &&
10518 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10519 as_expr=expr
10520else
10521 as_expr=false
10522fi
8106cdd5 10523
7a197a62 10524if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10525 as_basename=basename
10526else
10527 as_basename=false
10528fi
10529
f11781c5
AK
10530if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10531 as_dirname=dirname
10532else
10533 as_dirname=false
10534fi
ad6254c5 10535
7a197a62 10536as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10537$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10538 X"$0" : 'X\(//\)$' \| \
7a197a62 10539 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10540$as_echo X/"$0" |
7a197a62
AK
10541 sed '/^.*\/\([^/][^/]*\)\/*$/{
10542 s//\1/
10543 q
10544 }
10545 /^X\/\(\/\/\)$/{
10546 s//\1/
10547 q
10548 }
10549 /^X\/\(\/\).*/{
10550 s//\1/
10551 q
10552 }
10553 s/.*/./; q'`
ad6254c5 10554
f11781c5
AK
10555# Avoid depending upon Character Ranges.
10556as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10557as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10558as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10559as_cr_digits='0123456789'
10560as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10561
10562ECHO_C= ECHO_N= ECHO_T=
f11781c5 10563case `echo -n x` in #(((((
7a197a62 10564-n*)
f11781c5 10565 case `echo 'xy\c'` in
7a197a62 10566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10567 xy) ECHO_C='\c';;
10568 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10569 ECHO_T=' ';;
7a197a62
AK
10570 esac;;
10571*)
10572 ECHO_N='-n';;
ad6254c5 10573esac
80992638 10574
ad6254c5 10575rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10576if test -d conf$$.dir; then
10577 rm -f conf$$.dir/conf$$.file
10578else
10579 rm -f conf$$.dir
ec6a6fbe
AK
10580 mkdir conf$$.dir 2>/dev/null
10581fi
10582if (echo >conf$$.file) 2>/dev/null; then
10583 if ln -s conf$$.file conf$$ 2>/dev/null; then
10584 as_ln_s='ln -s'
10585 # ... but there are two gotchas:
10586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10588 # In both cases, we have to default to `cp -p'.
10589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10590 as_ln_s='cp -p'
10591 elif ln conf$$.file conf$$ 2>/dev/null; then
10592 as_ln_s=ln
10593 else
ad6254c5 10594 as_ln_s='cp -p'
ec6a6fbe 10595 fi
ad6254c5
AK
10596else
10597 as_ln_s='cp -p'
10598fi
7a197a62
AK
10599rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10600rmdir conf$$.dir 2>/dev/null
8106cdd5 10601
f11781c5
AK
10602
10603# as_fn_mkdir_p
10604# -------------
10605# Create "$as_dir" as a directory, including parents if necessary.
10606as_fn_mkdir_p ()
10607{
10608
10609 case $as_dir in #(
10610 -*) as_dir=./$as_dir;;
10611 esac
10612 test -d "$as_dir" || eval $as_mkdir_p || {
10613 as_dirs=
10614 while :; do
10615 case $as_dir in #(
10616 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10617 *) as_qdir=$as_dir;;
10618 esac
10619 as_dirs="'$as_qdir' $as_dirs"
10620 as_dir=`$as_dirname -- "$as_dir" ||
10621$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10622 X"$as_dir" : 'X\(//\)[^/]' \| \
10623 X"$as_dir" : 'X\(//\)$' \| \
10624 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10625$as_echo X"$as_dir" |
10626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10627 s//\1/
10628 q
10629 }
10630 /^X\(\/\/\)[^/].*/{
10631 s//\1/
10632 q
10633 }
10634 /^X\(\/\/\)$/{
10635 s//\1/
10636 q
10637 }
10638 /^X\(\/\).*/{
10639 s//\1/
10640 q
10641 }
10642 s/.*/./; q'`
10643 test -d "$as_dir" && break
10644 done
10645 test -z "$as_dirs" || eval "mkdir $as_dirs"
10646 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10647
10648
10649} # as_fn_mkdir_p
ad6254c5 10650if mkdir -p . 2>/dev/null; then
f11781c5 10651 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10652else
8a2fc586 10653 test -d ./-p && rmdir ./-p
ad6254c5
AK
10654 as_mkdir_p=false
10655fi
10656
25fbec5b
AK
10657if test -x / >/dev/null 2>&1; then
10658 as_test_x='test -x'
7a197a62 10659else
25fbec5b
AK
10660 if ls -dL / >/dev/null 2>&1; then
10661 as_ls_L_option=L
10662 else
10663 as_ls_L_option=
10664 fi
10665 as_test_x='
10666 eval sh -c '\''
10667 if test -d "$1"; then
ec6a6fbe 10668 test -d "$1/.";
25fbec5b 10669 else
f11781c5 10670 case $1 in #(
ec6a6fbe 10671 -*)set "./$1";;
25fbec5b 10672 esac;
f11781c5 10673 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10674 ???[sx]*):;;*)false;;esac;fi
10675 '\'' sh
10676 '
7a197a62 10677fi
25fbec5b 10678as_executable_p=$as_test_x
ad6254c5
AK
10679
10680# Sed expression to map a string onto a valid CPP name.
8a2fc586 10681as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10682
10683# Sed expression to map a string onto a valid variable name.
8a2fc586 10684as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10685
10686
ad6254c5 10687exec 6>&1
f11781c5
AK
10688## ----------------------------------- ##
10689## Main body of $CONFIG_STATUS script. ##
10690## ----------------------------------- ##
10691_ASEOF
10692test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10693
f11781c5
AK
10694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10695# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10696# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10697# values after options handling.
10698ac_log="
ad6254c5 10699This file was extended by $as_me, which was
f11781c5 10700generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10701
10702 CONFIG_FILES = $CONFIG_FILES
10703 CONFIG_HEADERS = $CONFIG_HEADERS
10704 CONFIG_LINKS = $CONFIG_LINKS
10705 CONFIG_COMMANDS = $CONFIG_COMMANDS
10706 $ $0 $@
10707
7a197a62
AK
10708on `(hostname || uname -n) 2>/dev/null | sed 1q`
10709"
10710
ad6254c5
AK
10711_ACEOF
10712
ec6a6fbe
AK
10713case $ac_config_files in *"
10714"*) set x $ac_config_files; shift; ac_config_files=$*;;
10715esac
10716
10717case $ac_config_headers in *"
10718"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10719esac
10720
10721
10722cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10723# Files that config.status was made for.
68f2de6d
AK
10724config_files="$ac_config_files"
10725config_headers="$ac_config_headers"
ad6254c5 10726
7a197a62 10727_ACEOF
ad6254c5 10728
ec6a6fbe 10729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10730ac_cs_usage="\
f11781c5
AK
10731\`$as_me' instantiates files and other configuration actions
10732from templates according to the current configuration. Unless the files
10733and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10734
f11781c5 10735Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10736
10737 -h, --help print this help, then exit
25fbec5b 10738 -V, --version print version number and configuration settings, then exit
f11781c5 10739 --config print configuration, then exit
ec6a6fbe
AK
10740 -q, --quiet, --silent
10741 do not print progress messages
ad6254c5
AK
10742 -d, --debug don't remove temporary files
10743 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10744 --file=FILE[:TEMPLATE]
10745 instantiate the configuration file FILE
10746 --header=FILE[:TEMPLATE]
10747 instantiate the configuration header FILE
ad6254c5
AK
10748
10749Configuration files:
10750$config_files
10751
72b2cb61
AK
10752Configuration headers:
10753$config_headers
10754
f11781c5 10755Report bugs to the package provider."
ad6254c5 10756
7a197a62 10757_ACEOF
ec6a6fbe 10758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10759ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10760ac_cs_version="\\
10761config.status
f11781c5
AK
10762configured by $0, generated by GNU Autoconf 2.66,
10763 with options \\"\$ac_cs_config\\"
ad6254c5 10764
f11781c5 10765Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10766This config.status script is free software; the Free Software Foundation
10767gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10768
10769ac_pwd='$ac_pwd'
10770srcdir='$srcdir'
10771INSTALL='$INSTALL'
fddafd51 10772MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10773AWK='$AWK'
10774test -n "\$AWK" || AWK=awk
ad6254c5
AK
10775_ACEOF
10776
ec6a6fbe
AK
10777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10778# The default lists apply if the user does not specify any file.
ad6254c5
AK
10779ac_need_defaults=:
10780while test $# != 0
10781do
10782 case $1 in
10783 --*=*)
7a197a62
AK
10784 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10785 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10786 ac_shift=:
10787 ;;
7a197a62 10788 *)
ad6254c5
AK
10789 ac_option=$1
10790 ac_optarg=$2
10791 ac_shift=shift
10792 ;;
ad6254c5
AK
10793 esac
10794
10795 case $ac_option in
10796 # Handling of the options.
ad6254c5
AK
10797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10798 ac_cs_recheck=: ;;
7a197a62 10799 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10800 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10801 --config | --confi | --conf | --con | --co | --c )
10802 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10803 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10804 debug=: ;;
10805 --file | --fil | --fi | --f )
10806 $ac_shift
ec6a6fbe
AK
10807 case $ac_optarg in
10808 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10809 esac
f11781c5 10810 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10811 ac_need_defaults=false;;
10812 --header | --heade | --head | --hea )
10813 $ac_shift
ec6a6fbe
AK
10814 case $ac_optarg in
10815 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10816 esac
f11781c5 10817 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10818 ac_need_defaults=false;;
7a197a62
AK
10819 --he | --h)
10820 # Conflict between --help and --header
f11781c5
AK
10821 as_fn_error $? "ambiguous option: \`$1'
10822Try \`$0 --help' for more information.";;
7a197a62 10823 --help | --hel | -h )
ec6a6fbe 10824 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10825 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10826 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10827 ac_cs_silent=: ;;
10828
10829 # This is an error.
f11781c5
AK
10830 -*) as_fn_error $? "unrecognized option: \`$1'
10831Try \`$0 --help' for more information." ;;
ad6254c5 10832
f11781c5 10833 *) as_fn_append ac_config_targets " $1"
7a197a62 10834 ac_need_defaults=false ;;
ad6254c5
AK
10835
10836 esac
10837 shift
10838done
10839
10840ac_configure_extra_args=
10841
10842if $ac_cs_silent; then
10843 exec 6>/dev/null
10844 ac_configure_extra_args="$ac_configure_extra_args --silent"
10845fi
10846
10847_ACEOF
ec6a6fbe 10848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10849if \$ac_cs_recheck; then
ec6a6fbe
AK
10850 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10851 shift
10852 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10853 CONFIG_SHELL='$SHELL'
7a197a62 10854 export CONFIG_SHELL
ec6a6fbe 10855 exec "\$@"
ad6254c5
AK
10856fi
10857
10858_ACEOF
ec6a6fbe 10859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10860exec 5>>config.log
10861{
10862 echo
10863 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10864## Running $as_me. ##
10865_ASBOX
ec6a6fbe 10866 $as_echo "$ac_log"
7a197a62 10867} >&5
ad6254c5 10868
7a197a62 10869_ACEOF
ec6a6fbe 10870cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10871_ACEOF
ad6254c5 10872
ec6a6fbe 10873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10874
10875# Handling of arguments.
ad6254c5
AK
10876for ac_config_target in $ac_config_targets
10877do
7a197a62
AK
10878 case $ac_config_target in
10879 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10880 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10881 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10882 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10883 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10884 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
10885 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10886 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10887 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10888 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 10889 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
10890 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10891 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 10892 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 10893 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 10894 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
10895 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10896 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
10897 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10898 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10899 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10900 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 10901 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 10902 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 10903 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 10904 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 10905 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
93bd259b
AK
10906 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10907 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 10908 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 10909 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
10910 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10911 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 10912 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 10913 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 10914 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
10915 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10916 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 10917 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 10918 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 10919 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 10920 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 10921 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
10922 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10923 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 10924 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 10925
f11781c5 10926 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 10927 esac
ad6254c5
AK
10928done
10929
7a197a62 10930
ad6254c5
AK
10931# If the user did not use the arguments to specify the items to instantiate,
10932# then the envvar interface is used. Set only those that are not.
10933# We use the long form for the default assignment because of an extremely
10934# bizarre bug on SunOS 4.1.3.
10935if $ac_need_defaults; then
10936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 10937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
10938fi
10939
10940# Have a temporary directory for convenience. Make it in the build tree
7a197a62 10941# simply because there is no reason against having it here, and in addition,
ad6254c5 10942# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
10943# Hook for its removal unless debugging.
10944# Note that there is a small window in which the directory will not be cleaned:
10945# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
10946$debug ||
10947{
7a197a62
AK
10948 tmp=
10949 trap 'exit_status=$?
10950 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10951' 0
f11781c5 10952 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 10953}
ad6254c5
AK
10954# Create a (secure) tmp directory for tmp files.
10955
10956{
7a197a62 10957 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
10958 test -n "$tmp" && test -d "$tmp"
10959} ||
10960{
7a197a62
AK
10961 tmp=./conf$$-$RANDOM
10962 (umask 077 && mkdir "$tmp")
f11781c5 10963} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 10964
ec6a6fbe
AK
10965# Set up the scripts for CONFIG_FILES section.
10966# No need to generate them if there are no CONFIG_FILES.
10967# This happens for instance with `./config.status config.h'.
1995c9ff 10968if test -n "$CONFIG_FILES"; then
7a197a62 10969
68f2de6d 10970
f11781c5
AK
10971ac_cr=`echo X | tr X '\015'`
10972# On cygwin, bash can eat \r inside `` if the user requested igncr.
10973# But we know of no other shell where ac_cr would be empty at this
10974# point, so we can use a bashism as a fallback.
10975if test "x$ac_cr" = x; then
10976 eval ac_cr=\$\'\\r\'
10977fi
ec6a6fbe
AK
10978ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10979if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10980 ac_cs_awk_cr='\\r'
10981else
10982 ac_cs_awk_cr=$ac_cr
1995c9ff 10983fi
7a197a62 10984
ec6a6fbe 10985echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 10986_ACEOF
7a197a62 10987
8106cdd5 10988
ec6a6fbe
AK
10989{
10990 echo "cat >conf$$subs.awk <<_ACEOF" &&
10991 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10992 echo "_ACEOF"
10993} >conf$$subs.sh ||
f11781c5
AK
10994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10995ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
10996ac_delim='%!_!# '
10997for ac_last_try in false false false false false :; do
ec6a6fbe 10998 . ./conf$$subs.sh ||
f11781c5 10999 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11000
11001 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11002 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11003 break
11004 elif $ac_last_try; then
f11781c5 11005 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11006 else
11007 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11008 fi
11009done
ec6a6fbe
AK
11010rm -f conf$$subs.sh
11011
11012cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11013cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11014_ACEOF
11015sed -n '
11016h
11017s/^/S["/; s/!.*/"]=/
11018p
11019g
11020s/^[^!]*!//
11021:repl
11022t repl
11023s/'"$ac_delim"'$//
11024t delim
11025:nl
11026h
f11781c5 11027s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11028t more1
11029s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11030p
11031n
11032b repl
11033:more1
11034s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11035p
11036g
11037s/.\{148\}//
11038t nl
11039:delim
11040h
f11781c5 11041s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11042t more2
11043s/["\\]/\\&/g; s/^/"/; s/$/"/
11044p
11045b
11046:more2
11047s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11048p
11049g
11050s/.\{148\}//
11051t delim
11052' <conf$$subs.awk | sed '
11053/^[^""]/{
11054 N
11055 s/\n//
11056}
11057' >>$CONFIG_STATUS || ac_write_fail=1
11058rm -f conf$$subs.awk
11059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11060_ACAWK
11061cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11062 for (key in S) S_is_set[key] = 1
11063 FS = "\a"
7a197a62 11064
ec6a6fbe
AK
11065}
11066{
11067 line = $ 0
11068 nfields = split(line, field, "@")
11069 substed = 0
11070 len = length(field[1])
11071 for (i = 2; i < nfields; i++) {
11072 key = field[i]
11073 keylen = length(key)
11074 if (S_is_set[key]) {
11075 value = S[key]
11076 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11077 len += length(value) + length(field[++i])
11078 substed = 1
11079 } else
11080 len += 1 + keylen
11081 }
11082
11083 print line
11084}
fddafd51 11085
ec6a6fbe 11086_ACAWK
1995c9ff 11087_ACEOF
ec6a6fbe
AK
11088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11089if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11090 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11091else
11092 cat
11093fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11094 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11095_ACEOF
11096
f11781c5
AK
11097# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11098# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11099# trailing colons and then remove the whole line if VPATH becomes empty
11100# (actually we leave an empty line to preserve line numbers).
11101if test "x$srcdir" = x.; then
f11781c5
AK
11102 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11103h
11104s///
11105s/^/:/
11106s/[ ]*$/:/
11107s/:\$(srcdir):/:/g
11108s/:\${srcdir}:/:/g
11109s/:@srcdir@:/:/g
11110s/^:*//
7a197a62 11111s/:*$//
f11781c5
AK
11112x
11113s/\(=[ ]*\).*/\1/
11114G
11115s/\n//
7a197a62
AK
11116s/^[^=]*=[ ]*$//
11117}'
11118fi
11119
ec6a6fbe 11120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11121fi # test -n "$CONFIG_FILES"
11122
ec6a6fbe
AK
11123# Set up the scripts for CONFIG_HEADERS section.
11124# No need to generate them if there are no CONFIG_HEADERS.
11125# This happens for instance with `./config.status Makefile'.
11126if test -n "$CONFIG_HEADERS"; then
11127cat >"$tmp/defines.awk" <<\_ACAWK ||
11128BEGIN {
11129_ACEOF
11130
11131# Transform confdefs.h into an awk script `defines.awk', embedded as
11132# here-document in config.status, that substitutes the proper values into
11133# config.h.in to produce config.h.
11134
11135# Create a delimiter string that does not exist in confdefs.h, to ease
11136# handling of long lines.
11137ac_delim='%!_!# '
11138for ac_last_try in false false :; do
11139 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11140 if test -z "$ac_t"; then
11141 break
11142 elif $ac_last_try; then
f11781c5 11143 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11144 else
11145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11146 fi
11147done
11148
11149# For the awk script, D is an array of macro values keyed by name,
11150# likewise P contains macro parameters if any. Preserve backslash
11151# newline sequences.
11152
11153ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11154sed -n '
11155s/.\{148\}/&'"$ac_delim"'/g
11156t rset
11157:rset
11158s/^[ ]*#[ ]*define[ ][ ]*/ /
11159t def
11160d
11161:def
11162s/\\$//
11163t bsnl
11164s/["\\]/\\&/g
11165s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11166D["\1"]=" \3"/p
11167s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11168d
11169:bsnl
11170s/["\\]/\\&/g
11171s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11172D["\1"]=" \3\\\\\\n"\\/p
11173t cont
11174s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11175t cont
11176d
11177:cont
11178n
11179s/.\{148\}/&'"$ac_delim"'/g
11180t clear
11181:clear
11182s/\\$//
11183t bsnlc
11184s/["\\]/\\&/g; s/^/"/; s/$/"/p
11185d
11186:bsnlc
11187s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11188b cont
11189' <confdefs.h | sed '
11190s/'"$ac_delim"'/"\\\
11191"/g' >>$CONFIG_STATUS || ac_write_fail=1
11192
11193cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11194 for (key in D) D_is_set[key] = 1
11195 FS = "\a"
11196}
11197/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11198 line = \$ 0
11199 split(line, arg, " ")
11200 if (arg[1] == "#") {
11201 defundef = arg[2]
11202 mac1 = arg[3]
11203 } else {
11204 defundef = substr(arg[1], 2)
11205 mac1 = arg[2]
11206 }
11207 split(mac1, mac2, "(") #)
11208 macro = mac2[1]
11209 prefix = substr(line, 1, index(line, defundef) - 1)
11210 if (D_is_set[macro]) {
11211 # Preserve the white space surrounding the "#".
11212 print prefix "define", macro P[macro] D[macro]
11213 next
11214 } else {
11215 # Replace #undef with comments. This is necessary, for example,
11216 # in the case of _POSIX_SOURCE, which is predefined and required
11217 # on some systems where configure will not decide to define it.
11218 if (defundef == "undef") {
11219 print "/*", prefix defundef, macro, "*/"
11220 next
11221 }
11222 }
11223}
11224{ print }
11225_ACAWK
11226_ACEOF
11227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11228 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11229fi # test -n "$CONFIG_HEADERS"
11230
7a197a62 11231
ec6a6fbe
AK
11232eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11233shift
11234for ac_tag
7a197a62
AK
11235do
11236 case $ac_tag in
11237 :[FHLC]) ac_mode=$ac_tag; continue;;
11238 esac
11239 case $ac_mode$ac_tag in
11240 :[FHL]*:*);;
f11781c5 11241 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11242 :[FH]-) ac_tag=-:-;;
11243 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11244 esac
11245 ac_save_IFS=$IFS
11246 IFS=:
11247 set x $ac_tag
11248 IFS=$ac_save_IFS
11249 shift
11250 ac_file=$1
11251 shift
11252
11253 case $ac_mode in
11254 :L) ac_source=$1;;
11255 :[FH])
11256 ac_file_inputs=
11257 for ac_f
11258 do
11259 case $ac_f in
11260 -) ac_f="$tmp/stdin";;
11261 *) # Look for the file first in the build tree, then in the source tree
11262 # (if the path is not absolute). The absolute path cannot be DOS-style,
11263 # because $ac_f cannot contain `:'.
11264 test -f "$ac_f" ||
11265 case $ac_f in
11266 [\\/$]*) false;;
11267 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11268 esac ||
f11781c5 11269 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11270 esac
ec6a6fbe 11271 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11272 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11273 done
11274
11275 # Let's still pretend it is `configure' which instantiates (i.e., don't
11276 # use $as_me), people would be surprised to read:
11277 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11278 configure_input='Generated from '`
11279 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11280 `' by configure.'
7a197a62
AK
11281 if test x"$ac_file" != x-; then
11282 configure_input="$ac_file. $configure_input"
f11781c5 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11284$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11285 fi
ec6a6fbe
AK
11286 # Neutralize special characters interpreted by sed in replacement strings.
11287 case $configure_input in #(
11288 *\&* | *\|* | *\\* )
11289 ac_sed_conf_input=`$as_echo "$configure_input" |
11290 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11291 *) ac_sed_conf_input=$configure_input;;
11292 esac
7a197a62
AK
11293
11294 case $ac_tag in
ec6a6fbe 11295 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11296 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11297 esac
11298 ;;
80992638 11299 esac
8106cdd5 11300
7a197a62 11301 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11302$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11303 X"$ac_file" : 'X\(//\)[^/]' \| \
11304 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11306$as_echo X"$ac_file" |
7a197a62
AK
11307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11308 s//\1/
11309 q
11310 }
11311 /^X\(\/\/\)[^/].*/{
11312 s//\1/
11313 q
11314 }
11315 /^X\(\/\/\)$/{
11316 s//\1/
11317 q
11318 }
11319 /^X\(\/\).*/{
11320 s//\1/
11321 q
11322 }
11323 s/.*/./; q'`
f11781c5 11324 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11325 ac_builddir=.
11326
7a197a62
AK
11327case "$ac_dir" in
11328.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11329*)
ec6a6fbe 11330 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11331 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11332 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11333 case $ac_top_builddir_sub in
11334 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11335 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11336 esac ;;
11337esac
11338ac_abs_top_builddir=$ac_pwd
11339ac_abs_builddir=$ac_pwd$ac_dir_suffix
11340# for backward compatibility:
11341ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11342
11343case $srcdir in
7a197a62 11344 .) # We are building in place.
ad6254c5 11345 ac_srcdir=.
7a197a62
AK
11346 ac_top_srcdir=$ac_top_builddir_sub
11347 ac_abs_top_srcdir=$ac_pwd ;;
11348 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11349 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11350 ac_top_srcdir=$srcdir
11351 ac_abs_top_srcdir=$srcdir ;;
11352 *) # Relative name.
11353 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11354 ac_top_srcdir=$ac_top_build_prefix$srcdir
11355 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11356esac
7a197a62 11357ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11358
ad6254c5 11359
7a197a62
AK
11360 case $ac_mode in
11361 :F)
11362 #
11363 # CONFIG_FILE
11364 #
ad6254c5
AK
11365
11366 case $INSTALL in
11367 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11368 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11369 esac
fddafd51
ZK
11370 ac_MKDIR_P=$MKDIR_P
11371 case $MKDIR_P in
11372 [\\/$]* | ?:[\\/]* ) ;;
11373 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11374 esac
7a197a62 11375_ACEOF
795ca3e5 11376
ec6a6fbe 11377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11378# If the template does not know about datarootdir, expand it.
11379# FIXME: This hack should be removed a few years after 2.60.
11380ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11381ac_sed_dataroot='
11382/datarootdir/ {
7a197a62
AK
11383 p
11384 q
11385}
11386/@datadir@/p
11387/@docdir@/p
11388/@infodir@/p
11389/@localedir@/p
f11781c5 11390/@mandir@/p'
ec6a6fbe 11391case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11392*datarootdir*) ac_datarootdir_seen=yes;;
11393*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11395$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11396_ACEOF
ec6a6fbe 11397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11398 ac_datarootdir_hack='
11399 s&@datadir@&$datadir&g
11400 s&@docdir@&$docdir&g
11401 s&@infodir@&$infodir&g
11402 s&@localedir@&$localedir&g
11403 s&@mandir@&$mandir&g
f11781c5 11404 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11405esac
11406_ACEOF
11407
11408# Neutralize VPATH when `$srcdir' = `.'.
11409# Shell code in configure.ac might set extrasub.
11410# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11412ac_sed_extra="$ac_vpsub
ad6254c5
AK
11413$extrasub
11414_ACEOF
ec6a6fbe 11415cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11416:t
11417/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11418s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11419s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11420s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11421s&@srcdir@&$ac_srcdir&;t t
11422s&@abs_srcdir@&$ac_abs_srcdir&;t t
11423s&@top_srcdir@&$ac_top_srcdir&;t t
11424s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11425s&@builddir@&$ac_builddir&;t t
11426s&@abs_builddir@&$ac_abs_builddir&;t t
11427s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11428s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11429s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11430$ac_datarootdir_hack
ec6a6fbe
AK
11431"
11432eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11434
11435test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11436 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11437 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11439which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11440$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11441which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11442
11443 rm -f "$tmp/stdin"
72b2cb61 11444 case $ac_file in
ec6a6fbe
AK
11445 -) cat "$tmp/out" && rm -f "$tmp/out";;
11446 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11447 esac \
f11781c5 11448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11449 ;;
11450 :H)
11451 #
11452 # CONFIG_HEADER
11453 #
72b2cb61 11454 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11455 {
11456 $as_echo "/* $configure_input */" \
11457 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11458 } >"$tmp/config.h" \
f11781c5 11459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11460 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11462$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11463 else
ec6a6fbe
AK
11464 rm -f "$ac_file"
11465 mv "$tmp/config.h" "$ac_file" \
f11781c5 11466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11467 fi
11468 else
ec6a6fbe
AK
11469 $as_echo "/* $configure_input */" \
11470 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11471 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11472 fi
7a197a62
AK
11473 ;;
11474
11475
11476 esac
11477
11478done # for ac_tag
795ca3e5 11479
795ca3e5 11480
f11781c5 11481as_fn_exit 0
ad6254c5 11482_ACEOF
ad6254c5
AK
11483ac_clean_files=$ac_clean_files_save
11484
ec6a6fbe 11485test $ac_write_fail = 0 ||
f11781c5 11486 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11487
ad6254c5
AK
11488
11489# configure is writing to config.log, and then calls config.status.
11490# config.status does its own redirection, appending to config.log.
11491# Unfortunately, on DOS this fails, as config.log is still kept open
11492# by configure, so config.status won't be able to write to it; its
11493# output is simply discarded. So we exec the FD to /dev/null,
11494# effectively closing config.log, so it can be properly (re)opened and
11495# appended to by config.status. When coming back to configure, we
11496# need to make the FD available again.
11497if test "$no_create" != yes; then
11498 ac_cs_success=:
11499 ac_config_status_args=
11500 test "$silent" = yes &&
11501 ac_config_status_args="$ac_config_status_args --quiet"
11502 exec 5>/dev/null
11503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11504 exec 5>>config.log
11505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11506 # would make configure fail if this is the last instruction.
f11781c5 11507 $ac_cs_success || as_fn_exit 1
ad6254c5 11508fi
ec6a6fbe 11509if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11511$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11512fi
795ca3e5 11513
2dc95e1c
AK
11514
11515if test x$ODIRECT != xyes; then
f11781c5 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11517$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11518fi
This page took 1.813561 seconds and 5 git commands to generate.