]> sourceware.org Git - lvm2.git/blame - configure
In the new corosync world, dlm is a standalone service.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 443
f11781c5
AK
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
6e5c1f75 606DMEVENTD_PIDFILE
23b059e7 607WRITE_INSTALL
0878503f 608UDEV_SYNC
a5f46f6a 609UDEV_RULES
f7f0854e 610UDEV_PC
3ba4a195 611THIN
54b362f9 612TESTING
ec6a6fbe
AK
613STATIC_LINK
614STATICDIR
615SNAPSHOTS
f7f0854e 616SELINUX_PC
e1b8a236 617SELINUX_LIBS
cac52ca4 618REPLICATORS
539f4a77 619READLINE_LIBS
cac52ca4 620RAID
f30875db 621PTHREAD_LIBS
ec6a6fbe
AK
622POOL
623PKGCONFIG
606d0858 624OCFDIR
37ddf259 625OCF
ec6a6fbe
AK
626MIRRORS
627LVM_RELEASE_DATE
628LVM_RELEASE
d2c11605 629LVM_PATH
ec6a6fbe
AK
630LVM_PATCHLEVEL
631LVM_MINOR
632LVM_MAJOR
bf456146 633LVM_LIBAPI
ec6a6fbe 634LVM_VERSION
ec6a6fbe
AK
635LVM1_FALLBACK
636LVM1
637LOCALEDIR
638LIB_SUFFIX
639LDDEPS
640JOBS
641INTL_PACKAGE
642INTL
ec6a6fbe
AK
643HAVE_REALTIME
644HAVE_LIBDL
ec6a6fbe 645FSADM
bf09a320 646ELDFLAGS
ec6a6fbe
AK
647DM_LIB_PATCHLEVEL
648DM_LIB_VERSION
649DM_IOCTLS
650DM_DEVICE_UID
651DM_DEVICE_MODE
652DM_DEVICE_GID
653DM_COMPAT
d1e8046f 654DMEVENTD_PATH
ec6a6fbe 655DMEVENTD
19a2c6e0 656DL_LIBS
ec6a6fbe 657DEVMAPPER
b1f08e51 658DEFAULT_RUN_DIR
3399ae32 659DEFAULT_LOCK_DIR
fea55602 660DEFAULT_DATA_ALIGNMENT
3399ae32
AK
661DEFAULT_CACHE_SUBDIR
662DEFAULT_BACKUP_SUBDIR
663DEFAULT_ARCHIVE_SUBDIR
664DEFAULT_SYS_DIR
ec6a6fbe
AK
665DEBUG
666COPTIMISE_FLAG
e2997b73 667CONFDIR
ec6a6fbe 668CMDLIB
d2c11605 669CLVMD_PATH
c89bc357 670CLVMD_CMANAGERS
ec6a6fbe
AK
671CLVMD
672CLUSTER
673CLDWHOLEARCHIVE
674CLDNOWHOLEARCHIVE
675CLDFLAGS
cdd50823 676BUILD_LVMETAD
ec6a6fbe 677BUILD_DMEVENTD
66fd4529 678BUILD_CMIRRORD
572fefeb 679APPLIB
ec6a6fbe
AK
680MODPROBE_CMD
681MSGFMT
682LVM2CMD_LIB
572fefeb 683LVM2APP_LIB
d93275eb
PR
684UDEV_LIBS
685UDEV_CFLAGS
426fc742
PR
686CUNIT_LIBS
687CUNIT_CFLAGS
fd4728e1 688GENPNG
ec6a6fbe
AK
689GENHTML
690LCOV
90c80887
AK
691SACKPT_LIBS
692SACKPT_CFLAGS
a946372e
AK
693DLM_LIBS
694DLM_CFLAGS
e2997b73
AK
695CPG_LIBS
696CPG_CFLAGS
b6d7a484
AK
697CMAP_LIBS
698CMAP_CFLAGS
e2997b73
AK
699CONFDB_LIBS
700CONFDB_CFLAGS
a946372e
AK
701SALCK_LIBS
702SALCK_CFLAGS
e2997b73
AK
703QUORUM_LIBS
704QUORUM_CFLAGS
a946372e
AK
705COROSYNC_LIBS
706COROSYNC_CFLAGS
707CMAN_LIBS
708CMAN_CFLAGS
a946372e
AK
709PKGCONFIGINIT_LIBS
710PKGCONFIGINIT_CFLAGS
f11781c5
AK
711PKG_CONFIG_LIBDIR
712PKG_CONFIG_PATH
e2997b73 713PKG_CONFIG
ec6a6fbe
AK
714POW_LIB
715LIBOBJS
716ALLOCA
717CSCOPE_CMD
718CFLOW_CMD
719RANLIB
720MKDIR_P
721SET_MAKE
722LN_S
723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726EGREP
727GREP
728CPP
729OBJEXT
730EXEEXT
731ac_ct_CC
732CPPFLAGS
733LDFLAGS
734CFLAGS
735CC
736AWK
737SED
738target_os
739target_vendor
740target_cpu
741target
742host_os
743host_vendor
744host_cpu
745host
746build_os
747build_vendor
748build_cpu
749build
750target_alias
751host_alias
752build_alias
753LIBS
754ECHO_T
755ECHO_N
756ECHO_C
757DEFS
758mandir
759localedir
760libdir
761psdir
762pdfdir
763dvidir
764htmldir
765infodir
766docdir
767oldincludedir
768includedir
769localstatedir
770sharedstatedir
771sysconfdir
772datadir
773datarootdir
774libexecdir
775sbindir
776bindir
777program_transform_name
778prefix
779exec_prefix
f11781c5 780PACKAGE_URL
ec6a6fbe
AK
781PACKAGE_BUGREPORT
782PACKAGE_STRING
783PACKAGE_VERSION
784PACKAGE_TARNAME
785PACKAGE_NAME
786PATH_SEPARATOR
787SHELL'
ad6254c5 788ac_subst_files=''
ec6a6fbe
AK
789ac_user_opts='
790enable_option_checking
791enable_static_link
792with_user
793with_group
794with_device_uid
795with_device_gid
796with_device_mode
d0df875d 797with_device_nodes_on
ec6a6fbe
AK
798enable_lvm1_fallback
799with_lvm1
800with_pool
801with_cluster
802with_snapshots
803with_mirrors
cac52ca4 804with_raid
8fea97b7 805with_replicators
3ba4a195 806with_thin
ec6a6fbe
AK
807enable_readline
808enable_realtime
37ddf259 809enable_ocf
606d0858 810with_ocfdir
ec6a6fbe 811with_clvmd
8c4e8a18 812with_clvmd_pidfile
66fd4529
AK
813enable_cmirrord
814with_cmirrord_pidfile
ec6a6fbe
AK
815enable_debug
816with_optimisation
817enable_profiling
54b362f9 818enable_testing
d1e8046f 819enable_valgrind_pool
ec6a6fbe 820enable_devmapper
cdd50823 821enable_lvmetad
a5f46f6a
AK
822enable_udev_sync
823enable_udev_rules
ec6a6fbe 824enable_compat
95eaa683 825enable_units_compat
ec6a6fbe
AK
826enable_ioctl
827enable_o_direct
572fefeb 828enable_applib
ec6a6fbe
AK
829enable_cmdlib
830enable_pkgconfig
23b059e7 831enable_write_install
ec6a6fbe
AK
832enable_fsadm
833enable_dmeventd
834enable_selinux
835enable_nls
836with_localedir
837with_confdir
838with_staticdir
839with_usrlibdir
840with_usrsbindir
a5f46f6a 841with_udev_prefix
78ce7acc 842with_udevdir
ec6a6fbe
AK
843with_dmeventd_pidfile
844with_dmeventd_path
8bae0a1e 845with_default_run_dir
3399ae32
AK
846with_default_system_dir
847with_default_archive_subdir
848with_default_backup_subdir
849with_default_cache_subdir
850with_default_locking_dir
fea55602 851with_default_data_alignment
ec6a6fbe
AK
852with_interface
853'
7a197a62
AK
854 ac_precious_vars='build_alias
855host_alias
856target_alias
857CC
858CFLAGS
859LDFLAGS
25fbec5b 860LIBS
7a197a62 861CPPFLAGS
e2997b73
AK
862CPP
863PKG_CONFIG
f11781c5
AK
864PKG_CONFIG_PATH
865PKG_CONFIG_LIBDIR
a946372e
AK
866PKGCONFIGINIT_CFLAGS
867PKGCONFIGINIT_LIBS
a946372e
AK
868CMAN_CFLAGS
869CMAN_LIBS
870COROSYNC_CFLAGS
871COROSYNC_LIBS
e2997b73
AK
872QUORUM_CFLAGS
873QUORUM_LIBS
a946372e
AK
874SALCK_CFLAGS
875SALCK_LIBS
e2997b73
AK
876CONFDB_CFLAGS
877CONFDB_LIBS
b6d7a484
AK
878CMAP_CFLAGS
879CMAP_LIBS
e2997b73 880CPG_CFLAGS
a946372e
AK
881CPG_LIBS
882DLM_CFLAGS
90c80887
AK
883DLM_LIBS
884SACKPT_CFLAGS
d93275eb 885SACKPT_LIBS
426fc742
PR
886CUNIT_CFLAGS
887CUNIT_LIBS
d93275eb
PR
888UDEV_CFLAGS
889UDEV_LIBS'
7a197a62 890
795ca3e5
AK
891
892# Initialize some variables set by options.
ad6254c5
AK
893ac_init_help=
894ac_init_version=false
ec6a6fbe
AK
895ac_unrecognized_opts=
896ac_unrecognized_sep=
795ca3e5
AK
897# The variables have the same names as the options, with
898# dashes changed to underlines.
ad6254c5 899cache_file=/dev/null
795ca3e5 900exec_prefix=NONE
795ca3e5 901no_create=
795ca3e5
AK
902no_recursion=
903prefix=NONE
904program_prefix=NONE
905program_suffix=NONE
906program_transform_name=s,x,x,
907silent=
908site=
909srcdir=
795ca3e5
AK
910verbose=
911x_includes=NONE
912x_libraries=NONE
ad6254c5
AK
913
914# Installation directory options.
915# These are left unexpanded so users can "make install exec_prefix=/foo"
916# and all the variables that are supposed to be based on exec_prefix
917# by default will actually change.
918# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 919# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
920bindir='${exec_prefix}/bin'
921sbindir='${exec_prefix}/sbin'
922libexecdir='${exec_prefix}/libexec'
7a197a62
AK
923datarootdir='${prefix}/share'
924datadir='${datarootdir}'
795ca3e5
AK
925sysconfdir='${prefix}/etc'
926sharedstatedir='${prefix}/com'
927localstatedir='${prefix}/var'
795ca3e5
AK
928includedir='${prefix}/include'
929oldincludedir='/usr/include'
7a197a62
AK
930docdir='${datarootdir}/doc/${PACKAGE}'
931infodir='${datarootdir}/info'
932htmldir='${docdir}'
933dvidir='${docdir}'
934pdfdir='${docdir}'
935psdir='${docdir}'
936libdir='${exec_prefix}/lib'
937localedir='${datarootdir}/locale'
938mandir='${datarootdir}/man'
795ca3e5 939
795ca3e5 940ac_prev=
7a197a62 941ac_dashdash=
795ca3e5
AK
942for ac_option
943do
795ca3e5
AK
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
7a197a62 946 eval $ac_prev=\$ac_option
795ca3e5
AK
947 ac_prev=
948 continue
949 fi
950
7a197a62
AK
951 case $ac_option in
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *) ac_optarg=yes ;;
954 esac
795ca3e5
AK
955
956 # Accept the important Cygnus configure options, so we can diagnose typos.
957
7a197a62
AK
958 case $ac_dashdash$ac_option in
959 --)
960 ac_dashdash=yes ;;
795ca3e5
AK
961
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 965 bindir=$ac_optarg ;;
795ca3e5
AK
966
967 -build | --build | --buil | --bui | --bu)
ad6254c5 968 ac_prev=build_alias ;;
795ca3e5 969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 970 build_alias=$ac_optarg ;;
795ca3e5
AK
971
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
977 cache_file=$ac_optarg ;;
978
979 --config-cache | -C)
980 cache_file=config.cache ;;
795ca3e5 981
7a197a62 982 -datadir | --datadir | --datadi | --datad)
795ca3e5 983 ac_prev=datadir ;;
7a197a62 984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 985 datadir=$ac_optarg ;;
795ca3e5 986
7a197a62
AK
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
993
795ca3e5 994 -disable-* | --disable-*)
ec6a6fbe 995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 996 # Reject names that are not valid shell variable names.
ec6a6fbe 997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 998 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003"enable_$ac_useropt"
1004"*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
7a197a62
AK
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
795ca3e5
AK
1019
1020 -enable-* | --enable-*)
ec6a6fbe 1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1022 # Reject names that are not valid shell variable names.
ec6a6fbe 1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1024 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029"enable_$ac_useropt"
1030"*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
ad6254c5 1043 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
ad6254c5
AK
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
795ca3e5
AK
1055
1056 -host | --host | --hos | --ho)
ad6254c5 1057 ac_prev=host_alias ;;
795ca3e5 1058 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1059 host_alias=$ac_optarg ;;
795ca3e5 1060
7a197a62
AK
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
795ca3e5
AK
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1072 includedir=$ac_optarg ;;
795ca3e5
AK
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1077 infodir=$ac_optarg ;;
795ca3e5
AK
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1082 libdir=$ac_optarg ;;
795ca3e5
AK
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1089 libexecdir=$ac_optarg ;;
795ca3e5 1090
7a197a62
AK
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
795ca3e5 1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1097 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1101 localstatedir=$ac_optarg ;;
795ca3e5
AK
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1106 mandir=$ac_optarg ;;
795ca3e5
AK
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1113 | --no-cr | --no-c | -n)
795ca3e5
AK
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1127 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1132 prefix=$ac_optarg ;;
795ca3e5
AK
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1139 program_prefix=$ac_optarg ;;
795ca3e5
AK
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1146 program_suffix=$ac_optarg ;;
795ca3e5
AK
1147
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)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1163 program_transform_name=$ac_optarg ;;
795ca3e5 1164
7a197a62
AK
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
795ca3e5
AK
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
ad6254c5 1183 sbindir=$ac_optarg ;;
795ca3e5
AK
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
ad6254c5 1194 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
ad6254c5 1199 site=$ac_optarg ;;
795ca3e5
AK
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1204 srcdir=$ac_optarg ;;
795ca3e5
AK
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1211 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1214 ac_prev=target_alias ;;
795ca3e5 1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1216 target_alias=$ac_optarg ;;
795ca3e5
AK
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
ad6254c5
AK
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
795ca3e5
AK
1223
1224 -with-* | --with-*)
ec6a6fbe 1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1226 # Reject names that are not valid shell variable names.
ec6a6fbe 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1228 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233"with_$ac_useropt"
1234"*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1239
1240 -without-* | --without-*)
ec6a6fbe 1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1242 # Reject names that are not valid shell variable names.
ec6a6fbe 1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1244 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249"with_$ac_useropt"
1250"*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
795ca3e5
AK
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1265 x_includes=$ac_optarg ;;
795ca3e5
AK
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1272 x_libraries=$ac_optarg ;;
795ca3e5 1273
f11781c5
AK
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275Try \`$0 --help' for more information"
795ca3e5
AK
1276 ;;
1277
ad6254c5
AK
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
f11781c5
AK
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
7a197a62 1285 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1286 export $ac_envvar ;;
1287
795ca3e5 1288 *)
ad6254c5 1289 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1294 ;;
1295
1296 esac
1297done
1298
1299if test -n "$ac_prev"; then
ad6254c5 1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1301 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1302fi
795ca3e5 1303
ec6a6fbe
AK
1304if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
f11781c5 1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310fi
1311
1312# Check all directory arguments for consistency.
7a197a62
AK
1313for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
795ca3e5 1317do
7a197a62 1318 eval ac_val=\$$ac_var
ec6a6fbe
AK
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
ad6254c5 1326 case $ac_val in
7a197a62
AK
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1329 esac
f11781c5 1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1331done
1332
ad6254c5
AK
1333# There might be people who depend on the old broken behavior: `$host'
1334# used to hold the argument of --host etc.
1335# FIXME: To remove some day.
1336build=$build_alias
1337host=$host_alias
1338target=$target_alias
1339
1340# FIXME: To remove some day.
1341if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
f11781c5
AK
1344 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1345 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1346 elif test "x$build_alias" != "x$host_alias"; then
1347 cross_compiling=yes
1348 fi
1349fi
8106cdd5 1350
ad6254c5
AK
1351ac_tool_prefix=
1352test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353
1354test "$silent" = yes && exec 6>/dev/null
795ca3e5 1355
795ca3e5 1356
7a197a62
AK
1357ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358ac_ls_di=`ls -di .` &&
1359ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1360 as_fn_error $? "working directory cannot be determined"
7a197a62 1361test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1362 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1363
1364
795ca3e5
AK
1365# Find the source files, if location was not specified.
1366if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
7a197a62 1368 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1369 ac_confdir=`$as_dirname -- "$as_myself" ||
1370$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
1372 X"$as_myself" : 'X\(//\)$' \| \
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374$as_echo X"$as_myself" |
7a197a62
AK
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\).*/{
1388 s//\1/
1389 q
1390 }
1391 s/.*/./; q'`
795ca3e5 1392 srcdir=$ac_confdir
7a197a62 1393 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1394 srcdir=..
1395 fi
1396else
1397 ac_srcdir_defaulted=no
1398fi
7a197a62
AK
1399if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1402fi
7a197a62
AK
1403ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404ac_abs_confdir=`(
f11781c5 1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1406 pwd)`
1407# When building in place, set srcdir=.
1408if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 srcdir=.
1410fi
1411# Remove unnecessary trailing slashes from srcdir.
1412# Double slashes in file names in object file debugging info
1413# mess up M-x gdb in Emacs.
1414case $srcdir in
1415*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416esac
1417for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422done
ad6254c5
AK
1423
1424#
1425# Report the --help message.
1426#
1427if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431\`configure' configures this package to adapt to many kinds of systems.
1432
1433Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438Defaults for the options are specified in brackets.
1439
1440Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
f11781c5 1445 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
ad6254c5
AK
1451Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1453 [$ac_default_prefix]
ad6254c5 1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1455 [PREFIX]
ad6254c5
AK
1456
1457By default, \`make install' will install all the files in
1458\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460for instance \`--prefix=\$HOME'.
1461
1462For better control, use the options below.
1463
1464Fine tuning of the installation directories:
ec6a6fbe
AK
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1484_ACEOF
1485
1486 cat <<\_ACEOF
1487
1488System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 --target=TARGET configure for building compilers for TARGET [HOST]
1492_ACEOF
1493fi
1494
1495if test -n "$ac_init_help"; then
1496
1497 cat <<\_ACEOF
1498
1499Optional Features:
ec6a6fbe 1500 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1503 --enable-static_link use this to link the tools to their libraries
1504 statically (default is dynamic linking
1505 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1506 device-mapper is missing from the kernel
71082be4
ZK
1507 --disable-readline disable readline support
1508 --enable-realtime enable realtime clock support
37ddf259
AK
1509 --enable-ocf enable Open Cluster Framework (OCF) compliant
1510 resource agents
71082be4
ZK
1511 --enable-cmirrord enable the cluster mirror log daemon
1512 --enable-debug enable debugging
1513 --enable-profiling gather gcov profiling data
54b362f9 1514 --enable-testing enable testing targets in the makefile
d1e8046f 1515 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1516 --disable-devmapper disable LVM2 device-mapper interaction
d38de32b 1517 --enable-lvmetad enable the LVM Metadata Daemon
71082be4
ZK
1518 --enable-udev_sync enable synchronisation with udev processing
1519 --enable-udev_rules install rule files needed for udev synchronisation
1520 --enable-compat enable support for old device-mapper versions
1521 --enable-units-compat enable output compatibility with old versions that
1522 that do not use KiB-style unit suffixes
1523 --disable-driver disable calls to device-mapper in the kernel
1524 --disable-o_direct disable O_DIRECT
1525 --enable-applib build application library
1526 --enable-cmdlib build shared command library
1527 --enable-pkgconfig install pkgconfig support
1528 --enable-write_install install user writable files
1529 --disable-fsadm disable fsadm
1530 --enable-dmeventd enable the device-mapper event daemon
1531 --disable-selinux disable selinux support
1532 --enable-nls enable Native Language Support
ad6254c5
AK
1533
1534Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1537 --with-user=USER set the owner of installed files [[USER=]]
1538 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1539 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1540 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1541 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1542 --with-device-nodes-on=ON
1543 create nodes on resume or create [[ON=resume]]
ad6254c5 1544 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1545 [[TYPE=internal]]
ad6254c5 1546 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1547 [[TYPE=internal]]
71082be4 1548 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1549 [[TYPE=internal]]
71082be4 1550 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1551 [[TYPE=internal]]
71082be4 1552 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1553 [[TYPE=internal]]
cac52ca4
JEB
1554 --with-raid=TYPE mirror support: internal/shared/none
1555 [[TYPE=internal]]
71082be4 1556 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1557 [[TYPE=none]]
3ba4a195
ZK
1558 --with-thin=TYPE thin provisioning support: internal/shared/none
1559 [[TYPE=none]]
606d0858
AK
1560 --with-ocfdir=DIR install OCF files in DIR
1561 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1562 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1563 The following cluster manager combinations are valid:
a946372e
AK
1564 * cman (RHEL5 or equivalent)
1565 * cman,corosync,openais (or selection of them)
1091650a 1566 * singlenode (localhost only)
a946372e
AK
1567 * all (autodetect)
1568 * none (disable build)
71082be4 1569 [TYPE=none]
8c4e8a18 1570 --with-clvmd-pidfile=PATH
f11781c5 1571 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1572 --with-cmirrord-pidfile=PATH
f11781c5
AK
1573 cmirrord pidfile [[/var/run/cmirrord.pid]]
1574 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1575 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1576 --with-confdir=DIR configuration files in DIR [[/etc]]
1577 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1578 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1579 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1580 --with-udev-prefix=UPREFIX
f11781c5
AK
1581 install udev rule files in UPREFIX [[EPREFIX]]
1582 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1583 --with-dmeventd-pidfile=PATH
f11781c5 1584 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1585 --with-dmeventd-path=PATH
f11781c5 1586 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1587 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1588 --with-default-system-dir=DIR
f11781c5 1589 default LVM system directory [[/etc/lvm]]
71082be4 1590 --with-default-archive-subdir=SUBDIR
f11781c5 1591 default metadata archive subdir [[archive]]
71082be4 1592 --with-default-backup-subdir=SUBDIR
f11781c5 1593 default metadata backup subdir [[backup]]
71082be4 1594 --with-default-cache-subdir=SUBDIR
f11781c5 1595 default metadata cache subdir [[cache]]
71082be4 1596 --with-default-locking-dir=DIR
f11781c5 1597 default locking directory [[/var/lock/lvm]]
fea55602 1598 --with-default-data-alignment=NUM
f11781c5
AK
1599 set the default data alignment in MiB [[1]]
1600 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1601
1602Some influential environment variables:
1603 CC C compiler command
1604 CFLAGS C compiler flags
1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1606 nonstandard directory <lib dir>
25fbec5b 1607 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1609 you have headers in a nonstandard directory <include dir>
ad6254c5 1610 CPP C preprocessor
e2997b73 1611 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1612 PKG_CONFIG_PATH
1613 directories to add to pkg-config's search path
1614 PKG_CONFIG_LIBDIR
1615 path overriding pkg-config's built-in search path
a946372e
AK
1616 PKGCONFIGINIT_CFLAGS
1617 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1618 PKGCONFIGINIT_LIBS
1619 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1620 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1621 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1622 COROSYNC_CFLAGS
1623 C compiler flags for COROSYNC, overriding pkg-config
1624 COROSYNC_LIBS
1625 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1626 QUORUM_CFLAGS
1627 C compiler flags for QUORUM, overriding pkg-config
1628 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1629 SALCK_CFLAGS
1630 C compiler flags for SALCK, overriding pkg-config
1631 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1632 CONFDB_CFLAGS
1633 C compiler flags for CONFDB, overriding pkg-config
1634 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
b6d7a484
AK
1635 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1636 CMAP_LIBS linker flags for CMAP, overriding pkg-config
e2997b73
AK
1637 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1638 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1639 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1640 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1641 SACKPT_CFLAGS
1642 C compiler flags for SACKPT, overriding pkg-config
1643 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
426fc742
PR
1644 CUNIT_CFLAGS
1645 C compiler flags for CUNIT, overriding pkg-config
1646 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
d93275eb
PR
1647 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1648 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1649
1650Use these variables to override the choices made by `configure' or to help
1651it to find libraries and programs with nonstandard names/locations.
1652
f11781c5 1653Report bugs to the package provider.
ad6254c5 1654_ACEOF
7a197a62 1655ac_status=$?
ad6254c5
AK
1656fi
1657
1658if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
ad6254c5 1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663 continue
ad6254c5
AK
1664 ac_builddir=.
1665
7a197a62
AK
1666case "$ac_dir" in
1667.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668*)
ec6a6fbe 1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1670 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 esac ;;
1676esac
1677ac_abs_top_builddir=$ac_pwd
1678ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679# for backward compatibility:
1680ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1681
1682case $srcdir in
7a197a62 1683 .) # We are building in place.
ad6254c5 1684 ac_srcdir=.
7a197a62
AK
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1688 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1691 *) # Relative name.
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1695esac
7a197a62
AK
1696ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1706 else
ec6a6fbe 1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1708 fi || ac_status=$?
1709 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1710 done
1711fi
1712
7a197a62 1713test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1714if $ac_init_version; then
1715 cat <<\_ACEOF
7a197a62 1716configure
f11781c5 1717generated by GNU Autoconf 2.66
ad6254c5 1718
f11781c5 1719Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1720This configure script is free software; the Free Software Foundation
1721gives unlimited permission to copy, distribute and modify it.
1722_ACEOF
7a197a62 1723 exit
ad6254c5 1724fi
ad6254c5 1725
f11781c5
AK
1726## ------------------------ ##
1727## Autoconf initialization. ##
1728## ------------------------ ##
ad6254c5 1729
f11781c5
AK
1730# ac_fn_c_try_compile LINENO
1731# --------------------------
1732# Try to compile conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_c_try_compile ()
ad6254c5 1734{
f11781c5
AK
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1760
f11781c5
AK
1761 ac_retval=1
1762fi
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 as_fn_set_status $ac_retval
ad6254c5 1765
f11781c5 1766} # ac_fn_c_try_compile
ad6254c5 1767
f11781c5
AK
1768# ac_fn_c_try_cpp LINENO
1769# ----------------------
1770# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_c_try_cpp ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_cpp conftest.$ac_ext"
1775case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } >/dev/null && {
1790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 }; then :
1793 ac_retval=0
1794else
1795 $as_echo "$as_me: failed program was:" >&5
1796sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1797
f11781c5
AK
1798 ac_retval=1
1799fi
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
ad6254c5 1802
f11781c5 1803} # ac_fn_c_try_cpp
d911ec67 1804
f11781c5
AK
1805# ac_fn_c_try_link LINENO
1806# -----------------------
1807# Try to link conftest.$ac_ext, and return whether this succeeded.
1808ac_fn_c_try_link ()
d911ec67 1809{
f11781c5
AK
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
d911ec67
AK
1813case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816esac
f11781c5
AK
1817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818$as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
d911ec67 1820 ac_status=$?
f11781c5
AK
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 $as_test_x conftest$ac_exeext
1833 }; then :
1834 ac_retval=0
d911ec67 1835else
f11781c5 1836 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
f11781c5 1839 ac_retval=1
d911ec67 1840fi
f11781c5
AK
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 as_fn_set_status $ac_retval
d911ec67 1848
f11781c5 1849} # ac_fn_c_try_link
d911ec67 1850
f11781c5
AK
1851# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852# -------------------------------------------------------
1853# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854# the include files in INCLUDES and setting the cache variable VAR
1855# accordingly.
1856ac_fn_c_check_header_mongrel ()
1857{
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if eval "test \"\${$3+set}\"" = set; then :
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
1862if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1863 $as_echo_n "(cached) " >&6
1864fi
f11781c5
AK
1865eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1867$as_echo "$ac_res" >&6; }
1868else
1869 # Is the header compilable?
f11781c5
AK
1870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871$as_echo_n "checking $2 usability... " >&6; }
1872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1873/* end confdefs.h. */
f11781c5
AK
1874$4
1875#include <$2>
d911ec67 1876_ACEOF
f11781c5 1877if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1878 ac_header_compiler=yes
1879else
f11781c5 1880 ac_header_compiler=no
d911ec67 1881fi
d911ec67 1882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1884$as_echo "$ac_header_compiler" >&6; }
1885
1886# Is the header present?
f11781c5
AK
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888$as_echo_n "checking $2 presence... " >&6; }
1889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1890/* end confdefs.h. */
f11781c5 1891#include <$2>
d911ec67 1892_ACEOF
f11781c5 1893if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1894 ac_header_preproc=yes
1895else
d911ec67
AK
1896 ac_header_preproc=no
1897fi
d911ec67 1898rm -f conftest.err conftest.$ac_ext
f11781c5 1899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1900$as_echo "$ac_header_preproc" >&6; }
1901
1902# So? What about this header?
f11781c5 1903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1904 yes:no: )
f11781c5
AK
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1909 ;;
1910 no:yes:* )
f11781c5
AK
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1914$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1918$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1921 ;;
1922esac
f11781c5
AK
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924$as_echo_n "checking for $2... " >&6; }
1925if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1926 $as_echo_n "(cached) " >&6
1927else
f11781c5 1928 eval "$3=\$ac_header_compiler"
d911ec67 1929fi
f11781c5
AK
1930eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1932$as_echo "$ac_res" >&6; }
ad6254c5 1933fi
f11781c5 1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1935
f11781c5 1936} # ac_fn_c_check_header_mongrel
ad6254c5 1937
f11781c5
AK
1938# ac_fn_c_try_run LINENO
1939# ----------------------
1940# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941# that executables *can* be run.
1942ac_fn_c_try_run ()
ad6254c5 1943{
f11781c5
AK
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_link"
7a197a62
AK
1946case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949esac
f11781c5
AK
1950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951$as_echo "$ac_try_echo"; } >&5
7a197a62 1952 (eval "$ac_link") 2>&5
ad6254c5 1953 ac_status=$?
f11781c5
AK
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956 { { case "(($ac_try" in
7a197a62
AK
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959esac
f11781c5
AK
1960eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961$as_echo "$ac_try_echo"; } >&5
7a197a62 1962 (eval "$ac_try") 2>&5
ad6254c5 1963 ac_status=$?
f11781c5
AK
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; }; }; then :
1966 ac_retval=0
ad6254c5 1967else
ec6a6fbe 1968 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1969 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1970sed 's/^/| /' conftest.$ac_ext >&5
1971
f11781c5 1972 ac_retval=$ac_status
ad6254c5 1973fi
f11781c5
AK
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 as_fn_set_status $ac_retval
ad6254c5 1977
f11781c5 1978} # ac_fn_c_try_run
ad6254c5 1979
f11781c5
AK
1980# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981# -------------------------------------------------------
1982# Tests whether HEADER exists and can be compiled using the include files in
1983# INCLUDES, setting the cache variable VAR accordingly.
1984ac_fn_c_check_header_compile ()
1985{
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1990 $as_echo_n "(cached) " >&6
ad6254c5 1991else
f11781c5 1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1993/* end confdefs.h. */
f11781c5
AK
1994$4
1995#include <$2>
ad6254c5 1996_ACEOF
f11781c5
AK
1997if ac_fn_c_try_compile "$LINENO"; then :
1998 eval "$3=yes"
ad6254c5 1999else
f11781c5 2000 eval "$3=no"
ad6254c5 2001fi
7a197a62 2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2003fi
f11781c5
AK
2004eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2006$as_echo "$ac_res" >&6; }
f11781c5 2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2008
f11781c5 2009} # ac_fn_c_check_header_compile
ad6254c5 2010
f11781c5
AK
2011# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2012# ----------------------------------------------------
2013# Tries to find if the field MEMBER exists in type AGGR, after including
2014# INCLUDES, setting cache variable VAR accordingly.
2015ac_fn_c_check_member ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2019$as_echo_n "checking for $2.$3... " >&6; }
2020if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2021 $as_echo_n "(cached) " >&6
795ca3e5 2022else
f11781c5
AK
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$5
2026int
2027main ()
2028{
2029static $2 ac_aggr;
2030if (ac_aggr.$3)
2031return 0;
2032 ;
2033 return 0;
2034}
ad6254c5 2035_ACEOF
f11781c5
AK
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2040/* end confdefs.h. */
f11781c5
AK
2041$5
2042int
2043main ()
2044{
2045static $2 ac_aggr;
2046if (sizeof ac_aggr.$3)
2047return 0;
2048 ;
2049 return 0;
2050}
2051_ACEOF
2052if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$4=yes"
2054else
2055 eval "$4=no"
2056fi
2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058fi
2059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060fi
2061eval ac_res=\$$4
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063$as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065
2066} # ac_fn_c_check_member
795ca3e5 2067
f11781c5
AK
2068# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2069# -------------------------------------------
2070# Tests whether TYPE exists after having included INCLUDES, setting cache
2071# variable VAR accordingly.
2072ac_fn_c_check_type ()
2073{
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076$as_echo_n "checking for $2... " >&6; }
2077if eval "test \"\${$3+set}\"" = set; then :
2078 $as_echo_n "(cached) " >&6
2079else
2080 eval "$3=no"
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
ad6254c5
AK
2084int
2085main ()
2086{
f11781c5
AK
2087if (sizeof ($2))
2088 return 0;
ad6254c5
AK
2089 ;
2090 return 0;
2091}
2092_ACEOF
f11781c5
AK
2093if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100if (sizeof (($2)))
2101 return 0;
2102 ;
2103 return 0;
2104}
2105_ACEOF
2106if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2107
f11781c5
AK
2108else
2109 eval "$3=yes"
795ca3e5 2110fi
f11781c5
AK
2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2114fi
f11781c5
AK
2115eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2117$as_echo "$ac_res" >&6; }
f11781c5 2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2119
f11781c5 2120} # ac_fn_c_check_type
ad6254c5 2121
f11781c5
AK
2122# ac_fn_c_find_intX_t LINENO BITS VAR
2123# -----------------------------------
2124# Finds a signed integer type with width BITS, setting cache variable VAR
2125# accordingly.
2126ac_fn_c_find_intX_t ()
2127{
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2130$as_echo_n "checking for int$2_t... " >&6; }
2131if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2132 $as_echo_n "(cached) " >&6
ad6254c5 2133else
f11781c5
AK
2134 eval "$3=no"
2135 # Order is important - never check a type that is potentially smaller
2136 # than half of the expected target width.
2137 for ac_type in int$2_t 'int' 'long int' \
2138 'long long int' 'short int' 'signed char'; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2140/* end confdefs.h. */
2141$ac_includes_default
f11781c5 2142 enum { N = $2 / 2 - 1 };
7a197a62
AK
2143int
2144main ()
2145{
f11781c5
AK
2146static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2147test_array [0] = 0
7a197a62 2148
f11781c5
AK
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h. */
2156$ac_includes_default
2157 enum { N = $2 / 2 - 1 };
2158int
2159main ()
2160{
2161static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2162 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2163test_array [0] = 0
7a197a62
AK
2164
2165 ;
2166 return 0;
2167}
ad6254c5 2168_ACEOF
f11781c5 2169if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2170
f11781c5
AK
2171else
2172 case $ac_type in #(
2173 int$2_t) :
2174 eval "$3=yes" ;; #(
2175 *) :
2176 eval "$3=\$ac_type" ;;
2177esac
ad6254c5 2178fi
f11781c5 2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2180fi
f11781c5
AK
2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2183
2184else
f11781c5 2185 break
ad6254c5 2186fi
f11781c5 2187 done
ad6254c5 2188fi
f11781c5
AK
2189eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191$as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193
2194} # ac_fn_c_find_intX_t
2195
2196# ac_fn_c_find_uintX_t LINENO BITS VAR
2197# ------------------------------------
2198# Finds an unsigned integer type with width BITS, setting cache variable VAR
2199# accordingly.
2200ac_fn_c_find_uintX_t ()
2201{
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2204$as_echo_n "checking for uint$2_t... " >&6; }
2205if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2206 $as_echo_n "(cached) " >&6
ad6254c5 2207else
f11781c5
AK
2208 eval "$3=no"
2209 # Order is important - never check a type that is potentially smaller
2210 # than half of the expected target width.
2211 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2212 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2214/* end confdefs.h. */
7a197a62 2215$ac_includes_default
ad6254c5
AK
2216int
2217main ()
2218{
f11781c5
AK
2219static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2220test_array [0] = 0
ad6254c5 2221
f11781c5
AK
2222 ;
2223 return 0;
ad6254c5
AK
2224}
2225_ACEOF
f11781c5
AK
2226if ac_fn_c_try_compile "$LINENO"; then :
2227 case $ac_type in #(
2228 uint$2_t) :
2229 eval "$3=yes" ;; #(
2230 *) :
2231 eval "$3=\$ac_type" ;;
7a197a62 2232esac
ad6254c5 2233fi
f11781c5
AK
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2236
f11781c5
AK
2237else
2238 break
ad6254c5 2239fi
f11781c5 2240 done
ad6254c5 2241fi
f11781c5
AK
2242eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244$as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2246
f11781c5 2247} # ac_fn_c_find_uintX_t
ad6254c5 2248
f11781c5
AK
2249# ac_fn_c_check_func LINENO FUNC VAR
2250# ----------------------------------
2251# Tests whether FUNC exists, setting the cache variable VAR accordingly
2252ac_fn_c_check_func ()
2253{
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256$as_echo_n "checking for $2... " >&6; }
2257if eval "test \"\${$3+set}\"" = set; then :
2258 $as_echo_n "(cached) " >&6
ad6254c5 2259else
f11781c5
AK
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h. */
2262/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2264#define $2 innocuous_$2
ad6254c5 2265
f11781c5
AK
2266/* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char $2 (); below.
2268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2269 <limits.h> exists even on freestanding compilers. */
ad6254c5 2270
f11781c5
AK
2271#ifdef __STDC__
2272# include <limits.h>
2273#else
2274# include <assert.h>
2275#endif
ad6254c5 2276
f11781c5
AK
2277#undef $2
2278
2279/* Override any GCC internal prototype to avoid an error.
2280 Use char because int might match the return type of a GCC
2281 builtin and then its argument prototype would still apply. */
2282#ifdef __cplusplus
2283extern "C"
2284#endif
2285char $2 ();
2286/* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289#if defined __stub_$2 || defined __stub___$2
2290choke me
2291#endif
ad6254c5 2292
ad6254c5
AK
2293int
2294main ()
2295{
f11781c5 2296return $2 ();
ad6254c5
AK
2297 ;
2298 return 0;
2299}
2300_ACEOF
f11781c5
AK
2301if ac_fn_c_try_link "$LINENO"; then :
2302 eval "$3=yes"
ad6254c5 2303else
f11781c5 2304 eval "$3=no"
ad6254c5 2305fi
f11781c5
AK
2306rm -f core conftest.err conftest.$ac_objext \
2307 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2308fi
f11781c5
AK
2309eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311$as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2313
f11781c5
AK
2314} # ac_fn_c_check_func
2315cat >config.log <<_ACEOF
2316This file contains any messages produced by compilers while
2317running configure, to aid debugging if configure makes a mistake.
7a197a62 2318
f11781c5
AK
2319It was created by $as_me, which was
2320generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2321
f11781c5 2322 $ $0 $@
ad6254c5 2323
ad6254c5 2324_ACEOF
f11781c5
AK
2325exec 5>>config.log
2326{
2327cat <<_ASUNAME
2328## --------- ##
2329## Platform. ##
2330## --------- ##
ad6254c5 2331
f11781c5
AK
2332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2333uname -m = `(uname -m) 2>/dev/null || echo unknown`
2334uname -r = `(uname -r) 2>/dev/null || echo unknown`
2335uname -s = `(uname -s) 2>/dev/null || echo unknown`
2336uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2337
f11781c5
AK
2338/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2339/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2340
f11781c5
AK
2341/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2342/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2343/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2344/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2345/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2346/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2347/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2348
2349_ASUNAME
2350
2351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352for as_dir in $PATH
2353do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 $as_echo "PATH: $as_dir"
2357 done
2358IFS=$as_save_IFS
2359
2360} >&5
2361
2362cat >&5 <<_ACEOF
2363
2364
2365## ----------- ##
2366## Core tests. ##
2367## ----------- ##
ad6254c5 2368
ad6254c5 2369_ACEOF
ad6254c5 2370
7a197a62 2371
f11781c5
AK
2372# Keep a trace of the command line.
2373# Strip out --no-create and --no-recursion so they do not pile up.
2374# Strip out --silent because we don't want to record it for future runs.
2375# Also quote any args containing shell meta-characters.
2376# Make two passes to allow for proper duplicate-argument suppression.
2377ac_configure_args=
2378ac_configure_args0=
2379ac_configure_args1=
2380ac_must_keep_next=false
2381for ac_pass in 1 2
2382do
2383 for ac_arg
2384 do
2385 case $ac_arg in
2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388 | -silent | --silent | --silen | --sile | --sil)
2389 continue ;;
2390 *\'*)
2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 esac
2393 case $ac_pass in
2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2395 2)
2396 as_fn_append ac_configure_args1 " '$ac_arg'"
2397 if test $ac_must_keep_next = true; then
2398 ac_must_keep_next=false # Got value, back to normal.
2399 else
2400 case $ac_arg in
2401 *=* | --config-cache | -C | -disable-* | --disable-* \
2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404 | -with-* | --with-* | -without-* | --without-* | --x)
2405 case "$ac_configure_args0 " in
2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 esac
2408 ;;
2409 -* ) ac_must_keep_next=true ;;
2410 esac
2411 fi
2412 as_fn_append ac_configure_args " '$ac_arg'"
2413 ;;
2414 esac
2415 done
2416done
2417{ ac_configure_args0=; unset ac_configure_args0;}
2418{ ac_configure_args1=; unset ac_configure_args1;}
2419
2420# When interrupted or exit'd, cleanup temporary files, and complete
2421# config.log. We remove comments because anyway the quotes in there
2422# would cause problems or look ugly.
2423# WARNING: Use '\'' to represent an apostrophe within the trap.
2424# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2425trap 'exit_status=$?
2426 # Save into config.log some information that might help in debugging.
2427 {
2428 echo
2429
2430 $as_echo "## ---------------- ##
2431## Cache variables. ##
2432## ---------------- ##"
2433 echo
2434 # The following way of writing the cache mishandles newlines in values,
2435(
2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in #(
2439 *${as_nl}*)
2440 case $ac_var in #(
2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2442$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 esac
2444 case $ac_var in #(
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2448 esac ;;
2449 esac
2450 done
2451 (set) 2>&1 |
2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
2454 sed -n \
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 ;; #(
2458 *)
2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2460 ;;
2461 esac |
2462 sort
2463)
2464 echo
2465
2466 $as_echo "## ----------------- ##
2467## Output variables. ##
2468## ----------------- ##"
2469 echo
2470 for ac_var in $ac_subst_vars
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479
2480 if test -n "$ac_subst_files"; then
2481 $as_echo "## ------------------- ##
2482## File substitutions. ##
2483## ------------------- ##"
2484 echo
2485 for ac_var in $ac_subst_files
2486 do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2494 fi
2495
2496 if test -s confdefs.h; then
2497 $as_echo "## ----------- ##
2498## confdefs.h. ##
2499## ----------- ##"
2500 echo
2501 cat confdefs.h
2502 echo
2503 fi
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2507 } >&5
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 exit $exit_status
2511' 0
2512for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514done
2515ac_signal=0
2516
2517# confdefs.h avoids OS command line length limits that DEFS can exceed.
2518rm -f -r conftest* confdefs.h
7a197a62 2519
f11781c5 2520$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2521
f11781c5 2522# Predefined preprocessor variables.
ad6254c5
AK
2523
2524cat >>confdefs.h <<_ACEOF
f11781c5 2525#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2526_ACEOF
2527
f11781c5
AK
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2530_ACEOF
ad6254c5 2531
f11781c5
AK
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2534_ACEOF
f11781c5
AK
2535
2536cat >>confdefs.h <<_ACEOF
2537#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2538_ACEOF
ad6254c5 2539
f11781c5
AK
2540cat >>confdefs.h <<_ACEOF
2541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542_ACEOF
7a197a62 2543
f11781c5
AK
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_URL "$PACKAGE_URL"
2546_ACEOF
ad6254c5 2547
7a197a62 2548
f11781c5
AK
2549# Let the site file select an alternate cache file if it wants to.
2550# Prefer an explicitly selected file to automatically selected ones.
2551ac_site_file1=NONE
2552ac_site_file2=NONE
2553if test -n "$CONFIG_SITE"; then
2554 # We do not want a PATH search for config.site.
2555 case $CONFIG_SITE in #((
2556 -*) ac_site_file1=./$CONFIG_SITE;;
2557 */*) ac_site_file1=$CONFIG_SITE;;
2558 *) ac_site_file1=./$CONFIG_SITE;;
2559 esac
2560elif test "x$prefix" != xNONE; then
2561 ac_site_file1=$prefix/share/config.site
2562 ac_site_file2=$prefix/etc/config.site
ad6254c5 2563else
f11781c5
AK
2564 ac_site_file1=$ac_default_prefix/share/config.site
2565 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2566fi
f11781c5
AK
2567for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568do
2569 test "x$ac_site_file" = xNONE && continue
2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 sed 's/^/| /' "$ac_site_file" >&5
2574 . "$ac_site_file" \
2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577as_fn_error $? "failed to load site script $ac_site_file
2578See \`config.log' for more details" "$LINENO" 5; }
2579 fi
2580done
ad6254c5 2581
f11781c5
AK
2582if test -r "$cache_file"; then
2583 # Some versions of bash will fail to source /dev/null (special files
2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2587$as_echo "$as_me: loading cache $cache_file" >&6;}
2588 case $cache_file in
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
2591 esac
2592 fi
2593else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595$as_echo "$as_me: creating cache $cache_file" >&6;}
2596 >$cache_file
ad6254c5 2597fi
ad6254c5 2598
f11781c5
AK
2599as_fn_append ac_header_list " stdlib.h"
2600as_fn_append ac_header_list " unistd.h"
2601as_fn_append ac_header_list " sys/param.h"
2602# Check that the precious variables saved in the cache have kept the same
2603# value.
2604ac_cache_corrupted=false
2605for ac_var in $ac_precious_vars; do
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
2610 case $ac_old_set,$ac_new_set in
2611 set,)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,set)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,);;
2620 *)
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=`echo x $ac_old_val`
2624 ac_new_val_w=`echo x $ac_new_val`
2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628 ac_cache_corrupted=:
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632 eval $ac_var=\$ac_old_val
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2638 fi;;
2639 esac
2640 # Pass precious variables to config.status.
2641 if test "$ac_new_set" = set; then
2642 case $ac_new_val in
2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644 *) ac_arg=$ac_var=$ac_new_val ;;
2645 esac
2646 case " $ac_configure_args " in
2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2649 esac
2650 fi
2651done
2652if $ac_cache_corrupted; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2658fi
f11781c5
AK
2659## -------------------- ##
2660## Main body of script. ##
2661## -------------------- ##
ad6254c5 2662
f11781c5
AK
2663ac_ext=c
2664ac_cpp='$CPP $CPPFLAGS'
2665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2668
ad6254c5 2669
ad6254c5 2670
f11781c5 2671ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2672
2673
f11781c5
AK
2674################################################################################
2675ac_aux_dir=
2676for ac_dir in autoconf "$srcdir"/autoconf; do
2677 if test -f "$ac_dir/install-sh"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/install-sh -c"
2680 break
2681 elif test -f "$ac_dir/install.sh"; then
2682 ac_aux_dir=$ac_dir
2683 ac_install_sh="$ac_aux_dir/install.sh -c"
2684 break
2685 elif test -f "$ac_dir/shtool"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 break
2689 fi
2690done
2691if test -z "$ac_aux_dir"; then
2692 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2693fi
ad6254c5 2694
f11781c5
AK
2695# These three variables are undocumented and unsupported,
2696# and are intended to be withdrawn in a future Autoconf release.
2697# They can cause serious problems if a builder's source tree is in a directory
2698# whose full name contains unusual characters.
2699ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2702
ad6254c5 2703
8a2fc586 2704
f11781c5
AK
2705################################################################################
2706# Make sure we can run config.sub.
2707$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2708 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2709
f11781c5
AK
2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2711$as_echo_n "checking build system type... " >&6; }
2712if test "${ac_cv_build+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714else
2715 ac_build_alias=$build_alias
2716test "x$ac_build_alias" = x &&
2717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2718test "x$ac_build_alias" = x &&
2719 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2720ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2721 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2722
2723fi
f11781c5
AK
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2725$as_echo "$ac_cv_build" >&6; }
2726case $ac_cv_build in
2727*-*-*) ;;
2728*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2729esac
2730build=$ac_cv_build
2731ac_save_IFS=$IFS; IFS='-'
2732set x $ac_cv_build
2733shift
2734build_cpu=$1
2735build_vendor=$2
2736shift; shift
2737# Remember, the first character of IFS is used to create $*,
2738# except with old shells:
2739build_os=$*
2740IFS=$ac_save_IFS
2741case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2742
2743
f11781c5
AK
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2745$as_echo_n "checking host system type... " >&6; }
2746if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2747 $as_echo_n "(cached) " >&6
ad6254c5 2748else
f11781c5
AK
2749 if test "x$host_alias" = x; then
2750 ac_cv_host=$ac_cv_build
ad6254c5 2751else
f11781c5
AK
2752 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2753 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2754fi
ad6254c5 2755
f11781c5
AK
2756fi
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2758$as_echo "$ac_cv_host" >&6; }
2759case $ac_cv_host in
2760*-*-*) ;;
2761*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2762esac
2763host=$ac_cv_host
2764ac_save_IFS=$IFS; IFS='-'
2765set x $ac_cv_host
2766shift
2767host_cpu=$1
2768host_vendor=$2
2769shift; shift
2770# Remember, the first character of IFS is used to create $*,
2771# except with old shells:
2772host_os=$*
2773IFS=$ac_save_IFS
2774case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2775
ad6254c5 2776
f11781c5
AK
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2778$as_echo_n "checking target system type... " >&6; }
2779if test "${ac_cv_target+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
ad6254c5 2781else
f11781c5
AK
2782 if test "x$target_alias" = x; then
2783 ac_cv_target=$ac_cv_host
2784else
2785 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2787fi
7a197a62 2788
ad6254c5 2789fi
f11781c5
AK
2790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2791$as_echo "$ac_cv_target" >&6; }
2792case $ac_cv_target in
2793*-*-*) ;;
2794*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2795esac
f11781c5
AK
2796target=$ac_cv_target
2797ac_save_IFS=$IFS; IFS='-'
2798set x $ac_cv_target
2799shift
2800target_cpu=$1
2801target_vendor=$2
2802shift; shift
2803# Remember, the first character of IFS is used to create $*,
2804# except with old shells:
2805target_os=$*
2806IFS=$ac_save_IFS
2807case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2808
ad6254c5 2809
f11781c5
AK
2810# The aliases save the names the user supplied, while $host etc.
2811# will get canonicalized.
2812test -n "$target_alias" &&
2813 test "$program_prefix$program_suffix$program_transform_name" = \
2814 NONENONEs,x,x, &&
2815 program_prefix=${target_alias}-
ad6254c5 2816
f11781c5
AK
2817case "$host_os" in
2818 linux*)
2819 CFLAGS="$CFLAGS"
2820 COPTIMISE_FLAG="-O2"
2821 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
bf09a320
AK
2822 ELDFLAGS="-Wl,--export-dynamic"
2823 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
2824 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2825 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2826 LDDEPS="$LDDEPS .export.sym"
f11781c5
AK
2827 LIB_SUFFIX=so
2828 DEVMAPPER=yes
cdd50823 2829 LVMETAD=no
f11781c5
AK
2830 ODIRECT=yes
2831 DM_IOCTLS=yes
2832 SELINUX=yes
2833 CLUSTER=internal
2834 FSADM=yes
2835 ;;
2836 darwin*)
2837 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2838 COPTIMISE_FLAG="-O2"
2839 CLDFLAGS="$CLDFLAGS"
bf09a320 2840 ELDFLAGS=
f11781c5
AK
2841 CLDWHOLEARCHIVE="-all_load"
2842 CLDNOWHOLEARCHIVE=
2843 LIB_SUFFIX=dylib
2844 DEVMAPPER=yes
2845 ODIRECT=no
2846 DM_IOCTLS=no
2847 SELINUX=no
2848 CLUSTER=none
2849 FSADM=no
2850 ;;
2851esac
ad6254c5 2852
f11781c5
AK
2853################################################################################
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2855$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2856if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2857 $as_echo_n "(cached) " >&6
ad6254c5 2858else
f11781c5
AK
2859 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2860 for ac_i in 1 2 3 4 5 6 7; do
2861 ac_script="$ac_script$as_nl$ac_script"
2862 done
2863 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2864 { ac_script=; unset ac_script;}
2865 if test -z "$SED"; then
2866 ac_path_SED_found=false
2867 # Loop through the user's path and test for each of PROGNAME-LIST
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in sed gsed; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2876 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2877# Check for GNU ac_path_SED and select it if it is found.
2878 # Check for GNU $ac_path_SED
2879case `"$ac_path_SED" --version 2>&1` in
2880*GNU*)
2881 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2882*)
2883 ac_count=0
2884 $as_echo_n 0123456789 >"conftest.in"
2885 while :
2886 do
2887 cat "conftest.in" "conftest.in" >"conftest.tmp"
2888 mv "conftest.tmp" "conftest.in"
2889 cp "conftest.in" "conftest.nl"
2890 $as_echo '' >> "conftest.nl"
2891 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2893 as_fn_arith $ac_count + 1 && ac_count=$as_val
2894 if test $ac_count -gt ${ac_path_SED_max-0}; then
2895 # Best one so far, save it but keep looking for a better one
2896 ac_cv_path_SED="$ac_path_SED"
2897 ac_path_SED_max=$ac_count
2898 fi
2899 # 10*(2^10) chars as input seems more than enough
2900 test $ac_count -gt 10 && break
2901 done
2902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2903esac
ad6254c5 2904
f11781c5
AK
2905 $ac_path_SED_found && break 3
2906 done
2907 done
2908 done
2909IFS=$as_save_IFS
2910 if test -z "$ac_cv_path_SED"; then
2911 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2912 fi
2913else
2914 ac_cv_path_SED=$SED
ad6254c5 2915fi
7a197a62 2916
f11781c5
AK
2917fi
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2919$as_echo "$ac_cv_path_SED" >&6; }
2920 SED="$ac_cv_path_SED"
2921 rm -f conftest.sed
ad6254c5 2922
f11781c5
AK
2923for ac_prog in gawk mawk nawk awk
2924do
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926set dummy $ac_prog; ac_word=$2
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928$as_echo_n "checking for $ac_word... " >&6; }
2929if test "${ac_cv_prog_AWK+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
ad6254c5 2931else
f11781c5
AK
2932 if test -n "$AWK"; then
2933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2934else
2935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936for as_dir in $PATH
2937do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_AWK="$ac_prog"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946done
2947 done
2948IFS=$as_save_IFS
ad6254c5 2949
ad6254c5 2950fi
ad6254c5 2951fi
f11781c5
AK
2952AWK=$ac_cv_prog_AWK
2953if test -n "$AWK"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2955$as_echo "$AWK" >&6; }
2956else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958$as_echo "no" >&6; }
ad6254c5 2959fi
ad6254c5 2960
ad6254c5 2961
f11781c5 2962 test -n "$AWK" && break
ad6254c5
AK
2963done
2964
f11781c5
AK
2965ac_ext=c
2966ac_cpp='$CPP $CPPFLAGS'
2967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974$as_echo_n "checking for $ac_word... " >&6; }
2975if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2976 $as_echo_n "(cached) " >&6
ad6254c5 2977else
f11781c5
AK
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2980else
f11781c5
AK
2981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982for as_dir in $PATH
2983do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992done
2993 done
2994IFS=$as_save_IFS
ad6254c5 2995
ad6254c5 2996fi
ad6254c5 2997fi
f11781c5
AK
2998CC=$ac_cv_prog_CC
2999if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001$as_echo "$CC" >&6; }
3002else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004$as_echo "no" >&6; }
ad6254c5 3005fi
ad6254c5 3006
f11781c5
AK
3007
3008fi
3009if test -z "$ac_cv_prog_CC"; then
3010 ac_ct_CC=$CC
3011 # Extract the first word of "gcc", so it can be a program name with args.
3012set dummy gcc; ac_word=$2
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014$as_echo_n "checking for $ac_word... " >&6; }
3015if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3016 $as_echo_n "(cached) " >&6
ad6254c5 3017else
f11781c5
AK
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3020else
f11781c5
AK
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032done
3033 done
3034IFS=$as_save_IFS
d911ec67 3035
d911ec67 3036fi
d911ec67 3037fi
f11781c5
AK
3038ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041$as_echo "$ac_ct_CC" >&6; }
3042else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
d911ec67 3045fi
d911ec67 3046
f11781c5
AK
3047 if test "x$ac_ct_CC" = x; then
3048 CC=""
3049 else
3050 case $cross_compiling:$ac_tool_warned in
3051yes:)
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054ac_tool_warned=yes ;;
3055esac
3056 CC=$ac_ct_CC
3057 fi
3058else
3059 CC="$ac_cv_prog_CC"
d911ec67 3060fi
d911ec67 3061
f11781c5
AK
3062if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065set dummy ${ac_tool_prefix}cc; ac_word=$2
3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067$as_echo_n "checking for $ac_word... " >&6; }
3068if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3069 $as_echo_n "(cached) " >&6
d911ec67 3070else
f11781c5
AK
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3073else
f11781c5
AK
3074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075for as_dir in $PATH
3076do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085done
3086 done
3087IFS=$as_save_IFS
d911ec67 3088
f11781c5
AK
3089fi
3090fi
3091CC=$ac_cv_prog_CC
3092if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094$as_echo "$CC" >&6; }
3095else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097$as_echo "no" >&6; }
d911ec67
AK
3098fi
3099
d911ec67 3100
f11781c5
AK
3101 fi
3102fi
3103if test -z "$CC"; then
3104 # Extract the first word of "cc", so it can be a program name with args.
3105set dummy cc; ac_word=$2
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107$as_echo_n "checking for $ac_word... " >&6; }
3108if test "${ac_cv_prog_CC+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
d911ec67 3110else
f11781c5
AK
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3113else
3114 ac_prog_rejected=no
3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH
3117do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123 ac_prog_rejected=yes
3124 continue
3125 fi
3126 ac_cv_prog_CC="cc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130done
3131 done
3132IFS=$as_save_IFS
d911ec67 3133
f11781c5
AK
3134if test $ac_prog_rejected = yes; then
3135 # We found a bogon in the path, so make sure we never use it.
3136 set dummy $ac_cv_prog_CC
3137 shift
3138 if test $# != 0; then
3139 # We chose a different compiler from the bogus one.
3140 # However, it has the same basename, so the bogon will be chosen
3141 # first if we set CC to just the basename; use the full file name.
3142 shift
3143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144 fi
3145fi
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
d911ec67
AK
3155fi
3156
d911ec67 3157
f11781c5
AK
3158fi
3159if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl.exe
3162 do
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166$as_echo_n "checking for $ac_word... " >&6; }
3167if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3168 $as_echo_n "(cached) " >&6
3169else
f11781c5
AK
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172else
3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174for as_dir in $PATH
3175do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184done
3185 done
3186IFS=$as_save_IFS
d911ec67
AK
3187
3188fi
f11781c5
AK
3189fi
3190CC=$ac_cv_prog_CC
3191if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193$as_echo "$CC" >&6; }
3194else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
d911ec67
AK
3197fi
3198
d911ec67 3199
f11781c5
AK
3200 test -n "$CC" && break
3201 done
3202fi
3203if test -z "$CC"; then
3204 ac_ct_CC=$CC
3205 for ac_prog in cl.exe
3206do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208set dummy $ac_prog; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3212 $as_echo_n "(cached) " >&6
3213else
f11781c5
AK
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3216else
f11781c5
AK
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_ac_ct_CC="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228done
3229 done
3230IFS=$as_save_IFS
ad6254c5 3231
ad6254c5 3232fi
ad6254c5 3233fi
f11781c5
AK
3234ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237$as_echo "$ac_ct_CC" >&6; }
3238else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
ad6254c5 3241fi
ad6254c5 3242
d911ec67 3243
f11781c5
AK
3244 test -n "$ac_ct_CC" && break
3245done
d911ec67 3246
f11781c5
AK
3247 if test "x$ac_ct_CC" = x; then
3248 CC=""
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251yes:)
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254ac_tool_warned=yes ;;
d911ec67 3255esac
f11781c5
AK
3256 CC=$ac_ct_CC
3257 fi
3258fi
ad6254c5
AK
3259
3260fi
d911ec67
AK
3261
3262
f11781c5
AK
3263test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265as_fn_error $? "no acceptable C compiler found in \$PATH
3266See \`config.log' for more details" "$LINENO" 5; }
3267
3268# Provide some information about the compiler.
3269$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3270set X $ac_compile
3271ac_compiler=$2
3272for ac_option in --version -v -V -qversion; do
3273 { { ac_try="$ac_compiler $ac_option >&5"
3274case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277esac
3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279$as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3281 ac_status=$?
3282 if test -s conftest.err; then
3283 sed '10a\
3284... rest of stderr output deleted ...
3285 10q' conftest.err >conftest.er1
3286 cat conftest.er1 >&5
3287 fi
3288 rm -f conftest.er1 conftest.err
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3291done
ad6254c5 3292
f11781c5 3293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3294/* end confdefs.h. */
f11781c5 3295
ad6254c5
AK
3296int
3297main ()
3298{
f11781c5 3299
ad6254c5
AK
3300 ;
3301 return 0;
3302}
3303_ACEOF
f11781c5
AK
3304ac_clean_files_save=$ac_clean_files
3305ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306# Try to create an executable without -o first, disregard a.out.
3307# It will help us diagnose broken compilers, and finding out an intuition
3308# of exeext.
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310$as_echo_n "checking whether the C compiler works... " >&6; }
3311ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3312
3313# The possible output files:
3314ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3315
3316ac_rmfiles=
3317for ac_file in $ac_files
3318do
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322 esac
3323done
3324rm -f $ac_rmfiles
3325
3326if { { ac_try="$ac_link_default"
7a197a62
AK
3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
f11781c5
AK
3331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332$as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link_default") 2>&5
ad6254c5 3334 ac_status=$?
f11781c5
AK
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339# in a Makefile. We should not override ac_cv_exeext if it was cached,
3340# so that the user can short-circuit this test for compilers unknown to
3341# Autoconf.
3342for ac_file in $ac_files ''
3343do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3347 ;;
3348 [ab].out )
3349 # We found the default executable, but exeext='' is most
3350 # certainly right.
3351 break;;
3352 *.* )
3353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3354 then :; else
3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 fi
3357 # We set ac_cv_exeext here because the later test for it is not
3358 # safe: cross compilers may not add the suffix if given an `-o'
3359 # argument, so we may need to know it at that point already.
3360 # Even if this section looks crufty: it has the advantage of
3361 # actually working.
3362 break;;
3363 * )
3364 break;;
3365 esac
3366done
3367test "$ac_cv_exeext" = no && ac_cv_exeext=
3368
ad6254c5 3369else
f11781c5
AK
3370 ac_file=''
3371fi
3372if test -z "$ac_file"; then :
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374$as_echo "no" >&6; }
ec6a6fbe 3375$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
f11781c5
AK
3378{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380as_fn_error 77 "C compiler cannot create executables
3381See \`config.log' for more details" "$LINENO" 5; }
3382else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384$as_echo "yes" >&6; }
ad6254c5 3385fi
f11781c5
AK
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387$as_echo_n "checking for C compiler default output file name... " >&6; }
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389$as_echo "$ac_file" >&6; }
3390ac_exeext=$ac_cv_exeext
7a197a62 3391
f11781c5
AK
3392rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393ac_clean_files=$ac_clean_files_save
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395$as_echo_n "checking for suffix of executables... " >&6; }
3396if { { ac_try="$ac_link"
3397case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
8a2fc586 3400esac
f11781c5
AK
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3409# work properly (i.e., refer to `conftest.exe'), while it won't with
3410# `rm'.
3411for ac_file in conftest.exe conftest conftest.*; do
3412 test -f "$ac_file" || continue
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 break;;
3417 * ) break;;
3418 esac
3419done
3420else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3425fi
f11781c5
AK
3426rm -f conftest conftest$ac_cv_exeext
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3429
f11781c5
AK
3430rm -f conftest.$ac_ext
3431EXEEXT=$ac_cv_exeext
3432ac_exeext=$EXEEXT
3433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3434/* end confdefs.h. */
f11781c5 3435#include <stdio.h>
ad6254c5 3436int
f11781c5 3437main ()
ad6254c5 3438{
f11781c5
AK
3439FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
ad6254c5 3441
f11781c5 3442 ;
7a197a62 3443 return 0;
ad6254c5 3444}
ad6254c5 3445_ACEOF
f11781c5
AK
3446ac_clean_files="$ac_clean_files conftest.out"
3447# Check that the compiler produces executables we can run. If not, either
3448# the compiler is broken, or we cross compile.
3449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450$as_echo_n "checking whether we are cross compiling... " >&6; }
3451if test "$cross_compiling" != yes; then
3452 { { ac_try="$ac_link"
7a197a62
AK
3453case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456esac
f11781c5
AK
3457eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458$as_echo "$ac_try_echo"; } >&5
7a197a62 3459 (eval "$ac_link") 2>&5
ad6254c5 3460 ac_status=$?
f11781c5
AK
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 if { ac_try='./conftest$ac_cv_exeext'
3464 { { case "(($ac_try" in
7a197a62
AK
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467esac
f11781c5
AK
3468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469$as_echo "$ac_try_echo"; } >&5
7a197a62 3470 (eval "$ac_try") 2>&5
ad6254c5 3471 ac_status=$?
f11781c5
AK
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; }; then
3474 cross_compiling=no
3475 else
3476 if test "$cross_compiling" = maybe; then
3477 cross_compiling=yes
3478 else
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error $? "cannot run C compiled programs.
3482If you meant to cross compile, use \`--host'.
3483See \`config.log' for more details" "$LINENO" 5; }
3484 fi
3485 fi
3486fi
3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488$as_echo "$cross_compiling" >&6; }
3489
3490rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491ac_clean_files=$ac_clean_files_save
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493$as_echo_n "checking for suffix of object files... " >&6; }
3494if test "${ac_cv_objext+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496else
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h. */
ad6254c5
AK
3499
3500int
3501main ()
3502{
f11781c5 3503
ad6254c5
AK
3504 ;
3505 return 0;
3506}
3507_ACEOF
f11781c5
AK
3508rm -f conftest.o conftest.obj
3509if { { ac_try="$ac_compile"
7a197a62
AK
3510case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513esac
f11781c5
AK
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compile") 2>&5
ad6254c5 3517 ac_status=$?
f11781c5
AK
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525 break;;
3526 esac
3527done
ad6254c5 3528else
ec6a6fbe 3529 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
f11781c5
AK
3532{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error $? "cannot compute suffix of object files: cannot compile
3535See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3536fi
f11781c5 3537rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3538fi
f11781c5
AK
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540$as_echo "$ac_cv_objext" >&6; }
3541OBJEXT=$ac_cv_objext
3542ac_objext=$OBJEXT
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3546 $as_echo_n "(cached) " >&6
ad6254c5 3547else
f11781c5 3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3549/* end confdefs.h. */
3550
ad6254c5
AK
3551int
3552main ()
3553{
f11781c5
AK
3554#ifndef __GNUC__
3555 choke me
3556#endif
3557
ad6254c5
AK
3558 ;
3559 return 0;
3560}
3561_ACEOF
f11781c5
AK
3562if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_compiler_gnu=yes
ad6254c5 3564else
f11781c5 3565 ac_compiler_gnu=no
ad6254c5 3566fi
f11781c5
AK
3567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3569
d0191583 3570fi
f11781c5
AK
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573if test $ac_compiler_gnu = yes; then
3574 GCC=yes
d0191583 3575else
f11781c5 3576 GCC=
d0191583 3577fi
f11781c5
AK
3578ac_test_CFLAGS=${CFLAGS+set}
3579ac_save_CFLAGS=$CFLAGS
3580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581$as_echo_n "checking whether $CC accepts -g... " >&6; }
3582if test "${ac_cv_prog_cc_g+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3584else
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3587 ac_cv_prog_cc_g=no
3588 CFLAGS="-g"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590/* end confdefs.h. */
72b2cb61 3591
f11781c5
AK
3592int
3593main ()
3594{
72b2cb61 3595
f11781c5
AK
3596 ;
3597 return 0;
3598}
3599_ACEOF
3600if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_g=yes
3602else
3603 CFLAGS=""
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605/* end confdefs.h. */
ad6254c5 3606
f11781c5
AK
3607int
3608main ()
3609{
ad6254c5 3610
f11781c5
AK
3611 ;
3612 return 0;
3613}
d0191583 3614_ACEOF
f11781c5
AK
3615if ac_fn_c_try_compile "$LINENO"; then :
3616
3617else
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3619 CFLAGS="-g"
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3621/* end confdefs.h. */
7a197a62 3622
f11781c5
AK
3623int
3624main ()
3625{
ad6254c5 3626
f11781c5
AK
3627 ;
3628 return 0;
3629}
3630_ACEOF
3631if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_g=yes
3633fi
3634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635fi
3636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637fi
3638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642$as_echo "$ac_cv_prog_cc_g" >&6; }
3643if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3647 CFLAGS="-g -O2"
3648 else
3649 CFLAGS="-g"
3650 fi
3651else
3652 if test "$GCC" = yes; then
3653 CFLAGS="-O2"
3654 else
3655 CFLAGS=
3656 fi
3657fi
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660if test "${ac_cv_prog_cc_c89+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662else
3663 ac_cv_prog_cc_c89=no
3664ac_save_CC=$CC
3665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666/* end confdefs.h. */
3667#include <stdarg.h>
3668#include <stdio.h>
3669#include <sys/types.h>
3670#include <sys/stat.h>
3671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3672struct buf { int x; };
3673FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674static char *e (p, i)
3675 char **p;
3676 int i;
3677{
3678 return p[i];
3679}
3680static char *f (char * (*g) (char **, int), char **p, ...)
3681{
3682 char *s;
3683 va_list v;
3684 va_start (v,p);
3685 s = g (p, va_arg (v,int));
3686 va_end (v);
3687 return s;
3688}
ad6254c5 3689
f11781c5
AK
3690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3691 function prototypes and stuff, but not '\xHH' hex character constants.
3692 These don't provoke an error unfortunately, instead are silently treated
3693 as 'x'. The following induces an error, until -std is added to get
3694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3695 array size at least. It's necessary to write '\x00'==0 to get something
3696 that's true only with -std. */
3697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3698
f11781c5
AK
3699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700 inside strings and character constants. */
3701#define FOO(x) 'x'
3702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3703
f11781c5
AK
3704int test (int i, double x);
3705struct s1 {int (*f) (int a);};
3706struct s2 {int (*f) (double a);};
3707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708int argc;
3709char **argv;
d0191583
JM
3710int
3711main ()
3712{
f11781c5 3713return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3714 ;
3715 return 0;
3716}
72b2cb61 3717_ACEOF
f11781c5
AK
3718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720do
3721 CC="$ac_save_CC $ac_arg"
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_c89=$ac_arg
3724fi
3725rm -f core conftest.err conftest.$ac_objext
3726 test "x$ac_cv_prog_cc_c89" != "xno" && break
3727done
3728rm -f conftest.$ac_ext
3729CC=$ac_save_CC
3730
3731fi
3732# AC_CACHE_VAL
3733case "x$ac_cv_prog_cc_c89" in
3734 x)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736$as_echo "none needed" >&6; } ;;
3737 xno)
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739$as_echo "unsupported" >&6; } ;;
3740 *)
3741 CC="$CC $ac_cv_prog_cc_c89"
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3744esac
f11781c5
AK
3745if test "x$ac_cv_prog_cc_c89" != xno; then :
3746
3747fi
3748
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3754
ad6254c5 3755
7a197a62 3756
f11781c5
AK
3757ac_ext=c
3758ac_cpp='$CPP $CPPFLAGS'
3759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3763$as_echo_n "checking how to run the C preprocessor... " >&6; }
3764# On Suns, sometimes $CPP names a directory.
3765if test -n "$CPP" && test -d "$CPP"; then
3766 CPP=
3767fi
3768if test -z "$CPP"; then
3769 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3770 $as_echo_n "(cached) " >&6
ad6254c5 3771else
f11781c5
AK
3772 # Double quotes because CPP needs to be expanded
3773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3774 do
3775 ac_preproc_ok=false
3776for ac_c_preproc_warn_flag in '' yes
3777do
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3785/* end confdefs.h. */
d0191583
JM
3786#ifdef __STDC__
3787# include <limits.h>
3788#else
3789# include <assert.h>
3790#endif
f11781c5
AK
3791 Syntax error
3792_ACEOF
3793if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3794
f11781c5
AK
3795else
3796 # Broken: fails on valid input.
3797continue
3798fi
3799rm -f conftest.err conftest.$ac_ext
d0191583 3800
f11781c5
AK
3801 # OK, works on sane cases. Now check whether nonexistent headers
3802 # can be detected and how.
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804/* end confdefs.h. */
3805#include <ac_nonexistent.h>
72b2cb61 3806_ACEOF
f11781c5
AK
3807if ac_fn_c_try_cpp "$LINENO"; then :
3808 # Broken: success on invalid input.
3809continue
d0191583 3810else
f11781c5
AK
3811 # Passes both tests.
3812ac_preproc_ok=:
3813break
ad6254c5 3814fi
f11781c5 3815rm -f conftest.err conftest.$ac_ext
ad6254c5 3816
f11781c5
AK
3817done
3818# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3819rm -f conftest.err conftest.$ac_ext
3820if $ac_preproc_ok; then :
3821 break
7a197a62
AK
3822fi
3823
f11781c5
AK
3824 done
3825 ac_cv_prog_CPP=$CPP
ad6254c5 3826
7a197a62 3827fi
f11781c5
AK
3828 CPP=$ac_cv_prog_CPP
3829else
3830 ac_cv_prog_CPP=$CPP
d0191583 3831fi
f11781c5
AK
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3833$as_echo "$CPP" >&6; }
3834ac_preproc_ok=false
3835for ac_c_preproc_warn_flag in '' yes
3836do
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844/* end confdefs.h. */
3845#ifdef __STDC__
3846# include <limits.h>
3847#else
3848# include <assert.h>
3849#endif
3850 Syntax error
3851_ACEOF
3852if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3853
9c961554 3854else
f11781c5
AK
3855 # Broken: fails on valid input.
3856continue
9c961554 3857fi
f11781c5 3858rm -f conftest.err conftest.$ac_ext
9c961554 3859
f11781c5
AK
3860 # OK, works on sane cases. Now check whether nonexistent headers
3861 # can be detected and how.
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863/* end confdefs.h. */
3864#include <ac_nonexistent.h>
3865_ACEOF
3866if ac_fn_c_try_cpp "$LINENO"; then :
3867 # Broken: success on invalid input.
3868continue
3869else
3870 # Passes both tests.
3871ac_preproc_ok=:
3872break
3873fi
3874rm -f conftest.err conftest.$ac_ext
ad6254c5 3875
f11781c5
AK
3876done
3877# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878rm -f conftest.err conftest.$ac_ext
3879if $ac_preproc_ok; then :
d0191583 3880
f11781c5
AK
3881else
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3885See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3886fi
3887
f11781c5
AK
3888ac_ext=c
3889ac_cpp='$CPP $CPPFLAGS'
3890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3893
ad6254c5 3894
f11781c5
AK
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3896$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3897if test "${ac_cv_path_GREP+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899else
3900 if test -z "$GREP"; then
3901 ac_path_GREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in grep ggrep; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3911 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3912# Check for GNU ac_path_GREP and select it if it is found.
3913 # Check for GNU $ac_path_GREP
3914case `"$ac_path_GREP" --version 2>&1` in
3915*GNU*)
3916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3917*)
3918 ac_count=0
3919 $as_echo_n 0123456789 >"conftest.in"
3920 while :
3921 do
3922 cat "conftest.in" "conftest.in" >"conftest.tmp"
3923 mv "conftest.tmp" "conftest.in"
3924 cp "conftest.in" "conftest.nl"
3925 $as_echo 'GREP' >> "conftest.nl"
3926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928 as_fn_arith $ac_count + 1 && ac_count=$as_val
3929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3930 # Best one so far, save it but keep looking for a better one
3931 ac_cv_path_GREP="$ac_path_GREP"
3932 ac_path_GREP_max=$ac_count
3933 fi
3934 # 10*(2^10) chars as input seems more than enough
3935 test $ac_count -gt 10 && break
3936 done
3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938esac
ad6254c5 3939
f11781c5
AK
3940 $ac_path_GREP_found && break 3
3941 done
3942 done
3943 done
3944IFS=$as_save_IFS
3945 if test -z "$ac_cv_path_GREP"; then
3946 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3947 fi
3948else
3949 ac_cv_path_GREP=$GREP
7a197a62
AK
3950fi
3951
d0191583 3952fi
f11781c5
AK
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3954$as_echo "$ac_cv_path_GREP" >&6; }
3955 GREP="$ac_cv_path_GREP"
ad6254c5 3956
24bbc4d7 3957
f11781c5
AK
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3959$as_echo_n "checking for egrep... " >&6; }
3960if test "${ac_cv_path_EGREP+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962else
3963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964 then ac_cv_path_EGREP="$GREP -E"
3965 else
3966 if test -z "$EGREP"; then
3967 ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in egrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3978# Check for GNU ac_path_EGREP and select it if it is found.
3979 # Check for GNU $ac_path_EGREP
3980case `"$ac_path_EGREP" --version 2>&1` in
3981*GNU*)
3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983*)
3984 ac_count=0
3985 $as_echo_n 0123456789 >"conftest.in"
3986 while :
3987 do
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 $as_echo 'EGREP' >> "conftest.nl"
3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 as_fn_arith $ac_count + 1 && ac_count=$as_val
3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_EGREP="$ac_path_EGREP"
3998 ac_path_EGREP_max=$ac_count
3999 fi
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4002 done
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004esac
24bbc4d7 4005
f11781c5
AK
4006 $ac_path_EGREP_found && break 3
4007 done
4008 done
4009 done
4010IFS=$as_save_IFS
4011 if test -z "$ac_cv_path_EGREP"; then
4012 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4013 fi
24bbc4d7 4014else
f11781c5 4015 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4016fi
4017
f11781c5 4018 fi
24bbc4d7 4019fi
f11781c5
AK
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4021$as_echo "$ac_cv_path_EGREP" >&6; }
4022 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4023
4024
f11781c5
AK
4025if test $ac_cv_c_compiler_gnu = yes; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4027$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4028if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
93bd259b 4030else
f11781c5
AK
4031 ac_pattern="Autoconf.*'x'"
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033/* end confdefs.h. */
4034#include <sgtty.h>
4035Autoconf TIOCGETP
4036_ACEOF
4037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4039 ac_cv_prog_gcc_traditional=yes
d0191583 4040else
f11781c5 4041 ac_cv_prog_gcc_traditional=no
7a197a62 4042fi
f11781c5 4043rm -f conftest*
7a197a62 4044
72b2cb61 4045
f11781c5
AK
4046 if test $ac_cv_prog_gcc_traditional = no; then
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048/* end confdefs.h. */
4049#include <termio.h>
4050Autoconf TCGETA
72b2cb61 4051_ACEOF
f11781c5
AK
4052if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4054 ac_cv_prog_gcc_traditional=yes
ad6254c5 4055fi
f11781c5 4056rm -f conftest*
ad6254c5 4057
f11781c5 4058 fi
7a197a62 4059fi
f11781c5
AK
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4061$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4062 if test $ac_cv_prog_gcc_traditional = yes; then
4063 CC="$CC -traditional"
4064 fi
ad6254c5
AK
4065fi
4066
f11781c5
AK
4067# Find a good install program. We prefer a C program (faster),
4068# so one script is as good as another. But avoid the broken or
4069# incompatible versions:
4070# SysV /etc/install, /usr/sbin/install
4071# SunOS /usr/etc/install
4072# IRIX /sbin/install
4073# AIX /bin/install
4074# AmigaOS /C/install, which installs bootblocks on floppy discs
4075# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4076# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4077# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4078# OS/2's system install, which has a completely different semantic
4079# ./install, which can be erroneously created by make from ./install.sh.
4080# Reject install programs that cannot install multiple files.
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4082$as_echo_n "checking for a BSD-compatible install... " >&6; }
4083if test -z "$INSTALL"; then
4084if test "${ac_cv_path_install+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
ad6254c5 4086else
f11781c5
AK
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 # Account for people who put trailing slashes in PATH elements.
4093case $as_dir/ in #((
4094 ./ | .// | /[cC]/* | \
4095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4096 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4097 /usr/ucb/* ) ;;
4098 *)
4099 # OSF1 and SCO ODT 3.0 have their own names for install.
4100 # Don't use installbsd from OSF since it installs stuff as root
4101 # by default.
4102 for ac_prog in ginstall scoinst install; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4105 if test $ac_prog = install &&
4106 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4107 # AIX install. It has an incompatible calling convention.
4108 :
4109 elif test $ac_prog = install &&
4110 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4111 # program-specific install script used by HP pwplus--don't use.
4112 :
4113 else
4114 rm -rf conftest.one conftest.two conftest.dir
4115 echo one > conftest.one
4116 echo two > conftest.two
4117 mkdir conftest.dir
4118 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4119 test -s conftest.one && test -s conftest.two &&
4120 test -s conftest.dir/conftest.one &&
4121 test -s conftest.dir/conftest.two
4122 then
4123 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4124 break 3
4125 fi
4126 fi
4127 fi
4128 done
4129 done
4130 ;;
4131esac
7a197a62 4132
f11781c5
AK
4133 done
4134IFS=$as_save_IFS
d0191583 4135
f11781c5 4136rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4137
4138fi
f11781c5
AK
4139 if test "${ac_cv_path_install+set}" = set; then
4140 INSTALL=$ac_cv_path_install
4141 else
4142 # As a last resort, use the slow shell script. Don't cache a
4143 # value for INSTALL within a source directory, because that will
4144 # break other packages using the cache if that directory is
4145 # removed, or if the value is a relative name.
4146 INSTALL=$ac_install_sh
4147 fi
7a197a62 4148fi
f11781c5
AK
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4150$as_echo "$INSTALL" >&6; }
7a197a62 4151
f11781c5
AK
4152# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4153# It thinks the first close brace ends the variable substitution.
4154test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4155
f11781c5 4156test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4157
f11781c5 4158test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4159
f11781c5
AK
4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4161$as_echo_n "checking whether ln -s works... " >&6; }
4162LN_S=$as_ln_s
4163if test "$LN_S" = "ln -s"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165$as_echo "yes" >&6; }
4166else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4168$as_echo "no, using $LN_S" >&6; }
15d91f5a 4169fi
ad6254c5 4170
f11781c5
AK
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4172$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4173set x ${MAKE-make}
4174ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4175if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4176 $as_echo_n "(cached) " >&6
d0191583 4177else
f11781c5
AK
4178 cat >conftest.make <<\_ACEOF
4179SHELL = /bin/sh
4180all:
4181 @echo '@@@%%%=$(MAKE)=@@@%%%'
4182_ACEOF
4183# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4184case `${MAKE-make} -f conftest.make 2>/dev/null` in
4185 *@@@%%%=?*=@@@%%%*)
4186 eval ac_cv_prog_make_${ac_make}_set=yes;;
4187 *)
4188 eval ac_cv_prog_make_${ac_make}_set=no;;
4189esac
4190rm -f conftest.make
4191fi
4192if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4194$as_echo "yes" >&6; }
4195 SET_MAKE=
4196else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198$as_echo "no" >&6; }
4199 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4200fi
4201
f11781c5
AK
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4203$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4204if test -z "$MKDIR_P"; then
4205 if test "${ac_cv_path_mkdir+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4210do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_prog in mkdir gmkdir; do
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4217 'mkdir (GNU coreutils) '* | \
4218 'mkdir (coreutils) '* | \
4219 'mkdir (fileutils) '4.1*)
4220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4221 break 3;;
4222 esac
4223 done
4224 done
4225 done
4226IFS=$as_save_IFS
d0191583 4227
f11781c5 4228fi
ad6254c5 4229
f11781c5
AK
4230 test -d ./--version && rmdir ./--version
4231 if test "${ac_cv_path_mkdir+set}" = set; then
4232 MKDIR_P="$ac_cv_path_mkdir -p"
4233 else
4234 # As a last resort, use the slow shell script. Don't cache a
4235 # value for MKDIR_P within a source directory, because that will
4236 # break other packages using the cache if that directory is
4237 # removed, or if the value is a relative name.
4238 MKDIR_P="$ac_install_sh -d"
4239 fi
ad6254c5 4240fi
f11781c5
AK
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4242$as_echo "$MKDIR_P" >&6; }
7a197a62 4243
f11781c5
AK
4244if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4246set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248$as_echo_n "checking for $ac_word... " >&6; }
4249if test "${ac_cv_prog_RANLIB+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251else
4252 if test -n "$RANLIB"; then
4253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4254else
4255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256for as_dir in $PATH
4257do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266done
4267 done
4268IFS=$as_save_IFS
d0191583 4269
f11781c5
AK
4270fi
4271fi
4272RANLIB=$ac_cv_prog_RANLIB
4273if test -n "$RANLIB"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4275$as_echo "$RANLIB" >&6; }
d0191583 4276else
f11781c5
AK
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278$as_echo "no" >&6; }
ad6254c5 4279fi
ad6254c5 4280
8a2fc586 4281
d0191583 4282fi
f11781c5
AK
4283if test -z "$ac_cv_prog_RANLIB"; then
4284 ac_ct_RANLIB=$RANLIB
4285 # Extract the first word of "ranlib", so it can be a program name with args.
4286set dummy ranlib; ac_word=$2
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288$as_echo_n "checking for $ac_word... " >&6; }
4289if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291else
4292 if test -n "$ac_ct_RANLIB"; then
4293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4294else
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_ac_ct_RANLIB="ranlib"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4305 fi
4306done
4307 done
4308IFS=$as_save_IFS
8a2fc586 4309
f11781c5
AK
4310fi
4311fi
4312ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4313if test -n "$ac_ct_RANLIB"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4315$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4316else
f11781c5
AK
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318$as_echo "no" >&6; }
8fea97b7
ZK
4319fi
4320
f11781c5
AK
4321 if test "x$ac_ct_RANLIB" = x; then
4322 RANLIB=":"
4323 else
4324 case $cross_compiling:$ac_tool_warned in
4325yes:)
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4328ac_tool_warned=yes ;;
8fea97b7 4329esac
f11781c5
AK
4330 RANLIB=$ac_ct_RANLIB
4331 fi
d0191583 4332else
f11781c5 4333 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4334fi
8a2fc586 4335
f11781c5
AK
4336# Extract the first word of "cflow", so it can be a program name with args.
4337set dummy cflow; ac_word=$2
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339$as_echo_n "checking for $ac_word... " >&6; }
4340if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342else
4343 case $CFLOW_CMD in
4344 [\\/]* | ?:[\\/]*)
4345 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4346 ;;
4347 *)
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360 done
4361IFS=$as_save_IFS
8a2fc586 4362
f11781c5
AK
4363 ;;
4364esac
ad6254c5 4365fi
f11781c5
AK
4366CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4367if test -n "$CFLOW_CMD"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4369$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4370else
f11781c5
AK
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372$as_echo "no" >&6; }
37ddf259
AK
4373fi
4374
e2997b73 4375
f11781c5
AK
4376# Extract the first word of "cscope", so it can be a program name with args.
4377set dummy cscope; ac_word=$2
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4379$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4380if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4381 $as_echo_n "(cached) " >&6
4382else
f11781c5 4383 case $CSCOPE_CMD in
e2997b73 4384 [\\/]* | ?:[\\/]*)
f11781c5 4385 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
f11781c5 4393 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4395 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4397 break 2
4398 fi
4399done
f11781c5 4400 done
e2997b73
AK
4401IFS=$as_save_IFS
4402
4403 ;;
4404esac
4405fi
f11781c5
AK
4406CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4407if test -n "$CSCOPE_CMD"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4409$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4410else
f11781c5 4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4412$as_echo "no" >&6; }
4413fi
f11781c5
AK
4414
4415
4416
4417################################################################################
4418ac_header_dirent=no
4419for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4420 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4422$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4423if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4424 $as_echo_n "(cached) " >&6
4425else
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427/* end confdefs.h. */
4428#include <sys/types.h>
4429#include <$ac_hdr>
4430
4431int
4432main ()
4433{
4434if ((DIR *) 0)
4435return 0;
4436 ;
4437 return 0;
4438}
4439_ACEOF
4440if ac_fn_c_try_compile "$LINENO"; then :
4441 eval "$as_ac_Header=yes"
4442else
4443 eval "$as_ac_Header=no"
4444fi
4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446fi
4447eval ac_res=\$$as_ac_Header
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4449$as_echo "$ac_res" >&6; }
4450if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4451 cat >>confdefs.h <<_ACEOF
4452#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4453_ACEOF
4454
4455ac_header_dirent=$ac_hdr; break
4456fi
4457
4458done
4459# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4460if test $ac_header_dirent = dirent.h; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4462$as_echo_n "checking for library containing opendir... " >&6; }
4463if test "${ac_cv_search_opendir+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 ac_func_search_save_LIBS=$LIBS
4467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468/* end confdefs.h. */
4469
4470/* Override any GCC internal prototype to avoid an error.
4471 Use char because int might match the return type of a GCC
4472 builtin and then its argument prototype would still apply. */
4473#ifdef __cplusplus
4474extern "C"
4475#endif
4476char opendir ();
4477int
4478main ()
4479{
4480return opendir ();
4481 ;
4482 return 0;
4483}
4484_ACEOF
4485for ac_lib in '' dir; do
4486 if test -z "$ac_lib"; then
4487 ac_res="none required"
4488 else
4489 ac_res=-l$ac_lib
4490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4491 fi
4492 if ac_fn_c_try_link "$LINENO"; then :
4493 ac_cv_search_opendir=$ac_res
4494fi
4495rm -f core conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext
4497 if test "${ac_cv_search_opendir+set}" = set; then :
4498 break
4499fi
4500done
4501if test "${ac_cv_search_opendir+set}" = set; then :
4502
4503else
4504 ac_cv_search_opendir=no
4505fi
4506rm conftest.$ac_ext
4507LIBS=$ac_func_search_save_LIBS
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4510$as_echo "$ac_cv_search_opendir" >&6; }
4511ac_res=$ac_cv_search_opendir
4512if test "$ac_res" != no; then :
4513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4514
4515fi
f11781c5
AK
4516
4517else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4519$as_echo_n "checking for library containing opendir... " >&6; }
4520if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4521 $as_echo_n "(cached) " >&6
4522else
f11781c5
AK
4523 ac_func_search_save_LIBS=$LIBS
4524cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525/* end confdefs.h. */
e2997b73 4526
f11781c5
AK
4527/* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
4530#ifdef __cplusplus
4531extern "C"
4532#endif
4533char opendir ();
4534int
4535main ()
4536{
4537return opendir ();
4538 ;
4539 return 0;
4540}
4541_ACEOF
4542for ac_lib in '' x; do
4543 if test -z "$ac_lib"; then
4544 ac_res="none required"
4545 else
4546 ac_res=-l$ac_lib
4547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4548 fi
4549 if ac_fn_c_try_link "$LINENO"; then :
4550 ac_cv_search_opendir=$ac_res
e2997b73 4551fi
f11781c5
AK
4552rm -f core conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext
4554 if test "${ac_cv_search_opendir+set}" = set; then :
4555 break
e2997b73 4556fi
f11781c5
AK
4557done
4558if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4559
e2997b73 4560else
f11781c5
AK
4561 ac_cv_search_opendir=no
4562fi
4563rm conftest.$ac_ext
4564LIBS=$ac_func_search_save_LIBS
e2997b73 4565fi
f11781c5
AK
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4567$as_echo "$ac_cv_search_opendir" >&6; }
4568ac_res=$ac_cv_search_opendir
4569if test "$ac_res" != no; then :
4570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4571
4572fi
8c4e8a18 4573
e2997b73
AK
4574fi
4575
f11781c5
AK
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4577$as_echo_n "checking for ANSI C header files... " >&6; }
4578if test "${ac_cv_header_stdc+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580else
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h. */
4583#include <stdlib.h>
4584#include <stdarg.h>
4585#include <string.h>
4586#include <float.h>
e2997b73 4587
f11781c5
AK
4588int
4589main ()
4590{
4591
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596if ac_fn_c_try_compile "$LINENO"; then :
4597 ac_cv_header_stdc=yes
e2997b73 4598else
f11781c5 4599 ac_cv_header_stdc=no
e2997b73 4600fi
f11781c5
AK
4601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602
4603if test $ac_cv_header_stdc = yes; then
4604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606/* end confdefs.h. */
4607#include <string.h>
4608
4609_ACEOF
4610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "memchr" >/dev/null 2>&1; then :
4612
e2997b73 4613else
f11781c5 4614 ac_cv_header_stdc=no
e2997b73 4615fi
f11781c5 4616rm -f conftest*
e2997b73 4617
f11781c5 4618fi
e2997b73 4619
f11781c5
AK
4620if test $ac_cv_header_stdc = yes; then
4621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h. */
4624#include <stdlib.h>
e2997b73 4625
f11781c5
AK
4626_ACEOF
4627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4629
e2997b73 4630else
f11781c5 4631 ac_cv_header_stdc=no
e2997b73 4632fi
f11781c5 4633rm -f conftest*
e2997b73 4634
e2997b73 4635fi
90c80887 4636
f11781c5
AK
4637if test $ac_cv_header_stdc = yes; then
4638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639 if test "$cross_compiling" = yes; then :
4640 :
4641else
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h. */
4644#include <ctype.h>
4645#include <stdlib.h>
4646#if ((' ' & 0x0FF) == 0x020)
4647# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649#else
4650# define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655#endif
4656
4657#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4658int
4659main ()
4660{
4661 int i;
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4665 return 2;
4666 return 0;
4667}
4668_ACEOF
4669if ac_fn_c_try_run "$LINENO"; then :
90c80887 4670
90c80887 4671else
f11781c5 4672 ac_cv_header_stdc=no
90c80887 4673fi
f11781c5
AK
4674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4675 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4676fi
90c80887 4677
90c80887 4678fi
90c80887 4679fi
f11781c5
AK
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4681$as_echo "$ac_cv_header_stdc" >&6; }
4682if test $ac_cv_header_stdc = yes; then
90c80887 4683
f11781c5 4684$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4685
90c80887 4686fi
f11781c5
AK
4687
4688# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4689for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4690 inttypes.h stdint.h unistd.h
4691do :
4692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4694"
4695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4696 cat >>confdefs.h <<_ACEOF
4697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4698_ACEOF
4699
90c80887 4700fi
f11781c5
AK
4701
4702done
4703
4704
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4706$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4707if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709else
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711/* end confdefs.h. */
4712#include <sys/types.h>
4713int
4714main ()
4715{
4716return makedev(0, 0);
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721if ac_fn_c_try_link "$LINENO"; then :
4722 ac_cv_header_sys_types_h_makedev=yes
4723else
4724 ac_cv_header_sys_types_h_makedev=no
90c80887 4725fi
f11781c5
AK
4726rm -f core conftest.err conftest.$ac_objext \
4727 conftest$ac_exeext conftest.$ac_ext
4728
90c80887 4729fi
f11781c5
AK
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4731$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4732
4733if test $ac_cv_header_sys_types_h_makedev = no; then
4734ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4735if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4736
4737$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4738
a946372e 4739fi
e2997b73 4740
e2997b73 4741
a946372e 4742
f11781c5
AK
4743 if test $ac_cv_header_sys_mkdev_h = no; then
4744 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4745if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4746
4747$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4748
e2997b73 4749fi
a946372e 4750
a946372e 4751
f11781c5
AK
4752 fi
4753fi
4754
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4756$as_echo_n "checking for ANSI C header files... " >&6; }
4757if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4758 $as_echo_n "(cached) " >&6
4759else
f11781c5 4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4761/* end confdefs.h. */
f11781c5
AK
4762#include <stdlib.h>
4763#include <stdarg.h>
4764#include <string.h>
4765#include <float.h>
a946372e 4766
a946372e
AK
4767int
4768main ()
4769{
f11781c5 4770
a946372e
AK
4771 ;
4772 return 0;
4773}
4774_ACEOF
f11781c5
AK
4775if ac_fn_c_try_compile "$LINENO"; then :
4776 ac_cv_header_stdc=yes
e2997b73 4777else
f11781c5
AK
4778 ac_cv_header_stdc=no
4779fi
4780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781
4782if test $ac_cv_header_stdc = yes; then
4783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785/* end confdefs.h. */
4786#include <string.h>
4787
4788_ACEOF
4789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4791
f11781c5
AK
4792else
4793 ac_cv_header_stdc=no
a946372e 4794fi
f11781c5 4795rm -f conftest*
e2997b73 4796
a946372e 4797fi
e2997b73 4798
f11781c5
AK
4799if test $ac_cv_header_stdc = yes; then
4800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802/* end confdefs.h. */
4803#include <stdlib.h>
4804
4805_ACEOF
4806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4808
e2997b73 4809else
f11781c5 4810 ac_cv_header_stdc=no
e2997b73 4811fi
f11781c5 4812rm -f conftest*
e2997b73 4813
f11781c5 4814fi
a946372e 4815
f11781c5
AK
4816if test $ac_cv_header_stdc = yes; then
4817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4818 if test "$cross_compiling" = yes; then :
4819 :
4820else
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822/* end confdefs.h. */
4823#include <ctype.h>
4824#include <stdlib.h>
4825#if ((' ' & 0x0FF) == 0x020)
4826# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4827# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4828#else
4829# define ISLOWER(c) \
4830 (('a' <= (c) && (c) <= 'i') \
4831 || ('j' <= (c) && (c) <= 'r') \
4832 || ('s' <= (c) && (c) <= 'z'))
4833# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4834#endif
e2997b73 4835
f11781c5
AK
4836#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4837int
4838main ()
4839{
4840 int i;
4841 for (i = 0; i < 256; i++)
4842 if (XOR (islower (i), ISLOWER (i))
4843 || toupper (i) != TOUPPER (i))
4844 return 2;
4845 return 0;
4846}
4847_ACEOF
4848if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4849
e2997b73 4850else
f11781c5 4851 ac_cv_header_stdc=no
e2997b73 4852fi
f11781c5
AK
4853rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4854 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4855fi
f11781c5 4856
e2997b73 4857fi
e2997b73 4858fi
f11781c5
AK
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4860$as_echo "$ac_cv_header_stdc" >&6; }
4861if test $ac_cv_header_stdc = yes; then
e2997b73 4862
f11781c5 4863$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4864
f11781c5 4865fi
e2997b73 4866
f11781c5
AK
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4868$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4869if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873/* end confdefs.h. */
4874#include <sys/types.h>
4875#include <sys/wait.h>
4876#ifndef WEXITSTATUS
4877# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4878#endif
4879#ifndef WIFEXITED
4880# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4881#endif
e2997b73 4882
f11781c5
AK
4883int
4884main ()
4885{
4886 int s;
4887 wait (&s);
4888 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4889 ;
4890 return 0;
4891}
4892_ACEOF
4893if ac_fn_c_try_compile "$LINENO"; then :
4894 ac_cv_header_sys_wait_h=yes
e2997b73 4895else
f11781c5 4896 ac_cv_header_sys_wait_h=no
e2997b73 4897fi
f11781c5
AK
4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4901$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4902if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4903
f11781c5 4904$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4905
d0191583 4906fi
f11781c5
AK
4907
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4909$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4910if test "${ac_cv_header_time+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
fc54be10 4912else
f11781c5 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4914/* end confdefs.h. */
f11781c5
AK
4915#include <sys/types.h>
4916#include <sys/time.h>
4917#include <time.h>
4918
4919int
4920main ()
4921{
4922if ((struct tm *) 0)
4923return 0;
4924 ;
4925 return 0;
4926}
a946372e 4927_ACEOF
f11781c5
AK
4928if ac_fn_c_try_compile "$LINENO"; then :
4929 ac_cv_header_time=yes
a946372e 4930else
f11781c5
AK
4931 ac_cv_header_time=no
4932fi
4933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934fi
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4936$as_echo "$ac_cv_header_time" >&6; }
4937if test $ac_cv_header_time = yes; then
4938
4939$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4940
4941fi
4942
4943
4944for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4945 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4946 sys/wait.h time.h
4947do :
4948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4949ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4950if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4951 cat >>confdefs.h <<_ACEOF
4952#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4953_ACEOF
d0191583 4954
f11781c5
AK
4955else
4956 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4957fi
4958
f11781c5 4959done
fddafd51 4960
f11781c5
AK
4961
4962case "$host_os" in
4963 linux*)
4964 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4965do :
4966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4967ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4969 cat >>confdefs.h <<_ACEOF
4970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4971_ACEOF
a946372e 4972
f11781c5
AK
4973else
4974 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4975fi
4976
f11781c5
AK
4977done
4978 ;;
4979 darwin*)
4980 for ac_header in machine/endian.h sys/disk.h
4981do :
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4985 cat >>confdefs.h <<_ACEOF
4986#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987_ACEOF
a946372e 4988
f11781c5
AK
4989else
4990 as_fn_error $? "bailing out" "$LINENO" 5
4991fi
a946372e 4992
f11781c5
AK
4993done
4994 ;;
a946372e 4995esac
f11781c5
AK
4996
4997for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4998 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4999 sys/types.h unistd.h
5000do :
5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5003if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5004 cat >>confdefs.h <<_ACEOF
5005#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006_ACEOF
5007
a946372e 5008else
f11781c5 5009 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5010fi
a946372e 5011
f11781c5
AK
5012done
5013
5014for ac_header in termios.h sys/statvfs.h
5015do :
5016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5019 cat >>confdefs.h <<_ACEOF
5020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021_ACEOF
5022
a946372e
AK
5023fi
5024
5025done
5026
a946372e 5027
f11781c5
AK
5028################################################################################
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5030$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5031if test "${ac_cv_c_const+set}" = set; then :
a946372e 5032 $as_echo_n "(cached) " >&6
a946372e 5033else
f11781c5 5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5035/* end confdefs.h. */
a946372e 5036
f11781c5
AK
5037int
5038main ()
5039{
5040/* FIXME: Include the comments suggested by Paul. */
5041#ifndef __cplusplus
5042 /* Ultrix mips cc rejects this. */
5043 typedef int charset[2];
5044 const charset cs;
5045 /* SunOS 4.1.1 cc rejects this. */
5046 char const *const *pcpcc;
5047 char **ppc;
5048 /* NEC SVR4.0.2 mips cc rejects this. */
5049 struct point {int x, y;};
5050 static struct point const zero = {0,0};
5051 /* AIX XL C 1.02.0.0 rejects this.
5052 It does not let you subtract one const X* pointer from another in
5053 an arm of an if-expression whose if-part is not a constant
5054 expression */
5055 const char *g = "string";
5056 pcpcc = &g + (g ? g-g : 0);
5057 /* HPUX 7.0 cc rejects these. */
5058 ++pcpcc;
5059 ppc = (char**) pcpcc;
5060 pcpcc = (char const *const *) ppc;
5061 { /* SCO 3.2v4 cc rejects this. */
5062 char *t;
5063 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5064
f11781c5
AK
5065 *t++ = 0;
5066 if (s) return 0;
5067 }
5068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5069 int x[] = {25, 17};
5070 const int *foo = &x[0];
5071 ++foo;
5072 }
5073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5074 typedef const int *iptr;
5075 iptr p = 0;
5076 ++p;
5077 }
5078 { /* AIX XL C 1.02.0.0 rejects this saying
5079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5080 struct s { int j; const int *ap[3]; };
5081 struct s *b; b->j = 5;
5082 }
5083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5084 const int foo = 10;
5085 if (!foo) return 0;
5086 }
5087 return !cs[0] && !zero.x;
5088#endif
a946372e 5089
f11781c5
AK
5090 ;
5091 return 0;
5092}
a946372e 5093_ACEOF
f11781c5
AK
5094if ac_fn_c_try_compile "$LINENO"; then :
5095 ac_cv_c_const=yes
a946372e 5096else
f11781c5
AK
5097 ac_cv_c_const=no
5098fi
5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5100fi
f11781c5
AK
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5102$as_echo "$ac_cv_c_const" >&6; }
5103if test $ac_cv_c_const = no; then
a946372e 5104
f11781c5 5105$as_echo "#define const /**/" >>confdefs.h
a946372e 5106
f11781c5 5107fi
a946372e 5108
f11781c5
AK
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5110$as_echo_n "checking for inline... " >&6; }
5111if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5112 $as_echo_n "(cached) " >&6
5113else
f11781c5
AK
5114 ac_cv_c_inline=no
5115for ac_kw in inline __inline__ __inline; do
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117/* end confdefs.h. */
5118#ifndef __cplusplus
5119typedef int foo_t;
5120static $ac_kw foo_t static_foo () {return 0; }
5121$ac_kw foo_t foo () {return 0; }
5122#endif
5123
5124_ACEOF
5125if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_c_inline=$ac_kw
a946372e 5127fi
f11781c5
AK
5128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 test "$ac_cv_c_inline" != no && break
5130done
a946372e
AK
5131
5132fi
f11781c5
AK
5133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5134$as_echo "$ac_cv_c_inline" >&6; }
5135
5136case $ac_cv_c_inline in
5137 inline | yes) ;;
5138 *)
5139 case $ac_cv_c_inline in
5140 no) ac_val=;;
5141 *) ac_val=$ac_cv_c_inline;;
5142 esac
5143 cat >>confdefs.h <<_ACEOF
5144#ifndef __cplusplus
5145#define inline $ac_val
5146#endif
5147_ACEOF
5148 ;;
5149esac
5150
5151ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5152if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5153
5154cat >>confdefs.h <<_ACEOF
5155#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5156_ACEOF
5157
f11781c5 5158
a946372e
AK
5159fi
5160
f11781c5
AK
5161ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5162if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5163
a946372e 5164else
f11781c5
AK
5165
5166cat >>confdefs.h <<_ACEOF
5167#define off_t long int
5168_ACEOF
5169
a946372e
AK
5170fi
5171
f11781c5
AK
5172ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5173if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5174
a946372e 5175else
f11781c5
AK
5176
5177cat >>confdefs.h <<_ACEOF
5178#define pid_t int
5179_ACEOF
5180
5181fi
5182
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5184$as_echo_n "checking return type of signal handlers... " >&6; }
5185if test "${ac_cv_type_signal+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
a946372e 5187else
f11781c5
AK
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189/* end confdefs.h. */
5190#include <sys/types.h>
5191#include <signal.h>
5192
5193int
5194main ()
5195{
5196return *(signal (0, 0)) (0) == 1;
5197 ;
5198 return 0;
5199}
5200_ACEOF
5201if ac_fn_c_try_compile "$LINENO"; then :
5202 ac_cv_type_signal=int
5203else
5204 ac_cv_type_signal=void
a946372e 5205fi
f11781c5 5206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5207fi
f11781c5
AK
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5209$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5210
f11781c5
AK
5211cat >>confdefs.h <<_ACEOF
5212#define RETSIGTYPE $ac_cv_type_signal
5213_ACEOF
a946372e
AK
5214
5215
f11781c5
AK
5216ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5217if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5218
a946372e 5219else
a946372e 5220
f11781c5
AK
5221cat >>confdefs.h <<_ACEOF
5222#define size_t unsigned int
5223_ACEOF
a946372e 5224
a946372e 5225fi
f11781c5
AK
5226
5227ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5228if test "x$ac_cv_type_mode_t" = x""yes; then :
5229
a946372e 5230else
f11781c5
AK
5231
5232cat >>confdefs.h <<_ACEOF
5233#define mode_t int
a946372e 5234_ACEOF
a946372e 5235
a946372e
AK
5236fi
5237
f11781c5
AK
5238ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5239case $ac_cv_c_int8_t in #(
5240 no|yes) ;; #(
5241 *)
a946372e 5242
f11781c5
AK
5243cat >>confdefs.h <<_ACEOF
5244#define int8_t $ac_cv_c_int8_t
a946372e 5245_ACEOF
f11781c5 5246;;
a946372e 5247esac
a946372e 5248
f11781c5
AK
5249ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5250case $ac_cv_c_int16_t in #(
5251 no|yes) ;; #(
5252 *)
a946372e 5253
f11781c5
AK
5254cat >>confdefs.h <<_ACEOF
5255#define int16_t $ac_cv_c_int16_t
5256_ACEOF
5257;;
5258esac
a946372e 5259
f11781c5
AK
5260ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5261case $ac_cv_c_int32_t in #(
5262 no|yes) ;; #(
5263 *)
a946372e 5264
f11781c5
AK
5265cat >>confdefs.h <<_ACEOF
5266#define int32_t $ac_cv_c_int32_t
5267_ACEOF
5268;;
a946372e 5269esac
a946372e 5270
f11781c5
AK
5271ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5272case $ac_cv_c_int64_t in #(
5273 no|yes) ;; #(
5274 *)
5275
5276cat >>confdefs.h <<_ACEOF
5277#define int64_t $ac_cv_c_int64_t
a946372e 5278_ACEOF
f11781c5
AK
5279;;
5280esac
5281
5282ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5283if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5284
5285else
a946372e 5286
f11781c5
AK
5287cat >>confdefs.h <<_ACEOF
5288#define ssize_t int
5289_ACEOF
a946372e 5290
f11781c5 5291fi
a946372e 5292
f11781c5
AK
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5294$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5295if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5296 $as_echo_n "(cached) " >&6
a946372e 5297else
f11781c5 5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5299/* end confdefs.h. */
f11781c5
AK
5300#include <sys/types.h>
5301
a946372e 5302_ACEOF
f11781c5
AK
5303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5304 $EGREP "uid_t" >/dev/null 2>&1; then :
5305 ac_cv_type_uid_t=yes
a946372e 5306else
f11781c5
AK
5307 ac_cv_type_uid_t=no
5308fi
5309rm -f conftest*
a946372e 5310
a946372e 5311fi
f11781c5
AK
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5313$as_echo "$ac_cv_type_uid_t" >&6; }
5314if test $ac_cv_type_uid_t = no; then
a946372e 5315
f11781c5 5316$as_echo "#define uid_t int" >>confdefs.h
a946372e 5317
f11781c5
AK
5318
5319$as_echo "#define gid_t int" >>confdefs.h
5320
5321fi
5322
5323ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5324case $ac_cv_c_uint8_t in #(
5325 no|yes) ;; #(
5326 *)
5327
5328$as_echo "#define _UINT8_T 1" >>confdefs.h
5329
5330
5331cat >>confdefs.h <<_ACEOF
5332#define uint8_t $ac_cv_c_uint8_t
a946372e 5333_ACEOF
f11781c5
AK
5334;;
5335 esac
5336
5337ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5338case $ac_cv_c_uint16_t in #(
5339 no|yes) ;; #(
5340 *)
5341
5342
5343cat >>confdefs.h <<_ACEOF
5344#define uint16_t $ac_cv_c_uint16_t
a946372e 5345_ACEOF
f11781c5
AK
5346;;
5347 esac
a946372e 5348
f11781c5
AK
5349ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5350case $ac_cv_c_uint32_t in #(
5351 no|yes) ;; #(
5352 *)
a946372e 5353
f11781c5 5354$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5355
a946372e 5356
f11781c5
AK
5357cat >>confdefs.h <<_ACEOF
5358#define uint32_t $ac_cv_c_uint32_t
5359_ACEOF
5360;;
5361 esac
5362
5363ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5364case $ac_cv_c_uint64_t in #(
5365 no|yes) ;; #(
5366 *)
5367
5368$as_echo "#define _UINT64_T 1" >>confdefs.h
5369
5370
5371cat >>confdefs.h <<_ACEOF
5372#define uint64_t $ac_cv_c_uint64_t
5373_ACEOF
5374;;
5375 esac
5376
5377ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5378if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5379
5380cat >>confdefs.h <<_ACEOF
5381#define HAVE_STRUCT_STAT_ST_RDEV 1
5382_ACEOF
5383
5384
5385fi
5386
5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5388$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5389if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5390 $as_echo_n "(cached) " >&6
5391else
f11781c5
AK
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393/* end confdefs.h. */
5394#include <sys/types.h>
5395#include <time.h>
5396
5397int
5398main ()
5399{
5400struct tm tm;
5401 int *p = &tm.tm_sec;
5402 return !p;
5403 ;
5404 return 0;
5405}
5406_ACEOF
5407if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_struct_tm=time.h
5409else
5410 ac_cv_struct_tm=sys/time.h
a946372e 5411fi
f11781c5
AK
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413fi
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5415$as_echo "$ac_cv_struct_tm" >&6; }
5416if test $ac_cv_struct_tm = sys/time.h; then
5417
5418$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5419
5420fi
f11781c5
AK
5421
5422
5423################################################################################
5424for ac_func in ftruncate gethostname getpagesize \
5425 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5426 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5427 strstr strtol strtoul uname
5428do :
5429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5430ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5431if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5432 cat >>confdefs.h <<_ACEOF
f11781c5 5433#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5434_ACEOF
5435
5436else
f11781c5 5437 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5438fi
a946372e
AK
5439done
5440
f11781c5
AK
5441for ac_func in siginterrupt
5442do :
5443 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5444if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5445 cat >>confdefs.h <<_ACEOF
5446#define HAVE_SIGINTERRUPT 1
5447_ACEOF
a946372e 5448
f11781c5
AK
5449fi
5450done
a946372e 5451
f11781c5
AK
5452# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5453# for constant arguments. Useless!
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5455$as_echo_n "checking for working alloca.h... " >&6; }
5456if test "${ac_cv_working_alloca_h+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
a946372e 5458else
f11781c5
AK
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h. */
5461#include <alloca.h>
5462int
5463main ()
5464{
5465char *p = (char *) alloca (2 * sizeof (int));
5466 if (p) return 0;
5467 ;
5468 return 0;
5469}
5470_ACEOF
5471if ac_fn_c_try_link "$LINENO"; then :
5472 ac_cv_working_alloca_h=yes
a946372e 5473else
f11781c5 5474 ac_cv_working_alloca_h=no
a946372e 5475fi
f11781c5
AK
5476rm -f core conftest.err conftest.$ac_objext \
5477 conftest$ac_exeext conftest.$ac_ext
a946372e 5478fi
f11781c5
AK
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5480$as_echo "$ac_cv_working_alloca_h" >&6; }
5481if test $ac_cv_working_alloca_h = yes; then
a946372e 5482
f11781c5 5483$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5484
a946372e 5485fi
a946372e 5486
f11781c5
AK
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5488$as_echo_n "checking for alloca... " >&6; }
5489if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5490 $as_echo_n "(cached) " >&6
a946372e 5491else
f11781c5 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5493/* end confdefs.h. */
f11781c5
AK
5494#ifdef __GNUC__
5495# define alloca __builtin_alloca
5496#else
5497# ifdef _MSC_VER
5498# include <malloc.h>
5499# define alloca _alloca
5500# else
5501# ifdef HAVE_ALLOCA_H
5502# include <alloca.h>
5503# else
5504# ifdef _AIX
5505 #pragma alloca
5506# else
5507# ifndef alloca /* predefined by HP cc +Olibcalls */
5508char *alloca ();
5509# endif
5510# endif
5511# endif
5512# endif
5513#endif
a946372e 5514
f11781c5
AK
5515int
5516main ()
5517{
5518char *p = (char *) alloca (1);
5519 if (p) return 0;
5520 ;
5521 return 0;
5522}
a946372e 5523_ACEOF
f11781c5
AK
5524if ac_fn_c_try_link "$LINENO"; then :
5525 ac_cv_func_alloca_works=yes
a946372e 5526else
f11781c5 5527 ac_cv_func_alloca_works=no
a946372e 5528fi
f11781c5
AK
5529rm -f core conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext conftest.$ac_ext
5531fi
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5533$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5534
f11781c5 5535if test $ac_cv_func_alloca_works = yes; then
a946372e 5536
f11781c5 5537$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5538
a946372e 5539else
f11781c5
AK
5540 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5541# that cause trouble. Some versions do not even contain alloca or
5542# contain a buggy version. If you still want to use their alloca,
5543# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5544
f11781c5 5545ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5546
f11781c5 5547$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5548
a946372e 5549
f11781c5
AK
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5551$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5552if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5553 $as_echo_n "(cached) " >&6
a946372e 5554else
f11781c5 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5556/* end confdefs.h. */
f11781c5
AK
5557#if defined CRAY && ! defined CRAY2
5558webecray
5559#else
5560wenotbecray
5561#endif
5562
a946372e 5563_ACEOF
f11781c5
AK
5564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5565 $EGREP "webecray" >/dev/null 2>&1; then :
5566 ac_cv_os_cray=yes
a946372e 5567else
f11781c5 5568 ac_cv_os_cray=no
a946372e 5569fi
f11781c5 5570rm -f conftest*
a946372e 5571
f11781c5
AK
5572fi
5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5574$as_echo "$ac_cv_os_cray" >&6; }
5575if test $ac_cv_os_cray = yes; then
5576 for ac_func in _getb67 GETB67 getb67; do
5577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5578ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5579if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5580
f11781c5
AK
5581cat >>confdefs.h <<_ACEOF
5582#define CRAY_STACKSEG_END $ac_func
a946372e 5583_ACEOF
a946372e 5584
f11781c5 5585 break
a946372e
AK
5586fi
5587
f11781c5
AK
5588 done
5589fi
a946372e 5590
f11781c5
AK
5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5592$as_echo_n "checking stack direction for C alloca... " >&6; }
5593if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5594 $as_echo_n "(cached) " >&6
5595else
f11781c5
AK
5596 if test "$cross_compiling" = yes; then :
5597 ac_cv_c_stack_direction=0
5598else
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h. */
5601$ac_includes_default
5602int
5603find_stack_direction ()
5604{
5605 static char *addr = 0;
5606 auto char dummy;
5607 if (addr == 0)
5608 {
5609 addr = &dummy;
5610 return find_stack_direction ();
5611 }
5612 else
5613 return (&dummy > addr) ? 1 : -1;
5614}
5615
5616int
5617main ()
5618{
5619 return find_stack_direction () < 0;
5620}
5621_ACEOF
5622if ac_fn_c_try_run "$LINENO"; then :
5623 ac_cv_c_stack_direction=1
5624else
5625 ac_cv_c_stack_direction=-1
5626fi
5627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5628 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5629fi
a946372e
AK
5630
5631fi
f11781c5
AK
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5633$as_echo "$ac_cv_c_stack_direction" >&6; }
5634cat >>confdefs.h <<_ACEOF
5635#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5636_ACEOF
5637
f11781c5 5638
a946372e
AK
5639fi
5640
f11781c5
AK
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5642$as_echo_n "checking whether closedir returns void... " >&6; }
5643if test "${ac_cv_func_closedir_void+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5645else
5646 if test "$cross_compiling" = yes; then :
5647 ac_cv_func_closedir_void=yes
5648else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650/* end confdefs.h. */
5651$ac_includes_default
5652#include <$ac_header_dirent>
5653#ifndef __cplusplus
5654int closedir ();
5655#endif
a946372e 5656
f11781c5
AK
5657int
5658main ()
5659{
5660return closedir (opendir (".")) != 0;
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_run "$LINENO"; then :
5666 ac_cv_func_closedir_void=no
a946372e 5667else
f11781c5 5668 ac_cv_func_closedir_void=yes
a946372e 5669fi
f11781c5
AK
5670rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5671 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5672fi
5673
f11781c5
AK
5674fi
5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5676$as_echo "$ac_cv_func_closedir_void" >&6; }
5677if test $ac_cv_func_closedir_void = yes; then
a946372e 5678
f11781c5 5679$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5680
a946372e
AK
5681fi
5682
f11781c5
AK
5683for ac_header in unistd.h
5684do :
5685 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5686if test "x$ac_cv_header_unistd_h" = x""yes; then :
5687 cat >>confdefs.h <<_ACEOF
5688#define HAVE_UNISTD_H 1
5689_ACEOF
a946372e 5690
f11781c5 5691fi
a946372e 5692
f11781c5 5693done
a946372e 5694
f11781c5
AK
5695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5696$as_echo_n "checking for working chown... " >&6; }
5697if test "${ac_cv_func_chown_works+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
a946372e 5699else
f11781c5
AK
5700 if test "$cross_compiling" = yes; then :
5701 ac_cv_func_chown_works=no
a946372e 5702else
f11781c5
AK
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h. */
5705$ac_includes_default
5706#include <fcntl.h>
a946372e 5707
f11781c5
AK
5708int
5709main ()
5710{
5711 char *f = "conftest.chown";
5712 struct stat before, after;
a946372e 5713
f11781c5
AK
5714 if (creat (f, 0600) < 0)
5715 return 1;
5716 if (stat (f, &before) < 0)
5717 return 1;
5718 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5719 return 1;
5720 if (stat (f, &after) < 0)
5721 return 1;
5722 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5723
f11781c5
AK
5724 ;
5725 return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_run "$LINENO"; then :
5729 ac_cv_func_chown_works=yes
a946372e 5730else
f11781c5 5731 ac_cv_func_chown_works=no
a946372e 5732fi
f11781c5
AK
5733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5734 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5735fi
5736
f11781c5 5737rm -f conftest.chown
a946372e 5738
f11781c5
AK
5739fi
5740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5741$as_echo "$ac_cv_func_chown_works" >&6; }
5742if test $ac_cv_func_chown_works = yes; then
a946372e 5743
f11781c5 5744$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5745
a946372e 5746fi
a946372e 5747
f11781c5
AK
5748for ac_header in vfork.h
5749do :
5750 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5751if test "x$ac_cv_header_vfork_h" = x""yes; then :
5752 cat >>confdefs.h <<_ACEOF
5753#define HAVE_VFORK_H 1
5754_ACEOF
a946372e 5755
f11781c5 5756fi
a946372e 5757
f11781c5 5758done
a946372e 5759
f11781c5
AK
5760for ac_func in fork vfork
5761do :
5762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5763ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5764if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5765 cat >>confdefs.h <<_ACEOF
5766#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5767_ACEOF
a946372e 5768
f11781c5
AK
5769fi
5770done
a946372e 5771
f11781c5
AK
5772if test "x$ac_cv_func_fork" = xyes; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5774$as_echo_n "checking for working fork... " >&6; }
5775if test "${ac_cv_func_fork_works+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777else
5778 if test "$cross_compiling" = yes; then :
5779 ac_cv_func_fork_works=cross
5780else
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782/* end confdefs.h. */
5783$ac_includes_default
5784int
5785main ()
5786{
a946372e 5787
f11781c5
AK
5788 /* By Ruediger Kuhlmann. */
5789 return fork () < 0;
a946372e 5790
f11781c5
AK
5791 ;
5792 return 0;
5793}
5794_ACEOF
5795if ac_fn_c_try_run "$LINENO"; then :
5796 ac_cv_func_fork_works=yes
a946372e 5797else
f11781c5
AK
5798 ac_cv_func_fork_works=no
5799fi
5800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5801 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5802fi
a946372e 5803
f11781c5
AK
5804fi
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5806$as_echo "$ac_cv_func_fork_works" >&6; }
5807
a946372e 5808else
f11781c5 5809 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5810fi
f11781c5
AK
5811if test "x$ac_cv_func_fork_works" = xcross; then
5812 case $host in
5813 *-*-amigaos* | *-*-msdosdjgpp*)
5814 # Override, as these systems have only a dummy fork() stub
5815 ac_cv_func_fork_works=no
5816 ;;
5817 *)
5818 ac_cv_func_fork_works=yes
5819 ;;
5820 esac
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5822$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5823fi
f11781c5
AK
5824ac_cv_func_vfork_works=$ac_cv_func_vfork
5825if test "x$ac_cv_func_vfork" = xyes; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5827$as_echo_n "checking for working vfork... " >&6; }
5828if test "${ac_cv_func_vfork_works+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830else
5831 if test "$cross_compiling" = yes; then :
5832 ac_cv_func_vfork_works=cross
5833else
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835/* end confdefs.h. */
5836/* Thanks to Paul Eggert for this test. */
5837$ac_includes_default
5838#include <sys/wait.h>
5839#ifdef HAVE_VFORK_H
5840# include <vfork.h>
5841#endif
5842/* On some sparc systems, changes by the child to local and incoming
5843 argument registers are propagated back to the parent. The compiler
5844 is told about this with #include <vfork.h>, but some compilers
5845 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5846 static variable whose address is put into a register that is
5847 clobbered by the vfork. */
5848static void
5849#ifdef __cplusplus
5850sparc_address_test (int arg)
5851# else
5852sparc_address_test (arg) int arg;
5853#endif
5854{
5855 static pid_t child;
5856 if (!child) {
5857 child = vfork ();
5858 if (child < 0) {
5859 perror ("vfork");
5860 _exit(2);
5861 }
5862 if (!child) {
5863 arg = getpid();
5864 write(-1, "", 0);
5865 _exit (arg);
5866 }
5867 }
5868}
a946372e 5869
f11781c5
AK
5870int
5871main ()
5872{
5873 pid_t parent = getpid ();
5874 pid_t child;
a946372e 5875
f11781c5 5876 sparc_address_test (0);
a946372e 5877
f11781c5 5878 child = vfork ();
a946372e 5879
f11781c5
AK
5880 if (child == 0) {
5881 /* Here is another test for sparc vfork register problems. This
5882 test uses lots of local variables, at least as many local
5883 variables as main has allocated so far including compiler
5884 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5885 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5886 reuse the register of parent for one of the local variables,
5887 since it will think that parent can't possibly be used any more
5888 in this routine. Assigning to the local variable will thus
5889 munge parent in the parent process. */
5890 pid_t
5891 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5892 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5893 /* Convince the compiler that p..p7 are live; otherwise, it might
5894 use the same hardware register for all 8 local variables. */
5895 if (p != p1 || p != p2 || p != p3 || p != p4
5896 || p != p5 || p != p6 || p != p7)
5897 _exit(1);
a946372e 5898
f11781c5
AK
5899 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5900 from child file descriptors. If the child closes a descriptor
5901 before it execs or exits, this munges the parent's descriptor
5902 as well. Test for this by closing stdout in the child. */
5903 _exit(close(fileno(stdout)) != 0);
5904 } else {
5905 int status;
5906 struct stat st;
5907
5908 while (wait(&status) != child)
5909 ;
5910 return (
5911 /* Was there some problem with vforking? */
5912 child < 0
5913
5914 /* Did the child fail? (This shouldn't happen.) */
5915 || status
5916
5917 /* Did the vfork/compiler bug occur? */
5918 || parent != getpid()
5919
5920 /* Did the file descriptor bug occur? */
5921 || fstat(fileno(stdout), &st) != 0
5922 );
5923 }
5924}
5925_ACEOF
5926if ac_fn_c_try_run "$LINENO"; then :
5927 ac_cv_func_vfork_works=yes
a946372e 5928else
f11781c5 5929 ac_cv_func_vfork_works=no
a946372e 5930fi
f11781c5
AK
5931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5932 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5933fi
f11781c5 5934
a946372e 5935fi
f11781c5
AK
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5937$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5938
f11781c5
AK
5939fi;
5940if test "x$ac_cv_func_fork_works" = xcross; then
5941 ac_cv_func_vfork_works=$ac_cv_func_vfork
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5943$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5944fi
a946372e 5945
f11781c5 5946if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5947
f11781c5 5948$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5949
a946372e 5950else
a946372e 5951
f11781c5
AK
5952$as_echo "#define vfork fork" >>confdefs.h
5953
a946372e 5954fi
f11781c5 5955if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5956
f11781c5 5957$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5958
a946372e 5959fi
f11781c5
AK
5960
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5962$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5963if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
a946372e 5965else
f11781c5
AK
5966 rm -f conftest.sym conftest.file
5967echo >conftest.file
5968if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5969 if test "$cross_compiling" = yes; then :
5970 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5971else
f11781c5 5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5973/* end confdefs.h. */
f11781c5
AK
5974$ac_includes_default
5975int
5976main ()
5977{
5978struct stat sbuf;
5979 /* Linux will dereference the symlink and fail, as required by POSIX.
5980 That is better in the sense that it means we will not
5981 have to compile and use the lstat wrapper. */
5982 return lstat ("conftest.sym/", &sbuf) == 0;
5983 ;
5984 return 0;
5985}
a946372e 5986_ACEOF
f11781c5
AK
5987if ac_fn_c_try_run "$LINENO"; then :
5988 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5989else
f11781c5 5990 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5991fi
f11781c5
AK
5992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5993 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5994fi
a946372e 5995
a946372e 5996else
f11781c5
AK
5997 # If the `ln -s' command failed, then we probably don't even
5998 # have an lstat function.
5999 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 6000fi
f11781c5 6001rm -f conftest.sym conftest.file
a946372e 6002
f11781c5
AK
6003fi
6004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6005$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 6006
f11781c5 6007test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 6008
f11781c5
AK
6009cat >>confdefs.h <<_ACEOF
6010#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6011_ACEOF
a946372e 6012
a946372e 6013
f11781c5
AK
6014if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6015 case " $LIBOBJS " in
6016 *" lstat.$ac_objext "* ) ;;
6017 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6018 ;;
6019esac
a946372e 6020
f11781c5 6021fi
a946372e 6022
f11781c5
AK
6023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6024$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6025if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
a946372e 6027else
f11781c5
AK
6028 if test "$cross_compiling" = yes; then :
6029 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6030else
f11781c5
AK
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032/* end confdefs.h. */
6033$ac_includes_default
6034int
6035main ()
6036{
6037struct stat sbuf;
6038 return lstat ("", &sbuf) == 0;
6039 ;
6040 return 0;
6041}
6042_ACEOF
6043if ac_fn_c_try_run "$LINENO"; then :
6044 ac_cv_func_lstat_empty_string_bug=no
6045else
6046 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6047fi
f11781c5
AK
6048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6049 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6050fi
6051
f11781c5
AK
6052fi
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6054$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6055if test $ac_cv_func_lstat_empty_string_bug = yes; then
6056 case " $LIBOBJS " in
6057 *" lstat.$ac_objext "* ) ;;
6058 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6059 ;;
6060esac
a946372e
AK
6061
6062
f11781c5
AK
6063cat >>confdefs.h <<_ACEOF
6064#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6065_ACEOF
a946372e 6066
a946372e 6067fi
a946372e 6068
f11781c5
AK
6069for ac_header in stdlib.h
6070do :
6071 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6072if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6073 cat >>confdefs.h <<_ACEOF
6074#define HAVE_STDLIB_H 1
6075_ACEOF
6076
a946372e
AK
6077fi
6078
f11781c5 6079done
a946372e 6080
f11781c5
AK
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6082$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6083if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085else
6086 if test "$cross_compiling" = yes; then :
6087 ac_cv_func_malloc_0_nonnull=no
6088else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h. */
6091#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6092# include <stdlib.h>
6093#else
6094char *malloc ();
6095#endif
a946372e 6096
f11781c5
AK
6097int
6098main ()
6099{
6100return ! malloc (0);
6101 ;
6102 return 0;
6103}
6104_ACEOF
6105if ac_fn_c_try_run "$LINENO"; then :
6106 ac_cv_func_malloc_0_nonnull=yes
a946372e 6107else
f11781c5 6108 ac_cv_func_malloc_0_nonnull=no
a946372e 6109fi
f11781c5
AK
6110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6111 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6112fi
f11781c5 6113
a946372e 6114fi
f11781c5
AK
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6116$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6117if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6118
f11781c5 6119$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6120
f11781c5
AK
6121else
6122 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6123
f11781c5
AK
6124 case " $LIBOBJS " in
6125 *" malloc.$ac_objext "* ) ;;
6126 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6127 ;;
6128esac
6129
6130
6131$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6132
a946372e 6133fi
a946372e 6134
a946372e 6135
f11781c5
AK
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6137$as_echo_n "checking for working memcmp... " >&6; }
6138if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6139 $as_echo_n "(cached) " >&6
a946372e 6140else
f11781c5
AK
6141 if test "$cross_compiling" = yes; then :
6142 ac_cv_func_memcmp_working=no
6143else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6145/* end confdefs.h. */
6146$ac_includes_default
f11781c5
AK
6147int
6148main ()
6149{
a946372e 6150
f11781c5
AK
6151 /* Some versions of memcmp are not 8-bit clean. */
6152 char c0 = '\100', c1 = '\200', c2 = '\201';
6153 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6154 return 1;
a946372e 6155
f11781c5
AK
6156 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6157 or more and with at least one buffer not starting on a 4-byte boundary.
6158 William Lewis provided this test program. */
6159 {
6160 char foo[21];
6161 char bar[21];
6162 int i;
6163 for (i = 0; i < 4; i++)
6164 {
6165 char *a = foo + i;
6166 char *b = bar + i;
6167 strcpy (a, "--------01111111");
6168 strcpy (b, "--------10000000");
6169 if (memcmp (a, b, 16) >= 0)
6170 return 1;
6171 }
6172 return 0;
6173 }
a946372e 6174
f11781c5
AK
6175 ;
6176 return 0;
6177}
a946372e 6178_ACEOF
f11781c5
AK
6179if ac_fn_c_try_run "$LINENO"; then :
6180 ac_cv_func_memcmp_working=yes
a946372e 6181else
f11781c5
AK
6182 ac_cv_func_memcmp_working=no
6183fi
6184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6185 conftest.$ac_objext conftest.beam conftest.$ac_ext
6186fi
a946372e 6187
a946372e 6188fi
f11781c5
AK
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6190$as_echo "$ac_cv_func_memcmp_working" >&6; }
6191test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6192 *" memcmp.$ac_objext "* ) ;;
6193 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6194 ;;
6195esac
a946372e 6196
a946372e 6197
a946372e 6198
a946372e 6199
f11781c5
AK
6200
6201 for ac_header in $ac_header_list
6202do :
6203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6204ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6205"
6206if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6207 cat >>confdefs.h <<_ACEOF
6208#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209_ACEOF
6210
a946372e
AK
6211fi
6212
6213done
6214
a946372e 6215
f11781c5
AK
6216
6217
6218
6219
6220
6221
6222for ac_func in getpagesize
6223do :
6224 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6225if test "x$ac_cv_func_getpagesize" = x""yes; then :
6226 cat >>confdefs.h <<_ACEOF
6227#define HAVE_GETPAGESIZE 1
6228_ACEOF
6229
a946372e 6230fi
f11781c5
AK
6231done
6232
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6234$as_echo_n "checking for working mmap... " >&6; }
6235if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
a946372e 6237else
f11781c5
AK
6238 if test "$cross_compiling" = yes; then :
6239 ac_cv_func_mmap_fixed_mapped=no
6240else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6242/* end confdefs.h. */
6243$ac_includes_default
f11781c5
AK
6244/* malloc might have been renamed as rpl_malloc. */
6245#undef malloc
6246
6247/* Thanks to Mike Haertel and Jim Avera for this test.
6248 Here is a matrix of mmap possibilities:
6249 mmap private not fixed
6250 mmap private fixed at somewhere currently unmapped
6251 mmap private fixed at somewhere already mapped
6252 mmap shared not fixed
6253 mmap shared fixed at somewhere currently unmapped
6254 mmap shared fixed at somewhere already mapped
6255 For private mappings, we should verify that changes cannot be read()
6256 back from the file, nor mmap's back from the file at a different
6257 address. (There have been systems where private was not correctly
6258 implemented like the infamous i386 svr4.0, and systems where the
6259 VM page cache was not coherent with the file system buffer cache
6260 like early versions of FreeBSD and possibly contemporary NetBSD.)
6261 For shared mappings, we should conversely verify that changes get
6262 propagated back to all the places they're supposed to be.
6263
6264 Grep wants private fixed already mapped.
6265 The main things grep needs to know about mmap are:
6266 * does it exist and is it safe to write into the mmap'd area
6267 * how to use it (BSD variants) */
6268
6269#include <fcntl.h>
6270#include <sys/mman.h>
6271
6272#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6273char *malloc ();
6274#endif
6275
6276/* This mess was copied from the GNU getpagesize.h. */
6277#ifndef HAVE_GETPAGESIZE
6278# ifdef _SC_PAGESIZE
6279# define getpagesize() sysconf(_SC_PAGESIZE)
6280# else /* no _SC_PAGESIZE */
6281# ifdef HAVE_SYS_PARAM_H
6282# include <sys/param.h>
6283# ifdef EXEC_PAGESIZE
6284# define getpagesize() EXEC_PAGESIZE
6285# else /* no EXEC_PAGESIZE */
6286# ifdef NBPG
6287# define getpagesize() NBPG * CLSIZE
6288# ifndef CLSIZE
6289# define CLSIZE 1
6290# endif /* no CLSIZE */
6291# else /* no NBPG */
6292# ifdef NBPC
6293# define getpagesize() NBPC
6294# else /* no NBPC */
6295# ifdef PAGESIZE
6296# define getpagesize() PAGESIZE
6297# endif /* PAGESIZE */
6298# endif /* no NBPC */
6299# endif /* no NBPG */
6300# endif /* no EXEC_PAGESIZE */
6301# else /* no HAVE_SYS_PARAM_H */
6302# define getpagesize() 8192 /* punt totally */
6303# endif /* no HAVE_SYS_PARAM_H */
6304# endif /* no _SC_PAGESIZE */
6305
6306#endif /* no HAVE_GETPAGESIZE */
6307
6308int
6309main ()
6310{
6311 char *data, *data2, *data3;
6312 const char *cdata2;
6313 int i, pagesize;
6314 int fd, fd2;
6315
6316 pagesize = getpagesize ();
6317
6318 /* First, make a file with some known garbage in it. */
6319 data = (char *) malloc (pagesize);
6320 if (!data)
6321 return 1;
6322 for (i = 0; i < pagesize; ++i)
6323 *(data + i) = rand ();
6324 umask (0);
6325 fd = creat ("conftest.mmap", 0600);
6326 if (fd < 0)
6327 return 2;
6328 if (write (fd, data, pagesize) != pagesize)
6329 return 3;
6330 close (fd);
6331
6332 /* Next, check that the tail of a page is zero-filled. File must have
6333 non-zero length, otherwise we risk SIGBUS for entire page. */
6334 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6335 if (fd2 < 0)
6336 return 4;
6337 cdata2 = "";
6338 if (write (fd2, cdata2, 1) != 1)
6339 return 5;
6340 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6341 if (data2 == MAP_FAILED)
6342 return 6;
6343 for (i = 0; i < pagesize; ++i)
6344 if (*(data2 + i))
6345 return 7;
6346 close (fd2);
6347 if (munmap (data2, pagesize))
6348 return 8;
6349
6350 /* Next, try to mmap the file at a fixed address which already has
6351 something else allocated at it. If we can, also make sure that
6352 we see the same garbage. */
6353 fd = open ("conftest.mmap", O_RDWR);
6354 if (fd < 0)
6355 return 9;
6356 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6357 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6358 return 10;
6359 for (i = 0; i < pagesize; ++i)
6360 if (*(data + i) != *(data2 + i))
6361 return 11;
6362
6363 /* Finally, make sure that changes to the mapped area do not
6364 percolate back to the file as seen by read(). (This is a bug on
6365 some variants of i386 svr4.0.) */
6366 for (i = 0; i < pagesize; ++i)
6367 *(data2 + i) = *(data2 + i) + 1;
6368 data3 = (char *) malloc (pagesize);
6369 if (!data3)
6370 return 12;
6371 if (read (fd, data3, pagesize) != pagesize)
6372 return 13;
6373 for (i = 0; i < pagesize; ++i)
6374 if (*(data + i) != *(data3 + i))
6375 return 14;
6376 close (fd);
6377 return 0;
6378}
a946372e 6379_ACEOF
f11781c5
AK
6380if ac_fn_c_try_run "$LINENO"; then :
6381 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6382else
f11781c5
AK
6383 ac_cv_func_mmap_fixed_mapped=no
6384fi
6385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6386 conftest.$ac_objext conftest.beam conftest.$ac_ext
6387fi
a946372e 6388
a946372e 6389fi
f11781c5
AK
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6391$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6392if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6393
f11781c5 6394$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6395
f11781c5
AK
6396fi
6397rm -f conftest.mmap conftest.txt
6398
6399for ac_header in stdlib.h
6400do :
6401 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6402if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6403 cat >>confdefs.h <<_ACEOF
6404#define HAVE_STDLIB_H 1
a946372e 6405_ACEOF
f11781c5
AK
6406
6407fi
6408
6409done
6410
6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6412$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6413if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415else
6416 if test "$cross_compiling" = yes; then :
6417 ac_cv_func_realloc_0_nonnull=no
6418else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6420/* end confdefs.h. */
f11781c5
AK
6421#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6422# include <stdlib.h>
6423#else
6424char *realloc ();
6425#endif
6426
6427int
6428main ()
6429{
6430return ! realloc (0, 0);
6431 ;
6432 return 0;
6433}
a946372e 6434_ACEOF
f11781c5
AK
6435if ac_fn_c_try_run "$LINENO"; then :
6436 ac_cv_func_realloc_0_nonnull=yes
a946372e 6437else
f11781c5
AK
6438 ac_cv_func_realloc_0_nonnull=no
6439fi
6440rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6441 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6442fi
6443
f11781c5
AK
6444fi
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6446$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6447if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6448
f11781c5 6449$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6450
a946372e 6451else
f11781c5
AK
6452 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6453
6454 case " $LIBOBJS " in
6455 *" realloc.$ac_objext "* ) ;;
6456 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6457 ;;
6458esac
a946372e 6459
a946372e 6460
f11781c5
AK
6461$as_echo "#define realloc rpl_realloc" >>confdefs.h
6462
a946372e
AK
6463fi
6464
a946372e 6465
f11781c5
AK
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6467$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6468if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
a946372e 6470else
f11781c5
AK
6471 if test "$cross_compiling" = yes; then :
6472 ac_cv_func_stat_empty_string_bug=yes
6473else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h. */
6476$ac_includes_default
6477int
6478main ()
6479{
6480struct stat sbuf;
6481 return stat ("", &sbuf) == 0;
6482 ;
6483 return 0;
6484}
6485_ACEOF
6486if ac_fn_c_try_run "$LINENO"; then :
6487 ac_cv_func_stat_empty_string_bug=no
6488else
6489 ac_cv_func_stat_empty_string_bug=yes
a946372e 6490fi
f11781c5
AK
6491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6492 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6493fi
6494
8c4e8a18 6495fi
f11781c5
AK
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6497$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6498if test $ac_cv_func_stat_empty_string_bug = yes; then
6499 case " $LIBOBJS " in
6500 *" stat.$ac_objext "* ) ;;
6501 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6502 ;;
6503esac
8c4e8a18
FDN
6504
6505
6506cat >>confdefs.h <<_ACEOF
f11781c5 6507#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6508_ACEOF
6509
6510fi
6511
f11781c5
AK
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6513$as_echo_n "checking for working strtod... " >&6; }
6514if test "${ac_cv_func_strtod+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
66fd4529 6516else
f11781c5
AK
6517 if test "$cross_compiling" = yes; then :
6518 ac_cv_func_strtod=no
6519else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h. */
66fd4529 6522
f11781c5
AK
6523$ac_includes_default
6524#ifndef strtod
6525double strtod ();
6526#endif
6527int
6528main()
6529{
6530 {
6531 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6532 char *string = " +69";
6533 char *term;
6534 double value;
6535 value = strtod (string, &term);
6536 if (value != 69 || term != (string + 4))
6537 return 1;
6538 }
66fd4529 6539
f11781c5
AK
6540 {
6541 /* Under Solaris 2.4, strtod returns the wrong value for the
6542 terminating character under some conditions. */
6543 char *string = "NaN";
6544 char *term;
6545 strtod (string, &term);
6546 if (term != string && *(term - 1) == 0)
6547 return 1;
6548 }
6549 return 0;
6550}
66fd4529 6551
f11781c5
AK
6552_ACEOF
6553if ac_fn_c_try_run "$LINENO"; then :
6554 ac_cv_func_strtod=yes
66fd4529 6555else
f11781c5
AK
6556 ac_cv_func_strtod=no
6557fi
6558rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6559 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6560fi
6561
f11781c5
AK
6562fi
6563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6564$as_echo "$ac_cv_func_strtod" >&6; }
6565if test $ac_cv_func_strtod = no; then
6566 case " $LIBOBJS " in
6567 *" strtod.$ac_objext "* ) ;;
6568 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6569 ;;
6570esac
71082be4 6571
f11781c5
AK
6572ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6573if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6574
66fd4529 6575fi
a946372e 6576
f11781c5
AK
6577if test $ac_cv_func_pow = no; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6579$as_echo_n "checking for pow in -lm... " >&6; }
6580if test "${ac_cv_lib_m_pow+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582else
6583 ac_check_lib_save_LIBS=$LIBS
6584LIBS="-lm $LIBS"
6585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h. */
90c80887 6587
f11781c5
AK
6588/* Override any GCC internal prototype to avoid an error.
6589 Use char because int might match the return type of a GCC
6590 builtin and then its argument prototype would still apply. */
6591#ifdef __cplusplus
6592extern "C"
6593#endif
6594char pow ();
6595int
6596main ()
6597{
6598return pow ();
6599 ;
6600 return 0;
6601}
6602_ACEOF
6603if ac_fn_c_try_link "$LINENO"; then :
6604 ac_cv_lib_m_pow=yes
90c80887 6605else
f11781c5 6606 ac_cv_lib_m_pow=no
90c80887 6607fi
f11781c5
AK
6608rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610LIBS=$ac_check_lib_save_LIBS
90c80887 6611fi
f11781c5
AK
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6613$as_echo "$ac_cv_lib_m_pow" >&6; }
6614if test "x$ac_cv_lib_m_pow" = x""yes; then :
6615 POW_LIB=-lm
90c80887 6616else
f11781c5
AK
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6618$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6619fi
f11781c5 6620
90c80887
AK
6621fi
6622
f11781c5
AK
6623fi
6624
6625for ac_func in vprintf
6626do :
6627 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6628if test "x$ac_cv_func_vprintf" = x""yes; then :
6629 cat >>confdefs.h <<_ACEOF
6630#define HAVE_VPRINTF 1
6631_ACEOF
90c80887 6632
f11781c5
AK
6633ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6634if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6635
f11781c5 6636$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6637
90c80887 6638fi
90c80887 6639
f11781c5
AK
6640fi
6641done
90c80887 6642
90c80887 6643
90c80887 6644
f11781c5
AK
6645################################################################################
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6647$as_echo_n "checking whether to use static linking... " >&6; }
6648# Check whether --enable-static_link was given.
6649if test "${enable_static_link+set}" = set; then :
6650 enableval=$enable_static_link; STATIC_LINK=$enableval
6651else
6652 STATIC_LINK=no
6653fi
90c80887 6654
f11781c5
AK
6655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6656$as_echo "$STATIC_LINK" >&6; }
90c80887 6657
f11781c5 6658################################################################################
90c80887 6659
90c80887 6660
f11781c5
AK
6661################################################################################
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6663$as_echo_n "checking file owner... " >&6; }
90c80887 6664
f11781c5
AK
6665# Check whether --with-user was given.
6666if test "${with_user+set}" = set; then :
6667 withval=$with_user; OWNER=$withval
6668fi
90c80887 6669
f11781c5
AK
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6671$as_echo "$OWNER" >&6; }
90c80887 6672
f11781c5
AK
6673if test x$OWNER != x; then
6674 INSTALL="$INSTALL -o $OWNER"
90c80887 6675fi
a946372e 6676
f11781c5
AK
6677################################################################################
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6679$as_echo_n "checking group owner... " >&6; }
a946372e 6680
f11781c5
AK
6681# Check whether --with-group was given.
6682if test "${with_group+set}" = set; then :
6683 withval=$with_group; GROUP=$withval
a946372e 6684fi
f11781c5
AK
6685
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6687$as_echo "$GROUP" >&6; }
6688
6689if test x$GROUP != x; then
6690 INSTALL="$INSTALL -g $GROUP"
a946372e 6691fi
f11781c5
AK
6692
6693################################################################################
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6695$as_echo_n "checking device node uid... " >&6; }
6696
6697
6698# Check whether --with-device-uid was given.
6699if test "${with_device_uid+set}" = set; then :
6700 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6701else
f11781c5 6702 DM_DEVICE_UID=0
a946372e
AK
6703fi
6704
f11781c5
AK
6705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6706$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6707
f11781c5
AK
6708################################################################################
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6710$as_echo_n "checking device node gid... " >&6; }
a946372e 6711
a946372e 6712
f11781c5
AK
6713# Check whether --with-device-gid was given.
6714if test "${with_device_gid+set}" = set; then :
6715 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6716else
f11781c5 6717 DM_DEVICE_GID=0
a946372e 6718fi
a946372e 6719
f11781c5
AK
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6721$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6722
f11781c5
AK
6723################################################################################
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6725$as_echo_n "checking device node mode... " >&6; }
90c80887 6726
90c80887 6727
f11781c5
AK
6728# Check whether --with-device-mode was given.
6729if test "${with_device_mode+set}" = set; then :
6730 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6731else
6732 DM_DEVICE_MODE=0600
6733fi
90c80887 6734
f11781c5
AK
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6736$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6737
d0df875d
ZK
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6739$as_echo_n "checking when to create device nodes... " >&6; }
6740
6741# Check whether --with-device-nodes-on was given.
6742if test "${with_device_nodes_on+set}" = set; then :
6743 withval=$with_device_nodes_on; ADD_NODE=$withval
6744else
6745 ADD_NODE=resume
6746fi
6747
6748case "$ADD_NODE" in
6749 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6750 create) add_on=DM_ADD_NODE_ON_CREATE;;
6751 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6752esac
6753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6754$as_echo "on $ADD_NODE" >&6; }
6755
6756cat >>confdefs.h <<_ACEOF
6757#define DEFAULT_DM_ADD_NODE $add_on
6758_ACEOF
6759
6760
f11781c5
AK
6761################################################################################
6762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6763$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6764# Check whether --enable-lvm1_fallback was given.
6765if test "${enable_lvm1_fallback+set}" = set; then :
6766 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6767else
6768 LVM1_FALLBACK=no
6769fi
90c80887 6770
f11781c5
AK
6771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6772$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6773
f11781c5 6774if test x$LVM1_FALLBACK = xyes; then
90c80887 6775
f11781c5 6776$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6777
f11781c5 6778fi
90c80887 6779
f11781c5
AK
6780################################################################################
6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6782$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6783
6784# Check whether --with-lvm1 was given.
6785if test "${with_lvm1+set}" = set; then :
6786 withval=$with_lvm1; LVM1=$withval
a946372e 6787else
f11781c5 6788 LVM1=internal
a946372e 6789fi
f11781c5
AK
6790
6791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6792$as_echo "$LVM1" >&6; }
6793
6794if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6795 then as_fn_error $? "--with-lvm1 parameter invalid
6796" "$LINENO" 5
6797fi;
6798
6799if test x$LVM1 = xinternal; then
6800
6801$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6802
a946372e
AK
6803fi
6804
6805################################################################################
f11781c5
AK
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6807$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6808
6809# Check whether --with-pool was given.
6810if test "${with_pool+set}" = set; then :
6811 withval=$with_pool; POOL=$withval
a946372e 6812else
f11781c5 6813 POOL=internal
a946372e
AK
6814fi
6815
f11781c5
AK
6816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6817$as_echo "$POOL" >&6; }
6818
6819if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6820 then as_fn_error $? "--with-pool parameter invalid
6821" "$LINENO" 5
6822fi;
6823
6824if test x$POOL = xinternal; then
6825
6826$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6827
a946372e
AK
6828fi
6829
6830################################################################################
f11781c5
AK
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6832$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6833
f11781c5
AK
6834# Check whether --with-cluster was given.
6835if test "${with_cluster+set}" = set; then :
6836 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6837fi
6838
f11781c5
AK
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6840$as_echo "$CLUSTER" >&6; }
a946372e 6841
f11781c5
AK
6842if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6843 then as_fn_error $? "--with-cluster parameter invalid
6844" "$LINENO" 5
6845fi;
fddafd51 6846
f11781c5 6847if test x$CLUSTER = xinternal; then
5556819a 6848
f11781c5 6849$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6850
fddafd51 6851fi
f11781c5
AK
6852
6853################################################################################
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6855$as_echo_n "checking whether to include snapshots... " >&6; }
6856
6857# Check whether --with-snapshots was given.
6858if test "${with_snapshots+set}" = set; then :
6859 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6860else
f11781c5 6861 SNAPSHOTS=internal
fddafd51
ZK
6862fi
6863
f11781c5
AK
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6865$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6866
f11781c5
AK
6867if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6868 then as_fn_error $? "--with-snapshots parameter invalid
6869" "$LINENO" 5
6870fi;
fddafd51 6871
f11781c5
AK
6872if test x$SNAPSHOTS = xinternal; then
6873
6874$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6875
6876fi
6877
6878################################################################################
6879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6880$as_echo_n "checking whether to include mirrors... " >&6; }
6881
6882# Check whether --with-mirrors was given.
6883if test "${with_mirrors+set}" = set; then :
6884 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6885else
f11781c5 6886 MIRRORS=internal
fddafd51
ZK
6887fi
6888
f11781c5
AK
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6890$as_echo "$MIRRORS" >&6; }
fddafd51 6891
f11781c5
AK
6892if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6893 then as_fn_error $? "--with-mirrors parameter invalid
6894" "$LINENO" 5
6895fi;
6896
6897if test x$MIRRORS = xinternal; then
6898
6899$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6900
6901fi
6902
cac52ca4
JEB
6903################################################################################
6904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6905$as_echo_n "checking whether to include raid... " >&6; }
6906
6907# Check whether --with-raid was given.
6908if test "${with_raid+set}" = set; then :
6909 withval=$with_raid; RAID=$withval
6910else
6911 RAID=internal
6912fi
6913
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6915$as_echo "$RAID" >&6; }
6916
6917if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6918 then as_fn_error $? "--with-raid parameter invalid
6919" "$LINENO" 5
6920fi;
6921
6922if test x$RAID = xinternal; then
6923
6924$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6925
6926fi
6927
f11781c5
AK
6928################################################################################
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6930$as_echo_n "checking whether to include replicators... " >&6; }
6931
6932# Check whether --with-replicators was given.
6933if test "${with_replicators+set}" = set; then :
6934 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6935else
f11781c5
AK
6936 REPLICATORS=none
6937fi
fd4728e1 6938
f11781c5
AK
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6940$as_echo "$REPLICATORS" >&6; }
6941
6942case "$REPLICATORS" in
6943 none|shared) ;;
6944 internal)
6945$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6946 ;;
6947 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6948esac
f11781c5 6949
3ba4a195
ZK
6950################################################################################
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6952$as_echo_n "checking whether to include thin provisioning... " >&6; }
6953
6954# Check whether --with-thin was given.
6955if test "${with_thin+set}" = set; then :
6956 withval=$with_thin; THIN=$withval
6957else
6958 THIN=none
6959fi
6960
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6962$as_echo "$THIN" >&6; }
6963
6964case "$THIN" in
6965 none|shared) ;;
6966 internal)
6967$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6968 ;;
6969 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6970esac
6971
f11781c5
AK
6972################################################################################
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6974$as_echo_n "checking whether to enable readline... " >&6; }
6975# Check whether --enable-readline was given.
6976if test "${enable_readline+set}" = set; then :
6977 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6978else
f11781c5 6979 READLINE=maybe
fd4728e1
ZK
6980fi
6981
f11781c5
AK
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6983$as_echo "$READLINE" >&6; }
fd4728e1 6984
f11781c5
AK
6985################################################################################
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6987$as_echo_n "checking whether to enable realtime support... " >&6; }
6988# Check whether --enable-realtime was given.
6989if test "${enable_realtime+set}" = set; then :
6990 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6991fi
d0191583 6992
f11781c5
AK
6993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6994$as_echo "$REALTIME" >&6; }
6995
54b362f9 6996################################################################################
f11781c5
AK
6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6998$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6999# Check whether --enable-ocf was given.
7000if test "${enable_ocf+set}" = set; then :
7001 enableval=$enable_ocf; OCF=$enableval
54b362f9 7002else
f11781c5 7003 OCF=no
54b362f9
AK
7004fi
7005
f11781c5
AK
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7007$as_echo "$OCF" >&6; }
54b362f9 7008
606d0858
AK
7009# Check whether --with-ocfdir was given.
7010if test "${with_ocfdir+set}" = set; then :
7011 withval=$with_ocfdir; OCFDIR=$withval
7012else
7013 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7014fi
7015
7016
f11781c5
AK
7017################################################################################
7018pkg_config_init() {
7019
7020
7021
7022
7023
7024
7025if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7028set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7030$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7031if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7032 $as_echo_n "(cached) " >&6
7033else
f11781c5 7034 case $PKG_CONFIG in
54b362f9 7035 [\\/]* | ?:[\\/]*)
f11781c5 7036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7037 ;;
7038 *)
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
f11781c5 7044 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7048 break 2
7049 fi
7050done
f11781c5 7051 done
54b362f9
AK
7052IFS=$as_save_IFS
7053
7054 ;;
7055esac
7056fi
f11781c5
AK
7057PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7058if test -n "$PKG_CONFIG"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7060$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7061else
f11781c5 7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7063$as_echo "no" >&6; }
7064fi
7065
7066
f11781c5
AK
7067fi
7068if test -z "$ac_cv_path_PKG_CONFIG"; then
7069 ac_pt_PKG_CONFIG=$PKG_CONFIG
7070 # Extract the first word of "pkg-config", so it can be a program name with args.
7071set dummy pkg-config; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7073$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7074if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7075 $as_echo_n "(cached) " >&6
7076else
f11781c5 7077 case $ac_pt_PKG_CONFIG in
54b362f9 7078 [\\/]* | ?:[\\/]*)
f11781c5 7079 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7080 ;;
7081 *)
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083for as_dir in $PATH
7084do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
f11781c5 7087 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7091 break 2
7092 fi
7093done
f11781c5 7094 done
54b362f9
AK
7095IFS=$as_save_IFS
7096
7097 ;;
7098esac
7099fi
f11781c5
AK
7100ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7101if test -n "$ac_pt_PKG_CONFIG"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7103$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7104else
f11781c5 7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7106$as_echo "no" >&6; }
7107fi
7108
f11781c5
AK
7109 if test "x$ac_pt_PKG_CONFIG" = x; then
7110 PKG_CONFIG=""
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113yes:)
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116ac_tool_warned=yes ;;
7117esac
7118 PKG_CONFIG=$ac_pt_PKG_CONFIG
7119 fi
d1e8046f 7120else
f11781c5 7121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7122fi
7123
f11781c5
AK
7124fi
7125if test -n "$PKG_CONFIG"; then
7126 _pkg_min_version=0.9.0
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7128$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7131$as_echo "yes" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134$as_echo "no" >&6; }
7135 PKG_CONFIG=""
7136 fi
7137fi
d1e8046f 7138
f11781c5
AK
7139pkg_failed=no
7140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7141$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7142
f11781c5
AK
7143if test -n "$PKGCONFIGINIT_CFLAGS"; then
7144 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7145 elif test -n "$PKG_CONFIG"; then
7146 if test -n "$PKG_CONFIG" && \
7147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7148 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; }; then
7152 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7153else
f11781c5
AK
7154 pkg_failed=yes
7155fi
7156 else
7157 pkg_failed=untried
7158fi
7159if test -n "$PKGCONFIGINIT_LIBS"; then
7160 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7161 elif test -n "$PKG_CONFIG"; then
7162 if test -n "$PKG_CONFIG" && \
7163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7164 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7165 ac_status=$?
f11781c5
AK
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7169else
f11781c5
AK
7170 pkg_failed=yes
7171fi
7172 else
7173 pkg_failed=untried
d1e8046f
AK
7174fi
7175
d1e8046f 7176
f11781c5
AK
7177
7178if test $pkg_failed = yes; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180$as_echo "no" >&6; }
7181
7182if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7183 _pkg_short_errors_supported=yes
7184else
7185 _pkg_short_errors_supported=no
7186fi
7187 if test $_pkg_short_errors_supported = yes; then
7188 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7189 else
7190 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7191 fi
7192 # Put the nasty error message in config.log where it belongs
7193 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7194
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7196$as_echo "pkg-config initialized" >&6; }
7197elif test $pkg_failed = untried; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199$as_echo "no" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7201$as_echo "pkg-config initialized" >&6; }
d1e8046f 7202else
f11781c5
AK
7203 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7204 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7206$as_echo "yes" >&6; }
d1e8046f 7207
d1e8046f 7208fi
f11781c5
AK
7209 PKGCONFIG_INIT=1
7210}
d1e8046f 7211
f11781c5
AK
7212################################################################################
7213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7214$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7215
f11781c5
AK
7216# Check whether --with-clvmd was given.
7217if test "${with_clvmd+set}" = set; then :
7218 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7219else
f11781c5 7220 CLVMD=none
d1e8046f 7221fi
d1e8046f 7222
f11781c5
AK
7223if test x$CLVMD = xyes; then
7224 CLVMD=all
d1e8046f 7225fi
f11781c5
AK
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7227$as_echo "$CLVMD" >&6; }
d1e8046f 7228
f11781c5
AK
7229if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7230 CLUSTER=internal
d1e8046f
AK
7231fi
7232
f11781c5
AK
7233if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7234 pkg_config_init
7235fi
d1e8046f 7236
f11781c5
AK
7237CLVMD_CMANAGERS=""
7238CLVMD_NEEDS_QDISKD=no
d1e8046f 7239
f11781c5 7240if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7241 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7242fi
f11781c5
AK
7243if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7244 BUILDCMAN=yes
7245 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7246 CLVMD_NEEDS_QDISKD=yes
7247fi
7248if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7249 BUILDCOROSYNC=yes
7250 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7251fi
7252if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7253 BUILDOPENAIS=yes
7254 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7255fi
7256if test x$CLVMD_NEEDS_QDISKD != xno; then
7257 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7258fi
7259
f11781c5
AK
7260soft_bailout() {
7261 NOTFOUND=1
7262}
ad6254c5 7263
f11781c5
AK
7264hard_bailout() {
7265 as_fn_error $? "bailing out" "$LINENO" 5
7266}
ad6254c5 7267
f11781c5
AK
7268if test x$CLVMD = xall; then
7269 bailout=soft_bailout
f11781c5
AK
7270 BUILDCMAN=yes
7271 BUILDCOROSYNC=yes
7272 BUILDOPENAIS=yes
a5f46f6a 7273else
f11781c5 7274 bailout=hard_bailout
a5f46f6a
AK
7275fi
7276
f11781c5
AK
7277check_lib_no_libs() {
7278 lib_no_libs_arg1=$1
7279 shift
7280 lib_no_libs_arg2=$1
7281 shift
7282 lib_no_libs_args=$@
7283 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7285$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7286if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7287 $as_echo_n "(cached) " >&6
7288else
7289 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7290LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7292/* end confdefs.h. */
7293
7294/* Override any GCC internal prototype to avoid an error.
7295 Use char because int might match the return type of a GCC
7296 builtin and then its argument prototype would still apply. */
7297#ifdef __cplusplus
7298extern "C"
7299#endif
f11781c5 7300char $lib_no_libs_arg2 ();
90c80887
AK
7301int
7302main ()
7303{
f11781c5 7304return $lib_no_libs_arg2 ();
90c80887
AK
7305 ;
7306 return 0;
7307}
7308_ACEOF
f11781c5
AK
7309if ac_fn_c_try_link "$LINENO"; then :
7310 eval "$as_ac_Lib=yes"
90c80887 7311else
f11781c5 7312 eval "$as_ac_Lib=no"
90c80887 7313fi
f11781c5
AK
7314rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7316LIBS=$ac_check_lib_save_LIBS
7317fi
f11781c5
AK
7318eval ac_res=\$$as_ac_Lib
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7320$as_echo "$ac_res" >&6; }
7321if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7322 cat >>confdefs.h <<_ACEOF
7323#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7324_ACEOF
7325
7326 LIBS="-l$lib_no_libs_arg1 $LIBS"
7327
90c80887 7328else
f11781c5 7329 $bailout
90c80887
AK
7330fi
7331
f11781c5
AK
7332 LIBS=$ac_check_lib_save_LIBS
7333}
90c80887 7334
f11781c5 7335if test x$BUILDCMAN = xyes; then
ad6254c5 7336
f11781c5
AK
7337pkg_failed=no
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7339$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7340
f11781c5
AK
7341if test -n "$CMAN_CFLAGS"; then
7342 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7343 elif test -n "$PKG_CONFIG"; then
7344 if test -n "$PKG_CONFIG" && \
7345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7346 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7347 ac_status=$?
7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }; then
7350 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7351else
7352 pkg_failed=yes
ad6254c5 7353fi
f11781c5
AK
7354 else
7355 pkg_failed=untried
ad6254c5 7356fi
f11781c5
AK
7357if test -n "$CMAN_LIBS"; then
7358 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7359 elif test -n "$PKG_CONFIG"; then
7360 if test -n "$PKG_CONFIG" && \
7361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7362 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7363 ac_status=$?
f11781c5
AK
7364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; }; then
7366 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7367else
f11781c5
AK
7368 pkg_failed=yes
7369fi
7370 else
7371 pkg_failed=untried
93bd259b
AK
7372fi
7373
f11781c5
AK
7374
7375
7376if test $pkg_failed = yes; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378$as_echo "no" >&6; }
7379
7380if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7381 _pkg_short_errors_supported=yes
7382else
7383 _pkg_short_errors_supported=no
93bd259b 7384fi
f11781c5
AK
7385 if test $_pkg_short_errors_supported = yes; then
7386 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7387 else
7388 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7389 fi
7390 # Put the nasty error message in config.log where it belongs
7391 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7392
f11781c5
AK
7393 NOTFOUND=0
7394 for ac_header in libcman.h
7395do :
7396 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7397if test "x$ac_cv_header_libcman_h" = x""yes; then :
7398 cat >>confdefs.h <<_ACEOF
7399#define HAVE_LIBCMAN_H 1
93bd259b
AK
7400_ACEOF
7401
f11781c5
AK
7402else
7403 $bailout
93bd259b
AK
7404fi
7405
f11781c5 7406done
93bd259b 7407
f11781c5
AK
7408 check_lib_no_libs cman cman_init
7409 if test $NOTFOUND = 0; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7411$as_echo "no pkg for libcman, using -lcman" >&6; }
7412 CMAN_LIBS="-lcman"
7413 HAVE_CMAN=yes
7414 fi
7415elif test $pkg_failed = untried; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417$as_echo "no" >&6; }
7418 NOTFOUND=0
7419 for ac_header in libcman.h
7420do :
7421 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7422if test "x$ac_cv_header_libcman_h" = x""yes; then :
7423 cat >>confdefs.h <<_ACEOF
7424#define HAVE_LIBCMAN_H 1
93bd259b 7425_ACEOF
93bd259b 7426
93bd259b 7427else
f11781c5 7428 $bailout
93bd259b
AK
7429fi
7430
f11781c5
AK
7431done
7432
7433 check_lib_no_libs cman cman_init
7434 if test $NOTFOUND = 0; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7436$as_echo "no pkg for libcman, using -lcman" >&6; }
7437 CMAN_LIBS="-lcman"
7438 HAVE_CMAN=yes
7439 fi
7440else
7441 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7442 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7444$as_echo "yes" >&6; }
7445 HAVE_CMAN=yes
93bd259b 7446fi
f11781c5
AK
7447 CHECKCONFDB=yes
7448 CHECKDLM=yes
93bd259b
AK
7449fi
7450
f11781c5
AK
7451if test x$BUILDCOROSYNC = xyes || \
7452 test x$BUILDOPENAIS = xyes; then
93bd259b 7453
f11781c5
AK
7454pkg_failed=no
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7456$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7457
f11781c5
AK
7458if test -n "$COROSYNC_CFLAGS"; then
7459 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7460 elif test -n "$PKG_CONFIG"; then
7461 if test -n "$PKG_CONFIG" && \
7462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7463 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7464 ac_status=$?
7465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; }; then
7467 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7468else
f11781c5
AK
7469 pkg_failed=yes
7470fi
7471 else
7472 pkg_failed=untried
7473fi
7474if test -n "$COROSYNC_LIBS"; then
7475 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7476 elif test -n "$PKG_CONFIG"; then
7477 if test -n "$PKG_CONFIG" && \
7478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7479 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7480 ac_status=$?
f11781c5
AK
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7484else
f11781c5 7485 pkg_failed=yes
ad6254c5 7486fi
f11781c5
AK
7487 else
7488 pkg_failed=untried
ad6254c5 7489fi
ad6254c5 7490
72b2cb61 7491
72b2cb61 7492
f11781c5
AK
7493if test $pkg_failed = yes; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495$as_echo "no" >&6; }
19a2c6e0 7496
f11781c5
AK
7497if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7498 _pkg_short_errors_supported=yes
7499else
7500 _pkg_short_errors_supported=no
ad6254c5 7501fi
f11781c5
AK
7502 if test $_pkg_short_errors_supported = yes; then
7503 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7504 else
7505 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7506 fi
7507 # Put the nasty error message in config.log where it belongs
7508 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7509
f11781c5
AK
7510 $bailout
7511elif test $pkg_failed = untried; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
7514 $bailout
7515else
7516 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7517 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519$as_echo "yes" >&6; }
7520 HAVE_COROSYNC=yes
7521fi
7522 CHECKCONFDB=yes
b6d7a484 7523 CHECKCMAP=yes
ad6254c5
AK
7524fi
7525
f11781c5 7526if test x$BUILDCOROSYNC = xyes; then
f30875db 7527
f11781c5
AK
7528pkg_failed=no
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7530$as_echo_n "checking for QUORUM... " >&6; }
7531
7532if test -n "$QUORUM_CFLAGS"; then
7533 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7534 elif test -n "$PKG_CONFIG"; then
7535 if test -n "$PKG_CONFIG" && \
7536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7537 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7538 ac_status=$?
f11781c5
AK
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; }; then
7541 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7542else
f11781c5 7543 pkg_failed=yes
f30875db 7544fi
f11781c5
AK
7545 else
7546 pkg_failed=untried
f30875db 7547fi
f11781c5
AK
7548if test -n "$QUORUM_LIBS"; then
7549 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7550 elif test -n "$PKG_CONFIG"; then
7551 if test -n "$PKG_CONFIG" && \
7552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7553 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7554 ac_status=$?
7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556 test $ac_status = 0; }; then
7557 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7558else
f11781c5 7559 pkg_failed=yes
f30875db 7560fi
f11781c5
AK
7561 else
7562 pkg_failed=untried
7563fi
7564
f30875db 7565
f11781c5
AK
7566
7567if test $pkg_failed = yes; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569$as_echo "no" >&6; }
7570
7571if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7572 _pkg_short_errors_supported=yes
7573else
7574 _pkg_short_errors_supported=no
f30875db 7575fi
f11781c5
AK
7576 if test $_pkg_short_errors_supported = yes; then
7577 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7578 else
7579 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7580 fi
7581 # Put the nasty error message in config.log where it belongs
7582 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7583
f11781c5
AK
7584 $bailout
7585elif test $pkg_failed = untried; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587$as_echo "no" >&6; }
7588 $bailout
7589else
7590 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7591 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593$as_echo "yes" >&6; }
7594 HAVE_QUORUM=yes
7595fi
7596 CHECKCPG=yes
7597 CHECKDLM=yes
d0191583
JM
7598fi
7599
f11781c5 7600if test x$BUILDOPENAIS = xyes; then
d0191583 7601
f11781c5
AK
7602pkg_failed=no
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7604$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7605
f11781c5
AK
7606if test -n "$SALCK_CFLAGS"; then
7607 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7608 elif test -n "$PKG_CONFIG"; then
7609 if test -n "$PKG_CONFIG" && \
7610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7611 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7612 ac_status=$?
7613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614 test $ac_status = 0; }; then
7615 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7616else
7617 pkg_failed=yes
7618fi
7619 else
7620 pkg_failed=untried
7621fi
7622if test -n "$SALCK_LIBS"; then
7623 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7624 elif test -n "$PKG_CONFIG"; then
7625 if test -n "$PKG_CONFIG" && \
7626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7627 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7628 ac_status=$?
f11781c5
AK
7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630 test $ac_status = 0; }; then
7631 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7632else
f11781c5 7633 pkg_failed=yes
8a2fc586 7634fi
f11781c5
AK
7635 else
7636 pkg_failed=untried
8a2fc586 7637fi
d0191583 7638
d0191583 7639
f8f6ec92 7640
f11781c5
AK
7641if test $pkg_failed = yes; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643$as_echo "no" >&6; }
8a2fc586 7644
f11781c5
AK
7645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7646 _pkg_short_errors_supported=yes
ad6254c5 7647else
f11781c5
AK
7648 _pkg_short_errors_supported=no
7649fi
7650 if test $_pkg_short_errors_supported = yes; then
7651 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7652 else
7653 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7654 fi
7655 # Put the nasty error message in config.log where it belongs
7656 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7657
f11781c5
AK
7658 $bailout
7659elif test $pkg_failed = untried; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662 $bailout
ad6254c5 7663else
f11781c5
AK
7664 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7665 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7667$as_echo "yes" >&6; }
7668 HAVE_SALCK=yes
ad6254c5 7669fi
f11781c5 7670 CHECKCPG=yes
ad6254c5 7671fi
ad6254c5 7672
72b2cb61 7673
f8f6ec92 7674
f11781c5 7675if test x$CHECKCONFDB = xyes; then
f8f6ec92 7676
f11781c5
AK
7677pkg_failed=no
7678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7679$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7680
f11781c5
AK
7681if test -n "$CONFDB_CFLAGS"; then
7682 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7683 elif test -n "$PKG_CONFIG"; then
7684 if test -n "$PKG_CONFIG" && \
7685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7686 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7687 ac_status=$?
f11781c5
AK
7688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }; then
7690 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7691else
f11781c5
AK
7692 pkg_failed=yes
7693fi
7694 else
7695 pkg_failed=untried
7696fi
7697if test -n "$CONFDB_LIBS"; then
7698 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7699 elif test -n "$PKG_CONFIG"; then
7700 if test -n "$PKG_CONFIG" && \
7701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7702 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7703 ac_status=$?
7704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7705 test $ac_status = 0; }; then
7706 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7707else
7708 pkg_failed=yes
7709fi
7710 else
7711 pkg_failed=untried
f8f6ec92
ZK
7712fi
7713
f8f6ec92 7714
66e941e8 7715
f11781c5
AK
7716if test $pkg_failed = yes; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
7719
7720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7721 _pkg_short_errors_supported=yes
f8f6ec92 7722else
f11781c5 7723 _pkg_short_errors_supported=no
66e941e8 7724fi
f11781c5
AK
7725 if test $_pkg_short_errors_supported = yes; then
7726 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7727 else
7728 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7729 fi
7730 # Put the nasty error message in config.log where it belongs
7731 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7732
f11781c5
AK
7733 HAVE_CONFDB=no
7734elif test $pkg_failed = untried; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736$as_echo "no" >&6; }
7737 HAVE_CONFDB=no
7738else
7739 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7740 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7742$as_echo "yes" >&6; }
7743 HAVE_CONFDB=yes
66e941e8 7744fi
f11781c5
AK
7745
7746 for ac_header in corosync/confdb.h
7747do :
7748 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7749if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7750 cat >>confdefs.h <<_ACEOF
f11781c5 7751#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7752_ACEOF
f11781c5 7753 HAVE_CONFDB_H=yes
66e941e8 7754else
f11781c5 7755 HAVE_CONFDB_H=no
66e941e8 7756fi
dd1f2c09
MB
7757
7758done
7759
7760
f11781c5
AK
7761 if test x$HAVE_CONFDB != xyes && \
7762 test x$HAVE_CONFDB_H = xyes; then
7763 check_lib_no_libs confdb confdb_initialize
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7765$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7766 CONFDB_LIBS="-lconfdb"
7767 HAVE_CONFDB=yes
7768 fi
b6d7a484
AK
7769fi
7770
7771
7772if test x$CHECKCMAP = xyes; then
7773
7774pkg_failed=no
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7776$as_echo_n "checking for CMAP... " >&6; }
7777
7778if test -n "$CMAP_CFLAGS"; then
7779 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7780 elif test -n "$PKG_CONFIG"; then
7781 if test -n "$PKG_CONFIG" && \
7782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7783 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7788else
7789 pkg_failed=yes
7790fi
7791 else
7792 pkg_failed=untried
7793fi
7794if test -n "$CMAP_LIBS"; then
7795 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7796 elif test -n "$PKG_CONFIG"; then
7797 if test -n "$PKG_CONFIG" && \
7798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7799 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7800 ac_status=$?
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; then
7803 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7804else
7805 pkg_failed=yes
7806fi
7807 else
7808 pkg_failed=untried
7809fi
7810
7811
7812
7813if test $pkg_failed = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815$as_echo "no" >&6; }
f11781c5 7816
b6d7a484
AK
7817if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7818 _pkg_short_errors_supported=yes
7819else
7820 _pkg_short_errors_supported=no
7821fi
7822 if test $_pkg_short_errors_supported = yes; then
7823 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7824 else
7825 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7826 fi
7827 # Put the nasty error message in config.log where it belongs
7828 echo "$CMAP_PKG_ERRORS" >&5
7829
7830 HAVE_CMAP=no
7831elif test $pkg_failed = untried; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833$as_echo "no" >&6; }
7834 HAVE_CMAP=no
7835else
7836 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
7837 CMAP_LIBS=$pkg_cv_CMAP_LIBS
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7839$as_echo "yes" >&6; }
7840 HAVE_CMAP=yes
7841fi
7842
7843 for ac_header in corosync/cmap.h
7844do :
7845 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
7846if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
7847 cat >>confdefs.h <<_ACEOF
7848#define HAVE_COROSYNC_CMAP_H 1
7849_ACEOF
7850 HAVE_CMAP_H=yes
7851else
7852 HAVE_CMAP_H=no
7853fi
7854
7855done
7856
7857
7858 if test x$HAVE_CMAP != xyes && \
7859 test x$HAVE_CMAP_H = xyes; then
7860 check_lib_no_libs cmap cmap_initialize
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
7862$as_echo "no pkg for cmap, using -lcmap" >&6; }
7863 CMAP_LIBS="-lcmap"
7864 HAVE_CMAP=yes
7865 fi
7866fi
7867
7868if test x$BUILDCOROSYNC = xyes; then
7869 if test x$HAVE_CMAP != xyes && \
7870 test x$HAVE_CONFDB != xyes && \
f11781c5 7871 test x$CLVMD != xall; then
b6d7a484 7872 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
f11781c5 7873 fi
dd1f2c09 7874fi
f11781c5
AK
7875
7876if test x$CHECKCPG = xyes; then
7877
7878pkg_failed=no
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7880$as_echo_n "checking for CPG... " >&6; }
7881
7882if test -n "$CPG_CFLAGS"; then
7883 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7884 elif test -n "$PKG_CONFIG"; then
7885 if test -n "$PKG_CONFIG" && \
7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7887 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7888 ac_status=$?
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; }; then
7891 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7892else
f11781c5
AK
7893 pkg_failed=yes
7894fi
7895 else
7896 pkg_failed=untried
7897fi
7898if test -n "$CPG_LIBS"; then
7899 pkg_cv_CPG_LIBS="$CPG_LIBS"
7900 elif test -n "$PKG_CONFIG"; then
7901 if test -n "$PKG_CONFIG" && \
7902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7903 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7904 ac_status=$?
f11781c5
AK
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7908else
f11781c5
AK
7909 pkg_failed=yes
7910fi
7911 else
7912 pkg_failed=untried
7913fi
7914
7915
7916
7917if test $pkg_failed = yes; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
7920
7921if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7922 _pkg_short_errors_supported=yes
7923else
7924 _pkg_short_errors_supported=no
7925fi
7926 if test $_pkg_short_errors_supported = yes; then
7927 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7928 else
7929 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7930 fi
7931 # Put the nasty error message in config.log where it belongs
7932 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7933
f11781c5
AK
7934 $bailout
7935elif test $pkg_failed = untried; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937$as_echo "no" >&6; }
7938 $bailout
7939else
7940 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7941 CPG_LIBS=$pkg_cv_CPG_LIBS
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943$as_echo "yes" >&6; }
7944 HAVE_CPG=yes
7945fi
dd1f2c09
MB
7946fi
7947
f11781c5 7948if test x$CHECKDLM = xyes; then
dd1f2c09 7949
f11781c5
AK
7950pkg_failed=no
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7952$as_echo_n "checking for DLM... " >&6; }
7953
7954if test -n "$DLM_CFLAGS"; then
7955 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7956 elif test -n "$PKG_CONFIG"; then
7957 if test -n "$PKG_CONFIG" && \
7958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7959 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7960 ac_status=$?
f11781c5
AK
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7964else
f11781c5
AK
7965 pkg_failed=yes
7966fi
7967 else
7968 pkg_failed=untried
7969fi
7970if test -n "$DLM_LIBS"; then
7971 pkg_cv_DLM_LIBS="$DLM_LIBS"
7972 elif test -n "$PKG_CONFIG"; then
7973 if test -n "$PKG_CONFIG" && \
7974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7975 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }; then
7979 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7980else
7981 pkg_failed=yes
7982fi
7983 else
7984 pkg_failed=untried
dd1f2c09
MB
7985fi
7986
dd1f2c09 7987
dd1f2c09 7988
f11781c5
AK
7989if test $pkg_failed = yes; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991$as_echo "no" >&6; }
7992
7993if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7994 _pkg_short_errors_supported=yes
dd1f2c09 7995else
f11781c5 7996 _pkg_short_errors_supported=no
dd1f2c09 7997fi
f11781c5
AK
7998 if test $_pkg_short_errors_supported = yes; then
7999 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8000 else
8001 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8002 fi
8003 # Put the nasty error message in config.log where it belongs
8004 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8005
f11781c5
AK
8006 NOTFOUND=0
8007 for ac_header in libdlm.h
8008do :
8009 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8010if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8011 cat >>confdefs.h <<_ACEOF
f11781c5 8012#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8013_ACEOF
8014
f11781c5
AK
8015else
8016 $bailout
dd1f2c09 8017fi
f8f6ec92
ZK
8018
8019done
8020
f11781c5
AK
8021 check_lib_no_libs dlm dlm_lock -lpthread
8022 if test $NOTFOUND = 0; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8024$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8025 DLM_LIBS="-ldlm -lpthread"
8026 HAVE_DLM=yes
8027 fi
8028elif test $pkg_failed = untried; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030$as_echo "no" >&6; }
8031 NOTFOUND=0
8032 for ac_header in libdlm.h
8033do :
8034 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8035if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8036 cat >>confdefs.h <<_ACEOF
8037#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8038_ACEOF
8039
f8f6ec92 8040else
f11781c5 8041 $bailout
ad6254c5
AK
8042fi
8043
f11781c5 8044done
8b1a3214 8045
f11781c5
AK
8046 check_lib_no_libs dlm dlm_lock -lpthread
8047 if test $NOTFOUND = 0; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8049$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8050 DLM_LIBS="-ldlm -lpthread"
8051 HAVE_DLM=yes
8052 fi
8b1a3214 8053else
f11781c5
AK
8054 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8055 DLM_LIBS=$pkg_cv_DLM_LIBS
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8057$as_echo "yes" >&6; }
8058 HAVE_DLM=yes
8b1a3214 8059fi
8b1a3214
AK
8060fi
8061
f11781c5
AK
8062if test x$CLVMD = xall; then
8063 CLVMD=none
8064 CLVMD_CMANAGERS=""
8065 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
8066 if test x$HAVE_CMAN = xyes && \
8067 test x$HAVE_DLM = xyes; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8069$as_echo "Enabling clvmd cman cluster manager" >&6; }
8070 CLVMD="$CLVMD,cman"
8071 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8072 CLVMD_NEEDS_QDISKD=yes
8073 fi
8074 if test x$HAVE_COROSYNC = xyes && \
8075 test x$HAVE_QUORUM = xyes && \
8076 test x$HAVE_CPG = xyes && \
b6d7a484
AK
8077 test x$HAVE_DLM = xyes; then
8078 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
f11781c5
AK
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8080$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8081 CLVMD="$CLVMD,corosync"
8082 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
b6d7a484 8083 fi
f11781c5
AK
8084 fi
8085 if test x$HAVE_COROSYNC = xyes && \
8086 test x$HAVE_CPG = xyes && \
8087 test x$HAVE_SALCK = xyes; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8089$as_echo "Enabling clvmd openais cluster manager" >&6; }
8090 CLVMD="$CLVMD,openais"
8091 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8092 fi
8093 if test x$CLVMD_NEEDS_QDISKD != xno; then
8094 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8095 fi
8096 if test x$CLVMD = xnone; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8098$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8099 fi
8100fi
8101
ad6254c5 8102################################################################################
f11781c5 8103if test "x$CLVMD" != xnone; then
ad6254c5 8104
f11781c5
AK
8105# Check whether --with-clvmd-pidfile was given.
8106if test "${with_clvmd_pidfile+set}" = set; then :
8107 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8108else
f11781c5 8109 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8110fi
7a197a62 8111
ad6254c5 8112
f11781c5
AK
8113cat >>confdefs.h <<_ACEOF
8114#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8115_ACEOF
ad6254c5 8116
ad6254c5 8117fi
7a197a62 8118
f11781c5
AK
8119################################################################################
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8121$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8122# Check whether --enable-cmirrord was given.
8123if test "${enable_cmirrord+set}" = set; then :
8124 enableval=$enable_cmirrord; CMIRRORD=$enableval
8125else
8126 CMIRRORD=no
8127fi
8128
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8130$as_echo "$CMIRRORD" >&6; }
ad6254c5 8131
f11781c5 8132BUILD_CMIRRORD=$CMIRRORD
7a197a62 8133
f11781c5
AK
8134################################################################################
8135if test "x$BUILD_CMIRRORD" = xyes; then
8136
8137# Check whether --with-cmirrord-pidfile was given.
8138if test "${with_cmirrord_pidfile+set}" = set; then :
8139 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8140else
f11781c5 8141 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8142fi
ad6254c5 8143
72b2cb61 8144
f11781c5
AK
8145cat >>confdefs.h <<_ACEOF
8146#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8147_ACEOF
8148
ad6254c5
AK
8149fi
8150
f11781c5
AK
8151################################################################################
8152if [ "x$BUILD_CMIRRORD" = xyes ]; then
8153 if test x$PKGCONFIG_INIT != x1; then
8154 pkg_config_init
8155 fi
ad6254c5 8156
f11781c5
AK
8157pkg_failed=no
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8159$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8160
f11781c5
AK
8161if test -n "$SACKPT_CFLAGS"; then
8162 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8163 elif test -n "$PKG_CONFIG"; then
8164 if test -n "$PKG_CONFIG" && \
8165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8166 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8167 ac_status=$?
8168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8169 test $ac_status = 0; }; then
8170 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8171else
f11781c5
AK
8172 pkg_failed=yes
8173fi
8174 else
8175 pkg_failed=untried
8176fi
8177if test -n "$SACKPT_LIBS"; then
8178 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8179 elif test -n "$PKG_CONFIG"; then
8180 if test -n "$PKG_CONFIG" && \
8181 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8182 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8183 ac_status=$?
f11781c5
AK
8184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8185 test $ac_status = 0; }; then
8186 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8187else
f11781c5
AK
8188 pkg_failed=yes
8189fi
8190 else
8191 pkg_failed=untried
8192fi
539f4a77
ZK
8193
8194
539f4a77 8195
f11781c5
AK
8196if test $pkg_failed = yes; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }
8199
8200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8201 _pkg_short_errors_supported=yes
539f4a77 8202else
f11781c5 8203 _pkg_short_errors_supported=no
539f4a77 8204fi
f11781c5
AK
8205 if test $_pkg_short_errors_supported = yes; then
8206 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8207 else
8208 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8209 fi
8210 # Put the nasty error message in config.log where it belongs
8211 echo "$SACKPT_PKG_ERRORS" >&5
8212
8213 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8214
8215$SACKPT_PKG_ERRORS
8216
8217Consider adjusting the PKG_CONFIG_PATH environment variable if you
8218installed software in a non-standard prefix.
8219
8220Alternatively, you may set the environment variables SACKPT_CFLAGS
8221and SACKPT_LIBS to avoid the need to call pkg-config.
8222See the pkg-config man page for more details." "$LINENO" 5
8223
8224elif test $pkg_failed = untried; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "no" >&6; }
8227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8229as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8230is in your PATH or set the PKG_CONFIG environment variable to the full
8231path to pkg-config.
8232
8233Alternatively, you may set the environment variables SACKPT_CFLAGS
8234and SACKPT_LIBS to avoid the need to call pkg-config.
8235See the pkg-config man page for more details.
8236
8237To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8238See \`config.log' for more details" "$LINENO" 5; }
8239
539f4a77 8240else
f11781c5
AK
8241 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8242 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8244$as_echo "yes" >&6; }
539f4a77 8245
539f4a77 8246fi
f11781c5 8247 if test x$HAVE_CPG != xyes; then
539f4a77 8248
f11781c5
AK
8249pkg_failed=no
8250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8251$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8252
f11781c5
AK
8253if test -n "$CPG_CFLAGS"; then
8254 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8255 elif test -n "$PKG_CONFIG"; then
8256 if test -n "$PKG_CONFIG" && \
8257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8258 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8259 ac_status=$?
f11781c5
AK
8260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8261 test $ac_status = 0; }; then
8262 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8263else
f11781c5
AK
8264 pkg_failed=yes
8265fi
8266 else
8267 pkg_failed=untried
8268fi
8269if test -n "$CPG_LIBS"; then
8270 pkg_cv_CPG_LIBS="$CPG_LIBS"
8271 elif test -n "$PKG_CONFIG"; then
8272 if test -n "$PKG_CONFIG" && \
8273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8274 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8275 ac_status=$?
8276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8277 test $ac_status = 0; }; then
8278 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8279else
8280 pkg_failed=yes
8281fi
8282 else
8283 pkg_failed=untried
8284fi
8285
8286
8287
8288if test $pkg_failed = yes; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290$as_echo "no" >&6; }
ad6254c5 8291
f11781c5
AK
8292if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8293 _pkg_short_errors_supported=yes
8294else
8295 _pkg_short_errors_supported=no
ad6254c5 8296fi
f11781c5
AK
8297 if test $_pkg_short_errors_supported = yes; then
8298 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8299 else
8300 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8301 fi
8302 # Put the nasty error message in config.log where it belongs
8303 echo "$CPG_PKG_ERRORS" >&5
8304
8305 as_fn_error $? "Package requirements (libcpg) were not met:
8306
8307$CPG_PKG_ERRORS
8308
8309Consider adjusting the PKG_CONFIG_PATH environment variable if you
8310installed software in a non-standard prefix.
8311
8312Alternatively, you may set the environment variables CPG_CFLAGS
8313and CPG_LIBS to avoid the need to call pkg-config.
8314See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8315
f11781c5
AK
8316elif test $pkg_failed = untried; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318$as_echo "no" >&6; }
8319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8320$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8321as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8322is in your PATH or set the PKG_CONFIG environment variable to the full
8323path to pkg-config.
539f4a77 8324
f11781c5
AK
8325Alternatively, you may set the environment variables CPG_CFLAGS
8326and CPG_LIBS to avoid the need to call pkg-config.
8327See the pkg-config man page for more details.
539f4a77 8328
f11781c5
AK
8329To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8330See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8331
539f4a77 8332else
f11781c5
AK
8333 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8334 CPG_LIBS=$pkg_cv_CPG_LIBS
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8336$as_echo "yes" >&6; }
bc1024f8 8337
f11781c5
AK
8338fi
8339 fi
8340fi
8341
8342################################################################################
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8344$as_echo_n "checking whether to enable debugging... " >&6; }
8345# Check whether --enable-debug was given.
8346if test "${enable_debug+set}" = set; then :
8347 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8348else
f11781c5
AK
8349 DEBUG=no
8350fi
8351
8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8353$as_echo "$DEBUG" >&6; }
539f4a77 8354
f11781c5
AK
8355if test x$DEBUG = xyes; then
8356 COPTIMISE_FLAG=
8357else
8358 CSCOPE_CMD=
06e459df
JM
8359fi
8360
f11781c5
AK
8361################################################################################
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8363$as_echo_n "checking for C optimisation flag... " >&6; }
8364
8365# Check whether --with-optimisation was given.
8366if test "${with_optimisation+set}" = set; then :
8367 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8368fi
539f4a77 8369
f11781c5
AK
8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8371$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8372
f11781c5
AK
8373################################################################################
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8375$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8376# Check whether --enable-profiling was given.
8377if test "${enable_profiling+set}" = set; then :
8378 enableval=$enable_profiling; PROFILING=$enableval
8379else
8380 PROFILING=no
539f4a77
ZK
8381fi
8382
f11781c5
AK
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8384$as_echo "$PROFILING" >&6; }
8385
8386if test "x$PROFILING" = xyes; then
8387 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8388 # Extract the first word of "lcov", so it can be a program name with args.
8389set dummy lcov; ac_word=$2
8390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391$as_echo_n "checking for $ac_word... " >&6; }
8392if test "${ac_cv_path_LCOV+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
539f4a77 8394else
f11781c5
AK
8395 case $LCOV in
8396 [\\/]* | ?:[\\/]*)
8397 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8398 ;;
8399 *)
8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8401for as_dir in $PATH
8402do
8403 IFS=$as_save_IFS
8404 test -z "$as_dir" && as_dir=.
8405 for ac_exec_ext in '' $ac_executable_extensions; do
8406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8407 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8409 break 2
8410 fi
8411done
8412 done
8413IFS=$as_save_IFS
539f4a77 8414
f11781c5
AK
8415 ;;
8416esac
8417fi
8418LCOV=$ac_cv_path_LCOV
8419if test -n "$LCOV"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8421$as_echo "$LCOV" >&6; }
8422else
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424$as_echo "no" >&6; }
539f4a77
ZK
8425fi
8426
bc1024f8 8427
f11781c5
AK
8428 # Extract the first word of "genhtml", so it can be a program name with args.
8429set dummy genhtml; ac_word=$2
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431$as_echo_n "checking for $ac_word... " >&6; }
8432if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8433 $as_echo_n "(cached) " >&6
ad6254c5 8434else
f11781c5
AK
8435 case $GENHTML in
8436 [\\/]* | ?:[\\/]*)
8437 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8438 ;;
8439 *)
8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8441for as_dir in $PATH
8442do
8443 IFS=$as_save_IFS
8444 test -z "$as_dir" && as_dir=.
8445 for ac_exec_ext in '' $ac_executable_extensions; do
8446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8449 break 2
8450 fi
8451done
8452 done
8453IFS=$as_save_IFS
8a2fc586 8454
f11781c5
AK
8455 ;;
8456esac
8457fi
8458GENHTML=$ac_cv_path_GENHTML
8459if test -n "$GENHTML"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8461$as_echo "$GENHTML" >&6; }
8462else
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464$as_echo "no" >&6; }
8465fi
8a2fc586 8466
8a2fc586 8467
f11781c5
AK
8468 if test -z "$LCOV" -o -z "$GENHTML"; then
8469 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8470 fi
8471 # Extract the first word of "genpng", so it can be a program name with args.
8472set dummy genpng; ac_word=$2
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
8475if test "${ac_cv_path_GENPNG+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
8477else
8478 case $GENPNG in
8479 [\\/]* | ?:[\\/]*)
8480 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8481 ;;
8482 *)
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8490 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 break 2
8493 fi
8494done
8495 done
8496IFS=$as_save_IFS
ad6254c5 8497
f11781c5 8498 ;;
7a197a62 8499esac
f11781c5
AK
8500fi
8501GENPNG=$ac_cv_path_GENPNG
8502if test -n "$GENPNG"; then
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8504$as_echo "$GENPNG" >&6; }
ad6254c5 8505else
f11781c5
AK
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
8508fi
8509
8510
8511 if test -n "$GENPNG"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8513$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8514 if $GENPNG --help > /dev/null 2>&1 ; then
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8516$as_echo "ok" >&6; }
8517 GENHTML="$GENHTML --frames"
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8520$as_echo "not supported" >&6; }
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8522$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8523 GENPNG=
8524 fi
8525 fi
8526fi
ad6254c5 8527
f11781c5
AK
8528################################################################################
8529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8530$as_echo_n "checking whether to enable unit testing... " >&6; }
8531# Check whether --enable-testing was given.
8532if test "${enable_testing+set}" = set; then :
8533 enableval=$enable_testing; TESTING=$enableval
8534else
8535 TESTING=no
ad6254c5 8536fi
7a197a62 8537
f11781c5
AK
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8539$as_echo "$TESTING" >&6; }
72b2cb61 8540
f11781c5 8541if test "$TESTING" = yes; then
426fc742
PR
8542
8543pkg_failed=no
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8545$as_echo_n "checking for CUNIT... " >&6; }
8546
8547if test -n "$CUNIT_CFLAGS"; then
8548 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8549 elif test -n "$PKG_CONFIG"; then
8550 if test -n "$PKG_CONFIG" && \
8551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8552 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8553 ac_status=$?
8554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555 test $ac_status = 0; }; then
8556 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8557else
8558 pkg_failed=yes
8559fi
8560 else
8561 pkg_failed=untried
8562fi
8563if test -n "$CUNIT_LIBS"; then
8564 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8565 elif test -n "$PKG_CONFIG"; then
8566 if test -n "$PKG_CONFIG" && \
8567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8568 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8569 ac_status=$?
8570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8571 test $ac_status = 0; }; then
8572 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
ad6254c5 8573else
426fc742
PR
8574 pkg_failed=yes
8575fi
8576 else
8577 pkg_failed=untried
ad6254c5
AK
8578fi
8579
7a197a62 8580
426fc742
PR
8581
8582if test $pkg_failed = yes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584$as_echo "no" >&6; }
8585
8586if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8587 _pkg_short_errors_supported=yes
8588else
8589 _pkg_short_errors_supported=no
8590fi
8591 if test $_pkg_short_errors_supported = yes; then
8592 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8593 else
8594 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8595 fi
8596 # Put the nasty error message in config.log where it belongs
8597 echo "$CUNIT_PKG_ERRORS" >&5
8598
8599 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8600
8601$CUNIT_PKG_ERRORS
8602
8603Consider adjusting the PKG_CONFIG_PATH environment variable if you
8604installed software in a non-standard prefix.
8605
8606Alternatively, you may set the environment variables CUNIT_CFLAGS
8607and CUNIT_LIBS to avoid the need to call pkg-config.
8608See the pkg-config man page for more details." "$LINENO" 5
8609
8610elif test $pkg_failed = untried; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612$as_echo "no" >&6; }
8613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8615as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8616is in your PATH or set the PKG_CONFIG environment variable to the full
8617path to pkg-config.
8618
8619Alternatively, you may set the environment variables CUNIT_CFLAGS
8620and CUNIT_LIBS to avoid the need to call pkg-config.
8621See the pkg-config man page for more details.
8622
8623To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8624See \`config.log' for more details" "$LINENO" 5; }
8625
8626else
8627 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8628 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8630$as_echo "yes" >&6; }
8631
8632fi
f11781c5 8633fi
ad6254c5 8634
f11781c5
AK
8635################################################################################
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8637$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8638# Check whether --enable-valgrind_pool was given.
8639if test "${enable_valgrind_pool+set}" = set; then :
8640 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8641else
8642 VALGRIND_POOL=no
8643fi
8644
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8646$as_echo "$VALGRIND_POOL" >&6; }
8647
8648if test "$VALGRIND_POOL" = yes; then
8649 for ac_header in valgrind/memcheck.h
8650do :
8651 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8652if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8653 cat >>confdefs.h <<_ACEOF
8654#define HAVE_VALGRIND_MEMCHECK_H 1
8655_ACEOF
ad6254c5 8656
ad6254c5 8657else
f11781c5 8658 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8659fi
8660
f11781c5
AK
8661done
8662
8663
8664$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8665
ad6254c5
AK
8666fi
8667
8668################################################################################
f11781c5
AK
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8670$as_echo_n "checking whether to use device-mapper... " >&6; }
8671# Check whether --enable-devmapper was given.
8672if test "${enable_devmapper+set}" = set; then :
8673 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8674fi
8675
f11781c5
AK
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8677$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8678
f11781c5 8679if test x$DEVMAPPER = xyes; then
ad6254c5 8680
f11781c5
AK
8681$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8682
8683fi
8684
cdd50823
ZK
8685################################################################################
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8687$as_echo_n "checking whether to build LVMetaD... " >&6; }
8688# Check whether --enable-lvmetad was given.
8689if test "${enable_lvmetad+set}" = set; then :
8690 enableval=$enable_lvmetad; LVMETAD=$enableval
8691fi
8692
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8694$as_echo "$LVMETAD" >&6; }
8695
8696BUILD_LVMETAD=$LVMETAD
8697
f11781c5
AK
8698################################################################################
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8700$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8701# Check whether --enable-udev_sync was given.
8702if test "${enable_udev_sync+set}" = set; then :
8703 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8704else
f11781c5 8705 UDEV_SYNC=no
7a197a62 8706fi
ad6254c5 8707
f11781c5
AK
8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8709$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8710
f11781c5 8711if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8712 if test x$PKGCONFIG_INIT != x1; then
8713 pkg_config_init
8714 fi
7a197a62 8715
d93275eb
PR
8716pkg_failed=no
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8718$as_echo_n "checking for UDEV... " >&6; }
8719
8720if test -n "$UDEV_CFLAGS"; then
8721 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8722 elif test -n "$PKG_CONFIG"; then
8723 if test -n "$PKG_CONFIG" && \
8724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8725 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8726 ac_status=$?
8727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8728 test $ac_status = 0; }; then
8729 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8730else
d93275eb 8731 pkg_failed=yes
f11781c5 8732fi
d93275eb
PR
8733 else
8734 pkg_failed=untried
f11781c5 8735fi
d93275eb
PR
8736if test -n "$UDEV_LIBS"; then
8737 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8738 elif test -n "$PKG_CONFIG"; then
8739 if test -n "$PKG_CONFIG" && \
8740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8741 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8742 ac_status=$?
8743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8744 test $ac_status = 0; }; then
8745 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8746else
d93275eb 8747 pkg_failed=yes
68f2de6d 8748fi
d93275eb
PR
8749 else
8750 pkg_failed=untried
8751fi
8752
8753
8754
8755if test $pkg_failed = yes; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757$as_echo "no" >&6; }
8758
8759if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8760 _pkg_short_errors_supported=yes
8761else
8762 _pkg_short_errors_supported=no
8763fi
8764 if test $_pkg_short_errors_supported = yes; then
8765 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8766 else
8767 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8768 fi
8769 # Put the nasty error message in config.log where it belongs
8770 echo "$UDEV_PKG_ERRORS" >&5
8771
8772 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8773
8774$UDEV_PKG_ERRORS
8775
8776Consider adjusting the PKG_CONFIG_PATH environment variable if you
8777installed software in a non-standard prefix.
8778
8779Alternatively, you may set the environment variables UDEV_CFLAGS
8780and UDEV_LIBS to avoid the need to call pkg-config.
8781See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8782
d93275eb
PR
8783elif test $pkg_failed = untried; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785$as_echo "no" >&6; }
8786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8788as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8789is in your PATH or set the PKG_CONFIG environment variable to the full
8790path to pkg-config.
8791
8792Alternatively, you may set the environment variables UDEV_CFLAGS
8793and UDEV_LIBS to avoid the need to call pkg-config.
8794See the pkg-config man page for more details.
8795
8796To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8797See \`config.log' for more details" "$LINENO" 5; }
8798
8799else
8800 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8801 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8803$as_echo "yes" >&6; }
8804 UDEV_PC="libudev"
8805fi
68f2de6d 8806
f11781c5 8807$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8808
f11781c5
AK
8809fi
8810
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8812$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8813# Check whether --enable-udev_rules was given.
8814if test "${enable_udev_rules+set}" = set; then :
8815 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8816else
f11781c5 8817 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8818fi
8819
f11781c5
AK
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8821$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8822
a5f46f6a 8823################################################################################
f11781c5
AK
8824# Check whether --enable-compat was given.
8825if test "${enable_compat+set}" = set; then :
8826 enableval=$enable_compat; DM_COMPAT=$enableval
8827else
8828 DM_COMPAT=no
8829fi
a5f46f6a 8830
f11781c5 8831
2061c0ec
AK
8832if test x$DM_COMPAT = xyes; then
8833 as_fn_error $? "--enable-compat is not currently supported.
8834Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8835ioctl protocol is supported.
8836 " "$LINENO" 5
8837fi
8838
f11781c5
AK
8839################################################################################
8840# Check whether --enable-units-compat was given.
8841if test "${enable_units_compat+set}" = set; then :
8842 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8843else
f11781c5 8844 UNITS_COMPAT=no
a5f46f6a
AK
8845fi
8846
8847
f11781c5 8848if test x$UNITS_COMPAT = xyes; then
78ce7acc 8849
f11781c5
AK
8850$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8851
8852fi
8853
8854################################################################################
8855# Check whether --enable-ioctl was given.
8856if test "${enable_ioctl+set}" = set; then :
8857 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8858fi
8859
a5f46f6a 8860
ad6254c5 8861################################################################################
f11781c5
AK
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8863$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8864# Check whether --enable-o_direct was given.
8865if test "${enable_o_direct+set}" = set; then :
8866 enableval=$enable_o_direct; ODIRECT=$enableval
8867fi
ad6254c5 8868
f11781c5
AK
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8870$as_echo "$ODIRECT" >&6; }
8871
8872if test x$ODIRECT = xyes; then
8873
8874$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8875
ad6254c5 8876fi
ad6254c5 8877
f11781c5
AK
8878################################################################################
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8880$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8881# Check whether --enable-applib was given.
8882if test "${enable_applib+set}" = set; then :
8883 enableval=$enable_applib; APPLIB=$enableval
8884else
8885 APPLIB=no
ad6254c5 8886fi
7a197a62 8887
f11781c5
AK
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8889$as_echo "$APPLIB" >&6; }
ad6254c5 8890
f11781c5
AK
8891test x$APPLIB = xyes \
8892 && LVM2APP_LIB=-llvm2app \
8893 || LVM2APP_LIB=
ad6254c5 8894
f11781c5
AK
8895################################################################################
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8897$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8898# Check whether --enable-cmdlib was given.
8899if test "${enable_cmdlib+set}" = set; then :
8900 enableval=$enable_cmdlib; CMDLIB=$enableval
8901else
8902 CMDLIB=no
ad6254c5 8903fi
7a197a62 8904
f11781c5
AK
8905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8906$as_echo "$CMDLIB" >&6; }
7a197a62 8907
f11781c5
AK
8908test x$CMDLIB = xyes \
8909 && LVM2CMD_LIB=-llvm2cmd \
8910 || LVM2CMD_LIB=
8911
8912################################################################################
8913# Check whether --enable-pkgconfig was given.
8914if test "${enable_pkgconfig+set}" = set; then :
8915 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8916else
f11781c5 8917 PKGCONFIG=no
ad6254c5 8918fi
ad6254c5 8919
ad6254c5 8920
f11781c5
AK
8921################################################################################
8922# Check whether --enable-write_install was given.
8923if test "${enable_write_install+set}" = set; then :
8924 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8925else
f11781c5 8926 WRITE_INSTALL=no
ad6254c5
AK
8927fi
8928
ad6254c5 8929
f11781c5
AK
8930################################################################################
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8932$as_echo_n "checking whether to install fsadm... " >&6; }
8933# Check whether --enable-fsadm was given.
8934if test "${enable_fsadm+set}" = set; then :
8935 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8936fi
8937
f11781c5
AK
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8939$as_echo "$FSADM" >&6; }
ad6254c5 8940
f11781c5
AK
8941################################################################################
8942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8943$as_echo_n "checking whether to use dmeventd... " >&6; }
8944# Check whether --enable-dmeventd was given.
8945if test "${enable_dmeventd+set}" = set; then :
8946 enableval=$enable_dmeventd; DMEVENTD=$enableval
8947fi
ad6254c5 8948
f11781c5
AK
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8950$as_echo "$DMEVENTD" >&6; }
ad6254c5 8951
f11781c5 8952BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8953
f11781c5
AK
8954if test x$DMEVENTD = xyes; then
8955 if test x$MIRRORS != xinternal; then
8956 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8957 " "$LINENO" 5
8958 fi
8959 if test x$CMDLIB = xno; then
8960 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8961 " "$LINENO" 5
8962 fi
8963fi
ad6254c5 8964
f11781c5 8965if test x$DMEVENTD = xyes; then
ad6254c5 8966
f11781c5 8967$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8968
f11781c5 8969fi
ad6254c5 8970
f11781c5 8971################################################################################
ad6254c5 8972
f11781c5
AK
8973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8974$as_echo_n "checking for getline in -lc... " >&6; }
8975if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8976 $as_echo_n "(cached) " >&6
ad6254c5 8977else
f11781c5
AK
8978 ac_check_lib_save_LIBS=$LIBS
8979LIBS="-lc $LIBS"
8980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8981/* end confdefs.h. */
f11781c5
AK
8982
8983/* Override any GCC internal prototype to avoid an error.
8984 Use char because int might match the return type of a GCC
8985 builtin and then its argument prototype would still apply. */
8986#ifdef __cplusplus
8987extern "C"
8988#endif
8989char getline ();
8990int
8991main ()
8992{
8993return getline ();
8994 ;
8995 return 0;
8996}
ad6254c5 8997_ACEOF
f11781c5
AK
8998if ac_fn_c_try_link "$LINENO"; then :
8999 ac_cv_lib_c_getline=yes
ad6254c5 9000else
f11781c5
AK
9001 ac_cv_lib_c_getline=no
9002fi
9003rm -f core conftest.err conftest.$ac_objext \
9004 conftest$ac_exeext conftest.$ac_ext
9005LIBS=$ac_check_lib_save_LIBS
9006fi
9007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9008$as_echo "$ac_cv_lib_c_getline" >&6; }
9009if test "x$ac_cv_lib_c_getline" = x""yes; then :
9010
9011$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9012
ad6254c5 9013fi
7a197a62 9014
ad6254c5 9015
f11781c5
AK
9016################################################################################
9017
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9019$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9020if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022else
9023 ac_check_lib_save_LIBS=$LIBS
9024LIBS="-lc $LIBS"
9025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9026/* end confdefs.h. */
f11781c5
AK
9027
9028/* Override any GCC internal prototype to avoid an error.
9029 Use char because int might match the return type of a GCC
9030 builtin and then its argument prototype would still apply. */
9031#ifdef __cplusplus
9032extern "C"
9033#endif
9034char canonicalize_file_name ();
9035int
9036main ()
9037{
9038return canonicalize_file_name ();
9039 ;
9040 return 0;
9041}
ad6254c5 9042_ACEOF
f11781c5
AK
9043if ac_fn_c_try_link "$LINENO"; then :
9044 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9045else
f11781c5
AK
9046 ac_cv_lib_c_canonicalize_file_name=no
9047fi
9048rm -f core conftest.err conftest.$ac_objext \
9049 conftest$ac_exeext conftest.$ac_ext
9050LIBS=$ac_check_lib_save_LIBS
9051fi
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9053$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9054if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9055
9056$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9057
ad6254c5 9058fi
7a197a62 9059
ad6254c5 9060
f11781c5
AK
9061################################################################################
9062if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9063 then exec_prefix="";
9064fi;
7a197a62 9065
f11781c5
AK
9066################################################################################
9067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9068$as_echo_n "checking for dlopen in -ldl... " >&6; }
9069if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9070 $as_echo_n "(cached) " >&6
ad6254c5 9071else
f11781c5
AK
9072 ac_check_lib_save_LIBS=$LIBS
9073LIBS="-ldl $LIBS"
9074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075/* end confdefs.h. */
ad6254c5 9076
f11781c5
AK
9077/* Override any GCC internal prototype to avoid an error.
9078 Use char because int might match the return type of a GCC
9079 builtin and then its argument prototype would still apply. */
9080#ifdef __cplusplus
9081extern "C"
9082#endif
9083char dlopen ();
9084int
9085main ()
9086{
9087return dlopen ();
9088 ;
9089 return 0;
9090}
ad6254c5 9091_ACEOF
f11781c5
AK
9092if ac_fn_c_try_link "$LINENO"; then :
9093 ac_cv_lib_dl_dlopen=yes
ad6254c5 9094else
f11781c5 9095 ac_cv_lib_dl_dlopen=no
795ca3e5 9096fi
f11781c5
AK
9097rm -f core conftest.err conftest.$ac_objext \
9098 conftest$ac_exeext conftest.$ac_ext
9099LIBS=$ac_check_lib_save_LIBS
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9102$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9103if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9104
ad6254c5 9105
f11781c5 9106$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9107
f11781c5
AK
9108 DL_LIBS="-ldl"
9109 HAVE_LIBDL=yes
9110else
795ca3e5 9111
f11781c5
AK
9112 DL_LIBS=
9113 HAVE_LIBDL=no
9114fi
8106cdd5 9115
ad6254c5 9116
f11781c5
AK
9117################################################################################
9118if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9119 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 9120 -o "x$RAID" = xshared \
f11781c5
AK
9121 \) -a "x$STATIC_LINK" = xyes ];
9122 then as_fn_error $? "Features cannot be 'shared' when building statically
9123" "$LINENO" 5
9124fi
ad6254c5 9125
f11781c5
AK
9126################################################################################
9127if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9129$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9130if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9131 $as_echo_n "(cached) " >&6
795ca3e5 9132else
f11781c5
AK
9133 ac_check_lib_save_LIBS=$LIBS
9134LIBS="-lpthread $LIBS"
9135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9136/* end confdefs.h. */
8a2fc586 9137
f11781c5
AK
9138/* Override any GCC internal prototype to avoid an error.
9139 Use char because int might match the return type of a GCC
9140 builtin and then its argument prototype would still apply. */
9141#ifdef __cplusplus
9142extern "C"
ad6254c5 9143#endif
f11781c5
AK
9144char pthread_mutex_lock ();
9145int
9146main ()
9147{
9148return pthread_mutex_lock ();
9149 ;
9150 return 0;
9151}
9152_ACEOF
9153if ac_fn_c_try_link "$LINENO"; then :
9154 ac_cv_lib_pthread_pthread_mutex_lock=yes
9155else
9156 ac_cv_lib_pthread_pthread_mutex_lock=no
9157fi
9158rm -f core conftest.err conftest.$ac_objext \
9159 conftest$ac_exeext conftest.$ac_ext
9160LIBS=$ac_check_lib_save_LIBS
9161fi
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9163$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9164if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9165 PTHREAD_LIBS="-lpthread"
9166else
9167 hard_bailout
9168fi
9169
9170fi
9171
9172################################################################################
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9174$as_echo_n "checking whether to enable selinux support... " >&6; }
9175# Check whether --enable-selinux was given.
9176if test "${enable_selinux+set}" = set; then :
9177 enableval=$enable_selinux; SELINUX=$enableval
9178fi
9179
9180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9181$as_echo "$SELINUX" >&6; }
8a2fc586 9182
f11781c5
AK
9183################################################################################
9184if test x$SELINUX = xyes; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9186$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9187if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9188 $as_echo_n "(cached) " >&6
9189else
9190 ac_check_lib_save_LIBS=$LIBS
9191LIBS="-lsepol $LIBS"
9192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193/* end confdefs.h. */
8a2fc586 9194
7a197a62
AK
9195/* Override any GCC internal prototype to avoid an error.
9196 Use char because int might match the return type of a GCC
9197 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9198#ifdef __cplusplus
9199extern "C"
ad6254c5 9200#endif
f11781c5 9201char sepol_check_context ();
ad6254c5
AK
9202int
9203main ()
9204{
f11781c5 9205return sepol_check_context ();
ad6254c5
AK
9206 ;
9207 return 0;
9208}
9209_ACEOF
f11781c5
AK
9210if ac_fn_c_try_link "$LINENO"; then :
9211 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9212else
f11781c5
AK
9213 ac_cv_lib_sepol_sepol_check_context=no
9214fi
9215rm -f core conftest.err conftest.$ac_objext \
9216 conftest$ac_exeext conftest.$ac_ext
9217LIBS=$ac_check_lib_save_LIBS
80992638 9218fi
f11781c5
AK
9219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9220$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9221if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9222
80992638 9223
f11781c5
AK
9224$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9225
9226 SELINUX_LIBS="-lsepol"
8106cdd5 9227fi
795ca3e5 9228
f11781c5
AK
9229
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9231$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9232if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9233 $as_echo_n "(cached) " >&6
25fbec5b 9234else
f11781c5
AK
9235 ac_check_lib_save_LIBS=$LIBS
9236LIBS="-lselinux $LIBS"
9237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9238/* end confdefs.h. */
80992638 9239
7a197a62
AK
9240/* Override any GCC internal prototype to avoid an error.
9241 Use char because int might match the return type of a GCC
ad6254c5 9242 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9243#ifdef __cplusplus
9244extern "C"
9245#endif
f11781c5 9246char is_selinux_enabled ();
ad6254c5
AK
9247int
9248main ()
9249{
f11781c5 9250return is_selinux_enabled ();
ad6254c5
AK
9251 ;
9252 return 0;
9253}
9254_ACEOF
f11781c5
AK
9255if ac_fn_c_try_link "$LINENO"; then :
9256 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9257else
f11781c5 9258 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9259fi
f11781c5
AK
9260rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262LIBS=$ac_check_lib_save_LIBS
25fbec5b 9263fi
f11781c5
AK
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9265$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9266if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9267
f11781c5
AK
9268 for ac_header in selinux/selinux.h
9269do :
9270 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9271if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9272 cat >>confdefs.h <<_ACEOF
9273#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9274_ACEOF
795ca3e5 9275
25fbec5b 9276else
f11781c5 9277 hard_bailout
795ca3e5 9278fi
795ca3e5 9279
f11781c5 9280done
795ca3e5 9281
f11781c5
AK
9282 for ac_header in selinux/label.h
9283do :
9284 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9285if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9286 cat >>confdefs.h <<_ACEOF
9287#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9288_ACEOF
ad6254c5 9289
ad6254c5 9290fi
7a197a62 9291
f11781c5 9292done
7a197a62 9293
ad6254c5 9294
f11781c5 9295$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9296
f11781c5
AK
9297 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9298 SELINUX_PC="libselinux"
9299 HAVE_SELINUX=yes
ad6254c5 9300else
8106cdd5 9301
f11781c5
AK
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9303$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9304 SELINUX_LIBS=
9305 SELINUX_PC=
9306 HAVE_SELINUX=no
795ca3e5 9307fi
ad6254c5 9308
795ca3e5
AK
9309fi
9310
f11781c5
AK
9311################################################################################
9312if test x$REALTIME = xyes; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9314$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9315if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9316 $as_echo_n "(cached) " >&6
26e7f2e0 9317else
f11781c5
AK
9318 ac_check_lib_save_LIBS=$LIBS
9319LIBS="-lrt $LIBS"
9320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9321/* end confdefs.h. */
ad6254c5 9322
f11781c5
AK
9323/* Override any GCC internal prototype to avoid an error.
9324 Use char because int might match the return type of a GCC
9325 builtin and then its argument prototype would still apply. */
9326#ifdef __cplusplus
9327extern "C"
9328#endif
9329char clock_gettime ();
ad6254c5
AK
9330int
9331main ()
9332{
f11781c5 9333return clock_gettime ();
ad6254c5
AK
9334 ;
9335 return 0;
9336}
9337_ACEOF
f11781c5
AK
9338if ac_fn_c_try_link "$LINENO"; then :
9339 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9340else
f11781c5 9341 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9342fi
f11781c5
AK
9343rm -f core conftest.err conftest.$ac_objext \
9344 conftest$ac_exeext conftest.$ac_ext
9345LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9346fi
f11781c5
AK
9347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9348$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9349if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9350 HAVE_REALTIME=yes
9351else
9352 HAVE_REALTIME=no
8106cdd5 9353fi
ad6254c5 9354
ad6254c5 9355
f11781c5 9356 if test x$HAVE_REALTIME = xyes; then
7a197a62 9357
f11781c5 9358$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9359
f11781c5
AK
9360 LIBS="-lrt $LIBS"
9361 else
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9363$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9364 fi
9365fi
9366
9367################################################################################
9368for ac_header in getopt.h
9369do :
9370 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9371if test "x$ac_cv_header_getopt_h" = x""yes; then :
9372 cat >>confdefs.h <<_ACEOF
9373#define HAVE_GETOPT_H 1
9374_ACEOF
9375
9376$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9377
ad6254c5 9378fi
7a197a62 9379
f11781c5 9380done
ad6254c5 9381
7a197a62 9382
f11781c5
AK
9383################################################################################
9384if test x$READLINE != xno; then
9385 lvm_saved_libs=$LIBS
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9387$as_echo_n "checking for library containing tgetent... " >&6; }
9388if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9389 $as_echo_n "(cached) " >&6
ad6254c5 9390else
f11781c5
AK
9391 ac_func_search_save_LIBS=$LIBS
9392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393/* end confdefs.h. */
ad6254c5 9394
f11781c5
AK
9395/* Override any GCC internal prototype to avoid an error.
9396 Use char because int might match the return type of a GCC
9397 builtin and then its argument prototype would still apply. */
9398#ifdef __cplusplus
9399extern "C"
9400#endif
9401char tgetent ();
9402int
9403main ()
9404{
9405return tgetent ();
9406 ;
9407 return 0;
9408}
ad6254c5 9409_ACEOF
f11781c5
AK
9410for ac_lib in '' tinfo ncurses curses termcap termlib; do
9411 if test -z "$ac_lib"; then
9412 ac_res="none required"
9413 else
9414 ac_res=-l$ac_lib
9415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9416 fi
9417 if ac_fn_c_try_link "$LINENO"; then :
9418 ac_cv_search_tgetent=$ac_res
9419fi
9420rm -f core conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext
9422 if test "${ac_cv_search_tgetent+set}" = set; then :
9423 break
9424fi
9425done
9426if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9427
80992638 9428else
f11781c5 9429 ac_cv_search_tgetent=no
b896caa1 9430fi
f11781c5
AK
9431rm conftest.$ac_ext
9432LIBS=$ac_func_search_save_LIBS
9433fi
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9435$as_echo "$ac_cv_search_tgetent" >&6; }
9436ac_res=$ac_cv_search_tgetent
9437if test "$ac_res" != no; then :
9438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9439 READLINE_LIBS=$ac_cv_search_tgetent
9440else
ad6254c5 9441
f11781c5
AK
9442 if test "$READLINE" = yes; then
9443 as_fn_error $? "termcap could not be found which is required for the
9444--enable-readline option (which is enabled by default). Either disable readline
9445support with --disable-readline or download and install termcap from:
9446 ftp.gnu.org/gnu/termcap
9447Note: if you are using precompiled packages you will also need the development
9448 package as well (which may be called termcap-devel or something similar).
9449Note: (n)curses also seems to work as a substitute for termcap. This was
9450 not found either - but you could try installing that as well." "$LINENO" 5
9451 fi
9452fi
b896caa1 9453
f11781c5
AK
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9455$as_echo_n "checking for readline in -lreadline... " >&6; }
9456if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9457 $as_echo_n "(cached) " >&6
795ca3e5 9458else
f11781c5
AK
9459 ac_check_lib_save_LIBS=$LIBS
9460LIBS="-lreadline $LIBS"
9461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9462/* end confdefs.h. */
8a2fc586 9463
f11781c5
AK
9464/* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9467#ifdef __cplusplus
9468extern "C"
ad6254c5 9469#endif
f11781c5
AK
9470char readline ();
9471int
9472main ()
9473{
9474return readline ();
9475 ;
9476 return 0;
9477}
9478_ACEOF
9479if ac_fn_c_try_link "$LINENO"; then :
9480 ac_cv_lib_readline_readline=yes
9481else
9482 ac_cv_lib_readline_readline=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486LIBS=$ac_check_lib_save_LIBS
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9489$as_echo "$ac_cv_lib_readline_readline" >&6; }
9490if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9491
8a2fc586 9492
f11781c5
AK
9493$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9494
9495 LIBS=$lvm_saved_libs
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9497$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9498if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9499 $as_echo_n "(cached) " >&6
9500else
9501 ac_check_lib_save_LIBS=$LIBS
9502LIBS="-lreadline $LIBS"
9503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h. */
8a2fc586 9505
7a197a62
AK
9506/* Override any GCC internal prototype to avoid an error.
9507 Use char because int might match the return type of a GCC
9508 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9509#ifdef __cplusplus
9510extern "C"
ad6254c5 9511#endif
f11781c5 9512char rl_line_buffer ();
ad6254c5
AK
9513int
9514main ()
9515{
f11781c5 9516return rl_line_buffer ();
ad6254c5
AK
9517 ;
9518 return 0;
9519}
9520_ACEOF
f11781c5
AK
9521if ac_fn_c_try_link "$LINENO"; then :
9522 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9523else
f11781c5
AK
9524 ac_cv_lib_readline_rl_line_buffer=no
9525fi
9526rm -f core conftest.err conftest.$ac_objext \
9527 conftest$ac_exeext conftest.$ac_ext
9528LIBS=$ac_check_lib_save_LIBS
9529fi
9530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9531$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9532if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9533 READLINE_LIBS="-lreadline"
9534else
9535
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9537$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9538 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9539
ad6254c5 9540fi
7a197a62 9541
f11781c5
AK
9542else
9543
9544 READLINE_LIBS=
9545 if test "$READLINE" = yes; then
9546 as_fn_error $? "GNU Readline could not be found which is required for the
9547--enable-readline option (which is enabled by default). Either disable readline
9548support with --disable-readline or download and install readline from:
9549 ftp.gnu.org/gnu/readline
9550Note: if you are using precompiled packages you will also need the development
9551package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9552 fi
ad6254c5 9553fi
f11781c5
AK
9554
9555 LIBS="$READLINE_LIBS $lvm_saved_libs"
9556 for ac_func in rl_completion_matches
9557do :
9558 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9559if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9560 cat >>confdefs.h <<_ACEOF
f11781c5 9561#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9562_ACEOF
9563
ad6254c5
AK
9564fi
9565done
9566
f11781c5 9567 LIBS=$lvm_saved_libs
ad6254c5
AK
9568fi
9569
f11781c5
AK
9570################################################################################
9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9572$as_echo_n "checking whether to enable internationalisation... " >&6; }
9573# Check whether --enable-nls was given.
9574if test "${enable_nls+set}" = set; then :
9575 enableval=$enable_nls; INTL=$enableval
9576else
9577 INTL=no
9578fi
d911ec67 9579
f11781c5
AK
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9581$as_echo "$INTL" >&6; }
9582
9583if test x$INTL = xyes; then
9584# FIXME - Move this - can be device-mapper too
9585 INTL_PACKAGE="lvm2"
9586 # Extract the first word of "msgfmt", so it can be a program name with args.
9587set dummy msgfmt; ac_word=$2
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589$as_echo_n "checking for $ac_word... " >&6; }
9590if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9591 $as_echo_n "(cached) " >&6
d911ec67 9592else
f11781c5
AK
9593 case $MSGFMT in
9594 [\\/]* | ?:[\\/]*)
9595 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9596 ;;
9597 *)
9598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599for as_dir in $PATH
9600do
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
9603 for ac_exec_ext in '' $ac_executable_extensions; do
9604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9605 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607 break 2
9608 fi
9609done
9610 done
9611IFS=$as_save_IFS
9612
9613 ;;
d911ec67 9614esac
f11781c5
AK
9615fi
9616MSGFMT=$ac_cv_path_MSGFMT
9617if test -n "$MSGFMT"; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9619$as_echo "$MSGFMT" >&6; }
d911ec67 9620else
f11781c5
AK
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622$as_echo "no" >&6; }
9623fi
d911ec67 9624
f11781c5
AK
9625
9626 if [ "x$MSGFMT" == x ];
9627 then as_fn_error $? "msgfmt not found in path $PATH
9628 " "$LINENO" 5
9629 fi;
9630
9631
9632# Check whether --with-localedir was given.
9633if test "${with_localedir+set}" = set; then :
9634 withval=$with_localedir; LOCALEDIR=$withval
9635else
9636 LOCALEDIR='${prefix}/share/locale'
9637fi
9638
9639fi
9640
9641################################################################################
9642
9643# Check whether --with-confdir was given.
9644if test "${with_confdir+set}" = set; then :
9645 withval=$with_confdir; CONFDIR=$withval
9646else
9647 CONFDIR="/etc"
9648fi
9649
9650
9651
9652# Check whether --with-staticdir was given.
9653if test "${with_staticdir+set}" = set; then :
9654 withval=$with_staticdir; STATICDIR=$withval
9655else
9656 STATICDIR='${exec_prefix}/sbin'
9657fi
9658
9659
9660
9661# Check whether --with-usrlibdir was given.
9662if test "${with_usrlibdir+set}" = set; then :
9663 withval=$with_usrlibdir; usrlibdir=$withval
9664else
9665 usrlibdir='${prefix}/lib'
d911ec67
AK
9666fi
9667
d911ec67 9668
d911ec67 9669
f11781c5
AK
9670# Check whether --with-usrsbindir was given.
9671if test "${with_usrsbindir+set}" = set; then :
9672 withval=$with_usrsbindir; usrsbindir=$withval
9673else
9674 usrsbindir='${prefix}/sbin'
d911ec67
AK
9675fi
9676
d911ec67 9677
f11781c5 9678################################################################################
d911ec67 9679
f11781c5
AK
9680# Check whether --with-udev_prefix was given.
9681if test "${with_udev_prefix+set}" = set; then :
9682 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9683else
f11781c5 9684 udev_prefix='${exec_prefix}'
d911ec67 9685fi
d911ec67 9686
f11781c5
AK
9687
9688
9689# Check whether --with-udevdir was given.
9690if test "${with_udevdir+set}" = set; then :
9691 withval=$with_udevdir; udevdir=$withval
9692else
9693 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9694fi
f11781c5
AK
9695
9696
9697################################################################################
9698if test x$READLINE = xyes; then
9699 for ac_header in readline/readline.h readline/history.h
9700do :
9701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9702ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9703if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9704 cat >>confdefs.h <<_ACEOF
9705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9706_ACEOF
9707
9708else
f11781c5 9709 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9710fi
9711
9712done
9713
9714fi
9715
f11781c5
AK
9716if test x$CLVMD != xnone; then
9717 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
9718do :
9719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9720ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9722 cat >>confdefs.h <<_ACEOF
9723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9724_ACEOF
ad6254c5 9725
f11781c5
AK
9726else
9727 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9728fi
7a197a62 9729
f11781c5 9730done
ad6254c5 9731
f11781c5
AK
9732 for ac_func in dup2 getmntent memmove select socket
9733do :
9734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9735ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9736if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9737 cat >>confdefs.h <<_ACEOF
9738#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9739_ACEOF
ad6254c5 9740
f11781c5
AK
9741else
9742 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9743fi
f11781c5 9744done
7a197a62 9745
f11781c5
AK
9746 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9747# -lseq on Dynix/PTX, -lgen on Unixware.
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9749$as_echo_n "checking for library containing getmntent... " >&6; }
9750if test "${ac_cv_search_getmntent+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9752else
9753 ac_func_search_save_LIBS=$LIBS
9754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755/* end confdefs.h. */
ad6254c5 9756
f11781c5
AK
9757/* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760#ifdef __cplusplus
9761extern "C"
9762#endif
9763char getmntent ();
9764int
9765main ()
9766{
9767return getmntent ();
9768 ;
9769 return 0;
9770}
9771_ACEOF
9772for ac_lib in '' sun seq gen; do
9773 if test -z "$ac_lib"; then
9774 ac_res="none required"
9775 else
9776 ac_res=-l$ac_lib
9777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9778 fi
9779 if ac_fn_c_try_link "$LINENO"; then :
9780 ac_cv_search_getmntent=$ac_res
9781fi
9782rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext
9784 if test "${ac_cv_search_getmntent+set}" = set; then :
9785 break
9786fi
9787done
9788if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9789
ad6254c5 9790else
f11781c5 9791 ac_cv_search_getmntent=no
795ca3e5 9792fi
f11781c5
AK
9793rm conftest.$ac_ext
9794LIBS=$ac_func_search_save_LIBS
9795fi
9796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9797$as_echo "$ac_cv_search_getmntent" >&6; }
9798ac_res=$ac_cv_search_getmntent
9799if test "$ac_res" != no; then :
9800 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9801 ac_cv_func_getmntent=yes
9802
9803$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9804
f11781c5
AK
9805else
9806 ac_cv_func_getmntent=no
8106cdd5 9807fi
f11781c5
AK
9808
9809
9810 for ac_header in sys/select.h sys/socket.h
9811do :
9812 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9813ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9814if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9815 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9816#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9817_ACEOF
795ca3e5 9818
795ca3e5
AK
9819fi
9820
ad6254c5 9821done
80992638 9822
f11781c5
AK
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9824$as_echo_n "checking types of arguments for select... " >&6; }
9825if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9826 $as_echo_n "(cached) " >&6
83912faa 9827else
f11781c5
AK
9828 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9829 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9830 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9832/* end confdefs.h. */
9833$ac_includes_default
f11781c5
AK
9834#ifdef HAVE_SYS_SELECT_H
9835# include <sys/select.h>
9836#endif
9837#ifdef HAVE_SYS_SOCKET_H
9838# include <sys/socket.h>
9839#endif
9840
9841int
9842main ()
9843{
9844extern int select ($ac_arg1,
9845 $ac_arg234, $ac_arg234, $ac_arg234,
9846 $ac_arg5);
9847 ;
9848 return 0;
9849}
ad6254c5 9850_ACEOF
f11781c5
AK
9851if ac_fn_c_try_compile "$LINENO"; then :
9852 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9853fi
9854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 done
9856 done
9857done
9858# Provide a safe default value.
9859: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9860
ad6254c5 9861fi
f11781c5
AK
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9863$as_echo "$ac_cv_func_select_args" >&6; }
9864ac_save_IFS=$IFS; IFS=','
9865set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9866IFS=$ac_save_IFS
9867shift
7a197a62 9868
f11781c5
AK
9869cat >>confdefs.h <<_ACEOF
9870#define SELECT_TYPE_ARG1 $1
9871_ACEOF
ad6254c5 9872
f11781c5
AK
9873
9874cat >>confdefs.h <<_ACEOF
9875#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9876_ACEOF
f11781c5
AK
9877
9878
9879cat >>confdefs.h <<_ACEOF
9880#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9881_ACEOF
ad6254c5 9882
f11781c5
AK
9883rm -f conftest*
9884
ad6254c5 9885fi
7a197a62 9886
f11781c5
AK
9887if test x$CLUSTER != xnone; then
9888 for ac_header in sys/socket.h sys/un.h
9889do :
9890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9891ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9892if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9893 cat >>confdefs.h <<_ACEOF
9894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9895_ACEOF
ad6254c5 9896
f11781c5
AK
9897else
9898 as_fn_error $? "bailing out" "$LINENO" 5
9899fi
9900
9901done
9902
9903 for ac_func in socket
9904do :
9905 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9906if test "x$ac_cv_func_socket" = x""yes; then :
9907 cat >>confdefs.h <<_ACEOF
9908#define HAVE_SOCKET 1
9909_ACEOF
7a197a62 9910
80992638 9911else
f11781c5 9912 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9913fi
f11781c5 9914done
83912faa 9915
69792976 9916fi
f11781c5
AK
9917
9918if test x$DMEVENTD = xyes; then
9919 for ac_header in arpa/inet.h
9920do :
9921 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9922if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9923 cat >>confdefs.h <<_ACEOF
f11781c5 9924#define HAVE_ARPA_INET_H 1
ad6254c5 9925_ACEOF
69792976 9926
69792976 9927else
f11781c5 9928 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9929fi
9930
ad6254c5 9931done
69792976 9932
ad6254c5
AK
9933fi
9934
f11781c5
AK
9935if test x$HAVE_LIBDL = xyes; then
9936 for ac_header in dlfcn.h
9937do :
9938 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9939if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9940 cat >>confdefs.h <<_ACEOF
9941#define HAVE_DLFCN_H 1
a5f46f6a 9942_ACEOF
a5f46f6a 9943
f11781c5
AK
9944else
9945 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9946fi
9947
f11781c5 9948done
a5f46f6a 9949
a5f46f6a
AK
9950fi
9951
f11781c5
AK
9952if test x$INTL = xyes; then
9953 for ac_header in libintl.h
9954do :
9955 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9956if test "x$ac_cv_header_libintl_h" = x""yes; then :
9957 cat >>confdefs.h <<_ACEOF
9958#define HAVE_LIBINTL_H 1
9959_ACEOF
a5f46f6a 9960
a5f46f6a 9961else
f11781c5 9962 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9963fi
f11781c5
AK
9964
9965done
a5f46f6a
AK
9966
9967fi
f11781c5
AK
9968
9969if test x$UDEV_SYNC = xyes; then
9970 for ac_header in sys/ipc.h sys/sem.h
9971do :
9972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9973ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9974if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9975 cat >>confdefs.h <<_ACEOF
9976#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9977_ACEOF
9978
9979else
f11781c5 9980 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9981fi
9982
9983done
9984
9985fi
9986
a653923f
AK
9987################################################################################
9988# Extract the first word of "modprobe", so it can be a program name with args.
9989set dummy modprobe; ac_word=$2
f11781c5 9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9991$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9992if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9993 $as_echo_n "(cached) " >&6
72b2cb61
AK
9994else
9995 case $MODPROBE_CMD in
9996 [\\/]* | ?:[\\/]*)
9997 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9998 ;;
9999 *)
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001for as_dir in $PATH
10002do
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
f11781c5 10005 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10007 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10009 break 2
10010 fi
10011done
f11781c5 10012 done
7a197a62 10013IFS=$as_save_IFS
72b2cb61
AK
10014
10015 ;;
10016esac
10017fi
10018MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10019if test -n "$MODPROBE_CMD"; then
f11781c5 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10021$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10022else
f11781c5 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10024$as_echo "no" >&6; }
72b2cb61
AK
10025fi
10026
a653923f 10027
7a197a62 10028
a653923f 10029if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10030
10031cat >>confdefs.h <<_ACEOF
10032#define MODPROBE_CMD "$MODPROBE_CMD"
10033_ACEOF
10034
a653923f
AK
10035fi
10036
b5c2529b 10037
a9b601e2
ZK
10038lvm_exec_prefix=$exec_prefix
10039test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10040test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 10041LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 10042
b5c2529b 10043cat >>confdefs.h <<_ACEOF
d2c11605 10044#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
10045_ACEOF
10046
10047
10048if test "$CLVMD" != none; then
10049 clvmd_prefix=$ac_default_prefix
d2c11605 10050 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
10051 test "$prefix" != NONE && clvmd_prefix=$prefix
10052
10053cat >>confdefs.h <<_ACEOF
d2c11605 10054#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
10055_ACEOF
10056
10057fi
10058
80992638 10059################################################################################
93bd259b
AK
10060if test "$BUILD_DMEVENTD" = yes; then
10061
10062# Check whether --with-dmeventd-pidfile was given.
f11781c5 10063if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10064 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10065else
71082be4 10066 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10067fi
10068
93bd259b 10069
71082be4
ZK
10070cat >>confdefs.h <<_ACEOF
10071#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10072_ACEOF
93bd259b 10073
71082be4 10074fi
93bd259b
AK
10075
10076if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10077
10078# Check whether --with-dmeventd-path was given.
f11781c5 10079if test "${with_dmeventd_path+set}" = set; then :
71082be4 10080 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10081else
71082be4 10082 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10083fi
10084
93bd259b 10085
71082be4
ZK
10086cat >>confdefs.h <<_ACEOF
10087#define DMEVENTD_PATH "$DMEVENTD_PATH"
10088_ACEOF
3399ae32 10089
71082be4 10090fi
3399ae32 10091
8bae0a1e
AK
10092
10093
8bae0a1e 10094# Check whether --with-default-run-dir was given.
f11781c5 10095if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10096 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10097else
10098 DEFAULT_RUN_DIR="/var/run/lvm"
10099fi
10100
10101cat >>confdefs.h <<_ACEOF
10102#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10103_ACEOF
10104
10105
71082be4 10106################################################################################
3399ae32
AK
10107
10108# Check whether --with-default-system-dir was given.
f11781c5 10109if test "${with_default_system_dir+set}" = set; then :
71082be4 10110 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10111else
71082be4 10112 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10113fi
10114
71082be4 10115
3399ae32
AK
10116cat >>confdefs.h <<_ACEOF
10117#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10118_ACEOF
10119
10120
10121
3399ae32 10122# Check whether --with-default-archive-subdir was given.
f11781c5 10123if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10124 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10125else
71082be4 10126 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10127fi
10128
71082be4 10129
3399ae32
AK
10130cat >>confdefs.h <<_ACEOF
10131#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10132_ACEOF
10133
10134
10135
3399ae32 10136# Check whether --with-default-backup-subdir was given.
f11781c5 10137if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10138 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10139else
71082be4 10140 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10141fi
10142
71082be4 10143
3399ae32
AK
10144cat >>confdefs.h <<_ACEOF
10145#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10146_ACEOF
10147
10148
10149
3399ae32 10150# Check whether --with-default-cache-subdir was given.
f11781c5 10151if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10152 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10153else
71082be4 10154 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10155fi
10156
71082be4 10157
3399ae32
AK
10158cat >>confdefs.h <<_ACEOF
10159#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10160_ACEOF
10161
10162
10163
3399ae32 10164# Check whether --with-default-locking-dir was given.
f11781c5 10165if test "${with_default_locking_dir+set}" = set; then :
71082be4 10166 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10167else
71082be4 10168 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10169fi
10170
71082be4 10171
3399ae32
AK
10172cat >>confdefs.h <<_ACEOF
10173#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10174_ACEOF
10175
10176
fea55602
DW
10177################################################################################
10178
10179# Check whether --with-default-data-alignment was given.
f11781c5 10180if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10181 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10182else
10183 DEFAULT_DATA_ALIGNMENT=1
10184fi
10185
10186
10187cat >>confdefs.h <<_ACEOF
10188#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10189_ACEOF
10190
10191
93bd259b 10192################################################################################
f11781c5 10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10194$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10195
10196# Check whether --with-interface was given.
f11781c5 10197if test "${with_interface+set}" = set; then :
71082be4 10198 withval=$with_interface; interface=$withval
93bd259b 10199else
71082be4 10200 interface=ioctl
93bd259b
AK
10201fi
10202
10203if [ "x$interface" != xioctl ];
10204then
f11781c5 10205 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10206fi
f11781c5 10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10208$as_echo "$interface" >&6; }
93bd259b
AK
10209
10210################################################################################
db8b5af9 10211DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10212
10213cat >>confdefs.h <<_ACEOF
10214#define DM_LIB_VERSION $DM_LIB_VERSION
10215_ACEOF
10216
10217
db8b5af9 10218DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10219
db8b5af9 10220LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10221
db8b5af9 10222VER=`cat "$srcdir"/VERSION`
bf456146 10223LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10224VER=`echo "$VER" | $AWK '{print $1}'`
10225LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10226VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10227LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10228LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10229LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10230LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10231
80992638 10232################################################################################
fae0c576 10233
83912faa 10234
795ca3e5
AK
10235
10236
10237
10238
10239
10240
5a52dca9 10241
8ef2b021 10242
199e490e 10243
69792976
AK
10244
10245
10246
d0191583 10247
69792976 10248
8106cdd5
AK
10249
10250
10251
10252
10253
d68a82ec 10254
036f273a 10255
7d1552c9 10256
8106cdd5 10257
0a62c911 10258
8106cdd5 10259
4a7f3eb2 10260
4922197a
AK
10261
10262
d8ac0fbc 10263
1a9ea74d 10264
8a2fc586
AK
10265
10266
d0191583 10267
93bd259b
AK
10268
10269
10270
10271
10272
d0191583
JM
10273
10274
10275
10276
10277
8a2fc586 10278
19a2c6e0 10279
f7f0854e
ZK
10280
10281
3ceb7608 10282
8ce0cbda 10283
8b1a3214 10284
ec6a6fbe
AK
10285
10286
10287
10288
e2997b73
AK
10289
10290
10291
10292
10293
10294
a946372e
AK
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
ec6a6fbe 10306
cac52ca4 10307
d3c8211f 10308
7e3fe830 10309
a5f46f6a
AK
10310
10311
10312
572fefeb 10313
90c80887 10314
3399ae32
AK
10315
10316
10317
10318
10319
90c80887 10320
bf456146 10321
e1b8a236 10322
0878503f 10323
8fea97b7 10324
54b362f9 10325
b1f08e51 10326
d1e8046f 10327
fea55602 10328
c89bc357 10329
6e5c1f75 10330
3ba4a195 10331
d2c11605
ZK
10332
10333
cdd50823 10334
426fc742
PR
10335
10336
b6d7a484
AK
10337
10338
bf09a320 10339
68f2de6d
AK
10340
10341
80992638 10342################################################################################
2bc1d759 10343ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10344
ad6254c5 10345cat >confcache <<\_ACEOF
795ca3e5
AK
10346# This file is a shell script that caches the results of configure
10347# tests run on this system so they can be shared between configure
ad6254c5
AK
10348# scripts and configure runs, see configure's option --config-cache.
10349# It is not useful on other systems. If it contains results you don't
10350# want to keep, you may remove or edit it.
795ca3e5 10351#
ad6254c5
AK
10352# config.status only pays attention to the cache file if you give it
10353# the --recheck option to rerun configure.
795ca3e5 10354#
ad6254c5
AK
10355# `ac_cv_env_foo' variables (set or unset) will be overridden when
10356# loading this file, other *unset* `ac_cv_foo' will be assigned the
10357# following values.
10358
10359_ACEOF
10360
795ca3e5
AK
10361# The following way of writing the cache mishandles newlines in values,
10362# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10363# So, we kill variables containing newlines.
795ca3e5
AK
10364# Ultrix sh set writes to stderr and can't be redirected directly,
10365# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10366(
10367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10368 eval ac_val=\$$ac_var
10369 case $ac_val in #(
10370 *${as_nl}*)
10371 case $ac_var in #(
f11781c5 10372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10373$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10374 esac
10375 case $ac_var in #(
10376 _ | IFS | as_nl) ;; #(
ec6a6fbe 10377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10378 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10379 esac ;;
10380 esac
10381 done
10382
ad6254c5 10383 (set) 2>&1 |
7a197a62
AK
10384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10385 *${as_nl}ac_space=\ *)
f11781c5
AK
10386 # `set' does not quote correctly, so add quotes: double-quote
10387 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10388 sed -n \
8a2fc586
AK
10389 "s/'/'\\\\''/g;
10390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10391 ;; #(
ad6254c5
AK
10392 *)
10393 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10395 ;;
7a197a62
AK
10396 esac |
10397 sort
10398) |
ad6254c5 10399 sed '
7a197a62 10400 /^ac_cv_env_/b end
ad6254c5 10401 t clear
7a197a62 10402 :clear
ad6254c5
AK
10403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10404 t end
7a197a62
AK
10405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10406 :end' >>confcache
10407if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10408 if test -w "$cache_file"; then
10409 test "x$cache_file" != "x/dev/null" &&
f11781c5 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10411$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10412 cat confcache >$cache_file
795ca3e5 10413 else
f11781c5 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10415$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10416 fi
10417fi
10418rm -f confcache
10419
795ca3e5
AK
10420test "x$prefix" = xNONE && prefix=$ac_default_prefix
10421# Let make expand exec_prefix.
10422test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10423
72b2cb61 10424DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10425
10426ac_libobjs=
10427ac_ltlibobjs=
f11781c5 10428U=
ad6254c5
AK
10429for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10430 # 1. Remove the extension, and $U if already installed.
7a197a62 10431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10434 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10437done
10438LIBOBJS=$ac_libobjs
80992638 10439
ad6254c5
AK
10440LTLIBOBJS=$ac_ltlibobjs
10441
10442
10443
10444: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10445ac_write_fail=0
ad6254c5
AK
10446ac_clean_files_save=$ac_clean_files
10447ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10448{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10449$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10450as_write_fail=0
10451cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10452#! $SHELL
10453# Generated by $as_me.
795ca3e5 10454# Run this file to recreate the current configuration.
795ca3e5 10455# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10456# configure, is in config.log if it exists.
10457
10458debug=false
10459ac_cs_recheck=false
10460ac_cs_silent=false
ad6254c5 10461
f11781c5
AK
10462SHELL=\${CONFIG_SHELL-$SHELL}
10463export SHELL
10464_ASEOF
10465cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10466## -------------------- ##
10467## M4sh Initialization. ##
10468## -------------------- ##
ad6254c5 10469
25fbec5b
AK
10470# Be more Bourne compatible
10471DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10472if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10473 emulate sh
10474 NULLCMD=:
ec6a6fbe 10475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10476 # is contrary to our usage. Disable this feature.
10477 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10478 setopt NO_GLOB_SUBST
10479else
f11781c5
AK
10480 case `(set -o) 2>/dev/null` in #(
10481 *posix*) :
10482 set -o posix ;; #(
10483 *) :
10484 ;;
25fbec5b 10485esac
7a197a62 10486fi
25fbec5b
AK
10487
10488
ec6a6fbe
AK
10489as_nl='
10490'
10491export as_nl
10492# Printing a long string crashes Solaris 7 /usr/bin/printf.
10493as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10494as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10495as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10496# Prefer a ksh shell builtin over an external printf program on Solaris,
10497# but without wasting forks for bash or zsh.
10498if test -z "$BASH_VERSION$ZSH_VERSION" \
10499 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10500 as_echo='print -r --'
10501 as_echo_n='print -rn --'
10502elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10503 as_echo='printf %s\n'
10504 as_echo_n='printf %s'
10505else
10506 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10507 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10508 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10509 else
ec6a6fbe
AK
10510 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10511 as_echo_n_body='eval
10512 arg=$1;
f11781c5 10513 case $arg in #(
ec6a6fbe
AK
10514 *"$as_nl"*)
10515 expr "X$arg" : "X\\(.*\\)$as_nl";
10516 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10517 esac;
10518 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10519 '
10520 export as_echo_n_body
10521 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10522 fi
ec6a6fbe
AK
10523 export as_echo_body
10524 as_echo='sh -c $as_echo_body as_echo'
10525fi
10526
10527# The user is always right.
10528if test "${PATH_SEPARATOR+set}" != set; then
10529 PATH_SEPARATOR=:
10530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10531 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10532 PATH_SEPARATOR=';'
10533 }
ad6254c5
AK
10534fi
10535
ad6254c5 10536
7a197a62
AK
10537# IFS
10538# We need space, tab and new line, in precisely that order. Quoting is
10539# there to prevent editors from complaining about space-tab.
10540# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10541# splitting by setting IFS to empty value.)
7a197a62
AK
10542IFS=" "" $as_nl"
10543
10544# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10545case $0 in #((
7a197a62
AK
10546 *[\\/]* ) as_myself=$0 ;;
10547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $PATH
10549do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
f11781c5
AK
10552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10553 done
7a197a62
AK
10554IFS=$as_save_IFS
10555
10556 ;;
10557esac
10558# We did not find ourselves, most probably we were run as `sh COMMAND'
10559# in which case we are not to be found in the path.
10560if test "x$as_myself" = x; then
10561 as_myself=$0
10562fi
10563if test ! -f "$as_myself"; then
ec6a6fbe 10564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10565 exit 1
7a197a62
AK
10566fi
10567
f11781c5
AK
10568# Unset variables that we do not need and which cause bugs (e.g. in
10569# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10570# suppresses any "Segmentation fault" message there. '((' could
10571# trigger a bug in pdksh 5.2.14.
10572for as_var in BASH_ENV ENV MAIL MAILPATH
10573do eval test x\${$as_var+set} = xset \
10574 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10575done
ad6254c5
AK
10576PS1='$ '
10577PS2='> '
10578PS4='+ '
10579
10580# NLS nuisances.
ec6a6fbe
AK
10581LC_ALL=C
10582export LC_ALL
10583LANGUAGE=C
10584export LANGUAGE
8106cdd5 10585
f11781c5
AK
10586# CDPATH.
10587(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10588
10589
10590# as_fn_error STATUS ERROR [LINENO LOG_FD]
10591# ----------------------------------------
10592# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10593# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10594# script with STATUS, using 1 if that was 0.
10595as_fn_error ()
10596{
10597 as_status=$1; test $as_status -eq 0 && as_status=1
10598 if test "$4"; then
10599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10600 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10601 fi
10602 $as_echo "$as_me: error: $2" >&2
10603 as_fn_exit $as_status
10604} # as_fn_error
10605
10606
10607# as_fn_set_status STATUS
10608# -----------------------
10609# Set $? to STATUS, without forking.
10610as_fn_set_status ()
10611{
10612 return $1
10613} # as_fn_set_status
10614
10615# as_fn_exit STATUS
10616# -----------------
10617# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10618as_fn_exit ()
10619{
10620 set +e
10621 as_fn_set_status $1
10622 exit $1
10623} # as_fn_exit
10624
10625# as_fn_unset VAR
10626# ---------------
10627# Portably unset VAR.
10628as_fn_unset ()
10629{
10630 { eval $1=; unset $1;}
10631}
10632as_unset=as_fn_unset
10633# as_fn_append VAR VALUE
10634# ----------------------
10635# Append the text in VALUE to the end of the definition contained in VAR. Take
10636# advantage of any shell optimizations that allow amortized linear growth over
10637# repeated appends, instead of the typical quadratic growth present in naive
10638# implementations.
10639if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10640 eval 'as_fn_append ()
10641 {
10642 eval $1+=\$2
10643 }'
10644else
10645 as_fn_append ()
10646 {
10647 eval $1=\$$1\$2
10648 }
10649fi # as_fn_append
10650
10651# as_fn_arith ARG...
10652# ------------------
10653# Perform arithmetic evaluation on the ARGs, and store the result in the
10654# global $as_val. Take advantage of shells that can avoid forks. The arguments
10655# must be portable across $(()) and expr.
10656if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10657 eval 'as_fn_arith ()
10658 {
10659 as_val=$(( $* ))
10660 }'
10661else
10662 as_fn_arith ()
10663 {
10664 as_val=`expr "$@" || test $? -eq 1`
10665 }
10666fi # as_fn_arith
10667
10668
7a197a62
AK
10669if expr a : '\(a\)' >/dev/null 2>&1 &&
10670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10671 as_expr=expr
10672else
10673 as_expr=false
10674fi
8106cdd5 10675
7a197a62 10676if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10677 as_basename=basename
10678else
10679 as_basename=false
10680fi
10681
f11781c5
AK
10682if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10683 as_dirname=dirname
10684else
10685 as_dirname=false
10686fi
ad6254c5 10687
7a197a62 10688as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10689$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10690 X"$0" : 'X\(//\)$' \| \
7a197a62 10691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10692$as_echo X/"$0" |
7a197a62
AK
10693 sed '/^.*\/\([^/][^/]*\)\/*$/{
10694 s//\1/
10695 q
10696 }
10697 /^X\/\(\/\/\)$/{
10698 s//\1/
10699 q
10700 }
10701 /^X\/\(\/\).*/{
10702 s//\1/
10703 q
10704 }
10705 s/.*/./; q'`
ad6254c5 10706
f11781c5
AK
10707# Avoid depending upon Character Ranges.
10708as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10709as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10710as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10711as_cr_digits='0123456789'
10712as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10713
10714ECHO_C= ECHO_N= ECHO_T=
f11781c5 10715case `echo -n x` in #(((((
7a197a62 10716-n*)
f11781c5 10717 case `echo 'xy\c'` in
7a197a62 10718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10719 xy) ECHO_C='\c';;
10720 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10721 ECHO_T=' ';;
7a197a62
AK
10722 esac;;
10723*)
10724 ECHO_N='-n';;
ad6254c5 10725esac
80992638 10726
ad6254c5 10727rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10728if test -d conf$$.dir; then
10729 rm -f conf$$.dir/conf$$.file
10730else
10731 rm -f conf$$.dir
ec6a6fbe
AK
10732 mkdir conf$$.dir 2>/dev/null
10733fi
10734if (echo >conf$$.file) 2>/dev/null; then
10735 if ln -s conf$$.file conf$$ 2>/dev/null; then
10736 as_ln_s='ln -s'
10737 # ... but there are two gotchas:
10738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10740 # In both cases, we have to default to `cp -p'.
10741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10742 as_ln_s='cp -p'
10743 elif ln conf$$.file conf$$ 2>/dev/null; then
10744 as_ln_s=ln
10745 else
ad6254c5 10746 as_ln_s='cp -p'
ec6a6fbe 10747 fi
ad6254c5
AK
10748else
10749 as_ln_s='cp -p'
10750fi
7a197a62
AK
10751rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10752rmdir conf$$.dir 2>/dev/null
8106cdd5 10753
f11781c5
AK
10754
10755# as_fn_mkdir_p
10756# -------------
10757# Create "$as_dir" as a directory, including parents if necessary.
10758as_fn_mkdir_p ()
10759{
10760
10761 case $as_dir in #(
10762 -*) as_dir=./$as_dir;;
10763 esac
10764 test -d "$as_dir" || eval $as_mkdir_p || {
10765 as_dirs=
10766 while :; do
10767 case $as_dir in #(
10768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10769 *) as_qdir=$as_dir;;
10770 esac
10771 as_dirs="'$as_qdir' $as_dirs"
10772 as_dir=`$as_dirname -- "$as_dir" ||
10773$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10774 X"$as_dir" : 'X\(//\)[^/]' \| \
10775 X"$as_dir" : 'X\(//\)$' \| \
10776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10777$as_echo X"$as_dir" |
10778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10779 s//\1/
10780 q
10781 }
10782 /^X\(\/\/\)[^/].*/{
10783 s//\1/
10784 q
10785 }
10786 /^X\(\/\/\)$/{
10787 s//\1/
10788 q
10789 }
10790 /^X\(\/\).*/{
10791 s//\1/
10792 q
10793 }
10794 s/.*/./; q'`
10795 test -d "$as_dir" && break
10796 done
10797 test -z "$as_dirs" || eval "mkdir $as_dirs"
10798 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10799
10800
10801} # as_fn_mkdir_p
ad6254c5 10802if mkdir -p . 2>/dev/null; then
f11781c5 10803 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10804else
8a2fc586 10805 test -d ./-p && rmdir ./-p
ad6254c5
AK
10806 as_mkdir_p=false
10807fi
10808
25fbec5b
AK
10809if test -x / >/dev/null 2>&1; then
10810 as_test_x='test -x'
7a197a62 10811else
25fbec5b
AK
10812 if ls -dL / >/dev/null 2>&1; then
10813 as_ls_L_option=L
10814 else
10815 as_ls_L_option=
10816 fi
10817 as_test_x='
10818 eval sh -c '\''
10819 if test -d "$1"; then
ec6a6fbe 10820 test -d "$1/.";
25fbec5b 10821 else
f11781c5 10822 case $1 in #(
ec6a6fbe 10823 -*)set "./$1";;
25fbec5b 10824 esac;
f11781c5 10825 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10826 ???[sx]*):;;*)false;;esac;fi
10827 '\'' sh
10828 '
7a197a62 10829fi
25fbec5b 10830as_executable_p=$as_test_x
ad6254c5
AK
10831
10832# Sed expression to map a string onto a valid CPP name.
8a2fc586 10833as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10834
10835# Sed expression to map a string onto a valid variable name.
8a2fc586 10836as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10837
10838
ad6254c5 10839exec 6>&1
f11781c5
AK
10840## ----------------------------------- ##
10841## Main body of $CONFIG_STATUS script. ##
10842## ----------------------------------- ##
10843_ASEOF
10844test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10845
f11781c5
AK
10846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10847# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10848# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10849# values after options handling.
10850ac_log="
ad6254c5 10851This file was extended by $as_me, which was
f11781c5 10852generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10853
10854 CONFIG_FILES = $CONFIG_FILES
10855 CONFIG_HEADERS = $CONFIG_HEADERS
10856 CONFIG_LINKS = $CONFIG_LINKS
10857 CONFIG_COMMANDS = $CONFIG_COMMANDS
10858 $ $0 $@
10859
7a197a62
AK
10860on `(hostname || uname -n) 2>/dev/null | sed 1q`
10861"
10862
ad6254c5
AK
10863_ACEOF
10864
ec6a6fbe
AK
10865case $ac_config_files in *"
10866"*) set x $ac_config_files; shift; ac_config_files=$*;;
10867esac
10868
10869case $ac_config_headers in *"
10870"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10871esac
10872
10873
10874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10875# Files that config.status was made for.
68f2de6d
AK
10876config_files="$ac_config_files"
10877config_headers="$ac_config_headers"
ad6254c5 10878
7a197a62 10879_ACEOF
ad6254c5 10880
ec6a6fbe 10881cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10882ac_cs_usage="\
f11781c5
AK
10883\`$as_me' instantiates files and other configuration actions
10884from templates according to the current configuration. Unless the files
10885and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10886
f11781c5 10887Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10888
10889 -h, --help print this help, then exit
25fbec5b 10890 -V, --version print version number and configuration settings, then exit
f11781c5 10891 --config print configuration, then exit
ec6a6fbe
AK
10892 -q, --quiet, --silent
10893 do not print progress messages
ad6254c5
AK
10894 -d, --debug don't remove temporary files
10895 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10896 --file=FILE[:TEMPLATE]
10897 instantiate the configuration file FILE
10898 --header=FILE[:TEMPLATE]
10899 instantiate the configuration header FILE
ad6254c5
AK
10900
10901Configuration files:
10902$config_files
10903
72b2cb61
AK
10904Configuration headers:
10905$config_headers
10906
f11781c5 10907Report bugs to the package provider."
ad6254c5 10908
7a197a62 10909_ACEOF
ec6a6fbe 10910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10911ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10912ac_cs_version="\\
10913config.status
f11781c5
AK
10914configured by $0, generated by GNU Autoconf 2.66,
10915 with options \\"\$ac_cs_config\\"
ad6254c5 10916
f11781c5 10917Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10918This config.status script is free software; the Free Software Foundation
10919gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10920
10921ac_pwd='$ac_pwd'
10922srcdir='$srcdir'
10923INSTALL='$INSTALL'
fddafd51 10924MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10925AWK='$AWK'
10926test -n "\$AWK" || AWK=awk
ad6254c5
AK
10927_ACEOF
10928
ec6a6fbe
AK
10929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10930# The default lists apply if the user does not specify any file.
ad6254c5
AK
10931ac_need_defaults=:
10932while test $# != 0
10933do
10934 case $1 in
10935 --*=*)
7a197a62
AK
10936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10938 ac_shift=:
10939 ;;
7a197a62 10940 *)
ad6254c5
AK
10941 ac_option=$1
10942 ac_optarg=$2
10943 ac_shift=shift
10944 ;;
ad6254c5
AK
10945 esac
10946
10947 case $ac_option in
10948 # Handling of the options.
ad6254c5
AK
10949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10950 ac_cs_recheck=: ;;
7a197a62 10951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10952 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10953 --config | --confi | --conf | --con | --co | --c )
10954 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10955 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10956 debug=: ;;
10957 --file | --fil | --fi | --f )
10958 $ac_shift
ec6a6fbe
AK
10959 case $ac_optarg in
10960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10961 esac
f11781c5 10962 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10963 ac_need_defaults=false;;
10964 --header | --heade | --head | --hea )
10965 $ac_shift
ec6a6fbe
AK
10966 case $ac_optarg in
10967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10968 esac
f11781c5 10969 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10970 ac_need_defaults=false;;
7a197a62
AK
10971 --he | --h)
10972 # Conflict between --help and --header
f11781c5
AK
10973 as_fn_error $? "ambiguous option: \`$1'
10974Try \`$0 --help' for more information.";;
7a197a62 10975 --help | --hel | -h )
ec6a6fbe 10976 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10978 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10979 ac_cs_silent=: ;;
10980
10981 # This is an error.
f11781c5
AK
10982 -*) as_fn_error $? "unrecognized option: \`$1'
10983Try \`$0 --help' for more information." ;;
ad6254c5 10984
f11781c5 10985 *) as_fn_append ac_config_targets " $1"
7a197a62 10986 ac_need_defaults=false ;;
ad6254c5
AK
10987
10988 esac
10989 shift
10990done
10991
10992ac_configure_extra_args=
10993
10994if $ac_cs_silent; then
10995 exec 6>/dev/null
10996 ac_configure_extra_args="$ac_configure_extra_args --silent"
10997fi
10998
10999_ACEOF
ec6a6fbe 11000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11001if \$ac_cs_recheck; then
ec6a6fbe
AK
11002 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11003 shift
11004 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11005 CONFIG_SHELL='$SHELL'
7a197a62 11006 export CONFIG_SHELL
ec6a6fbe 11007 exec "\$@"
ad6254c5
AK
11008fi
11009
11010_ACEOF
ec6a6fbe 11011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11012exec 5>>config.log
11013{
11014 echo
11015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11016## Running $as_me. ##
11017_ASBOX
ec6a6fbe 11018 $as_echo "$ac_log"
7a197a62 11019} >&5
ad6254c5 11020
7a197a62 11021_ACEOF
ec6a6fbe 11022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11023_ACEOF
ad6254c5 11024
ec6a6fbe 11025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11026
11027# Handling of arguments.
ad6254c5
AK
11028for ac_config_target in $ac_config_targets
11029do
7a197a62
AK
11030 case $ac_config_target in
11031 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11032 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11033 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11034 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11035 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11036 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
13dd3138 11037 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
93bd259b
AK
11038 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11039 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11040 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11041 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 11042 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
11043 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11044 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
2bc1d759 11045 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
cdd50823 11046 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 11047 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11048 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11049 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11050 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11051 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11052 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11053 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11054 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11055 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11056 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11057 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 11058 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 11059 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 11060 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
93bd259b
AK
11061 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11062 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11063 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11064 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11065 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11066 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11067 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11068 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 11069 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
11070 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11071 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 11072 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11073 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11074 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
9493f1df 11075 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
7a197a62 11076 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11077 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11078 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11079 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11080 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11081
f11781c5 11082 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11083 esac
ad6254c5
AK
11084done
11085
7a197a62 11086
ad6254c5
AK
11087# If the user did not use the arguments to specify the items to instantiate,
11088# then the envvar interface is used. Set only those that are not.
11089# We use the long form for the default assignment because of an extremely
11090# bizarre bug on SunOS 4.1.3.
11091if $ac_need_defaults; then
11092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11094fi
11095
11096# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11097# simply because there is no reason against having it here, and in addition,
ad6254c5 11098# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11099# Hook for its removal unless debugging.
11100# Note that there is a small window in which the directory will not be cleaned:
11101# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11102$debug ||
11103{
7a197a62
AK
11104 tmp=
11105 trap 'exit_status=$?
11106 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11107' 0
f11781c5 11108 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11109}
ad6254c5
AK
11110# Create a (secure) tmp directory for tmp files.
11111
11112{
7a197a62 11113 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11114 test -n "$tmp" && test -d "$tmp"
11115} ||
11116{
7a197a62
AK
11117 tmp=./conf$$-$RANDOM
11118 (umask 077 && mkdir "$tmp")
f11781c5 11119} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11120
ec6a6fbe
AK
11121# Set up the scripts for CONFIG_FILES section.
11122# No need to generate them if there are no CONFIG_FILES.
11123# This happens for instance with `./config.status config.h'.
1995c9ff 11124if test -n "$CONFIG_FILES"; then
7a197a62 11125
68f2de6d 11126
f11781c5
AK
11127ac_cr=`echo X | tr X '\015'`
11128# On cygwin, bash can eat \r inside `` if the user requested igncr.
11129# But we know of no other shell where ac_cr would be empty at this
11130# point, so we can use a bashism as a fallback.
11131if test "x$ac_cr" = x; then
11132 eval ac_cr=\$\'\\r\'
11133fi
ec6a6fbe
AK
11134ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11135if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11136 ac_cs_awk_cr='\\r'
11137else
11138 ac_cs_awk_cr=$ac_cr
1995c9ff 11139fi
7a197a62 11140
ec6a6fbe 11141echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11142_ACEOF
7a197a62 11143
8106cdd5 11144
ec6a6fbe
AK
11145{
11146 echo "cat >conf$$subs.awk <<_ACEOF" &&
11147 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11148 echo "_ACEOF"
11149} >conf$$subs.sh ||
f11781c5
AK
11150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11151ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11152ac_delim='%!_!# '
11153for ac_last_try in false false false false false :; do
ec6a6fbe 11154 . ./conf$$subs.sh ||
f11781c5 11155 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11156
11157 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11158 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11159 break
11160 elif $ac_last_try; then
f11781c5 11161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11162 else
11163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11164 fi
11165done
ec6a6fbe
AK
11166rm -f conf$$subs.sh
11167
11168cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11169cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11170_ACEOF
11171sed -n '
11172h
11173s/^/S["/; s/!.*/"]=/
11174p
11175g
11176s/^[^!]*!//
11177:repl
11178t repl
11179s/'"$ac_delim"'$//
11180t delim
11181:nl
11182h
f11781c5 11183s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11184t more1
11185s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11186p
11187n
11188b repl
11189:more1
11190s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11191p
11192g
11193s/.\{148\}//
11194t nl
11195:delim
11196h
f11781c5 11197s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11198t more2
11199s/["\\]/\\&/g; s/^/"/; s/$/"/
11200p
11201b
11202:more2
11203s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11204p
11205g
11206s/.\{148\}//
11207t delim
11208' <conf$$subs.awk | sed '
11209/^[^""]/{
11210 N
11211 s/\n//
11212}
11213' >>$CONFIG_STATUS || ac_write_fail=1
11214rm -f conf$$subs.awk
11215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11216_ACAWK
11217cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11218 for (key in S) S_is_set[key] = 1
11219 FS = "\a"
7a197a62 11220
ec6a6fbe
AK
11221}
11222{
11223 line = $ 0
11224 nfields = split(line, field, "@")
11225 substed = 0
11226 len = length(field[1])
11227 for (i = 2; i < nfields; i++) {
11228 key = field[i]
11229 keylen = length(key)
11230 if (S_is_set[key]) {
11231 value = S[key]
11232 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11233 len += length(value) + length(field[++i])
11234 substed = 1
11235 } else
11236 len += 1 + keylen
11237 }
11238
11239 print line
11240}
fddafd51 11241
ec6a6fbe 11242_ACAWK
1995c9ff 11243_ACEOF
ec6a6fbe
AK
11244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11245if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11246 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11247else
11248 cat
11249fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11250 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11251_ACEOF
11252
f11781c5
AK
11253# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11254# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11255# trailing colons and then remove the whole line if VPATH becomes empty
11256# (actually we leave an empty line to preserve line numbers).
11257if test "x$srcdir" = x.; then
f11781c5
AK
11258 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11259h
11260s///
11261s/^/:/
11262s/[ ]*$/:/
11263s/:\$(srcdir):/:/g
11264s/:\${srcdir}:/:/g
11265s/:@srcdir@:/:/g
11266s/^:*//
7a197a62 11267s/:*$//
f11781c5
AK
11268x
11269s/\(=[ ]*\).*/\1/
11270G
11271s/\n//
7a197a62
AK
11272s/^[^=]*=[ ]*$//
11273}'
11274fi
11275
ec6a6fbe 11276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11277fi # test -n "$CONFIG_FILES"
11278
ec6a6fbe
AK
11279# Set up the scripts for CONFIG_HEADERS section.
11280# No need to generate them if there are no CONFIG_HEADERS.
11281# This happens for instance with `./config.status Makefile'.
11282if test -n "$CONFIG_HEADERS"; then
11283cat >"$tmp/defines.awk" <<\_ACAWK ||
11284BEGIN {
11285_ACEOF
11286
11287# Transform confdefs.h into an awk script `defines.awk', embedded as
11288# here-document in config.status, that substitutes the proper values into
11289# config.h.in to produce config.h.
11290
11291# Create a delimiter string that does not exist in confdefs.h, to ease
11292# handling of long lines.
11293ac_delim='%!_!# '
11294for ac_last_try in false false :; do
11295 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11296 if test -z "$ac_t"; then
11297 break
11298 elif $ac_last_try; then
f11781c5 11299 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11300 else
11301 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11302 fi
11303done
11304
11305# For the awk script, D is an array of macro values keyed by name,
11306# likewise P contains macro parameters if any. Preserve backslash
11307# newline sequences.
11308
11309ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11310sed -n '
11311s/.\{148\}/&'"$ac_delim"'/g
11312t rset
11313:rset
11314s/^[ ]*#[ ]*define[ ][ ]*/ /
11315t def
11316d
11317:def
11318s/\\$//
11319t bsnl
11320s/["\\]/\\&/g
11321s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11322D["\1"]=" \3"/p
11323s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11324d
11325:bsnl
11326s/["\\]/\\&/g
11327s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11328D["\1"]=" \3\\\\\\n"\\/p
11329t cont
11330s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11331t cont
11332d
11333:cont
11334n
11335s/.\{148\}/&'"$ac_delim"'/g
11336t clear
11337:clear
11338s/\\$//
11339t bsnlc
11340s/["\\]/\\&/g; s/^/"/; s/$/"/p
11341d
11342:bsnlc
11343s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11344b cont
11345' <confdefs.h | sed '
11346s/'"$ac_delim"'/"\\\
11347"/g' >>$CONFIG_STATUS || ac_write_fail=1
11348
11349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11350 for (key in D) D_is_set[key] = 1
11351 FS = "\a"
11352}
11353/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11354 line = \$ 0
11355 split(line, arg, " ")
11356 if (arg[1] == "#") {
11357 defundef = arg[2]
11358 mac1 = arg[3]
11359 } else {
11360 defundef = substr(arg[1], 2)
11361 mac1 = arg[2]
11362 }
11363 split(mac1, mac2, "(") #)
11364 macro = mac2[1]
11365 prefix = substr(line, 1, index(line, defundef) - 1)
11366 if (D_is_set[macro]) {
11367 # Preserve the white space surrounding the "#".
11368 print prefix "define", macro P[macro] D[macro]
11369 next
11370 } else {
11371 # Replace #undef with comments. This is necessary, for example,
11372 # in the case of _POSIX_SOURCE, which is predefined and required
11373 # on some systems where configure will not decide to define it.
11374 if (defundef == "undef") {
11375 print "/*", prefix defundef, macro, "*/"
11376 next
11377 }
11378 }
11379}
11380{ print }
11381_ACAWK
11382_ACEOF
11383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11384 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11385fi # test -n "$CONFIG_HEADERS"
11386
7a197a62 11387
ec6a6fbe
AK
11388eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11389shift
11390for ac_tag
7a197a62
AK
11391do
11392 case $ac_tag in
11393 :[FHLC]) ac_mode=$ac_tag; continue;;
11394 esac
11395 case $ac_mode$ac_tag in
11396 :[FHL]*:*);;
f11781c5 11397 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11398 :[FH]-) ac_tag=-:-;;
11399 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11400 esac
11401 ac_save_IFS=$IFS
11402 IFS=:
11403 set x $ac_tag
11404 IFS=$ac_save_IFS
11405 shift
11406 ac_file=$1
11407 shift
11408
11409 case $ac_mode in
11410 :L) ac_source=$1;;
11411 :[FH])
11412 ac_file_inputs=
11413 for ac_f
11414 do
11415 case $ac_f in
11416 -) ac_f="$tmp/stdin";;
11417 *) # Look for the file first in the build tree, then in the source tree
11418 # (if the path is not absolute). The absolute path cannot be DOS-style,
11419 # because $ac_f cannot contain `:'.
11420 test -f "$ac_f" ||
11421 case $ac_f in
11422 [\\/$]*) false;;
11423 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11424 esac ||
f11781c5 11425 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11426 esac
ec6a6fbe 11427 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11428 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11429 done
11430
11431 # Let's still pretend it is `configure' which instantiates (i.e., don't
11432 # use $as_me), people would be surprised to read:
11433 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11434 configure_input='Generated from '`
11435 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11436 `' by configure.'
7a197a62
AK
11437 if test x"$ac_file" != x-; then
11438 configure_input="$ac_file. $configure_input"
f11781c5 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11440$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11441 fi
ec6a6fbe
AK
11442 # Neutralize special characters interpreted by sed in replacement strings.
11443 case $configure_input in #(
11444 *\&* | *\|* | *\\* )
11445 ac_sed_conf_input=`$as_echo "$configure_input" |
11446 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11447 *) ac_sed_conf_input=$configure_input;;
11448 esac
7a197a62
AK
11449
11450 case $ac_tag in
ec6a6fbe 11451 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11453 esac
11454 ;;
80992638 11455 esac
8106cdd5 11456
7a197a62 11457 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11459 X"$ac_file" : 'X\(//\)[^/]' \| \
11460 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11461 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11462$as_echo X"$ac_file" |
7a197a62
AK
11463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11464 s//\1/
11465 q
11466 }
11467 /^X\(\/\/\)[^/].*/{
11468 s//\1/
11469 q
11470 }
11471 /^X\(\/\/\)$/{
11472 s//\1/
11473 q
11474 }
11475 /^X\(\/\).*/{
11476 s//\1/
11477 q
11478 }
11479 s/.*/./; q'`
f11781c5 11480 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11481 ac_builddir=.
11482
7a197a62
AK
11483case "$ac_dir" in
11484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11485*)
ec6a6fbe 11486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11487 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11489 case $ac_top_builddir_sub in
11490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11492 esac ;;
11493esac
11494ac_abs_top_builddir=$ac_pwd
11495ac_abs_builddir=$ac_pwd$ac_dir_suffix
11496# for backward compatibility:
11497ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11498
11499case $srcdir in
7a197a62 11500 .) # We are building in place.
ad6254c5 11501 ac_srcdir=.
7a197a62
AK
11502 ac_top_srcdir=$ac_top_builddir_sub
11503 ac_abs_top_srcdir=$ac_pwd ;;
11504 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11505 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11506 ac_top_srcdir=$srcdir
11507 ac_abs_top_srcdir=$srcdir ;;
11508 *) # Relative name.
11509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11510 ac_top_srcdir=$ac_top_build_prefix$srcdir
11511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11512esac
7a197a62 11513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11514
ad6254c5 11515
7a197a62
AK
11516 case $ac_mode in
11517 :F)
11518 #
11519 # CONFIG_FILE
11520 #
ad6254c5
AK
11521
11522 case $INSTALL in
11523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11525 esac
fddafd51
ZK
11526 ac_MKDIR_P=$MKDIR_P
11527 case $MKDIR_P in
11528 [\\/$]* | ?:[\\/]* ) ;;
11529 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11530 esac
7a197a62 11531_ACEOF
795ca3e5 11532
ec6a6fbe 11533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11534# If the template does not know about datarootdir, expand it.
11535# FIXME: This hack should be removed a few years after 2.60.
11536ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11537ac_sed_dataroot='
11538/datarootdir/ {
7a197a62
AK
11539 p
11540 q
11541}
11542/@datadir@/p
11543/@docdir@/p
11544/@infodir@/p
11545/@localedir@/p
f11781c5 11546/@mandir@/p'
ec6a6fbe 11547case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11548*datarootdir*) ac_datarootdir_seen=yes;;
11549*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11551$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11552_ACEOF
ec6a6fbe 11553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11554 ac_datarootdir_hack='
11555 s&@datadir@&$datadir&g
11556 s&@docdir@&$docdir&g
11557 s&@infodir@&$infodir&g
11558 s&@localedir@&$localedir&g
11559 s&@mandir@&$mandir&g
f11781c5 11560 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11561esac
11562_ACEOF
11563
11564# Neutralize VPATH when `$srcdir' = `.'.
11565# Shell code in configure.ac might set extrasub.
11566# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11568ac_sed_extra="$ac_vpsub
ad6254c5
AK
11569$extrasub
11570_ACEOF
ec6a6fbe 11571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11572:t
11573/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11574s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11575s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11576s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11577s&@srcdir@&$ac_srcdir&;t t
11578s&@abs_srcdir@&$ac_abs_srcdir&;t t
11579s&@top_srcdir@&$ac_top_srcdir&;t t
11580s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11581s&@builddir@&$ac_builddir&;t t
11582s&@abs_builddir@&$ac_abs_builddir&;t t
11583s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11584s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11585s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11586$ac_datarootdir_hack
ec6a6fbe
AK
11587"
11588eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11590
11591test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11592 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11593 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11595which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11596$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11597which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11598
11599 rm -f "$tmp/stdin"
72b2cb61 11600 case $ac_file in
ec6a6fbe
AK
11601 -) cat "$tmp/out" && rm -f "$tmp/out";;
11602 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11603 esac \
f11781c5 11604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11605 ;;
11606 :H)
11607 #
11608 # CONFIG_HEADER
11609 #
72b2cb61 11610 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11611 {
11612 $as_echo "/* $configure_input */" \
11613 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11614 } >"$tmp/config.h" \
f11781c5 11615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11616 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11618$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11619 else
ec6a6fbe
AK
11620 rm -f "$ac_file"
11621 mv "$tmp/config.h" "$ac_file" \
f11781c5 11622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11623 fi
11624 else
ec6a6fbe
AK
11625 $as_echo "/* $configure_input */" \
11626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11627 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11628 fi
7a197a62
AK
11629 ;;
11630
11631
11632 esac
11633
11634done # for ac_tag
795ca3e5 11635
795ca3e5 11636
f11781c5 11637as_fn_exit 0
ad6254c5 11638_ACEOF
ad6254c5
AK
11639ac_clean_files=$ac_clean_files_save
11640
ec6a6fbe 11641test $ac_write_fail = 0 ||
f11781c5 11642 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11643
ad6254c5
AK
11644
11645# configure is writing to config.log, and then calls config.status.
11646# config.status does its own redirection, appending to config.log.
11647# Unfortunately, on DOS this fails, as config.log is still kept open
11648# by configure, so config.status won't be able to write to it; its
11649# output is simply discarded. So we exec the FD to /dev/null,
11650# effectively closing config.log, so it can be properly (re)opened and
11651# appended to by config.status. When coming back to configure, we
11652# need to make the FD available again.
11653if test "$no_create" != yes; then
11654 ac_cs_success=:
11655 ac_config_status_args=
11656 test "$silent" = yes &&
11657 ac_config_status_args="$ac_config_status_args --quiet"
11658 exec 5>/dev/null
11659 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11660 exec 5>>config.log
11661 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11662 # would make configure fail if this is the last instruction.
f11781c5 11663 $ac_cs_success || as_fn_exit 1
ad6254c5 11664fi
ec6a6fbe 11665if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11667$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11668fi
795ca3e5 11669
2dc95e1c
AK
11670
11671if test x$ODIRECT != xyes; then
f11781c5 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11673$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11674fi
This page took 1.809386 seconds and 5 git commands to generate.