]> sourceware.org Git - lvm2.git/blame - configure
Add a unit test for dm_config_clone_node.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 443
f11781c5
AK
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
6e5c1f75 606DMEVENTD_PIDFILE
23b059e7 607WRITE_INSTALL
0878503f 608UDEV_SYNC
a5f46f6a 609UDEV_RULES
f7f0854e 610UDEV_PC
3ba4a195 611THIN
54b362f9 612TESTING
ec6a6fbe
AK
613STATIC_LINK
614STATICDIR
615SNAPSHOTS
f7f0854e 616SELINUX_PC
e1b8a236 617SELINUX_LIBS
cac52ca4 618REPLICATORS
539f4a77 619READLINE_LIBS
cac52ca4 620RAID
f30875db 621PTHREAD_LIBS
ec6a6fbe
AK
622POOL
623PKGCONFIG
606d0858 624OCFDIR
37ddf259 625OCF
ec6a6fbe
AK
626MIRRORS
627LVM_RELEASE_DATE
628LVM_RELEASE
d2c11605 629LVM_PATH
ec6a6fbe
AK
630LVM_PATCHLEVEL
631LVM_MINOR
632LVM_MAJOR
bf456146 633LVM_LIBAPI
ec6a6fbe 634LVM_VERSION
ec6a6fbe
AK
635LVM1_FALLBACK
636LVM1
637LOCALEDIR
638LIB_SUFFIX
639LDDEPS
640JOBS
641INTL_PACKAGE
642INTL
ec6a6fbe
AK
643HAVE_REALTIME
644HAVE_LIBDL
ec6a6fbe 645FSADM
bf09a320 646ELDFLAGS
ec6a6fbe
AK
647DM_LIB_PATCHLEVEL
648DM_LIB_VERSION
649DM_IOCTLS
650DM_DEVICE_UID
651DM_DEVICE_MODE
652DM_DEVICE_GID
653DM_COMPAT
d1e8046f 654DMEVENTD_PATH
ec6a6fbe 655DMEVENTD
19a2c6e0 656DL_LIBS
ec6a6fbe 657DEVMAPPER
b1f08e51 658DEFAULT_RUN_DIR
3399ae32 659DEFAULT_LOCK_DIR
fea55602 660DEFAULT_DATA_ALIGNMENT
3399ae32
AK
661DEFAULT_CACHE_SUBDIR
662DEFAULT_BACKUP_SUBDIR
663DEFAULT_ARCHIVE_SUBDIR
664DEFAULT_SYS_DIR
ec6a6fbe
AK
665DEBUG
666COPTIMISE_FLAG
e2997b73 667CONFDIR
ec6a6fbe 668CMDLIB
d2c11605 669CLVMD_PATH
c89bc357 670CLVMD_CMANAGERS
ec6a6fbe
AK
671CLVMD
672CLUSTER
673CLDWHOLEARCHIVE
674CLDNOWHOLEARCHIVE
675CLDFLAGS
cdd50823 676BUILD_LVMETAD
ec6a6fbe 677BUILD_DMEVENTD
66fd4529 678BUILD_CMIRRORD
572fefeb 679APPLIB
ec6a6fbe
AK
680MODPROBE_CMD
681MSGFMT
682LVM2CMD_LIB
572fefeb 683LVM2APP_LIB
d93275eb
PR
684UDEV_LIBS
685UDEV_CFLAGS
fd4728e1 686GENPNG
ec6a6fbe
AK
687GENHTML
688LCOV
90c80887
AK
689SACKPT_LIBS
690SACKPT_CFLAGS
a946372e
AK
691DLM_LIBS
692DLM_CFLAGS
e2997b73
AK
693CPG_LIBS
694CPG_CFLAGS
695CONFDB_LIBS
696CONFDB_CFLAGS
a946372e
AK
697SALCK_LIBS
698SALCK_CFLAGS
e2997b73
AK
699QUORUM_LIBS
700QUORUM_CFLAGS
a946372e
AK
701COROSYNC_LIBS
702COROSYNC_CFLAGS
703CMAN_LIBS
704CMAN_CFLAGS
a946372e
AK
705PKGCONFIGINIT_LIBS
706PKGCONFIGINIT_CFLAGS
f11781c5
AK
707PKG_CONFIG_LIBDIR
708PKG_CONFIG_PATH
e2997b73 709PKG_CONFIG
ec6a6fbe
AK
710POW_LIB
711LIBOBJS
712ALLOCA
713CSCOPE_CMD
714CFLOW_CMD
715RANLIB
716MKDIR_P
717SET_MAKE
718LN_S
719INSTALL_DATA
720INSTALL_SCRIPT
721INSTALL_PROGRAM
722EGREP
723GREP
724CPP
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732AWK
733SED
734target_os
735target_vendor
736target_cpu
737target
738host_os
739host_vendor
740host_cpu
741host
742build_os
743build_vendor
744build_cpu
745build
746target_alias
747host_alias
748build_alias
749LIBS
750ECHO_T
751ECHO_N
752ECHO_C
753DEFS
754mandir
755localedir
756libdir
757psdir
758pdfdir
759dvidir
760htmldir
761infodir
762docdir
763oldincludedir
764includedir
765localstatedir
766sharedstatedir
767sysconfdir
768datadir
769datarootdir
770libexecdir
771sbindir
772bindir
773program_transform_name
774prefix
775exec_prefix
f11781c5 776PACKAGE_URL
ec6a6fbe
AK
777PACKAGE_BUGREPORT
778PACKAGE_STRING
779PACKAGE_VERSION
780PACKAGE_TARNAME
781PACKAGE_NAME
782PATH_SEPARATOR
783SHELL'
ad6254c5 784ac_subst_files=''
ec6a6fbe
AK
785ac_user_opts='
786enable_option_checking
787enable_static_link
788with_user
789with_group
790with_device_uid
791with_device_gid
792with_device_mode
d0df875d 793with_device_nodes_on
ec6a6fbe
AK
794enable_lvm1_fallback
795with_lvm1
796with_pool
797with_cluster
798with_snapshots
799with_mirrors
cac52ca4 800with_raid
8fea97b7 801with_replicators
3ba4a195 802with_thin
ec6a6fbe
AK
803enable_readline
804enable_realtime
37ddf259 805enable_ocf
606d0858 806with_ocfdir
ec6a6fbe 807with_clvmd
8c4e8a18 808with_clvmd_pidfile
66fd4529
AK
809enable_cmirrord
810with_cmirrord_pidfile
ec6a6fbe
AK
811enable_debug
812with_optimisation
813enable_profiling
54b362f9 814enable_testing
d1e8046f 815enable_valgrind_pool
ec6a6fbe 816enable_devmapper
cdd50823 817enable_lvmetad
a5f46f6a
AK
818enable_udev_sync
819enable_udev_rules
ec6a6fbe 820enable_compat
95eaa683 821enable_units_compat
ec6a6fbe
AK
822enable_ioctl
823enable_o_direct
572fefeb 824enable_applib
ec6a6fbe
AK
825enable_cmdlib
826enable_pkgconfig
23b059e7 827enable_write_install
ec6a6fbe
AK
828enable_fsadm
829enable_dmeventd
830enable_selinux
831enable_nls
832with_localedir
833with_confdir
834with_staticdir
835with_usrlibdir
836with_usrsbindir
a5f46f6a 837with_udev_prefix
78ce7acc 838with_udevdir
ec6a6fbe
AK
839with_dmeventd_pidfile
840with_dmeventd_path
8bae0a1e 841with_default_run_dir
3399ae32
AK
842with_default_system_dir
843with_default_archive_subdir
844with_default_backup_subdir
845with_default_cache_subdir
846with_default_locking_dir
fea55602 847with_default_data_alignment
ec6a6fbe
AK
848with_interface
849'
7a197a62
AK
850 ac_precious_vars='build_alias
851host_alias
852target_alias
853CC
854CFLAGS
855LDFLAGS
25fbec5b 856LIBS
7a197a62 857CPPFLAGS
e2997b73
AK
858CPP
859PKG_CONFIG
f11781c5
AK
860PKG_CONFIG_PATH
861PKG_CONFIG_LIBDIR
a946372e
AK
862PKGCONFIGINIT_CFLAGS
863PKGCONFIGINIT_LIBS
a946372e
AK
864CMAN_CFLAGS
865CMAN_LIBS
866COROSYNC_CFLAGS
867COROSYNC_LIBS
e2997b73
AK
868QUORUM_CFLAGS
869QUORUM_LIBS
a946372e
AK
870SALCK_CFLAGS
871SALCK_LIBS
e2997b73
AK
872CONFDB_CFLAGS
873CONFDB_LIBS
874CPG_CFLAGS
a946372e
AK
875CPG_LIBS
876DLM_CFLAGS
90c80887
AK
877DLM_LIBS
878SACKPT_CFLAGS
d93275eb
PR
879SACKPT_LIBS
880UDEV_CFLAGS
881UDEV_LIBS'
7a197a62 882
795ca3e5
AK
883
884# Initialize some variables set by options.
ad6254c5
AK
885ac_init_help=
886ac_init_version=false
ec6a6fbe
AK
887ac_unrecognized_opts=
888ac_unrecognized_sep=
795ca3e5
AK
889# The variables have the same names as the options, with
890# dashes changed to underlines.
ad6254c5 891cache_file=/dev/null
795ca3e5 892exec_prefix=NONE
795ca3e5 893no_create=
795ca3e5
AK
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
795ca3e5
AK
902verbose=
903x_includes=NONE
904x_libraries=NONE
ad6254c5
AK
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 911# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
7a197a62
AK
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
795ca3e5
AK
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
795ca3e5
AK
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
7a197a62
AK
922docdir='${datarootdir}/doc/${PACKAGE}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
795ca3e5 931
795ca3e5 932ac_prev=
7a197a62 933ac_dashdash=
795ca3e5
AK
934for ac_option
935do
795ca3e5
AK
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
7a197a62 938 eval $ac_prev=\$ac_option
795ca3e5
AK
939 ac_prev=
940 continue
941 fi
942
7a197a62
AK
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
795ca3e5
AK
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
7a197a62
AK
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
795ca3e5
AK
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 957 bindir=$ac_optarg ;;
795ca3e5
AK
958
959 -build | --build | --buil | --bui | --bu)
ad6254c5 960 ac_prev=build_alias ;;
795ca3e5 961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 962 build_alias=$ac_optarg ;;
795ca3e5
AK
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
795ca3e5 973
7a197a62 974 -datadir | --datadir | --datadi | --datad)
795ca3e5 975 ac_prev=datadir ;;
7a197a62 976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 977 datadir=$ac_optarg ;;
795ca3e5 978
7a197a62
AK
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
795ca3e5 986 -disable-* | --disable-*)
ec6a6fbe 987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 988 # Reject names that are not valid shell variable names.
ec6a6fbe 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 990 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995"enable_$ac_useropt"
996"*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
7a197a62
AK
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
795ca3e5
AK
1011
1012 -enable-* | --enable-*)
ec6a6fbe 1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1014 # Reject names that are not valid shell variable names.
ec6a6fbe 1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1016 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
ad6254c5 1035 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
ad6254c5
AK
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
795ca3e5
AK
1047
1048 -host | --host | --hos | --ho)
ad6254c5 1049 ac_prev=host_alias ;;
795ca3e5 1050 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1051 host_alias=$ac_optarg ;;
795ca3e5 1052
7a197a62
AK
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
795ca3e5
AK
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1064 includedir=$ac_optarg ;;
795ca3e5
AK
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1069 infodir=$ac_optarg ;;
795ca3e5
AK
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1074 libdir=$ac_optarg ;;
795ca3e5
AK
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1081 libexecdir=$ac_optarg ;;
795ca3e5 1082
7a197a62
AK
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
795ca3e5 1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1089 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1093 localstatedir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1098 mandir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1105 | --no-cr | --no-c | -n)
795ca3e5
AK
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1119 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1124 prefix=$ac_optarg ;;
795ca3e5
AK
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1131 program_prefix=$ac_optarg ;;
795ca3e5
AK
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1138 program_suffix=$ac_optarg ;;
795ca3e5
AK
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1155 program_transform_name=$ac_optarg ;;
795ca3e5 1156
7a197a62
AK
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
795ca3e5
AK
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
ad6254c5 1175 sbindir=$ac_optarg ;;
795ca3e5
AK
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
ad6254c5 1186 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
ad6254c5 1191 site=$ac_optarg ;;
795ca3e5
AK
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1196 srcdir=$ac_optarg ;;
795ca3e5
AK
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1203 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1206 ac_prev=target_alias ;;
795ca3e5 1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1208 target_alias=$ac_optarg ;;
795ca3e5
AK
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
ad6254c5
AK
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
795ca3e5
AK
1215
1216 -with-* | --with-*)
ec6a6fbe 1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1218 # Reject names that are not valid shell variable names.
ec6a6fbe 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1220 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1231
1232 -without-* | --without-*)
ec6a6fbe 1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1234 # Reject names that are not valid shell variable names.
ec6a6fbe 1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1236 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241"with_$ac_useropt"
1242"*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
795ca3e5
AK
1247
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1251
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1257 x_includes=$ac_optarg ;;
795ca3e5
AK
1258
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1264 x_libraries=$ac_optarg ;;
795ca3e5 1265
f11781c5
AK
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267Try \`$0 --help' for more information"
795ca3e5
AK
1268 ;;
1269
ad6254c5
AK
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
f11781c5
AK
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 esac
7a197a62 1277 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1278 export $ac_envvar ;;
1279
795ca3e5 1280 *)
ad6254c5 1281 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1286 ;;
1287
1288 esac
1289done
1290
1291if test -n "$ac_prev"; then
ad6254c5 1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1293 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1294fi
795ca3e5 1295
ec6a6fbe
AK
1296if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
f11781c5 1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1302fi
1303
1304# Check all directory arguments for consistency.
7a197a62
AK
1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
795ca3e5 1309do
7a197a62 1310 eval ac_val=\$$ac_var
ec6a6fbe
AK
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
ad6254c5 1318 case $ac_val in
7a197a62
AK
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1321 esac
f11781c5 1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1323done
1324
ad6254c5
AK
1325# There might be people who depend on the old broken behavior: `$host'
1326# used to hold the argument of --host etc.
1327# FIXME: To remove some day.
1328build=$build_alias
1329host=$host_alias
1330target=$target_alias
1331
1332# FIXME: To remove some day.
1333if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
f11781c5
AK
1336 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341fi
8106cdd5 1342
ad6254c5
AK
1343ac_tool_prefix=
1344test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346test "$silent" = yes && exec 6>/dev/null
795ca3e5 1347
795ca3e5 1348
7a197a62
AK
1349ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350ac_ls_di=`ls -di .` &&
1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1352 as_fn_error $? "working directory cannot be determined"
7a197a62 1353test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1354 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1355
1356
795ca3e5
AK
1357# Find the source files, if location was not specified.
1358if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
7a197a62 1360 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366$as_echo X"$as_myself" |
7a197a62
AK
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\).*/{
1380 s//\1/
1381 q
1382 }
1383 s/.*/./; q'`
795ca3e5 1384 srcdir=$ac_confdir
7a197a62 1385 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1386 srcdir=..
1387 fi
1388else
1389 ac_srcdir_defaulted=no
1390fi
7a197a62
AK
1391if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1394fi
7a197a62
AK
1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396ac_abs_confdir=`(
f11781c5 1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1398 pwd)`
1399# When building in place, set srcdir=.
1400if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402fi
1403# Remove unnecessary trailing slashes from srcdir.
1404# Double slashes in file names in object file debugging info
1405# mess up M-x gdb in Emacs.
1406case $srcdir in
1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408esac
1409for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414done
ad6254c5
AK
1415
1416#
1417# Report the --help message.
1418#
1419if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423\`configure' configures this package to adapt to many kinds of systems.
1424
1425Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430Defaults for the options are specified in brackets.
1431
1432Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
f11781c5 1437 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442
ad6254c5
AK
1443Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1445 [$ac_default_prefix]
ad6254c5 1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1447 [PREFIX]
ad6254c5
AK
1448
1449By default, \`make install' will install all the files in
1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452for instance \`--prefix=\$HOME'.
1453
1454For better control, use the options below.
1455
1456Fine tuning of the installation directories:
ec6a6fbe
AK
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1476_ACEOF
1477
1478 cat <<\_ACEOF
1479
1480System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 --target=TARGET configure for building compilers for TARGET [HOST]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488
1489 cat <<\_ACEOF
1490
1491Optional Features:
ec6a6fbe 1492 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1495 --enable-static_link use this to link the tools to their libraries
1496 statically (default is dynamic linking
1497 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1498 device-mapper is missing from the kernel
71082be4
ZK
1499 --disable-readline disable readline support
1500 --enable-realtime enable realtime clock support
37ddf259
AK
1501 --enable-ocf enable Open Cluster Framework (OCF) compliant
1502 resource agents
71082be4
ZK
1503 --enable-cmirrord enable the cluster mirror log daemon
1504 --enable-debug enable debugging
1505 --enable-profiling gather gcov profiling data
54b362f9 1506 --enable-testing enable testing targets in the makefile
d1e8046f 1507 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1508 --disable-devmapper disable LVM2 device-mapper interaction
cdd50823 1509 --disable-lvmetad disable the LVM Metadata Daemon
71082be4
ZK
1510 --enable-udev_sync enable synchronisation with udev processing
1511 --enable-udev_rules install rule files needed for udev synchronisation
1512 --enable-compat enable support for old device-mapper versions
1513 --enable-units-compat enable output compatibility with old versions that
1514 that do not use KiB-style unit suffixes
1515 --disable-driver disable calls to device-mapper in the kernel
1516 --disable-o_direct disable O_DIRECT
1517 --enable-applib build application library
1518 --enable-cmdlib build shared command library
1519 --enable-pkgconfig install pkgconfig support
1520 --enable-write_install install user writable files
1521 --disable-fsadm disable fsadm
1522 --enable-dmeventd enable the device-mapper event daemon
1523 --disable-selinux disable selinux support
1524 --enable-nls enable Native Language Support
ad6254c5
AK
1525
1526Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1529 --with-user=USER set the owner of installed files [[USER=]]
1530 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1531 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1532 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1533 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1534 --with-device-nodes-on=ON
1535 create nodes on resume or create [[ON=resume]]
ad6254c5 1536 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1537 [[TYPE=internal]]
ad6254c5 1538 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
71082be4 1540 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
71082be4 1542 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1543 [[TYPE=internal]]
71082be4 1544 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1545 [[TYPE=internal]]
cac52ca4
JEB
1546 --with-raid=TYPE mirror support: internal/shared/none
1547 [[TYPE=internal]]
71082be4 1548 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1549 [[TYPE=none]]
3ba4a195
ZK
1550 --with-thin=TYPE thin provisioning support: internal/shared/none
1551 [[TYPE=none]]
606d0858
AK
1552 --with-ocfdir=DIR install OCF files in DIR
1553 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1554 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1555 The following cluster manager combinations are valid:
a946372e
AK
1556 * cman (RHEL5 or equivalent)
1557 * cman,corosync,openais (or selection of them)
1091650a 1558 * singlenode (localhost only)
a946372e
AK
1559 * all (autodetect)
1560 * none (disable build)
71082be4 1561 [TYPE=none]
8c4e8a18 1562 --with-clvmd-pidfile=PATH
f11781c5 1563 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1564 --with-cmirrord-pidfile=PATH
f11781c5
AK
1565 cmirrord pidfile [[/var/run/cmirrord.pid]]
1566 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1567 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1568 --with-confdir=DIR configuration files in DIR [[/etc]]
1569 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1570 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1571 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1572 --with-udev-prefix=UPREFIX
f11781c5
AK
1573 install udev rule files in UPREFIX [[EPREFIX]]
1574 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1575 --with-dmeventd-pidfile=PATH
f11781c5 1576 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1577 --with-dmeventd-path=PATH
f11781c5 1578 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1579 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1580 --with-default-system-dir=DIR
f11781c5 1581 default LVM system directory [[/etc/lvm]]
71082be4 1582 --with-default-archive-subdir=SUBDIR
f11781c5 1583 default metadata archive subdir [[archive]]
71082be4 1584 --with-default-backup-subdir=SUBDIR
f11781c5 1585 default metadata backup subdir [[backup]]
71082be4 1586 --with-default-cache-subdir=SUBDIR
f11781c5 1587 default metadata cache subdir [[cache]]
71082be4 1588 --with-default-locking-dir=DIR
f11781c5 1589 default locking directory [[/var/lock/lvm]]
fea55602 1590 --with-default-data-alignment=NUM
f11781c5
AK
1591 set the default data alignment in MiB [[1]]
1592 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1593
1594Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
25fbec5b 1599 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1601 you have headers in a nonstandard directory <include dir>
ad6254c5 1602 CPP C preprocessor
e2997b73 1603 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1604 PKG_CONFIG_PATH
1605 directories to add to pkg-config's search path
1606 PKG_CONFIG_LIBDIR
1607 path overriding pkg-config's built-in search path
a946372e
AK
1608 PKGCONFIGINIT_CFLAGS
1609 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1610 PKGCONFIGINIT_LIBS
1611 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1612 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1613 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1614 COROSYNC_CFLAGS
1615 C compiler flags for COROSYNC, overriding pkg-config
1616 COROSYNC_LIBS
1617 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1618 QUORUM_CFLAGS
1619 C compiler flags for QUORUM, overriding pkg-config
1620 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1621 SALCK_CFLAGS
1622 C compiler flags for SALCK, overriding pkg-config
1623 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1624 CONFDB_CFLAGS
1625 C compiler flags for CONFDB, overriding pkg-config
1626 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1627 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1628 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1629 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1630 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1631 SACKPT_CFLAGS
1632 C compiler flags for SACKPT, overriding pkg-config
1633 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1634 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1635 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1636
1637Use these variables to override the choices made by `configure' or to help
1638it to find libraries and programs with nonstandard names/locations.
1639
f11781c5 1640Report bugs to the package provider.
ad6254c5 1641_ACEOF
7a197a62 1642ac_status=$?
ad6254c5
AK
1643fi
1644
1645if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
ad6254c5 1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
ad6254c5
AK
1651 ac_builddir=.
1652
7a197a62
AK
1653case "$ac_dir" in
1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655*)
ec6a6fbe 1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1657 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663esac
1664ac_abs_top_builddir=$ac_pwd
1665ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666# for backward compatibility:
1667ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1668
1669case $srcdir in
7a197a62 1670 .) # We are building in place.
ad6254c5 1671 ac_srcdir=.
7a197a62
AK
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1675 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1682esac
7a197a62
AK
1683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1693 else
ec6a6fbe 1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1697 done
1698fi
1699
7a197a62 1700test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1701if $ac_init_version; then
1702 cat <<\_ACEOF
7a197a62 1703configure
f11781c5 1704generated by GNU Autoconf 2.66
ad6254c5 1705
f11781c5 1706Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1707This configure script is free software; the Free Software Foundation
1708gives unlimited permission to copy, distribute and modify it.
1709_ACEOF
7a197a62 1710 exit
ad6254c5 1711fi
ad6254c5 1712
f11781c5
AK
1713## ------------------------ ##
1714## Autoconf initialization. ##
1715## ------------------------ ##
ad6254c5 1716
f11781c5
AK
1717# ac_fn_c_try_compile LINENO
1718# --------------------------
1719# Try to compile conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_compile ()
ad6254c5 1721{
f11781c5
AK
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1747
f11781c5
AK
1748 ac_retval=1
1749fi
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 as_fn_set_status $ac_retval
ad6254c5 1752
f11781c5 1753} # ac_fn_c_try_compile
ad6254c5 1754
f11781c5
AK
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } >/dev/null && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1784
f11781c5
AK
1785 ac_retval=1
1786fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 as_fn_set_status $ac_retval
ad6254c5 1789
f11781c5 1790} # ac_fn_c_try_cpp
d911ec67 1791
f11781c5
AK
1792# ac_fn_c_try_link LINENO
1793# -----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_link ()
d911ec67 1796{
f11781c5
AK
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
d911ec67
AK
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
f11781c5
AK
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
d911ec67 1807 ac_status=$?
f11781c5
AK
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
d911ec67 1822else
f11781c5 1823 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
f11781c5 1826 ac_retval=1
d911ec67 1827fi
f11781c5
AK
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 as_fn_set_status $ac_retval
d911ec67 1835
f11781c5 1836} # ac_fn_c_try_link
d911ec67 1837
f11781c5
AK
1838# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839# -------------------------------------------------------
1840# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841# the include files in INCLUDES and setting the cache variable VAR
1842# accordingly.
1843ac_fn_c_check_header_mongrel ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if eval "test \"\${$3+set}\"" = set; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1850 $as_echo_n "(cached) " >&6
1851fi
f11781c5
AK
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1854$as_echo "$ac_res" >&6; }
1855else
1856 # Is the header compilable?
f11781c5
AK
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858$as_echo_n "checking $2 usability... " >&6; }
1859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1860/* end confdefs.h. */
f11781c5
AK
1861$4
1862#include <$2>
d911ec67 1863_ACEOF
f11781c5 1864if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1865 ac_header_compiler=yes
1866else
f11781c5 1867 ac_header_compiler=no
d911ec67 1868fi
d911ec67 1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1871$as_echo "$ac_header_compiler" >&6; }
1872
1873# Is the header present?
f11781c5
AK
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875$as_echo_n "checking $2 presence... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1877/* end confdefs.h. */
f11781c5 1878#include <$2>
d911ec67 1879_ACEOF
f11781c5 1880if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1881 ac_header_preproc=yes
1882else
d911ec67
AK
1883 ac_header_preproc=no
1884fi
d911ec67 1885rm -f conftest.err conftest.$ac_ext
f11781c5 1886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1887$as_echo "$ac_header_preproc" >&6; }
1888
1889# So? What about this header?
f11781c5 1890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1891 yes:no: )
f11781c5
AK
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1896 ;;
1897 no:yes:* )
f11781c5
AK
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1908 ;;
1909esac
f11781c5
AK
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
1912if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1913 $as_echo_n "(cached) " >&6
1914else
f11781c5 1915 eval "$3=\$ac_header_compiler"
d911ec67 1916fi
f11781c5
AK
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1919$as_echo "$ac_res" >&6; }
ad6254c5 1920fi
f11781c5 1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1922
f11781c5 1923} # ac_fn_c_check_header_mongrel
ad6254c5 1924
f11781c5
AK
1925# ac_fn_c_try_run LINENO
1926# ----------------------
1927# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1928# that executables *can* be run.
1929ac_fn_c_try_run ()
ad6254c5 1930{
f11781c5
AK
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_link"
7a197a62
AK
1933case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936esac
f11781c5
AK
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
7a197a62 1939 (eval "$ac_link") 2>&5
ad6254c5 1940 ac_status=$?
f11781c5
AK
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1943 { { case "(($ac_try" in
7a197a62
AK
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
f11781c5
AK
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
7a197a62 1949 (eval "$ac_try") 2>&5
ad6254c5 1950 ac_status=$?
f11781c5
AK
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; }; }; then :
1953 ac_retval=0
ad6254c5 1954else
ec6a6fbe 1955 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1956 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
f11781c5 1959 ac_retval=$ac_status
ad6254c5 1960fi
f11781c5
AK
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 as_fn_set_status $ac_retval
ad6254c5 1964
f11781c5 1965} # ac_fn_c_try_run
ad6254c5 1966
f11781c5
AK
1967# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1968# -------------------------------------------------------
1969# Tests whether HEADER exists and can be compiled using the include files in
1970# INCLUDES, setting the cache variable VAR accordingly.
1971ac_fn_c_check_header_compile ()
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1977 $as_echo_n "(cached) " >&6
ad6254c5 1978else
f11781c5 1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1980/* end confdefs.h. */
f11781c5
AK
1981$4
1982#include <$2>
ad6254c5 1983_ACEOF
f11781c5
AK
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$3=yes"
ad6254c5 1986else
f11781c5 1987 eval "$3=no"
ad6254c5 1988fi
7a197a62 1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1990fi
f11781c5
AK
1991eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1993$as_echo "$ac_res" >&6; }
f11781c5 1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1995
f11781c5 1996} # ac_fn_c_check_header_compile
ad6254c5 1997
f11781c5
AK
1998# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999# ----------------------------------------------------
2000# Tries to find if the field MEMBER exists in type AGGR, after including
2001# INCLUDES, setting cache variable VAR accordingly.
2002ac_fn_c_check_member ()
2003{
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006$as_echo_n "checking for $2.$3... " >&6; }
2007if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2008 $as_echo_n "(cached) " >&6
795ca3e5 2009else
f11781c5
AK
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$5
2013int
2014main ()
2015{
2016static $2 ac_aggr;
2017if (ac_aggr.$3)
2018return 0;
2019 ;
2020 return 0;
2021}
ad6254c5 2022_ACEOF
f11781c5
AK
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2027/* end confdefs.h. */
f11781c5
AK
2028$5
2029int
2030main ()
2031{
2032static $2 ac_aggr;
2033if (sizeof ac_aggr.$3)
2034return 0;
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041else
2042 eval "$4=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047fi
2048eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053} # ac_fn_c_check_member
795ca3e5 2054
f11781c5
AK
2055# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056# -------------------------------------------
2057# Tests whether TYPE exists after having included INCLUDES, setting cache
2058# variable VAR accordingly.
2059ac_fn_c_check_type ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
2064if eval "test \"\${$3+set}\"" = set; then :
2065 $as_echo_n "(cached) " >&6
2066else
2067 eval "$3=no"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
ad6254c5
AK
2071int
2072main ()
2073{
f11781c5
AK
2074if (sizeof ($2))
2075 return 0;
ad6254c5
AK
2076 ;
2077 return 0;
2078}
2079_ACEOF
f11781c5
AK
2080if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084int
2085main ()
2086{
2087if (sizeof (($2)))
2088 return 0;
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2094
f11781c5
AK
2095else
2096 eval "$3=yes"
795ca3e5 2097fi
f11781c5
AK
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2101fi
f11781c5
AK
2102eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2104$as_echo "$ac_res" >&6; }
f11781c5 2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2106
f11781c5 2107} # ac_fn_c_check_type
ad6254c5 2108
f11781c5
AK
2109# ac_fn_c_find_intX_t LINENO BITS VAR
2110# -----------------------------------
2111# Finds a signed integer type with width BITS, setting cache variable VAR
2112# accordingly.
2113ac_fn_c_find_intX_t ()
2114{
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2117$as_echo_n "checking for int$2_t... " >&6; }
2118if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2119 $as_echo_n "(cached) " >&6
ad6254c5 2120else
f11781c5
AK
2121 eval "$3=no"
2122 # Order is important - never check a type that is potentially smaller
2123 # than half of the expected target width.
2124 for ac_type in int$2_t 'int' 'long int' \
2125 'long long int' 'short int' 'signed char'; do
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2127/* end confdefs.h. */
2128$ac_includes_default
f11781c5 2129 enum { N = $2 / 2 - 1 };
7a197a62
AK
2130int
2131main ()
2132{
f11781c5
AK
2133static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2134test_array [0] = 0
7a197a62 2135
f11781c5
AK
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$ac_includes_default
2144 enum { N = $2 / 2 - 1 };
2145int
2146main ()
2147{
2148static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2149 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2150test_array [0] = 0
7a197a62
AK
2151
2152 ;
2153 return 0;
2154}
ad6254c5 2155_ACEOF
f11781c5 2156if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2157
f11781c5
AK
2158else
2159 case $ac_type in #(
2160 int$2_t) :
2161 eval "$3=yes" ;; #(
2162 *) :
2163 eval "$3=\$ac_type" ;;
2164esac
ad6254c5 2165fi
f11781c5 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2167fi
f11781c5
AK
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2170
2171else
f11781c5 2172 break
ad6254c5 2173fi
f11781c5 2174 done
ad6254c5 2175fi
f11781c5
AK
2176eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178$as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180
2181} # ac_fn_c_find_intX_t
2182
2183# ac_fn_c_find_uintX_t LINENO BITS VAR
2184# ------------------------------------
2185# Finds an unsigned integer type with width BITS, setting cache variable VAR
2186# accordingly.
2187ac_fn_c_find_uintX_t ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2191$as_echo_n "checking for uint$2_t... " >&6; }
2192if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2193 $as_echo_n "(cached) " >&6
ad6254c5 2194else
f11781c5
AK
2195 eval "$3=no"
2196 # Order is important - never check a type that is potentially smaller
2197 # than half of the expected target width.
2198 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2199 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2201/* end confdefs.h. */
7a197a62 2202$ac_includes_default
ad6254c5
AK
2203int
2204main ()
2205{
f11781c5
AK
2206static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2207test_array [0] = 0
ad6254c5 2208
f11781c5
AK
2209 ;
2210 return 0;
ad6254c5
AK
2211}
2212_ACEOF
f11781c5
AK
2213if ac_fn_c_try_compile "$LINENO"; then :
2214 case $ac_type in #(
2215 uint$2_t) :
2216 eval "$3=yes" ;; #(
2217 *) :
2218 eval "$3=\$ac_type" ;;
7a197a62 2219esac
ad6254c5 2220fi
f11781c5
AK
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2223
f11781c5
AK
2224else
2225 break
ad6254c5 2226fi
f11781c5 2227 done
ad6254c5 2228fi
f11781c5
AK
2229eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231$as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2233
f11781c5 2234} # ac_fn_c_find_uintX_t
ad6254c5 2235
f11781c5
AK
2236# ac_fn_c_check_func LINENO FUNC VAR
2237# ----------------------------------
2238# Tests whether FUNC exists, setting the cache variable VAR accordingly
2239ac_fn_c_check_func ()
2240{
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243$as_echo_n "checking for $2... " >&6; }
2244if eval "test \"\${$3+set}\"" = set; then :
2245 $as_echo_n "(cached) " >&6
ad6254c5 2246else
f11781c5
AK
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h. */
2249/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2251#define $2 innocuous_$2
ad6254c5 2252
f11781c5
AK
2253/* System header to define __stub macros and hopefully few prototypes,
2254 which can conflict with char $2 (); below.
2255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2256 <limits.h> exists even on freestanding compilers. */
ad6254c5 2257
f11781c5
AK
2258#ifdef __STDC__
2259# include <limits.h>
2260#else
2261# include <assert.h>
2262#endif
ad6254c5 2263
f11781c5
AK
2264#undef $2
2265
2266/* Override any GCC internal prototype to avoid an error.
2267 Use char because int might match the return type of a GCC
2268 builtin and then its argument prototype would still apply. */
2269#ifdef __cplusplus
2270extern "C"
2271#endif
2272char $2 ();
2273/* The GNU C library defines this for functions which it implements
2274 to always fail with ENOSYS. Some functions are actually named
2275 something starting with __ and the normal name is an alias. */
2276#if defined __stub_$2 || defined __stub___$2
2277choke me
2278#endif
ad6254c5 2279
ad6254c5
AK
2280int
2281main ()
2282{
f11781c5 2283return $2 ();
ad6254c5
AK
2284 ;
2285 return 0;
2286}
2287_ACEOF
f11781c5
AK
2288if ac_fn_c_try_link "$LINENO"; then :
2289 eval "$3=yes"
ad6254c5 2290else
f11781c5 2291 eval "$3=no"
ad6254c5 2292fi
f11781c5
AK
2293rm -f core conftest.err conftest.$ac_objext \
2294 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2295fi
f11781c5
AK
2296eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298$as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2300
f11781c5
AK
2301} # ac_fn_c_check_func
2302cat >config.log <<_ACEOF
2303This file contains any messages produced by compilers while
2304running configure, to aid debugging if configure makes a mistake.
7a197a62 2305
f11781c5
AK
2306It was created by $as_me, which was
2307generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2308
f11781c5 2309 $ $0 $@
ad6254c5 2310
ad6254c5 2311_ACEOF
f11781c5
AK
2312exec 5>>config.log
2313{
2314cat <<_ASUNAME
2315## --------- ##
2316## Platform. ##
2317## --------- ##
ad6254c5 2318
f11781c5
AK
2319hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2320uname -m = `(uname -m) 2>/dev/null || echo unknown`
2321uname -r = `(uname -r) 2>/dev/null || echo unknown`
2322uname -s = `(uname -s) 2>/dev/null || echo unknown`
2323uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2324
f11781c5
AK
2325/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2326/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2327
f11781c5
AK
2328/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2329/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2330/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2331/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2332/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2333/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2334/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2335
2336_ASUNAME
2337
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 $as_echo "PATH: $as_dir"
2344 done
2345IFS=$as_save_IFS
2346
2347} >&5
2348
2349cat >&5 <<_ACEOF
2350
2351
2352## ----------- ##
2353## Core tests. ##
2354## ----------- ##
ad6254c5 2355
ad6254c5 2356_ACEOF
ad6254c5 2357
7a197a62 2358
f11781c5
AK
2359# Keep a trace of the command line.
2360# Strip out --no-create and --no-recursion so they do not pile up.
2361# Strip out --silent because we don't want to record it for future runs.
2362# Also quote any args containing shell meta-characters.
2363# Make two passes to allow for proper duplicate-argument suppression.
2364ac_configure_args=
2365ac_configure_args0=
2366ac_configure_args1=
2367ac_must_keep_next=false
2368for ac_pass in 1 2
2369do
2370 for ac_arg
2371 do
2372 case $ac_arg in
2373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375 | -silent | --silent | --silen | --sile | --sil)
2376 continue ;;
2377 *\'*)
2378 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 esac
2380 case $ac_pass in
2381 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382 2)
2383 as_fn_append ac_configure_args1 " '$ac_arg'"
2384 if test $ac_must_keep_next = true; then
2385 ac_must_keep_next=false # Got value, back to normal.
2386 else
2387 case $ac_arg in
2388 *=* | --config-cache | -C | -disable-* | --disable-* \
2389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2391 | -with-* | --with-* | -without-* | --without-* | --x)
2392 case "$ac_configure_args0 " in
2393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2394 esac
2395 ;;
2396 -* ) ac_must_keep_next=true ;;
2397 esac
2398 fi
2399 as_fn_append ac_configure_args " '$ac_arg'"
2400 ;;
2401 esac
2402 done
2403done
2404{ ac_configure_args0=; unset ac_configure_args0;}
2405{ ac_configure_args1=; unset ac_configure_args1;}
2406
2407# When interrupted or exit'd, cleanup temporary files, and complete
2408# config.log. We remove comments because anyway the quotes in there
2409# would cause problems or look ugly.
2410# WARNING: Use '\'' to represent an apostrophe within the trap.
2411# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2412trap 'exit_status=$?
2413 # Save into config.log some information that might help in debugging.
2414 {
2415 echo
2416
2417 $as_echo "## ---------------- ##
2418## Cache variables. ##
2419## ---------------- ##"
2420 echo
2421 # The following way of writing the cache mishandles newlines in values,
2422(
2423 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in #(
2426 *${as_nl}*)
2427 case $ac_var in #(
2428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2429$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2430 esac
2431 case $ac_var in #(
2432 _ | IFS | as_nl) ;; #(
2433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2434 *) { eval $ac_var=; unset $ac_var;} ;;
2435 esac ;;
2436 esac
2437 done
2438 (set) 2>&1 |
2439 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2440 *${as_nl}ac_space=\ *)
2441 sed -n \
2442 "s/'\''/'\''\\\\'\'''\''/g;
2443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2444 ;; #(
2445 *)
2446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2447 ;;
2448 esac |
2449 sort
2450)
2451 echo
2452
2453 $as_echo "## ----------------- ##
2454## Output variables. ##
2455## ----------------- ##"
2456 echo
2457 for ac_var in $ac_subst_vars
2458 do
2459 eval ac_val=\$$ac_var
2460 case $ac_val in
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 esac
2463 $as_echo "$ac_var='\''$ac_val'\''"
2464 done | sort
2465 echo
2466
2467 if test -n "$ac_subst_files"; then
2468 $as_echo "## ------------------- ##
2469## File substitutions. ##
2470## ------------------- ##"
2471 echo
2472 for ac_var in $ac_subst_files
2473 do
2474 eval ac_val=\$$ac_var
2475 case $ac_val in
2476 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 esac
2478 $as_echo "$ac_var='\''$ac_val'\''"
2479 done | sort
2480 echo
2481 fi
2482
2483 if test -s confdefs.h; then
2484 $as_echo "## ----------- ##
2485## confdefs.h. ##
2486## ----------- ##"
2487 echo
2488 cat confdefs.h
2489 echo
2490 fi
2491 test "$ac_signal" != 0 &&
2492 $as_echo "$as_me: caught signal $ac_signal"
2493 $as_echo "$as_me: exit $exit_status"
2494 } >&5
2495 rm -f core *.core core.conftest.* &&
2496 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2497 exit $exit_status
2498' 0
2499for ac_signal in 1 2 13 15; do
2500 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2501done
2502ac_signal=0
2503
2504# confdefs.h avoids OS command line length limits that DEFS can exceed.
2505rm -f -r conftest* confdefs.h
7a197a62 2506
f11781c5 2507$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2508
f11781c5 2509# Predefined preprocessor variables.
ad6254c5
AK
2510
2511cat >>confdefs.h <<_ACEOF
f11781c5 2512#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2513_ACEOF
2514
f11781c5
AK
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2517_ACEOF
ad6254c5 2518
f11781c5
AK
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2521_ACEOF
f11781c5
AK
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2525_ACEOF
ad6254c5 2526
f11781c5
AK
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2529_ACEOF
7a197a62 2530
f11781c5
AK
2531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_URL "$PACKAGE_URL"
2533_ACEOF
ad6254c5 2534
7a197a62 2535
f11781c5
AK
2536# Let the site file select an alternate cache file if it wants to.
2537# Prefer an explicitly selected file to automatically selected ones.
2538ac_site_file1=NONE
2539ac_site_file2=NONE
2540if test -n "$CONFIG_SITE"; then
2541 # We do not want a PATH search for config.site.
2542 case $CONFIG_SITE in #((
2543 -*) ac_site_file1=./$CONFIG_SITE;;
2544 */*) ac_site_file1=$CONFIG_SITE;;
2545 *) ac_site_file1=./$CONFIG_SITE;;
2546 esac
2547elif test "x$prefix" != xNONE; then
2548 ac_site_file1=$prefix/share/config.site
2549 ac_site_file2=$prefix/etc/config.site
ad6254c5 2550else
f11781c5
AK
2551 ac_site_file1=$ac_default_prefix/share/config.site
2552 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2553fi
f11781c5
AK
2554for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2555do
2556 test "x$ac_site_file" = xNONE && continue
2557 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2559$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2560 sed 's/^/| /' "$ac_site_file" >&5
2561 . "$ac_site_file" \
2562 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564as_fn_error $? "failed to load site script $ac_site_file
2565See \`config.log' for more details" "$LINENO" 5; }
2566 fi
2567done
ad6254c5 2568
f11781c5
AK
2569if test -r "$cache_file"; then
2570 # Some versions of bash will fail to source /dev/null (special files
2571 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2572 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2574$as_echo "$as_me: loading cache $cache_file" >&6;}
2575 case $cache_file in
2576 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2577 *) . "./$cache_file";;
2578 esac
2579 fi
2580else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2582$as_echo "$as_me: creating cache $cache_file" >&6;}
2583 >$cache_file
ad6254c5 2584fi
ad6254c5 2585
f11781c5
AK
2586as_fn_append ac_header_list " stdlib.h"
2587as_fn_append ac_header_list " unistd.h"
2588as_fn_append ac_header_list " sys/param.h"
2589# Check that the precious variables saved in the cache have kept the same
2590# value.
2591ac_cache_corrupted=false
2592for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2607 *)
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2637 fi
2638done
2639if $ac_cache_corrupted; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2645fi
f11781c5
AK
2646## -------------------- ##
2647## Main body of script. ##
2648## -------------------- ##
ad6254c5 2649
f11781c5
AK
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2655
ad6254c5 2656
ad6254c5 2657
f11781c5 2658ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2659
2660
f11781c5
AK
2661################################################################################
2662ac_aux_dir=
2663for ac_dir in autoconf "$srcdir"/autoconf; do
2664 if 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/install.sh"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/install.sh -c"
2671 break
2672 elif test -f "$ac_dir/shtool"; then
2673 ac_aux_dir=$ac_dir
2674 ac_install_sh="$ac_aux_dir/shtool install -c"
2675 break
2676 fi
2677done
2678if test -z "$ac_aux_dir"; then
2679 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2680fi
ad6254c5 2681
f11781c5
AK
2682# These three variables are undocumented and unsupported,
2683# and are intended to be withdrawn in a future Autoconf release.
2684# They can cause serious problems if a builder's source tree is in a directory
2685# whose full name contains unusual characters.
2686ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2687ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2688ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2689
ad6254c5 2690
8a2fc586 2691
f11781c5
AK
2692################################################################################
2693# Make sure we can run config.sub.
2694$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2695 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2696
f11781c5
AK
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2698$as_echo_n "checking build system type... " >&6; }
2699if test "${ac_cv_build+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701else
2702 ac_build_alias=$build_alias
2703test "x$ac_build_alias" = x &&
2704 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2705test "x$ac_build_alias" = x &&
2706 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2707ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2709
2710fi
f11781c5
AK
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2712$as_echo "$ac_cv_build" >&6; }
2713case $ac_cv_build in
2714*-*-*) ;;
2715*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2716esac
2717build=$ac_cv_build
2718ac_save_IFS=$IFS; IFS='-'
2719set x $ac_cv_build
2720shift
2721build_cpu=$1
2722build_vendor=$2
2723shift; shift
2724# Remember, the first character of IFS is used to create $*,
2725# except with old shells:
2726build_os=$*
2727IFS=$ac_save_IFS
2728case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2729
2730
f11781c5
AK
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2732$as_echo_n "checking host system type... " >&6; }
2733if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2734 $as_echo_n "(cached) " >&6
ad6254c5 2735else
f11781c5
AK
2736 if test "x$host_alias" = x; then
2737 ac_cv_host=$ac_cv_build
ad6254c5 2738else
f11781c5
AK
2739 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2741fi
ad6254c5 2742
f11781c5
AK
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2745$as_echo "$ac_cv_host" >&6; }
2746case $ac_cv_host in
2747*-*-*) ;;
2748*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2749esac
2750host=$ac_cv_host
2751ac_save_IFS=$IFS; IFS='-'
2752set x $ac_cv_host
2753shift
2754host_cpu=$1
2755host_vendor=$2
2756shift; shift
2757# Remember, the first character of IFS is used to create $*,
2758# except with old shells:
2759host_os=$*
2760IFS=$ac_save_IFS
2761case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2762
ad6254c5 2763
f11781c5
AK
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2765$as_echo_n "checking target system type... " >&6; }
2766if test "${ac_cv_target+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
ad6254c5 2768else
f11781c5
AK
2769 if test "x$target_alias" = x; then
2770 ac_cv_target=$ac_cv_host
2771else
2772 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2774fi
7a197a62 2775
ad6254c5 2776fi
f11781c5
AK
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2778$as_echo "$ac_cv_target" >&6; }
2779case $ac_cv_target in
2780*-*-*) ;;
2781*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2782esac
f11781c5
AK
2783target=$ac_cv_target
2784ac_save_IFS=$IFS; IFS='-'
2785set x $ac_cv_target
2786shift
2787target_cpu=$1
2788target_vendor=$2
2789shift; shift
2790# Remember, the first character of IFS is used to create $*,
2791# except with old shells:
2792target_os=$*
2793IFS=$ac_save_IFS
2794case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2795
ad6254c5 2796
f11781c5
AK
2797# The aliases save the names the user supplied, while $host etc.
2798# will get canonicalized.
2799test -n "$target_alias" &&
2800 test "$program_prefix$program_suffix$program_transform_name" = \
2801 NONENONEs,x,x, &&
2802 program_prefix=${target_alias}-
ad6254c5 2803
f11781c5
AK
2804case "$host_os" in
2805 linux*)
2806 CFLAGS="$CFLAGS"
2807 COPTIMISE_FLAG="-O2"
2808 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2809 ELDFLAGS="-Wl,--export-dynamic"
2810 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2811 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2812 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2813 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2814 LIB_SUFFIX=so
2815 DEVMAPPER=yes
cdd50823 2816 LVMETAD=no
f11781c5
AK
2817 ODIRECT=yes
2818 DM_IOCTLS=yes
2819 SELINUX=yes
2820 CLUSTER=internal
2821 FSADM=yes
2822 ;;
2823 darwin*)
2824 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2825 COPTIMISE_FLAG="-O2"
2826 CLDFLAGS="$CLDFLAGS"
bf09a320 2827 ELDFLAGS=
f11781c5
AK
2828 CLDWHOLEARCHIVE="-all_load"
2829 CLDNOWHOLEARCHIVE=
2830 LIB_SUFFIX=dylib
2831 DEVMAPPER=yes
2832 ODIRECT=no
2833 DM_IOCTLS=no
2834 SELINUX=no
2835 CLUSTER=none
2836 FSADM=no
2837 ;;
2838esac
ad6254c5 2839
f11781c5
AK
2840################################################################################
2841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2842$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2843if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2844 $as_echo_n "(cached) " >&6
ad6254c5 2845else
f11781c5
AK
2846 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2847 for ac_i in 1 2 3 4 5 6 7; do
2848 ac_script="$ac_script$as_nl$ac_script"
2849 done
2850 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2851 { ac_script=; unset ac_script;}
2852 if test -z "$SED"; then
2853 ac_path_SED_found=false
2854 # Loop through the user's path and test for each of PROGNAME-LIST
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858 IFS=$as_save_IFS
2859 test -z "$as_dir" && as_dir=.
2860 for ac_prog in sed gsed; do
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2863 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2864# Check for GNU ac_path_SED and select it if it is found.
2865 # Check for GNU $ac_path_SED
2866case `"$ac_path_SED" --version 2>&1` in
2867*GNU*)
2868 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2869*)
2870 ac_count=0
2871 $as_echo_n 0123456789 >"conftest.in"
2872 while :
2873 do
2874 cat "conftest.in" "conftest.in" >"conftest.tmp"
2875 mv "conftest.tmp" "conftest.in"
2876 cp "conftest.in" "conftest.nl"
2877 $as_echo '' >> "conftest.nl"
2878 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2879 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2880 as_fn_arith $ac_count + 1 && ac_count=$as_val
2881 if test $ac_count -gt ${ac_path_SED_max-0}; then
2882 # Best one so far, save it but keep looking for a better one
2883 ac_cv_path_SED="$ac_path_SED"
2884 ac_path_SED_max=$ac_count
2885 fi
2886 # 10*(2^10) chars as input seems more than enough
2887 test $ac_count -gt 10 && break
2888 done
2889 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2890esac
ad6254c5 2891
f11781c5
AK
2892 $ac_path_SED_found && break 3
2893 done
2894 done
2895 done
2896IFS=$as_save_IFS
2897 if test -z "$ac_cv_path_SED"; then
2898 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2899 fi
2900else
2901 ac_cv_path_SED=$SED
ad6254c5 2902fi
7a197a62 2903
f11781c5
AK
2904fi
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2906$as_echo "$ac_cv_path_SED" >&6; }
2907 SED="$ac_cv_path_SED"
2908 rm -f conftest.sed
ad6254c5 2909
f11781c5
AK
2910for ac_prog in gawk mawk nawk awk
2911do
2912 # Extract the first word of "$ac_prog", so it can be a program name with args.
2913set dummy $ac_prog; ac_word=$2
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915$as_echo_n "checking for $ac_word... " >&6; }
2916if test "${ac_cv_prog_AWK+set}" = set; then :
2917 $as_echo_n "(cached) " >&6
ad6254c5 2918else
f11781c5
AK
2919 if test -n "$AWK"; then
2920 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
2927 for ac_exec_ext in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_AWK="$ac_prog"
2930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 break 2
2932 fi
2933done
2934 done
2935IFS=$as_save_IFS
ad6254c5 2936
ad6254c5 2937fi
ad6254c5 2938fi
f11781c5
AK
2939AWK=$ac_cv_prog_AWK
2940if test -n "$AWK"; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2942$as_echo "$AWK" >&6; }
2943else
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
ad6254c5 2946fi
ad6254c5 2947
ad6254c5 2948
f11781c5 2949 test -n "$AWK" && break
ad6254c5
AK
2950done
2951
f11781c5
AK
2952ac_ext=c
2953ac_cpp='$CPP $CPPFLAGS'
2954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2959set dummy ${ac_tool_prefix}gcc; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2963 $as_echo_n "(cached) " >&6
ad6254c5 2964else
f11781c5
AK
2965 if test -n "$CC"; then
2966 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2967else
f11781c5
AK
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979done
2980 done
2981IFS=$as_save_IFS
ad6254c5 2982
ad6254c5 2983fi
ad6254c5 2984fi
f11781c5
AK
2985CC=$ac_cv_prog_CC
2986if test -n "$CC"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2988$as_echo "$CC" >&6; }
2989else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
ad6254c5 2992fi
ad6254c5 2993
f11781c5
AK
2994
2995fi
2996if test -z "$ac_cv_prog_CC"; then
2997 ac_ct_CC=$CC
2998 # Extract the first word of "gcc", so it can be a program name with args.
2999set dummy gcc; ac_word=$2
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
3002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3003 $as_echo_n "(cached) " >&6
ad6254c5 3004else
f11781c5
AK
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3007else
f11781c5
AK
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_CC="gcc"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019done
3020 done
3021IFS=$as_save_IFS
d911ec67 3022
d911ec67 3023fi
d911ec67 3024fi
f11781c5
AK
3025ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026if test -n "$ac_ct_CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3028$as_echo "$ac_ct_CC" >&6; }
3029else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031$as_echo "no" >&6; }
d911ec67 3032fi
d911ec67 3033
f11781c5
AK
3034 if test "x$ac_ct_CC" = x; then
3035 CC=""
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038yes:)
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041ac_tool_warned=yes ;;
3042esac
3043 CC=$ac_ct_CC
3044 fi
3045else
3046 CC="$ac_cv_prog_CC"
d911ec67 3047fi
d911ec67 3048
f11781c5
AK
3049if test -z "$CC"; then
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3052set dummy ${ac_tool_prefix}cc; ac_word=$2
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054$as_echo_n "checking for $ac_word... " >&6; }
3055if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3056 $as_echo_n "(cached) " >&6
d911ec67 3057else
f11781c5
AK
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3060else
f11781c5
AK
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}cc"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072done
3073 done
3074IFS=$as_save_IFS
d911ec67 3075
f11781c5
AK
3076fi
3077fi
3078CC=$ac_cv_prog_CC
3079if test -n "$CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3081$as_echo "$CC" >&6; }
3082else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084$as_echo "no" >&6; }
d911ec67
AK
3085fi
3086
d911ec67 3087
f11781c5
AK
3088 fi
3089fi
3090if test -z "$CC"; then
3091 # Extract the first word of "cc", so it can be a program name with args.
3092set dummy cc; ac_word=$2
3093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094$as_echo_n "checking for $ac_word... " >&6; }
3095if test "${ac_cv_prog_CC+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
d911ec67 3097else
f11781c5
AK
3098 if test -n "$CC"; then
3099 ac_cv_prog_CC="$CC" # Let the user override the test.
3100else
3101 ac_prog_rejected=no
3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103for as_dir in $PATH
3104do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3110 ac_prog_rejected=yes
3111 continue
3112 fi
3113 ac_cv_prog_CC="cc"
3114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3115 break 2
3116 fi
3117done
3118 done
3119IFS=$as_save_IFS
d911ec67 3120
f11781c5
AK
3121if test $ac_prog_rejected = yes; then
3122 # We found a bogon in the path, so make sure we never use it.
3123 set dummy $ac_cv_prog_CC
3124 shift
3125 if test $# != 0; then
3126 # We chose a different compiler from the bogus one.
3127 # However, it has the same basename, so the bogon will be chosen
3128 # first if we set CC to just the basename; use the full file name.
3129 shift
3130 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3131 fi
3132fi
3133fi
3134fi
3135CC=$ac_cv_prog_CC
3136if test -n "$CC"; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138$as_echo "$CC" >&6; }
3139else
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141$as_echo "no" >&6; }
d911ec67
AK
3142fi
3143
d911ec67 3144
f11781c5
AK
3145fi
3146if test -z "$CC"; then
3147 if test -n "$ac_tool_prefix"; then
3148 for ac_prog in cl.exe
3149 do
3150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153$as_echo_n "checking for $ac_word... " >&6; }
3154if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3155 $as_echo_n "(cached) " >&6
3156else
f11781c5
AK
3157 if test -n "$CC"; then
3158 ac_cv_prog_CC="$CC" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 for ac_exec_ext in '' $ac_executable_extensions; do
3166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 break 2
3170 fi
3171done
3172 done
3173IFS=$as_save_IFS
d911ec67
AK
3174
3175fi
f11781c5
AK
3176fi
3177CC=$ac_cv_prog_CC
3178if test -n "$CC"; then
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180$as_echo "$CC" >&6; }
3181else
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
d911ec67
AK
3184fi
3185
d911ec67 3186
f11781c5
AK
3187 test -n "$CC" && break
3188 done
3189fi
3190if test -z "$CC"; then
3191 ac_ct_CC=$CC
3192 for ac_prog in cl.exe
3193do
3194 # Extract the first word of "$ac_prog", so it can be a program name with args.
3195set dummy $ac_prog; ac_word=$2
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197$as_echo_n "checking for $ac_word... " >&6; }
3198if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3199 $as_echo_n "(cached) " >&6
3200else
f11781c5
AK
3201 if test -n "$ac_ct_CC"; then
3202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3203else
f11781c5
AK
3204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205for as_dir in $PATH
3206do
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211 ac_cv_prog_ac_ct_CC="$ac_prog"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3214 fi
3215done
3216 done
3217IFS=$as_save_IFS
ad6254c5 3218
ad6254c5 3219fi
ad6254c5 3220fi
f11781c5
AK
3221ac_ct_CC=$ac_cv_prog_ac_ct_CC
3222if test -n "$ac_ct_CC"; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3224$as_echo "$ac_ct_CC" >&6; }
3225else
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227$as_echo "no" >&6; }
ad6254c5 3228fi
ad6254c5 3229
d911ec67 3230
f11781c5
AK
3231 test -n "$ac_ct_CC" && break
3232done
d911ec67 3233
f11781c5
AK
3234 if test "x$ac_ct_CC" = x; then
3235 CC=""
3236 else
3237 case $cross_compiling:$ac_tool_warned in
3238yes:)
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3241ac_tool_warned=yes ;;
d911ec67 3242esac
f11781c5
AK
3243 CC=$ac_ct_CC
3244 fi
3245fi
ad6254c5
AK
3246
3247fi
d911ec67
AK
3248
3249
f11781c5
AK
3250test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252as_fn_error $? "no acceptable C compiler found in \$PATH
3253See \`config.log' for more details" "$LINENO" 5; }
3254
3255# Provide some information about the compiler.
3256$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3257set X $ac_compile
3258ac_compiler=$2
3259for ac_option in --version -v -V -qversion; do
3260 { { ac_try="$ac_compiler $ac_option >&5"
3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3268 ac_status=$?
3269 if test -s conftest.err; then
3270 sed '10a\
3271... rest of stderr output deleted ...
3272 10q' conftest.err >conftest.er1
3273 cat conftest.er1 >&5
3274 fi
3275 rm -f conftest.er1 conftest.err
3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }
3278done
ad6254c5 3279
f11781c5 3280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3281/* end confdefs.h. */
f11781c5 3282
ad6254c5
AK
3283int
3284main ()
3285{
f11781c5 3286
ad6254c5
AK
3287 ;
3288 return 0;
3289}
3290_ACEOF
f11781c5
AK
3291ac_clean_files_save=$ac_clean_files
3292ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3293# Try to create an executable without -o first, disregard a.out.
3294# It will help us diagnose broken compilers, and finding out an intuition
3295# of exeext.
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3297$as_echo_n "checking whether the C compiler works... " >&6; }
3298ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3299
3300# The possible output files:
3301ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3302
3303ac_rmfiles=
3304for ac_file in $ac_files
3305do
3306 case $ac_file in
3307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3308 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3309 esac
3310done
3311rm -f $ac_rmfiles
3312
3313if { { ac_try="$ac_link_default"
7a197a62
AK
3314case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317esac
f11781c5
AK
3318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319$as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_link_default") 2>&5
ad6254c5 3321 ac_status=$?
f11781c5
AK
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3325# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3326# in a Makefile. We should not override ac_cv_exeext if it was cached,
3327# so that the user can short-circuit this test for compilers unknown to
3328# Autoconf.
3329for ac_file in $ac_files ''
3330do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3334 ;;
3335 [ab].out )
3336 # We found the default executable, but exeext='' is most
3337 # certainly right.
3338 break;;
3339 *.* )
3340 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3341 then :; else
3342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 fi
3344 # We set ac_cv_exeext here because the later test for it is not
3345 # safe: cross compilers may not add the suffix if given an `-o'
3346 # argument, so we may need to know it at that point already.
3347 # Even if this section looks crufty: it has the advantage of
3348 # actually working.
3349 break;;
3350 * )
3351 break;;
3352 esac
3353done
3354test "$ac_cv_exeext" = no && ac_cv_exeext=
3355
ad6254c5 3356else
f11781c5
AK
3357 ac_file=''
3358fi
3359if test -z "$ac_file"; then :
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
ec6a6fbe 3362$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3363sed 's/^/| /' conftest.$ac_ext >&5
3364
f11781c5
AK
3365{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367as_fn_error 77 "C compiler cannot create executables
3368See \`config.log' for more details" "$LINENO" 5; }
3369else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371$as_echo "yes" >&6; }
ad6254c5 3372fi
f11781c5
AK
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3374$as_echo_n "checking for C compiler default output file name... " >&6; }
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3376$as_echo "$ac_file" >&6; }
3377ac_exeext=$ac_cv_exeext
7a197a62 3378
f11781c5
AK
3379rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3380ac_clean_files=$ac_clean_files_save
3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3382$as_echo_n "checking for suffix of executables... " >&6; }
3383if { { ac_try="$ac_link"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
8a2fc586 3387esac
f11781c5
AK
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_link") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; then :
3394 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3395# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3396# work properly (i.e., refer to `conftest.exe'), while it won't with
3397# `rm'.
3398for ac_file in conftest.exe conftest conftest.*; do
3399 test -f "$ac_file" || continue
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3403 break;;
3404 * ) break;;
3405 esac
3406done
3407else
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3411See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3412fi
f11781c5
AK
3413rm -f conftest conftest$ac_cv_exeext
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3415$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3416
f11781c5
AK
3417rm -f conftest.$ac_ext
3418EXEEXT=$ac_cv_exeext
3419ac_exeext=$EXEEXT
3420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3421/* end confdefs.h. */
f11781c5 3422#include <stdio.h>
ad6254c5 3423int
f11781c5 3424main ()
ad6254c5 3425{
f11781c5
AK
3426FILE *f = fopen ("conftest.out", "w");
3427 return ferror (f) || fclose (f) != 0;
ad6254c5 3428
f11781c5 3429 ;
7a197a62 3430 return 0;
ad6254c5 3431}
ad6254c5 3432_ACEOF
f11781c5
AK
3433ac_clean_files="$ac_clean_files conftest.out"
3434# Check that the compiler produces executables we can run. If not, either
3435# the compiler is broken, or we cross compile.
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437$as_echo_n "checking whether we are cross compiling... " >&6; }
3438if test "$cross_compiling" != yes; then
3439 { { ac_try="$ac_link"
7a197a62
AK
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
f11781c5
AK
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
7a197a62 3446 (eval "$ac_link") 2>&5
ad6254c5 3447 ac_status=$?
f11781c5
AK
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }
3450 if { ac_try='./conftest$ac_cv_exeext'
3451 { { case "(($ac_try" in
7a197a62
AK
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
f11781c5
AK
3455eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3456$as_echo "$ac_try_echo"; } >&5
7a197a62 3457 (eval "$ac_try") 2>&5
ad6254c5 3458 ac_status=$?
f11781c5
AK
3459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3460 test $ac_status = 0; }; }; then
3461 cross_compiling=no
3462 else
3463 if test "$cross_compiling" = maybe; then
3464 cross_compiling=yes
3465 else
3466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3468as_fn_error $? "cannot run C compiled programs.
3469If you meant to cross compile, use \`--host'.
3470See \`config.log' for more details" "$LINENO" 5; }
3471 fi
3472 fi
3473fi
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3475$as_echo "$cross_compiling" >&6; }
3476
3477rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3478ac_clean_files=$ac_clean_files_save
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3480$as_echo_n "checking for suffix of object files... " >&6; }
3481if test "${ac_cv_objext+set}" = set; then :
3482 $as_echo_n "(cached) " >&6
3483else
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485/* end confdefs.h. */
ad6254c5
AK
3486
3487int
3488main ()
3489{
f11781c5 3490
ad6254c5
AK
3491 ;
3492 return 0;
3493}
3494_ACEOF
f11781c5
AK
3495rm -f conftest.o conftest.obj
3496if { { ac_try="$ac_compile"
7a197a62
AK
3497case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500esac
f11781c5
AK
3501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502$as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_compile") 2>&5
ad6254c5 3504 ac_status=$?
f11781c5
AK
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 for ac_file in conftest.o conftest.obj conftest.*; do
3508 test -f "$ac_file" || continue;
3509 case $ac_file in
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3512 break;;
3513 esac
3514done
ad6254c5 3515else
ec6a6fbe 3516 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3517sed 's/^/| /' conftest.$ac_ext >&5
3518
f11781c5
AK
3519{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error $? "cannot compute suffix of object files: cannot compile
3522See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3523fi
f11781c5 3524rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3525fi
f11781c5
AK
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3527$as_echo "$ac_cv_objext" >&6; }
3528OBJEXT=$ac_cv_objext
3529ac_objext=$OBJEXT
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3531$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3532if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3533 $as_echo_n "(cached) " >&6
ad6254c5 3534else
f11781c5 3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3536/* end confdefs.h. */
3537
ad6254c5
AK
3538int
3539main ()
3540{
f11781c5
AK
3541#ifndef __GNUC__
3542 choke me
3543#endif
3544
ad6254c5
AK
3545 ;
3546 return 0;
3547}
3548_ACEOF
f11781c5
AK
3549if ac_fn_c_try_compile "$LINENO"; then :
3550 ac_compiler_gnu=yes
ad6254c5 3551else
f11781c5 3552 ac_compiler_gnu=no
ad6254c5 3553fi
f11781c5
AK
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3556
d0191583 3557fi
f11781c5
AK
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3559$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3560if test $ac_compiler_gnu = yes; then
3561 GCC=yes
d0191583 3562else
f11781c5 3563 GCC=
d0191583 3564fi
f11781c5
AK
3565ac_test_CFLAGS=${CFLAGS+set}
3566ac_save_CFLAGS=$CFLAGS
3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3568$as_echo_n "checking whether $CC accepts -g... " >&6; }
3569if test "${ac_cv_prog_cc_g+set}" = set; then :
3570 $as_echo_n "(cached) " >&6
3571else
3572 ac_save_c_werror_flag=$ac_c_werror_flag
3573 ac_c_werror_flag=yes
3574 ac_cv_prog_cc_g=no
3575 CFLAGS="-g"
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h. */
72b2cb61 3578
f11781c5
AK
3579int
3580main ()
3581{
72b2cb61 3582
f11781c5
AK
3583 ;
3584 return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_compile "$LINENO"; then :
3588 ac_cv_prog_cc_g=yes
3589else
3590 CFLAGS=""
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h. */
ad6254c5 3593
f11781c5
AK
3594int
3595main ()
3596{
ad6254c5 3597
f11781c5
AK
3598 ;
3599 return 0;
3600}
d0191583 3601_ACEOF
f11781c5
AK
3602if ac_fn_c_try_compile "$LINENO"; then :
3603
3604else
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3606 CFLAGS="-g"
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3608/* end confdefs.h. */
7a197a62 3609
f11781c5
AK
3610int
3611main ()
3612{
ad6254c5 3613
f11781c5
AK
3614 ;
3615 return 0;
3616}
3617_ACEOF
3618if ac_fn_c_try_compile "$LINENO"; then :
3619 ac_cv_prog_cc_g=yes
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3622fi
3623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624fi
3625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 ac_c_werror_flag=$ac_save_c_werror_flag
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3629$as_echo "$ac_cv_prog_cc_g" >&6; }
3630if test "$ac_test_CFLAGS" = set; then
3631 CFLAGS=$ac_save_CFLAGS
3632elif test $ac_cv_prog_cc_g = yes; then
3633 if test "$GCC" = yes; then
3634 CFLAGS="-g -O2"
3635 else
3636 CFLAGS="-g"
3637 fi
3638else
3639 if test "$GCC" = yes; then
3640 CFLAGS="-O2"
3641 else
3642 CFLAGS=
3643 fi
3644fi
3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3646$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3647if test "${ac_cv_prog_cc_c89+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3649else
3650 ac_cv_prog_cc_c89=no
3651ac_save_CC=$CC
3652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654#include <stdarg.h>
3655#include <stdio.h>
3656#include <sys/types.h>
3657#include <sys/stat.h>
3658/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3659struct buf { int x; };
3660FILE * (*rcsopen) (struct buf *, struct stat *, int);
3661static char *e (p, i)
3662 char **p;
3663 int i;
3664{
3665 return p[i];
3666}
3667static char *f (char * (*g) (char **, int), char **p, ...)
3668{
3669 char *s;
3670 va_list v;
3671 va_start (v,p);
3672 s = g (p, va_arg (v,int));
3673 va_end (v);
3674 return s;
3675}
ad6254c5 3676
f11781c5
AK
3677/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3678 function prototypes and stuff, but not '\xHH' hex character constants.
3679 These don't provoke an error unfortunately, instead are silently treated
3680 as 'x'. The following induces an error, until -std is added to get
3681 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3682 array size at least. It's necessary to write '\x00'==0 to get something
3683 that's true only with -std. */
3684int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3685
f11781c5
AK
3686/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3687 inside strings and character constants. */
3688#define FOO(x) 'x'
3689int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3690
f11781c5
AK
3691int test (int i, double x);
3692struct s1 {int (*f) (int a);};
3693struct s2 {int (*f) (double a);};
3694int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3695int argc;
3696char **argv;
d0191583
JM
3697int
3698main ()
3699{
f11781c5 3700return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3701 ;
3702 return 0;
3703}
72b2cb61 3704_ACEOF
f11781c5
AK
3705for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3706 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3707do
3708 CC="$ac_save_CC $ac_arg"
3709 if ac_fn_c_try_compile "$LINENO"; then :
3710 ac_cv_prog_cc_c89=$ac_arg
3711fi
3712rm -f core conftest.err conftest.$ac_objext
3713 test "x$ac_cv_prog_cc_c89" != "xno" && break
3714done
3715rm -f conftest.$ac_ext
3716CC=$ac_save_CC
3717
3718fi
3719# AC_CACHE_VAL
3720case "x$ac_cv_prog_cc_c89" in
3721 x)
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3723$as_echo "none needed" >&6; } ;;
3724 xno)
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3726$as_echo "unsupported" >&6; } ;;
3727 *)
3728 CC="$CC $ac_cv_prog_cc_c89"
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3730$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3731esac
f11781c5
AK
3732if test "x$ac_cv_prog_cc_c89" != xno; then :
3733
3734fi
3735
3736ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3741
ad6254c5 3742
7a197a62 3743
f11781c5
AK
3744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3750$as_echo_n "checking how to run the C preprocessor... " >&6; }
3751# On Suns, sometimes $CPP names a directory.
3752if test -n "$CPP" && test -d "$CPP"; then
3753 CPP=
3754fi
3755if test -z "$CPP"; then
3756 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3757 $as_echo_n "(cached) " >&6
ad6254c5 3758else
f11781c5
AK
3759 # Double quotes because CPP needs to be expanded
3760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761 do
3762 ac_preproc_ok=false
3763for ac_c_preproc_warn_flag in '' yes
3764do
3765 # Use a header file that comes with gcc, so configuring glibc
3766 # with a fresh cross-compiler works.
3767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3768 # <limits.h> exists even on freestanding compilers.
3769 # On the NeXT, cc -E runs the code through the compiler's parser,
3770 # not just through cpp. "Syntax error" is here to catch this case.
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3772/* end confdefs.h. */
d0191583
JM
3773#ifdef __STDC__
3774# include <limits.h>
3775#else
3776# include <assert.h>
3777#endif
f11781c5
AK
3778 Syntax error
3779_ACEOF
3780if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3781
f11781c5
AK
3782else
3783 # Broken: fails on valid input.
3784continue
3785fi
3786rm -f conftest.err conftest.$ac_ext
d0191583 3787
f11781c5
AK
3788 # OK, works on sane cases. Now check whether nonexistent headers
3789 # can be detected and how.
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791/* end confdefs.h. */
3792#include <ac_nonexistent.h>
72b2cb61 3793_ACEOF
f11781c5
AK
3794if ac_fn_c_try_cpp "$LINENO"; then :
3795 # Broken: success on invalid input.
3796continue
d0191583 3797else
f11781c5
AK
3798 # Passes both tests.
3799ac_preproc_ok=:
3800break
ad6254c5 3801fi
f11781c5 3802rm -f conftest.err conftest.$ac_ext
ad6254c5 3803
f11781c5
AK
3804done
3805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3806rm -f conftest.err conftest.$ac_ext
3807if $ac_preproc_ok; then :
3808 break
7a197a62
AK
3809fi
3810
f11781c5
AK
3811 done
3812 ac_cv_prog_CPP=$CPP
ad6254c5 3813
7a197a62 3814fi
f11781c5
AK
3815 CPP=$ac_cv_prog_CPP
3816else
3817 ac_cv_prog_CPP=$CPP
d0191583 3818fi
f11781c5
AK
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3820$as_echo "$CPP" >&6; }
3821ac_preproc_ok=false
3822for ac_c_preproc_warn_flag in '' yes
3823do
3824 # Use a header file that comes with gcc, so configuring glibc
3825 # with a fresh cross-compiler works.
3826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3827 # <limits.h> exists even on freestanding compilers.
3828 # On the NeXT, cc -E runs the code through the compiler's parser,
3829 # not just through cpp. "Syntax error" is here to catch this case.
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h. */
3832#ifdef __STDC__
3833# include <limits.h>
3834#else
3835# include <assert.h>
3836#endif
3837 Syntax error
3838_ACEOF
3839if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3840
9c961554 3841else
f11781c5
AK
3842 # Broken: fails on valid input.
3843continue
9c961554 3844fi
f11781c5 3845rm -f conftest.err conftest.$ac_ext
9c961554 3846
f11781c5
AK
3847 # OK, works on sane cases. Now check whether nonexistent headers
3848 # can be detected and how.
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h. */
3851#include <ac_nonexistent.h>
3852_ACEOF
3853if ac_fn_c_try_cpp "$LINENO"; then :
3854 # Broken: success on invalid input.
3855continue
3856else
3857 # Passes both tests.
3858ac_preproc_ok=:
3859break
3860fi
3861rm -f conftest.err conftest.$ac_ext
ad6254c5 3862
f11781c5
AK
3863done
3864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3865rm -f conftest.err conftest.$ac_ext
3866if $ac_preproc_ok; then :
d0191583 3867
f11781c5
AK
3868else
3869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3871as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3872See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3873fi
3874
f11781c5
AK
3875ac_ext=c
3876ac_cpp='$CPP $CPPFLAGS'
3877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3880
ad6254c5 3881
f11781c5
AK
3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3883$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3884if test "${ac_cv_path_GREP+set}" = set; then :
3885 $as_echo_n "(cached) " >&6
3886else
3887 if test -z "$GREP"; then
3888 ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in grep ggrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3899# Check for GNU ac_path_GREP and select it if it is found.
3900 # Check for GNU $ac_path_GREP
3901case `"$ac_path_GREP" --version 2>&1` in
3902*GNU*)
3903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3904*)
3905 ac_count=0
3906 $as_echo_n 0123456789 >"conftest.in"
3907 while :
3908 do
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 $as_echo 'GREP' >> "conftest.nl"
3913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 as_fn_arith $ac_count + 1 && ac_count=$as_val
3916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_GREP="$ac_path_GREP"
3919 ac_path_GREP_max=$ac_count
3920 fi
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3923 done
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925esac
ad6254c5 3926
f11781c5
AK
3927 $ac_path_GREP_found && break 3
3928 done
3929 done
3930 done
3931IFS=$as_save_IFS
3932 if test -z "$ac_cv_path_GREP"; then
3933 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3934 fi
3935else
3936 ac_cv_path_GREP=$GREP
7a197a62
AK
3937fi
3938
d0191583 3939fi
f11781c5
AK
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3941$as_echo "$ac_cv_path_GREP" >&6; }
3942 GREP="$ac_cv_path_GREP"
ad6254c5 3943
24bbc4d7 3944
f11781c5
AK
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3946$as_echo_n "checking for egrep... " >&6; }
3947if test "${ac_cv_path_EGREP+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3949else
3950 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3951 then ac_cv_path_EGREP="$GREP -E"
3952 else
3953 if test -z "$EGREP"; then
3954 ac_path_EGREP_found=false
3955 # Loop through the user's path and test for each of PROGNAME-LIST
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_prog in egrep; do
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3964 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3965# Check for GNU ac_path_EGREP and select it if it is found.
3966 # Check for GNU $ac_path_EGREP
3967case `"$ac_path_EGREP" --version 2>&1` in
3968*GNU*)
3969 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3970*)
3971 ac_count=0
3972 $as_echo_n 0123456789 >"conftest.in"
3973 while :
3974 do
3975 cat "conftest.in" "conftest.in" >"conftest.tmp"
3976 mv "conftest.tmp" "conftest.in"
3977 cp "conftest.in" "conftest.nl"
3978 $as_echo 'EGREP' >> "conftest.nl"
3979 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3980 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3981 as_fn_arith $ac_count + 1 && ac_count=$as_val
3982 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3983 # Best one so far, save it but keep looking for a better one
3984 ac_cv_path_EGREP="$ac_path_EGREP"
3985 ac_path_EGREP_max=$ac_count
3986 fi
3987 # 10*(2^10) chars as input seems more than enough
3988 test $ac_count -gt 10 && break
3989 done
3990 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3991esac
24bbc4d7 3992
f11781c5
AK
3993 $ac_path_EGREP_found && break 3
3994 done
3995 done
3996 done
3997IFS=$as_save_IFS
3998 if test -z "$ac_cv_path_EGREP"; then
3999 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4000 fi
24bbc4d7 4001else
f11781c5 4002 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4003fi
4004
f11781c5 4005 fi
24bbc4d7 4006fi
f11781c5
AK
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4008$as_echo "$ac_cv_path_EGREP" >&6; }
4009 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4010
4011
f11781c5
AK
4012if test $ac_cv_c_compiler_gnu = yes; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4014$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4015if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4016 $as_echo_n "(cached) " >&6
93bd259b 4017else
f11781c5
AK
4018 ac_pattern="Autoconf.*'x'"
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020/* end confdefs.h. */
4021#include <sgtty.h>
4022Autoconf TIOCGETP
4023_ACEOF
4024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4025 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4026 ac_cv_prog_gcc_traditional=yes
d0191583 4027else
f11781c5 4028 ac_cv_prog_gcc_traditional=no
7a197a62 4029fi
f11781c5 4030rm -f conftest*
7a197a62 4031
72b2cb61 4032
f11781c5
AK
4033 if test $ac_cv_prog_gcc_traditional = no; then
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035/* end confdefs.h. */
4036#include <termio.h>
4037Autoconf TCGETA
72b2cb61 4038_ACEOF
f11781c5
AK
4039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4040 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4041 ac_cv_prog_gcc_traditional=yes
ad6254c5 4042fi
f11781c5 4043rm -f conftest*
ad6254c5 4044
f11781c5 4045 fi
7a197a62 4046fi
f11781c5
AK
4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4048$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4049 if test $ac_cv_prog_gcc_traditional = yes; then
4050 CC="$CC -traditional"
4051 fi
ad6254c5
AK
4052fi
4053
f11781c5
AK
4054# Find a good install program. We prefer a C program (faster),
4055# so one script is as good as another. But avoid the broken or
4056# incompatible versions:
4057# SysV /etc/install, /usr/sbin/install
4058# SunOS /usr/etc/install
4059# IRIX /sbin/install
4060# AIX /bin/install
4061# AmigaOS /C/install, which installs bootblocks on floppy discs
4062# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4063# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4064# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4065# OS/2's system install, which has a completely different semantic
4066# ./install, which can be erroneously created by make from ./install.sh.
4067# Reject install programs that cannot install multiple files.
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4069$as_echo_n "checking for a BSD-compatible install... " >&6; }
4070if test -z "$INSTALL"; then
4071if test "${ac_cv_path_install+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
ad6254c5 4073else
f11781c5
AK
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075for as_dir in $PATH
4076do
4077 IFS=$as_save_IFS
4078 test -z "$as_dir" && as_dir=.
4079 # Account for people who put trailing slashes in PATH elements.
4080case $as_dir/ in #((
4081 ./ | .// | /[cC]/* | \
4082 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4083 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4084 /usr/ucb/* ) ;;
4085 *)
4086 # OSF1 and SCO ODT 3.0 have their own names for install.
4087 # Don't use installbsd from OSF since it installs stuff as root
4088 # by default.
4089 for ac_prog in ginstall scoinst install; do
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4092 if test $ac_prog = install &&
4093 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4094 # AIX install. It has an incompatible calling convention.
4095 :
4096 elif test $ac_prog = install &&
4097 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4098 # program-specific install script used by HP pwplus--don't use.
4099 :
4100 else
4101 rm -rf conftest.one conftest.two conftest.dir
4102 echo one > conftest.one
4103 echo two > conftest.two
4104 mkdir conftest.dir
4105 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4106 test -s conftest.one && test -s conftest.two &&
4107 test -s conftest.dir/conftest.one &&
4108 test -s conftest.dir/conftest.two
4109 then
4110 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4111 break 3
4112 fi
4113 fi
4114 fi
4115 done
4116 done
4117 ;;
4118esac
7a197a62 4119
f11781c5
AK
4120 done
4121IFS=$as_save_IFS
d0191583 4122
f11781c5 4123rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4124
4125fi
f11781c5
AK
4126 if test "${ac_cv_path_install+set}" = set; then
4127 INSTALL=$ac_cv_path_install
4128 else
4129 # As a last resort, use the slow shell script. Don't cache a
4130 # value for INSTALL within a source directory, because that will
4131 # break other packages using the cache if that directory is
4132 # removed, or if the value is a relative name.
4133 INSTALL=$ac_install_sh
4134 fi
7a197a62 4135fi
f11781c5
AK
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4137$as_echo "$INSTALL" >&6; }
7a197a62 4138
f11781c5
AK
4139# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4140# It thinks the first close brace ends the variable substitution.
4141test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4142
f11781c5 4143test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4144
f11781c5 4145test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4146
f11781c5
AK
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4148$as_echo_n "checking whether ln -s works... " >&6; }
4149LN_S=$as_ln_s
4150if test "$LN_S" = "ln -s"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4152$as_echo "yes" >&6; }
4153else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4155$as_echo "no, using $LN_S" >&6; }
15d91f5a 4156fi
ad6254c5 4157
f11781c5
AK
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4159$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4160set x ${MAKE-make}
4161ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4162if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4163 $as_echo_n "(cached) " >&6
d0191583 4164else
f11781c5
AK
4165 cat >conftest.make <<\_ACEOF
4166SHELL = /bin/sh
4167all:
4168 @echo '@@@%%%=$(MAKE)=@@@%%%'
4169_ACEOF
4170# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4171case `${MAKE-make} -f conftest.make 2>/dev/null` in
4172 *@@@%%%=?*=@@@%%%*)
4173 eval ac_cv_prog_make_${ac_make}_set=yes;;
4174 *)
4175 eval ac_cv_prog_make_${ac_make}_set=no;;
4176esac
4177rm -f conftest.make
4178fi
4179if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4181$as_echo "yes" >&6; }
4182 SET_MAKE=
4183else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
4186 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4187fi
4188
f11781c5
AK
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4190$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4191if test -z "$MKDIR_P"; then
4192 if test "${ac_cv_path_mkdir+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4197do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_prog in mkdir gmkdir; do
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4203 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4204 'mkdir (GNU coreutils) '* | \
4205 'mkdir (coreutils) '* | \
4206 'mkdir (fileutils) '4.1*)
4207 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4208 break 3;;
4209 esac
4210 done
4211 done
4212 done
4213IFS=$as_save_IFS
d0191583 4214
f11781c5 4215fi
ad6254c5 4216
f11781c5
AK
4217 test -d ./--version && rmdir ./--version
4218 if test "${ac_cv_path_mkdir+set}" = set; then
4219 MKDIR_P="$ac_cv_path_mkdir -p"
4220 else
4221 # As a last resort, use the slow shell script. Don't cache a
4222 # value for MKDIR_P within a source directory, because that will
4223 # break other packages using the cache if that directory is
4224 # removed, or if the value is a relative name.
4225 MKDIR_P="$ac_install_sh -d"
4226 fi
ad6254c5 4227fi
f11781c5
AK
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4229$as_echo "$MKDIR_P" >&6; }
7a197a62 4230
f11781c5
AK
4231if test -n "$ac_tool_prefix"; then
4232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4233set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235$as_echo_n "checking for $ac_word... " >&6; }
4236if test "${ac_cv_prog_RANLIB+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4238else
4239 if test -n "$RANLIB"; then
4240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4241else
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253done
4254 done
4255IFS=$as_save_IFS
d0191583 4256
f11781c5
AK
4257fi
4258fi
4259RANLIB=$ac_cv_prog_RANLIB
4260if test -n "$RANLIB"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4262$as_echo "$RANLIB" >&6; }
d0191583 4263else
f11781c5
AK
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
ad6254c5 4266fi
ad6254c5 4267
8a2fc586 4268
d0191583 4269fi
f11781c5
AK
4270if test -z "$ac_cv_prog_RANLIB"; then
4271 ac_ct_RANLIB=$RANLIB
4272 # Extract the first word of "ranlib", so it can be a program name with args.
4273set dummy ranlib; ac_word=$2
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275$as_echo_n "checking for $ac_word... " >&6; }
4276if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
4278else
4279 if test -n "$ac_ct_RANLIB"; then
4280 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4281else
4282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289 ac_cv_prog_ac_ct_RANLIB="ranlib"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293done
4294 done
4295IFS=$as_save_IFS
8a2fc586 4296
f11781c5
AK
4297fi
4298fi
4299ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4300if test -n "$ac_ct_RANLIB"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4302$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4303else
f11781c5
AK
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305$as_echo "no" >&6; }
8fea97b7
ZK
4306fi
4307
f11781c5
AK
4308 if test "x$ac_ct_RANLIB" = x; then
4309 RANLIB=":"
4310 else
4311 case $cross_compiling:$ac_tool_warned in
4312yes:)
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4315ac_tool_warned=yes ;;
8fea97b7 4316esac
f11781c5
AK
4317 RANLIB=$ac_ct_RANLIB
4318 fi
d0191583 4319else
f11781c5 4320 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4321fi
8a2fc586 4322
f11781c5
AK
4323# Extract the first word of "cflow", so it can be a program name with args.
4324set dummy cflow; ac_word=$2
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326$as_echo_n "checking for $ac_word... " >&6; }
4327if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4329else
4330 case $CFLOW_CMD in
4331 [\\/]* | ?:[\\/]*)
4332 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4333 ;;
4334 *)
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4345 fi
4346done
4347 done
4348IFS=$as_save_IFS
8a2fc586 4349
f11781c5
AK
4350 ;;
4351esac
ad6254c5 4352fi
f11781c5
AK
4353CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4354if test -n "$CFLOW_CMD"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4356$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4357else
f11781c5
AK
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359$as_echo "no" >&6; }
37ddf259
AK
4360fi
4361
e2997b73 4362
f11781c5
AK
4363# Extract the first word of "cscope", so it can be a program name with args.
4364set dummy cscope; ac_word=$2
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4366$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4367if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4368 $as_echo_n "(cached) " >&6
4369else
f11781c5 4370 case $CSCOPE_CMD in
e2997b73 4371 [\\/]* | ?:[\\/]*)
f11781c5 4372 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4373 ;;
4374 *)
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
f11781c5 4380 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4382 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4384 break 2
4385 fi
4386done
f11781c5 4387 done
e2997b73
AK
4388IFS=$as_save_IFS
4389
4390 ;;
4391esac
4392fi
f11781c5
AK
4393CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4394if test -n "$CSCOPE_CMD"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4396$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4397else
f11781c5 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4399$as_echo "no" >&6; }
4400fi
f11781c5
AK
4401
4402
4403
4404################################################################################
4405ac_header_dirent=no
4406for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4407 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4409$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4410if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4411 $as_echo_n "(cached) " >&6
4412else
4413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414/* end confdefs.h. */
4415#include <sys/types.h>
4416#include <$ac_hdr>
4417
4418int
4419main ()
4420{
4421if ((DIR *) 0)
4422return 0;
4423 ;
4424 return 0;
4425}
4426_ACEOF
4427if ac_fn_c_try_compile "$LINENO"; then :
4428 eval "$as_ac_Header=yes"
4429else
4430 eval "$as_ac_Header=no"
4431fi
4432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433fi
4434eval ac_res=\$$as_ac_Header
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4436$as_echo "$ac_res" >&6; }
4437if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4438 cat >>confdefs.h <<_ACEOF
4439#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4440_ACEOF
4441
4442ac_header_dirent=$ac_hdr; break
4443fi
4444
4445done
4446# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4447if test $ac_header_dirent = dirent.h; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4449$as_echo_n "checking for library containing opendir... " >&6; }
4450if test "${ac_cv_search_opendir+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452else
4453 ac_func_search_save_LIBS=$LIBS
4454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h. */
4456
4457/* Override any GCC internal prototype to avoid an error.
4458 Use char because int might match the return type of a GCC
4459 builtin and then its argument prototype would still apply. */
4460#ifdef __cplusplus
4461extern "C"
4462#endif
4463char opendir ();
4464int
4465main ()
4466{
4467return opendir ();
4468 ;
4469 return 0;
4470}
4471_ACEOF
4472for ac_lib in '' dir; do
4473 if test -z "$ac_lib"; then
4474 ac_res="none required"
4475 else
4476 ac_res=-l$ac_lib
4477 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4478 fi
4479 if ac_fn_c_try_link "$LINENO"; then :
4480 ac_cv_search_opendir=$ac_res
4481fi
4482rm -f core conftest.err conftest.$ac_objext \
4483 conftest$ac_exeext
4484 if test "${ac_cv_search_opendir+set}" = set; then :
4485 break
4486fi
4487done
4488if test "${ac_cv_search_opendir+set}" = set; then :
4489
4490else
4491 ac_cv_search_opendir=no
4492fi
4493rm conftest.$ac_ext
4494LIBS=$ac_func_search_save_LIBS
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4497$as_echo "$ac_cv_search_opendir" >&6; }
4498ac_res=$ac_cv_search_opendir
4499if test "$ac_res" != no; then :
4500 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4501
4502fi
f11781c5
AK
4503
4504else
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4506$as_echo_n "checking for library containing opendir... " >&6; }
4507if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4508 $as_echo_n "(cached) " >&6
4509else
f11781c5
AK
4510 ac_func_search_save_LIBS=$LIBS
4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512/* end confdefs.h. */
e2997b73 4513
f11781c5
AK
4514/* Override any GCC internal prototype to avoid an error.
4515 Use char because int might match the return type of a GCC
4516 builtin and then its argument prototype would still apply. */
4517#ifdef __cplusplus
4518extern "C"
4519#endif
4520char opendir ();
4521int
4522main ()
4523{
4524return opendir ();
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529for ac_lib in '' x; do
4530 if test -z "$ac_lib"; then
4531 ac_res="none required"
4532 else
4533 ac_res=-l$ac_lib
4534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4535 fi
4536 if ac_fn_c_try_link "$LINENO"; then :
4537 ac_cv_search_opendir=$ac_res
e2997b73 4538fi
f11781c5
AK
4539rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext
4541 if test "${ac_cv_search_opendir+set}" = set; then :
4542 break
e2997b73 4543fi
f11781c5
AK
4544done
4545if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4546
e2997b73 4547else
f11781c5
AK
4548 ac_cv_search_opendir=no
4549fi
4550rm conftest.$ac_ext
4551LIBS=$ac_func_search_save_LIBS
e2997b73 4552fi
f11781c5
AK
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4554$as_echo "$ac_cv_search_opendir" >&6; }
4555ac_res=$ac_cv_search_opendir
4556if test "$ac_res" != no; then :
4557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4558
4559fi
8c4e8a18 4560
e2997b73
AK
4561fi
4562
f11781c5
AK
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4564$as_echo_n "checking for ANSI C header files... " >&6; }
4565if test "${ac_cv_header_stdc+set}" = set; then :
4566 $as_echo_n "(cached) " >&6
4567else
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569/* end confdefs.h. */
4570#include <stdlib.h>
4571#include <stdarg.h>
4572#include <string.h>
4573#include <float.h>
e2997b73 4574
f11781c5
AK
4575int
4576main ()
4577{
4578
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583if ac_fn_c_try_compile "$LINENO"; then :
4584 ac_cv_header_stdc=yes
e2997b73 4585else
f11781c5 4586 ac_cv_header_stdc=no
e2997b73 4587fi
f11781c5
AK
4588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589
4590if test $ac_cv_header_stdc = yes; then
4591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4593/* end confdefs.h. */
4594#include <string.h>
4595
4596_ACEOF
4597if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "memchr" >/dev/null 2>&1; then :
4599
e2997b73 4600else
f11781c5 4601 ac_cv_header_stdc=no
e2997b73 4602fi
f11781c5 4603rm -f conftest*
e2997b73 4604
f11781c5 4605fi
e2997b73 4606
f11781c5
AK
4607if test $ac_cv_header_stdc = yes; then
4608 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h. */
4611#include <stdlib.h>
e2997b73 4612
f11781c5
AK
4613_ACEOF
4614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4616
e2997b73 4617else
f11781c5 4618 ac_cv_header_stdc=no
e2997b73 4619fi
f11781c5 4620rm -f conftest*
e2997b73 4621
e2997b73 4622fi
90c80887 4623
f11781c5
AK
4624if test $ac_cv_header_stdc = yes; then
4625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4626 if test "$cross_compiling" = yes; then :
4627 :
4628else
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630/* end confdefs.h. */
4631#include <ctype.h>
4632#include <stdlib.h>
4633#if ((' ' & 0x0FF) == 0x020)
4634# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4635# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4636#else
4637# define ISLOWER(c) \
4638 (('a' <= (c) && (c) <= 'i') \
4639 || ('j' <= (c) && (c) <= 'r') \
4640 || ('s' <= (c) && (c) <= 'z'))
4641# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4642#endif
4643
4644#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4645int
4646main ()
4647{
4648 int i;
4649 for (i = 0; i < 256; i++)
4650 if (XOR (islower (i), ISLOWER (i))
4651 || toupper (i) != TOUPPER (i))
4652 return 2;
4653 return 0;
4654}
4655_ACEOF
4656if ac_fn_c_try_run "$LINENO"; then :
90c80887 4657
90c80887 4658else
f11781c5 4659 ac_cv_header_stdc=no
90c80887 4660fi
f11781c5
AK
4661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4662 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4663fi
90c80887 4664
90c80887 4665fi
90c80887 4666fi
f11781c5
AK
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4668$as_echo "$ac_cv_header_stdc" >&6; }
4669if test $ac_cv_header_stdc = yes; then
90c80887 4670
f11781c5 4671$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4672
90c80887 4673fi
f11781c5
AK
4674
4675# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4676for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4677 inttypes.h stdint.h unistd.h
4678do :
4679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4680ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4681"
4682if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4683 cat >>confdefs.h <<_ACEOF
4684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4685_ACEOF
4686
90c80887 4687fi
f11781c5
AK
4688
4689done
4690
4691
4692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4693$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4694if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4696else
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698/* end confdefs.h. */
4699#include <sys/types.h>
4700int
4701main ()
4702{
4703return makedev(0, 0);
4704 ;
4705 return 0;
4706}
4707_ACEOF
4708if ac_fn_c_try_link "$LINENO"; then :
4709 ac_cv_header_sys_types_h_makedev=yes
4710else
4711 ac_cv_header_sys_types_h_makedev=no
90c80887 4712fi
f11781c5
AK
4713rm -f core conftest.err conftest.$ac_objext \
4714 conftest$ac_exeext conftest.$ac_ext
4715
90c80887 4716fi
f11781c5
AK
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4718$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4719
4720if test $ac_cv_header_sys_types_h_makedev = no; then
4721ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4722if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4723
4724$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4725
a946372e 4726fi
e2997b73 4727
e2997b73 4728
a946372e 4729
f11781c5
AK
4730 if test $ac_cv_header_sys_mkdev_h = no; then
4731 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4732if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4733
4734$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4735
e2997b73 4736fi
a946372e 4737
a946372e 4738
f11781c5
AK
4739 fi
4740fi
4741
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4743$as_echo_n "checking for ANSI C header files... " >&6; }
4744if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4745 $as_echo_n "(cached) " >&6
4746else
f11781c5 4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4748/* end confdefs.h. */
f11781c5
AK
4749#include <stdlib.h>
4750#include <stdarg.h>
4751#include <string.h>
4752#include <float.h>
a946372e 4753
a946372e
AK
4754int
4755main ()
4756{
f11781c5 4757
a946372e
AK
4758 ;
4759 return 0;
4760}
4761_ACEOF
f11781c5
AK
4762if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_header_stdc=yes
e2997b73 4764else
f11781c5
AK
4765 ac_cv_header_stdc=no
4766fi
4767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768
4769if test $ac_cv_header_stdc = yes; then
4770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772/* end confdefs.h. */
4773#include <string.h>
4774
4775_ACEOF
4776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4777 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4778
f11781c5
AK
4779else
4780 ac_cv_header_stdc=no
a946372e 4781fi
f11781c5 4782rm -f conftest*
e2997b73 4783
a946372e 4784fi
e2997b73 4785
f11781c5
AK
4786if test $ac_cv_header_stdc = yes; then
4787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h. */
4790#include <stdlib.h>
4791
4792_ACEOF
4793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4795
e2997b73 4796else
f11781c5 4797 ac_cv_header_stdc=no
e2997b73 4798fi
f11781c5 4799rm -f conftest*
e2997b73 4800
f11781c5 4801fi
a946372e 4802
f11781c5
AK
4803if test $ac_cv_header_stdc = yes; then
4804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4805 if test "$cross_compiling" = yes; then :
4806 :
4807else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809/* end confdefs.h. */
4810#include <ctype.h>
4811#include <stdlib.h>
4812#if ((' ' & 0x0FF) == 0x020)
4813# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4814# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4815#else
4816# define ISLOWER(c) \
4817 (('a' <= (c) && (c) <= 'i') \
4818 || ('j' <= (c) && (c) <= 'r') \
4819 || ('s' <= (c) && (c) <= 'z'))
4820# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4821#endif
e2997b73 4822
f11781c5
AK
4823#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4824int
4825main ()
4826{
4827 int i;
4828 for (i = 0; i < 256; i++)
4829 if (XOR (islower (i), ISLOWER (i))
4830 || toupper (i) != TOUPPER (i))
4831 return 2;
4832 return 0;
4833}
4834_ACEOF
4835if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4836
e2997b73 4837else
f11781c5 4838 ac_cv_header_stdc=no
e2997b73 4839fi
f11781c5
AK
4840rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4841 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4842fi
f11781c5 4843
e2997b73 4844fi
e2997b73 4845fi
f11781c5
AK
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4847$as_echo "$ac_cv_header_stdc" >&6; }
4848if test $ac_cv_header_stdc = yes; then
e2997b73 4849
f11781c5 4850$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4851
f11781c5 4852fi
e2997b73 4853
f11781c5
AK
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4855$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4856if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
4858else
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h. */
4861#include <sys/types.h>
4862#include <sys/wait.h>
4863#ifndef WEXITSTATUS
4864# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4865#endif
4866#ifndef WIFEXITED
4867# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4868#endif
e2997b73 4869
f11781c5
AK
4870int
4871main ()
4872{
4873 int s;
4874 wait (&s);
4875 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4876 ;
4877 return 0;
4878}
4879_ACEOF
4880if ac_fn_c_try_compile "$LINENO"; then :
4881 ac_cv_header_sys_wait_h=yes
e2997b73 4882else
f11781c5 4883 ac_cv_header_sys_wait_h=no
e2997b73 4884fi
f11781c5
AK
4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886fi
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4888$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4889if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4890
f11781c5 4891$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4892
d0191583 4893fi
f11781c5
AK
4894
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4896$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4897if test "${ac_cv_header_time+set}" = set; then :
4898 $as_echo_n "(cached) " >&6
fc54be10 4899else
f11781c5 4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4901/* end confdefs.h. */
f11781c5
AK
4902#include <sys/types.h>
4903#include <sys/time.h>
4904#include <time.h>
4905
4906int
4907main ()
4908{
4909if ((struct tm *) 0)
4910return 0;
4911 ;
4912 return 0;
4913}
a946372e 4914_ACEOF
f11781c5
AK
4915if ac_fn_c_try_compile "$LINENO"; then :
4916 ac_cv_header_time=yes
a946372e 4917else
f11781c5
AK
4918 ac_cv_header_time=no
4919fi
4920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4923$as_echo "$ac_cv_header_time" >&6; }
4924if test $ac_cv_header_time = yes; then
4925
4926$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4927
4928fi
4929
4930
4931for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4932 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4933 sys/wait.h time.h
4934do :
4935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4936ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4937if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4938 cat >>confdefs.h <<_ACEOF
4939#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4940_ACEOF
d0191583 4941
f11781c5
AK
4942else
4943 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4944fi
4945
f11781c5 4946done
fddafd51 4947
f11781c5
AK
4948
4949case "$host_os" in
4950 linux*)
4951 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4952do :
4953 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4954ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4955if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4956 cat >>confdefs.h <<_ACEOF
4957#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4958_ACEOF
a946372e 4959
f11781c5
AK
4960else
4961 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4962fi
4963
f11781c5
AK
4964done
4965 ;;
4966 darwin*)
4967 for ac_header in machine/endian.h sys/disk.h
4968do :
4969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4970ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4971if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4972 cat >>confdefs.h <<_ACEOF
4973#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974_ACEOF
a946372e 4975
f11781c5
AK
4976else
4977 as_fn_error $? "bailing out" "$LINENO" 5
4978fi
a946372e 4979
f11781c5
AK
4980done
4981 ;;
a946372e 4982esac
f11781c5
AK
4983
4984for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4985 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4986 sys/types.h unistd.h
4987do :
4988 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4990if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4991 cat >>confdefs.h <<_ACEOF
4992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993_ACEOF
4994
a946372e 4995else
f11781c5 4996 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4997fi
a946372e 4998
f11781c5
AK
4999done
5000
5001for ac_header in termios.h sys/statvfs.h
5002do :
5003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5004ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5005if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5006 cat >>confdefs.h <<_ACEOF
5007#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008_ACEOF
5009
a946372e
AK
5010fi
5011
5012done
5013
a946372e 5014
f11781c5
AK
5015################################################################################
5016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5017$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5018if test "${ac_cv_c_const+set}" = set; then :
a946372e 5019 $as_echo_n "(cached) " >&6
a946372e 5020else
f11781c5 5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5022/* end confdefs.h. */
a946372e 5023
f11781c5
AK
5024int
5025main ()
5026{
5027/* FIXME: Include the comments suggested by Paul. */
5028#ifndef __cplusplus
5029 /* Ultrix mips cc rejects this. */
5030 typedef int charset[2];
5031 const charset cs;
5032 /* SunOS 4.1.1 cc rejects this. */
5033 char const *const *pcpcc;
5034 char **ppc;
5035 /* NEC SVR4.0.2 mips cc rejects this. */
5036 struct point {int x, y;};
5037 static struct point const zero = {0,0};
5038 /* AIX XL C 1.02.0.0 rejects this.
5039 It does not let you subtract one const X* pointer from another in
5040 an arm of an if-expression whose if-part is not a constant
5041 expression */
5042 const char *g = "string";
5043 pcpcc = &g + (g ? g-g : 0);
5044 /* HPUX 7.0 cc rejects these. */
5045 ++pcpcc;
5046 ppc = (char**) pcpcc;
5047 pcpcc = (char const *const *) ppc;
5048 { /* SCO 3.2v4 cc rejects this. */
5049 char *t;
5050 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5051
f11781c5
AK
5052 *t++ = 0;
5053 if (s) return 0;
5054 }
5055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5056 int x[] = {25, 17};
5057 const int *foo = &x[0];
5058 ++foo;
5059 }
5060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5061 typedef const int *iptr;
5062 iptr p = 0;
5063 ++p;
5064 }
5065 { /* AIX XL C 1.02.0.0 rejects this saying
5066 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5067 struct s { int j; const int *ap[3]; };
5068 struct s *b; b->j = 5;
5069 }
5070 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5071 const int foo = 10;
5072 if (!foo) return 0;
5073 }
5074 return !cs[0] && !zero.x;
5075#endif
a946372e 5076
f11781c5
AK
5077 ;
5078 return 0;
5079}
a946372e 5080_ACEOF
f11781c5
AK
5081if ac_fn_c_try_compile "$LINENO"; then :
5082 ac_cv_c_const=yes
a946372e 5083else
f11781c5
AK
5084 ac_cv_c_const=no
5085fi
5086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5087fi
f11781c5
AK
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5089$as_echo "$ac_cv_c_const" >&6; }
5090if test $ac_cv_c_const = no; then
a946372e 5091
f11781c5 5092$as_echo "#define const /**/" >>confdefs.h
a946372e 5093
f11781c5 5094fi
a946372e 5095
f11781c5
AK
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5097$as_echo_n "checking for inline... " >&6; }
5098if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5099 $as_echo_n "(cached) " >&6
5100else
f11781c5
AK
5101 ac_cv_c_inline=no
5102for ac_kw in inline __inline__ __inline; do
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104/* end confdefs.h. */
5105#ifndef __cplusplus
5106typedef int foo_t;
5107static $ac_kw foo_t static_foo () {return 0; }
5108$ac_kw foo_t foo () {return 0; }
5109#endif
5110
5111_ACEOF
5112if ac_fn_c_try_compile "$LINENO"; then :
5113 ac_cv_c_inline=$ac_kw
a946372e 5114fi
f11781c5
AK
5115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 test "$ac_cv_c_inline" != no && break
5117done
a946372e
AK
5118
5119fi
f11781c5
AK
5120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5121$as_echo "$ac_cv_c_inline" >&6; }
5122
5123case $ac_cv_c_inline in
5124 inline | yes) ;;
5125 *)
5126 case $ac_cv_c_inline in
5127 no) ac_val=;;
5128 *) ac_val=$ac_cv_c_inline;;
5129 esac
5130 cat >>confdefs.h <<_ACEOF
5131#ifndef __cplusplus
5132#define inline $ac_val
5133#endif
5134_ACEOF
5135 ;;
5136esac
5137
5138ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5139if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5140
5141cat >>confdefs.h <<_ACEOF
5142#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5143_ACEOF
5144
f11781c5 5145
a946372e
AK
5146fi
5147
f11781c5
AK
5148ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5149if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5150
a946372e 5151else
f11781c5
AK
5152
5153cat >>confdefs.h <<_ACEOF
5154#define off_t long int
5155_ACEOF
5156
a946372e
AK
5157fi
5158
f11781c5
AK
5159ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5160if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5161
a946372e 5162else
f11781c5
AK
5163
5164cat >>confdefs.h <<_ACEOF
5165#define pid_t int
5166_ACEOF
5167
5168fi
5169
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5171$as_echo_n "checking return type of signal handlers... " >&6; }
5172if test "${ac_cv_type_signal+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
a946372e 5174else
f11781c5
AK
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h. */
5177#include <sys/types.h>
5178#include <signal.h>
5179
5180int
5181main ()
5182{
5183return *(signal (0, 0)) (0) == 1;
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188if ac_fn_c_try_compile "$LINENO"; then :
5189 ac_cv_type_signal=int
5190else
5191 ac_cv_type_signal=void
a946372e 5192fi
f11781c5 5193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5194fi
f11781c5
AK
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5196$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5197
f11781c5
AK
5198cat >>confdefs.h <<_ACEOF
5199#define RETSIGTYPE $ac_cv_type_signal
5200_ACEOF
a946372e
AK
5201
5202
f11781c5
AK
5203ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5204if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5205
a946372e 5206else
a946372e 5207
f11781c5
AK
5208cat >>confdefs.h <<_ACEOF
5209#define size_t unsigned int
5210_ACEOF
a946372e 5211
a946372e 5212fi
f11781c5
AK
5213
5214ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5215if test "x$ac_cv_type_mode_t" = x""yes; then :
5216
a946372e 5217else
f11781c5
AK
5218
5219cat >>confdefs.h <<_ACEOF
5220#define mode_t int
a946372e 5221_ACEOF
a946372e 5222
a946372e
AK
5223fi
5224
f11781c5
AK
5225ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5226case $ac_cv_c_int8_t in #(
5227 no|yes) ;; #(
5228 *)
a946372e 5229
f11781c5
AK
5230cat >>confdefs.h <<_ACEOF
5231#define int8_t $ac_cv_c_int8_t
a946372e 5232_ACEOF
f11781c5 5233;;
a946372e 5234esac
a946372e 5235
f11781c5
AK
5236ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5237case $ac_cv_c_int16_t in #(
5238 no|yes) ;; #(
5239 *)
a946372e 5240
f11781c5
AK
5241cat >>confdefs.h <<_ACEOF
5242#define int16_t $ac_cv_c_int16_t
5243_ACEOF
5244;;
5245esac
a946372e 5246
f11781c5
AK
5247ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5248case $ac_cv_c_int32_t in #(
5249 no|yes) ;; #(
5250 *)
a946372e 5251
f11781c5
AK
5252cat >>confdefs.h <<_ACEOF
5253#define int32_t $ac_cv_c_int32_t
5254_ACEOF
5255;;
a946372e 5256esac
a946372e 5257
f11781c5
AK
5258ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5259case $ac_cv_c_int64_t in #(
5260 no|yes) ;; #(
5261 *)
5262
5263cat >>confdefs.h <<_ACEOF
5264#define int64_t $ac_cv_c_int64_t
a946372e 5265_ACEOF
f11781c5
AK
5266;;
5267esac
5268
5269ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5270if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5271
5272else
a946372e 5273
f11781c5
AK
5274cat >>confdefs.h <<_ACEOF
5275#define ssize_t int
5276_ACEOF
a946372e 5277
f11781c5 5278fi
a946372e 5279
f11781c5
AK
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5281$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5282if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5283 $as_echo_n "(cached) " >&6
a946372e 5284else
f11781c5 5285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5286/* end confdefs.h. */
f11781c5
AK
5287#include <sys/types.h>
5288
a946372e 5289_ACEOF
f11781c5
AK
5290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291 $EGREP "uid_t" >/dev/null 2>&1; then :
5292 ac_cv_type_uid_t=yes
a946372e 5293else
f11781c5
AK
5294 ac_cv_type_uid_t=no
5295fi
5296rm -f conftest*
a946372e 5297
a946372e 5298fi
f11781c5
AK
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5300$as_echo "$ac_cv_type_uid_t" >&6; }
5301if test $ac_cv_type_uid_t = no; then
a946372e 5302
f11781c5 5303$as_echo "#define uid_t int" >>confdefs.h
a946372e 5304
f11781c5
AK
5305
5306$as_echo "#define gid_t int" >>confdefs.h
5307
5308fi
5309
5310ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5311case $ac_cv_c_uint8_t in #(
5312 no|yes) ;; #(
5313 *)
5314
5315$as_echo "#define _UINT8_T 1" >>confdefs.h
5316
5317
5318cat >>confdefs.h <<_ACEOF
5319#define uint8_t $ac_cv_c_uint8_t
a946372e 5320_ACEOF
f11781c5
AK
5321;;
5322 esac
5323
5324ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5325case $ac_cv_c_uint16_t in #(
5326 no|yes) ;; #(
5327 *)
5328
5329
5330cat >>confdefs.h <<_ACEOF
5331#define uint16_t $ac_cv_c_uint16_t
a946372e 5332_ACEOF
f11781c5
AK
5333;;
5334 esac
a946372e 5335
f11781c5
AK
5336ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5337case $ac_cv_c_uint32_t in #(
5338 no|yes) ;; #(
5339 *)
a946372e 5340
f11781c5 5341$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5342
a946372e 5343
f11781c5
AK
5344cat >>confdefs.h <<_ACEOF
5345#define uint32_t $ac_cv_c_uint32_t
5346_ACEOF
5347;;
5348 esac
5349
5350ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5351case $ac_cv_c_uint64_t in #(
5352 no|yes) ;; #(
5353 *)
5354
5355$as_echo "#define _UINT64_T 1" >>confdefs.h
5356
5357
5358cat >>confdefs.h <<_ACEOF
5359#define uint64_t $ac_cv_c_uint64_t
5360_ACEOF
5361;;
5362 esac
5363
5364ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5365if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5366
5367cat >>confdefs.h <<_ACEOF
5368#define HAVE_STRUCT_STAT_ST_RDEV 1
5369_ACEOF
5370
5371
5372fi
5373
5374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5375$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5376if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5377 $as_echo_n "(cached) " >&6
5378else
f11781c5
AK
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h. */
5381#include <sys/types.h>
5382#include <time.h>
5383
5384int
5385main ()
5386{
5387struct tm tm;
5388 int *p = &tm.tm_sec;
5389 return !p;
5390 ;
5391 return 0;
5392}
5393_ACEOF
5394if ac_fn_c_try_compile "$LINENO"; then :
5395 ac_cv_struct_tm=time.h
5396else
5397 ac_cv_struct_tm=sys/time.h
a946372e 5398fi
f11781c5
AK
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5400fi
5401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5402$as_echo "$ac_cv_struct_tm" >&6; }
5403if test $ac_cv_struct_tm = sys/time.h; then
5404
5405$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5406
5407fi
f11781c5
AK
5408
5409
5410################################################################################
5411for ac_func in ftruncate gethostname getpagesize \
5412 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5413 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5414 strstr strtol strtoul uname
5415do :
5416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5417ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5418if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5419 cat >>confdefs.h <<_ACEOF
f11781c5 5420#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5421_ACEOF
5422
5423else
f11781c5 5424 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5425fi
a946372e
AK
5426done
5427
f11781c5
AK
5428for ac_func in siginterrupt
5429do :
5430 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5431if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5432 cat >>confdefs.h <<_ACEOF
5433#define HAVE_SIGINTERRUPT 1
5434_ACEOF
a946372e 5435
f11781c5
AK
5436fi
5437done
a946372e 5438
f11781c5
AK
5439# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5440# for constant arguments. Useless!
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5442$as_echo_n "checking for working alloca.h... " >&6; }
5443if test "${ac_cv_working_alloca_h+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
a946372e 5445else
f11781c5
AK
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447/* end confdefs.h. */
5448#include <alloca.h>
5449int
5450main ()
5451{
5452char *p = (char *) alloca (2 * sizeof (int));
5453 if (p) return 0;
5454 ;
5455 return 0;
5456}
5457_ACEOF
5458if ac_fn_c_try_link "$LINENO"; then :
5459 ac_cv_working_alloca_h=yes
a946372e 5460else
f11781c5 5461 ac_cv_working_alloca_h=no
a946372e 5462fi
f11781c5
AK
5463rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
a946372e 5465fi
f11781c5
AK
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5467$as_echo "$ac_cv_working_alloca_h" >&6; }
5468if test $ac_cv_working_alloca_h = yes; then
a946372e 5469
f11781c5 5470$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5471
a946372e 5472fi
a946372e 5473
f11781c5
AK
5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5475$as_echo_n "checking for alloca... " >&6; }
5476if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5477 $as_echo_n "(cached) " >&6
a946372e 5478else
f11781c5 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5480/* end confdefs.h. */
f11781c5
AK
5481#ifdef __GNUC__
5482# define alloca __builtin_alloca
5483#else
5484# ifdef _MSC_VER
5485# include <malloc.h>
5486# define alloca _alloca
5487# else
5488# ifdef HAVE_ALLOCA_H
5489# include <alloca.h>
5490# else
5491# ifdef _AIX
5492 #pragma alloca
5493# else
5494# ifndef alloca /* predefined by HP cc +Olibcalls */
5495char *alloca ();
5496# endif
5497# endif
5498# endif
5499# endif
5500#endif
a946372e 5501
f11781c5
AK
5502int
5503main ()
5504{
5505char *p = (char *) alloca (1);
5506 if (p) return 0;
5507 ;
5508 return 0;
5509}
a946372e 5510_ACEOF
f11781c5
AK
5511if ac_fn_c_try_link "$LINENO"; then :
5512 ac_cv_func_alloca_works=yes
a946372e 5513else
f11781c5 5514 ac_cv_func_alloca_works=no
a946372e 5515fi
f11781c5
AK
5516rm -f core conftest.err conftest.$ac_objext \
5517 conftest$ac_exeext conftest.$ac_ext
5518fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5520$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5521
f11781c5 5522if test $ac_cv_func_alloca_works = yes; then
a946372e 5523
f11781c5 5524$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5525
a946372e 5526else
f11781c5
AK
5527 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5528# that cause trouble. Some versions do not even contain alloca or
5529# contain a buggy version. If you still want to use their alloca,
5530# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5531
f11781c5 5532ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5533
f11781c5 5534$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5535
a946372e 5536
f11781c5
AK
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5538$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5539if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5540 $as_echo_n "(cached) " >&6
a946372e 5541else
f11781c5 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5543/* end confdefs.h. */
f11781c5
AK
5544#if defined CRAY && ! defined CRAY2
5545webecray
5546#else
5547wenotbecray
5548#endif
5549
a946372e 5550_ACEOF
f11781c5
AK
5551if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5552 $EGREP "webecray" >/dev/null 2>&1; then :
5553 ac_cv_os_cray=yes
a946372e 5554else
f11781c5 5555 ac_cv_os_cray=no
a946372e 5556fi
f11781c5 5557rm -f conftest*
a946372e 5558
f11781c5
AK
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5561$as_echo "$ac_cv_os_cray" >&6; }
5562if test $ac_cv_os_cray = yes; then
5563 for ac_func in _getb67 GETB67 getb67; do
5564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5565ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5566if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5567
f11781c5
AK
5568cat >>confdefs.h <<_ACEOF
5569#define CRAY_STACKSEG_END $ac_func
a946372e 5570_ACEOF
a946372e 5571
f11781c5 5572 break
a946372e
AK
5573fi
5574
f11781c5
AK
5575 done
5576fi
a946372e 5577
f11781c5
AK
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5579$as_echo_n "checking stack direction for C alloca... " >&6; }
5580if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5581 $as_echo_n "(cached) " >&6
5582else
f11781c5
AK
5583 if test "$cross_compiling" = yes; then :
5584 ac_cv_c_stack_direction=0
5585else
5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h. */
5588$ac_includes_default
5589int
5590find_stack_direction ()
5591{
5592 static char *addr = 0;
5593 auto char dummy;
5594 if (addr == 0)
5595 {
5596 addr = &dummy;
5597 return find_stack_direction ();
5598 }
5599 else
5600 return (&dummy > addr) ? 1 : -1;
5601}
5602
5603int
5604main ()
5605{
5606 return find_stack_direction () < 0;
5607}
5608_ACEOF
5609if ac_fn_c_try_run "$LINENO"; then :
5610 ac_cv_c_stack_direction=1
5611else
5612 ac_cv_c_stack_direction=-1
5613fi
5614rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5615 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5616fi
a946372e
AK
5617
5618fi
f11781c5
AK
5619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5620$as_echo "$ac_cv_c_stack_direction" >&6; }
5621cat >>confdefs.h <<_ACEOF
5622#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5623_ACEOF
5624
f11781c5 5625
a946372e
AK
5626fi
5627
f11781c5
AK
5628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5629$as_echo_n "checking whether closedir returns void... " >&6; }
5630if test "${ac_cv_func_closedir_void+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632else
5633 if test "$cross_compiling" = yes; then :
5634 ac_cv_func_closedir_void=yes
5635else
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h. */
5638$ac_includes_default
5639#include <$ac_header_dirent>
5640#ifndef __cplusplus
5641int closedir ();
5642#endif
a946372e 5643
f11781c5
AK
5644int
5645main ()
5646{
5647return closedir (opendir (".")) != 0;
5648 ;
5649 return 0;
5650}
5651_ACEOF
5652if ac_fn_c_try_run "$LINENO"; then :
5653 ac_cv_func_closedir_void=no
a946372e 5654else
f11781c5 5655 ac_cv_func_closedir_void=yes
a946372e 5656fi
f11781c5
AK
5657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5658 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5659fi
5660
f11781c5
AK
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5663$as_echo "$ac_cv_func_closedir_void" >&6; }
5664if test $ac_cv_func_closedir_void = yes; then
a946372e 5665
f11781c5 5666$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5667
a946372e
AK
5668fi
5669
f11781c5
AK
5670for ac_header in unistd.h
5671do :
5672 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5673if test "x$ac_cv_header_unistd_h" = x""yes; then :
5674 cat >>confdefs.h <<_ACEOF
5675#define HAVE_UNISTD_H 1
5676_ACEOF
a946372e 5677
f11781c5 5678fi
a946372e 5679
f11781c5 5680done
a946372e 5681
f11781c5
AK
5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5683$as_echo_n "checking for working chown... " >&6; }
5684if test "${ac_cv_func_chown_works+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
a946372e 5686else
f11781c5
AK
5687 if test "$cross_compiling" = yes; then :
5688 ac_cv_func_chown_works=no
a946372e 5689else
f11781c5
AK
5690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691/* end confdefs.h. */
5692$ac_includes_default
5693#include <fcntl.h>
a946372e 5694
f11781c5
AK
5695int
5696main ()
5697{
5698 char *f = "conftest.chown";
5699 struct stat before, after;
a946372e 5700
f11781c5
AK
5701 if (creat (f, 0600) < 0)
5702 return 1;
5703 if (stat (f, &before) < 0)
5704 return 1;
5705 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5706 return 1;
5707 if (stat (f, &after) < 0)
5708 return 1;
5709 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5710
f11781c5
AK
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715if ac_fn_c_try_run "$LINENO"; then :
5716 ac_cv_func_chown_works=yes
a946372e 5717else
f11781c5 5718 ac_cv_func_chown_works=no
a946372e 5719fi
f11781c5
AK
5720rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5721 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5722fi
5723
f11781c5 5724rm -f conftest.chown
a946372e 5725
f11781c5
AK
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5728$as_echo "$ac_cv_func_chown_works" >&6; }
5729if test $ac_cv_func_chown_works = yes; then
a946372e 5730
f11781c5 5731$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5732
a946372e 5733fi
a946372e 5734
f11781c5
AK
5735for ac_header in vfork.h
5736do :
5737 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5738if test "x$ac_cv_header_vfork_h" = x""yes; then :
5739 cat >>confdefs.h <<_ACEOF
5740#define HAVE_VFORK_H 1
5741_ACEOF
a946372e 5742
f11781c5 5743fi
a946372e 5744
f11781c5 5745done
a946372e 5746
f11781c5
AK
5747for ac_func in fork vfork
5748do :
5749 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5750ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5751if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5752 cat >>confdefs.h <<_ACEOF
5753#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5754_ACEOF
a946372e 5755
f11781c5
AK
5756fi
5757done
a946372e 5758
f11781c5
AK
5759if test "x$ac_cv_func_fork" = xyes; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5761$as_echo_n "checking for working fork... " >&6; }
5762if test "${ac_cv_func_fork_works+set}" = set; then :
5763 $as_echo_n "(cached) " >&6
5764else
5765 if test "$cross_compiling" = yes; then :
5766 ac_cv_func_fork_works=cross
5767else
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769/* end confdefs.h. */
5770$ac_includes_default
5771int
5772main ()
5773{
a946372e 5774
f11781c5
AK
5775 /* By Ruediger Kuhlmann. */
5776 return fork () < 0;
a946372e 5777
f11781c5
AK
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_run "$LINENO"; then :
5783 ac_cv_func_fork_works=yes
a946372e 5784else
f11781c5
AK
5785 ac_cv_func_fork_works=no
5786fi
5787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5788 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5789fi
a946372e 5790
f11781c5
AK
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5793$as_echo "$ac_cv_func_fork_works" >&6; }
5794
a946372e 5795else
f11781c5 5796 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5797fi
f11781c5
AK
5798if test "x$ac_cv_func_fork_works" = xcross; then
5799 case $host in
5800 *-*-amigaos* | *-*-msdosdjgpp*)
5801 # Override, as these systems have only a dummy fork() stub
5802 ac_cv_func_fork_works=no
5803 ;;
5804 *)
5805 ac_cv_func_fork_works=yes
5806 ;;
5807 esac
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5809$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5810fi
f11781c5
AK
5811ac_cv_func_vfork_works=$ac_cv_func_vfork
5812if test "x$ac_cv_func_vfork" = xyes; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5814$as_echo_n "checking for working vfork... " >&6; }
5815if test "${ac_cv_func_vfork_works+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817else
5818 if test "$cross_compiling" = yes; then :
5819 ac_cv_func_vfork_works=cross
5820else
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822/* end confdefs.h. */
5823/* Thanks to Paul Eggert for this test. */
5824$ac_includes_default
5825#include <sys/wait.h>
5826#ifdef HAVE_VFORK_H
5827# include <vfork.h>
5828#endif
5829/* On some sparc systems, changes by the child to local and incoming
5830 argument registers are propagated back to the parent. The compiler
5831 is told about this with #include <vfork.h>, but some compilers
5832 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5833 static variable whose address is put into a register that is
5834 clobbered by the vfork. */
5835static void
5836#ifdef __cplusplus
5837sparc_address_test (int arg)
5838# else
5839sparc_address_test (arg) int arg;
5840#endif
5841{
5842 static pid_t child;
5843 if (!child) {
5844 child = vfork ();
5845 if (child < 0) {
5846 perror ("vfork");
5847 _exit(2);
5848 }
5849 if (!child) {
5850 arg = getpid();
5851 write(-1, "", 0);
5852 _exit (arg);
5853 }
5854 }
5855}
a946372e 5856
f11781c5
AK
5857int
5858main ()
5859{
5860 pid_t parent = getpid ();
5861 pid_t child;
a946372e 5862
f11781c5 5863 sparc_address_test (0);
a946372e 5864
f11781c5 5865 child = vfork ();
a946372e 5866
f11781c5
AK
5867 if (child == 0) {
5868 /* Here is another test for sparc vfork register problems. This
5869 test uses lots of local variables, at least as many local
5870 variables as main has allocated so far including compiler
5871 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5872 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5873 reuse the register of parent for one of the local variables,
5874 since it will think that parent can't possibly be used any more
5875 in this routine. Assigning to the local variable will thus
5876 munge parent in the parent process. */
5877 pid_t
5878 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5879 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5880 /* Convince the compiler that p..p7 are live; otherwise, it might
5881 use the same hardware register for all 8 local variables. */
5882 if (p != p1 || p != p2 || p != p3 || p != p4
5883 || p != p5 || p != p6 || p != p7)
5884 _exit(1);
a946372e 5885
f11781c5
AK
5886 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5887 from child file descriptors. If the child closes a descriptor
5888 before it execs or exits, this munges the parent's descriptor
5889 as well. Test for this by closing stdout in the child. */
5890 _exit(close(fileno(stdout)) != 0);
5891 } else {
5892 int status;
5893 struct stat st;
5894
5895 while (wait(&status) != child)
5896 ;
5897 return (
5898 /* Was there some problem with vforking? */
5899 child < 0
5900
5901 /* Did the child fail? (This shouldn't happen.) */
5902 || status
5903
5904 /* Did the vfork/compiler bug occur? */
5905 || parent != getpid()
5906
5907 /* Did the file descriptor bug occur? */
5908 || fstat(fileno(stdout), &st) != 0
5909 );
5910 }
5911}
5912_ACEOF
5913if ac_fn_c_try_run "$LINENO"; then :
5914 ac_cv_func_vfork_works=yes
a946372e 5915else
f11781c5 5916 ac_cv_func_vfork_works=no
a946372e 5917fi
f11781c5
AK
5918rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5919 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5920fi
f11781c5 5921
a946372e 5922fi
f11781c5
AK
5923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5924$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5925
f11781c5
AK
5926fi;
5927if test "x$ac_cv_func_fork_works" = xcross; then
5928 ac_cv_func_vfork_works=$ac_cv_func_vfork
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5930$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5931fi
a946372e 5932
f11781c5 5933if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5934
f11781c5 5935$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5936
a946372e 5937else
a946372e 5938
f11781c5
AK
5939$as_echo "#define vfork fork" >>confdefs.h
5940
a946372e 5941fi
f11781c5 5942if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5943
f11781c5 5944$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5945
a946372e 5946fi
f11781c5
AK
5947
5948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5949$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5950if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
a946372e 5952else
f11781c5
AK
5953 rm -f conftest.sym conftest.file
5954echo >conftest.file
5955if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5956 if test "$cross_compiling" = yes; then :
5957 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5958else
f11781c5 5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5960/* end confdefs.h. */
f11781c5
AK
5961$ac_includes_default
5962int
5963main ()
5964{
5965struct stat sbuf;
5966 /* Linux will dereference the symlink and fail, as required by POSIX.
5967 That is better in the sense that it means we will not
5968 have to compile and use the lstat wrapper. */
5969 return lstat ("conftest.sym/", &sbuf) == 0;
5970 ;
5971 return 0;
5972}
a946372e 5973_ACEOF
f11781c5
AK
5974if ac_fn_c_try_run "$LINENO"; then :
5975 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5976else
f11781c5 5977 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5978fi
f11781c5
AK
5979rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5980 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5981fi
a946372e 5982
a946372e 5983else
f11781c5
AK
5984 # If the `ln -s' command failed, then we probably don't even
5985 # have an lstat function.
5986 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5987fi
f11781c5 5988rm -f conftest.sym conftest.file
a946372e 5989
f11781c5
AK
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5992$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5993
f11781c5 5994test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5995
f11781c5
AK
5996cat >>confdefs.h <<_ACEOF
5997#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5998_ACEOF
a946372e 5999
a946372e 6000
f11781c5
AK
6001if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6002 case " $LIBOBJS " in
6003 *" lstat.$ac_objext "* ) ;;
6004 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6005 ;;
6006esac
a946372e 6007
f11781c5 6008fi
a946372e 6009
f11781c5
AK
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6011$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6012if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
a946372e 6014else
f11781c5
AK
6015 if test "$cross_compiling" = yes; then :
6016 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6017else
f11781c5
AK
6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h. */
6020$ac_includes_default
6021int
6022main ()
6023{
6024struct stat sbuf;
6025 return lstat ("", &sbuf) == 0;
6026 ;
6027 return 0;
6028}
6029_ACEOF
6030if ac_fn_c_try_run "$LINENO"; then :
6031 ac_cv_func_lstat_empty_string_bug=no
6032else
6033 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6034fi
f11781c5
AK
6035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6036 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6037fi
6038
f11781c5
AK
6039fi
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6041$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6042if test $ac_cv_func_lstat_empty_string_bug = yes; then
6043 case " $LIBOBJS " in
6044 *" lstat.$ac_objext "* ) ;;
6045 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6046 ;;
6047esac
a946372e
AK
6048
6049
f11781c5
AK
6050cat >>confdefs.h <<_ACEOF
6051#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6052_ACEOF
a946372e 6053
a946372e 6054fi
a946372e 6055
f11781c5
AK
6056for ac_header in stdlib.h
6057do :
6058 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6059if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6060 cat >>confdefs.h <<_ACEOF
6061#define HAVE_STDLIB_H 1
6062_ACEOF
6063
a946372e
AK
6064fi
6065
f11781c5 6066done
a946372e 6067
f11781c5
AK
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6069$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6070if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6071 $as_echo_n "(cached) " >&6
6072else
6073 if test "$cross_compiling" = yes; then :
6074 ac_cv_func_malloc_0_nonnull=no
6075else
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h. */
6078#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6079# include <stdlib.h>
6080#else
6081char *malloc ();
6082#endif
a946372e 6083
f11781c5
AK
6084int
6085main ()
6086{
6087return ! malloc (0);
6088 ;
6089 return 0;
6090}
6091_ACEOF
6092if ac_fn_c_try_run "$LINENO"; then :
6093 ac_cv_func_malloc_0_nonnull=yes
a946372e 6094else
f11781c5 6095 ac_cv_func_malloc_0_nonnull=no
a946372e 6096fi
f11781c5
AK
6097rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6098 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6099fi
f11781c5 6100
a946372e 6101fi
f11781c5
AK
6102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6103$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6104if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6105
f11781c5 6106$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6107
f11781c5
AK
6108else
6109 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6110
f11781c5
AK
6111 case " $LIBOBJS " in
6112 *" malloc.$ac_objext "* ) ;;
6113 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6114 ;;
6115esac
6116
6117
6118$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6119
a946372e 6120fi
a946372e 6121
a946372e 6122
f11781c5
AK
6123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6124$as_echo_n "checking for working memcmp... " >&6; }
6125if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6126 $as_echo_n "(cached) " >&6
a946372e 6127else
f11781c5
AK
6128 if test "$cross_compiling" = yes; then :
6129 ac_cv_func_memcmp_working=no
6130else
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6132/* end confdefs.h. */
6133$ac_includes_default
f11781c5
AK
6134int
6135main ()
6136{
a946372e 6137
f11781c5
AK
6138 /* Some versions of memcmp are not 8-bit clean. */
6139 char c0 = '\100', c1 = '\200', c2 = '\201';
6140 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6141 return 1;
a946372e 6142
f11781c5
AK
6143 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6144 or more and with at least one buffer not starting on a 4-byte boundary.
6145 William Lewis provided this test program. */
6146 {
6147 char foo[21];
6148 char bar[21];
6149 int i;
6150 for (i = 0; i < 4; i++)
6151 {
6152 char *a = foo + i;
6153 char *b = bar + i;
6154 strcpy (a, "--------01111111");
6155 strcpy (b, "--------10000000");
6156 if (memcmp (a, b, 16) >= 0)
6157 return 1;
6158 }
6159 return 0;
6160 }
a946372e 6161
f11781c5
AK
6162 ;
6163 return 0;
6164}
a946372e 6165_ACEOF
f11781c5
AK
6166if ac_fn_c_try_run "$LINENO"; then :
6167 ac_cv_func_memcmp_working=yes
a946372e 6168else
f11781c5
AK
6169 ac_cv_func_memcmp_working=no
6170fi
6171rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6172 conftest.$ac_objext conftest.beam conftest.$ac_ext
6173fi
a946372e 6174
a946372e 6175fi
f11781c5
AK
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6177$as_echo "$ac_cv_func_memcmp_working" >&6; }
6178test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6179 *" memcmp.$ac_objext "* ) ;;
6180 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6181 ;;
6182esac
a946372e 6183
a946372e 6184
a946372e 6185
a946372e 6186
f11781c5
AK
6187
6188 for ac_header in $ac_header_list
6189do :
6190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6191ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6192"
6193if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6194 cat >>confdefs.h <<_ACEOF
6195#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6196_ACEOF
6197
a946372e
AK
6198fi
6199
6200done
6201
a946372e 6202
f11781c5
AK
6203
6204
6205
6206
6207
6208
6209for ac_func in getpagesize
6210do :
6211 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6212if test "x$ac_cv_func_getpagesize" = x""yes; then :
6213 cat >>confdefs.h <<_ACEOF
6214#define HAVE_GETPAGESIZE 1
6215_ACEOF
6216
a946372e 6217fi
f11781c5
AK
6218done
6219
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6221$as_echo_n "checking for working mmap... " >&6; }
6222if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6223 $as_echo_n "(cached) " >&6
a946372e 6224else
f11781c5
AK
6225 if test "$cross_compiling" = yes; then :
6226 ac_cv_func_mmap_fixed_mapped=no
6227else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6229/* end confdefs.h. */
6230$ac_includes_default
f11781c5
AK
6231/* malloc might have been renamed as rpl_malloc. */
6232#undef malloc
6233
6234/* Thanks to Mike Haertel and Jim Avera for this test.
6235 Here is a matrix of mmap possibilities:
6236 mmap private not fixed
6237 mmap private fixed at somewhere currently unmapped
6238 mmap private fixed at somewhere already mapped
6239 mmap shared not fixed
6240 mmap shared fixed at somewhere currently unmapped
6241 mmap shared fixed at somewhere already mapped
6242 For private mappings, we should verify that changes cannot be read()
6243 back from the file, nor mmap's back from the file at a different
6244 address. (There have been systems where private was not correctly
6245 implemented like the infamous i386 svr4.0, and systems where the
6246 VM page cache was not coherent with the file system buffer cache
6247 like early versions of FreeBSD and possibly contemporary NetBSD.)
6248 For shared mappings, we should conversely verify that changes get
6249 propagated back to all the places they're supposed to be.
6250
6251 Grep wants private fixed already mapped.
6252 The main things grep needs to know about mmap are:
6253 * does it exist and is it safe to write into the mmap'd area
6254 * how to use it (BSD variants) */
6255
6256#include <fcntl.h>
6257#include <sys/mman.h>
6258
6259#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6260char *malloc ();
6261#endif
6262
6263/* This mess was copied from the GNU getpagesize.h. */
6264#ifndef HAVE_GETPAGESIZE
6265# ifdef _SC_PAGESIZE
6266# define getpagesize() sysconf(_SC_PAGESIZE)
6267# else /* no _SC_PAGESIZE */
6268# ifdef HAVE_SYS_PARAM_H
6269# include <sys/param.h>
6270# ifdef EXEC_PAGESIZE
6271# define getpagesize() EXEC_PAGESIZE
6272# else /* no EXEC_PAGESIZE */
6273# ifdef NBPG
6274# define getpagesize() NBPG * CLSIZE
6275# ifndef CLSIZE
6276# define CLSIZE 1
6277# endif /* no CLSIZE */
6278# else /* no NBPG */
6279# ifdef NBPC
6280# define getpagesize() NBPC
6281# else /* no NBPC */
6282# ifdef PAGESIZE
6283# define getpagesize() PAGESIZE
6284# endif /* PAGESIZE */
6285# endif /* no NBPC */
6286# endif /* no NBPG */
6287# endif /* no EXEC_PAGESIZE */
6288# else /* no HAVE_SYS_PARAM_H */
6289# define getpagesize() 8192 /* punt totally */
6290# endif /* no HAVE_SYS_PARAM_H */
6291# endif /* no _SC_PAGESIZE */
6292
6293#endif /* no HAVE_GETPAGESIZE */
6294
6295int
6296main ()
6297{
6298 char *data, *data2, *data3;
6299 const char *cdata2;
6300 int i, pagesize;
6301 int fd, fd2;
6302
6303 pagesize = getpagesize ();
6304
6305 /* First, make a file with some known garbage in it. */
6306 data = (char *) malloc (pagesize);
6307 if (!data)
6308 return 1;
6309 for (i = 0; i < pagesize; ++i)
6310 *(data + i) = rand ();
6311 umask (0);
6312 fd = creat ("conftest.mmap", 0600);
6313 if (fd < 0)
6314 return 2;
6315 if (write (fd, data, pagesize) != pagesize)
6316 return 3;
6317 close (fd);
6318
6319 /* Next, check that the tail of a page is zero-filled. File must have
6320 non-zero length, otherwise we risk SIGBUS for entire page. */
6321 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6322 if (fd2 < 0)
6323 return 4;
6324 cdata2 = "";
6325 if (write (fd2, cdata2, 1) != 1)
6326 return 5;
6327 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6328 if (data2 == MAP_FAILED)
6329 return 6;
6330 for (i = 0; i < pagesize; ++i)
6331 if (*(data2 + i))
6332 return 7;
6333 close (fd2);
6334 if (munmap (data2, pagesize))
6335 return 8;
6336
6337 /* Next, try to mmap the file at a fixed address which already has
6338 something else allocated at it. If we can, also make sure that
6339 we see the same garbage. */
6340 fd = open ("conftest.mmap", O_RDWR);
6341 if (fd < 0)
6342 return 9;
6343 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6344 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6345 return 10;
6346 for (i = 0; i < pagesize; ++i)
6347 if (*(data + i) != *(data2 + i))
6348 return 11;
6349
6350 /* Finally, make sure that changes to the mapped area do not
6351 percolate back to the file as seen by read(). (This is a bug on
6352 some variants of i386 svr4.0.) */
6353 for (i = 0; i < pagesize; ++i)
6354 *(data2 + i) = *(data2 + i) + 1;
6355 data3 = (char *) malloc (pagesize);
6356 if (!data3)
6357 return 12;
6358 if (read (fd, data3, pagesize) != pagesize)
6359 return 13;
6360 for (i = 0; i < pagesize; ++i)
6361 if (*(data + i) != *(data3 + i))
6362 return 14;
6363 close (fd);
6364 return 0;
6365}
a946372e 6366_ACEOF
f11781c5
AK
6367if ac_fn_c_try_run "$LINENO"; then :
6368 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6369else
f11781c5
AK
6370 ac_cv_func_mmap_fixed_mapped=no
6371fi
6372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6373 conftest.$ac_objext conftest.beam conftest.$ac_ext
6374fi
a946372e 6375
a946372e 6376fi
f11781c5
AK
6377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6378$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6379if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6380
f11781c5 6381$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6382
f11781c5
AK
6383fi
6384rm -f conftest.mmap conftest.txt
6385
6386for ac_header in stdlib.h
6387do :
6388 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6389if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6390 cat >>confdefs.h <<_ACEOF
6391#define HAVE_STDLIB_H 1
a946372e 6392_ACEOF
f11781c5
AK
6393
6394fi
6395
6396done
6397
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6399$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6400if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402else
6403 if test "$cross_compiling" = yes; then :
6404 ac_cv_func_realloc_0_nonnull=no
6405else
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6407/* end confdefs.h. */
f11781c5
AK
6408#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6409# include <stdlib.h>
6410#else
6411char *realloc ();
6412#endif
6413
6414int
6415main ()
6416{
6417return ! realloc (0, 0);
6418 ;
6419 return 0;
6420}
a946372e 6421_ACEOF
f11781c5
AK
6422if ac_fn_c_try_run "$LINENO"; then :
6423 ac_cv_func_realloc_0_nonnull=yes
a946372e 6424else
f11781c5
AK
6425 ac_cv_func_realloc_0_nonnull=no
6426fi
6427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6428 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6429fi
6430
f11781c5
AK
6431fi
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6433$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6434if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6435
f11781c5 6436$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6437
a946372e 6438else
f11781c5
AK
6439 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6440
6441 case " $LIBOBJS " in
6442 *" realloc.$ac_objext "* ) ;;
6443 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6444 ;;
6445esac
a946372e 6446
a946372e 6447
f11781c5
AK
6448$as_echo "#define realloc rpl_realloc" >>confdefs.h
6449
a946372e
AK
6450fi
6451
a946372e 6452
f11781c5
AK
6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6454$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6455if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6456 $as_echo_n "(cached) " >&6
a946372e 6457else
f11781c5
AK
6458 if test "$cross_compiling" = yes; then :
6459 ac_cv_func_stat_empty_string_bug=yes
6460else
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h. */
6463$ac_includes_default
6464int
6465main ()
6466{
6467struct stat sbuf;
6468 return stat ("", &sbuf) == 0;
6469 ;
6470 return 0;
6471}
6472_ACEOF
6473if ac_fn_c_try_run "$LINENO"; then :
6474 ac_cv_func_stat_empty_string_bug=no
6475else
6476 ac_cv_func_stat_empty_string_bug=yes
a946372e 6477fi
f11781c5
AK
6478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6479 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6480fi
6481
8c4e8a18 6482fi
f11781c5
AK
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6484$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6485if test $ac_cv_func_stat_empty_string_bug = yes; then
6486 case " $LIBOBJS " in
6487 *" stat.$ac_objext "* ) ;;
6488 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6489 ;;
6490esac
8c4e8a18
FDN
6491
6492
6493cat >>confdefs.h <<_ACEOF
f11781c5 6494#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6495_ACEOF
6496
6497fi
6498
f11781c5
AK
6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6500$as_echo_n "checking for working strtod... " >&6; }
6501if test "${ac_cv_func_strtod+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
66fd4529 6503else
f11781c5
AK
6504 if test "$cross_compiling" = yes; then :
6505 ac_cv_func_strtod=no
6506else
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508/* end confdefs.h. */
66fd4529 6509
f11781c5
AK
6510$ac_includes_default
6511#ifndef strtod
6512double strtod ();
6513#endif
6514int
6515main()
6516{
6517 {
6518 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6519 char *string = " +69";
6520 char *term;
6521 double value;
6522 value = strtod (string, &term);
6523 if (value != 69 || term != (string + 4))
6524 return 1;
6525 }
66fd4529 6526
f11781c5
AK
6527 {
6528 /* Under Solaris 2.4, strtod returns the wrong value for the
6529 terminating character under some conditions. */
6530 char *string = "NaN";
6531 char *term;
6532 strtod (string, &term);
6533 if (term != string && *(term - 1) == 0)
6534 return 1;
6535 }
6536 return 0;
6537}
66fd4529 6538
f11781c5
AK
6539_ACEOF
6540if ac_fn_c_try_run "$LINENO"; then :
6541 ac_cv_func_strtod=yes
66fd4529 6542else
f11781c5
AK
6543 ac_cv_func_strtod=no
6544fi
6545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6546 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6547fi
6548
f11781c5
AK
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6551$as_echo "$ac_cv_func_strtod" >&6; }
6552if test $ac_cv_func_strtod = no; then
6553 case " $LIBOBJS " in
6554 *" strtod.$ac_objext "* ) ;;
6555 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6556 ;;
6557esac
71082be4 6558
f11781c5
AK
6559ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6560if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6561
66fd4529 6562fi
a946372e 6563
f11781c5
AK
6564if test $ac_cv_func_pow = no; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6566$as_echo_n "checking for pow in -lm... " >&6; }
6567if test "${ac_cv_lib_m_pow+set}" = set; then :
6568 $as_echo_n "(cached) " >&6
6569else
6570 ac_check_lib_save_LIBS=$LIBS
6571LIBS="-lm $LIBS"
6572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
90c80887 6574
f11781c5
AK
6575/* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
6578#ifdef __cplusplus
6579extern "C"
6580#endif
6581char pow ();
6582int
6583main ()
6584{
6585return pow ();
6586 ;
6587 return 0;
6588}
6589_ACEOF
6590if ac_fn_c_try_link "$LINENO"; then :
6591 ac_cv_lib_m_pow=yes
90c80887 6592else
f11781c5 6593 ac_cv_lib_m_pow=no
90c80887 6594fi
f11781c5
AK
6595rm -f core conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6597LIBS=$ac_check_lib_save_LIBS
90c80887 6598fi
f11781c5
AK
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6600$as_echo "$ac_cv_lib_m_pow" >&6; }
6601if test "x$ac_cv_lib_m_pow" = x""yes; then :
6602 POW_LIB=-lm
90c80887 6603else
f11781c5
AK
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6605$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6606fi
f11781c5 6607
90c80887
AK
6608fi
6609
f11781c5
AK
6610fi
6611
6612for ac_func in vprintf
6613do :
6614 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6615if test "x$ac_cv_func_vprintf" = x""yes; then :
6616 cat >>confdefs.h <<_ACEOF
6617#define HAVE_VPRINTF 1
6618_ACEOF
90c80887 6619
f11781c5
AK
6620ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6621if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6622
f11781c5 6623$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6624
90c80887 6625fi
90c80887 6626
f11781c5
AK
6627fi
6628done
90c80887 6629
90c80887 6630
90c80887 6631
f11781c5
AK
6632################################################################################
6633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6634$as_echo_n "checking whether to use static linking... " >&6; }
6635# Check whether --enable-static_link was given.
6636if test "${enable_static_link+set}" = set; then :
6637 enableval=$enable_static_link; STATIC_LINK=$enableval
6638else
6639 STATIC_LINK=no
6640fi
90c80887 6641
f11781c5
AK
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6643$as_echo "$STATIC_LINK" >&6; }
90c80887 6644
f11781c5 6645################################################################################
90c80887 6646
90c80887 6647
f11781c5
AK
6648################################################################################
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6650$as_echo_n "checking file owner... " >&6; }
90c80887 6651
f11781c5
AK
6652# Check whether --with-user was given.
6653if test "${with_user+set}" = set; then :
6654 withval=$with_user; OWNER=$withval
6655fi
90c80887 6656
f11781c5
AK
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6658$as_echo "$OWNER" >&6; }
90c80887 6659
f11781c5
AK
6660if test x$OWNER != x; then
6661 INSTALL="$INSTALL -o $OWNER"
90c80887 6662fi
a946372e 6663
f11781c5
AK
6664################################################################################
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6666$as_echo_n "checking group owner... " >&6; }
a946372e 6667
f11781c5
AK
6668# Check whether --with-group was given.
6669if test "${with_group+set}" = set; then :
6670 withval=$with_group; GROUP=$withval
a946372e 6671fi
f11781c5
AK
6672
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6674$as_echo "$GROUP" >&6; }
6675
6676if test x$GROUP != x; then
6677 INSTALL="$INSTALL -g $GROUP"
a946372e 6678fi
f11781c5
AK
6679
6680################################################################################
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6682$as_echo_n "checking device node uid... " >&6; }
6683
6684
6685# Check whether --with-device-uid was given.
6686if test "${with_device_uid+set}" = set; then :
6687 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6688else
f11781c5 6689 DM_DEVICE_UID=0
a946372e
AK
6690fi
6691
f11781c5
AK
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6693$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6694
f11781c5
AK
6695################################################################################
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6697$as_echo_n "checking device node gid... " >&6; }
a946372e 6698
a946372e 6699
f11781c5
AK
6700# Check whether --with-device-gid was given.
6701if test "${with_device_gid+set}" = set; then :
6702 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6703else
f11781c5 6704 DM_DEVICE_GID=0
a946372e 6705fi
a946372e 6706
f11781c5
AK
6707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6708$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6709
f11781c5
AK
6710################################################################################
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6712$as_echo_n "checking device node mode... " >&6; }
90c80887 6713
90c80887 6714
f11781c5
AK
6715# Check whether --with-device-mode was given.
6716if test "${with_device_mode+set}" = set; then :
6717 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6718else
6719 DM_DEVICE_MODE=0600
6720fi
90c80887 6721
f11781c5
AK
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6723$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6724
d0df875d
ZK
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6726$as_echo_n "checking when to create device nodes... " >&6; }
6727
6728# Check whether --with-device-nodes-on was given.
6729if test "${with_device_nodes_on+set}" = set; then :
6730 withval=$with_device_nodes_on; ADD_NODE=$withval
6731else
6732 ADD_NODE=resume
6733fi
6734
6735case "$ADD_NODE" in
6736 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6737 create) add_on=DM_ADD_NODE_ON_CREATE;;
6738 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6739esac
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6741$as_echo "on $ADD_NODE" >&6; }
6742
6743cat >>confdefs.h <<_ACEOF
6744#define DEFAULT_DM_ADD_NODE $add_on
6745_ACEOF
6746
6747
f11781c5
AK
6748################################################################################
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6750$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6751# Check whether --enable-lvm1_fallback was given.
6752if test "${enable_lvm1_fallback+set}" = set; then :
6753 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6754else
6755 LVM1_FALLBACK=no
6756fi
90c80887 6757
f11781c5
AK
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6759$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6760
f11781c5 6761if test x$LVM1_FALLBACK = xyes; then
90c80887 6762
f11781c5 6763$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6764
f11781c5 6765fi
90c80887 6766
f11781c5
AK
6767################################################################################
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6769$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6770
6771# Check whether --with-lvm1 was given.
6772if test "${with_lvm1+set}" = set; then :
6773 withval=$with_lvm1; LVM1=$withval
a946372e 6774else
f11781c5 6775 LVM1=internal
a946372e 6776fi
f11781c5
AK
6777
6778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6779$as_echo "$LVM1" >&6; }
6780
6781if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6782 then as_fn_error $? "--with-lvm1 parameter invalid
6783" "$LINENO" 5
6784fi;
6785
6786if test x$LVM1 = xinternal; then
6787
6788$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6789
a946372e
AK
6790fi
6791
6792################################################################################
f11781c5
AK
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6794$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6795
6796# Check whether --with-pool was given.
6797if test "${with_pool+set}" = set; then :
6798 withval=$with_pool; POOL=$withval
a946372e 6799else
f11781c5 6800 POOL=internal
a946372e
AK
6801fi
6802
f11781c5
AK
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6804$as_echo "$POOL" >&6; }
6805
6806if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6807 then as_fn_error $? "--with-pool parameter invalid
6808" "$LINENO" 5
6809fi;
6810
6811if test x$POOL = xinternal; then
6812
6813$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6814
a946372e
AK
6815fi
6816
6817################################################################################
f11781c5
AK
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6819$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6820
f11781c5
AK
6821# Check whether --with-cluster was given.
6822if test "${with_cluster+set}" = set; then :
6823 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6824fi
6825
f11781c5
AK
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6827$as_echo "$CLUSTER" >&6; }
a946372e 6828
f11781c5
AK
6829if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6830 then as_fn_error $? "--with-cluster parameter invalid
6831" "$LINENO" 5
6832fi;
fddafd51 6833
f11781c5 6834if test x$CLUSTER = xinternal; then
5556819a 6835
f11781c5 6836$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6837
fddafd51 6838fi
f11781c5
AK
6839
6840################################################################################
6841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6842$as_echo_n "checking whether to include snapshots... " >&6; }
6843
6844# Check whether --with-snapshots was given.
6845if test "${with_snapshots+set}" = set; then :
6846 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6847else
f11781c5 6848 SNAPSHOTS=internal
fddafd51
ZK
6849fi
6850
f11781c5
AK
6851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6852$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6853
f11781c5
AK
6854if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6855 then as_fn_error $? "--with-snapshots parameter invalid
6856" "$LINENO" 5
6857fi;
fddafd51 6858
f11781c5
AK
6859if test x$SNAPSHOTS = xinternal; then
6860
6861$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6862
6863fi
6864
6865################################################################################
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6867$as_echo_n "checking whether to include mirrors... " >&6; }
6868
6869# Check whether --with-mirrors was given.
6870if test "${with_mirrors+set}" = set; then :
6871 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6872else
f11781c5 6873 MIRRORS=internal
fddafd51
ZK
6874fi
6875
f11781c5
AK
6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6877$as_echo "$MIRRORS" >&6; }
fddafd51 6878
f11781c5
AK
6879if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6880 then as_fn_error $? "--with-mirrors parameter invalid
6881" "$LINENO" 5
6882fi;
6883
6884if test x$MIRRORS = xinternal; then
6885
6886$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6887
6888fi
6889
cac52ca4
JEB
6890################################################################################
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6892$as_echo_n "checking whether to include raid... " >&6; }
6893
6894# Check whether --with-raid was given.
6895if test "${with_raid+set}" = set; then :
6896 withval=$with_raid; RAID=$withval
6897else
6898 RAID=internal
6899fi
6900
6901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6902$as_echo "$RAID" >&6; }
6903
6904if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6905 then as_fn_error $? "--with-raid parameter invalid
6906" "$LINENO" 5
6907fi;
6908
6909if test x$RAID = xinternal; then
6910
6911$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6912
6913fi
6914
f11781c5
AK
6915################################################################################
6916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6917$as_echo_n "checking whether to include replicators... " >&6; }
6918
6919# Check whether --with-replicators was given.
6920if test "${with_replicators+set}" = set; then :
6921 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6922else
f11781c5
AK
6923 REPLICATORS=none
6924fi
fd4728e1 6925
f11781c5
AK
6926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6927$as_echo "$REPLICATORS" >&6; }
6928
6929case "$REPLICATORS" in
6930 none|shared) ;;
6931 internal)
6932$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6933 ;;
6934 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6935esac
f11781c5 6936
3ba4a195
ZK
6937################################################################################
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6939$as_echo_n "checking whether to include thin provisioning... " >&6; }
6940
6941# Check whether --with-thin was given.
6942if test "${with_thin+set}" = set; then :
6943 withval=$with_thin; THIN=$withval
6944else
6945 THIN=none
6946fi
6947
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6949$as_echo "$THIN" >&6; }
6950
6951case "$THIN" in
6952 none|shared) ;;
6953 internal)
6954$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6955 ;;
6956 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6957esac
6958
f11781c5
AK
6959################################################################################
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6961$as_echo_n "checking whether to enable readline... " >&6; }
6962# Check whether --enable-readline was given.
6963if test "${enable_readline+set}" = set; then :
6964 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6965else
f11781c5 6966 READLINE=maybe
fd4728e1
ZK
6967fi
6968
f11781c5
AK
6969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6970$as_echo "$READLINE" >&6; }
fd4728e1 6971
f11781c5
AK
6972################################################################################
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6974$as_echo_n "checking whether to enable realtime support... " >&6; }
6975# Check whether --enable-realtime was given.
6976if test "${enable_realtime+set}" = set; then :
6977 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6978fi
d0191583 6979
f11781c5
AK
6980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6981$as_echo "$REALTIME" >&6; }
6982
54b362f9 6983################################################################################
f11781c5
AK
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6985$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6986# Check whether --enable-ocf was given.
6987if test "${enable_ocf+set}" = set; then :
6988 enableval=$enable_ocf; OCF=$enableval
54b362f9 6989else
f11781c5 6990 OCF=no
54b362f9
AK
6991fi
6992
f11781c5
AK
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6994$as_echo "$OCF" >&6; }
54b362f9 6995
606d0858
AK
6996# Check whether --with-ocfdir was given.
6997if test "${with_ocfdir+set}" = set; then :
6998 withval=$with_ocfdir; OCFDIR=$withval
6999else
7000 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7001fi
7002
7003
f11781c5
AK
7004################################################################################
7005pkg_config_init() {
7006
7007
7008
7009
7010
7011
7012if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7013 if test -n "$ac_tool_prefix"; then
7014 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7015set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7017$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7018if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7019 $as_echo_n "(cached) " >&6
7020else
f11781c5 7021 case $PKG_CONFIG in
54b362f9 7022 [\\/]* | ?:[\\/]*)
f11781c5 7023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7024 ;;
7025 *)
7026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7027for as_dir in $PATH
7028do
7029 IFS=$as_save_IFS
7030 test -z "$as_dir" && as_dir=.
f11781c5 7031 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7035 break 2
7036 fi
7037done
f11781c5 7038 done
54b362f9
AK
7039IFS=$as_save_IFS
7040
7041 ;;
7042esac
7043fi
f11781c5
AK
7044PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7045if test -n "$PKG_CONFIG"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7047$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7048else
f11781c5 7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7050$as_echo "no" >&6; }
7051fi
7052
7053
f11781c5
AK
7054fi
7055if test -z "$ac_cv_path_PKG_CONFIG"; then
7056 ac_pt_PKG_CONFIG=$PKG_CONFIG
7057 # Extract the first word of "pkg-config", so it can be a program name with args.
7058set dummy pkg-config; ac_word=$2
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7060$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7061if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7062 $as_echo_n "(cached) " >&6
7063else
f11781c5 7064 case $ac_pt_PKG_CONFIG in
54b362f9 7065 [\\/]* | ?:[\\/]*)
f11781c5 7066 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7067 ;;
7068 *)
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
f11781c5 7074 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7076 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7078 break 2
7079 fi
7080done
f11781c5 7081 done
54b362f9
AK
7082IFS=$as_save_IFS
7083
7084 ;;
7085esac
7086fi
f11781c5
AK
7087ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7088if test -n "$ac_pt_PKG_CONFIG"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7090$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7091else
f11781c5 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7093$as_echo "no" >&6; }
7094fi
7095
f11781c5
AK
7096 if test "x$ac_pt_PKG_CONFIG" = x; then
7097 PKG_CONFIG=""
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100yes:)
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103ac_tool_warned=yes ;;
7104esac
7105 PKG_CONFIG=$ac_pt_PKG_CONFIG
7106 fi
d1e8046f 7107else
f11781c5 7108 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7109fi
7110
f11781c5
AK
7111fi
7112if test -n "$PKG_CONFIG"; then
7113 _pkg_min_version=0.9.0
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7115$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7116 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118$as_echo "yes" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122 PKG_CONFIG=""
7123 fi
7124fi
d1e8046f 7125
f11781c5
AK
7126pkg_failed=no
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7128$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7129
f11781c5
AK
7130if test -n "$PKGCONFIGINIT_CFLAGS"; then
7131 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7132 elif test -n "$PKG_CONFIG"; then
7133 if test -n "$PKG_CONFIG" && \
7134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7135 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7136 ac_status=$?
7137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7138 test $ac_status = 0; }; then
7139 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7140else
f11781c5
AK
7141 pkg_failed=yes
7142fi
7143 else
7144 pkg_failed=untried
7145fi
7146if test -n "$PKGCONFIGINIT_LIBS"; then
7147 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7148 elif test -n "$PKG_CONFIG"; then
7149 if test -n "$PKG_CONFIG" && \
7150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7151 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7152 ac_status=$?
f11781c5
AK
7153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7154 test $ac_status = 0; }; then
7155 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7156else
f11781c5
AK
7157 pkg_failed=yes
7158fi
7159 else
7160 pkg_failed=untried
d1e8046f
AK
7161fi
7162
d1e8046f 7163
f11781c5
AK
7164
7165if test $pkg_failed = yes; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
7168
7169if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7170 _pkg_short_errors_supported=yes
7171else
7172 _pkg_short_errors_supported=no
7173fi
7174 if test $_pkg_short_errors_supported = yes; then
7175 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7176 else
7177 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7178 fi
7179 # Put the nasty error message in config.log where it belongs
7180 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7181
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7183$as_echo "pkg-config initialized" >&6; }
7184elif test $pkg_failed = untried; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186$as_echo "no" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7188$as_echo "pkg-config initialized" >&6; }
d1e8046f 7189else
f11781c5
AK
7190 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7191 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7193$as_echo "yes" >&6; }
d1e8046f 7194
d1e8046f 7195fi
f11781c5
AK
7196 PKGCONFIG_INIT=1
7197}
d1e8046f 7198
f11781c5
AK
7199################################################################################
7200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7201$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7202
f11781c5
AK
7203# Check whether --with-clvmd was given.
7204if test "${with_clvmd+set}" = set; then :
7205 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7206else
f11781c5 7207 CLVMD=none
d1e8046f 7208fi
d1e8046f 7209
f11781c5
AK
7210if test x$CLVMD = xyes; then
7211 CLVMD=all
d1e8046f 7212fi
f11781c5
AK
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7214$as_echo "$CLVMD" >&6; }
d1e8046f 7215
f11781c5
AK
7216if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7217 CLUSTER=internal
d1e8046f
AK
7218fi
7219
f11781c5
AK
7220if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7221 pkg_config_init
7222fi
d1e8046f 7223
f11781c5
AK
7224CLVMD_CMANAGERS=""
7225CLVMD_NEEDS_QDISKD=no
d1e8046f 7226
f11781c5 7227if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7228 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7229fi
f11781c5
AK
7230if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7231 BUILDCMAN=yes
7232 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7233 CLVMD_NEEDS_QDISKD=yes
7234fi
7235if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7236 BUILDCOROSYNC=yes
7237 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7238fi
7239if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7240 BUILDOPENAIS=yes
7241 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7242fi
7243if test x$CLVMD_NEEDS_QDISKD != xno; then
7244 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7245fi
7246
f11781c5
AK
7247soft_bailout() {
7248 NOTFOUND=1
7249}
ad6254c5 7250
f11781c5
AK
7251hard_bailout() {
7252 as_fn_error $? "bailing out" "$LINENO" 5
7253}
ad6254c5 7254
f11781c5
AK
7255if test x$CLVMD = xall; then
7256 bailout=soft_bailout
f11781c5
AK
7257 BUILDCMAN=yes
7258 BUILDCOROSYNC=yes
7259 BUILDOPENAIS=yes
a5f46f6a 7260else
f11781c5 7261 bailout=hard_bailout
a5f46f6a
AK
7262fi
7263
f11781c5
AK
7264check_lib_no_libs() {
7265 lib_no_libs_arg1=$1
7266 shift
7267 lib_no_libs_arg2=$1
7268 shift
7269 lib_no_libs_args=$@
7270 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7272$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7273if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7274 $as_echo_n "(cached) " >&6
7275else
7276 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7277LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7279/* end confdefs.h. */
7280
7281/* Override any GCC internal prototype to avoid an error.
7282 Use char because int might match the return type of a GCC
7283 builtin and then its argument prototype would still apply. */
7284#ifdef __cplusplus
7285extern "C"
7286#endif
f11781c5 7287char $lib_no_libs_arg2 ();
90c80887
AK
7288int
7289main ()
7290{
f11781c5 7291return $lib_no_libs_arg2 ();
90c80887
AK
7292 ;
7293 return 0;
7294}
7295_ACEOF
f11781c5
AK
7296if ac_fn_c_try_link "$LINENO"; then :
7297 eval "$as_ac_Lib=yes"
90c80887 7298else
f11781c5 7299 eval "$as_ac_Lib=no"
90c80887 7300fi
f11781c5
AK
7301rm -f core conftest.err conftest.$ac_objext \
7302 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7303LIBS=$ac_check_lib_save_LIBS
7304fi
f11781c5
AK
7305eval ac_res=\$$as_ac_Lib
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7307$as_echo "$ac_res" >&6; }
7308if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7309 cat >>confdefs.h <<_ACEOF
7310#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7311_ACEOF
7312
7313 LIBS="-l$lib_no_libs_arg1 $LIBS"
7314
90c80887 7315else
f11781c5 7316 $bailout
90c80887
AK
7317fi
7318
f11781c5
AK
7319 LIBS=$ac_check_lib_save_LIBS
7320}
90c80887 7321
f11781c5 7322if test x$BUILDCMAN = xyes; then
ad6254c5 7323
f11781c5
AK
7324pkg_failed=no
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7326$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7327
f11781c5
AK
7328if test -n "$CMAN_CFLAGS"; then
7329 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7330 elif test -n "$PKG_CONFIG"; then
7331 if test -n "$PKG_CONFIG" && \
7332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7333 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7334 ac_status=$?
7335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336 test $ac_status = 0; }; then
7337 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7338else
7339 pkg_failed=yes
ad6254c5 7340fi
f11781c5
AK
7341 else
7342 pkg_failed=untried
ad6254c5 7343fi
f11781c5
AK
7344if test -n "$CMAN_LIBS"; then
7345 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7346 elif test -n "$PKG_CONFIG"; then
7347 if test -n "$PKG_CONFIG" && \
7348 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7349 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7350 ac_status=$?
f11781c5
AK
7351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7352 test $ac_status = 0; }; then
7353 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7354else
f11781c5
AK
7355 pkg_failed=yes
7356fi
7357 else
7358 pkg_failed=untried
93bd259b
AK
7359fi
7360
f11781c5
AK
7361
7362
7363if test $pkg_failed = yes; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
7366
7367if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7368 _pkg_short_errors_supported=yes
7369else
7370 _pkg_short_errors_supported=no
93bd259b 7371fi
f11781c5
AK
7372 if test $_pkg_short_errors_supported = yes; then
7373 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7374 else
7375 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7376 fi
7377 # Put the nasty error message in config.log where it belongs
7378 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7379
f11781c5
AK
7380 NOTFOUND=0
7381 for ac_header in libcman.h
7382do :
7383 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7384if test "x$ac_cv_header_libcman_h" = x""yes; then :
7385 cat >>confdefs.h <<_ACEOF
7386#define HAVE_LIBCMAN_H 1
93bd259b
AK
7387_ACEOF
7388
f11781c5
AK
7389else
7390 $bailout
93bd259b
AK
7391fi
7392
f11781c5 7393done
93bd259b 7394
f11781c5
AK
7395 check_lib_no_libs cman cman_init
7396 if test $NOTFOUND = 0; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7398$as_echo "no pkg for libcman, using -lcman" >&6; }
7399 CMAN_LIBS="-lcman"
7400 HAVE_CMAN=yes
7401 fi
7402elif test $pkg_failed = untried; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404$as_echo "no" >&6; }
7405 NOTFOUND=0
7406 for ac_header in libcman.h
7407do :
7408 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7409if test "x$ac_cv_header_libcman_h" = x""yes; then :
7410 cat >>confdefs.h <<_ACEOF
7411#define HAVE_LIBCMAN_H 1
93bd259b 7412_ACEOF
93bd259b 7413
93bd259b 7414else
f11781c5 7415 $bailout
93bd259b
AK
7416fi
7417
f11781c5
AK
7418done
7419
7420 check_lib_no_libs cman cman_init
7421 if test $NOTFOUND = 0; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7423$as_echo "no pkg for libcman, using -lcman" >&6; }
7424 CMAN_LIBS="-lcman"
7425 HAVE_CMAN=yes
7426 fi
7427else
7428 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7429 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7431$as_echo "yes" >&6; }
7432 HAVE_CMAN=yes
93bd259b 7433fi
f11781c5
AK
7434 CHECKCONFDB=yes
7435 CHECKDLM=yes
93bd259b
AK
7436fi
7437
f11781c5
AK
7438if test x$BUILDCOROSYNC = xyes || \
7439 test x$BUILDOPENAIS = xyes; then
93bd259b 7440
f11781c5
AK
7441pkg_failed=no
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7443$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7444
f11781c5
AK
7445if test -n "$COROSYNC_CFLAGS"; then
7446 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7447 elif test -n "$PKG_CONFIG"; then
7448 if test -n "$PKG_CONFIG" && \
7449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7450 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7451 ac_status=$?
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; then
7454 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7455else
f11781c5
AK
7456 pkg_failed=yes
7457fi
7458 else
7459 pkg_failed=untried
7460fi
7461if test -n "$COROSYNC_LIBS"; then
7462 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7463 elif test -n "$PKG_CONFIG"; then
7464 if test -n "$PKG_CONFIG" && \
7465 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7466 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7467 ac_status=$?
f11781c5
AK
7468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; then
7470 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7471else
f11781c5 7472 pkg_failed=yes
ad6254c5 7473fi
f11781c5
AK
7474 else
7475 pkg_failed=untried
ad6254c5 7476fi
ad6254c5 7477
72b2cb61 7478
72b2cb61 7479
f11781c5
AK
7480if test $pkg_failed = yes; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482$as_echo "no" >&6; }
19a2c6e0 7483
f11781c5
AK
7484if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7485 _pkg_short_errors_supported=yes
7486else
7487 _pkg_short_errors_supported=no
ad6254c5 7488fi
f11781c5
AK
7489 if test $_pkg_short_errors_supported = yes; then
7490 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7491 else
7492 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7493 fi
7494 # Put the nasty error message in config.log where it belongs
7495 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7496
f11781c5
AK
7497 $bailout
7498elif test $pkg_failed = untried; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500$as_echo "no" >&6; }
7501 $bailout
7502else
7503 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7504 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7506$as_echo "yes" >&6; }
7507 HAVE_COROSYNC=yes
7508fi
7509 CHECKCONFDB=yes
ad6254c5
AK
7510fi
7511
f11781c5 7512if test x$BUILDCOROSYNC = xyes; then
f30875db 7513
f11781c5
AK
7514pkg_failed=no
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7516$as_echo_n "checking for QUORUM... " >&6; }
7517
7518if test -n "$QUORUM_CFLAGS"; then
7519 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7520 elif test -n "$PKG_CONFIG"; then
7521 if test -n "$PKG_CONFIG" && \
7522 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7523 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7524 ac_status=$?
f11781c5
AK
7525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7526 test $ac_status = 0; }; then
7527 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7528else
f11781c5 7529 pkg_failed=yes
f30875db 7530fi
f11781c5
AK
7531 else
7532 pkg_failed=untried
f30875db 7533fi
f11781c5
AK
7534if test -n "$QUORUM_LIBS"; then
7535 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7536 elif test -n "$PKG_CONFIG"; then
7537 if test -n "$PKG_CONFIG" && \
7538 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7539 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7540 ac_status=$?
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; then
7543 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7544else
f11781c5 7545 pkg_failed=yes
f30875db 7546fi
f11781c5
AK
7547 else
7548 pkg_failed=untried
7549fi
7550
f30875db 7551
f11781c5
AK
7552
7553if test $pkg_failed = yes; then
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555$as_echo "no" >&6; }
7556
7557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7558 _pkg_short_errors_supported=yes
7559else
7560 _pkg_short_errors_supported=no
f30875db 7561fi
f11781c5
AK
7562 if test $_pkg_short_errors_supported = yes; then
7563 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7564 else
7565 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7566 fi
7567 # Put the nasty error message in config.log where it belongs
7568 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7569
f11781c5
AK
7570 $bailout
7571elif test $pkg_failed = untried; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573$as_echo "no" >&6; }
7574 $bailout
7575else
7576 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7577 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579$as_echo "yes" >&6; }
7580 HAVE_QUORUM=yes
7581fi
7582 CHECKCPG=yes
7583 CHECKDLM=yes
d0191583
JM
7584fi
7585
f11781c5 7586if test x$BUILDOPENAIS = xyes; then
d0191583 7587
f11781c5
AK
7588pkg_failed=no
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7590$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7591
f11781c5
AK
7592if test -n "$SALCK_CFLAGS"; then
7593 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7594 elif test -n "$PKG_CONFIG"; then
7595 if test -n "$PKG_CONFIG" && \
7596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7597 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7598 ac_status=$?
7599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7600 test $ac_status = 0; }; then
7601 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7602else
7603 pkg_failed=yes
7604fi
7605 else
7606 pkg_failed=untried
7607fi
7608if test -n "$SALCK_LIBS"; then
7609 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7610 elif test -n "$PKG_CONFIG"; then
7611 if test -n "$PKG_CONFIG" && \
7612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7613 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7614 ac_status=$?
f11781c5
AK
7615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7616 test $ac_status = 0; }; then
7617 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7618else
f11781c5 7619 pkg_failed=yes
8a2fc586 7620fi
f11781c5
AK
7621 else
7622 pkg_failed=untried
8a2fc586 7623fi
d0191583 7624
d0191583 7625
f8f6ec92 7626
f11781c5
AK
7627if test $pkg_failed = yes; then
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629$as_echo "no" >&6; }
8a2fc586 7630
f11781c5
AK
7631if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7632 _pkg_short_errors_supported=yes
ad6254c5 7633else
f11781c5
AK
7634 _pkg_short_errors_supported=no
7635fi
7636 if test $_pkg_short_errors_supported = yes; then
7637 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7638 else
7639 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7640 fi
7641 # Put the nasty error message in config.log where it belongs
7642 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7643
f11781c5
AK
7644 $bailout
7645elif test $pkg_failed = untried; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
7648 $bailout
ad6254c5 7649else
f11781c5
AK
7650 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7651 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7653$as_echo "yes" >&6; }
7654 HAVE_SALCK=yes
ad6254c5 7655fi
f11781c5 7656 CHECKCPG=yes
ad6254c5 7657fi
ad6254c5 7658
72b2cb61 7659
f8f6ec92 7660
f11781c5 7661if test x$CHECKCONFDB = xyes; then
f8f6ec92 7662
f11781c5
AK
7663pkg_failed=no
7664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7665$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7666
f11781c5
AK
7667if test -n "$CONFDB_CFLAGS"; then
7668 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7669 elif test -n "$PKG_CONFIG"; then
7670 if test -n "$PKG_CONFIG" && \
7671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7672 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7673 ac_status=$?
f11781c5
AK
7674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7675 test $ac_status = 0; }; then
7676 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7677else
f11781c5
AK
7678 pkg_failed=yes
7679fi
7680 else
7681 pkg_failed=untried
7682fi
7683if test -n "$CONFDB_LIBS"; then
7684 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7685 elif test -n "$PKG_CONFIG"; then
7686 if test -n "$PKG_CONFIG" && \
7687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7688 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7689 ac_status=$?
7690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7691 test $ac_status = 0; }; then
7692 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7693else
7694 pkg_failed=yes
7695fi
7696 else
7697 pkg_failed=untried
f8f6ec92
ZK
7698fi
7699
f8f6ec92 7700
66e941e8 7701
f11781c5
AK
7702if test $pkg_failed = yes; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
7705
7706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7707 _pkg_short_errors_supported=yes
f8f6ec92 7708else
f11781c5 7709 _pkg_short_errors_supported=no
66e941e8 7710fi
f11781c5
AK
7711 if test $_pkg_short_errors_supported = yes; then
7712 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7713 else
7714 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7715 fi
7716 # Put the nasty error message in config.log where it belongs
7717 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7718
f11781c5
AK
7719 HAVE_CONFDB=no
7720elif test $pkg_failed = untried; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7722$as_echo "no" >&6; }
7723 HAVE_CONFDB=no
7724else
7725 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7726 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7728$as_echo "yes" >&6; }
7729 HAVE_CONFDB=yes
66e941e8 7730fi
f11781c5
AK
7731
7732 for ac_header in corosync/confdb.h
7733do :
7734 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7735if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7736 cat >>confdefs.h <<_ACEOF
f11781c5 7737#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7738_ACEOF
f11781c5 7739 HAVE_CONFDB_H=yes
66e941e8 7740else
f11781c5 7741 HAVE_CONFDB_H=no
66e941e8 7742fi
dd1f2c09
MB
7743
7744done
7745
7746
f11781c5
AK
7747 if test x$HAVE_CONFDB != xyes && \
7748 test x$HAVE_CONFDB_H = xyes; then
7749 check_lib_no_libs confdb confdb_initialize
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7751$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7752 CONFDB_LIBS="-lconfdb"
7753 HAVE_CONFDB=yes
7754 fi
7755
7756 if test x$BUILDCOROSYNC = xyes && \
7757 test x$HAVE_CONFDB != xyes &&
7758 test x$CLVMD != xall; then
7759 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7760 fi
dd1f2c09 7761fi
f11781c5
AK
7762
7763if test x$CHECKCPG = xyes; then
7764
7765pkg_failed=no
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7767$as_echo_n "checking for CPG... " >&6; }
7768
7769if test -n "$CPG_CFLAGS"; then
7770 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7771 elif test -n "$PKG_CONFIG"; then
7772 if test -n "$PKG_CONFIG" && \
7773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7774 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7775 ac_status=$?
7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7777 test $ac_status = 0; }; then
7778 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7779else
f11781c5
AK
7780 pkg_failed=yes
7781fi
7782 else
7783 pkg_failed=untried
7784fi
7785if test -n "$CPG_LIBS"; then
7786 pkg_cv_CPG_LIBS="$CPG_LIBS"
7787 elif test -n "$PKG_CONFIG"; then
7788 if test -n "$PKG_CONFIG" && \
7789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7790 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7791 ac_status=$?
f11781c5
AK
7792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7793 test $ac_status = 0; }; then
7794 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7795else
f11781c5
AK
7796 pkg_failed=yes
7797fi
7798 else
7799 pkg_failed=untried
7800fi
7801
7802
7803
7804if test $pkg_failed = yes; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
7807
7808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7809 _pkg_short_errors_supported=yes
7810else
7811 _pkg_short_errors_supported=no
7812fi
7813 if test $_pkg_short_errors_supported = yes; then
7814 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7815 else
7816 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7817 fi
7818 # Put the nasty error message in config.log where it belongs
7819 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7820
f11781c5
AK
7821 $bailout
7822elif test $pkg_failed = untried; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825 $bailout
7826else
7827 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7828 CPG_LIBS=$pkg_cv_CPG_LIBS
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7830$as_echo "yes" >&6; }
7831 HAVE_CPG=yes
7832fi
dd1f2c09
MB
7833fi
7834
f11781c5 7835if test x$CHECKDLM = xyes; then
dd1f2c09 7836
f11781c5
AK
7837pkg_failed=no
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7839$as_echo_n "checking for DLM... " >&6; }
7840
7841if test -n "$DLM_CFLAGS"; then
7842 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7843 elif test -n "$PKG_CONFIG"; then
7844 if test -n "$PKG_CONFIG" && \
7845 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7846 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7847 ac_status=$?
f11781c5
AK
7848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849 test $ac_status = 0; }; then
7850 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7851else
f11781c5
AK
7852 pkg_failed=yes
7853fi
7854 else
7855 pkg_failed=untried
7856fi
7857if test -n "$DLM_LIBS"; then
7858 pkg_cv_DLM_LIBS="$DLM_LIBS"
7859 elif test -n "$PKG_CONFIG"; then
7860 if test -n "$PKG_CONFIG" && \
7861 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7862 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7863 ac_status=$?
7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865 test $ac_status = 0; }; then
7866 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7867else
7868 pkg_failed=yes
7869fi
7870 else
7871 pkg_failed=untried
dd1f2c09
MB
7872fi
7873
dd1f2c09 7874
dd1f2c09 7875
f11781c5
AK
7876if test $pkg_failed = yes; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878$as_echo "no" >&6; }
7879
7880if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7881 _pkg_short_errors_supported=yes
dd1f2c09 7882else
f11781c5 7883 _pkg_short_errors_supported=no
dd1f2c09 7884fi
f11781c5
AK
7885 if test $_pkg_short_errors_supported = yes; then
7886 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7887 else
7888 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7889 fi
7890 # Put the nasty error message in config.log where it belongs
7891 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 7892
f11781c5
AK
7893 NOTFOUND=0
7894 for ac_header in libdlm.h
7895do :
7896 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7897if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 7898 cat >>confdefs.h <<_ACEOF
f11781c5 7899#define HAVE_LIBDLM_H 1
dd1f2c09
MB
7900_ACEOF
7901
f11781c5
AK
7902else
7903 $bailout
dd1f2c09 7904fi
f8f6ec92
ZK
7905
7906done
7907
f11781c5
AK
7908 check_lib_no_libs dlm dlm_lock -lpthread
7909 if test $NOTFOUND = 0; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7911$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7912 DLM_LIBS="-ldlm -lpthread"
7913 HAVE_DLM=yes
7914 fi
7915elif test $pkg_failed = untried; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7917$as_echo "no" >&6; }
7918 NOTFOUND=0
7919 for ac_header in libdlm.h
7920do :
7921 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7922if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7923 cat >>confdefs.h <<_ACEOF
7924#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
7925_ACEOF
7926
f8f6ec92 7927else
f11781c5 7928 $bailout
ad6254c5
AK
7929fi
7930
f11781c5 7931done
8b1a3214 7932
f11781c5
AK
7933 check_lib_no_libs dlm dlm_lock -lpthread
7934 if test $NOTFOUND = 0; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7936$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7937 DLM_LIBS="-ldlm -lpthread"
7938 HAVE_DLM=yes
7939 fi
8b1a3214 7940else
f11781c5
AK
7941 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7942 DLM_LIBS=$pkg_cv_DLM_LIBS
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944$as_echo "yes" >&6; }
7945 HAVE_DLM=yes
8b1a3214 7946fi
8b1a3214
AK
7947fi
7948
f11781c5
AK
7949if test x$CLVMD = xall; then
7950 CLVMD=none
7951 CLVMD_CMANAGERS=""
7952 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
7953 if test x$HAVE_CMAN = xyes && \
7954 test x$HAVE_DLM = xyes; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7956$as_echo "Enabling clvmd cman cluster manager" >&6; }
7957 CLVMD="$CLVMD,cman"
7958 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7959 CLVMD_NEEDS_QDISKD=yes
7960 fi
7961 if test x$HAVE_COROSYNC = xyes && \
7962 test x$HAVE_QUORUM = xyes && \
7963 test x$HAVE_CPG = xyes && \
7964 test x$HAVE_DLM = xyes && \
7965 test x$HAVE_CONFDB = xyes; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7967$as_echo "Enabling clvmd corosync cluster manager" >&6; }
7968 CLVMD="$CLVMD,corosync"
7969 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7970 fi
7971 if test x$HAVE_COROSYNC = xyes && \
7972 test x$HAVE_CPG = xyes && \
7973 test x$HAVE_SALCK = xyes; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7975$as_echo "Enabling clvmd openais cluster manager" >&6; }
7976 CLVMD="$CLVMD,openais"
7977 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7978 fi
7979 if test x$CLVMD_NEEDS_QDISKD != xno; then
7980 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7981 fi
7982 if test x$CLVMD = xnone; then
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7984$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
7985 fi
7986fi
7987
ad6254c5 7988################################################################################
f11781c5 7989if test "x$CLVMD" != xnone; then
ad6254c5 7990
f11781c5
AK
7991# Check whether --with-clvmd-pidfile was given.
7992if test "${with_clvmd_pidfile+set}" = set; then :
7993 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 7994else
f11781c5 7995 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 7996fi
7a197a62 7997
ad6254c5 7998
f11781c5
AK
7999cat >>confdefs.h <<_ACEOF
8000#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8001_ACEOF
ad6254c5 8002
ad6254c5 8003fi
7a197a62 8004
f11781c5
AK
8005################################################################################
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8007$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8008# Check whether --enable-cmirrord was given.
8009if test "${enable_cmirrord+set}" = set; then :
8010 enableval=$enable_cmirrord; CMIRRORD=$enableval
8011else
8012 CMIRRORD=no
8013fi
8014
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8016$as_echo "$CMIRRORD" >&6; }
ad6254c5 8017
f11781c5 8018BUILD_CMIRRORD=$CMIRRORD
7a197a62 8019
f11781c5
AK
8020################################################################################
8021if test "x$BUILD_CMIRRORD" = xyes; then
8022
8023# Check whether --with-cmirrord-pidfile was given.
8024if test "${with_cmirrord_pidfile+set}" = set; then :
8025 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8026else
f11781c5 8027 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8028fi
ad6254c5 8029
72b2cb61 8030
f11781c5
AK
8031cat >>confdefs.h <<_ACEOF
8032#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8033_ACEOF
8034
ad6254c5
AK
8035fi
8036
f11781c5
AK
8037################################################################################
8038if [ "x$BUILD_CMIRRORD" = xyes ]; then
8039 if test x$PKGCONFIG_INIT != x1; then
8040 pkg_config_init
8041 fi
ad6254c5 8042
f11781c5
AK
8043pkg_failed=no
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8045$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8046
f11781c5
AK
8047if test -n "$SACKPT_CFLAGS"; then
8048 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8049 elif test -n "$PKG_CONFIG"; then
8050 if test -n "$PKG_CONFIG" && \
8051 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8052 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8053 ac_status=$?
8054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8055 test $ac_status = 0; }; then
8056 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8057else
f11781c5
AK
8058 pkg_failed=yes
8059fi
8060 else
8061 pkg_failed=untried
8062fi
8063if test -n "$SACKPT_LIBS"; then
8064 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8065 elif test -n "$PKG_CONFIG"; then
8066 if test -n "$PKG_CONFIG" && \
8067 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8068 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8069 ac_status=$?
f11781c5
AK
8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8071 test $ac_status = 0; }; then
8072 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8073else
f11781c5
AK
8074 pkg_failed=yes
8075fi
8076 else
8077 pkg_failed=untried
8078fi
539f4a77
ZK
8079
8080
539f4a77 8081
f11781c5
AK
8082if test $pkg_failed = yes; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
8085
8086if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8087 _pkg_short_errors_supported=yes
539f4a77 8088else
f11781c5 8089 _pkg_short_errors_supported=no
539f4a77 8090fi
f11781c5
AK
8091 if test $_pkg_short_errors_supported = yes; then
8092 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8093 else
8094 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8095 fi
8096 # Put the nasty error message in config.log where it belongs
8097 echo "$SACKPT_PKG_ERRORS" >&5
8098
8099 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8100
8101$SACKPT_PKG_ERRORS
8102
8103Consider adjusting the PKG_CONFIG_PATH environment variable if you
8104installed software in a non-standard prefix.
8105
8106Alternatively, you may set the environment variables SACKPT_CFLAGS
8107and SACKPT_LIBS to avoid the need to call pkg-config.
8108See the pkg-config man page for more details." "$LINENO" 5
8109
8110elif test $pkg_failed = untried; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
8113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8115as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8116is in your PATH or set the PKG_CONFIG environment variable to the full
8117path to pkg-config.
8118
8119Alternatively, you may set the environment variables SACKPT_CFLAGS
8120and SACKPT_LIBS to avoid the need to call pkg-config.
8121See the pkg-config man page for more details.
8122
8123To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8124See \`config.log' for more details" "$LINENO" 5; }
8125
539f4a77 8126else
f11781c5
AK
8127 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8128 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130$as_echo "yes" >&6; }
539f4a77 8131
539f4a77 8132fi
f11781c5 8133 if test x$HAVE_CPG != xyes; then
539f4a77 8134
f11781c5
AK
8135pkg_failed=no
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8137$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8138
f11781c5
AK
8139if test -n "$CPG_CFLAGS"; then
8140 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8141 elif test -n "$PKG_CONFIG"; then
8142 if test -n "$PKG_CONFIG" && \
8143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8144 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8145 ac_status=$?
f11781c5
AK
8146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8147 test $ac_status = 0; }; then
8148 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8149else
f11781c5
AK
8150 pkg_failed=yes
8151fi
8152 else
8153 pkg_failed=untried
8154fi
8155if test -n "$CPG_LIBS"; then
8156 pkg_cv_CPG_LIBS="$CPG_LIBS"
8157 elif test -n "$PKG_CONFIG"; then
8158 if test -n "$PKG_CONFIG" && \
8159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8160 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8161 ac_status=$?
8162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8163 test $ac_status = 0; }; then
8164 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8165else
8166 pkg_failed=yes
8167fi
8168 else
8169 pkg_failed=untried
8170fi
8171
8172
8173
8174if test $pkg_failed = yes; then
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176$as_echo "no" >&6; }
ad6254c5 8177
f11781c5
AK
8178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8179 _pkg_short_errors_supported=yes
8180else
8181 _pkg_short_errors_supported=no
ad6254c5 8182fi
f11781c5
AK
8183 if test $_pkg_short_errors_supported = yes; then
8184 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8185 else
8186 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8187 fi
8188 # Put the nasty error message in config.log where it belongs
8189 echo "$CPG_PKG_ERRORS" >&5
8190
8191 as_fn_error $? "Package requirements (libcpg) were not met:
8192
8193$CPG_PKG_ERRORS
8194
8195Consider adjusting the PKG_CONFIG_PATH environment variable if you
8196installed software in a non-standard prefix.
8197
8198Alternatively, you may set the environment variables CPG_CFLAGS
8199and CPG_LIBS to avoid the need to call pkg-config.
8200See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8201
f11781c5
AK
8202elif test $pkg_failed = untried; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204$as_echo "no" >&6; }
8205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8207as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8208is in your PATH or set the PKG_CONFIG environment variable to the full
8209path to pkg-config.
539f4a77 8210
f11781c5
AK
8211Alternatively, you may set the environment variables CPG_CFLAGS
8212and CPG_LIBS to avoid the need to call pkg-config.
8213See the pkg-config man page for more details.
539f4a77 8214
f11781c5
AK
8215To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8216See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8217
539f4a77 8218else
f11781c5
AK
8219 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8220 CPG_LIBS=$pkg_cv_CPG_LIBS
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8222$as_echo "yes" >&6; }
bc1024f8 8223
f11781c5
AK
8224fi
8225 fi
8226fi
8227
8228################################################################################
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8230$as_echo_n "checking whether to enable debugging... " >&6; }
8231# Check whether --enable-debug was given.
8232if test "${enable_debug+set}" = set; then :
8233 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8234else
f11781c5
AK
8235 DEBUG=no
8236fi
8237
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8239$as_echo "$DEBUG" >&6; }
539f4a77 8240
f11781c5
AK
8241if test x$DEBUG = xyes; then
8242 COPTIMISE_FLAG=
8243else
8244 CSCOPE_CMD=
06e459df
JM
8245fi
8246
f11781c5
AK
8247################################################################################
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8249$as_echo_n "checking for C optimisation flag... " >&6; }
8250
8251# Check whether --with-optimisation was given.
8252if test "${with_optimisation+set}" = set; then :
8253 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8254fi
539f4a77 8255
f11781c5
AK
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8257$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8258
f11781c5
AK
8259################################################################################
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8261$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8262# Check whether --enable-profiling was given.
8263if test "${enable_profiling+set}" = set; then :
8264 enableval=$enable_profiling; PROFILING=$enableval
8265else
8266 PROFILING=no
539f4a77
ZK
8267fi
8268
f11781c5
AK
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8270$as_echo "$PROFILING" >&6; }
8271
8272if test "x$PROFILING" = xyes; then
8273 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8274 # Extract the first word of "lcov", so it can be a program name with args.
8275set dummy lcov; ac_word=$2
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_path_LCOV+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
539f4a77 8280else
f11781c5
AK
8281 case $LCOV in
8282 [\\/]* | ?:[\\/]*)
8283 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8284 ;;
8285 *)
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
8292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8293 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297done
8298 done
8299IFS=$as_save_IFS
539f4a77 8300
f11781c5
AK
8301 ;;
8302esac
8303fi
8304LCOV=$ac_cv_path_LCOV
8305if test -n "$LCOV"; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8307$as_echo "$LCOV" >&6; }
8308else
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8310$as_echo "no" >&6; }
539f4a77
ZK
8311fi
8312
bc1024f8 8313
f11781c5
AK
8314 # Extract the first word of "genhtml", so it can be a program name with args.
8315set dummy genhtml; ac_word=$2
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
8318if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8319 $as_echo_n "(cached) " >&6
ad6254c5 8320else
f11781c5
AK
8321 case $GENHTML in
8322 [\\/]* | ?:[\\/]*)
8323 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8324 ;;
8325 *)
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8333 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 break 2
8336 fi
8337done
8338 done
8339IFS=$as_save_IFS
8a2fc586 8340
f11781c5
AK
8341 ;;
8342esac
8343fi
8344GENHTML=$ac_cv_path_GENHTML
8345if test -n "$GENHTML"; then
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8347$as_echo "$GENHTML" >&6; }
8348else
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8350$as_echo "no" >&6; }
8351fi
8a2fc586 8352
8a2fc586 8353
f11781c5
AK
8354 if test -z "$LCOV" -o -z "$GENHTML"; then
8355 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8356 fi
8357 # Extract the first word of "genpng", so it can be a program name with args.
8358set dummy genpng; ac_word=$2
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360$as_echo_n "checking for $ac_word... " >&6; }
8361if test "${ac_cv_path_GENPNG+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
8363else
8364 case $GENPNG in
8365 [\\/]* | ?:[\\/]*)
8366 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8367 ;;
8368 *)
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370for as_dir in $PATH
8371do
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8379 fi
8380done
8381 done
8382IFS=$as_save_IFS
ad6254c5 8383
f11781c5 8384 ;;
7a197a62 8385esac
f11781c5
AK
8386fi
8387GENPNG=$ac_cv_path_GENPNG
8388if test -n "$GENPNG"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8390$as_echo "$GENPNG" >&6; }
ad6254c5 8391else
f11781c5
AK
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393$as_echo "no" >&6; }
8394fi
8395
8396
8397 if test -n "$GENPNG"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8399$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8400 if $GENPNG --help > /dev/null 2>&1 ; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8402$as_echo "ok" >&6; }
8403 GENHTML="$GENHTML --frames"
8404 else
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8406$as_echo "not supported" >&6; }
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8408$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8409 GENPNG=
8410 fi
8411 fi
8412fi
ad6254c5 8413
f11781c5
AK
8414################################################################################
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8416$as_echo_n "checking whether to enable unit testing... " >&6; }
8417# Check whether --enable-testing was given.
8418if test "${enable_testing+set}" = set; then :
8419 enableval=$enable_testing; TESTING=$enableval
8420else
8421 TESTING=no
ad6254c5 8422fi
7a197a62 8423
f11781c5
AK
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8425$as_echo "$TESTING" >&6; }
72b2cb61 8426
f11781c5 8427if test "$TESTING" = yes; then
9493f1df
ZK
8428 ac_fn_c_check_header_mongrel "$LINENO" "CUnit/Basic.h" "ac_cv_header_CUnit_Basic_h" "$ac_includes_default"
8429if test "x$ac_cv_header_CUnit_Basic_h" = x""yes; then :
8430 have_cunit=yes
ad6254c5 8431else
9493f1df 8432 have_cunit=no
ad6254c5
AK
8433fi
8434
7a197a62 8435
9493f1df
ZK
8436 if test "$have_cunit" = "no"; then
8437 as_fn_error $? "CUnit is required for unit testing" "$LINENO" 5
8438 fi
f11781c5 8439fi
ad6254c5 8440
f11781c5
AK
8441################################################################################
8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8443$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8444# Check whether --enable-valgrind_pool was given.
8445if test "${enable_valgrind_pool+set}" = set; then :
8446 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8447else
8448 VALGRIND_POOL=no
8449fi
8450
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8452$as_echo "$VALGRIND_POOL" >&6; }
8453
8454if test "$VALGRIND_POOL" = yes; then
8455 for ac_header in valgrind/memcheck.h
8456do :
8457 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8458if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8459 cat >>confdefs.h <<_ACEOF
8460#define HAVE_VALGRIND_MEMCHECK_H 1
8461_ACEOF
ad6254c5 8462
ad6254c5 8463else
f11781c5 8464 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8465fi
8466
f11781c5
AK
8467done
8468
8469
8470$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8471
ad6254c5
AK
8472fi
8473
8474################################################################################
f11781c5
AK
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8476$as_echo_n "checking whether to use device-mapper... " >&6; }
8477# Check whether --enable-devmapper was given.
8478if test "${enable_devmapper+set}" = set; then :
8479 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8480fi
8481
f11781c5
AK
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8483$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8484
f11781c5 8485if test x$DEVMAPPER = xyes; then
ad6254c5 8486
f11781c5
AK
8487$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8488
8489fi
8490
cdd50823
ZK
8491################################################################################
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8493$as_echo_n "checking whether to build LVMetaD... " >&6; }
8494# Check whether --enable-lvmetad was given.
8495if test "${enable_lvmetad+set}" = set; then :
8496 enableval=$enable_lvmetad; LVMETAD=$enableval
8497fi
8498
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8500$as_echo "$LVMETAD" >&6; }
8501
8502BUILD_LVMETAD=$LVMETAD
8503
f11781c5
AK
8504################################################################################
8505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8506$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8507# Check whether --enable-udev_sync was given.
8508if test "${enable_udev_sync+set}" = set; then :
8509 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8510else
f11781c5 8511 UDEV_SYNC=no
7a197a62 8512fi
ad6254c5 8513
f11781c5
AK
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8515$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8516
f11781c5 8517if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8518 if test x$PKGCONFIG_INIT != x1; then
8519 pkg_config_init
8520 fi
7a197a62 8521
d93275eb
PR
8522pkg_failed=no
8523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8524$as_echo_n "checking for UDEV... " >&6; }
8525
8526if test -n "$UDEV_CFLAGS"; then
8527 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8528 elif test -n "$PKG_CONFIG"; then
8529 if test -n "$PKG_CONFIG" && \
8530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8531 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8534 test $ac_status = 0; }; then
8535 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8536else
d93275eb 8537 pkg_failed=yes
f11781c5 8538fi
d93275eb
PR
8539 else
8540 pkg_failed=untried
f11781c5 8541fi
d93275eb
PR
8542if test -n "$UDEV_LIBS"; then
8543 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8544 elif test -n "$PKG_CONFIG"; then
8545 if test -n "$PKG_CONFIG" && \
8546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8547 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8548 ac_status=$?
8549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550 test $ac_status = 0; }; then
8551 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8552else
d93275eb 8553 pkg_failed=yes
68f2de6d 8554fi
d93275eb
PR
8555 else
8556 pkg_failed=untried
8557fi
8558
8559
8560
8561if test $pkg_failed = yes; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563$as_echo "no" >&6; }
8564
8565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8566 _pkg_short_errors_supported=yes
8567else
8568 _pkg_short_errors_supported=no
8569fi
8570 if test $_pkg_short_errors_supported = yes; then
8571 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8572 else
8573 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8574 fi
8575 # Put the nasty error message in config.log where it belongs
8576 echo "$UDEV_PKG_ERRORS" >&5
8577
8578 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8579
8580$UDEV_PKG_ERRORS
8581
8582Consider adjusting the PKG_CONFIG_PATH environment variable if you
8583installed software in a non-standard prefix.
8584
8585Alternatively, you may set the environment variables UDEV_CFLAGS
8586and UDEV_LIBS to avoid the need to call pkg-config.
8587See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8588
d93275eb
PR
8589elif test $pkg_failed = untried; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
8592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8594as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8595is in your PATH or set the PKG_CONFIG environment variable to the full
8596path to pkg-config.
8597
8598Alternatively, you may set the environment variables UDEV_CFLAGS
8599and UDEV_LIBS to avoid the need to call pkg-config.
8600See the pkg-config man page for more details.
8601
8602To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8603See \`config.log' for more details" "$LINENO" 5; }
8604
8605else
8606 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8607 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8609$as_echo "yes" >&6; }
8610 UDEV_PC="libudev"
8611fi
68f2de6d 8612
f11781c5 8613$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8614
f11781c5
AK
8615fi
8616
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8618$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8619# Check whether --enable-udev_rules was given.
8620if test "${enable_udev_rules+set}" = set; then :
8621 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8622else
f11781c5 8623 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8624fi
8625
f11781c5
AK
8626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8627$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8628
a5f46f6a 8629################################################################################
f11781c5
AK
8630# Check whether --enable-compat was given.
8631if test "${enable_compat+set}" = set; then :
8632 enableval=$enable_compat; DM_COMPAT=$enableval
8633else
8634 DM_COMPAT=no
8635fi
a5f46f6a 8636
f11781c5 8637
2061c0ec
AK
8638if test x$DM_COMPAT = xyes; then
8639 as_fn_error $? "--enable-compat is not currently supported.
8640Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8641ioctl protocol is supported.
8642 " "$LINENO" 5
8643fi
8644
f11781c5
AK
8645################################################################################
8646# Check whether --enable-units-compat was given.
8647if test "${enable_units_compat+set}" = set; then :
8648 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8649else
f11781c5 8650 UNITS_COMPAT=no
a5f46f6a
AK
8651fi
8652
8653
f11781c5 8654if test x$UNITS_COMPAT = xyes; then
78ce7acc 8655
f11781c5
AK
8656$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8657
8658fi
8659
8660################################################################################
8661# Check whether --enable-ioctl was given.
8662if test "${enable_ioctl+set}" = set; then :
8663 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8664fi
8665
a5f46f6a 8666
ad6254c5 8667################################################################################
f11781c5
AK
8668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8669$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8670# Check whether --enable-o_direct was given.
8671if test "${enable_o_direct+set}" = set; then :
8672 enableval=$enable_o_direct; ODIRECT=$enableval
8673fi
ad6254c5 8674
f11781c5
AK
8675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8676$as_echo "$ODIRECT" >&6; }
8677
8678if test x$ODIRECT = xyes; then
8679
8680$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8681
ad6254c5 8682fi
ad6254c5 8683
f11781c5
AK
8684################################################################################
8685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8686$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8687# Check whether --enable-applib was given.
8688if test "${enable_applib+set}" = set; then :
8689 enableval=$enable_applib; APPLIB=$enableval
8690else
8691 APPLIB=no
ad6254c5 8692fi
7a197a62 8693
f11781c5
AK
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8695$as_echo "$APPLIB" >&6; }
ad6254c5 8696
f11781c5
AK
8697test x$APPLIB = xyes \
8698 && LVM2APP_LIB=-llvm2app \
8699 || LVM2APP_LIB=
ad6254c5 8700
f11781c5
AK
8701################################################################################
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8703$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8704# Check whether --enable-cmdlib was given.
8705if test "${enable_cmdlib+set}" = set; then :
8706 enableval=$enable_cmdlib; CMDLIB=$enableval
8707else
8708 CMDLIB=no
ad6254c5 8709fi
7a197a62 8710
f11781c5
AK
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8712$as_echo "$CMDLIB" >&6; }
7a197a62 8713
f11781c5
AK
8714test x$CMDLIB = xyes \
8715 && LVM2CMD_LIB=-llvm2cmd \
8716 || LVM2CMD_LIB=
8717
8718################################################################################
8719# Check whether --enable-pkgconfig was given.
8720if test "${enable_pkgconfig+set}" = set; then :
8721 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8722else
f11781c5 8723 PKGCONFIG=no
ad6254c5 8724fi
ad6254c5 8725
ad6254c5 8726
f11781c5
AK
8727################################################################################
8728# Check whether --enable-write_install was given.
8729if test "${enable_write_install+set}" = set; then :
8730 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8731else
f11781c5 8732 WRITE_INSTALL=no
ad6254c5
AK
8733fi
8734
ad6254c5 8735
f11781c5
AK
8736################################################################################
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8738$as_echo_n "checking whether to install fsadm... " >&6; }
8739# Check whether --enable-fsadm was given.
8740if test "${enable_fsadm+set}" = set; then :
8741 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8742fi
8743
f11781c5
AK
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8745$as_echo "$FSADM" >&6; }
ad6254c5 8746
f11781c5
AK
8747################################################################################
8748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8749$as_echo_n "checking whether to use dmeventd... " >&6; }
8750# Check whether --enable-dmeventd was given.
8751if test "${enable_dmeventd+set}" = set; then :
8752 enableval=$enable_dmeventd; DMEVENTD=$enableval
8753fi
ad6254c5 8754
f11781c5
AK
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8756$as_echo "$DMEVENTD" >&6; }
ad6254c5 8757
f11781c5 8758BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8759
f11781c5
AK
8760if test x$DMEVENTD = xyes; then
8761 if test x$MIRRORS != xinternal; then
8762 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8763 " "$LINENO" 5
8764 fi
8765 if test x$CMDLIB = xno; then
8766 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8767 " "$LINENO" 5
8768 fi
8769fi
ad6254c5 8770
f11781c5 8771if test x$DMEVENTD = xyes; then
ad6254c5 8772
f11781c5 8773$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8774
f11781c5 8775fi
ad6254c5 8776
f11781c5 8777################################################################################
ad6254c5 8778
f11781c5
AK
8779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8780$as_echo_n "checking for getline in -lc... " >&6; }
8781if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8782 $as_echo_n "(cached) " >&6
ad6254c5 8783else
f11781c5
AK
8784 ac_check_lib_save_LIBS=$LIBS
8785LIBS="-lc $LIBS"
8786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8787/* end confdefs.h. */
f11781c5
AK
8788
8789/* Override any GCC internal prototype to avoid an error.
8790 Use char because int might match the return type of a GCC
8791 builtin and then its argument prototype would still apply. */
8792#ifdef __cplusplus
8793extern "C"
8794#endif
8795char getline ();
8796int
8797main ()
8798{
8799return getline ();
8800 ;
8801 return 0;
8802}
ad6254c5 8803_ACEOF
f11781c5
AK
8804if ac_fn_c_try_link "$LINENO"; then :
8805 ac_cv_lib_c_getline=yes
ad6254c5 8806else
f11781c5
AK
8807 ac_cv_lib_c_getline=no
8808fi
8809rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8811LIBS=$ac_check_lib_save_LIBS
8812fi
8813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8814$as_echo "$ac_cv_lib_c_getline" >&6; }
8815if test "x$ac_cv_lib_c_getline" = x""yes; then :
8816
8817$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8818
ad6254c5 8819fi
7a197a62 8820
ad6254c5 8821
f11781c5
AK
8822################################################################################
8823
8824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8825$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8826if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8827 $as_echo_n "(cached) " >&6
8828else
8829 ac_check_lib_save_LIBS=$LIBS
8830LIBS="-lc $LIBS"
8831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8832/* end confdefs.h. */
f11781c5
AK
8833
8834/* Override any GCC internal prototype to avoid an error.
8835 Use char because int might match the return type of a GCC
8836 builtin and then its argument prototype would still apply. */
8837#ifdef __cplusplus
8838extern "C"
8839#endif
8840char canonicalize_file_name ();
8841int
8842main ()
8843{
8844return canonicalize_file_name ();
8845 ;
8846 return 0;
8847}
ad6254c5 8848_ACEOF
f11781c5
AK
8849if ac_fn_c_try_link "$LINENO"; then :
8850 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 8851else
f11781c5
AK
8852 ac_cv_lib_c_canonicalize_file_name=no
8853fi
8854rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
8856LIBS=$ac_check_lib_save_LIBS
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8859$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8860if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8861
8862$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 8863
ad6254c5 8864fi
7a197a62 8865
ad6254c5 8866
f11781c5
AK
8867################################################################################
8868if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8869 then exec_prefix="";
8870fi;
7a197a62 8871
f11781c5
AK
8872################################################################################
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8874$as_echo_n "checking for dlopen in -ldl... " >&6; }
8875if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 8876 $as_echo_n "(cached) " >&6
ad6254c5 8877else
f11781c5
AK
8878 ac_check_lib_save_LIBS=$LIBS
8879LIBS="-ldl $LIBS"
8880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8881/* end confdefs.h. */
ad6254c5 8882
f11781c5
AK
8883/* Override any GCC internal prototype to avoid an error.
8884 Use char because int might match the return type of a GCC
8885 builtin and then its argument prototype would still apply. */
8886#ifdef __cplusplus
8887extern "C"
8888#endif
8889char dlopen ();
8890int
8891main ()
8892{
8893return dlopen ();
8894 ;
8895 return 0;
8896}
ad6254c5 8897_ACEOF
f11781c5
AK
8898if ac_fn_c_try_link "$LINENO"; then :
8899 ac_cv_lib_dl_dlopen=yes
ad6254c5 8900else
f11781c5 8901 ac_cv_lib_dl_dlopen=no
795ca3e5 8902fi
f11781c5
AK
8903rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
8905LIBS=$ac_check_lib_save_LIBS
8906fi
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8908$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8909if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 8910
ad6254c5 8911
f11781c5 8912$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 8913
f11781c5
AK
8914 DL_LIBS="-ldl"
8915 HAVE_LIBDL=yes
8916else
795ca3e5 8917
f11781c5
AK
8918 DL_LIBS=
8919 HAVE_LIBDL=no
8920fi
8106cdd5 8921
ad6254c5 8922
f11781c5
AK
8923################################################################################
8924if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8925 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 8926 -o "x$RAID" = xshared \
f11781c5
AK
8927 \) -a "x$STATIC_LINK" = xyes ];
8928 then as_fn_error $? "Features cannot be 'shared' when building statically
8929" "$LINENO" 5
8930fi
ad6254c5 8931
f11781c5
AK
8932################################################################################
8933if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
8935$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
8936if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 8937 $as_echo_n "(cached) " >&6
795ca3e5 8938else
f11781c5
AK
8939 ac_check_lib_save_LIBS=$LIBS
8940LIBS="-lpthread $LIBS"
8941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8942/* end confdefs.h. */
8a2fc586 8943
f11781c5
AK
8944/* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
8947#ifdef __cplusplus
8948extern "C"
ad6254c5 8949#endif
f11781c5
AK
8950char pthread_mutex_lock ();
8951int
8952main ()
8953{
8954return pthread_mutex_lock ();
8955 ;
8956 return 0;
8957}
8958_ACEOF
8959if ac_fn_c_try_link "$LINENO"; then :
8960 ac_cv_lib_pthread_pthread_mutex_lock=yes
8961else
8962 ac_cv_lib_pthread_pthread_mutex_lock=no
8963fi
8964rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966LIBS=$ac_check_lib_save_LIBS
8967fi
8968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
8969$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
8970if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
8971 PTHREAD_LIBS="-lpthread"
8972else
8973 hard_bailout
8974fi
8975
8976fi
8977
8978################################################################################
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
8980$as_echo_n "checking whether to enable selinux support... " >&6; }
8981# Check whether --enable-selinux was given.
8982if test "${enable_selinux+set}" = set; then :
8983 enableval=$enable_selinux; SELINUX=$enableval
8984fi
8985
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
8987$as_echo "$SELINUX" >&6; }
8a2fc586 8988
f11781c5
AK
8989################################################################################
8990if test x$SELINUX = xyes; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
8992$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8993if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8995else
8996 ac_check_lib_save_LIBS=$LIBS
8997LIBS="-lsepol $LIBS"
8998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h. */
8a2fc586 9000
7a197a62
AK
9001/* Override any GCC internal prototype to avoid an error.
9002 Use char because int might match the return type of a GCC
9003 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9004#ifdef __cplusplus
9005extern "C"
ad6254c5 9006#endif
f11781c5 9007char sepol_check_context ();
ad6254c5
AK
9008int
9009main ()
9010{
f11781c5 9011return sepol_check_context ();
ad6254c5
AK
9012 ;
9013 return 0;
9014}
9015_ACEOF
f11781c5
AK
9016if ac_fn_c_try_link "$LINENO"; then :
9017 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9018else
f11781c5
AK
9019 ac_cv_lib_sepol_sepol_check_context=no
9020fi
9021rm -f core conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9023LIBS=$ac_check_lib_save_LIBS
80992638 9024fi
f11781c5
AK
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9026$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9027if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9028
80992638 9029
f11781c5
AK
9030$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9031
9032 SELINUX_LIBS="-lsepol"
8106cdd5 9033fi
795ca3e5 9034
f11781c5
AK
9035
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9037$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9038if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9039 $as_echo_n "(cached) " >&6
25fbec5b 9040else
f11781c5
AK
9041 ac_check_lib_save_LIBS=$LIBS
9042LIBS="-lselinux $LIBS"
9043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9044/* end confdefs.h. */
80992638 9045
7a197a62
AK
9046/* Override any GCC internal prototype to avoid an error.
9047 Use char because int might match the return type of a GCC
ad6254c5 9048 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9049#ifdef __cplusplus
9050extern "C"
9051#endif
f11781c5 9052char is_selinux_enabled ();
ad6254c5
AK
9053int
9054main ()
9055{
f11781c5 9056return is_selinux_enabled ();
ad6254c5
AK
9057 ;
9058 return 0;
9059}
9060_ACEOF
f11781c5
AK
9061if ac_fn_c_try_link "$LINENO"; then :
9062 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9063else
f11781c5 9064 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9065fi
f11781c5
AK
9066rm -f core conftest.err conftest.$ac_objext \
9067 conftest$ac_exeext conftest.$ac_ext
9068LIBS=$ac_check_lib_save_LIBS
25fbec5b 9069fi
f11781c5
AK
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9071$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9072if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9073
f11781c5
AK
9074 for ac_header in selinux/selinux.h
9075do :
9076 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9077if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9078 cat >>confdefs.h <<_ACEOF
9079#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9080_ACEOF
795ca3e5 9081
25fbec5b 9082else
f11781c5 9083 hard_bailout
795ca3e5 9084fi
795ca3e5 9085
f11781c5 9086done
795ca3e5 9087
f11781c5
AK
9088 for ac_header in selinux/label.h
9089do :
9090 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9091if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9092 cat >>confdefs.h <<_ACEOF
9093#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9094_ACEOF
ad6254c5 9095
ad6254c5 9096fi
7a197a62 9097
f11781c5 9098done
7a197a62 9099
ad6254c5 9100
f11781c5 9101$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9102
f11781c5
AK
9103 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9104 SELINUX_PC="libselinux"
9105 HAVE_SELINUX=yes
ad6254c5 9106else
8106cdd5 9107
f11781c5
AK
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9109$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9110 SELINUX_LIBS=
9111 SELINUX_PC=
9112 HAVE_SELINUX=no
795ca3e5 9113fi
ad6254c5 9114
795ca3e5
AK
9115fi
9116
f11781c5
AK
9117################################################################################
9118if test x$REALTIME = xyes; then
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9120$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9121if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9122 $as_echo_n "(cached) " >&6
26e7f2e0 9123else
f11781c5
AK
9124 ac_check_lib_save_LIBS=$LIBS
9125LIBS="-lrt $LIBS"
9126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9127/* end confdefs.h. */
ad6254c5 9128
f11781c5
AK
9129/* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9132#ifdef __cplusplus
9133extern "C"
9134#endif
9135char clock_gettime ();
ad6254c5
AK
9136int
9137main ()
9138{
f11781c5 9139return clock_gettime ();
ad6254c5
AK
9140 ;
9141 return 0;
9142}
9143_ACEOF
f11781c5
AK
9144if ac_fn_c_try_link "$LINENO"; then :
9145 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9146else
f11781c5 9147 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9148fi
f11781c5
AK
9149rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9152fi
f11781c5
AK
9153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9154$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9155if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9156 HAVE_REALTIME=yes
9157else
9158 HAVE_REALTIME=no
8106cdd5 9159fi
ad6254c5 9160
ad6254c5 9161
f11781c5 9162 if test x$HAVE_REALTIME = xyes; then
7a197a62 9163
f11781c5 9164$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9165
f11781c5
AK
9166 LIBS="-lrt $LIBS"
9167 else
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9169$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9170 fi
9171fi
9172
9173################################################################################
9174for ac_header in getopt.h
9175do :
9176 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9177if test "x$ac_cv_header_getopt_h" = x""yes; then :
9178 cat >>confdefs.h <<_ACEOF
9179#define HAVE_GETOPT_H 1
9180_ACEOF
9181
9182$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9183
ad6254c5 9184fi
7a197a62 9185
f11781c5 9186done
ad6254c5 9187
7a197a62 9188
f11781c5
AK
9189################################################################################
9190if test x$READLINE != xno; then
9191 lvm_saved_libs=$LIBS
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9193$as_echo_n "checking for library containing tgetent... " >&6; }
9194if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9195 $as_echo_n "(cached) " >&6
ad6254c5 9196else
f11781c5
AK
9197 ac_func_search_save_LIBS=$LIBS
9198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199/* end confdefs.h. */
ad6254c5 9200
f11781c5
AK
9201/* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204#ifdef __cplusplus
9205extern "C"
9206#endif
9207char tgetent ();
9208int
9209main ()
9210{
9211return tgetent ();
9212 ;
9213 return 0;
9214}
ad6254c5 9215_ACEOF
f11781c5
AK
9216for ac_lib in '' tinfo ncurses curses termcap termlib; do
9217 if test -z "$ac_lib"; then
9218 ac_res="none required"
9219 else
9220 ac_res=-l$ac_lib
9221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9222 fi
9223 if ac_fn_c_try_link "$LINENO"; then :
9224 ac_cv_search_tgetent=$ac_res
9225fi
9226rm -f core conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext
9228 if test "${ac_cv_search_tgetent+set}" = set; then :
9229 break
9230fi
9231done
9232if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9233
80992638 9234else
f11781c5 9235 ac_cv_search_tgetent=no
b896caa1 9236fi
f11781c5
AK
9237rm conftest.$ac_ext
9238LIBS=$ac_func_search_save_LIBS
9239fi
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9241$as_echo "$ac_cv_search_tgetent" >&6; }
9242ac_res=$ac_cv_search_tgetent
9243if test "$ac_res" != no; then :
9244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9245 READLINE_LIBS=$ac_cv_search_tgetent
9246else
ad6254c5 9247
f11781c5
AK
9248 if test "$READLINE" = yes; then
9249 as_fn_error $? "termcap could not be found which is required for the
9250--enable-readline option (which is enabled by default). Either disable readline
9251support with --disable-readline or download and install termcap from:
9252 ftp.gnu.org/gnu/termcap
9253Note: if you are using precompiled packages you will also need the development
9254 package as well (which may be called termcap-devel or something similar).
9255Note: (n)curses also seems to work as a substitute for termcap. This was
9256 not found either - but you could try installing that as well." "$LINENO" 5
9257 fi
9258fi
b896caa1 9259
f11781c5
AK
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9261$as_echo_n "checking for readline in -lreadline... " >&6; }
9262if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9263 $as_echo_n "(cached) " >&6
795ca3e5 9264else
f11781c5
AK
9265 ac_check_lib_save_LIBS=$LIBS
9266LIBS="-lreadline $LIBS"
9267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9268/* end confdefs.h. */
8a2fc586 9269
f11781c5
AK
9270/* Override any GCC internal prototype to avoid an error.
9271 Use char because int might match the return type of a GCC
9272 builtin and then its argument prototype would still apply. */
9273#ifdef __cplusplus
9274extern "C"
ad6254c5 9275#endif
f11781c5
AK
9276char readline ();
9277int
9278main ()
9279{
9280return readline ();
9281 ;
9282 return 0;
9283}
9284_ACEOF
9285if ac_fn_c_try_link "$LINENO"; then :
9286 ac_cv_lib_readline_readline=yes
9287else
9288 ac_cv_lib_readline_readline=no
9289fi
9290rm -f core conftest.err conftest.$ac_objext \
9291 conftest$ac_exeext conftest.$ac_ext
9292LIBS=$ac_check_lib_save_LIBS
9293fi
9294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9295$as_echo "$ac_cv_lib_readline_readline" >&6; }
9296if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9297
8a2fc586 9298
f11781c5
AK
9299$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9300
9301 LIBS=$lvm_saved_libs
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9303$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9304if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9305 $as_echo_n "(cached) " >&6
9306else
9307 ac_check_lib_save_LIBS=$LIBS
9308LIBS="-lreadline $LIBS"
9309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310/* end confdefs.h. */
8a2fc586 9311
7a197a62
AK
9312/* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9315#ifdef __cplusplus
9316extern "C"
ad6254c5 9317#endif
f11781c5 9318char rl_line_buffer ();
ad6254c5
AK
9319int
9320main ()
9321{
f11781c5 9322return rl_line_buffer ();
ad6254c5
AK
9323 ;
9324 return 0;
9325}
9326_ACEOF
f11781c5
AK
9327if ac_fn_c_try_link "$LINENO"; then :
9328 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9329else
f11781c5
AK
9330 ac_cv_lib_readline_rl_line_buffer=no
9331fi
9332rm -f core conftest.err conftest.$ac_objext \
9333 conftest$ac_exeext conftest.$ac_ext
9334LIBS=$ac_check_lib_save_LIBS
9335fi
9336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9337$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9338if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9339 READLINE_LIBS="-lreadline"
9340else
9341
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9343$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9344 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9345
ad6254c5 9346fi
7a197a62 9347
f11781c5
AK
9348else
9349
9350 READLINE_LIBS=
9351 if test "$READLINE" = yes; then
9352 as_fn_error $? "GNU Readline could not be found which is required for the
9353--enable-readline option (which is enabled by default). Either disable readline
9354support with --disable-readline or download and install readline from:
9355 ftp.gnu.org/gnu/readline
9356Note: if you are using precompiled packages you will also need the development
9357package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9358 fi
ad6254c5 9359fi
f11781c5
AK
9360
9361 LIBS="$READLINE_LIBS $lvm_saved_libs"
9362 for ac_func in rl_completion_matches
9363do :
9364 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9365if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9366 cat >>confdefs.h <<_ACEOF
f11781c5 9367#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9368_ACEOF
9369
ad6254c5
AK
9370fi
9371done
9372
f11781c5 9373 LIBS=$lvm_saved_libs
ad6254c5
AK
9374fi
9375
f11781c5
AK
9376################################################################################
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9378$as_echo_n "checking whether to enable internationalisation... " >&6; }
9379# Check whether --enable-nls was given.
9380if test "${enable_nls+set}" = set; then :
9381 enableval=$enable_nls; INTL=$enableval
9382else
9383 INTL=no
9384fi
d911ec67 9385
f11781c5
AK
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9387$as_echo "$INTL" >&6; }
9388
9389if test x$INTL = xyes; then
9390# FIXME - Move this - can be device-mapper too
9391 INTL_PACKAGE="lvm2"
9392 # Extract the first word of "msgfmt", so it can be a program name with args.
9393set dummy msgfmt; ac_word=$2
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395$as_echo_n "checking for $ac_word... " >&6; }
9396if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9397 $as_echo_n "(cached) " >&6
d911ec67 9398else
f11781c5
AK
9399 case $MSGFMT in
9400 [\\/]* | ?:[\\/]*)
9401 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9402 ;;
9403 *)
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405for as_dir in $PATH
9406do
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9414 fi
9415done
9416 done
9417IFS=$as_save_IFS
9418
9419 ;;
d911ec67 9420esac
f11781c5
AK
9421fi
9422MSGFMT=$ac_cv_path_MSGFMT
9423if test -n "$MSGFMT"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9425$as_echo "$MSGFMT" >&6; }
d911ec67 9426else
f11781c5
AK
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428$as_echo "no" >&6; }
9429fi
d911ec67 9430
f11781c5
AK
9431
9432 if [ "x$MSGFMT" == x ];
9433 then as_fn_error $? "msgfmt not found in path $PATH
9434 " "$LINENO" 5
9435 fi;
9436
9437
9438# Check whether --with-localedir was given.
9439if test "${with_localedir+set}" = set; then :
9440 withval=$with_localedir; LOCALEDIR=$withval
9441else
9442 LOCALEDIR='${prefix}/share/locale'
9443fi
9444
9445fi
9446
9447################################################################################
9448
9449# Check whether --with-confdir was given.
9450if test "${with_confdir+set}" = set; then :
9451 withval=$with_confdir; CONFDIR=$withval
9452else
9453 CONFDIR="/etc"
9454fi
9455
9456
9457
9458# Check whether --with-staticdir was given.
9459if test "${with_staticdir+set}" = set; then :
9460 withval=$with_staticdir; STATICDIR=$withval
9461else
9462 STATICDIR='${exec_prefix}/sbin'
9463fi
9464
9465
9466
9467# Check whether --with-usrlibdir was given.
9468if test "${with_usrlibdir+set}" = set; then :
9469 withval=$with_usrlibdir; usrlibdir=$withval
9470else
9471 usrlibdir='${prefix}/lib'
d911ec67
AK
9472fi
9473
d911ec67 9474
d911ec67 9475
f11781c5
AK
9476# Check whether --with-usrsbindir was given.
9477if test "${with_usrsbindir+set}" = set; then :
9478 withval=$with_usrsbindir; usrsbindir=$withval
9479else
9480 usrsbindir='${prefix}/sbin'
d911ec67
AK
9481fi
9482
d911ec67 9483
f11781c5 9484################################################################################
d911ec67 9485
f11781c5
AK
9486# Check whether --with-udev_prefix was given.
9487if test "${with_udev_prefix+set}" = set; then :
9488 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9489else
f11781c5 9490 udev_prefix='${exec_prefix}'
d911ec67 9491fi
d911ec67 9492
f11781c5
AK
9493
9494
9495# Check whether --with-udevdir was given.
9496if test "${with_udevdir+set}" = set; then :
9497 withval=$with_udevdir; udevdir=$withval
9498else
9499 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9500fi
f11781c5
AK
9501
9502
9503################################################################################
9504if test x$READLINE = xyes; then
9505 for ac_header in readline/readline.h readline/history.h
9506do :
9507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9508ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9509if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9510 cat >>confdefs.h <<_ACEOF
9511#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9512_ACEOF
9513
9514else
f11781c5 9515 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9516fi
9517
9518done
9519
9520fi
9521
f11781c5
AK
9522if test x$CLVMD != xnone; then
9523 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
9524do :
9525 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9526ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9527if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9528 cat >>confdefs.h <<_ACEOF
9529#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9530_ACEOF
ad6254c5 9531
f11781c5
AK
9532else
9533 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9534fi
7a197a62 9535
f11781c5 9536done
ad6254c5 9537
f11781c5
AK
9538 for ac_func in dup2 getmntent memmove select socket
9539do :
9540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9541ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9542if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9543 cat >>confdefs.h <<_ACEOF
9544#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9545_ACEOF
ad6254c5 9546
f11781c5
AK
9547else
9548 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9549fi
f11781c5 9550done
7a197a62 9551
f11781c5
AK
9552 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9553# -lseq on Dynix/PTX, -lgen on Unixware.
9554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9555$as_echo_n "checking for library containing getmntent... " >&6; }
9556if test "${ac_cv_search_getmntent+set}" = set; then :
9557 $as_echo_n "(cached) " >&6
9558else
9559 ac_func_search_save_LIBS=$LIBS
9560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561/* end confdefs.h. */
ad6254c5 9562
f11781c5
AK
9563/* Override any GCC internal prototype to avoid an error.
9564 Use char because int might match the return type of a GCC
9565 builtin and then its argument prototype would still apply. */
9566#ifdef __cplusplus
9567extern "C"
9568#endif
9569char getmntent ();
9570int
9571main ()
9572{
9573return getmntent ();
9574 ;
9575 return 0;
9576}
9577_ACEOF
9578for ac_lib in '' sun seq gen; do
9579 if test -z "$ac_lib"; then
9580 ac_res="none required"
9581 else
9582 ac_res=-l$ac_lib
9583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9584 fi
9585 if ac_fn_c_try_link "$LINENO"; then :
9586 ac_cv_search_getmntent=$ac_res
9587fi
9588rm -f core conftest.err conftest.$ac_objext \
9589 conftest$ac_exeext
9590 if test "${ac_cv_search_getmntent+set}" = set; then :
9591 break
9592fi
9593done
9594if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9595
ad6254c5 9596else
f11781c5 9597 ac_cv_search_getmntent=no
795ca3e5 9598fi
f11781c5
AK
9599rm conftest.$ac_ext
9600LIBS=$ac_func_search_save_LIBS
9601fi
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9603$as_echo "$ac_cv_search_getmntent" >&6; }
9604ac_res=$ac_cv_search_getmntent
9605if test "$ac_res" != no; then :
9606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9607 ac_cv_func_getmntent=yes
9608
9609$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9610
f11781c5
AK
9611else
9612 ac_cv_func_getmntent=no
8106cdd5 9613fi
f11781c5
AK
9614
9615
9616 for ac_header in sys/select.h sys/socket.h
9617do :
9618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9619ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9620if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9621 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9622#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9623_ACEOF
795ca3e5 9624
795ca3e5
AK
9625fi
9626
ad6254c5 9627done
80992638 9628
f11781c5
AK
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9630$as_echo_n "checking types of arguments for select... " >&6; }
9631if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9632 $as_echo_n "(cached) " >&6
83912faa 9633else
f11781c5
AK
9634 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9635 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9636 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9638/* end confdefs.h. */
9639$ac_includes_default
f11781c5
AK
9640#ifdef HAVE_SYS_SELECT_H
9641# include <sys/select.h>
9642#endif
9643#ifdef HAVE_SYS_SOCKET_H
9644# include <sys/socket.h>
9645#endif
9646
9647int
9648main ()
9649{
9650extern int select ($ac_arg1,
9651 $ac_arg234, $ac_arg234, $ac_arg234,
9652 $ac_arg5);
9653 ;
9654 return 0;
9655}
ad6254c5 9656_ACEOF
f11781c5
AK
9657if ac_fn_c_try_compile "$LINENO"; then :
9658 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9659fi
9660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 done
9662 done
9663done
9664# Provide a safe default value.
9665: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9666
ad6254c5 9667fi
f11781c5
AK
9668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9669$as_echo "$ac_cv_func_select_args" >&6; }
9670ac_save_IFS=$IFS; IFS=','
9671set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9672IFS=$ac_save_IFS
9673shift
7a197a62 9674
f11781c5
AK
9675cat >>confdefs.h <<_ACEOF
9676#define SELECT_TYPE_ARG1 $1
9677_ACEOF
ad6254c5 9678
f11781c5
AK
9679
9680cat >>confdefs.h <<_ACEOF
9681#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9682_ACEOF
f11781c5
AK
9683
9684
9685cat >>confdefs.h <<_ACEOF
9686#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9687_ACEOF
ad6254c5 9688
f11781c5
AK
9689rm -f conftest*
9690
ad6254c5 9691fi
7a197a62 9692
f11781c5
AK
9693if test x$CLUSTER != xnone; then
9694 for ac_header in sys/socket.h sys/un.h
9695do :
9696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9699 cat >>confdefs.h <<_ACEOF
9700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9701_ACEOF
ad6254c5 9702
f11781c5
AK
9703else
9704 as_fn_error $? "bailing out" "$LINENO" 5
9705fi
9706
9707done
9708
9709 for ac_func in socket
9710do :
9711 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9712if test "x$ac_cv_func_socket" = x""yes; then :
9713 cat >>confdefs.h <<_ACEOF
9714#define HAVE_SOCKET 1
9715_ACEOF
7a197a62 9716
80992638 9717else
f11781c5 9718 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9719fi
f11781c5 9720done
83912faa 9721
69792976 9722fi
f11781c5
AK
9723
9724if test x$DMEVENTD = xyes; then
9725 for ac_header in arpa/inet.h
9726do :
9727 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9728if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9729 cat >>confdefs.h <<_ACEOF
f11781c5 9730#define HAVE_ARPA_INET_H 1
ad6254c5 9731_ACEOF
69792976 9732
69792976 9733else
f11781c5 9734 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9735fi
9736
ad6254c5 9737done
69792976 9738
ad6254c5
AK
9739fi
9740
f11781c5
AK
9741if test x$HAVE_LIBDL = xyes; then
9742 for ac_header in dlfcn.h
9743do :
9744 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9745if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9746 cat >>confdefs.h <<_ACEOF
9747#define HAVE_DLFCN_H 1
a5f46f6a 9748_ACEOF
a5f46f6a 9749
f11781c5
AK
9750else
9751 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9752fi
9753
f11781c5 9754done
a5f46f6a 9755
a5f46f6a
AK
9756fi
9757
f11781c5
AK
9758if test x$INTL = xyes; then
9759 for ac_header in libintl.h
9760do :
9761 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9762if test "x$ac_cv_header_libintl_h" = x""yes; then :
9763 cat >>confdefs.h <<_ACEOF
9764#define HAVE_LIBINTL_H 1
9765_ACEOF
a5f46f6a 9766
a5f46f6a 9767else
f11781c5 9768 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9769fi
f11781c5
AK
9770
9771done
a5f46f6a
AK
9772
9773fi
f11781c5
AK
9774
9775if test x$UDEV_SYNC = xyes; then
9776 for ac_header in sys/ipc.h sys/sem.h
9777do :
9778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9781 cat >>confdefs.h <<_ACEOF
9782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9783_ACEOF
9784
9785else
f11781c5 9786 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9787fi
9788
9789done
9790
9791fi
9792
a653923f
AK
9793################################################################################
9794# Extract the first word of "modprobe", so it can be a program name with args.
9795set dummy modprobe; ac_word=$2
f11781c5 9796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9797$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9798if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9799 $as_echo_n "(cached) " >&6
72b2cb61
AK
9800else
9801 case $MODPROBE_CMD in
9802 [\\/]* | ?:[\\/]*)
9803 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9804 ;;
9805 *)
9806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
f11781c5 9811 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9813 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9815 break 2
9816 fi
9817done
f11781c5 9818 done
7a197a62 9819IFS=$as_save_IFS
72b2cb61
AK
9820
9821 ;;
9822esac
9823fi
9824MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9825if test -n "$MODPROBE_CMD"; then
f11781c5 9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9827$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9828else
f11781c5 9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9830$as_echo "no" >&6; }
72b2cb61
AK
9831fi
9832
a653923f 9833
7a197a62 9834
a653923f 9835if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9836
9837cat >>confdefs.h <<_ACEOF
9838#define MODPROBE_CMD "$MODPROBE_CMD"
9839_ACEOF
9840
a653923f
AK
9841fi
9842
b5c2529b 9843
a9b601e2
ZK
9844lvm_exec_prefix=$exec_prefix
9845test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9846test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 9847LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 9848
b5c2529b 9849cat >>confdefs.h <<_ACEOF
d2c11605 9850#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
9851_ACEOF
9852
9853
9854if test "$CLVMD" != none; then
9855 clvmd_prefix=$ac_default_prefix
d2c11605 9856 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
9857 test "$prefix" != NONE && clvmd_prefix=$prefix
9858
9859cat >>confdefs.h <<_ACEOF
d2c11605 9860#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
9861_ACEOF
9862
9863fi
9864
80992638 9865################################################################################
93bd259b
AK
9866if test "$BUILD_DMEVENTD" = yes; then
9867
9868# Check whether --with-dmeventd-pidfile was given.
f11781c5 9869if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 9870 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 9871else
71082be4 9872 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
9873fi
9874
93bd259b 9875
71082be4
ZK
9876cat >>confdefs.h <<_ACEOF
9877#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9878_ACEOF
93bd259b 9879
71082be4 9880fi
93bd259b
AK
9881
9882if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
9883
9884# Check whether --with-dmeventd-path was given.
f11781c5 9885if test "${with_dmeventd_path+set}" = set; then :
71082be4 9886 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 9887else
71082be4 9888 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
9889fi
9890
93bd259b 9891
71082be4
ZK
9892cat >>confdefs.h <<_ACEOF
9893#define DMEVENTD_PATH "$DMEVENTD_PATH"
9894_ACEOF
3399ae32 9895
71082be4 9896fi
3399ae32 9897
8bae0a1e
AK
9898
9899
8bae0a1e 9900# Check whether --with-default-run-dir was given.
f11781c5 9901if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
9902 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9903else
9904 DEFAULT_RUN_DIR="/var/run/lvm"
9905fi
9906
9907cat >>confdefs.h <<_ACEOF
9908#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9909_ACEOF
9910
9911
71082be4 9912################################################################################
3399ae32
AK
9913
9914# Check whether --with-default-system-dir was given.
f11781c5 9915if test "${with_default_system_dir+set}" = set; then :
71082be4 9916 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 9917else
71082be4 9918 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
9919fi
9920
71082be4 9921
3399ae32
AK
9922cat >>confdefs.h <<_ACEOF
9923#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9924_ACEOF
9925
9926
9927
3399ae32 9928# Check whether --with-default-archive-subdir was given.
f11781c5 9929if test "${with_default_archive_subdir+set}" = set; then :
71082be4 9930 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 9931else
71082be4 9932 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
9933fi
9934
71082be4 9935
3399ae32
AK
9936cat >>confdefs.h <<_ACEOF
9937#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
9938_ACEOF
9939
9940
9941
3399ae32 9942# Check whether --with-default-backup-subdir was given.
f11781c5 9943if test "${with_default_backup_subdir+set}" = set; then :
71082be4 9944 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 9945else
71082be4 9946 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
9947fi
9948
71082be4 9949
3399ae32
AK
9950cat >>confdefs.h <<_ACEOF
9951#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
9952_ACEOF
9953
9954
9955
3399ae32 9956# Check whether --with-default-cache-subdir was given.
f11781c5 9957if test "${with_default_cache_subdir+set}" = set; then :
71082be4 9958 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 9959else
71082be4 9960 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
9961fi
9962
71082be4 9963
3399ae32
AK
9964cat >>confdefs.h <<_ACEOF
9965#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
9966_ACEOF
9967
9968
9969
3399ae32 9970# Check whether --with-default-locking-dir was given.
f11781c5 9971if test "${with_default_locking_dir+set}" = set; then :
71082be4 9972 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 9973else
71082be4 9974 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
9975fi
9976
71082be4 9977
3399ae32
AK
9978cat >>confdefs.h <<_ACEOF
9979#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
9980_ACEOF
9981
9982
fea55602
DW
9983################################################################################
9984
9985# Check whether --with-default-data-alignment was given.
f11781c5 9986if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
9987 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
9988else
9989 DEFAULT_DATA_ALIGNMENT=1
9990fi
9991
9992
9993cat >>confdefs.h <<_ACEOF
9994#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
9995_ACEOF
9996
9997
93bd259b 9998################################################################################
f11781c5 9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10000$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10001
10002# Check whether --with-interface was given.
f11781c5 10003if test "${with_interface+set}" = set; then :
71082be4 10004 withval=$with_interface; interface=$withval
93bd259b 10005else
71082be4 10006 interface=ioctl
93bd259b
AK
10007fi
10008
10009if [ "x$interface" != xioctl ];
10010then
f11781c5 10011 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10012fi
f11781c5 10013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10014$as_echo "$interface" >&6; }
93bd259b
AK
10015
10016################################################################################
db8b5af9 10017DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10018
10019cat >>confdefs.h <<_ACEOF
10020#define DM_LIB_VERSION $DM_LIB_VERSION
10021_ACEOF
10022
10023
db8b5af9 10024DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10025
db8b5af9 10026LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10027
db8b5af9 10028VER=`cat "$srcdir"/VERSION`
bf456146 10029LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10030VER=`echo "$VER" | $AWK '{print $1}'`
10031LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10032VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10033LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10034LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10035LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10036LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10037
80992638 10038################################################################################
fae0c576 10039
83912faa 10040
795ca3e5
AK
10041
10042
10043
10044
10045
10046
5a52dca9 10047
8ef2b021 10048
199e490e 10049
69792976
AK
10050
10051
10052
d0191583 10053
69792976 10054
8106cdd5
AK
10055
10056
10057
10058
10059
d68a82ec 10060
036f273a 10061
7d1552c9 10062
8106cdd5 10063
0a62c911 10064
8106cdd5 10065
4a7f3eb2 10066
4922197a
AK
10067
10068
d8ac0fbc 10069
1a9ea74d 10070
8a2fc586
AK
10071
10072
d0191583 10073
93bd259b
AK
10074
10075
10076
10077
10078
d0191583
JM
10079
10080
10081
10082
10083
8a2fc586 10084
19a2c6e0 10085
f7f0854e
ZK
10086
10087
3ceb7608 10088
8ce0cbda 10089
8b1a3214 10090
ec6a6fbe
AK
10091
10092
10093
10094
e2997b73
AK
10095
10096
10097
10098
10099
10100
a946372e
AK
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
ec6a6fbe 10112
cac52ca4 10113
d3c8211f 10114
7e3fe830 10115
a5f46f6a
AK
10116
10117
10118
572fefeb 10119
90c80887 10120
3399ae32
AK
10121
10122
10123
10124
10125
90c80887 10126
bf456146 10127
e1b8a236 10128
0878503f 10129
8fea97b7 10130
54b362f9 10131
b1f08e51 10132
d1e8046f 10133
fea55602 10134
c89bc357 10135
6e5c1f75 10136
3ba4a195 10137
d2c11605
ZK
10138
10139
cdd50823 10140
bf09a320 10141
68f2de6d
AK
10142
10143
80992638 10144################################################################################
9493f1df 10145ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10146
ad6254c5 10147cat >confcache <<\_ACEOF
795ca3e5
AK
10148# This file is a shell script that caches the results of configure
10149# tests run on this system so they can be shared between configure
ad6254c5
AK
10150# scripts and configure runs, see configure's option --config-cache.
10151# It is not useful on other systems. If it contains results you don't
10152# want to keep, you may remove or edit it.
795ca3e5 10153#
ad6254c5
AK
10154# config.status only pays attention to the cache file if you give it
10155# the --recheck option to rerun configure.
795ca3e5 10156#
ad6254c5
AK
10157# `ac_cv_env_foo' variables (set or unset) will be overridden when
10158# loading this file, other *unset* `ac_cv_foo' will be assigned the
10159# following values.
10160
10161_ACEOF
10162
795ca3e5
AK
10163# The following way of writing the cache mishandles newlines in values,
10164# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10165# So, we kill variables containing newlines.
795ca3e5
AK
10166# Ultrix sh set writes to stderr and can't be redirected directly,
10167# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10168(
10169 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10170 eval ac_val=\$$ac_var
10171 case $ac_val in #(
10172 *${as_nl}*)
10173 case $ac_var in #(
f11781c5 10174 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10175$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10176 esac
10177 case $ac_var in #(
10178 _ | IFS | as_nl) ;; #(
ec6a6fbe 10179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10180 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10181 esac ;;
10182 esac
10183 done
10184
ad6254c5 10185 (set) 2>&1 |
7a197a62
AK
10186 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10187 *${as_nl}ac_space=\ *)
f11781c5
AK
10188 # `set' does not quote correctly, so add quotes: double-quote
10189 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10190 sed -n \
8a2fc586
AK
10191 "s/'/'\\\\''/g;
10192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10193 ;; #(
ad6254c5
AK
10194 *)
10195 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10197 ;;
7a197a62
AK
10198 esac |
10199 sort
10200) |
ad6254c5 10201 sed '
7a197a62 10202 /^ac_cv_env_/b end
ad6254c5 10203 t clear
7a197a62 10204 :clear
ad6254c5
AK
10205 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10206 t end
7a197a62
AK
10207 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10208 :end' >>confcache
10209if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10210 if test -w "$cache_file"; then
10211 test "x$cache_file" != "x/dev/null" &&
f11781c5 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10213$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10214 cat confcache >$cache_file
795ca3e5 10215 else
f11781c5 10216 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10217$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10218 fi
10219fi
10220rm -f confcache
10221
795ca3e5
AK
10222test "x$prefix" = xNONE && prefix=$ac_default_prefix
10223# Let make expand exec_prefix.
10224test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10225
72b2cb61 10226DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10227
10228ac_libobjs=
10229ac_ltlibobjs=
f11781c5 10230U=
ad6254c5
AK
10231for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10232 # 1. Remove the extension, and $U if already installed.
7a197a62 10233 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10234 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10236 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10237 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10238 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10239done
10240LIBOBJS=$ac_libobjs
80992638 10241
ad6254c5
AK
10242LTLIBOBJS=$ac_ltlibobjs
10243
10244
10245
10246: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10247ac_write_fail=0
ad6254c5
AK
10248ac_clean_files_save=$ac_clean_files
10249ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10250{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10251$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10252as_write_fail=0
10253cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10254#! $SHELL
10255# Generated by $as_me.
795ca3e5 10256# Run this file to recreate the current configuration.
795ca3e5 10257# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10258# configure, is in config.log if it exists.
10259
10260debug=false
10261ac_cs_recheck=false
10262ac_cs_silent=false
ad6254c5 10263
f11781c5
AK
10264SHELL=\${CONFIG_SHELL-$SHELL}
10265export SHELL
10266_ASEOF
10267cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10268## -------------------- ##
10269## M4sh Initialization. ##
10270## -------------------- ##
ad6254c5 10271
25fbec5b
AK
10272# Be more Bourne compatible
10273DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10274if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10275 emulate sh
10276 NULLCMD=:
ec6a6fbe 10277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10278 # is contrary to our usage. Disable this feature.
10279 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10280 setopt NO_GLOB_SUBST
10281else
f11781c5
AK
10282 case `(set -o) 2>/dev/null` in #(
10283 *posix*) :
10284 set -o posix ;; #(
10285 *) :
10286 ;;
25fbec5b 10287esac
7a197a62 10288fi
25fbec5b
AK
10289
10290
ec6a6fbe
AK
10291as_nl='
10292'
10293export as_nl
10294# Printing a long string crashes Solaris 7 /usr/bin/printf.
10295as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10296as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10297as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10298# Prefer a ksh shell builtin over an external printf program on Solaris,
10299# but without wasting forks for bash or zsh.
10300if test -z "$BASH_VERSION$ZSH_VERSION" \
10301 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10302 as_echo='print -r --'
10303 as_echo_n='print -rn --'
10304elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10305 as_echo='printf %s\n'
10306 as_echo_n='printf %s'
10307else
10308 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10309 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10310 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10311 else
ec6a6fbe
AK
10312 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10313 as_echo_n_body='eval
10314 arg=$1;
f11781c5 10315 case $arg in #(
ec6a6fbe
AK
10316 *"$as_nl"*)
10317 expr "X$arg" : "X\\(.*\\)$as_nl";
10318 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10319 esac;
10320 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10321 '
10322 export as_echo_n_body
10323 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10324 fi
ec6a6fbe
AK
10325 export as_echo_body
10326 as_echo='sh -c $as_echo_body as_echo'
10327fi
10328
10329# The user is always right.
10330if test "${PATH_SEPARATOR+set}" != set; then
10331 PATH_SEPARATOR=:
10332 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10333 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10334 PATH_SEPARATOR=';'
10335 }
ad6254c5
AK
10336fi
10337
ad6254c5 10338
7a197a62
AK
10339# IFS
10340# We need space, tab and new line, in precisely that order. Quoting is
10341# there to prevent editors from complaining about space-tab.
10342# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10343# splitting by setting IFS to empty value.)
7a197a62
AK
10344IFS=" "" $as_nl"
10345
10346# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10347case $0 in #((
7a197a62
AK
10348 *[\\/]* ) as_myself=$0 ;;
10349 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
f11781c5
AK
10354 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10355 done
7a197a62
AK
10356IFS=$as_save_IFS
10357
10358 ;;
10359esac
10360# We did not find ourselves, most probably we were run as `sh COMMAND'
10361# in which case we are not to be found in the path.
10362if test "x$as_myself" = x; then
10363 as_myself=$0
10364fi
10365if test ! -f "$as_myself"; then
ec6a6fbe 10366 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10367 exit 1
7a197a62
AK
10368fi
10369
f11781c5
AK
10370# Unset variables that we do not need and which cause bugs (e.g. in
10371# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10372# suppresses any "Segmentation fault" message there. '((' could
10373# trigger a bug in pdksh 5.2.14.
10374for as_var in BASH_ENV ENV MAIL MAILPATH
10375do eval test x\${$as_var+set} = xset \
10376 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10377done
ad6254c5
AK
10378PS1='$ '
10379PS2='> '
10380PS4='+ '
10381
10382# NLS nuisances.
ec6a6fbe
AK
10383LC_ALL=C
10384export LC_ALL
10385LANGUAGE=C
10386export LANGUAGE
8106cdd5 10387
f11781c5
AK
10388# CDPATH.
10389(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10390
10391
10392# as_fn_error STATUS ERROR [LINENO LOG_FD]
10393# ----------------------------------------
10394# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10395# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10396# script with STATUS, using 1 if that was 0.
10397as_fn_error ()
10398{
10399 as_status=$1; test $as_status -eq 0 && as_status=1
10400 if test "$4"; then
10401 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10402 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10403 fi
10404 $as_echo "$as_me: error: $2" >&2
10405 as_fn_exit $as_status
10406} # as_fn_error
10407
10408
10409# as_fn_set_status STATUS
10410# -----------------------
10411# Set $? to STATUS, without forking.
10412as_fn_set_status ()
10413{
10414 return $1
10415} # as_fn_set_status
10416
10417# as_fn_exit STATUS
10418# -----------------
10419# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10420as_fn_exit ()
10421{
10422 set +e
10423 as_fn_set_status $1
10424 exit $1
10425} # as_fn_exit
10426
10427# as_fn_unset VAR
10428# ---------------
10429# Portably unset VAR.
10430as_fn_unset ()
10431{
10432 { eval $1=; unset $1;}
10433}
10434as_unset=as_fn_unset
10435# as_fn_append VAR VALUE
10436# ----------------------
10437# Append the text in VALUE to the end of the definition contained in VAR. Take
10438# advantage of any shell optimizations that allow amortized linear growth over
10439# repeated appends, instead of the typical quadratic growth present in naive
10440# implementations.
10441if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10442 eval 'as_fn_append ()
10443 {
10444 eval $1+=\$2
10445 }'
10446else
10447 as_fn_append ()
10448 {
10449 eval $1=\$$1\$2
10450 }
10451fi # as_fn_append
10452
10453# as_fn_arith ARG...
10454# ------------------
10455# Perform arithmetic evaluation on the ARGs, and store the result in the
10456# global $as_val. Take advantage of shells that can avoid forks. The arguments
10457# must be portable across $(()) and expr.
10458if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10459 eval 'as_fn_arith ()
10460 {
10461 as_val=$(( $* ))
10462 }'
10463else
10464 as_fn_arith ()
10465 {
10466 as_val=`expr "$@" || test $? -eq 1`
10467 }
10468fi # as_fn_arith
10469
10470
7a197a62
AK
10471if expr a : '\(a\)' >/dev/null 2>&1 &&
10472 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10473 as_expr=expr
10474else
10475 as_expr=false
10476fi
8106cdd5 10477
7a197a62 10478if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10479 as_basename=basename
10480else
10481 as_basename=false
10482fi
10483
f11781c5
AK
10484if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10485 as_dirname=dirname
10486else
10487 as_dirname=false
10488fi
ad6254c5 10489
7a197a62 10490as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10491$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10492 X"$0" : 'X\(//\)$' \| \
7a197a62 10493 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10494$as_echo X/"$0" |
7a197a62
AK
10495 sed '/^.*\/\([^/][^/]*\)\/*$/{
10496 s//\1/
10497 q
10498 }
10499 /^X\/\(\/\/\)$/{
10500 s//\1/
10501 q
10502 }
10503 /^X\/\(\/\).*/{
10504 s//\1/
10505 q
10506 }
10507 s/.*/./; q'`
ad6254c5 10508
f11781c5
AK
10509# Avoid depending upon Character Ranges.
10510as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10511as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10512as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10513as_cr_digits='0123456789'
10514as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10515
10516ECHO_C= ECHO_N= ECHO_T=
f11781c5 10517case `echo -n x` in #(((((
7a197a62 10518-n*)
f11781c5 10519 case `echo 'xy\c'` in
7a197a62 10520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10521 xy) ECHO_C='\c';;
10522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10523 ECHO_T=' ';;
7a197a62
AK
10524 esac;;
10525*)
10526 ECHO_N='-n';;
ad6254c5 10527esac
80992638 10528
ad6254c5 10529rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10530if test -d conf$$.dir; then
10531 rm -f conf$$.dir/conf$$.file
10532else
10533 rm -f conf$$.dir
ec6a6fbe
AK
10534 mkdir conf$$.dir 2>/dev/null
10535fi
10536if (echo >conf$$.file) 2>/dev/null; then
10537 if ln -s conf$$.file conf$$ 2>/dev/null; then
10538 as_ln_s='ln -s'
10539 # ... but there are two gotchas:
10540 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10541 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10542 # In both cases, we have to default to `cp -p'.
10543 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10544 as_ln_s='cp -p'
10545 elif ln conf$$.file conf$$ 2>/dev/null; then
10546 as_ln_s=ln
10547 else
ad6254c5 10548 as_ln_s='cp -p'
ec6a6fbe 10549 fi
ad6254c5
AK
10550else
10551 as_ln_s='cp -p'
10552fi
7a197a62
AK
10553rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10554rmdir conf$$.dir 2>/dev/null
8106cdd5 10555
f11781c5
AK
10556
10557# as_fn_mkdir_p
10558# -------------
10559# Create "$as_dir" as a directory, including parents if necessary.
10560as_fn_mkdir_p ()
10561{
10562
10563 case $as_dir in #(
10564 -*) as_dir=./$as_dir;;
10565 esac
10566 test -d "$as_dir" || eval $as_mkdir_p || {
10567 as_dirs=
10568 while :; do
10569 case $as_dir in #(
10570 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10571 *) as_qdir=$as_dir;;
10572 esac
10573 as_dirs="'$as_qdir' $as_dirs"
10574 as_dir=`$as_dirname -- "$as_dir" ||
10575$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10576 X"$as_dir" : 'X\(//\)[^/]' \| \
10577 X"$as_dir" : 'X\(//\)$' \| \
10578 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10579$as_echo X"$as_dir" |
10580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10581 s//\1/
10582 q
10583 }
10584 /^X\(\/\/\)[^/].*/{
10585 s//\1/
10586 q
10587 }
10588 /^X\(\/\/\)$/{
10589 s//\1/
10590 q
10591 }
10592 /^X\(\/\).*/{
10593 s//\1/
10594 q
10595 }
10596 s/.*/./; q'`
10597 test -d "$as_dir" && break
10598 done
10599 test -z "$as_dirs" || eval "mkdir $as_dirs"
10600 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10601
10602
10603} # as_fn_mkdir_p
ad6254c5 10604if mkdir -p . 2>/dev/null; then
f11781c5 10605 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10606else
8a2fc586 10607 test -d ./-p && rmdir ./-p
ad6254c5
AK
10608 as_mkdir_p=false
10609fi
10610
25fbec5b
AK
10611if test -x / >/dev/null 2>&1; then
10612 as_test_x='test -x'
7a197a62 10613else
25fbec5b
AK
10614 if ls -dL / >/dev/null 2>&1; then
10615 as_ls_L_option=L
10616 else
10617 as_ls_L_option=
10618 fi
10619 as_test_x='
10620 eval sh -c '\''
10621 if test -d "$1"; then
ec6a6fbe 10622 test -d "$1/.";
25fbec5b 10623 else
f11781c5 10624 case $1 in #(
ec6a6fbe 10625 -*)set "./$1";;
25fbec5b 10626 esac;
f11781c5 10627 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10628 ???[sx]*):;;*)false;;esac;fi
10629 '\'' sh
10630 '
7a197a62 10631fi
25fbec5b 10632as_executable_p=$as_test_x
ad6254c5
AK
10633
10634# Sed expression to map a string onto a valid CPP name.
8a2fc586 10635as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10636
10637# Sed expression to map a string onto a valid variable name.
8a2fc586 10638as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10639
10640
ad6254c5 10641exec 6>&1
f11781c5
AK
10642## ----------------------------------- ##
10643## Main body of $CONFIG_STATUS script. ##
10644## ----------------------------------- ##
10645_ASEOF
10646test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10647
f11781c5
AK
10648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10649# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10650# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10651# values after options handling.
10652ac_log="
ad6254c5 10653This file was extended by $as_me, which was
f11781c5 10654generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10655
10656 CONFIG_FILES = $CONFIG_FILES
10657 CONFIG_HEADERS = $CONFIG_HEADERS
10658 CONFIG_LINKS = $CONFIG_LINKS
10659 CONFIG_COMMANDS = $CONFIG_COMMANDS
10660 $ $0 $@
10661
7a197a62
AK
10662on `(hostname || uname -n) 2>/dev/null | sed 1q`
10663"
10664
ad6254c5
AK
10665_ACEOF
10666
ec6a6fbe
AK
10667case $ac_config_files in *"
10668"*) set x $ac_config_files; shift; ac_config_files=$*;;
10669esac
10670
10671case $ac_config_headers in *"
10672"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10673esac
10674
10675
10676cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10677# Files that config.status was made for.
68f2de6d
AK
10678config_files="$ac_config_files"
10679config_headers="$ac_config_headers"
ad6254c5 10680
7a197a62 10681_ACEOF
ad6254c5 10682
ec6a6fbe 10683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10684ac_cs_usage="\
f11781c5
AK
10685\`$as_me' instantiates files and other configuration actions
10686from templates according to the current configuration. Unless the files
10687and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10688
f11781c5 10689Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10690
10691 -h, --help print this help, then exit
25fbec5b 10692 -V, --version print version number and configuration settings, then exit
f11781c5 10693 --config print configuration, then exit
ec6a6fbe
AK
10694 -q, --quiet, --silent
10695 do not print progress messages
ad6254c5
AK
10696 -d, --debug don't remove temporary files
10697 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10698 --file=FILE[:TEMPLATE]
10699 instantiate the configuration file FILE
10700 --header=FILE[:TEMPLATE]
10701 instantiate the configuration header FILE
ad6254c5
AK
10702
10703Configuration files:
10704$config_files
10705
72b2cb61
AK
10706Configuration headers:
10707$config_headers
10708
f11781c5 10709Report bugs to the package provider."
ad6254c5 10710
7a197a62 10711_ACEOF
ec6a6fbe 10712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10713ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10714ac_cs_version="\\
10715config.status
f11781c5
AK
10716configured by $0, generated by GNU Autoconf 2.66,
10717 with options \\"\$ac_cs_config\\"
ad6254c5 10718
f11781c5 10719Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10720This config.status script is free software; the Free Software Foundation
10721gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10722
10723ac_pwd='$ac_pwd'
10724srcdir='$srcdir'
10725INSTALL='$INSTALL'
fddafd51 10726MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10727AWK='$AWK'
10728test -n "\$AWK" || AWK=awk
ad6254c5
AK
10729_ACEOF
10730
ec6a6fbe
AK
10731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10732# The default lists apply if the user does not specify any file.
ad6254c5
AK
10733ac_need_defaults=:
10734while test $# != 0
10735do
10736 case $1 in
10737 --*=*)
7a197a62
AK
10738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10740 ac_shift=:
10741 ;;
7a197a62 10742 *)
ad6254c5
AK
10743 ac_option=$1
10744 ac_optarg=$2
10745 ac_shift=shift
10746 ;;
ad6254c5
AK
10747 esac
10748
10749 case $ac_option in
10750 # Handling of the options.
ad6254c5
AK
10751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10752 ac_cs_recheck=: ;;
7a197a62 10753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10754 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10755 --config | --confi | --conf | --con | --co | --c )
10756 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10757 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10758 debug=: ;;
10759 --file | --fil | --fi | --f )
10760 $ac_shift
ec6a6fbe
AK
10761 case $ac_optarg in
10762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10763 esac
f11781c5 10764 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10765 ac_need_defaults=false;;
10766 --header | --heade | --head | --hea )
10767 $ac_shift
ec6a6fbe
AK
10768 case $ac_optarg in
10769 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10770 esac
f11781c5 10771 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10772 ac_need_defaults=false;;
7a197a62
AK
10773 --he | --h)
10774 # Conflict between --help and --header
f11781c5
AK
10775 as_fn_error $? "ambiguous option: \`$1'
10776Try \`$0 --help' for more information.";;
7a197a62 10777 --help | --hel | -h )
ec6a6fbe 10778 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10780 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10781 ac_cs_silent=: ;;
10782
10783 # This is an error.
f11781c5
AK
10784 -*) as_fn_error $? "unrecognized option: \`$1'
10785Try \`$0 --help' for more information." ;;
ad6254c5 10786
f11781c5 10787 *) as_fn_append ac_config_targets " $1"
7a197a62 10788 ac_need_defaults=false ;;
ad6254c5
AK
10789
10790 esac
10791 shift
10792done
10793
10794ac_configure_extra_args=
10795
10796if $ac_cs_silent; then
10797 exec 6>/dev/null
10798 ac_configure_extra_args="$ac_configure_extra_args --silent"
10799fi
10800
10801_ACEOF
ec6a6fbe 10802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10803if \$ac_cs_recheck; then
ec6a6fbe
AK
10804 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10805 shift
10806 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10807 CONFIG_SHELL='$SHELL'
7a197a62 10808 export CONFIG_SHELL
ec6a6fbe 10809 exec "\$@"
ad6254c5
AK
10810fi
10811
10812_ACEOF
ec6a6fbe 10813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10814exec 5>>config.log
10815{
10816 echo
10817 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10818## Running $as_me. ##
10819_ASBOX
ec6a6fbe 10820 $as_echo "$ac_log"
7a197a62 10821} >&5
ad6254c5 10822
7a197a62 10823_ACEOF
ec6a6fbe 10824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10825_ACEOF
ad6254c5 10826
ec6a6fbe 10827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10828
10829# Handling of arguments.
ad6254c5
AK
10830for ac_config_target in $ac_config_targets
10831do
7a197a62
AK
10832 case $ac_config_target in
10833 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10834 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10835 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10836 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10837 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10838 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
13dd3138 10839 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
93bd259b
AK
10840 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10841 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10842 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10843 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 10844 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
10845 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10846 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
cdd50823 10847 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 10848 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 10849 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 10850 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
10851 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10852 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
10853 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10854 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10855 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10856 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 10857 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 10858 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 10859 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 10860 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 10861 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
93bd259b
AK
10862 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10863 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 10864 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 10865 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
10866 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10867 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 10868 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 10869 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 10870 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
10871 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10872 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 10873 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 10874 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 10875 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
9493f1df 10876 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
7a197a62 10877 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 10878 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
10879 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10880 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 10881 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 10882
f11781c5 10883 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 10884 esac
ad6254c5
AK
10885done
10886
7a197a62 10887
ad6254c5
AK
10888# If the user did not use the arguments to specify the items to instantiate,
10889# then the envvar interface is used. Set only those that are not.
10890# We use the long form for the default assignment because of an extremely
10891# bizarre bug on SunOS 4.1.3.
10892if $ac_need_defaults; then
10893 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 10894 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
10895fi
10896
10897# Have a temporary directory for convenience. Make it in the build tree
7a197a62 10898# simply because there is no reason against having it here, and in addition,
ad6254c5 10899# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
10900# Hook for its removal unless debugging.
10901# Note that there is a small window in which the directory will not be cleaned:
10902# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
10903$debug ||
10904{
7a197a62
AK
10905 tmp=
10906 trap 'exit_status=$?
10907 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10908' 0
f11781c5 10909 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 10910}
ad6254c5
AK
10911# Create a (secure) tmp directory for tmp files.
10912
10913{
7a197a62 10914 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
10915 test -n "$tmp" && test -d "$tmp"
10916} ||
10917{
7a197a62
AK
10918 tmp=./conf$$-$RANDOM
10919 (umask 077 && mkdir "$tmp")
f11781c5 10920} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 10921
ec6a6fbe
AK
10922# Set up the scripts for CONFIG_FILES section.
10923# No need to generate them if there are no CONFIG_FILES.
10924# This happens for instance with `./config.status config.h'.
1995c9ff 10925if test -n "$CONFIG_FILES"; then
7a197a62 10926
68f2de6d 10927
f11781c5
AK
10928ac_cr=`echo X | tr X '\015'`
10929# On cygwin, bash can eat \r inside `` if the user requested igncr.
10930# But we know of no other shell where ac_cr would be empty at this
10931# point, so we can use a bashism as a fallback.
10932if test "x$ac_cr" = x; then
10933 eval ac_cr=\$\'\\r\'
10934fi
ec6a6fbe
AK
10935ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10936if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10937 ac_cs_awk_cr='\\r'
10938else
10939 ac_cs_awk_cr=$ac_cr
1995c9ff 10940fi
7a197a62 10941
ec6a6fbe 10942echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 10943_ACEOF
7a197a62 10944
8106cdd5 10945
ec6a6fbe
AK
10946{
10947 echo "cat >conf$$subs.awk <<_ACEOF" &&
10948 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10949 echo "_ACEOF"
10950} >conf$$subs.sh ||
f11781c5
AK
10951 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10952ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
10953ac_delim='%!_!# '
10954for ac_last_try in false false false false false :; do
ec6a6fbe 10955 . ./conf$$subs.sh ||
f11781c5 10956 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
10957
10958 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10959 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
10960 break
10961 elif $ac_last_try; then
f11781c5 10962 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
10963 else
10964 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10965 fi
10966done
ec6a6fbe
AK
10967rm -f conf$$subs.sh
10968
10969cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10970cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10971_ACEOF
10972sed -n '
10973h
10974s/^/S["/; s/!.*/"]=/
10975p
10976g
10977s/^[^!]*!//
10978:repl
10979t repl
10980s/'"$ac_delim"'$//
10981t delim
10982:nl
10983h
f11781c5 10984s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
10985t more1
10986s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10987p
10988n
10989b repl
10990:more1
10991s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10992p
10993g
10994s/.\{148\}//
10995t nl
10996:delim
10997h
f11781c5 10998s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
10999t more2
11000s/["\\]/\\&/g; s/^/"/; s/$/"/
11001p
11002b
11003:more2
11004s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11005p
11006g
11007s/.\{148\}//
11008t delim
11009' <conf$$subs.awk | sed '
11010/^[^""]/{
11011 N
11012 s/\n//
11013}
11014' >>$CONFIG_STATUS || ac_write_fail=1
11015rm -f conf$$subs.awk
11016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11017_ACAWK
11018cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11019 for (key in S) S_is_set[key] = 1
11020 FS = "\a"
7a197a62 11021
ec6a6fbe
AK
11022}
11023{
11024 line = $ 0
11025 nfields = split(line, field, "@")
11026 substed = 0
11027 len = length(field[1])
11028 for (i = 2; i < nfields; i++) {
11029 key = field[i]
11030 keylen = length(key)
11031 if (S_is_set[key]) {
11032 value = S[key]
11033 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11034 len += length(value) + length(field[++i])
11035 substed = 1
11036 } else
11037 len += 1 + keylen
11038 }
11039
11040 print line
11041}
fddafd51 11042
ec6a6fbe 11043_ACAWK
1995c9ff 11044_ACEOF
ec6a6fbe
AK
11045cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11046if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11047 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11048else
11049 cat
11050fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11051 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11052_ACEOF
11053
f11781c5
AK
11054# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11055# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11056# trailing colons and then remove the whole line if VPATH becomes empty
11057# (actually we leave an empty line to preserve line numbers).
11058if test "x$srcdir" = x.; then
f11781c5
AK
11059 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11060h
11061s///
11062s/^/:/
11063s/[ ]*$/:/
11064s/:\$(srcdir):/:/g
11065s/:\${srcdir}:/:/g
11066s/:@srcdir@:/:/g
11067s/^:*//
7a197a62 11068s/:*$//
f11781c5
AK
11069x
11070s/\(=[ ]*\).*/\1/
11071G
11072s/\n//
7a197a62
AK
11073s/^[^=]*=[ ]*$//
11074}'
11075fi
11076
ec6a6fbe 11077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11078fi # test -n "$CONFIG_FILES"
11079
ec6a6fbe
AK
11080# Set up the scripts for CONFIG_HEADERS section.
11081# No need to generate them if there are no CONFIG_HEADERS.
11082# This happens for instance with `./config.status Makefile'.
11083if test -n "$CONFIG_HEADERS"; then
11084cat >"$tmp/defines.awk" <<\_ACAWK ||
11085BEGIN {
11086_ACEOF
11087
11088# Transform confdefs.h into an awk script `defines.awk', embedded as
11089# here-document in config.status, that substitutes the proper values into
11090# config.h.in to produce config.h.
11091
11092# Create a delimiter string that does not exist in confdefs.h, to ease
11093# handling of long lines.
11094ac_delim='%!_!# '
11095for ac_last_try in false false :; do
11096 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11097 if test -z "$ac_t"; then
11098 break
11099 elif $ac_last_try; then
f11781c5 11100 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11101 else
11102 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11103 fi
11104done
11105
11106# For the awk script, D is an array of macro values keyed by name,
11107# likewise P contains macro parameters if any. Preserve backslash
11108# newline sequences.
11109
11110ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11111sed -n '
11112s/.\{148\}/&'"$ac_delim"'/g
11113t rset
11114:rset
11115s/^[ ]*#[ ]*define[ ][ ]*/ /
11116t def
11117d
11118:def
11119s/\\$//
11120t bsnl
11121s/["\\]/\\&/g
11122s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11123D["\1"]=" \3"/p
11124s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11125d
11126:bsnl
11127s/["\\]/\\&/g
11128s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11129D["\1"]=" \3\\\\\\n"\\/p
11130t cont
11131s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11132t cont
11133d
11134:cont
11135n
11136s/.\{148\}/&'"$ac_delim"'/g
11137t clear
11138:clear
11139s/\\$//
11140t bsnlc
11141s/["\\]/\\&/g; s/^/"/; s/$/"/p
11142d
11143:bsnlc
11144s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11145b cont
11146' <confdefs.h | sed '
11147s/'"$ac_delim"'/"\\\
11148"/g' >>$CONFIG_STATUS || ac_write_fail=1
11149
11150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11151 for (key in D) D_is_set[key] = 1
11152 FS = "\a"
11153}
11154/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11155 line = \$ 0
11156 split(line, arg, " ")
11157 if (arg[1] == "#") {
11158 defundef = arg[2]
11159 mac1 = arg[3]
11160 } else {
11161 defundef = substr(arg[1], 2)
11162 mac1 = arg[2]
11163 }
11164 split(mac1, mac2, "(") #)
11165 macro = mac2[1]
11166 prefix = substr(line, 1, index(line, defundef) - 1)
11167 if (D_is_set[macro]) {
11168 # Preserve the white space surrounding the "#".
11169 print prefix "define", macro P[macro] D[macro]
11170 next
11171 } else {
11172 # Replace #undef with comments. This is necessary, for example,
11173 # in the case of _POSIX_SOURCE, which is predefined and required
11174 # on some systems where configure will not decide to define it.
11175 if (defundef == "undef") {
11176 print "/*", prefix defundef, macro, "*/"
11177 next
11178 }
11179 }
11180}
11181{ print }
11182_ACAWK
11183_ACEOF
11184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11185 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11186fi # test -n "$CONFIG_HEADERS"
11187
7a197a62 11188
ec6a6fbe
AK
11189eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11190shift
11191for ac_tag
7a197a62
AK
11192do
11193 case $ac_tag in
11194 :[FHLC]) ac_mode=$ac_tag; continue;;
11195 esac
11196 case $ac_mode$ac_tag in
11197 :[FHL]*:*);;
f11781c5 11198 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11199 :[FH]-) ac_tag=-:-;;
11200 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11201 esac
11202 ac_save_IFS=$IFS
11203 IFS=:
11204 set x $ac_tag
11205 IFS=$ac_save_IFS
11206 shift
11207 ac_file=$1
11208 shift
11209
11210 case $ac_mode in
11211 :L) ac_source=$1;;
11212 :[FH])
11213 ac_file_inputs=
11214 for ac_f
11215 do
11216 case $ac_f in
11217 -) ac_f="$tmp/stdin";;
11218 *) # Look for the file first in the build tree, then in the source tree
11219 # (if the path is not absolute). The absolute path cannot be DOS-style,
11220 # because $ac_f cannot contain `:'.
11221 test -f "$ac_f" ||
11222 case $ac_f in
11223 [\\/$]*) false;;
11224 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11225 esac ||
f11781c5 11226 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11227 esac
ec6a6fbe 11228 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11229 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11230 done
11231
11232 # Let's still pretend it is `configure' which instantiates (i.e., don't
11233 # use $as_me), people would be surprised to read:
11234 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11235 configure_input='Generated from '`
11236 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11237 `' by configure.'
7a197a62
AK
11238 if test x"$ac_file" != x-; then
11239 configure_input="$ac_file. $configure_input"
f11781c5 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11241$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11242 fi
ec6a6fbe
AK
11243 # Neutralize special characters interpreted by sed in replacement strings.
11244 case $configure_input in #(
11245 *\&* | *\|* | *\\* )
11246 ac_sed_conf_input=`$as_echo "$configure_input" |
11247 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11248 *) ac_sed_conf_input=$configure_input;;
11249 esac
7a197a62
AK
11250
11251 case $ac_tag in
ec6a6fbe 11252 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11254 esac
11255 ;;
80992638 11256 esac
8106cdd5 11257
7a197a62 11258 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11259$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11260 X"$ac_file" : 'X\(//\)[^/]' \| \
11261 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11262 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11263$as_echo X"$ac_file" |
7a197a62
AK
11264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11265 s//\1/
11266 q
11267 }
11268 /^X\(\/\/\)[^/].*/{
11269 s//\1/
11270 q
11271 }
11272 /^X\(\/\/\)$/{
11273 s//\1/
11274 q
11275 }
11276 /^X\(\/\).*/{
11277 s//\1/
11278 q
11279 }
11280 s/.*/./; q'`
f11781c5 11281 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11282 ac_builddir=.
11283
7a197a62
AK
11284case "$ac_dir" in
11285.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11286*)
ec6a6fbe 11287 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11288 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11289 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11290 case $ac_top_builddir_sub in
11291 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11292 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11293 esac ;;
11294esac
11295ac_abs_top_builddir=$ac_pwd
11296ac_abs_builddir=$ac_pwd$ac_dir_suffix
11297# for backward compatibility:
11298ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11299
11300case $srcdir in
7a197a62 11301 .) # We are building in place.
ad6254c5 11302 ac_srcdir=.
7a197a62
AK
11303 ac_top_srcdir=$ac_top_builddir_sub
11304 ac_abs_top_srcdir=$ac_pwd ;;
11305 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11306 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11307 ac_top_srcdir=$srcdir
11308 ac_abs_top_srcdir=$srcdir ;;
11309 *) # Relative name.
11310 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11311 ac_top_srcdir=$ac_top_build_prefix$srcdir
11312 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11313esac
7a197a62 11314ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11315
ad6254c5 11316
7a197a62
AK
11317 case $ac_mode in
11318 :F)
11319 #
11320 # CONFIG_FILE
11321 #
ad6254c5
AK
11322
11323 case $INSTALL in
11324 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11325 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11326 esac
fddafd51
ZK
11327 ac_MKDIR_P=$MKDIR_P
11328 case $MKDIR_P in
11329 [\\/$]* | ?:[\\/]* ) ;;
11330 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11331 esac
7a197a62 11332_ACEOF
795ca3e5 11333
ec6a6fbe 11334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11335# If the template does not know about datarootdir, expand it.
11336# FIXME: This hack should be removed a few years after 2.60.
11337ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11338ac_sed_dataroot='
11339/datarootdir/ {
7a197a62
AK
11340 p
11341 q
11342}
11343/@datadir@/p
11344/@docdir@/p
11345/@infodir@/p
11346/@localedir@/p
f11781c5 11347/@mandir@/p'
ec6a6fbe 11348case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11349*datarootdir*) ac_datarootdir_seen=yes;;
11350*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11352$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11353_ACEOF
ec6a6fbe 11354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11355 ac_datarootdir_hack='
11356 s&@datadir@&$datadir&g
11357 s&@docdir@&$docdir&g
11358 s&@infodir@&$infodir&g
11359 s&@localedir@&$localedir&g
11360 s&@mandir@&$mandir&g
f11781c5 11361 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11362esac
11363_ACEOF
11364
11365# Neutralize VPATH when `$srcdir' = `.'.
11366# Shell code in configure.ac might set extrasub.
11367# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11369ac_sed_extra="$ac_vpsub
ad6254c5
AK
11370$extrasub
11371_ACEOF
ec6a6fbe 11372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11373:t
11374/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11375s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11376s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11377s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11378s&@srcdir@&$ac_srcdir&;t t
11379s&@abs_srcdir@&$ac_abs_srcdir&;t t
11380s&@top_srcdir@&$ac_top_srcdir&;t t
11381s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11382s&@builddir@&$ac_builddir&;t t
11383s&@abs_builddir@&$ac_abs_builddir&;t t
11384s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11385s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11386s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11387$ac_datarootdir_hack
ec6a6fbe
AK
11388"
11389eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11391
11392test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11393 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11394 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11396which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11397$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11398which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11399
11400 rm -f "$tmp/stdin"
72b2cb61 11401 case $ac_file in
ec6a6fbe
AK
11402 -) cat "$tmp/out" && rm -f "$tmp/out";;
11403 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11404 esac \
f11781c5 11405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11406 ;;
11407 :H)
11408 #
11409 # CONFIG_HEADER
11410 #
72b2cb61 11411 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11412 {
11413 $as_echo "/* $configure_input */" \
11414 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11415 } >"$tmp/config.h" \
f11781c5 11416 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11417 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11419$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11420 else
ec6a6fbe
AK
11421 rm -f "$ac_file"
11422 mv "$tmp/config.h" "$ac_file" \
f11781c5 11423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11424 fi
11425 else
ec6a6fbe
AK
11426 $as_echo "/* $configure_input */" \
11427 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11428 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11429 fi
7a197a62
AK
11430 ;;
11431
11432
11433 esac
11434
11435done # for ac_tag
795ca3e5 11436
795ca3e5 11437
f11781c5 11438as_fn_exit 0
ad6254c5 11439_ACEOF
ad6254c5
AK
11440ac_clean_files=$ac_clean_files_save
11441
ec6a6fbe 11442test $ac_write_fail = 0 ||
f11781c5 11443 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11444
ad6254c5
AK
11445
11446# configure is writing to config.log, and then calls config.status.
11447# config.status does its own redirection, appending to config.log.
11448# Unfortunately, on DOS this fails, as config.log is still kept open
11449# by configure, so config.status won't be able to write to it; its
11450# output is simply discarded. So we exec the FD to /dev/null,
11451# effectively closing config.log, so it can be properly (re)opened and
11452# appended to by config.status. When coming back to configure, we
11453# need to make the FD available again.
11454if test "$no_create" != yes; then
11455 ac_cs_success=:
11456 ac_config_status_args=
11457 test "$silent" = yes &&
11458 ac_config_status_args="$ac_config_status_args --quiet"
11459 exec 5>/dev/null
11460 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11461 exec 5>>config.log
11462 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11463 # would make configure fail if this is the last instruction.
f11781c5 11464 $ac_cs_success || as_fn_exit 1
ad6254c5 11465fi
ec6a6fbe 11466if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11468$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11469fi
795ca3e5 11470
2dc95e1c
AK
11471
11472if test x$ODIRECT != xyes; then
f11781c5 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11474$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11475fi
This page took 1.753168 seconds and 5 git commands to generate.