]> sourceware.org Git - lvm2.git/blame - configure
Adjust pvmove man page wording.
[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
23b059e7 606WRITE_INSTALL
0878503f 607UDEV_SYNC
a5f46f6a 608UDEV_RULES
f7f0854e 609UDEV_PC
54b362f9 610TESTING
ec6a6fbe
AK
611STATIC_LINK
612STATICDIR
613SNAPSHOTS
f7f0854e 614SELINUX_PC
e1b8a236 615SELINUX_LIBS
539f4a77 616READLINE_LIBS
f30875db 617PTHREAD_LIBS
ec6a6fbe
AK
618POOL
619PKGCONFIG
8fea97b7 620REPLICATORS
606d0858 621OCFDIR
37ddf259 622OCF
ec6a6fbe
AK
623MIRRORS
624LVM_RELEASE_DATE
625LVM_RELEASE
626LVM_PATCHLEVEL
627LVM_MINOR
628LVM_MAJOR
bf456146 629LVM_LIBAPI
ec6a6fbe 630LVM_VERSION
ec6a6fbe
AK
631LVM1_FALLBACK
632LVM1
633LOCALEDIR
634LIB_SUFFIX
635LDDEPS
636JOBS
637INTL_PACKAGE
638INTL
ec6a6fbe
AK
639HAVE_REALTIME
640HAVE_LIBDL
ec6a6fbe
AK
641FSADM
642DM_LIB_PATCHLEVEL
643DM_LIB_VERSION
644DM_IOCTLS
645DM_DEVICE_UID
646DM_DEVICE_MODE
647DM_DEVICE_GID
648DM_COMPAT
d1e8046f 649DMEVENTD_PATH
ec6a6fbe 650DMEVENTD
19a2c6e0 651DL_LIBS
ec6a6fbe 652DEVMAPPER
b1f08e51 653DEFAULT_RUN_DIR
3399ae32 654DEFAULT_LOCK_DIR
fea55602 655DEFAULT_DATA_ALIGNMENT
3399ae32
AK
656DEFAULT_CACHE_SUBDIR
657DEFAULT_BACKUP_SUBDIR
658DEFAULT_ARCHIVE_SUBDIR
659DEFAULT_SYS_DIR
ec6a6fbe
AK
660DEBUG
661COPTIMISE_FLAG
e2997b73 662CONFDIR
ec6a6fbe 663CMDLIB
c89bc357 664CLVMD_CMANAGERS
ec6a6fbe
AK
665CLVMD
666CLUSTER
667CLDWHOLEARCHIVE
668CLDNOWHOLEARCHIVE
669CLDFLAGS
670BUILD_DMEVENTD
66fd4529 671BUILD_CMIRRORD
572fefeb 672APPLIB
ec6a6fbe
AK
673MODPROBE_CMD
674MSGFMT
675LVM2CMD_LIB
572fefeb 676LVM2APP_LIB
d93275eb
PR
677UDEV_LIBS
678UDEV_CFLAGS
54b362f9
AK
679VALGRIND
680RUBY19
fd4728e1 681GENPNG
ec6a6fbe
AK
682GENHTML
683LCOV
90c80887
AK
684SACKPT_LIBS
685SACKPT_CFLAGS
a946372e
AK
686DLM_LIBS
687DLM_CFLAGS
e2997b73
AK
688CPG_LIBS
689CPG_CFLAGS
690CONFDB_LIBS
691CONFDB_CFLAGS
a946372e
AK
692SALCK_LIBS
693SALCK_CFLAGS
e2997b73
AK
694QUORUM_LIBS
695QUORUM_CFLAGS
a946372e
AK
696COROSYNC_LIBS
697COROSYNC_CFLAGS
698CMAN_LIBS
699CMAN_CFLAGS
700GULM_LIBS
701GULM_CFLAGS
702CCS_LIBS
703CCS_CFLAGS
704PKGCONFIGINIT_LIBS
705PKGCONFIGINIT_CFLAGS
f11781c5
AK
706PKG_CONFIG_LIBDIR
707PKG_CONFIG_PATH
e2997b73 708PKG_CONFIG
ec6a6fbe
AK
709POW_LIB
710LIBOBJS
711ALLOCA
712CSCOPE_CMD
713CFLOW_CMD
714RANLIB
715MKDIR_P
716SET_MAKE
717LN_S
718INSTALL_DATA
719INSTALL_SCRIPT
720INSTALL_PROGRAM
721EGREP
722GREP
723CPP
724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730CC
731AWK
732SED
733target_os
734target_vendor
735target_cpu
736target
737host_os
738host_vendor
739host_cpu
740host
741build_os
742build_vendor
743build_cpu
744build
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
f11781c5 775PACKAGE_URL
ec6a6fbe
AK
776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
ad6254c5 783ac_subst_files=''
ec6a6fbe
AK
784ac_user_opts='
785enable_option_checking
786enable_static_link
787with_user
788with_group
789with_device_uid
790with_device_gid
791with_device_mode
d0df875d 792with_device_nodes_on
ec6a6fbe
AK
793enable_lvm1_fallback
794with_lvm1
795with_pool
796with_cluster
797with_snapshots
798with_mirrors
8fea97b7 799with_replicators
ec6a6fbe
AK
800enable_readline
801enable_realtime
37ddf259 802enable_ocf
606d0858 803with_ocfdir
ec6a6fbe 804with_clvmd
8c4e8a18 805with_clvmd_pidfile
66fd4529
AK
806enable_cmirrord
807with_cmirrord_pidfile
ec6a6fbe
AK
808enable_debug
809with_optimisation
810enable_profiling
54b362f9 811enable_testing
d1e8046f 812enable_valgrind_pool
ec6a6fbe 813enable_devmapper
a5f46f6a
AK
814enable_udev_sync
815enable_udev_rules
ec6a6fbe 816enable_compat
95eaa683 817enable_units_compat
ec6a6fbe
AK
818enable_ioctl
819enable_o_direct
572fefeb 820enable_applib
ec6a6fbe
AK
821enable_cmdlib
822enable_pkgconfig
23b059e7 823enable_write_install
ec6a6fbe
AK
824enable_fsadm
825enable_dmeventd
826enable_selinux
827enable_nls
828with_localedir
829with_confdir
830with_staticdir
831with_usrlibdir
832with_usrsbindir
a5f46f6a 833with_udev_prefix
78ce7acc 834with_udevdir
ec6a6fbe
AK
835with_dmeventd_pidfile
836with_dmeventd_path
8bae0a1e 837with_default_run_dir
3399ae32
AK
838with_default_system_dir
839with_default_archive_subdir
840with_default_backup_subdir
841with_default_cache_subdir
842with_default_locking_dir
fea55602 843with_default_data_alignment
ec6a6fbe
AK
844with_interface
845'
7a197a62
AK
846 ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
25fbec5b 852LIBS
7a197a62 853CPPFLAGS
e2997b73
AK
854CPP
855PKG_CONFIG
f11781c5
AK
856PKG_CONFIG_PATH
857PKG_CONFIG_LIBDIR
a946372e
AK
858PKGCONFIGINIT_CFLAGS
859PKGCONFIGINIT_LIBS
860CCS_CFLAGS
861CCS_LIBS
862GULM_CFLAGS
863GULM_LIBS
864CMAN_CFLAGS
865CMAN_LIBS
866COROSYNC_CFLAGS
867COROSYNC_LIBS
e2997b73
AK
868QUORUM_CFLAGS
869QUORUM_LIBS
a946372e
AK
870SALCK_CFLAGS
871SALCK_LIBS
e2997b73
AK
872CONFDB_CFLAGS
873CONFDB_LIBS
874CPG_CFLAGS
a946372e
AK
875CPG_LIBS
876DLM_CFLAGS
90c80887
AK
877DLM_LIBS
878SACKPT_CFLAGS
d93275eb
PR
879SACKPT_LIBS
880UDEV_CFLAGS
881UDEV_LIBS'
7a197a62 882
795ca3e5
AK
883
884# Initialize some variables set by options.
ad6254c5
AK
885ac_init_help=
886ac_init_version=false
ec6a6fbe
AK
887ac_unrecognized_opts=
888ac_unrecognized_sep=
795ca3e5
AK
889# The variables have the same names as the options, with
890# dashes changed to underlines.
ad6254c5 891cache_file=/dev/null
795ca3e5 892exec_prefix=NONE
795ca3e5 893no_create=
795ca3e5
AK
894no_recursion=
895prefix=NONE
896program_prefix=NONE
897program_suffix=NONE
898program_transform_name=s,x,x,
899silent=
900site=
901srcdir=
795ca3e5
AK
902verbose=
903x_includes=NONE
904x_libraries=NONE
ad6254c5
AK
905
906# Installation directory options.
907# These are left unexpanded so users can "make install exec_prefix=/foo"
908# and all the variables that are supposed to be based on exec_prefix
909# by default will actually change.
910# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 911# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
912bindir='${exec_prefix}/bin'
913sbindir='${exec_prefix}/sbin'
914libexecdir='${exec_prefix}/libexec'
7a197a62
AK
915datarootdir='${prefix}/share'
916datadir='${datarootdir}'
795ca3e5
AK
917sysconfdir='${prefix}/etc'
918sharedstatedir='${prefix}/com'
919localstatedir='${prefix}/var'
795ca3e5
AK
920includedir='${prefix}/include'
921oldincludedir='/usr/include'
7a197a62
AK
922docdir='${datarootdir}/doc/${PACKAGE}'
923infodir='${datarootdir}/info'
924htmldir='${docdir}'
925dvidir='${docdir}'
926pdfdir='${docdir}'
927psdir='${docdir}'
928libdir='${exec_prefix}/lib'
929localedir='${datarootdir}/locale'
930mandir='${datarootdir}/man'
795ca3e5 931
795ca3e5 932ac_prev=
7a197a62 933ac_dashdash=
795ca3e5
AK
934for ac_option
935do
795ca3e5
AK
936 # If the previous option needs an argument, assign it.
937 if test -n "$ac_prev"; then
7a197a62 938 eval $ac_prev=\$ac_option
795ca3e5
AK
939 ac_prev=
940 continue
941 fi
942
7a197a62
AK
943 case $ac_option in
944 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 *) ac_optarg=yes ;;
946 esac
795ca3e5
AK
947
948 # Accept the important Cygnus configure options, so we can diagnose typos.
949
7a197a62
AK
950 case $ac_dashdash$ac_option in
951 --)
952 ac_dashdash=yes ;;
795ca3e5
AK
953
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 957 bindir=$ac_optarg ;;
795ca3e5
AK
958
959 -build | --build | --buil | --bui | --bu)
ad6254c5 960 ac_prev=build_alias ;;
795ca3e5 961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 962 build_alias=$ac_optarg ;;
795ca3e5
AK
963
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
969 cache_file=$ac_optarg ;;
970
971 --config-cache | -C)
972 cache_file=config.cache ;;
795ca3e5 973
7a197a62 974 -datadir | --datadir | --datadi | --datad)
795ca3e5 975 ac_prev=datadir ;;
7a197a62 976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 977 datadir=$ac_optarg ;;
795ca3e5 978
7a197a62
AK
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
985
795ca3e5 986 -disable-* | --disable-*)
ec6a6fbe 987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 988 # Reject names that are not valid shell variable names.
ec6a6fbe 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 990 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
994 *"
995"enable_$ac_useropt"
996"*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
7a197a62
AK
1001
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1006
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
795ca3e5
AK
1011
1012 -enable-* | --enable-*)
ec6a6fbe 1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1014 # Reject names that are not valid shell variable names.
ec6a6fbe 1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1016 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1027
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
ad6254c5 1035 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1036
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1040
ad6254c5
AK
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
795ca3e5
AK
1047
1048 -host | --host | --hos | --ho)
ad6254c5 1049 ac_prev=host_alias ;;
795ca3e5 1050 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1051 host_alias=$ac_optarg ;;
795ca3e5 1052
7a197a62
AK
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1058
795ca3e5
AK
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1064 includedir=$ac_optarg ;;
795ca3e5
AK
1065
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1069 infodir=$ac_optarg ;;
795ca3e5
AK
1070
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1074 libdir=$ac_optarg ;;
795ca3e5
AK
1075
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1081 libexecdir=$ac_optarg ;;
795ca3e5 1082
7a197a62
AK
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1087
795ca3e5 1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1089 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1093 localstatedir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1098 mandir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1103
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1105 | --no-cr | --no-c | -n)
795ca3e5
AK
1106 no_create=yes ;;
1107
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1111
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1119 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1120
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1124 prefix=$ac_optarg ;;
795ca3e5
AK
1125
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1131 program_prefix=$ac_optarg ;;
795ca3e5
AK
1132
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1138 program_suffix=$ac_optarg ;;
795ca3e5
AK
1139
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1155 program_transform_name=$ac_optarg ;;
795ca3e5 1156
7a197a62
AK
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1161
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1166
795ca3e5
AK
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1170
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
ad6254c5 1175 sbindir=$ac_optarg ;;
795ca3e5
AK
1176
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
ad6254c5 1186 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1187
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
ad6254c5 1191 site=$ac_optarg ;;
795ca3e5
AK
1192
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1196 srcdir=$ac_optarg ;;
795ca3e5
AK
1197
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1203 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1204
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1206 ac_prev=target_alias ;;
795ca3e5 1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1208 target_alias=$ac_optarg ;;
795ca3e5
AK
1209
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1212
ad6254c5
AK
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
795ca3e5
AK
1215
1216 -with-* | --with-*)
ec6a6fbe 1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1218 # Reject names that are not valid shell variable names.
ec6a6fbe 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1220 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1231
1232 -without-* | --without-*)
ec6a6fbe 1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1234 # Reject names that are not valid shell variable names.
ec6a6fbe 1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1236 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241"with_$ac_useropt"
1242"*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
795ca3e5
AK
1247
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1251
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1257 x_includes=$ac_optarg ;;
795ca3e5
AK
1258
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1264 x_libraries=$ac_optarg ;;
795ca3e5 1265
f11781c5
AK
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267Try \`$0 --help' for more information"
795ca3e5
AK
1268 ;;
1269
ad6254c5
AK
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
f11781c5
AK
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 esac
7a197a62 1277 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1278 export $ac_envvar ;;
1279
795ca3e5 1280 *)
ad6254c5 1281 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1286 ;;
1287
1288 esac
1289done
1290
1291if test -n "$ac_prev"; then
ad6254c5 1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1293 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1294fi
795ca3e5 1295
ec6a6fbe
AK
1296if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
f11781c5 1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1302fi
1303
1304# Check all directory arguments for consistency.
7a197a62
AK
1305for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
795ca3e5 1309do
7a197a62 1310 eval ac_val=\$$ac_var
ec6a6fbe
AK
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
ad6254c5 1318 case $ac_val in
7a197a62
AK
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1321 esac
f11781c5 1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1323done
1324
ad6254c5
AK
1325# There might be people who depend on the old broken behavior: `$host'
1326# used to hold the argument of --host etc.
1327# FIXME: To remove some day.
1328build=$build_alias
1329host=$host_alias
1330target=$target_alias
1331
1332# FIXME: To remove some day.
1333if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
f11781c5
AK
1336 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1340 fi
1341fi
8106cdd5 1342
ad6254c5
AK
1343ac_tool_prefix=
1344test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346test "$silent" = yes && exec 6>/dev/null
795ca3e5 1347
795ca3e5 1348
7a197a62
AK
1349ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350ac_ls_di=`ls -di .` &&
1351ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1352 as_fn_error $? "working directory cannot be determined"
7a197a62 1353test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1354 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1355
1356
795ca3e5
AK
1357# Find the source files, if location was not specified.
1358if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
7a197a62 1360 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366$as_echo X"$as_myself" |
7a197a62
AK
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\/\)$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\).*/{
1380 s//\1/
1381 q
1382 }
1383 s/.*/./; q'`
795ca3e5 1384 srcdir=$ac_confdir
7a197a62 1385 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1386 srcdir=..
1387 fi
1388else
1389 ac_srcdir_defaulted=no
1390fi
7a197a62
AK
1391if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1394fi
7a197a62
AK
1395ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396ac_abs_confdir=`(
f11781c5 1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1398 pwd)`
1399# When building in place, set srcdir=.
1400if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1402fi
1403# Remove unnecessary trailing slashes from srcdir.
1404# Double slashes in file names in object file debugging info
1405# mess up M-x gdb in Emacs.
1406case $srcdir in
1407*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408esac
1409for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414done
ad6254c5
AK
1415
1416#
1417# Report the --help message.
1418#
1419if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423\`configure' configures this package to adapt to many kinds of systems.
1424
1425Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428VAR=VALUE. See below for descriptions of some of the useful variables.
1429
1430Defaults for the options are specified in brackets.
1431
1432Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
f11781c5 1437 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1442
ad6254c5
AK
1443Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1445 [$ac_default_prefix]
ad6254c5 1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1447 [PREFIX]
ad6254c5
AK
1448
1449By default, \`make install' will install all the files in
1450\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452for instance \`--prefix=\$HOME'.
1453
1454For better control, use the options below.
1455
1456Fine tuning of the installation directories:
ec6a6fbe
AK
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1476_ACEOF
1477
1478 cat <<\_ACEOF
1479
1480System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 --target=TARGET configure for building compilers for TARGET [HOST]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488
1489 cat <<\_ACEOF
1490
1491Optional Features:
ec6a6fbe 1492 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1495 --enable-static_link use this to link the tools to their libraries
1496 statically (default is dynamic linking
1497 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1498 device-mapper is missing from the kernel
71082be4
ZK
1499 --disable-readline disable readline support
1500 --enable-realtime enable realtime clock support
37ddf259
AK
1501 --enable-ocf enable Open Cluster Framework (OCF) compliant
1502 resource agents
71082be4
ZK
1503 --enable-cmirrord enable the cluster mirror log daemon
1504 --enable-debug enable debugging
1505 --enable-profiling gather gcov profiling data
54b362f9 1506 --enable-testing enable testing targets in the makefile
d1e8046f 1507 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1508 --disable-devmapper disable LVM2 device-mapper interaction
1509 --enable-udev_sync enable synchronisation with udev processing
1510 --enable-udev_rules install rule files needed for udev synchronisation
1511 --enable-compat enable support for old device-mapper versions
1512 --enable-units-compat enable output compatibility with old versions that
1513 that do not use KiB-style unit suffixes
1514 --disable-driver disable calls to device-mapper in the kernel
1515 --disable-o_direct disable O_DIRECT
1516 --enable-applib build application library
1517 --enable-cmdlib build shared command library
1518 --enable-pkgconfig install pkgconfig support
1519 --enable-write_install install user writable files
1520 --disable-fsadm disable fsadm
1521 --enable-dmeventd enable the device-mapper event daemon
1522 --disable-selinux disable selinux support
1523 --enable-nls enable Native Language Support
ad6254c5
AK
1524
1525Optional Packages:
1526 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1527 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1528 --with-user=USER set the owner of installed files [[USER=]]
1529 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1530 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1531 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1532 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1533 --with-device-nodes-on=ON
1534 create nodes on resume or create [[ON=resume]]
ad6254c5 1535 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1536 [[TYPE=internal]]
ad6254c5 1537 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1538 [[TYPE=internal]]
71082be4 1539 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1540 [[TYPE=internal]]
71082be4 1541 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1542 [[TYPE=internal]]
71082be4 1543 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1544 [[TYPE=internal]]
71082be4 1545 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1546 [[TYPE=none]]
606d0858
AK
1547 --with-ocfdir=DIR install OCF files in DIR
1548 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1549 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1550 The following cluster manager combinations are valid:
a946372e
AK
1551 * cman,gulm (RHEL4 or equivalent)
1552 * cman (RHEL5 or equivalent)
1553 * cman,corosync,openais (or selection of them)
1091650a 1554 * singlenode (localhost only)
a946372e
AK
1555 * all (autodetect)
1556 * none (disable build)
71082be4 1557 [TYPE=none]
8c4e8a18 1558 --with-clvmd-pidfile=PATH
f11781c5 1559 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1560 --with-cmirrord-pidfile=PATH
f11781c5
AK
1561 cmirrord pidfile [[/var/run/cmirrord.pid]]
1562 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1563 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1564 --with-confdir=DIR configuration files in DIR [[/etc]]
1565 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1566 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1567 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1568 --with-udev-prefix=UPREFIX
f11781c5
AK
1569 install udev rule files in UPREFIX [[EPREFIX]]
1570 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1571 --with-dmeventd-pidfile=PATH
f11781c5 1572 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1573 --with-dmeventd-path=PATH
f11781c5 1574 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1575 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1576 --with-default-system-dir=DIR
f11781c5 1577 default LVM system directory [[/etc/lvm]]
71082be4 1578 --with-default-archive-subdir=SUBDIR
f11781c5 1579 default metadata archive subdir [[archive]]
71082be4 1580 --with-default-backup-subdir=SUBDIR
f11781c5 1581 default metadata backup subdir [[backup]]
71082be4 1582 --with-default-cache-subdir=SUBDIR
f11781c5 1583 default metadata cache subdir [[cache]]
71082be4 1584 --with-default-locking-dir=DIR
f11781c5 1585 default locking directory [[/var/lock/lvm]]
fea55602 1586 --with-default-data-alignment=NUM
f11781c5
AK
1587 set the default data alignment in MiB [[1]]
1588 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1589
1590Some influential environment variables:
1591 CC C compiler command
1592 CFLAGS C compiler flags
1593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
25fbec5b 1595 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1596 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1597 you have headers in a nonstandard directory <include dir>
ad6254c5 1598 CPP C preprocessor
e2997b73 1599 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1600 PKG_CONFIG_PATH
1601 directories to add to pkg-config's search path
1602 PKG_CONFIG_LIBDIR
1603 path overriding pkg-config's built-in search path
a946372e
AK
1604 PKGCONFIGINIT_CFLAGS
1605 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1606 PKGCONFIGINIT_LIBS
1607 linker flags for PKGCONFIGINIT, overriding pkg-config
1608 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1609 CCS_LIBS linker flags for CCS, overriding pkg-config
1610 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1611 GULM_LIBS linker flags for GULM, overriding pkg-config
1612 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1613 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1614 COROSYNC_CFLAGS
1615 C compiler flags for COROSYNC, overriding pkg-config
1616 COROSYNC_LIBS
1617 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1618 QUORUM_CFLAGS
1619 C compiler flags for QUORUM, overriding pkg-config
1620 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1621 SALCK_CFLAGS
1622 C compiler flags for SALCK, overriding pkg-config
1623 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1624 CONFDB_CFLAGS
1625 C compiler flags for CONFDB, overriding pkg-config
1626 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1627 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1628 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1629 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1630 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1631 SACKPT_CFLAGS
1632 C compiler flags for SACKPT, overriding pkg-config
1633 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1634 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1635 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1636
1637Use these variables to override the choices made by `configure' or to help
1638it to find libraries and programs with nonstandard names/locations.
1639
f11781c5 1640Report bugs to the package provider.
ad6254c5 1641_ACEOF
7a197a62 1642ac_status=$?
ad6254c5
AK
1643fi
1644
1645if test "$ac_init_help" = "recursive"; then
1646 # If there are subdirs, report their specific --help.
ad6254c5 1647 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1648 test -d "$ac_dir" ||
1649 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 continue
ad6254c5
AK
1651 ac_builddir=.
1652
7a197a62
AK
1653case "$ac_dir" in
1654.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655*)
ec6a6fbe 1656 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1657 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1658 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1659 case $ac_top_builddir_sub in
1660 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1662 esac ;;
1663esac
1664ac_abs_top_builddir=$ac_pwd
1665ac_abs_builddir=$ac_pwd$ac_dir_suffix
1666# for backward compatibility:
1667ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1668
1669case $srcdir in
7a197a62 1670 .) # We are building in place.
ad6254c5 1671 ac_srcdir=.
7a197a62
AK
1672 ac_top_srcdir=$ac_top_builddir_sub
1673 ac_abs_top_srcdir=$ac_pwd ;;
1674 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1675 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1676 ac_top_srcdir=$srcdir
1677 ac_abs_top_srcdir=$srcdir ;;
1678 *) # Relative name.
1679 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1680 ac_top_srcdir=$ac_top_build_prefix$srcdir
1681 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1682esac
7a197a62
AK
1683ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684
1685 cd "$ac_dir" || { ac_status=$?; continue; }
1686 # Check for guested configure.
1687 if test -f "$ac_srcdir/configure.gnu"; then
1688 echo &&
1689 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1690 elif test -f "$ac_srcdir/configure"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1693 else
ec6a6fbe 1694 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1695 fi || ac_status=$?
1696 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1697 done
1698fi
1699
7a197a62 1700test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1701if $ac_init_version; then
1702 cat <<\_ACEOF
7a197a62 1703configure
f11781c5 1704generated by GNU Autoconf 2.66
ad6254c5 1705
f11781c5 1706Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1707This configure script is free software; the Free Software Foundation
1708gives unlimited permission to copy, distribute and modify it.
1709_ACEOF
7a197a62 1710 exit
ad6254c5 1711fi
ad6254c5 1712
f11781c5
AK
1713## ------------------------ ##
1714## Autoconf initialization. ##
1715## ------------------------ ##
ad6254c5 1716
f11781c5
AK
1717# ac_fn_c_try_compile LINENO
1718# --------------------------
1719# Try to compile conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_compile ()
ad6254c5 1721{
f11781c5
AK
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext
1724 if { { ac_try="$ac_compile"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_compile") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest.$ac_objext; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: failed program was:" >&5
1746sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1747
f11781c5
AK
1748 ac_retval=1
1749fi
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751 as_fn_set_status $ac_retval
ad6254c5 1752
f11781c5 1753} # ac_fn_c_try_compile
ad6254c5 1754
f11781c5
AK
1755# ac_fn_c_try_cpp LINENO
1756# ----------------------
1757# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1758ac_fn_c_try_cpp ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { { ac_try="$ac_cpp conftest.$ac_ext"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } >/dev/null && {
1777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1784
f11781c5
AK
1785 ac_retval=1
1786fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 as_fn_set_status $ac_retval
ad6254c5 1789
f11781c5 1790} # ac_fn_c_try_cpp
d911ec67 1791
f11781c5
AK
1792# ac_fn_c_try_link LINENO
1793# -----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_link ()
d911ec67 1796{
f11781c5
AK
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
d911ec67
AK
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
f11781c5
AK
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
d911ec67 1807 ac_status=$?
f11781c5
AK
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
d911ec67 1822else
f11781c5 1823 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
f11781c5 1826 ac_retval=1
d911ec67 1827fi
f11781c5
AK
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 as_fn_set_status $ac_retval
d911ec67 1835
f11781c5 1836} # ac_fn_c_try_link
d911ec67 1837
f11781c5
AK
1838# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1839# -------------------------------------------------------
1840# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1841# the include files in INCLUDES and setting the cache variable VAR
1842# accordingly.
1843ac_fn_c_check_header_mongrel ()
1844{
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 if eval "test \"\${$3+set}\"" = set; then :
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1850 $as_echo_n "(cached) " >&6
1851fi
f11781c5
AK
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1854$as_echo "$ac_res" >&6; }
1855else
1856 # Is the header compilable?
f11781c5
AK
1857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1858$as_echo_n "checking $2 usability... " >&6; }
1859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1860/* end confdefs.h. */
f11781c5
AK
1861$4
1862#include <$2>
d911ec67 1863_ACEOF
f11781c5 1864if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1865 ac_header_compiler=yes
1866else
f11781c5 1867 ac_header_compiler=no
d911ec67 1868fi
d911ec67 1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1871$as_echo "$ac_header_compiler" >&6; }
1872
1873# Is the header present?
f11781c5
AK
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1875$as_echo_n "checking $2 presence... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1877/* end confdefs.h. */
f11781c5 1878#include <$2>
d911ec67 1879_ACEOF
f11781c5 1880if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1881 ac_header_preproc=yes
1882else
d911ec67
AK
1883 ac_header_preproc=no
1884fi
d911ec67 1885rm -f conftest.err conftest.$ac_ext
f11781c5 1886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1887$as_echo "$ac_header_preproc" >&6; }
1888
1889# So? What about this header?
f11781c5 1890case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1891 yes:no: )
f11781c5
AK
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1893$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1895$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1896 ;;
1897 no:yes:* )
f11781c5
AK
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1899$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1901$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1903$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1905$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1908 ;;
1909esac
f11781c5
AK
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911$as_echo_n "checking for $2... " >&6; }
1912if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1913 $as_echo_n "(cached) " >&6
1914else
f11781c5 1915 eval "$3=\$ac_header_compiler"
d911ec67 1916fi
f11781c5
AK
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1919$as_echo "$ac_res" >&6; }
ad6254c5 1920fi
f11781c5 1921 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1922
f11781c5 1923} # ac_fn_c_check_header_mongrel
ad6254c5 1924
f11781c5
AK
1925# ac_fn_c_try_run LINENO
1926# ----------------------
1927# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1928# that executables *can* be run.
1929ac_fn_c_try_run ()
ad6254c5 1930{
f11781c5
AK
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 if { { ac_try="$ac_link"
7a197a62
AK
1933case "(($ac_try" in
1934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935 *) ac_try_echo=$ac_try;;
1936esac
f11781c5
AK
1937eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938$as_echo "$ac_try_echo"; } >&5
7a197a62 1939 (eval "$ac_link") 2>&5
ad6254c5 1940 ac_status=$?
f11781c5
AK
1941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1942 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1943 { { case "(($ac_try" in
7a197a62
AK
1944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1945 *) ac_try_echo=$ac_try;;
1946esac
f11781c5
AK
1947eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948$as_echo "$ac_try_echo"; } >&5
7a197a62 1949 (eval "$ac_try") 2>&5
ad6254c5 1950 ac_status=$?
f11781c5
AK
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; }; }; then :
1953 ac_retval=0
ad6254c5 1954else
ec6a6fbe 1955 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1956 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1957sed 's/^/| /' conftest.$ac_ext >&5
1958
f11781c5 1959 ac_retval=$ac_status
ad6254c5 1960fi
f11781c5
AK
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 as_fn_set_status $ac_retval
ad6254c5 1964
f11781c5 1965} # ac_fn_c_try_run
ad6254c5 1966
f11781c5
AK
1967# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1968# -------------------------------------------------------
1969# Tests whether HEADER exists and can be compiled using the include files in
1970# INCLUDES, setting the cache variable VAR accordingly.
1971ac_fn_c_check_header_compile ()
1972{
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975$as_echo_n "checking for $2... " >&6; }
1976if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1977 $as_echo_n "(cached) " >&6
ad6254c5 1978else
f11781c5 1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1980/* end confdefs.h. */
f11781c5
AK
1981$4
1982#include <$2>
ad6254c5 1983_ACEOF
f11781c5
AK
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$3=yes"
ad6254c5 1986else
f11781c5 1987 eval "$3=no"
ad6254c5 1988fi
7a197a62 1989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1990fi
f11781c5
AK
1991eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1993$as_echo "$ac_res" >&6; }
f11781c5 1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1995
f11781c5 1996} # ac_fn_c_check_header_compile
ad6254c5 1997
f11781c5
AK
1998# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1999# ----------------------------------------------------
2000# Tries to find if the field MEMBER exists in type AGGR, after including
2001# INCLUDES, setting cache variable VAR accordingly.
2002ac_fn_c_check_member ()
2003{
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2006$as_echo_n "checking for $2.$3... " >&6; }
2007if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2008 $as_echo_n "(cached) " >&6
795ca3e5 2009else
f11781c5
AK
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$5
2013int
2014main ()
2015{
2016static $2 ac_aggr;
2017if (ac_aggr.$3)
2018return 0;
2019 ;
2020 return 0;
2021}
ad6254c5 2022_ACEOF
f11781c5
AK
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 eval "$4=yes"
2025else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2027/* end confdefs.h. */
f11781c5
AK
2028$5
2029int
2030main ()
2031{
2032static $2 ac_aggr;
2033if (sizeof ac_aggr.$3)
2034return 0;
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$4=yes"
2041else
2042 eval "$4=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047fi
2048eval ac_res=\$$4
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050$as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2052
2053} # ac_fn_c_check_member
795ca3e5 2054
f11781c5
AK
2055# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056# -------------------------------------------
2057# Tests whether TYPE exists after having included INCLUDES, setting cache
2058# variable VAR accordingly.
2059ac_fn_c_check_type ()
2060{
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
2064if eval "test \"\${$3+set}\"" = set; then :
2065 $as_echo_n "(cached) " >&6
2066else
2067 eval "$3=no"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
ad6254c5
AK
2071int
2072main ()
2073{
f11781c5
AK
2074if (sizeof ($2))
2075 return 0;
ad6254c5
AK
2076 ;
2077 return 0;
2078}
2079_ACEOF
f11781c5
AK
2080if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082/* end confdefs.h. */
2083$4
2084int
2085main ()
2086{
2087if (sizeof (($2)))
2088 return 0;
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2094
f11781c5
AK
2095else
2096 eval "$3=yes"
795ca3e5 2097fi
f11781c5
AK
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2101fi
f11781c5
AK
2102eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2104$as_echo "$ac_res" >&6; }
f11781c5 2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2106
f11781c5 2107} # ac_fn_c_check_type
ad6254c5 2108
f11781c5
AK
2109# ac_fn_c_find_intX_t LINENO BITS VAR
2110# -----------------------------------
2111# Finds a signed integer type with width BITS, setting cache variable VAR
2112# accordingly.
2113ac_fn_c_find_intX_t ()
2114{
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2117$as_echo_n "checking for int$2_t... " >&6; }
2118if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2119 $as_echo_n "(cached) " >&6
ad6254c5 2120else
f11781c5
AK
2121 eval "$3=no"
2122 # Order is important - never check a type that is potentially smaller
2123 # than half of the expected target width.
2124 for ac_type in int$2_t 'int' 'long int' \
2125 'long long int' 'short int' 'signed char'; do
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2127/* end confdefs.h. */
2128$ac_includes_default
f11781c5 2129 enum { N = $2 / 2 - 1 };
7a197a62
AK
2130int
2131main ()
2132{
f11781c5
AK
2133static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2134test_array [0] = 0
7a197a62 2135
f11781c5
AK
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142/* end confdefs.h. */
2143$ac_includes_default
2144 enum { N = $2 / 2 - 1 };
2145int
2146main ()
2147{
2148static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2149 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2150test_array [0] = 0
7a197a62
AK
2151
2152 ;
2153 return 0;
2154}
ad6254c5 2155_ACEOF
f11781c5 2156if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2157
f11781c5
AK
2158else
2159 case $ac_type in #(
2160 int$2_t) :
2161 eval "$3=yes" ;; #(
2162 *) :
2163 eval "$3=\$ac_type" ;;
2164esac
ad6254c5 2165fi
f11781c5 2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2167fi
f11781c5
AK
2168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2170
2171else
f11781c5 2172 break
ad6254c5 2173fi
f11781c5 2174 done
ad6254c5 2175fi
f11781c5
AK
2176eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178$as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180
2181} # ac_fn_c_find_intX_t
2182
2183# ac_fn_c_find_uintX_t LINENO BITS VAR
2184# ------------------------------------
2185# Finds an unsigned integer type with width BITS, setting cache variable VAR
2186# accordingly.
2187ac_fn_c_find_uintX_t ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2191$as_echo_n "checking for uint$2_t... " >&6; }
2192if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2193 $as_echo_n "(cached) " >&6
ad6254c5 2194else
f11781c5
AK
2195 eval "$3=no"
2196 # Order is important - never check a type that is potentially smaller
2197 # than half of the expected target width.
2198 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2199 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2201/* end confdefs.h. */
7a197a62 2202$ac_includes_default
ad6254c5
AK
2203int
2204main ()
2205{
f11781c5
AK
2206static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2207test_array [0] = 0
ad6254c5 2208
f11781c5
AK
2209 ;
2210 return 0;
ad6254c5
AK
2211}
2212_ACEOF
f11781c5
AK
2213if ac_fn_c_try_compile "$LINENO"; then :
2214 case $ac_type in #(
2215 uint$2_t) :
2216 eval "$3=yes" ;; #(
2217 *) :
2218 eval "$3=\$ac_type" ;;
7a197a62 2219esac
ad6254c5 2220fi
f11781c5
AK
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2223
f11781c5
AK
2224else
2225 break
ad6254c5 2226fi
f11781c5 2227 done
ad6254c5 2228fi
f11781c5
AK
2229eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231$as_echo "$ac_res" >&6; }
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2233
f11781c5 2234} # ac_fn_c_find_uintX_t
ad6254c5 2235
f11781c5
AK
2236# ac_fn_c_check_func LINENO FUNC VAR
2237# ----------------------------------
2238# Tests whether FUNC exists, setting the cache variable VAR accordingly
2239ac_fn_c_check_func ()
2240{
2241 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2243$as_echo_n "checking for $2... " >&6; }
2244if eval "test \"\${$3+set}\"" = set; then :
2245 $as_echo_n "(cached) " >&6
ad6254c5 2246else
f11781c5
AK
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h. */
2249/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2251#define $2 innocuous_$2
ad6254c5 2252
f11781c5
AK
2253/* System header to define __stub macros and hopefully few prototypes,
2254 which can conflict with char $2 (); below.
2255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2256 <limits.h> exists even on freestanding compilers. */
ad6254c5 2257
f11781c5
AK
2258#ifdef __STDC__
2259# include <limits.h>
2260#else
2261# include <assert.h>
2262#endif
ad6254c5 2263
f11781c5
AK
2264#undef $2
2265
2266/* Override any GCC internal prototype to avoid an error.
2267 Use char because int might match the return type of a GCC
2268 builtin and then its argument prototype would still apply. */
2269#ifdef __cplusplus
2270extern "C"
2271#endif
2272char $2 ();
2273/* The GNU C library defines this for functions which it implements
2274 to always fail with ENOSYS. Some functions are actually named
2275 something starting with __ and the normal name is an alias. */
2276#if defined __stub_$2 || defined __stub___$2
2277choke me
2278#endif
ad6254c5 2279
ad6254c5
AK
2280int
2281main ()
2282{
f11781c5 2283return $2 ();
ad6254c5
AK
2284 ;
2285 return 0;
2286}
2287_ACEOF
f11781c5
AK
2288if ac_fn_c_try_link "$LINENO"; then :
2289 eval "$3=yes"
ad6254c5 2290else
f11781c5 2291 eval "$3=no"
ad6254c5 2292fi
f11781c5
AK
2293rm -f core conftest.err conftest.$ac_objext \
2294 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2295fi
f11781c5
AK
2296eval ac_res=\$$3
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2298$as_echo "$ac_res" >&6; }
2299 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2300
f11781c5
AK
2301} # ac_fn_c_check_func
2302cat >config.log <<_ACEOF
2303This file contains any messages produced by compilers while
2304running configure, to aid debugging if configure makes a mistake.
7a197a62 2305
f11781c5
AK
2306It was created by $as_me, which was
2307generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2308
f11781c5 2309 $ $0 $@
ad6254c5 2310
ad6254c5 2311_ACEOF
f11781c5
AK
2312exec 5>>config.log
2313{
2314cat <<_ASUNAME
2315## --------- ##
2316## Platform. ##
2317## --------- ##
ad6254c5 2318
f11781c5
AK
2319hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2320uname -m = `(uname -m) 2>/dev/null || echo unknown`
2321uname -r = `(uname -r) 2>/dev/null || echo unknown`
2322uname -s = `(uname -s) 2>/dev/null || echo unknown`
2323uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2324
f11781c5
AK
2325/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2326/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2327
f11781c5
AK
2328/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2329/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2330/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2331/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2332/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2333/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2334/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2335
2336_ASUNAME
2337
2338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339for as_dir in $PATH
2340do
2341 IFS=$as_save_IFS
2342 test -z "$as_dir" && as_dir=.
2343 $as_echo "PATH: $as_dir"
2344 done
2345IFS=$as_save_IFS
2346
2347} >&5
2348
2349cat >&5 <<_ACEOF
2350
2351
2352## ----------- ##
2353## Core tests. ##
2354## ----------- ##
ad6254c5 2355
ad6254c5 2356_ACEOF
ad6254c5 2357
7a197a62 2358
f11781c5
AK
2359# Keep a trace of the command line.
2360# Strip out --no-create and --no-recursion so they do not pile up.
2361# Strip out --silent because we don't want to record it for future runs.
2362# Also quote any args containing shell meta-characters.
2363# Make two passes to allow for proper duplicate-argument suppression.
2364ac_configure_args=
2365ac_configure_args0=
2366ac_configure_args1=
2367ac_must_keep_next=false
2368for ac_pass in 1 2
2369do
2370 for ac_arg
2371 do
2372 case $ac_arg in
2373 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2375 | -silent | --silent | --silen | --sile | --sil)
2376 continue ;;
2377 *\'*)
2378 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2379 esac
2380 case $ac_pass in
2381 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2382 2)
2383 as_fn_append ac_configure_args1 " '$ac_arg'"
2384 if test $ac_must_keep_next = true; then
2385 ac_must_keep_next=false # Got value, back to normal.
2386 else
2387 case $ac_arg in
2388 *=* | --config-cache | -C | -disable-* | --disable-* \
2389 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2390 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2391 | -with-* | --with-* | -without-* | --without-* | --x)
2392 case "$ac_configure_args0 " in
2393 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2394 esac
2395 ;;
2396 -* ) ac_must_keep_next=true ;;
2397 esac
2398 fi
2399 as_fn_append ac_configure_args " '$ac_arg'"
2400 ;;
2401 esac
2402 done
2403done
2404{ ac_configure_args0=; unset ac_configure_args0;}
2405{ ac_configure_args1=; unset ac_configure_args1;}
2406
2407# When interrupted or exit'd, cleanup temporary files, and complete
2408# config.log. We remove comments because anyway the quotes in there
2409# would cause problems or look ugly.
2410# WARNING: Use '\'' to represent an apostrophe within the trap.
2411# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2412trap 'exit_status=$?
2413 # Save into config.log some information that might help in debugging.
2414 {
2415 echo
2416
2417 $as_echo "## ---------------- ##
2418## Cache variables. ##
2419## ---------------- ##"
2420 echo
2421 # The following way of writing the cache mishandles newlines in values,
2422(
2423 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in #(
2426 *${as_nl}*)
2427 case $ac_var in #(
2428 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2429$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2430 esac
2431 case $ac_var in #(
2432 _ | IFS | as_nl) ;; #(
2433 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2434 *) { eval $ac_var=; unset $ac_var;} ;;
2435 esac ;;
2436 esac
2437 done
2438 (set) 2>&1 |
2439 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2440 *${as_nl}ac_space=\ *)
2441 sed -n \
2442 "s/'\''/'\''\\\\'\'''\''/g;
2443 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2444 ;; #(
2445 *)
2446 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2447 ;;
2448 esac |
2449 sort
2450)
2451 echo
2452
2453 $as_echo "## ----------------- ##
2454## Output variables. ##
2455## ----------------- ##"
2456 echo
2457 for ac_var in $ac_subst_vars
2458 do
2459 eval ac_val=\$$ac_var
2460 case $ac_val in
2461 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2462 esac
2463 $as_echo "$ac_var='\''$ac_val'\''"
2464 done | sort
2465 echo
2466
2467 if test -n "$ac_subst_files"; then
2468 $as_echo "## ------------------- ##
2469## File substitutions. ##
2470## ------------------- ##"
2471 echo
2472 for ac_var in $ac_subst_files
2473 do
2474 eval ac_val=\$$ac_var
2475 case $ac_val in
2476 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2477 esac
2478 $as_echo "$ac_var='\''$ac_val'\''"
2479 done | sort
2480 echo
2481 fi
2482
2483 if test -s confdefs.h; then
2484 $as_echo "## ----------- ##
2485## confdefs.h. ##
2486## ----------- ##"
2487 echo
2488 cat confdefs.h
2489 echo
2490 fi
2491 test "$ac_signal" != 0 &&
2492 $as_echo "$as_me: caught signal $ac_signal"
2493 $as_echo "$as_me: exit $exit_status"
2494 } >&5
2495 rm -f core *.core core.conftest.* &&
2496 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2497 exit $exit_status
2498' 0
2499for ac_signal in 1 2 13 15; do
2500 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2501done
2502ac_signal=0
2503
2504# confdefs.h avoids OS command line length limits that DEFS can exceed.
2505rm -f -r conftest* confdefs.h
7a197a62 2506
f11781c5 2507$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2508
f11781c5 2509# Predefined preprocessor variables.
ad6254c5
AK
2510
2511cat >>confdefs.h <<_ACEOF
f11781c5 2512#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2513_ACEOF
2514
f11781c5
AK
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2517_ACEOF
ad6254c5 2518
f11781c5
AK
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2521_ACEOF
f11781c5
AK
2522
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2525_ACEOF
ad6254c5 2526
f11781c5
AK
2527cat >>confdefs.h <<_ACEOF
2528#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2529_ACEOF
7a197a62 2530
f11781c5
AK
2531cat >>confdefs.h <<_ACEOF
2532#define PACKAGE_URL "$PACKAGE_URL"
2533_ACEOF
ad6254c5 2534
7a197a62 2535
f11781c5
AK
2536# Let the site file select an alternate cache file if it wants to.
2537# Prefer an explicitly selected file to automatically selected ones.
2538ac_site_file1=NONE
2539ac_site_file2=NONE
2540if test -n "$CONFIG_SITE"; then
2541 # We do not want a PATH search for config.site.
2542 case $CONFIG_SITE in #((
2543 -*) ac_site_file1=./$CONFIG_SITE;;
2544 */*) ac_site_file1=$CONFIG_SITE;;
2545 *) ac_site_file1=./$CONFIG_SITE;;
2546 esac
2547elif test "x$prefix" != xNONE; then
2548 ac_site_file1=$prefix/share/config.site
2549 ac_site_file2=$prefix/etc/config.site
ad6254c5 2550else
f11781c5
AK
2551 ac_site_file1=$ac_default_prefix/share/config.site
2552 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2553fi
f11781c5
AK
2554for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2555do
2556 test "x$ac_site_file" = xNONE && continue
2557 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2559$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2560 sed 's/^/| /' "$ac_site_file" >&5
2561 . "$ac_site_file" \
2562 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564as_fn_error $? "failed to load site script $ac_site_file
2565See \`config.log' for more details" "$LINENO" 5; }
2566 fi
2567done
ad6254c5 2568
f11781c5
AK
2569if test -r "$cache_file"; then
2570 # Some versions of bash will fail to source /dev/null (special files
2571 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2572 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2574$as_echo "$as_me: loading cache $cache_file" >&6;}
2575 case $cache_file in
2576 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2577 *) . "./$cache_file";;
2578 esac
2579 fi
2580else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2582$as_echo "$as_me: creating cache $cache_file" >&6;}
2583 >$cache_file
ad6254c5 2584fi
ad6254c5 2585
f11781c5
AK
2586as_fn_append ac_header_list " stdlib.h"
2587as_fn_append ac_header_list " unistd.h"
2588as_fn_append ac_header_list " sys/param.h"
2589# Check that the precious variables saved in the cache have kept the same
2590# value.
2591ac_cache_corrupted=false
2592for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2607 *)
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2637 fi
2638done
2639if $ac_cache_corrupted; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2645fi
f11781c5
AK
2646## -------------------- ##
2647## Main body of script. ##
2648## -------------------- ##
ad6254c5 2649
f11781c5
AK
2650ac_ext=c
2651ac_cpp='$CPP $CPPFLAGS'
2652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2655
ad6254c5 2656
ad6254c5 2657
f11781c5 2658ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2659
2660
f11781c5
AK
2661################################################################################
2662ac_aux_dir=
2663for ac_dir in autoconf "$srcdir"/autoconf; do
2664 if test -f "$ac_dir/install-sh"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/install-sh -c"
2667 break
2668 elif test -f "$ac_dir/install.sh"; then
2669 ac_aux_dir=$ac_dir
2670 ac_install_sh="$ac_aux_dir/install.sh -c"
2671 break
2672 elif test -f "$ac_dir/shtool"; then
2673 ac_aux_dir=$ac_dir
2674 ac_install_sh="$ac_aux_dir/shtool install -c"
2675 break
2676 fi
2677done
2678if test -z "$ac_aux_dir"; then
2679 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2680fi
ad6254c5 2681
f11781c5
AK
2682# These three variables are undocumented and unsupported,
2683# and are intended to be withdrawn in a future Autoconf release.
2684# They can cause serious problems if a builder's source tree is in a directory
2685# whose full name contains unusual characters.
2686ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2687ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2688ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2689
ad6254c5 2690
8a2fc586 2691
f11781c5
AK
2692################################################################################
2693# Make sure we can run config.sub.
2694$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2695 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2696
f11781c5
AK
2697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2698$as_echo_n "checking build system type... " >&6; }
2699if test "${ac_cv_build+set}" = set; then :
2700 $as_echo_n "(cached) " >&6
2701else
2702 ac_build_alias=$build_alias
2703test "x$ac_build_alias" = x &&
2704 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2705test "x$ac_build_alias" = x &&
2706 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2707ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2709
2710fi
f11781c5
AK
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2712$as_echo "$ac_cv_build" >&6; }
2713case $ac_cv_build in
2714*-*-*) ;;
2715*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2716esac
2717build=$ac_cv_build
2718ac_save_IFS=$IFS; IFS='-'
2719set x $ac_cv_build
2720shift
2721build_cpu=$1
2722build_vendor=$2
2723shift; shift
2724# Remember, the first character of IFS is used to create $*,
2725# except with old shells:
2726build_os=$*
2727IFS=$ac_save_IFS
2728case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2729
2730
f11781c5
AK
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2732$as_echo_n "checking host system type... " >&6; }
2733if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2734 $as_echo_n "(cached) " >&6
ad6254c5 2735else
f11781c5
AK
2736 if test "x$host_alias" = x; then
2737 ac_cv_host=$ac_cv_build
ad6254c5 2738else
f11781c5
AK
2739 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2740 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2741fi
ad6254c5 2742
f11781c5
AK
2743fi
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2745$as_echo "$ac_cv_host" >&6; }
2746case $ac_cv_host in
2747*-*-*) ;;
2748*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2749esac
2750host=$ac_cv_host
2751ac_save_IFS=$IFS; IFS='-'
2752set x $ac_cv_host
2753shift
2754host_cpu=$1
2755host_vendor=$2
2756shift; shift
2757# Remember, the first character of IFS is used to create $*,
2758# except with old shells:
2759host_os=$*
2760IFS=$ac_save_IFS
2761case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2762
ad6254c5 2763
f11781c5
AK
2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2765$as_echo_n "checking target system type... " >&6; }
2766if test "${ac_cv_target+set}" = set; then :
2767 $as_echo_n "(cached) " >&6
ad6254c5 2768else
f11781c5
AK
2769 if test "x$target_alias" = x; then
2770 ac_cv_target=$ac_cv_host
2771else
2772 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2774fi
7a197a62 2775
ad6254c5 2776fi
f11781c5
AK
2777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2778$as_echo "$ac_cv_target" >&6; }
2779case $ac_cv_target in
2780*-*-*) ;;
2781*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2782esac
f11781c5
AK
2783target=$ac_cv_target
2784ac_save_IFS=$IFS; IFS='-'
2785set x $ac_cv_target
2786shift
2787target_cpu=$1
2788target_vendor=$2
2789shift; shift
2790# Remember, the first character of IFS is used to create $*,
2791# except with old shells:
2792target_os=$*
2793IFS=$ac_save_IFS
2794case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2795
ad6254c5 2796
f11781c5
AK
2797# The aliases save the names the user supplied, while $host etc.
2798# will get canonicalized.
2799test -n "$target_alias" &&
2800 test "$program_prefix$program_suffix$program_transform_name" = \
2801 NONENONEs,x,x, &&
2802 program_prefix=${target_alias}-
ad6254c5 2803
f11781c5
AK
2804case "$host_os" in
2805 linux*)
2806 CFLAGS="$CFLAGS"
2807 COPTIMISE_FLAG="-O2"
2808 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2809 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2810 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2811 LDDEPS="$LDDEPS .export.sym"
2812 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2813 LIB_SUFFIX=so
2814 DEVMAPPER=yes
2815 ODIRECT=yes
2816 DM_IOCTLS=yes
2817 SELINUX=yes
2818 CLUSTER=internal
2819 FSADM=yes
2820 ;;
2821 darwin*)
2822 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2823 COPTIMISE_FLAG="-O2"
2824 CLDFLAGS="$CLDFLAGS"
2825 CLDWHOLEARCHIVE="-all_load"
2826 CLDNOWHOLEARCHIVE=
2827 LIB_SUFFIX=dylib
2828 DEVMAPPER=yes
2829 ODIRECT=no
2830 DM_IOCTLS=no
2831 SELINUX=no
2832 CLUSTER=none
2833 FSADM=no
2834 ;;
2835esac
ad6254c5 2836
f11781c5
AK
2837################################################################################
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2839$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2840if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2841 $as_echo_n "(cached) " >&6
ad6254c5 2842else
f11781c5
AK
2843 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2844 for ac_i in 1 2 3 4 5 6 7; do
2845 ac_script="$ac_script$as_nl$ac_script"
2846 done
2847 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2848 { ac_script=; unset ac_script;}
2849 if test -z "$SED"; then
2850 ac_path_SED_found=false
2851 # Loop through the user's path and test for each of PROGNAME-LIST
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855 IFS=$as_save_IFS
2856 test -z "$as_dir" && as_dir=.
2857 for ac_prog in sed gsed; do
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2860 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2861# Check for GNU ac_path_SED and select it if it is found.
2862 # Check for GNU $ac_path_SED
2863case `"$ac_path_SED" --version 2>&1` in
2864*GNU*)
2865 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2866*)
2867 ac_count=0
2868 $as_echo_n 0123456789 >"conftest.in"
2869 while :
2870 do
2871 cat "conftest.in" "conftest.in" >"conftest.tmp"
2872 mv "conftest.tmp" "conftest.in"
2873 cp "conftest.in" "conftest.nl"
2874 $as_echo '' >> "conftest.nl"
2875 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2876 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2877 as_fn_arith $ac_count + 1 && ac_count=$as_val
2878 if test $ac_count -gt ${ac_path_SED_max-0}; then
2879 # Best one so far, save it but keep looking for a better one
2880 ac_cv_path_SED="$ac_path_SED"
2881 ac_path_SED_max=$ac_count
2882 fi
2883 # 10*(2^10) chars as input seems more than enough
2884 test $ac_count -gt 10 && break
2885 done
2886 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2887esac
ad6254c5 2888
f11781c5
AK
2889 $ac_path_SED_found && break 3
2890 done
2891 done
2892 done
2893IFS=$as_save_IFS
2894 if test -z "$ac_cv_path_SED"; then
2895 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2896 fi
2897else
2898 ac_cv_path_SED=$SED
ad6254c5 2899fi
7a197a62 2900
f11781c5
AK
2901fi
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2903$as_echo "$ac_cv_path_SED" >&6; }
2904 SED="$ac_cv_path_SED"
2905 rm -f conftest.sed
ad6254c5 2906
f11781c5
AK
2907for ac_prog in gawk mawk nawk awk
2908do
2909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2910set dummy $ac_prog; ac_word=$2
2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912$as_echo_n "checking for $ac_word... " >&6; }
2913if test "${ac_cv_prog_AWK+set}" = set; then :
2914 $as_echo_n "(cached) " >&6
ad6254c5 2915else
f11781c5
AK
2916 if test -n "$AWK"; then
2917 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2918else
2919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_AWK="$ac_prog"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930done
2931 done
2932IFS=$as_save_IFS
ad6254c5 2933
ad6254c5 2934fi
ad6254c5 2935fi
f11781c5
AK
2936AWK=$ac_cv_prog_AWK
2937if test -n "$AWK"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2939$as_echo "$AWK" >&6; }
2940else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942$as_echo "no" >&6; }
ad6254c5 2943fi
ad6254c5 2944
ad6254c5 2945
f11781c5 2946 test -n "$AWK" && break
ad6254c5
AK
2947done
2948
f11781c5
AK
2949ac_ext=c
2950ac_cpp='$CPP $CPPFLAGS'
2951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954if test -n "$ac_tool_prefix"; then
2955 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2956set dummy ${ac_tool_prefix}gcc; ac_word=$2
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958$as_echo_n "checking for $ac_word... " >&6; }
2959if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2960 $as_echo_n "(cached) " >&6
ad6254c5 2961else
f11781c5
AK
2962 if test -n "$CC"; then
2963 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2964else
f11781c5
AK
2965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966for as_dir in $PATH
2967do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976done
2977 done
2978IFS=$as_save_IFS
ad6254c5 2979
ad6254c5 2980fi
ad6254c5 2981fi
f11781c5
AK
2982CC=$ac_cv_prog_CC
2983if test -n "$CC"; then
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985$as_echo "$CC" >&6; }
2986else
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988$as_echo "no" >&6; }
ad6254c5 2989fi
ad6254c5 2990
f11781c5
AK
2991
2992fi
2993if test -z "$ac_cv_prog_CC"; then
2994 ac_ct_CC=$CC
2995 # Extract the first word of "gcc", so it can be a program name with args.
2996set dummy gcc; ac_word=$2
2997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998$as_echo_n "checking for $ac_word... " >&6; }
2999if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3000 $as_echo_n "(cached) " >&6
ad6254c5 3001else
f11781c5
AK
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3004else
f11781c5
AK
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_CC="gcc"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3015 fi
3016done
3017 done
3018IFS=$as_save_IFS
d911ec67 3019
d911ec67 3020fi
d911ec67 3021fi
f11781c5
AK
3022ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025$as_echo "$ac_ct_CC" >&6; }
3026else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028$as_echo "no" >&6; }
d911ec67 3029fi
d911ec67 3030
f11781c5
AK
3031 if test "x$ac_ct_CC" = x; then
3032 CC=""
3033 else
3034 case $cross_compiling:$ac_tool_warned in
3035yes:)
3036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038ac_tool_warned=yes ;;
3039esac
3040 CC=$ac_ct_CC
3041 fi
3042else
3043 CC="$ac_cv_prog_CC"
d911ec67 3044fi
d911ec67 3045
f11781c5
AK
3046if test -z "$CC"; then
3047 if test -n "$ac_tool_prefix"; then
3048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049set dummy ${ac_tool_prefix}cc; ac_word=$2
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051$as_echo_n "checking for $ac_word... " >&6; }
3052if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3053 $as_echo_n "(cached) " >&6
d911ec67 3054else
f11781c5
AK
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3057else
f11781c5
AK
3058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059for as_dir in $PATH
3060do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="${ac_tool_prefix}cc"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069done
3070 done
3071IFS=$as_save_IFS
d911ec67 3072
f11781c5
AK
3073fi
3074fi
3075CC=$ac_cv_prog_CC
3076if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078$as_echo "$CC" >&6; }
3079else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081$as_echo "no" >&6; }
d911ec67
AK
3082fi
3083
d911ec67 3084
f11781c5
AK
3085 fi
3086fi
3087if test -z "$CC"; then
3088 # Extract the first word of "cc", so it can be a program name with args.
3089set dummy cc; ac_word=$2
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091$as_echo_n "checking for $ac_word... " >&6; }
3092if test "${ac_cv_prog_CC+set}" = set; then :
3093 $as_echo_n "(cached) " >&6
d911ec67 3094else
f11781c5
AK
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097else
3098 ac_prog_rejected=no
3099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100for as_dir in $PATH
3101do
3102 IFS=$as_save_IFS
3103 test -z "$as_dir" && as_dir=.
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3107 ac_prog_rejected=yes
3108 continue
3109 fi
3110 ac_cv_prog_CC="cc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3113 fi
3114done
3115 done
3116IFS=$as_save_IFS
d911ec67 3117
f11781c5
AK
3118if test $ac_prog_rejected = yes; then
3119 # We found a bogon in the path, so make sure we never use it.
3120 set dummy $ac_cv_prog_CC
3121 shift
3122 if test $# != 0; then
3123 # We chose a different compiler from the bogus one.
3124 # However, it has the same basename, so the bogon will be chosen
3125 # first if we set CC to just the basename; use the full file name.
3126 shift
3127 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3128 fi
3129fi
3130fi
3131fi
3132CC=$ac_cv_prog_CC
3133if test -n "$CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135$as_echo "$CC" >&6; }
3136else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138$as_echo "no" >&6; }
d911ec67
AK
3139fi
3140
d911ec67 3141
f11781c5
AK
3142fi
3143if test -z "$CC"; then
3144 if test -n "$ac_tool_prefix"; then
3145 for ac_prog in cl.exe
3146 do
3147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3152 $as_echo_n "(cached) " >&6
3153else
f11781c5
AK
3154 if test -n "$CC"; then
3155 ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_exec_ext in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2
3167 fi
3168done
3169 done
3170IFS=$as_save_IFS
d911ec67
AK
3171
3172fi
f11781c5
AK
3173fi
3174CC=$ac_cv_prog_CC
3175if test -n "$CC"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177$as_echo "$CC" >&6; }
3178else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180$as_echo "no" >&6; }
d911ec67
AK
3181fi
3182
d911ec67 3183
f11781c5
AK
3184 test -n "$CC" && break
3185 done
3186fi
3187if test -z "$CC"; then
3188 ac_ct_CC=$CC
3189 for ac_prog in cl.exe
3190do
3191 # Extract the first word of "$ac_prog", so it can be a program name with args.
3192set dummy $ac_prog; ac_word=$2
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194$as_echo_n "checking for $ac_word... " >&6; }
3195if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3196 $as_echo_n "(cached) " >&6
3197else
f11781c5
AK
3198 if test -n "$ac_ct_CC"; then
3199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3200else
f11781c5
AK
3201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202for as_dir in $PATH
3203do
3204 IFS=$as_save_IFS
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_ac_ct_CC="$ac_prog"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210 break 2
3211 fi
3212done
3213 done
3214IFS=$as_save_IFS
ad6254c5 3215
ad6254c5 3216fi
ad6254c5 3217fi
f11781c5
AK
3218ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219if test -n "$ac_ct_CC"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221$as_echo "$ac_ct_CC" >&6; }
3222else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
ad6254c5 3225fi
ad6254c5 3226
d911ec67 3227
f11781c5
AK
3228 test -n "$ac_ct_CC" && break
3229done
d911ec67 3230
f11781c5
AK
3231 if test "x$ac_ct_CC" = x; then
3232 CC=""
3233 else
3234 case $cross_compiling:$ac_tool_warned in
3235yes:)
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238ac_tool_warned=yes ;;
d911ec67 3239esac
f11781c5
AK
3240 CC=$ac_ct_CC
3241 fi
3242fi
ad6254c5
AK
3243
3244fi
d911ec67
AK
3245
3246
f11781c5
AK
3247test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249as_fn_error $? "no acceptable C compiler found in \$PATH
3250See \`config.log' for more details" "$LINENO" 5; }
3251
3252# Provide some information about the compiler.
3253$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3254set X $ac_compile
3255ac_compiler=$2
3256for ac_option in --version -v -V -qversion; do
3257 { { ac_try="$ac_compiler $ac_option >&5"
3258case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3265 ac_status=$?
3266 if test -s conftest.err; then
3267 sed '10a\
3268... rest of stderr output deleted ...
3269 10q' conftest.err >conftest.er1
3270 cat conftest.er1 >&5
3271 fi
3272 rm -f conftest.er1 conftest.err
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275done
ad6254c5 3276
f11781c5 3277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3278/* end confdefs.h. */
f11781c5 3279
ad6254c5
AK
3280int
3281main ()
3282{
f11781c5 3283
ad6254c5
AK
3284 ;
3285 return 0;
3286}
3287_ACEOF
f11781c5
AK
3288ac_clean_files_save=$ac_clean_files
3289ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3290# Try to create an executable without -o first, disregard a.out.
3291# It will help us diagnose broken compilers, and finding out an intuition
3292# of exeext.
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3294$as_echo_n "checking whether the C compiler works... " >&6; }
3295ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296
3297# The possible output files:
3298ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299
3300ac_rmfiles=
3301for ac_file in $ac_files
3302do
3303 case $ac_file in
3304 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306 esac
3307done
3308rm -f $ac_rmfiles
3309
3310if { { ac_try="$ac_link_default"
7a197a62
AK
3311case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
f11781c5
AK
3315eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316$as_echo "$ac_try_echo"; } >&5
3317 (eval "$ac_link_default") 2>&5
ad6254c5 3318 ac_status=$?
f11781c5
AK
3319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320 test $ac_status = 0; }; then :
3321 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323# in a Makefile. We should not override ac_cv_exeext if it was cached,
3324# so that the user can short-circuit this test for compilers unknown to
3325# Autoconf.
3326for ac_file in $ac_files ''
3327do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3331 ;;
3332 [ab].out )
3333 # We found the default executable, but exeext='' is most
3334 # certainly right.
3335 break;;
3336 *.* )
3337 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338 then :; else
3339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340 fi
3341 # We set ac_cv_exeext here because the later test for it is not
3342 # safe: cross compilers may not add the suffix if given an `-o'
3343 # argument, so we may need to know it at that point already.
3344 # Even if this section looks crufty: it has the advantage of
3345 # actually working.
3346 break;;
3347 * )
3348 break;;
3349 esac
3350done
3351test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
ad6254c5 3353else
f11781c5
AK
3354 ac_file=''
3355fi
3356if test -z "$ac_file"; then :
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358$as_echo "no" >&6; }
ec6a6fbe 3359$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
f11781c5
AK
3362{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364as_fn_error 77 "C compiler cannot create executables
3365See \`config.log' for more details" "$LINENO" 5; }
3366else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368$as_echo "yes" >&6; }
ad6254c5 3369fi
f11781c5
AK
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3371$as_echo_n "checking for C compiler default output file name... " >&6; }
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3373$as_echo "$ac_file" >&6; }
3374ac_exeext=$ac_cv_exeext
7a197a62 3375
f11781c5
AK
3376rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3377ac_clean_files=$ac_clean_files_save
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3379$as_echo_n "checking for suffix of executables... " >&6; }
3380if { { ac_try="$ac_link"
3381case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
8a2fc586 3384esac
f11781c5
AK
3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386$as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_link") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; then :
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393# work properly (i.e., refer to `conftest.exe'), while it won't with
3394# `rm'.
3395for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400 break;;
3401 * ) break;;
3402 esac
3403done
3404else
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3408See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3409fi
f11781c5
AK
3410rm -f conftest conftest$ac_cv_exeext
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3412$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3413
f11781c5
AK
3414rm -f conftest.$ac_ext
3415EXEEXT=$ac_cv_exeext
3416ac_exeext=$EXEEXT
3417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3418/* end confdefs.h. */
f11781c5 3419#include <stdio.h>
ad6254c5 3420int
f11781c5 3421main ()
ad6254c5 3422{
f11781c5
AK
3423FILE *f = fopen ("conftest.out", "w");
3424 return ferror (f) || fclose (f) != 0;
ad6254c5 3425
f11781c5 3426 ;
7a197a62 3427 return 0;
ad6254c5 3428}
ad6254c5 3429_ACEOF
f11781c5
AK
3430ac_clean_files="$ac_clean_files conftest.out"
3431# Check that the compiler produces executables we can run. If not, either
3432# the compiler is broken, or we cross compile.
3433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3434$as_echo_n "checking whether we are cross compiling... " >&6; }
3435if test "$cross_compiling" != yes; then
3436 { { ac_try="$ac_link"
7a197a62
AK
3437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
f11781c5
AK
3441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
7a197a62 3443 (eval "$ac_link") 2>&5
ad6254c5 3444 ac_status=$?
f11781c5
AK
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }
3447 if { ac_try='./conftest$ac_cv_exeext'
3448 { { case "(($ac_try" in
7a197a62
AK
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
f11781c5
AK
3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453$as_echo "$ac_try_echo"; } >&5
7a197a62 3454 (eval "$ac_try") 2>&5
ad6254c5 3455 ac_status=$?
f11781c5
AK
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; }; then
3458 cross_compiling=no
3459 else
3460 if test "$cross_compiling" = maybe; then
3461 cross_compiling=yes
3462 else
3463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3465as_fn_error $? "cannot run C compiled programs.
3466If you meant to cross compile, use \`--host'.
3467See \`config.log' for more details" "$LINENO" 5; }
3468 fi
3469 fi
3470fi
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3472$as_echo "$cross_compiling" >&6; }
3473
3474rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3475ac_clean_files=$ac_clean_files_save
3476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3477$as_echo_n "checking for suffix of object files... " >&6; }
3478if test "${ac_cv_objext+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480else
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482/* end confdefs.h. */
ad6254c5
AK
3483
3484int
3485main ()
3486{
f11781c5 3487
ad6254c5
AK
3488 ;
3489 return 0;
3490}
3491_ACEOF
f11781c5
AK
3492rm -f conftest.o conftest.obj
3493if { { ac_try="$ac_compile"
7a197a62
AK
3494case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3497esac
f11781c5
AK
3498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3499$as_echo "$ac_try_echo"; } >&5
3500 (eval "$ac_compile") 2>&5
ad6254c5 3501 ac_status=$?
f11781c5
AK
3502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3503 test $ac_status = 0; }; then :
3504 for ac_file in conftest.o conftest.obj conftest.*; do
3505 test -f "$ac_file" || continue;
3506 case $ac_file in
3507 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3508 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3509 break;;
3510 esac
3511done
ad6254c5 3512else
ec6a6fbe 3513 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
f11781c5
AK
3516{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3517$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3518as_fn_error $? "cannot compute suffix of object files: cannot compile
3519See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3520fi
f11781c5 3521rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3522fi
f11781c5
AK
3523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3524$as_echo "$ac_cv_objext" >&6; }
3525OBJEXT=$ac_cv_objext
3526ac_objext=$OBJEXT
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3528$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3529if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3530 $as_echo_n "(cached) " >&6
ad6254c5 3531else
f11781c5 3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3533/* end confdefs.h. */
3534
ad6254c5
AK
3535int
3536main ()
3537{
f11781c5
AK
3538#ifndef __GNUC__
3539 choke me
3540#endif
3541
ad6254c5
AK
3542 ;
3543 return 0;
3544}
3545_ACEOF
f11781c5
AK
3546if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_compiler_gnu=yes
ad6254c5 3548else
f11781c5 3549 ac_compiler_gnu=no
ad6254c5 3550fi
f11781c5
AK
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3553
d0191583 3554fi
f11781c5
AK
3555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3556$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3557if test $ac_compiler_gnu = yes; then
3558 GCC=yes
d0191583 3559else
f11781c5 3560 GCC=
d0191583 3561fi
f11781c5
AK
3562ac_test_CFLAGS=${CFLAGS+set}
3563ac_save_CFLAGS=$CFLAGS
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3565$as_echo_n "checking whether $CC accepts -g... " >&6; }
3566if test "${ac_cv_prog_cc_g+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568else
3569 ac_save_c_werror_flag=$ac_c_werror_flag
3570 ac_c_werror_flag=yes
3571 ac_cv_prog_cc_g=no
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574/* end confdefs.h. */
72b2cb61 3575
f11781c5
AK
3576int
3577main ()
3578{
72b2cb61 3579
f11781c5
AK
3580 ;
3581 return 0;
3582}
3583_ACEOF
3584if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3586else
3587 CFLAGS=""
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h. */
ad6254c5 3590
f11781c5
AK
3591int
3592main ()
3593{
ad6254c5 3594
f11781c5
AK
3595 ;
3596 return 0;
3597}
d0191583 3598_ACEOF
f11781c5
AK
3599if ac_fn_c_try_compile "$LINENO"; then :
3600
3601else
3602 ac_c_werror_flag=$ac_save_c_werror_flag
3603 CFLAGS="-g"
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3605/* end confdefs.h. */
7a197a62 3606
f11781c5
AK
3607int
3608main ()
3609{
ad6254c5 3610
f11781c5
AK
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615if ac_fn_c_try_compile "$LINENO"; then :
3616 ac_cv_prog_cc_g=yes
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619fi
3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621fi
3622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 ac_c_werror_flag=$ac_save_c_werror_flag
3624fi
3625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3626$as_echo "$ac_cv_prog_cc_g" >&6; }
3627if test "$ac_test_CFLAGS" = set; then
3628 CFLAGS=$ac_save_CFLAGS
3629elif test $ac_cv_prog_cc_g = yes; then
3630 if test "$GCC" = yes; then
3631 CFLAGS="-g -O2"
3632 else
3633 CFLAGS="-g"
3634 fi
3635else
3636 if test "$GCC" = yes; then
3637 CFLAGS="-O2"
3638 else
3639 CFLAGS=
3640 fi
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3644if test "${ac_cv_prog_cc_c89+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646else
3647 ac_cv_prog_cc_c89=no
3648ac_save_CC=$CC
3649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h. */
3651#include <stdarg.h>
3652#include <stdio.h>
3653#include <sys/types.h>
3654#include <sys/stat.h>
3655/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3656struct buf { int x; };
3657FILE * (*rcsopen) (struct buf *, struct stat *, int);
3658static char *e (p, i)
3659 char **p;
3660 int i;
3661{
3662 return p[i];
3663}
3664static char *f (char * (*g) (char **, int), char **p, ...)
3665{
3666 char *s;
3667 va_list v;
3668 va_start (v,p);
3669 s = g (p, va_arg (v,int));
3670 va_end (v);
3671 return s;
3672}
ad6254c5 3673
f11781c5
AK
3674/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3675 function prototypes and stuff, but not '\xHH' hex character constants.
3676 These don't provoke an error unfortunately, instead are silently treated
3677 as 'x'. The following induces an error, until -std is added to get
3678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3679 array size at least. It's necessary to write '\x00'==0 to get something
3680 that's true only with -std. */
3681int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3682
f11781c5
AK
3683/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3684 inside strings and character constants. */
3685#define FOO(x) 'x'
3686int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3687
f11781c5
AK
3688int test (int i, double x);
3689struct s1 {int (*f) (int a);};
3690struct s2 {int (*f) (double a);};
3691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692int argc;
3693char **argv;
d0191583
JM
3694int
3695main ()
3696{
f11781c5 3697return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3698 ;
3699 return 0;
3700}
72b2cb61 3701_ACEOF
f11781c5
AK
3702for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704do
3705 CC="$ac_save_CC $ac_arg"
3706 if ac_fn_c_try_compile "$LINENO"; then :
3707 ac_cv_prog_cc_c89=$ac_arg
3708fi
3709rm -f core conftest.err conftest.$ac_objext
3710 test "x$ac_cv_prog_cc_c89" != "xno" && break
3711done
3712rm -f conftest.$ac_ext
3713CC=$ac_save_CC
3714
3715fi
3716# AC_CACHE_VAL
3717case "x$ac_cv_prog_cc_c89" in
3718 x)
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3720$as_echo "none needed" >&6; } ;;
3721 xno)
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3723$as_echo "unsupported" >&6; } ;;
3724 *)
3725 CC="$CC $ac_cv_prog_cc_c89"
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3727$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3728esac
f11781c5
AK
3729if test "x$ac_cv_prog_cc_c89" != xno; then :
3730
3731fi
3732
3733ac_ext=c
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3738
ad6254c5 3739
7a197a62 3740
f11781c5
AK
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3747$as_echo_n "checking how to run the C preprocessor... " >&6; }
3748# On Suns, sometimes $CPP names a directory.
3749if test -n "$CPP" && test -d "$CPP"; then
3750 CPP=
3751fi
3752if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3754 $as_echo_n "(cached) " >&6
ad6254c5 3755else
f11781c5
AK
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3758 do
3759 ac_preproc_ok=false
3760for ac_c_preproc_warn_flag in '' yes
3761do
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3769/* end confdefs.h. */
d0191583
JM
3770#ifdef __STDC__
3771# include <limits.h>
3772#else
3773# include <assert.h>
3774#endif
f11781c5
AK
3775 Syntax error
3776_ACEOF
3777if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3778
f11781c5
AK
3779else
3780 # Broken: fails on valid input.
3781continue
3782fi
3783rm -f conftest.err conftest.$ac_ext
d0191583 3784
f11781c5
AK
3785 # OK, works on sane cases. Now check whether nonexistent headers
3786 # can be detected and how.
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789#include <ac_nonexistent.h>
72b2cb61 3790_ACEOF
f11781c5
AK
3791if ac_fn_c_try_cpp "$LINENO"; then :
3792 # Broken: success on invalid input.
3793continue
d0191583 3794else
f11781c5
AK
3795 # Passes both tests.
3796ac_preproc_ok=:
3797break
ad6254c5 3798fi
f11781c5 3799rm -f conftest.err conftest.$ac_ext
ad6254c5 3800
f11781c5
AK
3801done
3802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3803rm -f conftest.err conftest.$ac_ext
3804if $ac_preproc_ok; then :
3805 break
7a197a62
AK
3806fi
3807
f11781c5
AK
3808 done
3809 ac_cv_prog_CPP=$CPP
ad6254c5 3810
7a197a62 3811fi
f11781c5
AK
3812 CPP=$ac_cv_prog_CPP
3813else
3814 ac_cv_prog_CPP=$CPP
d0191583 3815fi
f11781c5
AK
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3817$as_echo "$CPP" >&6; }
3818ac_preproc_ok=false
3819for ac_c_preproc_warn_flag in '' yes
3820do
3821 # Use a header file that comes with gcc, so configuring glibc
3822 # with a fresh cross-compiler works.
3823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3824 # <limits.h> exists even on freestanding compilers.
3825 # On the NeXT, cc -E runs the code through the compiler's parser,
3826 # not just through cpp. "Syntax error" is here to catch this case.
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828/* end confdefs.h. */
3829#ifdef __STDC__
3830# include <limits.h>
3831#else
3832# include <assert.h>
3833#endif
3834 Syntax error
3835_ACEOF
3836if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3837
9c961554 3838else
f11781c5
AK
3839 # Broken: fails on valid input.
3840continue
9c961554 3841fi
f11781c5 3842rm -f conftest.err conftest.$ac_ext
9c961554 3843
f11781c5
AK
3844 # OK, works on sane cases. Now check whether nonexistent headers
3845 # can be detected and how.
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847/* end confdefs.h. */
3848#include <ac_nonexistent.h>
3849_ACEOF
3850if ac_fn_c_try_cpp "$LINENO"; then :
3851 # Broken: success on invalid input.
3852continue
3853else
3854 # Passes both tests.
3855ac_preproc_ok=:
3856break
3857fi
3858rm -f conftest.err conftest.$ac_ext
ad6254c5 3859
f11781c5
AK
3860done
3861# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3862rm -f conftest.err conftest.$ac_ext
3863if $ac_preproc_ok; then :
d0191583 3864
f11781c5
AK
3865else
3866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3869See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3870fi
3871
f11781c5
AK
3872ac_ext=c
3873ac_cpp='$CPP $CPPFLAGS'
3874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3877
ad6254c5 3878
f11781c5
AK
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3880$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3881if test "${ac_cv_path_GREP+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3883else
3884 if test -z "$GREP"; then
3885 ac_path_GREP_found=false
3886 # Loop through the user's path and test for each of PROGNAME-LIST
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_prog in grep ggrep; do
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3895 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3896# Check for GNU ac_path_GREP and select it if it is found.
3897 # Check for GNU $ac_path_GREP
3898case `"$ac_path_GREP" --version 2>&1` in
3899*GNU*)
3900 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3901*)
3902 ac_count=0
3903 $as_echo_n 0123456789 >"conftest.in"
3904 while :
3905 do
3906 cat "conftest.in" "conftest.in" >"conftest.tmp"
3907 mv "conftest.tmp" "conftest.in"
3908 cp "conftest.in" "conftest.nl"
3909 $as_echo 'GREP' >> "conftest.nl"
3910 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3911 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3912 as_fn_arith $ac_count + 1 && ac_count=$as_val
3913 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3914 # Best one so far, save it but keep looking for a better one
3915 ac_cv_path_GREP="$ac_path_GREP"
3916 ac_path_GREP_max=$ac_count
3917 fi
3918 # 10*(2^10) chars as input seems more than enough
3919 test $ac_count -gt 10 && break
3920 done
3921 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3922esac
ad6254c5 3923
f11781c5
AK
3924 $ac_path_GREP_found && break 3
3925 done
3926 done
3927 done
3928IFS=$as_save_IFS
3929 if test -z "$ac_cv_path_GREP"; then
3930 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3931 fi
3932else
3933 ac_cv_path_GREP=$GREP
7a197a62
AK
3934fi
3935
d0191583 3936fi
f11781c5
AK
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3938$as_echo "$ac_cv_path_GREP" >&6; }
3939 GREP="$ac_cv_path_GREP"
ad6254c5 3940
24bbc4d7 3941
f11781c5
AK
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3943$as_echo_n "checking for egrep... " >&6; }
3944if test "${ac_cv_path_EGREP+set}" = set; then :
3945 $as_echo_n "(cached) " >&6
3946else
3947 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3948 then ac_cv_path_EGREP="$GREP -E"
3949 else
3950 if test -z "$EGREP"; then
3951 ac_path_EGREP_found=false
3952 # Loop through the user's path and test for each of PROGNAME-LIST
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3955do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_prog in egrep; do
3959 for ac_exec_ext in '' $ac_executable_extensions; do
3960 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3961 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3962# Check for GNU ac_path_EGREP and select it if it is found.
3963 # Check for GNU $ac_path_EGREP
3964case `"$ac_path_EGREP" --version 2>&1` in
3965*GNU*)
3966 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3967*)
3968 ac_count=0
3969 $as_echo_n 0123456789 >"conftest.in"
3970 while :
3971 do
3972 cat "conftest.in" "conftest.in" >"conftest.tmp"
3973 mv "conftest.tmp" "conftest.in"
3974 cp "conftest.in" "conftest.nl"
3975 $as_echo 'EGREP' >> "conftest.nl"
3976 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3978 as_fn_arith $ac_count + 1 && ac_count=$as_val
3979 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3980 # Best one so far, save it but keep looking for a better one
3981 ac_cv_path_EGREP="$ac_path_EGREP"
3982 ac_path_EGREP_max=$ac_count
3983 fi
3984 # 10*(2^10) chars as input seems more than enough
3985 test $ac_count -gt 10 && break
3986 done
3987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3988esac
24bbc4d7 3989
f11781c5
AK
3990 $ac_path_EGREP_found && break 3
3991 done
3992 done
3993 done
3994IFS=$as_save_IFS
3995 if test -z "$ac_cv_path_EGREP"; then
3996 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3997 fi
24bbc4d7 3998else
f11781c5 3999 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4000fi
4001
f11781c5 4002 fi
24bbc4d7 4003fi
f11781c5
AK
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4005$as_echo "$ac_cv_path_EGREP" >&6; }
4006 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4007
4008
f11781c5
AK
4009if test $ac_cv_c_compiler_gnu = yes; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4011$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4012if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4013 $as_echo_n "(cached) " >&6
93bd259b 4014else
f11781c5
AK
4015 ac_pattern="Autoconf.*'x'"
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h. */
4018#include <sgtty.h>
4019Autoconf TIOCGETP
4020_ACEOF
4021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4023 ac_cv_prog_gcc_traditional=yes
d0191583 4024else
f11781c5 4025 ac_cv_prog_gcc_traditional=no
7a197a62 4026fi
f11781c5 4027rm -f conftest*
7a197a62 4028
72b2cb61 4029
f11781c5
AK
4030 if test $ac_cv_prog_gcc_traditional = no; then
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h. */
4033#include <termio.h>
4034Autoconf TCGETA
72b2cb61 4035_ACEOF
f11781c5
AK
4036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4038 ac_cv_prog_gcc_traditional=yes
ad6254c5 4039fi
f11781c5 4040rm -f conftest*
ad6254c5 4041
f11781c5 4042 fi
7a197a62 4043fi
f11781c5
AK
4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4045$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4046 if test $ac_cv_prog_gcc_traditional = yes; then
4047 CC="$CC -traditional"
4048 fi
ad6254c5
AK
4049fi
4050
f11781c5
AK
4051# Find a good install program. We prefer a C program (faster),
4052# so one script is as good as another. But avoid the broken or
4053# incompatible versions:
4054# SysV /etc/install, /usr/sbin/install
4055# SunOS /usr/etc/install
4056# IRIX /sbin/install
4057# AIX /bin/install
4058# AmigaOS /C/install, which installs bootblocks on floppy discs
4059# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4060# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4061# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4062# OS/2's system install, which has a completely different semantic
4063# ./install, which can be erroneously created by make from ./install.sh.
4064# Reject install programs that cannot install multiple files.
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4066$as_echo_n "checking for a BSD-compatible install... " >&6; }
4067if test -z "$INSTALL"; then
4068if test "${ac_cv_path_install+set}" = set; then :
4069 $as_echo_n "(cached) " >&6
ad6254c5 4070else
f11781c5
AK
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 # Account for people who put trailing slashes in PATH elements.
4077case $as_dir/ in #((
4078 ./ | .// | /[cC]/* | \
4079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4080 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4081 /usr/ucb/* ) ;;
4082 *)
4083 # OSF1 and SCO ODT 3.0 have their own names for install.
4084 # Don't use installbsd from OSF since it installs stuff as root
4085 # by default.
4086 for ac_prog in ginstall scoinst install; do
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4089 if test $ac_prog = install &&
4090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4091 # AIX install. It has an incompatible calling convention.
4092 :
4093 elif test $ac_prog = install &&
4094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4095 # program-specific install script used by HP pwplus--don't use.
4096 :
4097 else
4098 rm -rf conftest.one conftest.two conftest.dir
4099 echo one > conftest.one
4100 echo two > conftest.two
4101 mkdir conftest.dir
4102 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4103 test -s conftest.one && test -s conftest.two &&
4104 test -s conftest.dir/conftest.one &&
4105 test -s conftest.dir/conftest.two
4106 then
4107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4108 break 3
4109 fi
4110 fi
4111 fi
4112 done
4113 done
4114 ;;
4115esac
7a197a62 4116
f11781c5
AK
4117 done
4118IFS=$as_save_IFS
d0191583 4119
f11781c5 4120rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4121
4122fi
f11781c5
AK
4123 if test "${ac_cv_path_install+set}" = set; then
4124 INSTALL=$ac_cv_path_install
4125 else
4126 # As a last resort, use the slow shell script. Don't cache a
4127 # value for INSTALL within a source directory, because that will
4128 # break other packages using the cache if that directory is
4129 # removed, or if the value is a relative name.
4130 INSTALL=$ac_install_sh
4131 fi
7a197a62 4132fi
f11781c5
AK
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4134$as_echo "$INSTALL" >&6; }
7a197a62 4135
f11781c5
AK
4136# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4137# It thinks the first close brace ends the variable substitution.
4138test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4139
f11781c5 4140test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4141
f11781c5 4142test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4143
f11781c5
AK
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4145$as_echo_n "checking whether ln -s works... " >&6; }
4146LN_S=$as_ln_s
4147if test "$LN_S" = "ln -s"; then
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4149$as_echo "yes" >&6; }
4150else
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4152$as_echo "no, using $LN_S" >&6; }
15d91f5a 4153fi
ad6254c5 4154
f11781c5
AK
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4156$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4157set x ${MAKE-make}
4158ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4159if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4160 $as_echo_n "(cached) " >&6
d0191583 4161else
f11781c5
AK
4162 cat >conftest.make <<\_ACEOF
4163SHELL = /bin/sh
4164all:
4165 @echo '@@@%%%=$(MAKE)=@@@%%%'
4166_ACEOF
4167# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4168case `${MAKE-make} -f conftest.make 2>/dev/null` in
4169 *@@@%%%=?*=@@@%%%*)
4170 eval ac_cv_prog_make_${ac_make}_set=yes;;
4171 *)
4172 eval ac_cv_prog_make_${ac_make}_set=no;;
4173esac
4174rm -f conftest.make
4175fi
4176if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4178$as_echo "yes" >&6; }
4179 SET_MAKE=
4180else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182$as_echo "no" >&6; }
4183 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4184fi
4185
f11781c5
AK
4186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4187$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4188if test -z "$MKDIR_P"; then
4189 if test "${ac_cv_path_mkdir+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4194do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in mkdir gmkdir; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4200 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4201 'mkdir (GNU coreutils) '* | \
4202 'mkdir (coreutils) '* | \
4203 'mkdir (fileutils) '4.1*)
4204 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4205 break 3;;
4206 esac
4207 done
4208 done
4209 done
4210IFS=$as_save_IFS
d0191583 4211
f11781c5 4212fi
ad6254c5 4213
f11781c5
AK
4214 test -d ./--version && rmdir ./--version
4215 if test "${ac_cv_path_mkdir+set}" = set; then
4216 MKDIR_P="$ac_cv_path_mkdir -p"
4217 else
4218 # As a last resort, use the slow shell script. Don't cache a
4219 # value for MKDIR_P within a source directory, because that will
4220 # break other packages using the cache if that directory is
4221 # removed, or if the value is a relative name.
4222 MKDIR_P="$ac_install_sh -d"
4223 fi
ad6254c5 4224fi
f11781c5
AK
4225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4226$as_echo "$MKDIR_P" >&6; }
7a197a62 4227
f11781c5
AK
4228if test -n "$ac_tool_prefix"; then
4229 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4230set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232$as_echo_n "checking for $ac_word... " >&6; }
4233if test "${ac_cv_prog_RANLIB+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4235else
4236 if test -n "$RANLIB"; then
4237 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4249 fi
4250done
4251 done
4252IFS=$as_save_IFS
d0191583 4253
f11781c5
AK
4254fi
4255fi
4256RANLIB=$ac_cv_prog_RANLIB
4257if test -n "$RANLIB"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4259$as_echo "$RANLIB" >&6; }
d0191583 4260else
f11781c5
AK
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262$as_echo "no" >&6; }
ad6254c5 4263fi
ad6254c5 4264
8a2fc586 4265
d0191583 4266fi
f11781c5
AK
4267if test -z "$ac_cv_prog_RANLIB"; then
4268 ac_ct_RANLIB=$RANLIB
4269 # Extract the first word of "ranlib", so it can be a program name with args.
4270set dummy ranlib; ac_word=$2
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272$as_echo_n "checking for $ac_word... " >&6; }
4273if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4275else
4276 if test -n "$ac_ct_RANLIB"; then
4277 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4278else
4279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280for as_dir in $PATH
4281do
4282 IFS=$as_save_IFS
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_ac_ct_RANLIB="ranlib"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 break 2
4289 fi
4290done
4291 done
4292IFS=$as_save_IFS
8a2fc586 4293
f11781c5
AK
4294fi
4295fi
4296ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4297if test -n "$ac_ct_RANLIB"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4299$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4300else
f11781c5
AK
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302$as_echo "no" >&6; }
8fea97b7
ZK
4303fi
4304
f11781c5
AK
4305 if test "x$ac_ct_RANLIB" = x; then
4306 RANLIB=":"
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309yes:)
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312ac_tool_warned=yes ;;
8fea97b7 4313esac
f11781c5
AK
4314 RANLIB=$ac_ct_RANLIB
4315 fi
d0191583 4316else
f11781c5 4317 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4318fi
8a2fc586 4319
f11781c5
AK
4320# Extract the first word of "cflow", so it can be a program name with args.
4321set dummy cflow; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
4324if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
4326else
4327 case $CFLOW_CMD in
4328 [\\/]* | ?:[\\/]*)
4329 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4330 ;;
4331 *)
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4342 fi
4343done
4344 done
4345IFS=$as_save_IFS
8a2fc586 4346
f11781c5
AK
4347 ;;
4348esac
ad6254c5 4349fi
f11781c5
AK
4350CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4351if test -n "$CFLOW_CMD"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4353$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4354else
f11781c5
AK
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356$as_echo "no" >&6; }
37ddf259
AK
4357fi
4358
e2997b73 4359
f11781c5
AK
4360# Extract the first word of "cscope", so it can be a program name with args.
4361set dummy cscope; ac_word=$2
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4363$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4364if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4365 $as_echo_n "(cached) " >&6
4366else
f11781c5 4367 case $CSCOPE_CMD in
e2997b73 4368 [\\/]* | ?:[\\/]*)
f11781c5 4369 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4370 ;;
4371 *)
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373for as_dir in $PATH
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
f11781c5 4377 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4379 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4381 break 2
4382 fi
4383done
f11781c5 4384 done
e2997b73
AK
4385IFS=$as_save_IFS
4386
4387 ;;
4388esac
4389fi
f11781c5
AK
4390CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4391if test -n "$CSCOPE_CMD"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4393$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4394else
f11781c5 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4396$as_echo "no" >&6; }
4397fi
f11781c5
AK
4398
4399
4400
4401################################################################################
4402ac_header_dirent=no
4403for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4404 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4406$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4407if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4408 $as_echo_n "(cached) " >&6
4409else
4410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4411/* end confdefs.h. */
4412#include <sys/types.h>
4413#include <$ac_hdr>
4414
4415int
4416main ()
4417{
4418if ((DIR *) 0)
4419return 0;
4420 ;
4421 return 0;
4422}
4423_ACEOF
4424if ac_fn_c_try_compile "$LINENO"; then :
4425 eval "$as_ac_Header=yes"
4426else
4427 eval "$as_ac_Header=no"
4428fi
4429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430fi
4431eval ac_res=\$$as_ac_Header
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4433$as_echo "$ac_res" >&6; }
4434if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4435 cat >>confdefs.h <<_ACEOF
4436#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4437_ACEOF
4438
4439ac_header_dirent=$ac_hdr; break
4440fi
4441
4442done
4443# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4444if test $ac_header_dirent = dirent.h; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4446$as_echo_n "checking for library containing opendir... " >&6; }
4447if test "${ac_cv_search_opendir+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449else
4450 ac_func_search_save_LIBS=$LIBS
4451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452/* end confdefs.h. */
4453
4454/* Override any GCC internal prototype to avoid an error.
4455 Use char because int might match the return type of a GCC
4456 builtin and then its argument prototype would still apply. */
4457#ifdef __cplusplus
4458extern "C"
4459#endif
4460char opendir ();
4461int
4462main ()
4463{
4464return opendir ();
4465 ;
4466 return 0;
4467}
4468_ACEOF
4469for ac_lib in '' dir; do
4470 if test -z "$ac_lib"; then
4471 ac_res="none required"
4472 else
4473 ac_res=-l$ac_lib
4474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4475 fi
4476 if ac_fn_c_try_link "$LINENO"; then :
4477 ac_cv_search_opendir=$ac_res
4478fi
4479rm -f core conftest.err conftest.$ac_objext \
4480 conftest$ac_exeext
4481 if test "${ac_cv_search_opendir+set}" = set; then :
4482 break
4483fi
4484done
4485if test "${ac_cv_search_opendir+set}" = set; then :
4486
4487else
4488 ac_cv_search_opendir=no
4489fi
4490rm conftest.$ac_ext
4491LIBS=$ac_func_search_save_LIBS
4492fi
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4494$as_echo "$ac_cv_search_opendir" >&6; }
4495ac_res=$ac_cv_search_opendir
4496if test "$ac_res" != no; then :
4497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4498
4499fi
f11781c5
AK
4500
4501else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4503$as_echo_n "checking for library containing opendir... " >&6; }
4504if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4505 $as_echo_n "(cached) " >&6
4506else
f11781c5
AK
4507 ac_func_search_save_LIBS=$LIBS
4508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h. */
e2997b73 4510
f11781c5
AK
4511/* Override any GCC internal prototype to avoid an error.
4512 Use char because int might match the return type of a GCC
4513 builtin and then its argument prototype would still apply. */
4514#ifdef __cplusplus
4515extern "C"
4516#endif
4517char opendir ();
4518int
4519main ()
4520{
4521return opendir ();
4522 ;
4523 return 0;
4524}
4525_ACEOF
4526for ac_lib in '' x; do
4527 if test -z "$ac_lib"; then
4528 ac_res="none required"
4529 else
4530 ac_res=-l$ac_lib
4531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4532 fi
4533 if ac_fn_c_try_link "$LINENO"; then :
4534 ac_cv_search_opendir=$ac_res
e2997b73 4535fi
f11781c5
AK
4536rm -f core conftest.err conftest.$ac_objext \
4537 conftest$ac_exeext
4538 if test "${ac_cv_search_opendir+set}" = set; then :
4539 break
e2997b73 4540fi
f11781c5
AK
4541done
4542if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4543
e2997b73 4544else
f11781c5
AK
4545 ac_cv_search_opendir=no
4546fi
4547rm conftest.$ac_ext
4548LIBS=$ac_func_search_save_LIBS
e2997b73 4549fi
f11781c5
AK
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4551$as_echo "$ac_cv_search_opendir" >&6; }
4552ac_res=$ac_cv_search_opendir
4553if test "$ac_res" != no; then :
4554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4555
4556fi
8c4e8a18 4557
e2997b73
AK
4558fi
4559
f11781c5
AK
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4561$as_echo_n "checking for ANSI C header files... " >&6; }
4562if test "${ac_cv_header_stdc+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566/* end confdefs.h. */
4567#include <stdlib.h>
4568#include <stdarg.h>
4569#include <string.h>
4570#include <float.h>
e2997b73 4571
f11781c5
AK
4572int
4573main ()
4574{
4575
4576 ;
4577 return 0;
4578}
4579_ACEOF
4580if ac_fn_c_try_compile "$LINENO"; then :
4581 ac_cv_header_stdc=yes
e2997b73 4582else
f11781c5 4583 ac_cv_header_stdc=no
e2997b73 4584fi
f11781c5
AK
4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586
4587if test $ac_cv_header_stdc = yes; then
4588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h. */
4591#include <string.h>
4592
4593_ACEOF
4594if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4595 $EGREP "memchr" >/dev/null 2>&1; then :
4596
e2997b73 4597else
f11781c5 4598 ac_cv_header_stdc=no
e2997b73 4599fi
f11781c5 4600rm -f conftest*
e2997b73 4601
f11781c5 4602fi
e2997b73 4603
f11781c5
AK
4604if test $ac_cv_header_stdc = yes; then
4605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607/* end confdefs.h. */
4608#include <stdlib.h>
e2997b73 4609
f11781c5
AK
4610_ACEOF
4611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4612 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4613
e2997b73 4614else
f11781c5 4615 ac_cv_header_stdc=no
e2997b73 4616fi
f11781c5 4617rm -f conftest*
e2997b73 4618
e2997b73 4619fi
90c80887 4620
f11781c5
AK
4621if test $ac_cv_header_stdc = yes; then
4622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4623 if test "$cross_compiling" = yes; then :
4624 :
4625else
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h. */
4628#include <ctype.h>
4629#include <stdlib.h>
4630#if ((' ' & 0x0FF) == 0x020)
4631# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4632# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4633#else
4634# define ISLOWER(c) \
4635 (('a' <= (c) && (c) <= 'i') \
4636 || ('j' <= (c) && (c) <= 'r') \
4637 || ('s' <= (c) && (c) <= 'z'))
4638# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4639#endif
4640
4641#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4642int
4643main ()
4644{
4645 int i;
4646 for (i = 0; i < 256; i++)
4647 if (XOR (islower (i), ISLOWER (i))
4648 || toupper (i) != TOUPPER (i))
4649 return 2;
4650 return 0;
4651}
4652_ACEOF
4653if ac_fn_c_try_run "$LINENO"; then :
90c80887 4654
90c80887 4655else
f11781c5 4656 ac_cv_header_stdc=no
90c80887 4657fi
f11781c5
AK
4658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4659 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4660fi
90c80887 4661
90c80887 4662fi
90c80887 4663fi
f11781c5
AK
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4665$as_echo "$ac_cv_header_stdc" >&6; }
4666if test $ac_cv_header_stdc = yes; then
90c80887 4667
f11781c5 4668$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4669
90c80887 4670fi
f11781c5
AK
4671
4672# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4673for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4674 inttypes.h stdint.h unistd.h
4675do :
4676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4677ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4678"
4679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4680 cat >>confdefs.h <<_ACEOF
4681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4682_ACEOF
4683
90c80887 4684fi
f11781c5
AK
4685
4686done
4687
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4690$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4691if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4692 $as_echo_n "(cached) " >&6
4693else
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695/* end confdefs.h. */
4696#include <sys/types.h>
4697int
4698main ()
4699{
4700return makedev(0, 0);
4701 ;
4702 return 0;
4703}
4704_ACEOF
4705if ac_fn_c_try_link "$LINENO"; then :
4706 ac_cv_header_sys_types_h_makedev=yes
4707else
4708 ac_cv_header_sys_types_h_makedev=no
90c80887 4709fi
f11781c5
AK
4710rm -f core conftest.err conftest.$ac_objext \
4711 conftest$ac_exeext conftest.$ac_ext
4712
90c80887 4713fi
f11781c5
AK
4714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4715$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4716
4717if test $ac_cv_header_sys_types_h_makedev = no; then
4718ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4719if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4720
4721$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4722
a946372e 4723fi
e2997b73 4724
e2997b73 4725
a946372e 4726
f11781c5
AK
4727 if test $ac_cv_header_sys_mkdev_h = no; then
4728 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4729if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4730
4731$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4732
e2997b73 4733fi
a946372e 4734
a946372e 4735
f11781c5
AK
4736 fi
4737fi
4738
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4740$as_echo_n "checking for ANSI C header files... " >&6; }
4741if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4742 $as_echo_n "(cached) " >&6
4743else
f11781c5 4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4745/* end confdefs.h. */
f11781c5
AK
4746#include <stdlib.h>
4747#include <stdarg.h>
4748#include <string.h>
4749#include <float.h>
a946372e 4750
a946372e
AK
4751int
4752main ()
4753{
f11781c5 4754
a946372e
AK
4755 ;
4756 return 0;
4757}
4758_ACEOF
f11781c5
AK
4759if ac_fn_c_try_compile "$LINENO"; then :
4760 ac_cv_header_stdc=yes
e2997b73 4761else
f11781c5
AK
4762 ac_cv_header_stdc=no
4763fi
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765
4766if test $ac_cv_header_stdc = yes; then
4767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769/* end confdefs.h. */
4770#include <string.h>
4771
4772_ACEOF
4773if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4774 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4775
f11781c5
AK
4776else
4777 ac_cv_header_stdc=no
a946372e 4778fi
f11781c5 4779rm -f conftest*
e2997b73 4780
a946372e 4781fi
e2997b73 4782
f11781c5
AK
4783if test $ac_cv_header_stdc = yes; then
4784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787#include <stdlib.h>
4788
4789_ACEOF
4790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4791 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4792
e2997b73 4793else
f11781c5 4794 ac_cv_header_stdc=no
e2997b73 4795fi
f11781c5 4796rm -f conftest*
e2997b73 4797
f11781c5 4798fi
a946372e 4799
f11781c5
AK
4800if test $ac_cv_header_stdc = yes; then
4801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4802 if test "$cross_compiling" = yes; then :
4803 :
4804else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h. */
4807#include <ctype.h>
4808#include <stdlib.h>
4809#if ((' ' & 0x0FF) == 0x020)
4810# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4811# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4812#else
4813# define ISLOWER(c) \
4814 (('a' <= (c) && (c) <= 'i') \
4815 || ('j' <= (c) && (c) <= 'r') \
4816 || ('s' <= (c) && (c) <= 'z'))
4817# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4818#endif
e2997b73 4819
f11781c5
AK
4820#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4821int
4822main ()
4823{
4824 int i;
4825 for (i = 0; i < 256; i++)
4826 if (XOR (islower (i), ISLOWER (i))
4827 || toupper (i) != TOUPPER (i))
4828 return 2;
4829 return 0;
4830}
4831_ACEOF
4832if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4833
e2997b73 4834else
f11781c5 4835 ac_cv_header_stdc=no
e2997b73 4836fi
f11781c5
AK
4837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4838 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4839fi
f11781c5 4840
e2997b73 4841fi
e2997b73 4842fi
f11781c5
AK
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4844$as_echo "$ac_cv_header_stdc" >&6; }
4845if test $ac_cv_header_stdc = yes; then
e2997b73 4846
f11781c5 4847$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4848
f11781c5 4849fi
e2997b73 4850
f11781c5
AK
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4852$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4853if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h. */
4858#include <sys/types.h>
4859#include <sys/wait.h>
4860#ifndef WEXITSTATUS
4861# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4862#endif
4863#ifndef WIFEXITED
4864# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4865#endif
e2997b73 4866
f11781c5
AK
4867int
4868main ()
4869{
4870 int s;
4871 wait (&s);
4872 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4873 ;
4874 return 0;
4875}
4876_ACEOF
4877if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_header_sys_wait_h=yes
e2997b73 4879else
f11781c5 4880 ac_cv_header_sys_wait_h=no
e2997b73 4881fi
f11781c5
AK
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4885$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4886if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4887
f11781c5 4888$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4889
d0191583 4890fi
f11781c5
AK
4891
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4893$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4894if test "${ac_cv_header_time+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
fc54be10 4896else
f11781c5 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4898/* end confdefs.h. */
f11781c5
AK
4899#include <sys/types.h>
4900#include <sys/time.h>
4901#include <time.h>
4902
4903int
4904main ()
4905{
4906if ((struct tm *) 0)
4907return 0;
4908 ;
4909 return 0;
4910}
a946372e 4911_ACEOF
f11781c5
AK
4912if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_header_time=yes
a946372e 4914else
f11781c5
AK
4915 ac_cv_header_time=no
4916fi
4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4918fi
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4920$as_echo "$ac_cv_header_time" >&6; }
4921if test $ac_cv_header_time = yes; then
4922
4923$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4924
4925fi
4926
4927
4928for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4929 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4930 sys/wait.h time.h
4931do :
4932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4933ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4934if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4935 cat >>confdefs.h <<_ACEOF
4936#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4937_ACEOF
d0191583 4938
f11781c5
AK
4939else
4940 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4941fi
4942
f11781c5 4943done
fddafd51 4944
f11781c5
AK
4945
4946case "$host_os" in
4947 linux*)
4948 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4949do :
4950 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4951ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4952if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4953 cat >>confdefs.h <<_ACEOF
4954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4955_ACEOF
a946372e 4956
f11781c5
AK
4957else
4958 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4959fi
4960
f11781c5
AK
4961done
4962 ;;
4963 darwin*)
4964 for ac_header in machine/endian.h sys/disk.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
4971_ACEOF
a946372e 4972
f11781c5
AK
4973else
4974 as_fn_error $? "bailing out" "$LINENO" 5
4975fi
a946372e 4976
f11781c5
AK
4977done
4978 ;;
a946372e 4979esac
f11781c5
AK
4980
4981for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4982 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4983 sys/types.h unistd.h
4984do :
4985 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4986ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4987if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4988 cat >>confdefs.h <<_ACEOF
4989#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4990_ACEOF
4991
a946372e 4992else
f11781c5 4993 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4994fi
a946372e 4995
f11781c5
AK
4996done
4997
4998for ac_header in termios.h sys/statvfs.h
4999do :
5000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5001ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5003 cat >>confdefs.h <<_ACEOF
5004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5005_ACEOF
5006
a946372e
AK
5007fi
5008
5009done
5010
a946372e 5011
f11781c5
AK
5012################################################################################
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5014$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5015if test "${ac_cv_c_const+set}" = set; then :
a946372e 5016 $as_echo_n "(cached) " >&6
a946372e 5017else
f11781c5 5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5019/* end confdefs.h. */
a946372e 5020
f11781c5
AK
5021int
5022main ()
5023{
5024/* FIXME: Include the comments suggested by Paul. */
5025#ifndef __cplusplus
5026 /* Ultrix mips cc rejects this. */
5027 typedef int charset[2];
5028 const charset cs;
5029 /* SunOS 4.1.1 cc rejects this. */
5030 char const *const *pcpcc;
5031 char **ppc;
5032 /* NEC SVR4.0.2 mips cc rejects this. */
5033 struct point {int x, y;};
5034 static struct point const zero = {0,0};
5035 /* AIX XL C 1.02.0.0 rejects this.
5036 It does not let you subtract one const X* pointer from another in
5037 an arm of an if-expression whose if-part is not a constant
5038 expression */
5039 const char *g = "string";
5040 pcpcc = &g + (g ? g-g : 0);
5041 /* HPUX 7.0 cc rejects these. */
5042 ++pcpcc;
5043 ppc = (char**) pcpcc;
5044 pcpcc = (char const *const *) ppc;
5045 { /* SCO 3.2v4 cc rejects this. */
5046 char *t;
5047 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5048
f11781c5
AK
5049 *t++ = 0;
5050 if (s) return 0;
5051 }
5052 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5053 int x[] = {25, 17};
5054 const int *foo = &x[0];
5055 ++foo;
5056 }
5057 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5058 typedef const int *iptr;
5059 iptr p = 0;
5060 ++p;
5061 }
5062 { /* AIX XL C 1.02.0.0 rejects this saying
5063 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5064 struct s { int j; const int *ap[3]; };
5065 struct s *b; b->j = 5;
5066 }
5067 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5068 const int foo = 10;
5069 if (!foo) return 0;
5070 }
5071 return !cs[0] && !zero.x;
5072#endif
a946372e 5073
f11781c5
AK
5074 ;
5075 return 0;
5076}
a946372e 5077_ACEOF
f11781c5
AK
5078if ac_fn_c_try_compile "$LINENO"; then :
5079 ac_cv_c_const=yes
a946372e 5080else
f11781c5
AK
5081 ac_cv_c_const=no
5082fi
5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5084fi
f11781c5
AK
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5086$as_echo "$ac_cv_c_const" >&6; }
5087if test $ac_cv_c_const = no; then
a946372e 5088
f11781c5 5089$as_echo "#define const /**/" >>confdefs.h
a946372e 5090
f11781c5 5091fi
a946372e 5092
f11781c5
AK
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5094$as_echo_n "checking for inline... " >&6; }
5095if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5096 $as_echo_n "(cached) " >&6
5097else
f11781c5
AK
5098 ac_cv_c_inline=no
5099for ac_kw in inline __inline__ __inline; do
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101/* end confdefs.h. */
5102#ifndef __cplusplus
5103typedef int foo_t;
5104static $ac_kw foo_t static_foo () {return 0; }
5105$ac_kw foo_t foo () {return 0; }
5106#endif
5107
5108_ACEOF
5109if ac_fn_c_try_compile "$LINENO"; then :
5110 ac_cv_c_inline=$ac_kw
a946372e 5111fi
f11781c5
AK
5112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113 test "$ac_cv_c_inline" != no && break
5114done
a946372e
AK
5115
5116fi
f11781c5
AK
5117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5118$as_echo "$ac_cv_c_inline" >&6; }
5119
5120case $ac_cv_c_inline in
5121 inline | yes) ;;
5122 *)
5123 case $ac_cv_c_inline in
5124 no) ac_val=;;
5125 *) ac_val=$ac_cv_c_inline;;
5126 esac
5127 cat >>confdefs.h <<_ACEOF
5128#ifndef __cplusplus
5129#define inline $ac_val
5130#endif
5131_ACEOF
5132 ;;
5133esac
5134
5135ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5136if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5137
5138cat >>confdefs.h <<_ACEOF
5139#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5140_ACEOF
5141
f11781c5 5142
a946372e
AK
5143fi
5144
f11781c5
AK
5145ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5146if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5147
a946372e 5148else
f11781c5
AK
5149
5150cat >>confdefs.h <<_ACEOF
5151#define off_t long int
5152_ACEOF
5153
a946372e
AK
5154fi
5155
f11781c5
AK
5156ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5157if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5158
a946372e 5159else
f11781c5
AK
5160
5161cat >>confdefs.h <<_ACEOF
5162#define pid_t int
5163_ACEOF
5164
5165fi
5166
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5168$as_echo_n "checking return type of signal handlers... " >&6; }
5169if test "${ac_cv_type_signal+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
a946372e 5171else
f11781c5
AK
5172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h. */
5174#include <sys/types.h>
5175#include <signal.h>
5176
5177int
5178main ()
5179{
5180return *(signal (0, 0)) (0) == 1;
5181 ;
5182 return 0;
5183}
5184_ACEOF
5185if ac_fn_c_try_compile "$LINENO"; then :
5186 ac_cv_type_signal=int
5187else
5188 ac_cv_type_signal=void
a946372e 5189fi
f11781c5 5190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5191fi
f11781c5
AK
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5193$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5194
f11781c5
AK
5195cat >>confdefs.h <<_ACEOF
5196#define RETSIGTYPE $ac_cv_type_signal
5197_ACEOF
a946372e
AK
5198
5199
f11781c5
AK
5200ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5201if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5202
a946372e 5203else
a946372e 5204
f11781c5
AK
5205cat >>confdefs.h <<_ACEOF
5206#define size_t unsigned int
5207_ACEOF
a946372e 5208
a946372e 5209fi
f11781c5
AK
5210
5211ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5212if test "x$ac_cv_type_mode_t" = x""yes; then :
5213
a946372e 5214else
f11781c5
AK
5215
5216cat >>confdefs.h <<_ACEOF
5217#define mode_t int
a946372e 5218_ACEOF
a946372e 5219
a946372e
AK
5220fi
5221
f11781c5
AK
5222ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5223case $ac_cv_c_int8_t in #(
5224 no|yes) ;; #(
5225 *)
a946372e 5226
f11781c5
AK
5227cat >>confdefs.h <<_ACEOF
5228#define int8_t $ac_cv_c_int8_t
a946372e 5229_ACEOF
f11781c5 5230;;
a946372e 5231esac
a946372e 5232
f11781c5
AK
5233ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5234case $ac_cv_c_int16_t in #(
5235 no|yes) ;; #(
5236 *)
a946372e 5237
f11781c5
AK
5238cat >>confdefs.h <<_ACEOF
5239#define int16_t $ac_cv_c_int16_t
5240_ACEOF
5241;;
5242esac
a946372e 5243
f11781c5
AK
5244ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5245case $ac_cv_c_int32_t in #(
5246 no|yes) ;; #(
5247 *)
a946372e 5248
f11781c5
AK
5249cat >>confdefs.h <<_ACEOF
5250#define int32_t $ac_cv_c_int32_t
5251_ACEOF
5252;;
a946372e 5253esac
a946372e 5254
f11781c5
AK
5255ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5256case $ac_cv_c_int64_t in #(
5257 no|yes) ;; #(
5258 *)
5259
5260cat >>confdefs.h <<_ACEOF
5261#define int64_t $ac_cv_c_int64_t
a946372e 5262_ACEOF
f11781c5
AK
5263;;
5264esac
5265
5266ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5267if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5268
5269else
a946372e 5270
f11781c5
AK
5271cat >>confdefs.h <<_ACEOF
5272#define ssize_t int
5273_ACEOF
a946372e 5274
f11781c5 5275fi
a946372e 5276
f11781c5
AK
5277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5278$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5279if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5280 $as_echo_n "(cached) " >&6
a946372e 5281else
f11781c5 5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5283/* end confdefs.h. */
f11781c5
AK
5284#include <sys/types.h>
5285
a946372e 5286_ACEOF
f11781c5
AK
5287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5288 $EGREP "uid_t" >/dev/null 2>&1; then :
5289 ac_cv_type_uid_t=yes
a946372e 5290else
f11781c5
AK
5291 ac_cv_type_uid_t=no
5292fi
5293rm -f conftest*
a946372e 5294
a946372e 5295fi
f11781c5
AK
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5297$as_echo "$ac_cv_type_uid_t" >&6; }
5298if test $ac_cv_type_uid_t = no; then
a946372e 5299
f11781c5 5300$as_echo "#define uid_t int" >>confdefs.h
a946372e 5301
f11781c5
AK
5302
5303$as_echo "#define gid_t int" >>confdefs.h
5304
5305fi
5306
5307ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5308case $ac_cv_c_uint8_t in #(
5309 no|yes) ;; #(
5310 *)
5311
5312$as_echo "#define _UINT8_T 1" >>confdefs.h
5313
5314
5315cat >>confdefs.h <<_ACEOF
5316#define uint8_t $ac_cv_c_uint8_t
a946372e 5317_ACEOF
f11781c5
AK
5318;;
5319 esac
5320
5321ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5322case $ac_cv_c_uint16_t in #(
5323 no|yes) ;; #(
5324 *)
5325
5326
5327cat >>confdefs.h <<_ACEOF
5328#define uint16_t $ac_cv_c_uint16_t
a946372e 5329_ACEOF
f11781c5
AK
5330;;
5331 esac
a946372e 5332
f11781c5
AK
5333ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5334case $ac_cv_c_uint32_t in #(
5335 no|yes) ;; #(
5336 *)
a946372e 5337
f11781c5 5338$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5339
a946372e 5340
f11781c5
AK
5341cat >>confdefs.h <<_ACEOF
5342#define uint32_t $ac_cv_c_uint32_t
5343_ACEOF
5344;;
5345 esac
5346
5347ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5348case $ac_cv_c_uint64_t in #(
5349 no|yes) ;; #(
5350 *)
5351
5352$as_echo "#define _UINT64_T 1" >>confdefs.h
5353
5354
5355cat >>confdefs.h <<_ACEOF
5356#define uint64_t $ac_cv_c_uint64_t
5357_ACEOF
5358;;
5359 esac
5360
5361ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5362if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5363
5364cat >>confdefs.h <<_ACEOF
5365#define HAVE_STRUCT_STAT_ST_RDEV 1
5366_ACEOF
5367
5368
5369fi
5370
5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5372$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5373if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5374 $as_echo_n "(cached) " >&6
5375else
f11781c5
AK
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h. */
5378#include <sys/types.h>
5379#include <time.h>
5380
5381int
5382main ()
5383{
5384struct tm tm;
5385 int *p = &tm.tm_sec;
5386 return !p;
5387 ;
5388 return 0;
5389}
5390_ACEOF
5391if ac_fn_c_try_compile "$LINENO"; then :
5392 ac_cv_struct_tm=time.h
5393else
5394 ac_cv_struct_tm=sys/time.h
a946372e 5395fi
f11781c5
AK
5396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397fi
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5399$as_echo "$ac_cv_struct_tm" >&6; }
5400if test $ac_cv_struct_tm = sys/time.h; then
5401
5402$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5403
5404fi
f11781c5
AK
5405
5406
5407################################################################################
5408for ac_func in ftruncate gethostname getpagesize \
5409 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5410 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5411 strstr strtol strtoul uname
5412do :
5413 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5414ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5415if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5416 cat >>confdefs.h <<_ACEOF
f11781c5 5417#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5418_ACEOF
5419
5420else
f11781c5 5421 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5422fi
a946372e
AK
5423done
5424
f11781c5
AK
5425for ac_func in siginterrupt
5426do :
5427 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5428if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5429 cat >>confdefs.h <<_ACEOF
5430#define HAVE_SIGINTERRUPT 1
5431_ACEOF
a946372e 5432
f11781c5
AK
5433fi
5434done
a946372e 5435
f11781c5
AK
5436# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5437# for constant arguments. Useless!
5438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5439$as_echo_n "checking for working alloca.h... " >&6; }
5440if test "${ac_cv_working_alloca_h+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
a946372e 5442else
f11781c5
AK
5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h. */
5445#include <alloca.h>
5446int
5447main ()
5448{
5449char *p = (char *) alloca (2 * sizeof (int));
5450 if (p) return 0;
5451 ;
5452 return 0;
5453}
5454_ACEOF
5455if ac_fn_c_try_link "$LINENO"; then :
5456 ac_cv_working_alloca_h=yes
a946372e 5457else
f11781c5 5458 ac_cv_working_alloca_h=no
a946372e 5459fi
f11781c5
AK
5460rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext conftest.$ac_ext
a946372e 5462fi
f11781c5
AK
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5464$as_echo "$ac_cv_working_alloca_h" >&6; }
5465if test $ac_cv_working_alloca_h = yes; then
a946372e 5466
f11781c5 5467$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5468
a946372e 5469fi
a946372e 5470
f11781c5
AK
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5472$as_echo_n "checking for alloca... " >&6; }
5473if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5474 $as_echo_n "(cached) " >&6
a946372e 5475else
f11781c5 5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5477/* end confdefs.h. */
f11781c5
AK
5478#ifdef __GNUC__
5479# define alloca __builtin_alloca
5480#else
5481# ifdef _MSC_VER
5482# include <malloc.h>
5483# define alloca _alloca
5484# else
5485# ifdef HAVE_ALLOCA_H
5486# include <alloca.h>
5487# else
5488# ifdef _AIX
5489 #pragma alloca
5490# else
5491# ifndef alloca /* predefined by HP cc +Olibcalls */
5492char *alloca ();
5493# endif
5494# endif
5495# endif
5496# endif
5497#endif
a946372e 5498
f11781c5
AK
5499int
5500main ()
5501{
5502char *p = (char *) alloca (1);
5503 if (p) return 0;
5504 ;
5505 return 0;
5506}
a946372e 5507_ACEOF
f11781c5
AK
5508if ac_fn_c_try_link "$LINENO"; then :
5509 ac_cv_func_alloca_works=yes
a946372e 5510else
f11781c5 5511 ac_cv_func_alloca_works=no
a946372e 5512fi
f11781c5
AK
5513rm -f core conftest.err conftest.$ac_objext \
5514 conftest$ac_exeext conftest.$ac_ext
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5517$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5518
f11781c5 5519if test $ac_cv_func_alloca_works = yes; then
a946372e 5520
f11781c5 5521$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5522
a946372e 5523else
f11781c5
AK
5524 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5525# that cause trouble. Some versions do not even contain alloca or
5526# contain a buggy version. If you still want to use their alloca,
5527# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5528
f11781c5 5529ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5530
f11781c5 5531$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5532
a946372e 5533
f11781c5
AK
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5535$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5536if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5537 $as_echo_n "(cached) " >&6
a946372e 5538else
f11781c5 5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5540/* end confdefs.h. */
f11781c5
AK
5541#if defined CRAY && ! defined CRAY2
5542webecray
5543#else
5544wenotbecray
5545#endif
5546
a946372e 5547_ACEOF
f11781c5
AK
5548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5549 $EGREP "webecray" >/dev/null 2>&1; then :
5550 ac_cv_os_cray=yes
a946372e 5551else
f11781c5 5552 ac_cv_os_cray=no
a946372e 5553fi
f11781c5 5554rm -f conftest*
a946372e 5555
f11781c5
AK
5556fi
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5558$as_echo "$ac_cv_os_cray" >&6; }
5559if test $ac_cv_os_cray = yes; then
5560 for ac_func in _getb67 GETB67 getb67; do
5561 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5562ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5563if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5564
f11781c5
AK
5565cat >>confdefs.h <<_ACEOF
5566#define CRAY_STACKSEG_END $ac_func
a946372e 5567_ACEOF
a946372e 5568
f11781c5 5569 break
a946372e
AK
5570fi
5571
f11781c5
AK
5572 done
5573fi
a946372e 5574
f11781c5
AK
5575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5576$as_echo_n "checking stack direction for C alloca... " >&6; }
5577if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5578 $as_echo_n "(cached) " >&6
5579else
f11781c5
AK
5580 if test "$cross_compiling" = yes; then :
5581 ac_cv_c_stack_direction=0
5582else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h. */
5585$ac_includes_default
5586int
5587find_stack_direction ()
5588{
5589 static char *addr = 0;
5590 auto char dummy;
5591 if (addr == 0)
5592 {
5593 addr = &dummy;
5594 return find_stack_direction ();
5595 }
5596 else
5597 return (&dummy > addr) ? 1 : -1;
5598}
5599
5600int
5601main ()
5602{
5603 return find_stack_direction () < 0;
5604}
5605_ACEOF
5606if ac_fn_c_try_run "$LINENO"; then :
5607 ac_cv_c_stack_direction=1
5608else
5609 ac_cv_c_stack_direction=-1
5610fi
5611rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5612 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5613fi
a946372e
AK
5614
5615fi
f11781c5
AK
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5617$as_echo "$ac_cv_c_stack_direction" >&6; }
5618cat >>confdefs.h <<_ACEOF
5619#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5620_ACEOF
5621
f11781c5 5622
a946372e
AK
5623fi
5624
f11781c5
AK
5625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5626$as_echo_n "checking whether closedir returns void... " >&6; }
5627if test "${ac_cv_func_closedir_void+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5629else
5630 if test "$cross_compiling" = yes; then :
5631 ac_cv_func_closedir_void=yes
5632else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635$ac_includes_default
5636#include <$ac_header_dirent>
5637#ifndef __cplusplus
5638int closedir ();
5639#endif
a946372e 5640
f11781c5
AK
5641int
5642main ()
5643{
5644return closedir (opendir (".")) != 0;
5645 ;
5646 return 0;
5647}
5648_ACEOF
5649if ac_fn_c_try_run "$LINENO"; then :
5650 ac_cv_func_closedir_void=no
a946372e 5651else
f11781c5 5652 ac_cv_func_closedir_void=yes
a946372e 5653fi
f11781c5
AK
5654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5655 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5656fi
5657
f11781c5
AK
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5660$as_echo "$ac_cv_func_closedir_void" >&6; }
5661if test $ac_cv_func_closedir_void = yes; then
a946372e 5662
f11781c5 5663$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5664
a946372e
AK
5665fi
5666
f11781c5
AK
5667for ac_header in unistd.h
5668do :
5669 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5670if test "x$ac_cv_header_unistd_h" = x""yes; then :
5671 cat >>confdefs.h <<_ACEOF
5672#define HAVE_UNISTD_H 1
5673_ACEOF
a946372e 5674
f11781c5 5675fi
a946372e 5676
f11781c5 5677done
a946372e 5678
f11781c5
AK
5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5680$as_echo_n "checking for working chown... " >&6; }
5681if test "${ac_cv_func_chown_works+set}" = set; then :
5682 $as_echo_n "(cached) " >&6
a946372e 5683else
f11781c5
AK
5684 if test "$cross_compiling" = yes; then :
5685 ac_cv_func_chown_works=no
a946372e 5686else
f11781c5
AK
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h. */
5689$ac_includes_default
5690#include <fcntl.h>
a946372e 5691
f11781c5
AK
5692int
5693main ()
5694{
5695 char *f = "conftest.chown";
5696 struct stat before, after;
a946372e 5697
f11781c5
AK
5698 if (creat (f, 0600) < 0)
5699 return 1;
5700 if (stat (f, &before) < 0)
5701 return 1;
5702 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5703 return 1;
5704 if (stat (f, &after) < 0)
5705 return 1;
5706 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5707
f11781c5
AK
5708 ;
5709 return 0;
5710}
5711_ACEOF
5712if ac_fn_c_try_run "$LINENO"; then :
5713 ac_cv_func_chown_works=yes
a946372e 5714else
f11781c5 5715 ac_cv_func_chown_works=no
a946372e 5716fi
f11781c5
AK
5717rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5718 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5719fi
5720
f11781c5 5721rm -f conftest.chown
a946372e 5722
f11781c5
AK
5723fi
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5725$as_echo "$ac_cv_func_chown_works" >&6; }
5726if test $ac_cv_func_chown_works = yes; then
a946372e 5727
f11781c5 5728$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5729
a946372e 5730fi
a946372e 5731
f11781c5
AK
5732for ac_header in vfork.h
5733do :
5734 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5735if test "x$ac_cv_header_vfork_h" = x""yes; then :
5736 cat >>confdefs.h <<_ACEOF
5737#define HAVE_VFORK_H 1
5738_ACEOF
a946372e 5739
f11781c5 5740fi
a946372e 5741
f11781c5 5742done
a946372e 5743
f11781c5
AK
5744for ac_func in fork vfork
5745do :
5746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5747ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5748if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5749 cat >>confdefs.h <<_ACEOF
5750#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5751_ACEOF
a946372e 5752
f11781c5
AK
5753fi
5754done
a946372e 5755
f11781c5
AK
5756if test "x$ac_cv_func_fork" = xyes; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5758$as_echo_n "checking for working fork... " >&6; }
5759if test "${ac_cv_func_fork_works+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761else
5762 if test "$cross_compiling" = yes; then :
5763 ac_cv_func_fork_works=cross
5764else
5765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5766/* end confdefs.h. */
5767$ac_includes_default
5768int
5769main ()
5770{
a946372e 5771
f11781c5
AK
5772 /* By Ruediger Kuhlmann. */
5773 return fork () < 0;
a946372e 5774
f11781c5
AK
5775 ;
5776 return 0;
5777}
5778_ACEOF
5779if ac_fn_c_try_run "$LINENO"; then :
5780 ac_cv_func_fork_works=yes
a946372e 5781else
f11781c5
AK
5782 ac_cv_func_fork_works=no
5783fi
5784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5785 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5786fi
a946372e 5787
f11781c5
AK
5788fi
5789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5790$as_echo "$ac_cv_func_fork_works" >&6; }
5791
a946372e 5792else
f11781c5 5793 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5794fi
f11781c5
AK
5795if test "x$ac_cv_func_fork_works" = xcross; then
5796 case $host in
5797 *-*-amigaos* | *-*-msdosdjgpp*)
5798 # Override, as these systems have only a dummy fork() stub
5799 ac_cv_func_fork_works=no
5800 ;;
5801 *)
5802 ac_cv_func_fork_works=yes
5803 ;;
5804 esac
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5806$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5807fi
f11781c5
AK
5808ac_cv_func_vfork_works=$ac_cv_func_vfork
5809if test "x$ac_cv_func_vfork" = xyes; then
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5811$as_echo_n "checking for working vfork... " >&6; }
5812if test "${ac_cv_func_vfork_works+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814else
5815 if test "$cross_compiling" = yes; then :
5816 ac_cv_func_vfork_works=cross
5817else
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h. */
5820/* Thanks to Paul Eggert for this test. */
5821$ac_includes_default
5822#include <sys/wait.h>
5823#ifdef HAVE_VFORK_H
5824# include <vfork.h>
5825#endif
5826/* On some sparc systems, changes by the child to local and incoming
5827 argument registers are propagated back to the parent. The compiler
5828 is told about this with #include <vfork.h>, but some compilers
5829 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5830 static variable whose address is put into a register that is
5831 clobbered by the vfork. */
5832static void
5833#ifdef __cplusplus
5834sparc_address_test (int arg)
5835# else
5836sparc_address_test (arg) int arg;
5837#endif
5838{
5839 static pid_t child;
5840 if (!child) {
5841 child = vfork ();
5842 if (child < 0) {
5843 perror ("vfork");
5844 _exit(2);
5845 }
5846 if (!child) {
5847 arg = getpid();
5848 write(-1, "", 0);
5849 _exit (arg);
5850 }
5851 }
5852}
a946372e 5853
f11781c5
AK
5854int
5855main ()
5856{
5857 pid_t parent = getpid ();
5858 pid_t child;
a946372e 5859
f11781c5 5860 sparc_address_test (0);
a946372e 5861
f11781c5 5862 child = vfork ();
a946372e 5863
f11781c5
AK
5864 if (child == 0) {
5865 /* Here is another test for sparc vfork register problems. This
5866 test uses lots of local variables, at least as many local
5867 variables as main has allocated so far including compiler
5868 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5869 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5870 reuse the register of parent for one of the local variables,
5871 since it will think that parent can't possibly be used any more
5872 in this routine. Assigning to the local variable will thus
5873 munge parent in the parent process. */
5874 pid_t
5875 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5876 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5877 /* Convince the compiler that p..p7 are live; otherwise, it might
5878 use the same hardware register for all 8 local variables. */
5879 if (p != p1 || p != p2 || p != p3 || p != p4
5880 || p != p5 || p != p6 || p != p7)
5881 _exit(1);
a946372e 5882
f11781c5
AK
5883 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5884 from child file descriptors. If the child closes a descriptor
5885 before it execs or exits, this munges the parent's descriptor
5886 as well. Test for this by closing stdout in the child. */
5887 _exit(close(fileno(stdout)) != 0);
5888 } else {
5889 int status;
5890 struct stat st;
5891
5892 while (wait(&status) != child)
5893 ;
5894 return (
5895 /* Was there some problem with vforking? */
5896 child < 0
5897
5898 /* Did the child fail? (This shouldn't happen.) */
5899 || status
5900
5901 /* Did the vfork/compiler bug occur? */
5902 || parent != getpid()
5903
5904 /* Did the file descriptor bug occur? */
5905 || fstat(fileno(stdout), &st) != 0
5906 );
5907 }
5908}
5909_ACEOF
5910if ac_fn_c_try_run "$LINENO"; then :
5911 ac_cv_func_vfork_works=yes
a946372e 5912else
f11781c5 5913 ac_cv_func_vfork_works=no
a946372e 5914fi
f11781c5
AK
5915rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5916 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5917fi
f11781c5 5918
a946372e 5919fi
f11781c5
AK
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5921$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5922
f11781c5
AK
5923fi;
5924if test "x$ac_cv_func_fork_works" = xcross; then
5925 ac_cv_func_vfork_works=$ac_cv_func_vfork
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5927$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5928fi
a946372e 5929
f11781c5 5930if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5931
f11781c5 5932$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5933
a946372e 5934else
a946372e 5935
f11781c5
AK
5936$as_echo "#define vfork fork" >>confdefs.h
5937
a946372e 5938fi
f11781c5 5939if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5940
f11781c5 5941$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5942
a946372e 5943fi
f11781c5
AK
5944
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5946$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5947if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
a946372e 5949else
f11781c5
AK
5950 rm -f conftest.sym conftest.file
5951echo >conftest.file
5952if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5953 if test "$cross_compiling" = yes; then :
5954 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5955else
f11781c5 5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5957/* end confdefs.h. */
f11781c5
AK
5958$ac_includes_default
5959int
5960main ()
5961{
5962struct stat sbuf;
5963 /* Linux will dereference the symlink and fail, as required by POSIX.
5964 That is better in the sense that it means we will not
5965 have to compile and use the lstat wrapper. */
5966 return lstat ("conftest.sym/", &sbuf) == 0;
5967 ;
5968 return 0;
5969}
a946372e 5970_ACEOF
f11781c5
AK
5971if ac_fn_c_try_run "$LINENO"; then :
5972 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5973else
f11781c5 5974 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5975fi
f11781c5
AK
5976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5977 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5978fi
a946372e 5979
a946372e 5980else
f11781c5
AK
5981 # If the `ln -s' command failed, then we probably don't even
5982 # have an lstat function.
5983 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5984fi
f11781c5 5985rm -f conftest.sym conftest.file
a946372e 5986
f11781c5
AK
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5989$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5990
f11781c5 5991test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5992
f11781c5
AK
5993cat >>confdefs.h <<_ACEOF
5994#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5995_ACEOF
a946372e 5996
a946372e 5997
f11781c5
AK
5998if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5999 case " $LIBOBJS " in
6000 *" lstat.$ac_objext "* ) ;;
6001 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6002 ;;
6003esac
a946372e 6004
f11781c5 6005fi
a946372e 6006
f11781c5
AK
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6008$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6009if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6010 $as_echo_n "(cached) " >&6
a946372e 6011else
f11781c5
AK
6012 if test "$cross_compiling" = yes; then :
6013 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6014else
f11781c5
AK
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016/* end confdefs.h. */
6017$ac_includes_default
6018int
6019main ()
6020{
6021struct stat sbuf;
6022 return lstat ("", &sbuf) == 0;
6023 ;
6024 return 0;
6025}
6026_ACEOF
6027if ac_fn_c_try_run "$LINENO"; then :
6028 ac_cv_func_lstat_empty_string_bug=no
6029else
6030 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6031fi
f11781c5
AK
6032rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6033 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6034fi
6035
f11781c5
AK
6036fi
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6038$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6039if test $ac_cv_func_lstat_empty_string_bug = yes; then
6040 case " $LIBOBJS " in
6041 *" lstat.$ac_objext "* ) ;;
6042 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6043 ;;
6044esac
a946372e
AK
6045
6046
f11781c5
AK
6047cat >>confdefs.h <<_ACEOF
6048#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6049_ACEOF
a946372e 6050
a946372e 6051fi
a946372e 6052
f11781c5
AK
6053for ac_header in stdlib.h
6054do :
6055 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6056if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6057 cat >>confdefs.h <<_ACEOF
6058#define HAVE_STDLIB_H 1
6059_ACEOF
6060
a946372e
AK
6061fi
6062
f11781c5 6063done
a946372e 6064
f11781c5
AK
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6066$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6067if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069else
6070 if test "$cross_compiling" = yes; then :
6071 ac_cv_func_malloc_0_nonnull=no
6072else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074/* end confdefs.h. */
6075#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6076# include <stdlib.h>
6077#else
6078char *malloc ();
6079#endif
a946372e 6080
f11781c5
AK
6081int
6082main ()
6083{
6084return ! malloc (0);
6085 ;
6086 return 0;
6087}
6088_ACEOF
6089if ac_fn_c_try_run "$LINENO"; then :
6090 ac_cv_func_malloc_0_nonnull=yes
a946372e 6091else
f11781c5 6092 ac_cv_func_malloc_0_nonnull=no
a946372e 6093fi
f11781c5
AK
6094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6095 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6096fi
f11781c5 6097
a946372e 6098fi
f11781c5
AK
6099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6100$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6101if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6102
f11781c5 6103$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6104
f11781c5
AK
6105else
6106 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6107
f11781c5
AK
6108 case " $LIBOBJS " in
6109 *" malloc.$ac_objext "* ) ;;
6110 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6111 ;;
6112esac
6113
6114
6115$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6116
a946372e 6117fi
a946372e 6118
a946372e 6119
f11781c5
AK
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6121$as_echo_n "checking for working memcmp... " >&6; }
6122if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6123 $as_echo_n "(cached) " >&6
a946372e 6124else
f11781c5
AK
6125 if test "$cross_compiling" = yes; then :
6126 ac_cv_func_memcmp_working=no
6127else
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6129/* end confdefs.h. */
6130$ac_includes_default
f11781c5
AK
6131int
6132main ()
6133{
a946372e 6134
f11781c5
AK
6135 /* Some versions of memcmp are not 8-bit clean. */
6136 char c0 = '\100', c1 = '\200', c2 = '\201';
6137 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6138 return 1;
a946372e 6139
f11781c5
AK
6140 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6141 or more and with at least one buffer not starting on a 4-byte boundary.
6142 William Lewis provided this test program. */
6143 {
6144 char foo[21];
6145 char bar[21];
6146 int i;
6147 for (i = 0; i < 4; i++)
6148 {
6149 char *a = foo + i;
6150 char *b = bar + i;
6151 strcpy (a, "--------01111111");
6152 strcpy (b, "--------10000000");
6153 if (memcmp (a, b, 16) >= 0)
6154 return 1;
6155 }
6156 return 0;
6157 }
a946372e 6158
f11781c5
AK
6159 ;
6160 return 0;
6161}
a946372e 6162_ACEOF
f11781c5
AK
6163if ac_fn_c_try_run "$LINENO"; then :
6164 ac_cv_func_memcmp_working=yes
a946372e 6165else
f11781c5
AK
6166 ac_cv_func_memcmp_working=no
6167fi
6168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6169 conftest.$ac_objext conftest.beam conftest.$ac_ext
6170fi
a946372e 6171
a946372e 6172fi
f11781c5
AK
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6174$as_echo "$ac_cv_func_memcmp_working" >&6; }
6175test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6176 *" memcmp.$ac_objext "* ) ;;
6177 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6178 ;;
6179esac
a946372e 6180
a946372e 6181
a946372e 6182
a946372e 6183
f11781c5
AK
6184
6185 for ac_header in $ac_header_list
6186do :
6187 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6188ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6189"
6190if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6191 cat >>confdefs.h <<_ACEOF
6192#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6193_ACEOF
6194
a946372e
AK
6195fi
6196
6197done
6198
a946372e 6199
f11781c5
AK
6200
6201
6202
6203
6204
6205
6206for ac_func in getpagesize
6207do :
6208 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6209if test "x$ac_cv_func_getpagesize" = x""yes; then :
6210 cat >>confdefs.h <<_ACEOF
6211#define HAVE_GETPAGESIZE 1
6212_ACEOF
6213
a946372e 6214fi
f11781c5
AK
6215done
6216
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6218$as_echo_n "checking for working mmap... " >&6; }
6219if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6220 $as_echo_n "(cached) " >&6
a946372e 6221else
f11781c5
AK
6222 if test "$cross_compiling" = yes; then :
6223 ac_cv_func_mmap_fixed_mapped=no
6224else
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6226/* end confdefs.h. */
6227$ac_includes_default
f11781c5
AK
6228/* malloc might have been renamed as rpl_malloc. */
6229#undef malloc
6230
6231/* Thanks to Mike Haertel and Jim Avera for this test.
6232 Here is a matrix of mmap possibilities:
6233 mmap private not fixed
6234 mmap private fixed at somewhere currently unmapped
6235 mmap private fixed at somewhere already mapped
6236 mmap shared not fixed
6237 mmap shared fixed at somewhere currently unmapped
6238 mmap shared fixed at somewhere already mapped
6239 For private mappings, we should verify that changes cannot be read()
6240 back from the file, nor mmap's back from the file at a different
6241 address. (There have been systems where private was not correctly
6242 implemented like the infamous i386 svr4.0, and systems where the
6243 VM page cache was not coherent with the file system buffer cache
6244 like early versions of FreeBSD and possibly contemporary NetBSD.)
6245 For shared mappings, we should conversely verify that changes get
6246 propagated back to all the places they're supposed to be.
6247
6248 Grep wants private fixed already mapped.
6249 The main things grep needs to know about mmap are:
6250 * does it exist and is it safe to write into the mmap'd area
6251 * how to use it (BSD variants) */
6252
6253#include <fcntl.h>
6254#include <sys/mman.h>
6255
6256#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6257char *malloc ();
6258#endif
6259
6260/* This mess was copied from the GNU getpagesize.h. */
6261#ifndef HAVE_GETPAGESIZE
6262# ifdef _SC_PAGESIZE
6263# define getpagesize() sysconf(_SC_PAGESIZE)
6264# else /* no _SC_PAGESIZE */
6265# ifdef HAVE_SYS_PARAM_H
6266# include <sys/param.h>
6267# ifdef EXEC_PAGESIZE
6268# define getpagesize() EXEC_PAGESIZE
6269# else /* no EXEC_PAGESIZE */
6270# ifdef NBPG
6271# define getpagesize() NBPG * CLSIZE
6272# ifndef CLSIZE
6273# define CLSIZE 1
6274# endif /* no CLSIZE */
6275# else /* no NBPG */
6276# ifdef NBPC
6277# define getpagesize() NBPC
6278# else /* no NBPC */
6279# ifdef PAGESIZE
6280# define getpagesize() PAGESIZE
6281# endif /* PAGESIZE */
6282# endif /* no NBPC */
6283# endif /* no NBPG */
6284# endif /* no EXEC_PAGESIZE */
6285# else /* no HAVE_SYS_PARAM_H */
6286# define getpagesize() 8192 /* punt totally */
6287# endif /* no HAVE_SYS_PARAM_H */
6288# endif /* no _SC_PAGESIZE */
6289
6290#endif /* no HAVE_GETPAGESIZE */
6291
6292int
6293main ()
6294{
6295 char *data, *data2, *data3;
6296 const char *cdata2;
6297 int i, pagesize;
6298 int fd, fd2;
6299
6300 pagesize = getpagesize ();
6301
6302 /* First, make a file with some known garbage in it. */
6303 data = (char *) malloc (pagesize);
6304 if (!data)
6305 return 1;
6306 for (i = 0; i < pagesize; ++i)
6307 *(data + i) = rand ();
6308 umask (0);
6309 fd = creat ("conftest.mmap", 0600);
6310 if (fd < 0)
6311 return 2;
6312 if (write (fd, data, pagesize) != pagesize)
6313 return 3;
6314 close (fd);
6315
6316 /* Next, check that the tail of a page is zero-filled. File must have
6317 non-zero length, otherwise we risk SIGBUS for entire page. */
6318 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6319 if (fd2 < 0)
6320 return 4;
6321 cdata2 = "";
6322 if (write (fd2, cdata2, 1) != 1)
6323 return 5;
6324 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6325 if (data2 == MAP_FAILED)
6326 return 6;
6327 for (i = 0; i < pagesize; ++i)
6328 if (*(data2 + i))
6329 return 7;
6330 close (fd2);
6331 if (munmap (data2, pagesize))
6332 return 8;
6333
6334 /* Next, try to mmap the file at a fixed address which already has
6335 something else allocated at it. If we can, also make sure that
6336 we see the same garbage. */
6337 fd = open ("conftest.mmap", O_RDWR);
6338 if (fd < 0)
6339 return 9;
6340 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6341 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6342 return 10;
6343 for (i = 0; i < pagesize; ++i)
6344 if (*(data + i) != *(data2 + i))
6345 return 11;
6346
6347 /* Finally, make sure that changes to the mapped area do not
6348 percolate back to the file as seen by read(). (This is a bug on
6349 some variants of i386 svr4.0.) */
6350 for (i = 0; i < pagesize; ++i)
6351 *(data2 + i) = *(data2 + i) + 1;
6352 data3 = (char *) malloc (pagesize);
6353 if (!data3)
6354 return 12;
6355 if (read (fd, data3, pagesize) != pagesize)
6356 return 13;
6357 for (i = 0; i < pagesize; ++i)
6358 if (*(data + i) != *(data3 + i))
6359 return 14;
6360 close (fd);
6361 return 0;
6362}
a946372e 6363_ACEOF
f11781c5
AK
6364if ac_fn_c_try_run "$LINENO"; then :
6365 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6366else
f11781c5
AK
6367 ac_cv_func_mmap_fixed_mapped=no
6368fi
6369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6370 conftest.$ac_objext conftest.beam conftest.$ac_ext
6371fi
a946372e 6372
a946372e 6373fi
f11781c5
AK
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6375$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6376if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6377
f11781c5 6378$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6379
f11781c5
AK
6380fi
6381rm -f conftest.mmap conftest.txt
6382
6383for ac_header in stdlib.h
6384do :
6385 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6386if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6387 cat >>confdefs.h <<_ACEOF
6388#define HAVE_STDLIB_H 1
a946372e 6389_ACEOF
f11781c5
AK
6390
6391fi
6392
6393done
6394
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6396$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6397if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6399else
6400 if test "$cross_compiling" = yes; then :
6401 ac_cv_func_realloc_0_nonnull=no
6402else
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6404/* end confdefs.h. */
f11781c5
AK
6405#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6406# include <stdlib.h>
6407#else
6408char *realloc ();
6409#endif
6410
6411int
6412main ()
6413{
6414return ! realloc (0, 0);
6415 ;
6416 return 0;
6417}
a946372e 6418_ACEOF
f11781c5
AK
6419if ac_fn_c_try_run "$LINENO"; then :
6420 ac_cv_func_realloc_0_nonnull=yes
a946372e 6421else
f11781c5
AK
6422 ac_cv_func_realloc_0_nonnull=no
6423fi
6424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6425 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6426fi
6427
f11781c5
AK
6428fi
6429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6430$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6431if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6432
f11781c5 6433$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6434
a946372e 6435else
f11781c5
AK
6436 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6437
6438 case " $LIBOBJS " in
6439 *" realloc.$ac_objext "* ) ;;
6440 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6441 ;;
6442esac
a946372e 6443
a946372e 6444
f11781c5
AK
6445$as_echo "#define realloc rpl_realloc" >>confdefs.h
6446
a946372e
AK
6447fi
6448
a946372e 6449
f11781c5
AK
6450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6451$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6452if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
a946372e 6454else
f11781c5
AK
6455 if test "$cross_compiling" = yes; then :
6456 ac_cv_func_stat_empty_string_bug=yes
6457else
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h. */
6460$ac_includes_default
6461int
6462main ()
6463{
6464struct stat sbuf;
6465 return stat ("", &sbuf) == 0;
6466 ;
6467 return 0;
6468}
6469_ACEOF
6470if ac_fn_c_try_run "$LINENO"; then :
6471 ac_cv_func_stat_empty_string_bug=no
6472else
6473 ac_cv_func_stat_empty_string_bug=yes
a946372e 6474fi
f11781c5
AK
6475rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6476 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6477fi
6478
8c4e8a18 6479fi
f11781c5
AK
6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6481$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6482if test $ac_cv_func_stat_empty_string_bug = yes; then
6483 case " $LIBOBJS " in
6484 *" stat.$ac_objext "* ) ;;
6485 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6486 ;;
6487esac
8c4e8a18
FDN
6488
6489
6490cat >>confdefs.h <<_ACEOF
f11781c5 6491#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6492_ACEOF
6493
6494fi
6495
f11781c5
AK
6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6497$as_echo_n "checking for working strtod... " >&6; }
6498if test "${ac_cv_func_strtod+set}" = set; then :
6499 $as_echo_n "(cached) " >&6
66fd4529 6500else
f11781c5
AK
6501 if test "$cross_compiling" = yes; then :
6502 ac_cv_func_strtod=no
6503else
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505/* end confdefs.h. */
66fd4529 6506
f11781c5
AK
6507$ac_includes_default
6508#ifndef strtod
6509double strtod ();
6510#endif
6511int
6512main()
6513{
6514 {
6515 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6516 char *string = " +69";
6517 char *term;
6518 double value;
6519 value = strtod (string, &term);
6520 if (value != 69 || term != (string + 4))
6521 return 1;
6522 }
66fd4529 6523
f11781c5
AK
6524 {
6525 /* Under Solaris 2.4, strtod returns the wrong value for the
6526 terminating character under some conditions. */
6527 char *string = "NaN";
6528 char *term;
6529 strtod (string, &term);
6530 if (term != string && *(term - 1) == 0)
6531 return 1;
6532 }
6533 return 0;
6534}
66fd4529 6535
f11781c5
AK
6536_ACEOF
6537if ac_fn_c_try_run "$LINENO"; then :
6538 ac_cv_func_strtod=yes
66fd4529 6539else
f11781c5
AK
6540 ac_cv_func_strtod=no
6541fi
6542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6543 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6544fi
6545
f11781c5
AK
6546fi
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6548$as_echo "$ac_cv_func_strtod" >&6; }
6549if test $ac_cv_func_strtod = no; then
6550 case " $LIBOBJS " in
6551 *" strtod.$ac_objext "* ) ;;
6552 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6553 ;;
6554esac
71082be4 6555
f11781c5
AK
6556ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6557if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6558
66fd4529 6559fi
a946372e 6560
f11781c5
AK
6561if test $ac_cv_func_pow = no; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6563$as_echo_n "checking for pow in -lm... " >&6; }
6564if test "${ac_cv_lib_m_pow+set}" = set; then :
6565 $as_echo_n "(cached) " >&6
6566else
6567 ac_check_lib_save_LIBS=$LIBS
6568LIBS="-lm $LIBS"
6569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h. */
90c80887 6571
f11781c5
AK
6572/* Override any GCC internal prototype to avoid an error.
6573 Use char because int might match the return type of a GCC
6574 builtin and then its argument prototype would still apply. */
6575#ifdef __cplusplus
6576extern "C"
6577#endif
6578char pow ();
6579int
6580main ()
6581{
6582return pow ();
6583 ;
6584 return 0;
6585}
6586_ACEOF
6587if ac_fn_c_try_link "$LINENO"; then :
6588 ac_cv_lib_m_pow=yes
90c80887 6589else
f11781c5 6590 ac_cv_lib_m_pow=no
90c80887 6591fi
f11781c5
AK
6592rm -f core conftest.err conftest.$ac_objext \
6593 conftest$ac_exeext conftest.$ac_ext
6594LIBS=$ac_check_lib_save_LIBS
90c80887 6595fi
f11781c5
AK
6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6597$as_echo "$ac_cv_lib_m_pow" >&6; }
6598if test "x$ac_cv_lib_m_pow" = x""yes; then :
6599 POW_LIB=-lm
90c80887 6600else
f11781c5
AK
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6602$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6603fi
f11781c5 6604
90c80887
AK
6605fi
6606
f11781c5
AK
6607fi
6608
6609for ac_func in vprintf
6610do :
6611 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6612if test "x$ac_cv_func_vprintf" = x""yes; then :
6613 cat >>confdefs.h <<_ACEOF
6614#define HAVE_VPRINTF 1
6615_ACEOF
90c80887 6616
f11781c5
AK
6617ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6618if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6619
f11781c5 6620$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6621
90c80887 6622fi
90c80887 6623
f11781c5
AK
6624fi
6625done
90c80887 6626
90c80887 6627
90c80887 6628
f11781c5
AK
6629################################################################################
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6631$as_echo_n "checking whether to use static linking... " >&6; }
6632# Check whether --enable-static_link was given.
6633if test "${enable_static_link+set}" = set; then :
6634 enableval=$enable_static_link; STATIC_LINK=$enableval
6635else
6636 STATIC_LINK=no
6637fi
90c80887 6638
f11781c5
AK
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6640$as_echo "$STATIC_LINK" >&6; }
90c80887 6641
f11781c5 6642################################################################################
90c80887 6643
90c80887 6644
f11781c5
AK
6645################################################################################
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6647$as_echo_n "checking file owner... " >&6; }
90c80887 6648
f11781c5
AK
6649# Check whether --with-user was given.
6650if test "${with_user+set}" = set; then :
6651 withval=$with_user; OWNER=$withval
6652fi
90c80887 6653
f11781c5
AK
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6655$as_echo "$OWNER" >&6; }
90c80887 6656
f11781c5
AK
6657if test x$OWNER != x; then
6658 INSTALL="$INSTALL -o $OWNER"
90c80887 6659fi
a946372e 6660
f11781c5
AK
6661################################################################################
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6663$as_echo_n "checking group owner... " >&6; }
a946372e 6664
f11781c5
AK
6665# Check whether --with-group was given.
6666if test "${with_group+set}" = set; then :
6667 withval=$with_group; GROUP=$withval
a946372e 6668fi
f11781c5
AK
6669
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6671$as_echo "$GROUP" >&6; }
6672
6673if test x$GROUP != x; then
6674 INSTALL="$INSTALL -g $GROUP"
a946372e 6675fi
f11781c5
AK
6676
6677################################################################################
6678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6679$as_echo_n "checking device node uid... " >&6; }
6680
6681
6682# Check whether --with-device-uid was given.
6683if test "${with_device_uid+set}" = set; then :
6684 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6685else
f11781c5 6686 DM_DEVICE_UID=0
a946372e
AK
6687fi
6688
f11781c5
AK
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6690$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6691
f11781c5
AK
6692################################################################################
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6694$as_echo_n "checking device node gid... " >&6; }
a946372e 6695
a946372e 6696
f11781c5
AK
6697# Check whether --with-device-gid was given.
6698if test "${with_device_gid+set}" = set; then :
6699 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6700else
f11781c5 6701 DM_DEVICE_GID=0
a946372e 6702fi
a946372e 6703
f11781c5
AK
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6705$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6706
f11781c5
AK
6707################################################################################
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6709$as_echo_n "checking device node mode... " >&6; }
90c80887 6710
90c80887 6711
f11781c5
AK
6712# Check whether --with-device-mode was given.
6713if test "${with_device_mode+set}" = set; then :
6714 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6715else
6716 DM_DEVICE_MODE=0600
6717fi
90c80887 6718
f11781c5
AK
6719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6720$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6721
d0df875d
ZK
6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6723$as_echo_n "checking when to create device nodes... " >&6; }
6724
6725# Check whether --with-device-nodes-on was given.
6726if test "${with_device_nodes_on+set}" = set; then :
6727 withval=$with_device_nodes_on; ADD_NODE=$withval
6728else
6729 ADD_NODE=resume
6730fi
6731
6732case "$ADD_NODE" in
6733 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6734 create) add_on=DM_ADD_NODE_ON_CREATE;;
6735 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6736esac
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6738$as_echo "on $ADD_NODE" >&6; }
6739
6740cat >>confdefs.h <<_ACEOF
6741#define DEFAULT_DM_ADD_NODE $add_on
6742_ACEOF
6743
6744
f11781c5
AK
6745################################################################################
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6747$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6748# Check whether --enable-lvm1_fallback was given.
6749if test "${enable_lvm1_fallback+set}" = set; then :
6750 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6751else
6752 LVM1_FALLBACK=no
6753fi
90c80887 6754
f11781c5
AK
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6756$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6757
f11781c5 6758if test x$LVM1_FALLBACK = xyes; then
90c80887 6759
f11781c5 6760$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6761
f11781c5 6762fi
90c80887 6763
f11781c5
AK
6764################################################################################
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6766$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6767
6768# Check whether --with-lvm1 was given.
6769if test "${with_lvm1+set}" = set; then :
6770 withval=$with_lvm1; LVM1=$withval
a946372e 6771else
f11781c5 6772 LVM1=internal
a946372e 6773fi
f11781c5
AK
6774
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6776$as_echo "$LVM1" >&6; }
6777
6778if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6779 then as_fn_error $? "--with-lvm1 parameter invalid
6780" "$LINENO" 5
6781fi;
6782
6783if test x$LVM1 = xinternal; then
6784
6785$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6786
a946372e
AK
6787fi
6788
6789################################################################################
f11781c5
AK
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6791$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6792
6793# Check whether --with-pool was given.
6794if test "${with_pool+set}" = set; then :
6795 withval=$with_pool; POOL=$withval
a946372e 6796else
f11781c5 6797 POOL=internal
a946372e
AK
6798fi
6799
f11781c5
AK
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6801$as_echo "$POOL" >&6; }
6802
6803if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6804 then as_fn_error $? "--with-pool parameter invalid
6805" "$LINENO" 5
6806fi;
6807
6808if test x$POOL = xinternal; then
6809
6810$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6811
a946372e
AK
6812fi
6813
6814################################################################################
f11781c5
AK
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6816$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6817
f11781c5
AK
6818# Check whether --with-cluster was given.
6819if test "${with_cluster+set}" = set; then :
6820 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6821fi
6822
f11781c5
AK
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6824$as_echo "$CLUSTER" >&6; }
a946372e 6825
f11781c5
AK
6826if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6827 then as_fn_error $? "--with-cluster parameter invalid
6828" "$LINENO" 5
6829fi;
fddafd51 6830
f11781c5 6831if test x$CLUSTER = xinternal; then
5556819a 6832
f11781c5 6833$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6834
fddafd51 6835fi
f11781c5
AK
6836
6837################################################################################
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6839$as_echo_n "checking whether to include snapshots... " >&6; }
6840
6841# Check whether --with-snapshots was given.
6842if test "${with_snapshots+set}" = set; then :
6843 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6844else
f11781c5 6845 SNAPSHOTS=internal
fddafd51
ZK
6846fi
6847
f11781c5
AK
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6849$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6850
f11781c5
AK
6851if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6852 then as_fn_error $? "--with-snapshots parameter invalid
6853" "$LINENO" 5
6854fi;
fddafd51 6855
f11781c5
AK
6856if test x$SNAPSHOTS = xinternal; then
6857
6858$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6859
6860fi
6861
6862################################################################################
6863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6864$as_echo_n "checking whether to include mirrors... " >&6; }
6865
6866# Check whether --with-mirrors was given.
6867if test "${with_mirrors+set}" = set; then :
6868 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6869else
f11781c5 6870 MIRRORS=internal
fddafd51
ZK
6871fi
6872
f11781c5
AK
6873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6874$as_echo "$MIRRORS" >&6; }
fddafd51 6875
f11781c5
AK
6876if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6877 then as_fn_error $? "--with-mirrors parameter invalid
6878" "$LINENO" 5
6879fi;
6880
6881if test x$MIRRORS = xinternal; then
6882
6883$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6884
6885fi
6886
6887################################################################################
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6889$as_echo_n "checking whether to include replicators... " >&6; }
6890
6891# Check whether --with-replicators was given.
6892if test "${with_replicators+set}" = set; then :
6893 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6894else
f11781c5
AK
6895 REPLICATORS=none
6896fi
fd4728e1 6897
f11781c5
AK
6898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6899$as_echo "$REPLICATORS" >&6; }
6900
6901case "$REPLICATORS" in
6902 none|shared) ;;
6903 internal)
6904$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6905 ;;
6906 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6907esac
f11781c5
AK
6908
6909################################################################################
6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6911$as_echo_n "checking whether to enable readline... " >&6; }
6912# Check whether --enable-readline was given.
6913if test "${enable_readline+set}" = set; then :
6914 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6915else
f11781c5 6916 READLINE=maybe
fd4728e1
ZK
6917fi
6918
f11781c5
AK
6919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6920$as_echo "$READLINE" >&6; }
fd4728e1 6921
f11781c5
AK
6922################################################################################
6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6924$as_echo_n "checking whether to enable realtime support... " >&6; }
6925# Check whether --enable-realtime was given.
6926if test "${enable_realtime+set}" = set; then :
6927 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6928fi
d0191583 6929
f11781c5
AK
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6931$as_echo "$REALTIME" >&6; }
6932
54b362f9 6933################################################################################
f11781c5
AK
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6935$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6936# Check whether --enable-ocf was given.
6937if test "${enable_ocf+set}" = set; then :
6938 enableval=$enable_ocf; OCF=$enableval
54b362f9 6939else
f11781c5 6940 OCF=no
54b362f9
AK
6941fi
6942
f11781c5
AK
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6944$as_echo "$OCF" >&6; }
54b362f9 6945
606d0858
AK
6946# Check whether --with-ocfdir was given.
6947if test "${with_ocfdir+set}" = set; then :
6948 withval=$with_ocfdir; OCFDIR=$withval
6949else
6950 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6951fi
6952
6953
f11781c5
AK
6954################################################################################
6955pkg_config_init() {
6956
6957
6958
6959
6960
6961
6962if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6963 if test -n "$ac_tool_prefix"; then
6964 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6965set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6967$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6968if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6969 $as_echo_n "(cached) " >&6
6970else
f11781c5 6971 case $PKG_CONFIG in
54b362f9 6972 [\\/]* | ?:[\\/]*)
f11781c5 6973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
f11781c5 6981 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
6983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
6985 break 2
6986 fi
6987done
f11781c5 6988 done
54b362f9
AK
6989IFS=$as_save_IFS
6990
6991 ;;
6992esac
6993fi
f11781c5
AK
6994PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6995if test -n "$PKG_CONFIG"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6997$as_echo "$PKG_CONFIG" >&6; }
54b362f9 6998else
f11781c5 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7000$as_echo "no" >&6; }
7001fi
7002
7003
f11781c5
AK
7004fi
7005if test -z "$ac_cv_path_PKG_CONFIG"; then
7006 ac_pt_PKG_CONFIG=$PKG_CONFIG
7007 # Extract the first word of "pkg-config", so it can be a program name with args.
7008set dummy pkg-config; ac_word=$2
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7010$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7011if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7012 $as_echo_n "(cached) " >&6
7013else
f11781c5 7014 case $ac_pt_PKG_CONFIG in
54b362f9 7015 [\\/]* | ?:[\\/]*)
f11781c5 7016 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7017 ;;
7018 *)
7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020for as_dir in $PATH
7021do
7022 IFS=$as_save_IFS
7023 test -z "$as_dir" && as_dir=.
f11781c5 7024 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7028 break 2
7029 fi
7030done
f11781c5 7031 done
54b362f9
AK
7032IFS=$as_save_IFS
7033
7034 ;;
7035esac
7036fi
f11781c5
AK
7037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7038if test -n "$ac_pt_PKG_CONFIG"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7040$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7041else
f11781c5 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7043$as_echo "no" >&6; }
7044fi
7045
f11781c5
AK
7046 if test "x$ac_pt_PKG_CONFIG" = x; then
7047 PKG_CONFIG=""
7048 else
7049 case $cross_compiling:$ac_tool_warned in
7050yes:)
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7053ac_tool_warned=yes ;;
7054esac
7055 PKG_CONFIG=$ac_pt_PKG_CONFIG
7056 fi
d1e8046f 7057else
f11781c5 7058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7059fi
7060
f11781c5
AK
7061fi
7062if test -n "$PKG_CONFIG"; then
7063 _pkg_min_version=0.9.0
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7065$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068$as_echo "yes" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071$as_echo "no" >&6; }
7072 PKG_CONFIG=""
7073 fi
7074fi
d1e8046f 7075
f11781c5
AK
7076pkg_failed=no
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7078$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7079
f11781c5
AK
7080if test -n "$PKGCONFIGINIT_CFLAGS"; then
7081 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7082 elif test -n "$PKG_CONFIG"; then
7083 if test -n "$PKG_CONFIG" && \
7084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7085 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7086 ac_status=$?
7087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088 test $ac_status = 0; }; then
7089 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7090else
f11781c5
AK
7091 pkg_failed=yes
7092fi
7093 else
7094 pkg_failed=untried
7095fi
7096if test -n "$PKGCONFIGINIT_LIBS"; then
7097 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7098 elif test -n "$PKG_CONFIG"; then
7099 if test -n "$PKG_CONFIG" && \
7100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7101 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7102 ac_status=$?
f11781c5
AK
7103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7104 test $ac_status = 0; }; then
7105 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7106else
f11781c5
AK
7107 pkg_failed=yes
7108fi
7109 else
7110 pkg_failed=untried
d1e8046f
AK
7111fi
7112
d1e8046f 7113
f11781c5
AK
7114
7115if test $pkg_failed = yes; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117$as_echo "no" >&6; }
7118
7119if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7120 _pkg_short_errors_supported=yes
7121else
7122 _pkg_short_errors_supported=no
7123fi
7124 if test $_pkg_short_errors_supported = yes; then
7125 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7126 else
7127 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7128 fi
7129 # Put the nasty error message in config.log where it belongs
7130 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7131
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7133$as_echo "pkg-config initialized" >&6; }
7134elif test $pkg_failed = untried; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136$as_echo "no" >&6; }
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7138$as_echo "pkg-config initialized" >&6; }
d1e8046f 7139else
f11781c5
AK
7140 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7141 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7143$as_echo "yes" >&6; }
d1e8046f 7144
d1e8046f 7145fi
f11781c5
AK
7146 PKGCONFIG_INIT=1
7147}
d1e8046f 7148
f11781c5
AK
7149################################################################################
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7151$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7152
f11781c5
AK
7153# Check whether --with-clvmd was given.
7154if test "${with_clvmd+set}" = set; then :
7155 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7156else
f11781c5 7157 CLVMD=none
d1e8046f 7158fi
d1e8046f 7159
f11781c5
AK
7160if test x$CLVMD = xyes; then
7161 CLVMD=all
d1e8046f 7162fi
f11781c5
AK
7163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7164$as_echo "$CLVMD" >&6; }
d1e8046f 7165
f11781c5
AK
7166if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7167 CLUSTER=internal
d1e8046f
AK
7168fi
7169
f11781c5
AK
7170if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7171 pkg_config_init
7172fi
d1e8046f 7173
f11781c5
AK
7174CLVMD_CMANAGERS=""
7175CLVMD_NEEDS_QDISKD=no
d1e8046f 7176
f11781c5
AK
7177if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7178 BUILDGULM=yes
7179 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7180 CLVMD_NEEDS_QDISKD=yes
d1e8046f 7181fi
f11781c5
AK
7182if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7183 BUILDCMAN=yes
7184 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7185 CLVMD_NEEDS_QDISKD=yes
7186fi
7187if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7188 BUILDCOROSYNC=yes
7189 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7190fi
7191if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7192 BUILDOPENAIS=yes
7193 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7194fi
7195if test x$CLVMD_NEEDS_QDISKD != xno; then
7196 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7197fi
7198
f11781c5
AK
7199if test x$BUILDGULM = xyes; then
7200 if test x$BUILDCOROSYNC = xyes || \
7201 test x$BUILDOPENAIS = xyes; then
7202 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7203 fi
7204fi
ad6254c5 7205
f11781c5
AK
7206soft_bailout() {
7207 NOTFOUND=1
7208}
ad6254c5 7209
f11781c5
AK
7210hard_bailout() {
7211 as_fn_error $? "bailing out" "$LINENO" 5
7212}
ad6254c5 7213
f11781c5
AK
7214if test x$CLVMD = xall; then
7215 bailout=soft_bailout
7216 BUILDGULM=yes
7217 BUILDCMAN=yes
7218 BUILDCOROSYNC=yes
7219 BUILDOPENAIS=yes
a5f46f6a 7220else
f11781c5 7221 bailout=hard_bailout
a5f46f6a
AK
7222fi
7223
f11781c5
AK
7224check_lib_no_libs() {
7225 lib_no_libs_arg1=$1
7226 shift
7227 lib_no_libs_arg2=$1
7228 shift
7229 lib_no_libs_args=$@
7230 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7232$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7233if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7234 $as_echo_n "(cached) " >&6
7235else
7236 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7237LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7239/* end confdefs.h. */
7240
7241/* Override any GCC internal prototype to avoid an error.
7242 Use char because int might match the return type of a GCC
7243 builtin and then its argument prototype would still apply. */
7244#ifdef __cplusplus
7245extern "C"
7246#endif
f11781c5 7247char $lib_no_libs_arg2 ();
90c80887
AK
7248int
7249main ()
7250{
f11781c5 7251return $lib_no_libs_arg2 ();
90c80887
AK
7252 ;
7253 return 0;
7254}
7255_ACEOF
f11781c5
AK
7256if ac_fn_c_try_link "$LINENO"; then :
7257 eval "$as_ac_Lib=yes"
90c80887 7258else
f11781c5 7259 eval "$as_ac_Lib=no"
90c80887 7260fi
f11781c5
AK
7261rm -f core conftest.err conftest.$ac_objext \
7262 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7263LIBS=$ac_check_lib_save_LIBS
7264fi
f11781c5
AK
7265eval ac_res=\$$as_ac_Lib
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7267$as_echo "$ac_res" >&6; }
7268if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7269 cat >>confdefs.h <<_ACEOF
7270#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7271_ACEOF
7272
7273 LIBS="-l$lib_no_libs_arg1 $LIBS"
7274
90c80887 7275else
f11781c5 7276 $bailout
90c80887
AK
7277fi
7278
f11781c5
AK
7279 LIBS=$ac_check_lib_save_LIBS
7280}
90c80887 7281
f11781c5 7282if test x$BUILDGULM = xyes; then
90c80887 7283
f11781c5
AK
7284pkg_failed=no
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7286$as_echo_n "checking for CCS... " >&6; }
90c80887 7287
f11781c5
AK
7288if test -n "$CCS_CFLAGS"; then
7289 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7290 elif test -n "$PKG_CONFIG"; then
7291 if test -n "$PKG_CONFIG" && \
7292 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7293 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7294 ac_status=$?
7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7296 test $ac_status = 0; }; then
7297 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
5161ecb9 7298else
f11781c5
AK
7299 pkg_failed=yes
7300fi
7301 else
7302 pkg_failed=untried
7303fi
7304if test -n "$CCS_LIBS"; then
7305 pkg_cv_CCS_LIBS="$CCS_LIBS"
7306 elif test -n "$PKG_CONFIG"; then
7307 if test -n "$PKG_CONFIG" && \
7308 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7309 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7310 ac_status=$?
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; then
7313 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7314else
7315 pkg_failed=yes
7316fi
7317 else
7318 pkg_failed=untried
5161ecb9
PR
7319fi
7320
5161ecb9 7321
f11781c5
AK
7322
7323if test $pkg_failed = yes; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325$as_echo "no" >&6; }
7326
7327if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7328 _pkg_short_errors_supported=yes
93bd259b 7329else
f11781c5 7330 _pkg_short_errors_supported=no
93bd259b 7331fi
f11781c5
AK
7332 if test $_pkg_short_errors_supported = yes; then
7333 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7334 else
7335 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7336 fi
7337 # Put the nasty error message in config.log where it belongs
7338 echo "$CCS_PKG_ERRORS" >&5
93bd259b 7339
f11781c5
AK
7340 NOTFOUND=0
7341 for ac_header in ccs.h
7342do :
7343 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7344if test "x$ac_cv_header_ccs_h" = x""yes; then :
7345 cat >>confdefs.h <<_ACEOF
7346#define HAVE_CCS_H 1
7347_ACEOF
93bd259b 7348
95eaa683 7349else
f11781c5 7350 $bailout
95eaa683
AK
7351fi
7352
f11781c5 7353done
95eaa683 7354
f11781c5
AK
7355 check_lib_no_libs ccs ccs_connect
7356 if test $NOTFOUND = 0; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7358$as_echo "no pkg for libccs, using -lccs" >&6; }
7359 CCS_LIBS="-lccs"
7360 HAVE_CCS=yes
7361 fi
7362elif test $pkg_failed = untried; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365 NOTFOUND=0
7366 for ac_header in ccs.h
7367do :
7368 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7369if test "x$ac_cv_header_ccs_h" = x""yes; then :
7370 cat >>confdefs.h <<_ACEOF
7371#define HAVE_CCS_H 1
95eaa683
AK
7372_ACEOF
7373
f11781c5
AK
7374else
7375 $bailout
95eaa683
AK
7376fi
7377
f11781c5
AK
7378done
7379
7380 check_lib_no_libs ccs ccs_connect
7381 if test $NOTFOUND = 0; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7383$as_echo "no pkg for libccs, using -lccs" >&6; }
7384 CCS_LIBS="-lccs"
7385 HAVE_CCS=yes
7386 fi
7387else
7388 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7389 CCS_LIBS=$pkg_cv_CCS_LIBS
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7391$as_echo "yes" >&6; }
7392 HAVE_CCS=yes
7393fi
7394
7395pkg_failed=no
7396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7397$as_echo_n "checking for GULM... " >&6; }
7398
7399if test -n "$GULM_CFLAGS"; then
7400 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7401 elif test -n "$PKG_CONFIG"; then
7402 if test -n "$PKG_CONFIG" && \
7403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7404 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7405 ac_status=$?
7406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7407 test $ac_status = 0; }; then
7408 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7409else
7410 pkg_failed=yes
7411fi
7412 else
7413 pkg_failed=untried
7414fi
7415if test -n "$GULM_LIBS"; then
7416 pkg_cv_GULM_LIBS="$GULM_LIBS"
7417 elif test -n "$PKG_CONFIG"; then
7418 if test -n "$PKG_CONFIG" && \
7419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7420 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7421 ac_status=$?
7422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423 test $ac_status = 0; }; then
7424 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7425else
7426 pkg_failed=yes
93bd259b 7427fi
f11781c5
AK
7428 else
7429 pkg_failed=untried
ad6254c5 7430fi
ad6254c5 7431
ad6254c5
AK
7432
7433
f11781c5
AK
7434if test $pkg_failed = yes; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
ad6254c5 7437
f11781c5
AK
7438if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7439 _pkg_short_errors_supported=yes
572fefeb 7440else
f11781c5 7441 _pkg_short_errors_supported=no
572fefeb 7442fi
f11781c5
AK
7443 if test $_pkg_short_errors_supported = yes; then
7444 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7445 else
7446 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7447 fi
7448 # Put the nasty error message in config.log where it belongs
7449 echo "$GULM_PKG_ERRORS" >&5
572fefeb 7450
f11781c5
AK
7451 NOTFOUND=0
7452 for ac_header in libgulm.h
7453do :
7454 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7455if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7456 cat >>confdefs.h <<_ACEOF
7457#define HAVE_LIBGULM_H 1
7458_ACEOF
572fefeb 7459
ad6254c5 7460else
f11781c5 7461 $bailout
d0191583 7462fi
8a2fc586 7463
f11781c5 7464done
8a2fc586 7465
f11781c5
AK
7466 check_lib_no_libs gulm lg_core_login
7467 if test $NOTFOUND = 0; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7469$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7470 GULM_LIBS="-lgulm"
7471 HAVE_GULM=yes
7472 fi
7473elif test $pkg_failed = untried; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475$as_echo "no" >&6; }
7476 NOTFOUND=0
7477 for ac_header in libgulm.h
7478do :
7479 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7480if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7481 cat >>confdefs.h <<_ACEOF
7482#define HAVE_LIBGULM_H 1
7483_ACEOF
d179cc7a 7484
93bd259b 7485else
f11781c5 7486 $bailout
93bd259b
AK
7487fi
7488
f11781c5 7489done
2a9a80c9 7490
f11781c5
AK
7491 check_lib_no_libs gulm lg_core_login
7492 if test $NOTFOUND = 0; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7494$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7495 GULM_LIBS="-lgulm"
7496 HAVE_GULM=yes
7497 fi
23b059e7 7498else
f11781c5
AK
7499 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7500 GULM_LIBS=$pkg_cv_GULM_LIBS
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7502$as_echo "yes" >&6; }
7503 HAVE_GULM=yes
d0191583 7504fi
d0191583 7505fi
ad6254c5 7506
f11781c5 7507if test x$BUILDCMAN = xyes; then
ad6254c5 7508
f11781c5
AK
7509pkg_failed=no
7510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7511$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7512
f11781c5
AK
7513if test -n "$CMAN_CFLAGS"; then
7514 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7515 elif test -n "$PKG_CONFIG"; then
7516 if test -n "$PKG_CONFIG" && \
7517 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7518 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7519 ac_status=$?
7520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7521 test $ac_status = 0; }; then
7522 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7523else
7524 pkg_failed=yes
ad6254c5 7525fi
f11781c5
AK
7526 else
7527 pkg_failed=untried
ad6254c5 7528fi
f11781c5
AK
7529if test -n "$CMAN_LIBS"; then
7530 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7531 elif test -n "$PKG_CONFIG"; then
7532 if test -n "$PKG_CONFIG" && \
7533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7534 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7535 ac_status=$?
f11781c5
AK
7536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7537 test $ac_status = 0; }; then
7538 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7539else
f11781c5
AK
7540 pkg_failed=yes
7541fi
7542 else
7543 pkg_failed=untried
93bd259b
AK
7544fi
7545
f11781c5
AK
7546
7547
7548if test $pkg_failed = yes; then
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550$as_echo "no" >&6; }
7551
7552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7553 _pkg_short_errors_supported=yes
7554else
7555 _pkg_short_errors_supported=no
93bd259b 7556fi
f11781c5
AK
7557 if test $_pkg_short_errors_supported = yes; then
7558 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7559 else
7560 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7561 fi
7562 # Put the nasty error message in config.log where it belongs
7563 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7564
f11781c5
AK
7565 NOTFOUND=0
7566 for ac_header in libcman.h
7567do :
7568 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7569if test "x$ac_cv_header_libcman_h" = x""yes; then :
7570 cat >>confdefs.h <<_ACEOF
7571#define HAVE_LIBCMAN_H 1
93bd259b
AK
7572_ACEOF
7573
f11781c5
AK
7574else
7575 $bailout
93bd259b
AK
7576fi
7577
f11781c5 7578done
93bd259b 7579
f11781c5
AK
7580 check_lib_no_libs cman cman_init
7581 if test $NOTFOUND = 0; then
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7583$as_echo "no pkg for libcman, using -lcman" >&6; }
7584 CMAN_LIBS="-lcman"
7585 HAVE_CMAN=yes
7586 fi
7587elif test $pkg_failed = untried; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589$as_echo "no" >&6; }
7590 NOTFOUND=0
7591 for ac_header in libcman.h
7592do :
7593 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7594if test "x$ac_cv_header_libcman_h" = x""yes; then :
7595 cat >>confdefs.h <<_ACEOF
7596#define HAVE_LIBCMAN_H 1
93bd259b 7597_ACEOF
93bd259b 7598
93bd259b 7599else
f11781c5 7600 $bailout
93bd259b
AK
7601fi
7602
f11781c5
AK
7603done
7604
7605 check_lib_no_libs cman cman_init
7606 if test $NOTFOUND = 0; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7608$as_echo "no pkg for libcman, using -lcman" >&6; }
7609 CMAN_LIBS="-lcman"
7610 HAVE_CMAN=yes
7611 fi
7612else
7613 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7614 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7616$as_echo "yes" >&6; }
7617 HAVE_CMAN=yes
93bd259b 7618fi
f11781c5
AK
7619 CHECKCONFDB=yes
7620 CHECKDLM=yes
93bd259b
AK
7621fi
7622
f11781c5
AK
7623if test x$BUILDCOROSYNC = xyes || \
7624 test x$BUILDOPENAIS = xyes; then
93bd259b 7625
f11781c5
AK
7626pkg_failed=no
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7628$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7629
f11781c5
AK
7630if test -n "$COROSYNC_CFLAGS"; then
7631 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7632 elif test -n "$PKG_CONFIG"; then
7633 if test -n "$PKG_CONFIG" && \
7634 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7635 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7636 ac_status=$?
7637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7638 test $ac_status = 0; }; then
7639 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7640else
f11781c5
AK
7641 pkg_failed=yes
7642fi
7643 else
7644 pkg_failed=untried
7645fi
7646if test -n "$COROSYNC_LIBS"; then
7647 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7648 elif test -n "$PKG_CONFIG"; then
7649 if test -n "$PKG_CONFIG" && \
7650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7651 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7652 ac_status=$?
f11781c5
AK
7653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7654 test $ac_status = 0; }; then
7655 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7656else
f11781c5 7657 pkg_failed=yes
ad6254c5 7658fi
f11781c5
AK
7659 else
7660 pkg_failed=untried
ad6254c5 7661fi
ad6254c5 7662
72b2cb61 7663
72b2cb61 7664
f11781c5
AK
7665if test $pkg_failed = yes; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
19a2c6e0 7668
f11781c5
AK
7669if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7670 _pkg_short_errors_supported=yes
7671else
7672 _pkg_short_errors_supported=no
ad6254c5 7673fi
f11781c5
AK
7674 if test $_pkg_short_errors_supported = yes; then
7675 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7676 else
7677 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7678 fi
7679 # Put the nasty error message in config.log where it belongs
7680 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7681
f11781c5
AK
7682 $bailout
7683elif test $pkg_failed = untried; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685$as_echo "no" >&6; }
7686 $bailout
7687else
7688 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7689 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7691$as_echo "yes" >&6; }
7692 HAVE_COROSYNC=yes
7693fi
7694 CHECKCONFDB=yes
ad6254c5
AK
7695fi
7696
f11781c5 7697if test x$BUILDCOROSYNC = xyes; then
f30875db 7698
f11781c5
AK
7699pkg_failed=no
7700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7701$as_echo_n "checking for QUORUM... " >&6; }
7702
7703if test -n "$QUORUM_CFLAGS"; then
7704 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7705 elif test -n "$PKG_CONFIG"; then
7706 if test -n "$PKG_CONFIG" && \
7707 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7708 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7709 ac_status=$?
f11781c5
AK
7710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711 test $ac_status = 0; }; then
7712 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7713else
f11781c5 7714 pkg_failed=yes
f30875db 7715fi
f11781c5
AK
7716 else
7717 pkg_failed=untried
f30875db 7718fi
f11781c5
AK
7719if test -n "$QUORUM_LIBS"; then
7720 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7721 elif test -n "$PKG_CONFIG"; then
7722 if test -n "$PKG_CONFIG" && \
7723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7724 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7725 ac_status=$?
7726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7727 test $ac_status = 0; }; then
7728 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7729else
f11781c5 7730 pkg_failed=yes
f30875db 7731fi
f11781c5
AK
7732 else
7733 pkg_failed=untried
7734fi
7735
f30875db 7736
f11781c5
AK
7737
7738if test $pkg_failed = yes; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741
7742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7743 _pkg_short_errors_supported=yes
7744else
7745 _pkg_short_errors_supported=no
f30875db 7746fi
f11781c5
AK
7747 if test $_pkg_short_errors_supported = yes; then
7748 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7749 else
7750 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7751 fi
7752 # Put the nasty error message in config.log where it belongs
7753 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7754
f11781c5
AK
7755 $bailout
7756elif test $pkg_failed = untried; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
7759 $bailout
7760else
7761 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7762 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7764$as_echo "yes" >&6; }
7765 HAVE_QUORUM=yes
7766fi
7767 CHECKCPG=yes
7768 CHECKDLM=yes
d0191583
JM
7769fi
7770
f11781c5 7771if test x$BUILDOPENAIS = xyes; then
d0191583 7772
f11781c5
AK
7773pkg_failed=no
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7775$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7776
f11781c5
AK
7777if test -n "$SALCK_CFLAGS"; then
7778 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7779 elif test -n "$PKG_CONFIG"; then
7780 if test -n "$PKG_CONFIG" && \
7781 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7782 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7783 ac_status=$?
7784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7785 test $ac_status = 0; }; then
7786 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7787else
7788 pkg_failed=yes
7789fi
7790 else
7791 pkg_failed=untried
7792fi
7793if test -n "$SALCK_LIBS"; then
7794 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7795 elif test -n "$PKG_CONFIG"; then
7796 if test -n "$PKG_CONFIG" && \
7797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7798 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7799 ac_status=$?
f11781c5
AK
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; }; then
7802 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7803else
f11781c5 7804 pkg_failed=yes
8a2fc586 7805fi
f11781c5
AK
7806 else
7807 pkg_failed=untried
8a2fc586 7808fi
d0191583 7809
d0191583 7810
f8f6ec92 7811
f11781c5
AK
7812if test $pkg_failed = yes; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814$as_echo "no" >&6; }
8a2fc586 7815
f11781c5
AK
7816if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7817 _pkg_short_errors_supported=yes
ad6254c5 7818else
f11781c5
AK
7819 _pkg_short_errors_supported=no
7820fi
7821 if test $_pkg_short_errors_supported = yes; then
7822 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7823 else
7824 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7825 fi
7826 # Put the nasty error message in config.log where it belongs
7827 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7828
f11781c5
AK
7829 $bailout
7830elif test $pkg_failed = untried; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833 $bailout
ad6254c5 7834else
f11781c5
AK
7835 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7836 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7838$as_echo "yes" >&6; }
7839 HAVE_SALCK=yes
ad6254c5 7840fi
f11781c5 7841 CHECKCPG=yes
ad6254c5 7842fi
ad6254c5 7843
72b2cb61 7844
f8f6ec92 7845
f11781c5 7846if test x$CHECKCONFDB = xyes; then
f8f6ec92 7847
f11781c5
AK
7848pkg_failed=no
7849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7850$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7851
f11781c5
AK
7852if test -n "$CONFDB_CFLAGS"; then
7853 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7854 elif test -n "$PKG_CONFIG"; then
7855 if test -n "$PKG_CONFIG" && \
7856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7857 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7858 ac_status=$?
f11781c5
AK
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; }; then
7861 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7862else
f11781c5
AK
7863 pkg_failed=yes
7864fi
7865 else
7866 pkg_failed=untried
7867fi
7868if test -n "$CONFDB_LIBS"; then
7869 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7870 elif test -n "$PKG_CONFIG"; then
7871 if test -n "$PKG_CONFIG" && \
7872 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7873 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7874 ac_status=$?
7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876 test $ac_status = 0; }; then
7877 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7878else
7879 pkg_failed=yes
7880fi
7881 else
7882 pkg_failed=untried
f8f6ec92
ZK
7883fi
7884
f8f6ec92 7885
66e941e8 7886
f11781c5
AK
7887if test $pkg_failed = yes; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7889$as_echo "no" >&6; }
7890
7891if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7892 _pkg_short_errors_supported=yes
f8f6ec92 7893else
f11781c5 7894 _pkg_short_errors_supported=no
66e941e8 7895fi
f11781c5
AK
7896 if test $_pkg_short_errors_supported = yes; then
7897 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7898 else
7899 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7900 fi
7901 # Put the nasty error message in config.log where it belongs
7902 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7903
f11781c5
AK
7904 HAVE_CONFDB=no
7905elif test $pkg_failed = untried; then
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
7908 HAVE_CONFDB=no
7909else
7910 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7911 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913$as_echo "yes" >&6; }
7914 HAVE_CONFDB=yes
66e941e8 7915fi
f11781c5
AK
7916
7917 for ac_header in corosync/confdb.h
7918do :
7919 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7920if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7921 cat >>confdefs.h <<_ACEOF
f11781c5 7922#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7923_ACEOF
f11781c5 7924 HAVE_CONFDB_H=yes
66e941e8 7925else
f11781c5 7926 HAVE_CONFDB_H=no
66e941e8 7927fi
dd1f2c09
MB
7928
7929done
7930
7931
f11781c5
AK
7932 if test x$HAVE_CONFDB != xyes && \
7933 test x$HAVE_CONFDB_H = xyes; then
7934 check_lib_no_libs confdb confdb_initialize
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7936$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7937 CONFDB_LIBS="-lconfdb"
7938 HAVE_CONFDB=yes
7939 fi
7940
7941 if test x$BUILDCOROSYNC = xyes && \
7942 test x$HAVE_CONFDB != xyes &&
7943 test x$CLVMD != xall; then
7944 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7945 fi
dd1f2c09 7946fi
f11781c5
AK
7947
7948if test x$CHECKCPG = xyes; then
7949
7950pkg_failed=no
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7952$as_echo_n "checking for CPG... " >&6; }
7953
7954if test -n "$CPG_CFLAGS"; then
7955 pkg_cv_CPG_CFLAGS="$CPG_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 \"libcpg\""; } >&5
7959 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7964else
f11781c5
AK
7965 pkg_failed=yes
7966fi
7967 else
7968 pkg_failed=untried
7969fi
7970if test -n "$CPG_LIBS"; then
7971 pkg_cv_CPG_LIBS="$CPG_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 \"libcpg\""; } >&5
7975 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7976 ac_status=$?
f11781c5
AK
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }; then
7979 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7980else
f11781c5
AK
7981 pkg_failed=yes
7982fi
7983 else
7984 pkg_failed=untried
7985fi
7986
7987
7988
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
7995else
7996 _pkg_short_errors_supported=no
7997fi
7998 if test $_pkg_short_errors_supported = yes; then
7999 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8000 else
8001 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8002 fi
8003 # Put the nasty error message in config.log where it belongs
8004 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 8005
f11781c5
AK
8006 $bailout
8007elif test $pkg_failed = untried; then
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009$as_echo "no" >&6; }
8010 $bailout
8011else
8012 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8013 CPG_LIBS=$pkg_cv_CPG_LIBS
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8015$as_echo "yes" >&6; }
8016 HAVE_CPG=yes
8017fi
dd1f2c09
MB
8018fi
8019
f11781c5 8020if test x$CHECKDLM = xyes; then
dd1f2c09 8021
f11781c5
AK
8022pkg_failed=no
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8024$as_echo_n "checking for DLM... " >&6; }
8025
8026if test -n "$DLM_CFLAGS"; then
8027 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8028 elif test -n "$PKG_CONFIG"; then
8029 if test -n "$PKG_CONFIG" && \
8030 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8031 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8032 ac_status=$?
f11781c5
AK
8033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8034 test $ac_status = 0; }; then
8035 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8036else
f11781c5
AK
8037 pkg_failed=yes
8038fi
8039 else
8040 pkg_failed=untried
8041fi
8042if test -n "$DLM_LIBS"; then
8043 pkg_cv_DLM_LIBS="$DLM_LIBS"
8044 elif test -n "$PKG_CONFIG"; then
8045 if test -n "$PKG_CONFIG" && \
8046 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8047 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8048 ac_status=$?
8049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8050 test $ac_status = 0; }; then
8051 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8052else
8053 pkg_failed=yes
8054fi
8055 else
8056 pkg_failed=untried
dd1f2c09
MB
8057fi
8058
dd1f2c09 8059
dd1f2c09 8060
f11781c5
AK
8061if test $pkg_failed = yes; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063$as_echo "no" >&6; }
8064
8065if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8066 _pkg_short_errors_supported=yes
dd1f2c09 8067else
f11781c5 8068 _pkg_short_errors_supported=no
dd1f2c09 8069fi
f11781c5
AK
8070 if test $_pkg_short_errors_supported = yes; then
8071 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8072 else
8073 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8074 fi
8075 # Put the nasty error message in config.log where it belongs
8076 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8077
f11781c5
AK
8078 NOTFOUND=0
8079 for ac_header in libdlm.h
8080do :
8081 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8082if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8083 cat >>confdefs.h <<_ACEOF
f11781c5 8084#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8085_ACEOF
8086
f11781c5
AK
8087else
8088 $bailout
dd1f2c09 8089fi
f8f6ec92
ZK
8090
8091done
8092
f11781c5
AK
8093 check_lib_no_libs dlm dlm_lock -lpthread
8094 if test $NOTFOUND = 0; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8096$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8097 DLM_LIBS="-ldlm -lpthread"
8098 HAVE_DLM=yes
8099 fi
8100elif test $pkg_failed = untried; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102$as_echo "no" >&6; }
8103 NOTFOUND=0
8104 for ac_header in libdlm.h
8105do :
8106 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8107if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8108 cat >>confdefs.h <<_ACEOF
8109#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8110_ACEOF
8111
f8f6ec92 8112else
f11781c5 8113 $bailout
ad6254c5
AK
8114fi
8115
f11781c5 8116done
8b1a3214 8117
f11781c5
AK
8118 check_lib_no_libs dlm dlm_lock -lpthread
8119 if test $NOTFOUND = 0; then
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8121$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8122 DLM_LIBS="-ldlm -lpthread"
8123 HAVE_DLM=yes
8124 fi
8b1a3214 8125else
f11781c5
AK
8126 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8127 DLM_LIBS=$pkg_cv_DLM_LIBS
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129$as_echo "yes" >&6; }
8130 HAVE_DLM=yes
8b1a3214 8131fi
8b1a3214
AK
8132fi
8133
f11781c5
AK
8134if test x$CLVMD = xall; then
8135 CLVMD=none
8136 CLVMD_CMANAGERS=""
8137 CLVMD_NEEDS_QDISKD=no
8138 if test x$HAVE_CCS = xyes && \
8139 test x$HAVE_GULM = xyes; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8141$as_echo "Enabling clvmd gulm cluster manager" >&6; }
8142 CLVMD="$CLVMD,gulm"
8143 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8144 CLVMD_NEEDS_QDISKD=yes
8145 fi
8146 if test x$HAVE_CMAN = xyes && \
8147 test x$HAVE_DLM = xyes; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8149$as_echo "Enabling clvmd cman cluster manager" >&6; }
8150 CLVMD="$CLVMD,cman"
8151 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8152 CLVMD_NEEDS_QDISKD=yes
8153 fi
8154 if test x$HAVE_COROSYNC = xyes && \
8155 test x$HAVE_QUORUM = xyes && \
8156 test x$HAVE_CPG = xyes && \
8157 test x$HAVE_DLM = xyes && \
8158 test x$HAVE_CONFDB = xyes; then
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8160$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8161 CLVMD="$CLVMD,corosync"
8162 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8163 fi
8164 if test x$HAVE_COROSYNC = xyes && \
8165 test x$HAVE_CPG = xyes && \
8166 test x$HAVE_SALCK = xyes; then
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8168$as_echo "Enabling clvmd openais cluster manager" >&6; }
8169 CLVMD="$CLVMD,openais"
8170 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8171 fi
8172 if test x$CLVMD_NEEDS_QDISKD != xno; then
8173 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8174 fi
8175 if test x$CLVMD = xnone; then
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8177$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8178 fi
8179fi
8180
ad6254c5 8181################################################################################
f11781c5 8182if test "x$CLVMD" != xnone; then
ad6254c5 8183
f11781c5
AK
8184# Check whether --with-clvmd-pidfile was given.
8185if test "${with_clvmd_pidfile+set}" = set; then :
8186 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8187else
f11781c5 8188 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8189fi
7a197a62 8190
ad6254c5 8191
f11781c5
AK
8192cat >>confdefs.h <<_ACEOF
8193#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8194_ACEOF
ad6254c5 8195
ad6254c5 8196fi
7a197a62 8197
f11781c5
AK
8198################################################################################
8199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8200$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8201# Check whether --enable-cmirrord was given.
8202if test "${enable_cmirrord+set}" = set; then :
8203 enableval=$enable_cmirrord; CMIRRORD=$enableval
8204else
8205 CMIRRORD=no
8206fi
8207
8208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8209$as_echo "$CMIRRORD" >&6; }
ad6254c5 8210
f11781c5 8211BUILD_CMIRRORD=$CMIRRORD
7a197a62 8212
f11781c5
AK
8213################################################################################
8214if test "x$BUILD_CMIRRORD" = xyes; then
8215
8216# Check whether --with-cmirrord-pidfile was given.
8217if test "${with_cmirrord_pidfile+set}" = set; then :
8218 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8219else
f11781c5 8220 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8221fi
ad6254c5 8222
72b2cb61 8223
f11781c5
AK
8224cat >>confdefs.h <<_ACEOF
8225#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8226_ACEOF
8227
ad6254c5
AK
8228fi
8229
f11781c5
AK
8230################################################################################
8231if [ "x$BUILD_CMIRRORD" = xyes ]; then
8232 if test x$PKGCONFIG_INIT != x1; then
8233 pkg_config_init
8234 fi
ad6254c5 8235
f11781c5
AK
8236pkg_failed=no
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8238$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8239
f11781c5
AK
8240if test -n "$SACKPT_CFLAGS"; then
8241 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8242 elif test -n "$PKG_CONFIG"; then
8243 if test -n "$PKG_CONFIG" && \
8244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8245 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8246 ac_status=$?
8247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8248 test $ac_status = 0; }; then
8249 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8250else
f11781c5
AK
8251 pkg_failed=yes
8252fi
8253 else
8254 pkg_failed=untried
8255fi
8256if test -n "$SACKPT_LIBS"; then
8257 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8258 elif test -n "$PKG_CONFIG"; then
8259 if test -n "$PKG_CONFIG" && \
8260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8261 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8262 ac_status=$?
f11781c5
AK
8263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8264 test $ac_status = 0; }; then
8265 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8266else
f11781c5
AK
8267 pkg_failed=yes
8268fi
8269 else
8270 pkg_failed=untried
8271fi
539f4a77
ZK
8272
8273
539f4a77 8274
f11781c5
AK
8275if test $pkg_failed = yes; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277$as_echo "no" >&6; }
8278
8279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8280 _pkg_short_errors_supported=yes
539f4a77 8281else
f11781c5 8282 _pkg_short_errors_supported=no
539f4a77 8283fi
f11781c5
AK
8284 if test $_pkg_short_errors_supported = yes; then
8285 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8286 else
8287 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8288 fi
8289 # Put the nasty error message in config.log where it belongs
8290 echo "$SACKPT_PKG_ERRORS" >&5
8291
8292 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8293
8294$SACKPT_PKG_ERRORS
8295
8296Consider adjusting the PKG_CONFIG_PATH environment variable if you
8297installed software in a non-standard prefix.
8298
8299Alternatively, you may set the environment variables SACKPT_CFLAGS
8300and SACKPT_LIBS to avoid the need to call pkg-config.
8301See the pkg-config man page for more details." "$LINENO" 5
8302
8303elif test $pkg_failed = untried; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
8306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8308as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8309is in your PATH or set the PKG_CONFIG environment variable to the full
8310path to pkg-config.
8311
8312Alternatively, you may set the environment variables SACKPT_CFLAGS
8313and SACKPT_LIBS to avoid the need to call pkg-config.
8314See the pkg-config man page for more details.
8315
8316To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8317See \`config.log' for more details" "$LINENO" 5; }
8318
539f4a77 8319else
f11781c5
AK
8320 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8321 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8323$as_echo "yes" >&6; }
539f4a77 8324
539f4a77 8325fi
f11781c5 8326 if test x$HAVE_CPG != xyes; then
539f4a77 8327
f11781c5
AK
8328pkg_failed=no
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8330$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8331
f11781c5
AK
8332if test -n "$CPG_CFLAGS"; then
8333 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8334 elif test -n "$PKG_CONFIG"; then
8335 if test -n "$PKG_CONFIG" && \
8336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8337 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8338 ac_status=$?
f11781c5
AK
8339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8340 test $ac_status = 0; }; then
8341 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8342else
f11781c5
AK
8343 pkg_failed=yes
8344fi
8345 else
8346 pkg_failed=untried
8347fi
8348if test -n "$CPG_LIBS"; then
8349 pkg_cv_CPG_LIBS="$CPG_LIBS"
8350 elif test -n "$PKG_CONFIG"; then
8351 if test -n "$PKG_CONFIG" && \
8352 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8353 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8354 ac_status=$?
8355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8356 test $ac_status = 0; }; then
8357 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8358else
8359 pkg_failed=yes
8360fi
8361 else
8362 pkg_failed=untried
8363fi
8364
8365
8366
8367if test $pkg_failed = yes; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
ad6254c5 8370
f11781c5
AK
8371if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8372 _pkg_short_errors_supported=yes
8373else
8374 _pkg_short_errors_supported=no
ad6254c5 8375fi
f11781c5
AK
8376 if test $_pkg_short_errors_supported = yes; then
8377 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8378 else
8379 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8380 fi
8381 # Put the nasty error message in config.log where it belongs
8382 echo "$CPG_PKG_ERRORS" >&5
8383
8384 as_fn_error $? "Package requirements (libcpg) were not met:
8385
8386$CPG_PKG_ERRORS
8387
8388Consider adjusting the PKG_CONFIG_PATH environment variable if you
8389installed software in a non-standard prefix.
8390
8391Alternatively, you may set the environment variables CPG_CFLAGS
8392and CPG_LIBS to avoid the need to call pkg-config.
8393See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8394
f11781c5
AK
8395elif test $pkg_failed = untried; then
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8397$as_echo "no" >&6; }
8398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8400as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8401is in your PATH or set the PKG_CONFIG environment variable to the full
8402path to pkg-config.
539f4a77 8403
f11781c5
AK
8404Alternatively, you may set the environment variables CPG_CFLAGS
8405and CPG_LIBS to avoid the need to call pkg-config.
8406See the pkg-config man page for more details.
539f4a77 8407
f11781c5
AK
8408To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8409See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8410
539f4a77 8411else
f11781c5
AK
8412 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8413 CPG_LIBS=$pkg_cv_CPG_LIBS
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8415$as_echo "yes" >&6; }
bc1024f8 8416
f11781c5
AK
8417fi
8418 fi
8419fi
8420
8421################################################################################
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8423$as_echo_n "checking whether to enable debugging... " >&6; }
8424# Check whether --enable-debug was given.
8425if test "${enable_debug+set}" = set; then :
8426 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8427else
f11781c5
AK
8428 DEBUG=no
8429fi
8430
8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8432$as_echo "$DEBUG" >&6; }
539f4a77 8433
f11781c5
AK
8434if test x$DEBUG = xyes; then
8435 COPTIMISE_FLAG=
8436else
8437 CSCOPE_CMD=
06e459df
JM
8438fi
8439
f11781c5
AK
8440################################################################################
8441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8442$as_echo_n "checking for C optimisation flag... " >&6; }
8443
8444# Check whether --with-optimisation was given.
8445if test "${with_optimisation+set}" = set; then :
8446 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8447fi
539f4a77 8448
f11781c5
AK
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8450$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8451
f11781c5
AK
8452################################################################################
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8454$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8455# Check whether --enable-profiling was given.
8456if test "${enable_profiling+set}" = set; then :
8457 enableval=$enable_profiling; PROFILING=$enableval
8458else
8459 PROFILING=no
539f4a77
ZK
8460fi
8461
f11781c5
AK
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8463$as_echo "$PROFILING" >&6; }
8464
8465if test "x$PROFILING" = xyes; then
8466 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8467 # Extract the first word of "lcov", so it can be a program name with args.
8468set dummy lcov; ac_word=$2
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470$as_echo_n "checking for $ac_word... " >&6; }
8471if test "${ac_cv_path_LCOV+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
539f4a77 8473else
f11781c5
AK
8474 case $LCOV in
8475 [\\/]* | ?:[\\/]*)
8476 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8477 ;;
8478 *)
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $PATH
8481do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490done
8491 done
8492IFS=$as_save_IFS
539f4a77 8493
f11781c5
AK
8494 ;;
8495esac
8496fi
8497LCOV=$ac_cv_path_LCOV
8498if test -n "$LCOV"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8500$as_echo "$LCOV" >&6; }
8501else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503$as_echo "no" >&6; }
539f4a77
ZK
8504fi
8505
bc1024f8 8506
f11781c5
AK
8507 # Extract the first word of "genhtml", so it can be a program name with args.
8508set dummy genhtml; ac_word=$2
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
8511if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8512 $as_echo_n "(cached) " >&6
ad6254c5 8513else
f11781c5
AK
8514 case $GENHTML in
8515 [\\/]* | ?:[\\/]*)
8516 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8517 ;;
8518 *)
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8529 fi
8530done
8531 done
8532IFS=$as_save_IFS
8a2fc586 8533
f11781c5
AK
8534 ;;
8535esac
8536fi
8537GENHTML=$ac_cv_path_GENHTML
8538if test -n "$GENHTML"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8540$as_echo "$GENHTML" >&6; }
8541else
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
8544fi
8a2fc586 8545
8a2fc586 8546
f11781c5
AK
8547 if test -z "$LCOV" -o -z "$GENHTML"; then
8548 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8549 fi
8550 # Extract the first word of "genpng", so it can be a program name with args.
8551set dummy genpng; ac_word=$2
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if test "${ac_cv_path_GENPNG+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556else
8557 case $GENPNG in
8558 [\\/]* | ?:[\\/]*)
8559 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8560 ;;
8561 *)
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573done
8574 done
8575IFS=$as_save_IFS
ad6254c5 8576
f11781c5 8577 ;;
7a197a62 8578esac
f11781c5
AK
8579fi
8580GENPNG=$ac_cv_path_GENPNG
8581if test -n "$GENPNG"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8583$as_echo "$GENPNG" >&6; }
ad6254c5 8584else
f11781c5
AK
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
8587fi
8588
8589
8590 if test -n "$GENPNG"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8592$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8593 if $GENPNG --help > /dev/null 2>&1 ; then
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8595$as_echo "ok" >&6; }
8596 GENHTML="$GENHTML --frames"
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8599$as_echo "not supported" >&6; }
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8601$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8602 GENPNG=
8603 fi
8604 fi
8605fi
ad6254c5 8606
f11781c5
AK
8607################################################################################
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8609$as_echo_n "checking whether to enable unit testing... " >&6; }
8610# Check whether --enable-testing was given.
8611if test "${enable_testing+set}" = set; then :
8612 enableval=$enable_testing; TESTING=$enableval
8613else
8614 TESTING=no
ad6254c5 8615fi
7a197a62 8616
f11781c5
AK
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8618$as_echo "$TESTING" >&6; }
72b2cb61 8619
f11781c5
AK
8620if test "$TESTING" = yes; then
8621 # Extract the first word of "ruby1.9", so it can be a program name with args.
8622set dummy ruby1.9; ac_word=$2
8623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624$as_echo_n "checking for $ac_word... " >&6; }
8625if test "${ac_cv_path_RUBY19+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
8627else
8628 case $RUBY19 in
8629 [\\/]* | ?:[\\/]*)
8630 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8631 ;;
8632 *)
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634for as_dir in $PATH
8635do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8640 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8642 break 2
8643 fi
bc1024f8 8644done
f11781c5
AK
8645 done
8646IFS=$as_save_IFS
ad6254c5 8647
f11781c5
AK
8648 ;;
8649esac
ad6254c5 8650fi
f11781c5
AK
8651RUBY19=$ac_cv_path_RUBY19
8652if test -n "$RUBY19"; then
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8654$as_echo "$RUBY19" >&6; }
ad6254c5 8655else
f11781c5
AK
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8657$as_echo "no" >&6; }
7a197a62
AK
8658fi
8659
ad6254c5 8660
f11781c5
AK
8661 # Extract the first word of "valgrind", so it can be a program name with args.
8662set dummy valgrind; ac_word=$2
8663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8664$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8665if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8666 $as_echo_n "(cached) " >&6
ad6254c5 8667else
f11781c5 8668 case $VALGRIND in
ad6254c5 8669 [\\/]* | ?:[\\/]*)
f11781c5 8670 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8671 ;;
8672 *)
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674for as_dir in $PATH
8675do
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
f11781c5 8678 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8680 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8682 break 2
8683 fi
8684done
f11781c5 8685 done
7a197a62 8686IFS=$as_save_IFS
ad6254c5
AK
8687
8688 ;;
8689esac
8690fi
f11781c5
AK
8691VALGRIND=$ac_cv_path_VALGRIND
8692if test -n "$VALGRIND"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8694$as_echo "$VALGRIND" >&6; }
ad6254c5 8695else
f11781c5 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8697$as_echo "no" >&6; }
ad6254c5
AK
8698fi
8699
7a197a62 8700
f11781c5
AK
8701 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8702 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8703 fi
8704fi
ad6254c5 8705
f11781c5
AK
8706################################################################################
8707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8708$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8709# Check whether --enable-valgrind_pool was given.
8710if test "${enable_valgrind_pool+set}" = set; then :
8711 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8712else
8713 VALGRIND_POOL=no
8714fi
8715
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8717$as_echo "$VALGRIND_POOL" >&6; }
8718
8719if test "$VALGRIND_POOL" = yes; then
8720 for ac_header in valgrind/memcheck.h
8721do :
8722 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8723if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8724 cat >>confdefs.h <<_ACEOF
8725#define HAVE_VALGRIND_MEMCHECK_H 1
8726_ACEOF
ad6254c5 8727
ad6254c5 8728else
f11781c5 8729 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8730fi
8731
f11781c5
AK
8732done
8733
8734
8735$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8736
ad6254c5
AK
8737fi
8738
8739################################################################################
f11781c5
AK
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8741$as_echo_n "checking whether to use device-mapper... " >&6; }
8742# Check whether --enable-devmapper was given.
8743if test "${enable_devmapper+set}" = set; then :
8744 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8745fi
8746
f11781c5
AK
8747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8748$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8749
f11781c5 8750if test x$DEVMAPPER = xyes; then
ad6254c5 8751
f11781c5
AK
8752$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8753
8754fi
8755
8756################################################################################
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8758$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8759# Check whether --enable-udev_sync was given.
8760if test "${enable_udev_sync+set}" = set; then :
8761 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8762else
f11781c5 8763 UDEV_SYNC=no
7a197a62 8764fi
ad6254c5 8765
f11781c5
AK
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8767$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8768
f11781c5 8769if test x$UDEV_SYNC = xyes; then
7a197a62 8770
d93275eb
PR
8771pkg_failed=no
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8773$as_echo_n "checking for UDEV... " >&6; }
8774
8775if test -n "$UDEV_CFLAGS"; then
8776 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8777 elif test -n "$PKG_CONFIG"; then
8778 if test -n "$PKG_CONFIG" && \
8779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8780 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8781 ac_status=$?
8782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783 test $ac_status = 0; }; then
8784 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8785else
d93275eb 8786 pkg_failed=yes
f11781c5 8787fi
d93275eb
PR
8788 else
8789 pkg_failed=untried
f11781c5 8790fi
d93275eb
PR
8791if test -n "$UDEV_LIBS"; then
8792 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8793 elif test -n "$PKG_CONFIG"; then
8794 if test -n "$PKG_CONFIG" && \
8795 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8796 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8797 ac_status=$?
8798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8799 test $ac_status = 0; }; then
8800 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8801else
d93275eb 8802 pkg_failed=yes
68f2de6d 8803fi
d93275eb
PR
8804 else
8805 pkg_failed=untried
8806fi
8807
8808
8809
8810if test $pkg_failed = yes; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813
8814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8815 _pkg_short_errors_supported=yes
8816else
8817 _pkg_short_errors_supported=no
8818fi
8819 if test $_pkg_short_errors_supported = yes; then
8820 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8821 else
8822 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8823 fi
8824 # Put the nasty error message in config.log where it belongs
8825 echo "$UDEV_PKG_ERRORS" >&5
8826
8827 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8828
8829$UDEV_PKG_ERRORS
8830
8831Consider adjusting the PKG_CONFIG_PATH environment variable if you
8832installed software in a non-standard prefix.
8833
8834Alternatively, you may set the environment variables UDEV_CFLAGS
8835and UDEV_LIBS to avoid the need to call pkg-config.
8836See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8837
d93275eb
PR
8838elif test $pkg_failed = untried; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840$as_echo "no" >&6; }
8841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8843as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8844is in your PATH or set the PKG_CONFIG environment variable to the full
8845path to pkg-config.
8846
8847Alternatively, you may set the environment variables UDEV_CFLAGS
8848and UDEV_LIBS to avoid the need to call pkg-config.
8849See the pkg-config man page for more details.
8850
8851To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8852See \`config.log' for more details" "$LINENO" 5; }
8853
8854else
8855 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8856 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8858$as_echo "yes" >&6; }
8859 UDEV_PC="libudev"
8860fi
68f2de6d 8861
f11781c5 8862$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8863
f11781c5
AK
8864fi
8865
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8867$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8868# Check whether --enable-udev_rules was given.
8869if test "${enable_udev_rules+set}" = set; then :
8870 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8871else
f11781c5 8872 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8873fi
8874
f11781c5
AK
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8876$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8877
a5f46f6a 8878################################################################################
f11781c5
AK
8879# Check whether --enable-compat was given.
8880if test "${enable_compat+set}" = set; then :
8881 enableval=$enable_compat; DM_COMPAT=$enableval
8882else
8883 DM_COMPAT=no
8884fi
a5f46f6a 8885
f11781c5
AK
8886
8887################################################################################
8888# Check whether --enable-units-compat was given.
8889if test "${enable_units_compat+set}" = set; then :
8890 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8891else
f11781c5 8892 UNITS_COMPAT=no
a5f46f6a
AK
8893fi
8894
8895
f11781c5 8896if test x$UNITS_COMPAT = xyes; then
78ce7acc 8897
f11781c5
AK
8898$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8899
8900fi
8901
8902################################################################################
8903# Check whether --enable-ioctl was given.
8904if test "${enable_ioctl+set}" = set; then :
8905 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8906fi
8907
a5f46f6a 8908
ad6254c5 8909################################################################################
f11781c5
AK
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8911$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8912# Check whether --enable-o_direct was given.
8913if test "${enable_o_direct+set}" = set; then :
8914 enableval=$enable_o_direct; ODIRECT=$enableval
8915fi
ad6254c5 8916
f11781c5
AK
8917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8918$as_echo "$ODIRECT" >&6; }
8919
8920if test x$ODIRECT = xyes; then
8921
8922$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8923
ad6254c5 8924fi
ad6254c5 8925
f11781c5
AK
8926################################################################################
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8928$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8929# Check whether --enable-applib was given.
8930if test "${enable_applib+set}" = set; then :
8931 enableval=$enable_applib; APPLIB=$enableval
8932else
8933 APPLIB=no
ad6254c5 8934fi
7a197a62 8935
f11781c5
AK
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8937$as_echo "$APPLIB" >&6; }
ad6254c5 8938
f11781c5
AK
8939test x$APPLIB = xyes \
8940 && LVM2APP_LIB=-llvm2app \
8941 || LVM2APP_LIB=
ad6254c5 8942
f11781c5
AK
8943################################################################################
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8945$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8946# Check whether --enable-cmdlib was given.
8947if test "${enable_cmdlib+set}" = set; then :
8948 enableval=$enable_cmdlib; CMDLIB=$enableval
8949else
8950 CMDLIB=no
ad6254c5 8951fi
7a197a62 8952
f11781c5
AK
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8954$as_echo "$CMDLIB" >&6; }
7a197a62 8955
f11781c5
AK
8956test x$CMDLIB = xyes \
8957 && LVM2CMD_LIB=-llvm2cmd \
8958 || LVM2CMD_LIB=
8959
8960################################################################################
8961# Check whether --enable-pkgconfig was given.
8962if test "${enable_pkgconfig+set}" = set; then :
8963 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8964else
f11781c5 8965 PKGCONFIG=no
ad6254c5 8966fi
ad6254c5 8967
ad6254c5 8968
f11781c5
AK
8969################################################################################
8970# Check whether --enable-write_install was given.
8971if test "${enable_write_install+set}" = set; then :
8972 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8973else
f11781c5 8974 WRITE_INSTALL=no
ad6254c5
AK
8975fi
8976
ad6254c5 8977
f11781c5
AK
8978################################################################################
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8980$as_echo_n "checking whether to install fsadm... " >&6; }
8981# Check whether --enable-fsadm was given.
8982if test "${enable_fsadm+set}" = set; then :
8983 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8984fi
8985
f11781c5
AK
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8987$as_echo "$FSADM" >&6; }
ad6254c5 8988
f11781c5
AK
8989################################################################################
8990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8991$as_echo_n "checking whether to use dmeventd... " >&6; }
8992# Check whether --enable-dmeventd was given.
8993if test "${enable_dmeventd+set}" = set; then :
8994 enableval=$enable_dmeventd; DMEVENTD=$enableval
8995fi
ad6254c5 8996
f11781c5
AK
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8998$as_echo "$DMEVENTD" >&6; }
ad6254c5 8999
f11781c5 9000BUILD_DMEVENTD=$DMEVENTD
ad6254c5 9001
f11781c5
AK
9002if test x$DMEVENTD = xyes; then
9003 if test x$MIRRORS != xinternal; then
9004 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9005 " "$LINENO" 5
9006 fi
9007 if test x$CMDLIB = xno; then
9008 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9009 " "$LINENO" 5
9010 fi
9011fi
ad6254c5 9012
f11781c5 9013if test x$DMEVENTD = xyes; then
ad6254c5 9014
f11781c5 9015$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 9016
f11781c5 9017fi
ad6254c5 9018
f11781c5 9019################################################################################
ad6254c5 9020
f11781c5
AK
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9022$as_echo_n "checking for getline in -lc... " >&6; }
9023if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 9024 $as_echo_n "(cached) " >&6
ad6254c5 9025else
f11781c5
AK
9026 ac_check_lib_save_LIBS=$LIBS
9027LIBS="-lc $LIBS"
9028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9029/* end confdefs.h. */
f11781c5
AK
9030
9031/* Override any GCC internal prototype to avoid an error.
9032 Use char because int might match the return type of a GCC
9033 builtin and then its argument prototype would still apply. */
9034#ifdef __cplusplus
9035extern "C"
9036#endif
9037char getline ();
9038int
9039main ()
9040{
9041return getline ();
9042 ;
9043 return 0;
9044}
ad6254c5 9045_ACEOF
f11781c5
AK
9046if ac_fn_c_try_link "$LINENO"; then :
9047 ac_cv_lib_c_getline=yes
ad6254c5 9048else
f11781c5
AK
9049 ac_cv_lib_c_getline=no
9050fi
9051rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
9053LIBS=$ac_check_lib_save_LIBS
9054fi
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9056$as_echo "$ac_cv_lib_c_getline" >&6; }
9057if test "x$ac_cv_lib_c_getline" = x""yes; then :
9058
9059$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9060
ad6254c5 9061fi
7a197a62 9062
ad6254c5 9063
f11781c5
AK
9064################################################################################
9065
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9067$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9068if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
9070else
9071 ac_check_lib_save_LIBS=$LIBS
9072LIBS="-lc $LIBS"
9073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9074/* end confdefs.h. */
f11781c5
AK
9075
9076/* Override any GCC internal prototype to avoid an error.
9077 Use char because int might match the return type of a GCC
9078 builtin and then its argument prototype would still apply. */
9079#ifdef __cplusplus
9080extern "C"
9081#endif
9082char canonicalize_file_name ();
9083int
9084main ()
9085{
9086return canonicalize_file_name ();
9087 ;
9088 return 0;
9089}
ad6254c5 9090_ACEOF
f11781c5
AK
9091if ac_fn_c_try_link "$LINENO"; then :
9092 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9093else
f11781c5
AK
9094 ac_cv_lib_c_canonicalize_file_name=no
9095fi
9096rm -f core conftest.err conftest.$ac_objext \
9097 conftest$ac_exeext conftest.$ac_ext
9098LIBS=$ac_check_lib_save_LIBS
9099fi
9100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9101$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9102if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9103
9104$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9105
ad6254c5 9106fi
7a197a62 9107
ad6254c5 9108
f11781c5
AK
9109################################################################################
9110if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9111 then exec_prefix="";
9112fi;
7a197a62 9113
f11781c5
AK
9114################################################################################
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9116$as_echo_n "checking for dlopen in -ldl... " >&6; }
9117if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9118 $as_echo_n "(cached) " >&6
ad6254c5 9119else
f11781c5
AK
9120 ac_check_lib_save_LIBS=$LIBS
9121LIBS="-ldl $LIBS"
9122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123/* end confdefs.h. */
ad6254c5 9124
f11781c5
AK
9125/* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9128#ifdef __cplusplus
9129extern "C"
9130#endif
9131char dlopen ();
9132int
9133main ()
9134{
9135return dlopen ();
9136 ;
9137 return 0;
9138}
ad6254c5 9139_ACEOF
f11781c5
AK
9140if ac_fn_c_try_link "$LINENO"; then :
9141 ac_cv_lib_dl_dlopen=yes
ad6254c5 9142else
f11781c5 9143 ac_cv_lib_dl_dlopen=no
795ca3e5 9144fi
f11781c5
AK
9145rm -f core conftest.err conftest.$ac_objext \
9146 conftest$ac_exeext conftest.$ac_ext
9147LIBS=$ac_check_lib_save_LIBS
9148fi
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9150$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9151if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9152
ad6254c5 9153
f11781c5 9154$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9155
f11781c5
AK
9156 DL_LIBS="-ldl"
9157 HAVE_LIBDL=yes
9158else
795ca3e5 9159
f11781c5
AK
9160 DL_LIBS=
9161 HAVE_LIBDL=no
9162fi
8106cdd5 9163
ad6254c5 9164
f11781c5
AK
9165################################################################################
9166if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9167 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9168 \) -a "x$STATIC_LINK" = xyes ];
9169 then as_fn_error $? "Features cannot be 'shared' when building statically
9170" "$LINENO" 5
9171fi
ad6254c5 9172
f11781c5
AK
9173################################################################################
9174if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9176$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9177if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9178 $as_echo_n "(cached) " >&6
795ca3e5 9179else
f11781c5
AK
9180 ac_check_lib_save_LIBS=$LIBS
9181LIBS="-lpthread $LIBS"
9182cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9183/* end confdefs.h. */
8a2fc586 9184
f11781c5
AK
9185/* Override any GCC internal prototype to avoid an error.
9186 Use char because int might match the return type of a GCC
9187 builtin and then its argument prototype would still apply. */
9188#ifdef __cplusplus
9189extern "C"
ad6254c5 9190#endif
f11781c5
AK
9191char pthread_mutex_lock ();
9192int
9193main ()
9194{
9195return pthread_mutex_lock ();
9196 ;
9197 return 0;
9198}
9199_ACEOF
9200if ac_fn_c_try_link "$LINENO"; then :
9201 ac_cv_lib_pthread_pthread_mutex_lock=yes
9202else
9203 ac_cv_lib_pthread_pthread_mutex_lock=no
9204fi
9205rm -f core conftest.err conftest.$ac_objext \
9206 conftest$ac_exeext conftest.$ac_ext
9207LIBS=$ac_check_lib_save_LIBS
9208fi
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9210$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9211if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9212 PTHREAD_LIBS="-lpthread"
9213else
9214 hard_bailout
9215fi
9216
9217fi
9218
9219################################################################################
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9221$as_echo_n "checking whether to enable selinux support... " >&6; }
9222# Check whether --enable-selinux was given.
9223if test "${enable_selinux+set}" = set; then :
9224 enableval=$enable_selinux; SELINUX=$enableval
9225fi
9226
9227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9228$as_echo "$SELINUX" >&6; }
8a2fc586 9229
f11781c5
AK
9230################################################################################
9231if test x$SELINUX = xyes; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9233$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9234if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9235 $as_echo_n "(cached) " >&6
9236else
9237 ac_check_lib_save_LIBS=$LIBS
9238LIBS="-lsepol $LIBS"
9239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h. */
8a2fc586 9241
7a197a62
AK
9242/* Override any GCC internal prototype to avoid an error.
9243 Use char because int might match the return type of a GCC
9244 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9245#ifdef __cplusplus
9246extern "C"
ad6254c5 9247#endif
f11781c5 9248char sepol_check_context ();
ad6254c5
AK
9249int
9250main ()
9251{
f11781c5 9252return sepol_check_context ();
ad6254c5
AK
9253 ;
9254 return 0;
9255}
9256_ACEOF
f11781c5
AK
9257if ac_fn_c_try_link "$LINENO"; then :
9258 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9259else
f11781c5
AK
9260 ac_cv_lib_sepol_sepol_check_context=no
9261fi
9262rm -f core conftest.err conftest.$ac_objext \
9263 conftest$ac_exeext conftest.$ac_ext
9264LIBS=$ac_check_lib_save_LIBS
80992638 9265fi
f11781c5
AK
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9267$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9268if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9269
80992638 9270
f11781c5
AK
9271$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9272
9273 SELINUX_LIBS="-lsepol"
8106cdd5 9274fi
795ca3e5 9275
f11781c5
AK
9276
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9278$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9279if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9280 $as_echo_n "(cached) " >&6
25fbec5b 9281else
f11781c5
AK
9282 ac_check_lib_save_LIBS=$LIBS
9283LIBS="-lselinux $LIBS"
9284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9285/* end confdefs.h. */
80992638 9286
7a197a62
AK
9287/* Override any GCC internal prototype to avoid an error.
9288 Use char because int might match the return type of a GCC
ad6254c5 9289 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9290#ifdef __cplusplus
9291extern "C"
9292#endif
f11781c5 9293char is_selinux_enabled ();
ad6254c5
AK
9294int
9295main ()
9296{
f11781c5 9297return is_selinux_enabled ();
ad6254c5
AK
9298 ;
9299 return 0;
9300}
9301_ACEOF
f11781c5
AK
9302if ac_fn_c_try_link "$LINENO"; then :
9303 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9304else
f11781c5 9305 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9306fi
f11781c5
AK
9307rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
9309LIBS=$ac_check_lib_save_LIBS
25fbec5b 9310fi
f11781c5
AK
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9312$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9313if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9314
f11781c5
AK
9315 for ac_header in selinux/selinux.h
9316do :
9317 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9318if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9319 cat >>confdefs.h <<_ACEOF
9320#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9321_ACEOF
795ca3e5 9322
25fbec5b 9323else
f11781c5 9324 hard_bailout
795ca3e5 9325fi
795ca3e5 9326
f11781c5 9327done
795ca3e5 9328
f11781c5
AK
9329 for ac_header in selinux/label.h
9330do :
9331 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9332if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9333 cat >>confdefs.h <<_ACEOF
9334#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9335_ACEOF
ad6254c5 9336
ad6254c5 9337fi
7a197a62 9338
f11781c5 9339done
7a197a62 9340
ad6254c5 9341
f11781c5 9342$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9343
f11781c5
AK
9344 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9345 SELINUX_PC="libselinux"
9346 HAVE_SELINUX=yes
ad6254c5 9347else
8106cdd5 9348
f11781c5
AK
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9350$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9351 SELINUX_LIBS=
9352 SELINUX_PC=
9353 HAVE_SELINUX=no
795ca3e5 9354fi
ad6254c5 9355
795ca3e5
AK
9356fi
9357
f11781c5
AK
9358################################################################################
9359if test x$REALTIME = xyes; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9361$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9362if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9363 $as_echo_n "(cached) " >&6
26e7f2e0 9364else
f11781c5
AK
9365 ac_check_lib_save_LIBS=$LIBS
9366LIBS="-lrt $LIBS"
9367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9368/* end confdefs.h. */
ad6254c5 9369
f11781c5
AK
9370/* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9373#ifdef __cplusplus
9374extern "C"
9375#endif
9376char clock_gettime ();
ad6254c5
AK
9377int
9378main ()
9379{
f11781c5 9380return clock_gettime ();
ad6254c5
AK
9381 ;
9382 return 0;
9383}
9384_ACEOF
f11781c5
AK
9385if ac_fn_c_try_link "$LINENO"; then :
9386 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9387else
f11781c5 9388 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9389fi
f11781c5
AK
9390rm -f core conftest.err conftest.$ac_objext \
9391 conftest$ac_exeext conftest.$ac_ext
9392LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9393fi
f11781c5
AK
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9395$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9396if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9397 HAVE_REALTIME=yes
9398else
9399 HAVE_REALTIME=no
8106cdd5 9400fi
ad6254c5 9401
ad6254c5 9402
f11781c5 9403 if test x$HAVE_REALTIME = xyes; then
7a197a62 9404
f11781c5 9405$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9406
f11781c5
AK
9407 LIBS="-lrt $LIBS"
9408 else
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9410$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9411 fi
9412fi
9413
9414################################################################################
9415for ac_header in getopt.h
9416do :
9417 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9418if test "x$ac_cv_header_getopt_h" = x""yes; then :
9419 cat >>confdefs.h <<_ACEOF
9420#define HAVE_GETOPT_H 1
9421_ACEOF
9422
9423$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9424
ad6254c5 9425fi
7a197a62 9426
f11781c5 9427done
ad6254c5 9428
7a197a62 9429
f11781c5
AK
9430################################################################################
9431if test x$READLINE != xno; then
9432 lvm_saved_libs=$LIBS
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9434$as_echo_n "checking for library containing tgetent... " >&6; }
9435if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9436 $as_echo_n "(cached) " >&6
ad6254c5 9437else
f11781c5
AK
9438 ac_func_search_save_LIBS=$LIBS
9439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440/* end confdefs.h. */
ad6254c5 9441
f11781c5
AK
9442/* Override any GCC internal prototype to avoid an error.
9443 Use char because int might match the return type of a GCC
9444 builtin and then its argument prototype would still apply. */
9445#ifdef __cplusplus
9446extern "C"
9447#endif
9448char tgetent ();
9449int
9450main ()
9451{
9452return tgetent ();
9453 ;
9454 return 0;
9455}
ad6254c5 9456_ACEOF
f11781c5
AK
9457for ac_lib in '' tinfo ncurses curses termcap termlib; do
9458 if test -z "$ac_lib"; then
9459 ac_res="none required"
9460 else
9461 ac_res=-l$ac_lib
9462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9463 fi
9464 if ac_fn_c_try_link "$LINENO"; then :
9465 ac_cv_search_tgetent=$ac_res
9466fi
9467rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext
9469 if test "${ac_cv_search_tgetent+set}" = set; then :
9470 break
9471fi
9472done
9473if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9474
80992638 9475else
f11781c5 9476 ac_cv_search_tgetent=no
b896caa1 9477fi
f11781c5
AK
9478rm conftest.$ac_ext
9479LIBS=$ac_func_search_save_LIBS
9480fi
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9482$as_echo "$ac_cv_search_tgetent" >&6; }
9483ac_res=$ac_cv_search_tgetent
9484if test "$ac_res" != no; then :
9485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9486 READLINE_LIBS=$ac_cv_search_tgetent
9487else
ad6254c5 9488
f11781c5
AK
9489 if test "$READLINE" = yes; then
9490 as_fn_error $? "termcap could not be found which is required for the
9491--enable-readline option (which is enabled by default). Either disable readline
9492support with --disable-readline or download and install termcap from:
9493 ftp.gnu.org/gnu/termcap
9494Note: if you are using precompiled packages you will also need the development
9495 package as well (which may be called termcap-devel or something similar).
9496Note: (n)curses also seems to work as a substitute for termcap. This was
9497 not found either - but you could try installing that as well." "$LINENO" 5
9498 fi
9499fi
b896caa1 9500
f11781c5
AK
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9502$as_echo_n "checking for readline in -lreadline... " >&6; }
9503if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9504 $as_echo_n "(cached) " >&6
795ca3e5 9505else
f11781c5
AK
9506 ac_check_lib_save_LIBS=$LIBS
9507LIBS="-lreadline $LIBS"
9508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9509/* end confdefs.h. */
8a2fc586 9510
f11781c5
AK
9511/* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
9514#ifdef __cplusplus
9515extern "C"
ad6254c5 9516#endif
f11781c5
AK
9517char readline ();
9518int
9519main ()
9520{
9521return readline ();
9522 ;
9523 return 0;
9524}
9525_ACEOF
9526if ac_fn_c_try_link "$LINENO"; then :
9527 ac_cv_lib_readline_readline=yes
9528else
9529 ac_cv_lib_readline_readline=no
9530fi
9531rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533LIBS=$ac_check_lib_save_LIBS
9534fi
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9536$as_echo "$ac_cv_lib_readline_readline" >&6; }
9537if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9538
8a2fc586 9539
f11781c5
AK
9540$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9541
9542 LIBS=$lvm_saved_libs
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9544$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9545if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9546 $as_echo_n "(cached) " >&6
9547else
9548 ac_check_lib_save_LIBS=$LIBS
9549LIBS="-lreadline $LIBS"
9550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h. */
8a2fc586 9552
7a197a62
AK
9553/* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9556#ifdef __cplusplus
9557extern "C"
ad6254c5 9558#endif
f11781c5 9559char rl_line_buffer ();
ad6254c5
AK
9560int
9561main ()
9562{
f11781c5 9563return rl_line_buffer ();
ad6254c5
AK
9564 ;
9565 return 0;
9566}
9567_ACEOF
f11781c5
AK
9568if ac_fn_c_try_link "$LINENO"; then :
9569 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9570else
f11781c5
AK
9571 ac_cv_lib_readline_rl_line_buffer=no
9572fi
9573rm -f core conftest.err conftest.$ac_objext \
9574 conftest$ac_exeext conftest.$ac_ext
9575LIBS=$ac_check_lib_save_LIBS
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9578$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9579if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9580 READLINE_LIBS="-lreadline"
9581else
9582
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9584$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9585 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9586
ad6254c5 9587fi
7a197a62 9588
f11781c5
AK
9589else
9590
9591 READLINE_LIBS=
9592 if test "$READLINE" = yes; then
9593 as_fn_error $? "GNU Readline could not be found which is required for the
9594--enable-readline option (which is enabled by default). Either disable readline
9595support with --disable-readline or download and install readline from:
9596 ftp.gnu.org/gnu/readline
9597Note: if you are using precompiled packages you will also need the development
9598package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9599 fi
ad6254c5 9600fi
f11781c5
AK
9601
9602 LIBS="$READLINE_LIBS $lvm_saved_libs"
9603 for ac_func in rl_completion_matches
9604do :
9605 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9606if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9607 cat >>confdefs.h <<_ACEOF
f11781c5 9608#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9609_ACEOF
9610
ad6254c5
AK
9611fi
9612done
9613
f11781c5 9614 LIBS=$lvm_saved_libs
ad6254c5
AK
9615fi
9616
f11781c5
AK
9617################################################################################
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9619$as_echo_n "checking whether to enable internationalisation... " >&6; }
9620# Check whether --enable-nls was given.
9621if test "${enable_nls+set}" = set; then :
9622 enableval=$enable_nls; INTL=$enableval
9623else
9624 INTL=no
9625fi
d911ec67 9626
f11781c5
AK
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9628$as_echo "$INTL" >&6; }
9629
9630if test x$INTL = xyes; then
9631# FIXME - Move this - can be device-mapper too
9632 INTL_PACKAGE="lvm2"
9633 # Extract the first word of "msgfmt", so it can be a program name with args.
9634set dummy msgfmt; ac_word=$2
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
9637if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9638 $as_echo_n "(cached) " >&6
d911ec67 9639else
f11781c5
AK
9640 case $MSGFMT in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9643 ;;
9644 *)
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9652 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9655 fi
9656done
9657 done
9658IFS=$as_save_IFS
9659
9660 ;;
d911ec67 9661esac
f11781c5
AK
9662fi
9663MSGFMT=$ac_cv_path_MSGFMT
9664if test -n "$MSGFMT"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9666$as_echo "$MSGFMT" >&6; }
d911ec67 9667else
f11781c5
AK
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669$as_echo "no" >&6; }
9670fi
d911ec67 9671
f11781c5
AK
9672
9673 if [ "x$MSGFMT" == x ];
9674 then as_fn_error $? "msgfmt not found in path $PATH
9675 " "$LINENO" 5
9676 fi;
9677
9678
9679# Check whether --with-localedir was given.
9680if test "${with_localedir+set}" = set; then :
9681 withval=$with_localedir; LOCALEDIR=$withval
9682else
9683 LOCALEDIR='${prefix}/share/locale'
9684fi
9685
9686fi
9687
9688################################################################################
9689
9690# Check whether --with-confdir was given.
9691if test "${with_confdir+set}" = set; then :
9692 withval=$with_confdir; CONFDIR=$withval
9693else
9694 CONFDIR="/etc"
9695fi
9696
9697
9698
9699# Check whether --with-staticdir was given.
9700if test "${with_staticdir+set}" = set; then :
9701 withval=$with_staticdir; STATICDIR=$withval
9702else
9703 STATICDIR='${exec_prefix}/sbin'
9704fi
9705
9706
9707
9708# Check whether --with-usrlibdir was given.
9709if test "${with_usrlibdir+set}" = set; then :
9710 withval=$with_usrlibdir; usrlibdir=$withval
9711else
9712 usrlibdir='${prefix}/lib'
d911ec67
AK
9713fi
9714
d911ec67 9715
d911ec67 9716
f11781c5
AK
9717# Check whether --with-usrsbindir was given.
9718if test "${with_usrsbindir+set}" = set; then :
9719 withval=$with_usrsbindir; usrsbindir=$withval
9720else
9721 usrsbindir='${prefix}/sbin'
d911ec67
AK
9722fi
9723
d911ec67 9724
f11781c5 9725################################################################################
d911ec67 9726
f11781c5
AK
9727# Check whether --with-udev_prefix was given.
9728if test "${with_udev_prefix+set}" = set; then :
9729 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9730else
f11781c5 9731 udev_prefix='${exec_prefix}'
d911ec67 9732fi
d911ec67 9733
f11781c5
AK
9734
9735
9736# Check whether --with-udevdir was given.
9737if test "${with_udevdir+set}" = set; then :
9738 withval=$with_udevdir; udevdir=$withval
9739else
9740 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9741fi
f11781c5
AK
9742
9743
9744################################################################################
9745if test x$READLINE = xyes; then
9746 for ac_header in readline/readline.h readline/history.h
9747do :
9748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9749ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9750if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9751 cat >>confdefs.h <<_ACEOF
9752#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9753_ACEOF
9754
9755else
f11781c5 9756 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9757fi
9758
9759done
9760
9761fi
9762
f11781c5
AK
9763if test x$CLVMD != xnone; then
9764 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
9765do :
9766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9767ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9768if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9769 cat >>confdefs.h <<_ACEOF
9770#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9771_ACEOF
ad6254c5 9772
f11781c5
AK
9773else
9774 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9775fi
7a197a62 9776
f11781c5 9777done
ad6254c5 9778
f11781c5
AK
9779 for ac_func in dup2 getmntent memmove select socket
9780do :
9781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9782ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9783if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9784 cat >>confdefs.h <<_ACEOF
9785#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9786_ACEOF
ad6254c5 9787
f11781c5
AK
9788else
9789 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9790fi
f11781c5 9791done
7a197a62 9792
f11781c5
AK
9793 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9794# -lseq on Dynix/PTX, -lgen on Unixware.
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9796$as_echo_n "checking for library containing getmntent... " >&6; }
9797if test "${ac_cv_search_getmntent+set}" = set; then :
9798 $as_echo_n "(cached) " >&6
9799else
9800 ac_func_search_save_LIBS=$LIBS
9801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802/* end confdefs.h. */
ad6254c5 9803
f11781c5
AK
9804/* Override any GCC internal prototype to avoid an error.
9805 Use char because int might match the return type of a GCC
9806 builtin and then its argument prototype would still apply. */
9807#ifdef __cplusplus
9808extern "C"
9809#endif
9810char getmntent ();
9811int
9812main ()
9813{
9814return getmntent ();
9815 ;
9816 return 0;
9817}
9818_ACEOF
9819for ac_lib in '' sun seq gen; do
9820 if test -z "$ac_lib"; then
9821 ac_res="none required"
9822 else
9823 ac_res=-l$ac_lib
9824 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9825 fi
9826 if ac_fn_c_try_link "$LINENO"; then :
9827 ac_cv_search_getmntent=$ac_res
9828fi
9829rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext
9831 if test "${ac_cv_search_getmntent+set}" = set; then :
9832 break
9833fi
9834done
9835if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9836
ad6254c5 9837else
f11781c5 9838 ac_cv_search_getmntent=no
795ca3e5 9839fi
f11781c5
AK
9840rm conftest.$ac_ext
9841LIBS=$ac_func_search_save_LIBS
9842fi
9843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9844$as_echo "$ac_cv_search_getmntent" >&6; }
9845ac_res=$ac_cv_search_getmntent
9846if test "$ac_res" != no; then :
9847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9848 ac_cv_func_getmntent=yes
9849
9850$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9851
f11781c5
AK
9852else
9853 ac_cv_func_getmntent=no
8106cdd5 9854fi
f11781c5
AK
9855
9856
9857 for ac_header in sys/select.h sys/socket.h
9858do :
9859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9861if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9862 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9863#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9864_ACEOF
795ca3e5 9865
795ca3e5
AK
9866fi
9867
ad6254c5 9868done
80992638 9869
f11781c5
AK
9870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9871$as_echo_n "checking types of arguments for select... " >&6; }
9872if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9873 $as_echo_n "(cached) " >&6
83912faa 9874else
f11781c5
AK
9875 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9876 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9877 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9879/* end confdefs.h. */
9880$ac_includes_default
f11781c5
AK
9881#ifdef HAVE_SYS_SELECT_H
9882# include <sys/select.h>
9883#endif
9884#ifdef HAVE_SYS_SOCKET_H
9885# include <sys/socket.h>
9886#endif
9887
9888int
9889main ()
9890{
9891extern int select ($ac_arg1,
9892 $ac_arg234, $ac_arg234, $ac_arg234,
9893 $ac_arg5);
9894 ;
9895 return 0;
9896}
ad6254c5 9897_ACEOF
f11781c5
AK
9898if ac_fn_c_try_compile "$LINENO"; then :
9899 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9900fi
9901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9902 done
9903 done
9904done
9905# Provide a safe default value.
9906: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9907
ad6254c5 9908fi
f11781c5
AK
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9910$as_echo "$ac_cv_func_select_args" >&6; }
9911ac_save_IFS=$IFS; IFS=','
9912set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9913IFS=$ac_save_IFS
9914shift
7a197a62 9915
f11781c5
AK
9916cat >>confdefs.h <<_ACEOF
9917#define SELECT_TYPE_ARG1 $1
9918_ACEOF
ad6254c5 9919
f11781c5
AK
9920
9921cat >>confdefs.h <<_ACEOF
9922#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9923_ACEOF
f11781c5
AK
9924
9925
9926cat >>confdefs.h <<_ACEOF
9927#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9928_ACEOF
ad6254c5 9929
f11781c5
AK
9930rm -f conftest*
9931
ad6254c5 9932fi
7a197a62 9933
f11781c5
AK
9934if test x$CLUSTER != xnone; then
9935 for ac_header in sys/socket.h sys/un.h
9936do :
9937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9938ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9939if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9940 cat >>confdefs.h <<_ACEOF
9941#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9942_ACEOF
ad6254c5 9943
f11781c5
AK
9944else
9945 as_fn_error $? "bailing out" "$LINENO" 5
9946fi
9947
9948done
9949
9950 for ac_func in socket
9951do :
9952 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9953if test "x$ac_cv_func_socket" = x""yes; then :
9954 cat >>confdefs.h <<_ACEOF
9955#define HAVE_SOCKET 1
9956_ACEOF
7a197a62 9957
80992638 9958else
f11781c5 9959 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9960fi
f11781c5 9961done
83912faa 9962
69792976 9963fi
f11781c5
AK
9964
9965if test x$DMEVENTD = xyes; then
9966 for ac_header in arpa/inet.h
9967do :
9968 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9969if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9970 cat >>confdefs.h <<_ACEOF
f11781c5 9971#define HAVE_ARPA_INET_H 1
ad6254c5 9972_ACEOF
69792976 9973
69792976 9974else
f11781c5 9975 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9976fi
9977
ad6254c5 9978done
69792976 9979
ad6254c5
AK
9980fi
9981
f11781c5
AK
9982if test x$HAVE_LIBDL = xyes; then
9983 for ac_header in dlfcn.h
9984do :
9985 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9986if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9987 cat >>confdefs.h <<_ACEOF
9988#define HAVE_DLFCN_H 1
a5f46f6a 9989_ACEOF
a5f46f6a 9990
f11781c5
AK
9991else
9992 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9993fi
9994
f11781c5 9995done
a5f46f6a 9996
a5f46f6a
AK
9997fi
9998
f11781c5
AK
9999if test x$INTL = xyes; then
10000 for ac_header in libintl.h
10001do :
10002 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10003if test "x$ac_cv_header_libintl_h" = x""yes; then :
10004 cat >>confdefs.h <<_ACEOF
10005#define HAVE_LIBINTL_H 1
10006_ACEOF
a5f46f6a 10007
a5f46f6a 10008else
f11781c5 10009 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 10010fi
f11781c5
AK
10011
10012done
a5f46f6a
AK
10013
10014fi
f11781c5
AK
10015
10016if test x$UDEV_SYNC = xyes; then
10017 for ac_header in sys/ipc.h sys/sem.h
10018do :
10019 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10020ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10021if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
10022 cat >>confdefs.h <<_ACEOF
10023#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10024_ACEOF
10025
10026else
f11781c5 10027 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
10028fi
10029
10030done
10031
10032fi
10033
a653923f
AK
10034################################################################################
10035# Extract the first word of "modprobe", so it can be a program name with args.
10036set dummy modprobe; ac_word=$2
f11781c5 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 10038$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 10039if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 10040 $as_echo_n "(cached) " >&6
72b2cb61
AK
10041else
10042 case $MODPROBE_CMD in
10043 [\\/]* | ?:[\\/]*)
10044 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10045 ;;
10046 *)
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048for as_dir in $PATH
10049do
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
f11781c5 10052 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10054 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10056 break 2
10057 fi
10058done
f11781c5 10059 done
7a197a62 10060IFS=$as_save_IFS
72b2cb61
AK
10061
10062 ;;
10063esac
10064fi
10065MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10066if test -n "$MODPROBE_CMD"; then
f11781c5 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10068$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10069else
f11781c5 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10071$as_echo "no" >&6; }
72b2cb61
AK
10072fi
10073
a653923f 10074
7a197a62 10075
a653923f 10076if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10077
10078cat >>confdefs.h <<_ACEOF
10079#define MODPROBE_CMD "$MODPROBE_CMD"
10080_ACEOF
10081
a653923f
AK
10082fi
10083
b5c2529b 10084
a9b601e2
ZK
10085lvm_exec_prefix=$exec_prefix
10086test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10087test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10088
b5c2529b 10089cat >>confdefs.h <<_ACEOF
a9b601e2 10090#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
10091_ACEOF
10092
10093
10094if test "$CLVMD" != none; then
10095 clvmd_prefix=$ac_default_prefix
10096 test "$prefix" != NONE && clvmd_prefix=$prefix
10097
10098cat >>confdefs.h <<_ACEOF
10099#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10100_ACEOF
10101
10102fi
10103
80992638 10104################################################################################
93bd259b
AK
10105if test "$BUILD_DMEVENTD" = yes; then
10106
10107# Check whether --with-dmeventd-pidfile was given.
f11781c5 10108if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10109 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10110else
71082be4 10111 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10112fi
10113
93bd259b 10114
71082be4
ZK
10115cat >>confdefs.h <<_ACEOF
10116#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10117_ACEOF
93bd259b 10118
71082be4 10119fi
93bd259b
AK
10120
10121if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10122
10123# Check whether --with-dmeventd-path was given.
f11781c5 10124if test "${with_dmeventd_path+set}" = set; then :
71082be4 10125 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10126else
71082be4 10127 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10128fi
10129
93bd259b 10130
71082be4
ZK
10131cat >>confdefs.h <<_ACEOF
10132#define DMEVENTD_PATH "$DMEVENTD_PATH"
10133_ACEOF
3399ae32 10134
71082be4 10135fi
3399ae32 10136
8bae0a1e
AK
10137
10138
8bae0a1e 10139# Check whether --with-default-run-dir was given.
f11781c5 10140if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10141 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10142else
10143 DEFAULT_RUN_DIR="/var/run/lvm"
10144fi
10145
10146cat >>confdefs.h <<_ACEOF
10147#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10148_ACEOF
10149
10150
71082be4 10151################################################################################
3399ae32
AK
10152
10153# Check whether --with-default-system-dir was given.
f11781c5 10154if test "${with_default_system_dir+set}" = set; then :
71082be4 10155 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10156else
71082be4 10157 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10158fi
10159
71082be4 10160
3399ae32
AK
10161cat >>confdefs.h <<_ACEOF
10162#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10163_ACEOF
10164
10165
10166
3399ae32 10167# Check whether --with-default-archive-subdir was given.
f11781c5 10168if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10169 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10170else
71082be4 10171 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10172fi
10173
71082be4 10174
3399ae32
AK
10175cat >>confdefs.h <<_ACEOF
10176#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10177_ACEOF
10178
10179
10180
3399ae32 10181# Check whether --with-default-backup-subdir was given.
f11781c5 10182if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10183 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10184else
71082be4 10185 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10186fi
10187
71082be4 10188
3399ae32
AK
10189cat >>confdefs.h <<_ACEOF
10190#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10191_ACEOF
10192
10193
10194
3399ae32 10195# Check whether --with-default-cache-subdir was given.
f11781c5 10196if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10197 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10198else
71082be4 10199 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10200fi
10201
71082be4 10202
3399ae32
AK
10203cat >>confdefs.h <<_ACEOF
10204#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10205_ACEOF
10206
10207
10208
3399ae32 10209# Check whether --with-default-locking-dir was given.
f11781c5 10210if test "${with_default_locking_dir+set}" = set; then :
71082be4 10211 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10212else
71082be4 10213 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10214fi
10215
71082be4 10216
3399ae32
AK
10217cat >>confdefs.h <<_ACEOF
10218#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10219_ACEOF
10220
10221
fea55602
DW
10222################################################################################
10223
10224# Check whether --with-default-data-alignment was given.
f11781c5 10225if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10226 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10227else
10228 DEFAULT_DATA_ALIGNMENT=1
10229fi
10230
10231
10232cat >>confdefs.h <<_ACEOF
10233#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10234_ACEOF
10235
10236
93bd259b 10237################################################################################
f11781c5 10238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10239$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10240
10241# Check whether --with-interface was given.
f11781c5 10242if test "${with_interface+set}" = set; then :
71082be4 10243 withval=$with_interface; interface=$withval
93bd259b 10244else
71082be4 10245 interface=ioctl
93bd259b
AK
10246fi
10247
10248if [ "x$interface" != xioctl ];
10249then
f11781c5 10250 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10251fi
f11781c5 10252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10253$as_echo "$interface" >&6; }
93bd259b
AK
10254
10255################################################################################
db8b5af9 10256DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10257
10258cat >>confdefs.h <<_ACEOF
10259#define DM_LIB_VERSION $DM_LIB_VERSION
10260_ACEOF
10261
10262
db8b5af9 10263DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10264
db8b5af9 10265LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10266
db8b5af9 10267VER=`cat "$srcdir"/VERSION`
bf456146 10268LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10269VER=`echo "$VER" | $AWK '{print $1}'`
10270LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10271VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10272LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10273LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10274LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10275LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10276
80992638 10277################################################################################
fae0c576 10278
83912faa 10279
795ca3e5
AK
10280
10281
10282
10283
10284
10285
5a52dca9 10286
8ef2b021 10287
199e490e 10288
69792976
AK
10289
10290
10291
d0191583 10292
69792976 10293
8106cdd5
AK
10294
10295
10296
10297
10298
d68a82ec 10299
036f273a 10300
7d1552c9 10301
8106cdd5 10302
0a62c911 10303
8106cdd5 10304
4a7f3eb2 10305
4922197a
AK
10306
10307
d8ac0fbc 10308
1a9ea74d 10309
8a2fc586
AK
10310
10311
d0191583 10312
93bd259b
AK
10313
10314
10315
10316
10317
d0191583
JM
10318
10319
10320
10321
10322
8a2fc586 10323
19a2c6e0 10324
f7f0854e
ZK
10325
10326
3ceb7608 10327
8ce0cbda 10328
8b1a3214 10329
ec6a6fbe
AK
10330
10331
10332
10333
e2997b73
AK
10334
10335
10336
10337
10338
10339
a946372e
AK
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
ec6a6fbe 10351
33f732c5 10352
66e941e8 10353
d3c8211f 10354
7e3fe830 10355
a5f46f6a
AK
10356
10357
10358
572fefeb 10359
90c80887 10360
3399ae32
AK
10361
10362
10363
10364
10365
90c80887 10366
bf456146 10367
e1b8a236 10368
0878503f 10369
8fea97b7 10370
54b362f9 10371
b1f08e51 10372
d1e8046f 10373
fea55602 10374
c89bc357 10375
37ddf259 10376
606d0858 10377
68f2de6d
AK
10378
10379
80992638 10380################################################################################
d1e8046f 10381ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10382
ad6254c5 10383cat >confcache <<\_ACEOF
795ca3e5
AK
10384# This file is a shell script that caches the results of configure
10385# tests run on this system so they can be shared between configure
ad6254c5
AK
10386# scripts and configure runs, see configure's option --config-cache.
10387# It is not useful on other systems. If it contains results you don't
10388# want to keep, you may remove or edit it.
795ca3e5 10389#
ad6254c5
AK
10390# config.status only pays attention to the cache file if you give it
10391# the --recheck option to rerun configure.
795ca3e5 10392#
ad6254c5
AK
10393# `ac_cv_env_foo' variables (set or unset) will be overridden when
10394# loading this file, other *unset* `ac_cv_foo' will be assigned the
10395# following values.
10396
10397_ACEOF
10398
795ca3e5
AK
10399# The following way of writing the cache mishandles newlines in values,
10400# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10401# So, we kill variables containing newlines.
795ca3e5
AK
10402# Ultrix sh set writes to stderr and can't be redirected directly,
10403# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10404(
10405 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10406 eval ac_val=\$$ac_var
10407 case $ac_val in #(
10408 *${as_nl}*)
10409 case $ac_var in #(
f11781c5 10410 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10411$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10412 esac
10413 case $ac_var in #(
10414 _ | IFS | as_nl) ;; #(
ec6a6fbe 10415 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10416 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10417 esac ;;
10418 esac
10419 done
10420
ad6254c5 10421 (set) 2>&1 |
7a197a62
AK
10422 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10423 *${as_nl}ac_space=\ *)
f11781c5
AK
10424 # `set' does not quote correctly, so add quotes: double-quote
10425 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10426 sed -n \
8a2fc586
AK
10427 "s/'/'\\\\''/g;
10428 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10429 ;; #(
ad6254c5
AK
10430 *)
10431 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10433 ;;
7a197a62
AK
10434 esac |
10435 sort
10436) |
ad6254c5 10437 sed '
7a197a62 10438 /^ac_cv_env_/b end
ad6254c5 10439 t clear
7a197a62 10440 :clear
ad6254c5
AK
10441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10442 t end
7a197a62
AK
10443 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10444 :end' >>confcache
10445if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10446 if test -w "$cache_file"; then
10447 test "x$cache_file" != "x/dev/null" &&
f11781c5 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10449$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10450 cat confcache >$cache_file
795ca3e5 10451 else
f11781c5 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10453$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10454 fi
10455fi
10456rm -f confcache
10457
795ca3e5
AK
10458test "x$prefix" = xNONE && prefix=$ac_default_prefix
10459# Let make expand exec_prefix.
10460test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10461
72b2cb61 10462DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10463
10464ac_libobjs=
10465ac_ltlibobjs=
f11781c5 10466U=
ad6254c5
AK
10467for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10468 # 1. Remove the extension, and $U if already installed.
7a197a62 10469 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10470 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10471 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10472 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10473 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10474 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10475done
10476LIBOBJS=$ac_libobjs
80992638 10477
ad6254c5
AK
10478LTLIBOBJS=$ac_ltlibobjs
10479
10480
10481
10482: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10483ac_write_fail=0
ad6254c5
AK
10484ac_clean_files_save=$ac_clean_files
10485ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10486{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10487$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10488as_write_fail=0
10489cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10490#! $SHELL
10491# Generated by $as_me.
795ca3e5 10492# Run this file to recreate the current configuration.
795ca3e5 10493# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10494# configure, is in config.log if it exists.
10495
10496debug=false
10497ac_cs_recheck=false
10498ac_cs_silent=false
ad6254c5 10499
f11781c5
AK
10500SHELL=\${CONFIG_SHELL-$SHELL}
10501export SHELL
10502_ASEOF
10503cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10504## -------------------- ##
10505## M4sh Initialization. ##
10506## -------------------- ##
ad6254c5 10507
25fbec5b
AK
10508# Be more Bourne compatible
10509DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10510if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10511 emulate sh
10512 NULLCMD=:
ec6a6fbe 10513 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10514 # is contrary to our usage. Disable this feature.
10515 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10516 setopt NO_GLOB_SUBST
10517else
f11781c5
AK
10518 case `(set -o) 2>/dev/null` in #(
10519 *posix*) :
10520 set -o posix ;; #(
10521 *) :
10522 ;;
25fbec5b 10523esac
7a197a62 10524fi
25fbec5b
AK
10525
10526
ec6a6fbe
AK
10527as_nl='
10528'
10529export as_nl
10530# Printing a long string crashes Solaris 7 /usr/bin/printf.
10531as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10532as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10533as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10534# Prefer a ksh shell builtin over an external printf program on Solaris,
10535# but without wasting forks for bash or zsh.
10536if test -z "$BASH_VERSION$ZSH_VERSION" \
10537 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10538 as_echo='print -r --'
10539 as_echo_n='print -rn --'
10540elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10541 as_echo='printf %s\n'
10542 as_echo_n='printf %s'
10543else
10544 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10545 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10546 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10547 else
ec6a6fbe
AK
10548 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10549 as_echo_n_body='eval
10550 arg=$1;
f11781c5 10551 case $arg in #(
ec6a6fbe
AK
10552 *"$as_nl"*)
10553 expr "X$arg" : "X\\(.*\\)$as_nl";
10554 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10555 esac;
10556 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10557 '
10558 export as_echo_n_body
10559 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10560 fi
ec6a6fbe
AK
10561 export as_echo_body
10562 as_echo='sh -c $as_echo_body as_echo'
10563fi
10564
10565# The user is always right.
10566if test "${PATH_SEPARATOR+set}" != set; then
10567 PATH_SEPARATOR=:
10568 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10569 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10570 PATH_SEPARATOR=';'
10571 }
ad6254c5
AK
10572fi
10573
ad6254c5 10574
7a197a62
AK
10575# IFS
10576# We need space, tab and new line, in precisely that order. Quoting is
10577# there to prevent editors from complaining about space-tab.
10578# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10579# splitting by setting IFS to empty value.)
7a197a62
AK
10580IFS=" "" $as_nl"
10581
10582# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10583case $0 in #((
7a197a62
AK
10584 *[\\/]* ) as_myself=$0 ;;
10585 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
f11781c5
AK
10590 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10591 done
7a197a62
AK
10592IFS=$as_save_IFS
10593
10594 ;;
10595esac
10596# We did not find ourselves, most probably we were run as `sh COMMAND'
10597# in which case we are not to be found in the path.
10598if test "x$as_myself" = x; then
10599 as_myself=$0
10600fi
10601if test ! -f "$as_myself"; then
ec6a6fbe 10602 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10603 exit 1
7a197a62
AK
10604fi
10605
f11781c5
AK
10606# Unset variables that we do not need and which cause bugs (e.g. in
10607# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10608# suppresses any "Segmentation fault" message there. '((' could
10609# trigger a bug in pdksh 5.2.14.
10610for as_var in BASH_ENV ENV MAIL MAILPATH
10611do eval test x\${$as_var+set} = xset \
10612 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10613done
ad6254c5
AK
10614PS1='$ '
10615PS2='> '
10616PS4='+ '
10617
10618# NLS nuisances.
ec6a6fbe
AK
10619LC_ALL=C
10620export LC_ALL
10621LANGUAGE=C
10622export LANGUAGE
8106cdd5 10623
f11781c5
AK
10624# CDPATH.
10625(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10626
10627
10628# as_fn_error STATUS ERROR [LINENO LOG_FD]
10629# ----------------------------------------
10630# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10631# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10632# script with STATUS, using 1 if that was 0.
10633as_fn_error ()
10634{
10635 as_status=$1; test $as_status -eq 0 && as_status=1
10636 if test "$4"; then
10637 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10638 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10639 fi
10640 $as_echo "$as_me: error: $2" >&2
10641 as_fn_exit $as_status
10642} # as_fn_error
10643
10644
10645# as_fn_set_status STATUS
10646# -----------------------
10647# Set $? to STATUS, without forking.
10648as_fn_set_status ()
10649{
10650 return $1
10651} # as_fn_set_status
10652
10653# as_fn_exit STATUS
10654# -----------------
10655# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10656as_fn_exit ()
10657{
10658 set +e
10659 as_fn_set_status $1
10660 exit $1
10661} # as_fn_exit
10662
10663# as_fn_unset VAR
10664# ---------------
10665# Portably unset VAR.
10666as_fn_unset ()
10667{
10668 { eval $1=; unset $1;}
10669}
10670as_unset=as_fn_unset
10671# as_fn_append VAR VALUE
10672# ----------------------
10673# Append the text in VALUE to the end of the definition contained in VAR. Take
10674# advantage of any shell optimizations that allow amortized linear growth over
10675# repeated appends, instead of the typical quadratic growth present in naive
10676# implementations.
10677if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10678 eval 'as_fn_append ()
10679 {
10680 eval $1+=\$2
10681 }'
10682else
10683 as_fn_append ()
10684 {
10685 eval $1=\$$1\$2
10686 }
10687fi # as_fn_append
10688
10689# as_fn_arith ARG...
10690# ------------------
10691# Perform arithmetic evaluation on the ARGs, and store the result in the
10692# global $as_val. Take advantage of shells that can avoid forks. The arguments
10693# must be portable across $(()) and expr.
10694if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10695 eval 'as_fn_arith ()
10696 {
10697 as_val=$(( $* ))
10698 }'
10699else
10700 as_fn_arith ()
10701 {
10702 as_val=`expr "$@" || test $? -eq 1`
10703 }
10704fi # as_fn_arith
10705
10706
7a197a62
AK
10707if expr a : '\(a\)' >/dev/null 2>&1 &&
10708 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10709 as_expr=expr
10710else
10711 as_expr=false
10712fi
8106cdd5 10713
7a197a62 10714if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10715 as_basename=basename
10716else
10717 as_basename=false
10718fi
10719
f11781c5
AK
10720if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10721 as_dirname=dirname
10722else
10723 as_dirname=false
10724fi
ad6254c5 10725
7a197a62 10726as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10727$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10728 X"$0" : 'X\(//\)$' \| \
7a197a62 10729 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10730$as_echo X/"$0" |
7a197a62
AK
10731 sed '/^.*\/\([^/][^/]*\)\/*$/{
10732 s//\1/
10733 q
10734 }
10735 /^X\/\(\/\/\)$/{
10736 s//\1/
10737 q
10738 }
10739 /^X\/\(\/\).*/{
10740 s//\1/
10741 q
10742 }
10743 s/.*/./; q'`
ad6254c5 10744
f11781c5
AK
10745# Avoid depending upon Character Ranges.
10746as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10747as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10748as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10749as_cr_digits='0123456789'
10750as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10751
10752ECHO_C= ECHO_N= ECHO_T=
f11781c5 10753case `echo -n x` in #(((((
7a197a62 10754-n*)
f11781c5 10755 case `echo 'xy\c'` in
7a197a62 10756 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10757 xy) ECHO_C='\c';;
10758 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10759 ECHO_T=' ';;
7a197a62
AK
10760 esac;;
10761*)
10762 ECHO_N='-n';;
ad6254c5 10763esac
80992638 10764
ad6254c5 10765rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10766if test -d conf$$.dir; then
10767 rm -f conf$$.dir/conf$$.file
10768else
10769 rm -f conf$$.dir
ec6a6fbe
AK
10770 mkdir conf$$.dir 2>/dev/null
10771fi
10772if (echo >conf$$.file) 2>/dev/null; then
10773 if ln -s conf$$.file conf$$ 2>/dev/null; then
10774 as_ln_s='ln -s'
10775 # ... but there are two gotchas:
10776 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10777 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10778 # In both cases, we have to default to `cp -p'.
10779 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10780 as_ln_s='cp -p'
10781 elif ln conf$$.file conf$$ 2>/dev/null; then
10782 as_ln_s=ln
10783 else
ad6254c5 10784 as_ln_s='cp -p'
ec6a6fbe 10785 fi
ad6254c5
AK
10786else
10787 as_ln_s='cp -p'
10788fi
7a197a62
AK
10789rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10790rmdir conf$$.dir 2>/dev/null
8106cdd5 10791
f11781c5
AK
10792
10793# as_fn_mkdir_p
10794# -------------
10795# Create "$as_dir" as a directory, including parents if necessary.
10796as_fn_mkdir_p ()
10797{
10798
10799 case $as_dir in #(
10800 -*) as_dir=./$as_dir;;
10801 esac
10802 test -d "$as_dir" || eval $as_mkdir_p || {
10803 as_dirs=
10804 while :; do
10805 case $as_dir in #(
10806 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10807 *) as_qdir=$as_dir;;
10808 esac
10809 as_dirs="'$as_qdir' $as_dirs"
10810 as_dir=`$as_dirname -- "$as_dir" ||
10811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10812 X"$as_dir" : 'X\(//\)[^/]' \| \
10813 X"$as_dir" : 'X\(//\)$' \| \
10814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10815$as_echo X"$as_dir" |
10816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10817 s//\1/
10818 q
10819 }
10820 /^X\(\/\/\)[^/].*/{
10821 s//\1/
10822 q
10823 }
10824 /^X\(\/\/\)$/{
10825 s//\1/
10826 q
10827 }
10828 /^X\(\/\).*/{
10829 s//\1/
10830 q
10831 }
10832 s/.*/./; q'`
10833 test -d "$as_dir" && break
10834 done
10835 test -z "$as_dirs" || eval "mkdir $as_dirs"
10836 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10837
10838
10839} # as_fn_mkdir_p
ad6254c5 10840if mkdir -p . 2>/dev/null; then
f11781c5 10841 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10842else
8a2fc586 10843 test -d ./-p && rmdir ./-p
ad6254c5
AK
10844 as_mkdir_p=false
10845fi
10846
25fbec5b
AK
10847if test -x / >/dev/null 2>&1; then
10848 as_test_x='test -x'
7a197a62 10849else
25fbec5b
AK
10850 if ls -dL / >/dev/null 2>&1; then
10851 as_ls_L_option=L
10852 else
10853 as_ls_L_option=
10854 fi
10855 as_test_x='
10856 eval sh -c '\''
10857 if test -d "$1"; then
ec6a6fbe 10858 test -d "$1/.";
25fbec5b 10859 else
f11781c5 10860 case $1 in #(
ec6a6fbe 10861 -*)set "./$1";;
25fbec5b 10862 esac;
f11781c5 10863 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10864 ???[sx]*):;;*)false;;esac;fi
10865 '\'' sh
10866 '
7a197a62 10867fi
25fbec5b 10868as_executable_p=$as_test_x
ad6254c5
AK
10869
10870# Sed expression to map a string onto a valid CPP name.
8a2fc586 10871as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10872
10873# Sed expression to map a string onto a valid variable name.
8a2fc586 10874as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10875
10876
ad6254c5 10877exec 6>&1
f11781c5
AK
10878## ----------------------------------- ##
10879## Main body of $CONFIG_STATUS script. ##
10880## ----------------------------------- ##
10881_ASEOF
10882test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10883
f11781c5
AK
10884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10885# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10886# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10887# values after options handling.
10888ac_log="
ad6254c5 10889This file was extended by $as_me, which was
f11781c5 10890generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10891
10892 CONFIG_FILES = $CONFIG_FILES
10893 CONFIG_HEADERS = $CONFIG_HEADERS
10894 CONFIG_LINKS = $CONFIG_LINKS
10895 CONFIG_COMMANDS = $CONFIG_COMMANDS
10896 $ $0 $@
10897
7a197a62
AK
10898on `(hostname || uname -n) 2>/dev/null | sed 1q`
10899"
10900
ad6254c5
AK
10901_ACEOF
10902
ec6a6fbe
AK
10903case $ac_config_files in *"
10904"*) set x $ac_config_files; shift; ac_config_files=$*;;
10905esac
10906
10907case $ac_config_headers in *"
10908"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10909esac
10910
10911
10912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10913# Files that config.status was made for.
68f2de6d
AK
10914config_files="$ac_config_files"
10915config_headers="$ac_config_headers"
ad6254c5 10916
7a197a62 10917_ACEOF
ad6254c5 10918
ec6a6fbe 10919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10920ac_cs_usage="\
f11781c5
AK
10921\`$as_me' instantiates files and other configuration actions
10922from templates according to the current configuration. Unless the files
10923and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10924
f11781c5 10925Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10926
10927 -h, --help print this help, then exit
25fbec5b 10928 -V, --version print version number and configuration settings, then exit
f11781c5 10929 --config print configuration, then exit
ec6a6fbe
AK
10930 -q, --quiet, --silent
10931 do not print progress messages
ad6254c5
AK
10932 -d, --debug don't remove temporary files
10933 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10934 --file=FILE[:TEMPLATE]
10935 instantiate the configuration file FILE
10936 --header=FILE[:TEMPLATE]
10937 instantiate the configuration header FILE
ad6254c5
AK
10938
10939Configuration files:
10940$config_files
10941
72b2cb61
AK
10942Configuration headers:
10943$config_headers
10944
f11781c5 10945Report bugs to the package provider."
ad6254c5 10946
7a197a62 10947_ACEOF
ec6a6fbe 10948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10949ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10950ac_cs_version="\\
10951config.status
f11781c5
AK
10952configured by $0, generated by GNU Autoconf 2.66,
10953 with options \\"\$ac_cs_config\\"
ad6254c5 10954
f11781c5 10955Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10956This config.status script is free software; the Free Software Foundation
10957gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10958
10959ac_pwd='$ac_pwd'
10960srcdir='$srcdir'
10961INSTALL='$INSTALL'
fddafd51 10962MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10963AWK='$AWK'
10964test -n "\$AWK" || AWK=awk
ad6254c5
AK
10965_ACEOF
10966
ec6a6fbe
AK
10967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10968# The default lists apply if the user does not specify any file.
ad6254c5
AK
10969ac_need_defaults=:
10970while test $# != 0
10971do
10972 case $1 in
10973 --*=*)
7a197a62
AK
10974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10975 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10976 ac_shift=:
10977 ;;
7a197a62 10978 *)
ad6254c5
AK
10979 ac_option=$1
10980 ac_optarg=$2
10981 ac_shift=shift
10982 ;;
ad6254c5
AK
10983 esac
10984
10985 case $ac_option in
10986 # Handling of the options.
ad6254c5
AK
10987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10988 ac_cs_recheck=: ;;
7a197a62 10989 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10990 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10991 --config | --confi | --conf | --con | --co | --c )
10992 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10993 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10994 debug=: ;;
10995 --file | --fil | --fi | --f )
10996 $ac_shift
ec6a6fbe
AK
10997 case $ac_optarg in
10998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10999 esac
f11781c5 11000 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
11001 ac_need_defaults=false;;
11002 --header | --heade | --head | --hea )
11003 $ac_shift
ec6a6fbe
AK
11004 case $ac_optarg in
11005 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11006 esac
f11781c5 11007 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 11008 ac_need_defaults=false;;
7a197a62
AK
11009 --he | --h)
11010 # Conflict between --help and --header
f11781c5
AK
11011 as_fn_error $? "ambiguous option: \`$1'
11012Try \`$0 --help' for more information.";;
7a197a62 11013 --help | --hel | -h )
ec6a6fbe 11014 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
11015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11016 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11017 ac_cs_silent=: ;;
11018
11019 # This is an error.
f11781c5
AK
11020 -*) as_fn_error $? "unrecognized option: \`$1'
11021Try \`$0 --help' for more information." ;;
ad6254c5 11022
f11781c5 11023 *) as_fn_append ac_config_targets " $1"
7a197a62 11024 ac_need_defaults=false ;;
ad6254c5
AK
11025
11026 esac
11027 shift
11028done
11029
11030ac_configure_extra_args=
11031
11032if $ac_cs_silent; then
11033 exec 6>/dev/null
11034 ac_configure_extra_args="$ac_configure_extra_args --silent"
11035fi
11036
11037_ACEOF
ec6a6fbe 11038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 11039if \$ac_cs_recheck; then
ec6a6fbe
AK
11040 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11041 shift
11042 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11043 CONFIG_SHELL='$SHELL'
7a197a62 11044 export CONFIG_SHELL
ec6a6fbe 11045 exec "\$@"
ad6254c5
AK
11046fi
11047
11048_ACEOF
ec6a6fbe 11049cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11050exec 5>>config.log
11051{
11052 echo
11053 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11054## Running $as_me. ##
11055_ASBOX
ec6a6fbe 11056 $as_echo "$ac_log"
7a197a62 11057} >&5
ad6254c5 11058
7a197a62 11059_ACEOF
ec6a6fbe 11060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11061_ACEOF
ad6254c5 11062
ec6a6fbe 11063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11064
11065# Handling of arguments.
ad6254c5
AK
11066for ac_config_target in $ac_config_targets
11067do
7a197a62
AK
11068 case $ac_config_target in
11069 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11070 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11071 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11072 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11073 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11074 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
11075 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11076 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11077 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11078 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
11079 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11080 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 11081 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11082 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11083 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11084 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11085 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11086 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11087 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11088 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11089 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11090 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11091 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 11092 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
11093 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11094 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11095 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11096 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11097 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11098 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11099 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11100 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 11101 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 11102 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11103 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11104 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 11105 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11106 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11107 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11108 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11109 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11110
f11781c5 11111 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11112 esac
ad6254c5
AK
11113done
11114
7a197a62 11115
ad6254c5
AK
11116# If the user did not use the arguments to specify the items to instantiate,
11117# then the envvar interface is used. Set only those that are not.
11118# We use the long form for the default assignment because of an extremely
11119# bizarre bug on SunOS 4.1.3.
11120if $ac_need_defaults; then
11121 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11122 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11123fi
11124
11125# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11126# simply because there is no reason against having it here, and in addition,
ad6254c5 11127# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11128# Hook for its removal unless debugging.
11129# Note that there is a small window in which the directory will not be cleaned:
11130# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11131$debug ||
11132{
7a197a62
AK
11133 tmp=
11134 trap 'exit_status=$?
11135 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11136' 0
f11781c5 11137 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11138}
ad6254c5
AK
11139# Create a (secure) tmp directory for tmp files.
11140
11141{
7a197a62 11142 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11143 test -n "$tmp" && test -d "$tmp"
11144} ||
11145{
7a197a62
AK
11146 tmp=./conf$$-$RANDOM
11147 (umask 077 && mkdir "$tmp")
f11781c5 11148} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11149
ec6a6fbe
AK
11150# Set up the scripts for CONFIG_FILES section.
11151# No need to generate them if there are no CONFIG_FILES.
11152# This happens for instance with `./config.status config.h'.
1995c9ff 11153if test -n "$CONFIG_FILES"; then
7a197a62 11154
68f2de6d 11155
f11781c5
AK
11156ac_cr=`echo X | tr X '\015'`
11157# On cygwin, bash can eat \r inside `` if the user requested igncr.
11158# But we know of no other shell where ac_cr would be empty at this
11159# point, so we can use a bashism as a fallback.
11160if test "x$ac_cr" = x; then
11161 eval ac_cr=\$\'\\r\'
11162fi
ec6a6fbe
AK
11163ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11164if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11165 ac_cs_awk_cr='\\r'
11166else
11167 ac_cs_awk_cr=$ac_cr
1995c9ff 11168fi
7a197a62 11169
ec6a6fbe 11170echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11171_ACEOF
7a197a62 11172
8106cdd5 11173
ec6a6fbe
AK
11174{
11175 echo "cat >conf$$subs.awk <<_ACEOF" &&
11176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11177 echo "_ACEOF"
11178} >conf$$subs.sh ||
f11781c5
AK
11179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11180ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11181ac_delim='%!_!# '
11182for ac_last_try in false false false false false :; do
ec6a6fbe 11183 . ./conf$$subs.sh ||
f11781c5 11184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11185
11186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11187 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11188 break
11189 elif $ac_last_try; then
f11781c5 11190 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11191 else
11192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11193 fi
11194done
ec6a6fbe
AK
11195rm -f conf$$subs.sh
11196
11197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11198cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11199_ACEOF
11200sed -n '
11201h
11202s/^/S["/; s/!.*/"]=/
11203p
11204g
11205s/^[^!]*!//
11206:repl
11207t repl
11208s/'"$ac_delim"'$//
11209t delim
11210:nl
11211h
f11781c5 11212s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11213t more1
11214s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11215p
11216n
11217b repl
11218:more1
11219s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11220p
11221g
11222s/.\{148\}//
11223t nl
11224:delim
11225h
f11781c5 11226s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11227t more2
11228s/["\\]/\\&/g; s/^/"/; s/$/"/
11229p
11230b
11231:more2
11232s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11233p
11234g
11235s/.\{148\}//
11236t delim
11237' <conf$$subs.awk | sed '
11238/^[^""]/{
11239 N
11240 s/\n//
11241}
11242' >>$CONFIG_STATUS || ac_write_fail=1
11243rm -f conf$$subs.awk
11244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11245_ACAWK
11246cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11247 for (key in S) S_is_set[key] = 1
11248 FS = "\a"
7a197a62 11249
ec6a6fbe
AK
11250}
11251{
11252 line = $ 0
11253 nfields = split(line, field, "@")
11254 substed = 0
11255 len = length(field[1])
11256 for (i = 2; i < nfields; i++) {
11257 key = field[i]
11258 keylen = length(key)
11259 if (S_is_set[key]) {
11260 value = S[key]
11261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11262 len += length(value) + length(field[++i])
11263 substed = 1
11264 } else
11265 len += 1 + keylen
11266 }
11267
11268 print line
11269}
fddafd51 11270
ec6a6fbe 11271_ACAWK
1995c9ff 11272_ACEOF
ec6a6fbe
AK
11273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11274if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11276else
11277 cat
11278fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11279 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11280_ACEOF
11281
f11781c5
AK
11282# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11283# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11284# trailing colons and then remove the whole line if VPATH becomes empty
11285# (actually we leave an empty line to preserve line numbers).
11286if test "x$srcdir" = x.; then
f11781c5
AK
11287 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11288h
11289s///
11290s/^/:/
11291s/[ ]*$/:/
11292s/:\$(srcdir):/:/g
11293s/:\${srcdir}:/:/g
11294s/:@srcdir@:/:/g
11295s/^:*//
7a197a62 11296s/:*$//
f11781c5
AK
11297x
11298s/\(=[ ]*\).*/\1/
11299G
11300s/\n//
7a197a62
AK
11301s/^[^=]*=[ ]*$//
11302}'
11303fi
11304
ec6a6fbe 11305cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11306fi # test -n "$CONFIG_FILES"
11307
ec6a6fbe
AK
11308# Set up the scripts for CONFIG_HEADERS section.
11309# No need to generate them if there are no CONFIG_HEADERS.
11310# This happens for instance with `./config.status Makefile'.
11311if test -n "$CONFIG_HEADERS"; then
11312cat >"$tmp/defines.awk" <<\_ACAWK ||
11313BEGIN {
11314_ACEOF
11315
11316# Transform confdefs.h into an awk script `defines.awk', embedded as
11317# here-document in config.status, that substitutes the proper values into
11318# config.h.in to produce config.h.
11319
11320# Create a delimiter string that does not exist in confdefs.h, to ease
11321# handling of long lines.
11322ac_delim='%!_!# '
11323for ac_last_try in false false :; do
11324 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11325 if test -z "$ac_t"; then
11326 break
11327 elif $ac_last_try; then
f11781c5 11328 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11329 else
11330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11331 fi
11332done
11333
11334# For the awk script, D is an array of macro values keyed by name,
11335# likewise P contains macro parameters if any. Preserve backslash
11336# newline sequences.
11337
11338ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11339sed -n '
11340s/.\{148\}/&'"$ac_delim"'/g
11341t rset
11342:rset
11343s/^[ ]*#[ ]*define[ ][ ]*/ /
11344t def
11345d
11346:def
11347s/\\$//
11348t bsnl
11349s/["\\]/\\&/g
11350s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11351D["\1"]=" \3"/p
11352s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11353d
11354:bsnl
11355s/["\\]/\\&/g
11356s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11357D["\1"]=" \3\\\\\\n"\\/p
11358t cont
11359s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11360t cont
11361d
11362:cont
11363n
11364s/.\{148\}/&'"$ac_delim"'/g
11365t clear
11366:clear
11367s/\\$//
11368t bsnlc
11369s/["\\]/\\&/g; s/^/"/; s/$/"/p
11370d
11371:bsnlc
11372s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11373b cont
11374' <confdefs.h | sed '
11375s/'"$ac_delim"'/"\\\
11376"/g' >>$CONFIG_STATUS || ac_write_fail=1
11377
11378cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11379 for (key in D) D_is_set[key] = 1
11380 FS = "\a"
11381}
11382/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11383 line = \$ 0
11384 split(line, arg, " ")
11385 if (arg[1] == "#") {
11386 defundef = arg[2]
11387 mac1 = arg[3]
11388 } else {
11389 defundef = substr(arg[1], 2)
11390 mac1 = arg[2]
11391 }
11392 split(mac1, mac2, "(") #)
11393 macro = mac2[1]
11394 prefix = substr(line, 1, index(line, defundef) - 1)
11395 if (D_is_set[macro]) {
11396 # Preserve the white space surrounding the "#".
11397 print prefix "define", macro P[macro] D[macro]
11398 next
11399 } else {
11400 # Replace #undef with comments. This is necessary, for example,
11401 # in the case of _POSIX_SOURCE, which is predefined and required
11402 # on some systems where configure will not decide to define it.
11403 if (defundef == "undef") {
11404 print "/*", prefix defundef, macro, "*/"
11405 next
11406 }
11407 }
11408}
11409{ print }
11410_ACAWK
11411_ACEOF
11412cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11413 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11414fi # test -n "$CONFIG_HEADERS"
11415
7a197a62 11416
ec6a6fbe
AK
11417eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11418shift
11419for ac_tag
7a197a62
AK
11420do
11421 case $ac_tag in
11422 :[FHLC]) ac_mode=$ac_tag; continue;;
11423 esac
11424 case $ac_mode$ac_tag in
11425 :[FHL]*:*);;
f11781c5 11426 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11427 :[FH]-) ac_tag=-:-;;
11428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11429 esac
11430 ac_save_IFS=$IFS
11431 IFS=:
11432 set x $ac_tag
11433 IFS=$ac_save_IFS
11434 shift
11435 ac_file=$1
11436 shift
11437
11438 case $ac_mode in
11439 :L) ac_source=$1;;
11440 :[FH])
11441 ac_file_inputs=
11442 for ac_f
11443 do
11444 case $ac_f in
11445 -) ac_f="$tmp/stdin";;
11446 *) # Look for the file first in the build tree, then in the source tree
11447 # (if the path is not absolute). The absolute path cannot be DOS-style,
11448 # because $ac_f cannot contain `:'.
11449 test -f "$ac_f" ||
11450 case $ac_f in
11451 [\\/$]*) false;;
11452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11453 esac ||
f11781c5 11454 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11455 esac
ec6a6fbe 11456 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11457 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11458 done
11459
11460 # Let's still pretend it is `configure' which instantiates (i.e., don't
11461 # use $as_me), people would be surprised to read:
11462 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11463 configure_input='Generated from '`
11464 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11465 `' by configure.'
7a197a62
AK
11466 if test x"$ac_file" != x-; then
11467 configure_input="$ac_file. $configure_input"
f11781c5 11468 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11469$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11470 fi
ec6a6fbe
AK
11471 # Neutralize special characters interpreted by sed in replacement strings.
11472 case $configure_input in #(
11473 *\&* | *\|* | *\\* )
11474 ac_sed_conf_input=`$as_echo "$configure_input" |
11475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11476 *) ac_sed_conf_input=$configure_input;;
11477 esac
7a197a62
AK
11478
11479 case $ac_tag in
ec6a6fbe 11480 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11482 esac
11483 ;;
80992638 11484 esac
8106cdd5 11485
7a197a62 11486 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11487$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11488 X"$ac_file" : 'X\(//\)[^/]' \| \
11489 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11491$as_echo X"$ac_file" |
7a197a62
AK
11492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11493 s//\1/
11494 q
11495 }
11496 /^X\(\/\/\)[^/].*/{
11497 s//\1/
11498 q
11499 }
11500 /^X\(\/\/\)$/{
11501 s//\1/
11502 q
11503 }
11504 /^X\(\/\).*/{
11505 s//\1/
11506 q
11507 }
11508 s/.*/./; q'`
f11781c5 11509 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11510 ac_builddir=.
11511
7a197a62
AK
11512case "$ac_dir" in
11513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11514*)
ec6a6fbe 11515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11516 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11518 case $ac_top_builddir_sub in
11519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11521 esac ;;
11522esac
11523ac_abs_top_builddir=$ac_pwd
11524ac_abs_builddir=$ac_pwd$ac_dir_suffix
11525# for backward compatibility:
11526ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11527
11528case $srcdir in
7a197a62 11529 .) # We are building in place.
ad6254c5 11530 ac_srcdir=.
7a197a62
AK
11531 ac_top_srcdir=$ac_top_builddir_sub
11532 ac_abs_top_srcdir=$ac_pwd ;;
11533 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11534 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11535 ac_top_srcdir=$srcdir
11536 ac_abs_top_srcdir=$srcdir ;;
11537 *) # Relative name.
11538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11539 ac_top_srcdir=$ac_top_build_prefix$srcdir
11540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11541esac
7a197a62 11542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11543
ad6254c5 11544
7a197a62
AK
11545 case $ac_mode in
11546 :F)
11547 #
11548 # CONFIG_FILE
11549 #
ad6254c5
AK
11550
11551 case $INSTALL in
11552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11554 esac
fddafd51
ZK
11555 ac_MKDIR_P=$MKDIR_P
11556 case $MKDIR_P in
11557 [\\/$]* | ?:[\\/]* ) ;;
11558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11559 esac
7a197a62 11560_ACEOF
795ca3e5 11561
ec6a6fbe 11562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11563# If the template does not know about datarootdir, expand it.
11564# FIXME: This hack should be removed a few years after 2.60.
11565ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11566ac_sed_dataroot='
11567/datarootdir/ {
7a197a62
AK
11568 p
11569 q
11570}
11571/@datadir@/p
11572/@docdir@/p
11573/@infodir@/p
11574/@localedir@/p
f11781c5 11575/@mandir@/p'
ec6a6fbe 11576case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11577*datarootdir*) ac_datarootdir_seen=yes;;
11578*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11580$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11581_ACEOF
ec6a6fbe 11582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11583 ac_datarootdir_hack='
11584 s&@datadir@&$datadir&g
11585 s&@docdir@&$docdir&g
11586 s&@infodir@&$infodir&g
11587 s&@localedir@&$localedir&g
11588 s&@mandir@&$mandir&g
f11781c5 11589 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11590esac
11591_ACEOF
11592
11593# Neutralize VPATH when `$srcdir' = `.'.
11594# Shell code in configure.ac might set extrasub.
11595# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11597ac_sed_extra="$ac_vpsub
ad6254c5
AK
11598$extrasub
11599_ACEOF
ec6a6fbe 11600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11601:t
11602/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11603s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11604s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11605s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11606s&@srcdir@&$ac_srcdir&;t t
11607s&@abs_srcdir@&$ac_abs_srcdir&;t t
11608s&@top_srcdir@&$ac_top_srcdir&;t t
11609s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11610s&@builddir@&$ac_builddir&;t t
11611s&@abs_builddir@&$ac_abs_builddir&;t t
11612s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11613s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11614s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11615$ac_datarootdir_hack
ec6a6fbe
AK
11616"
11617eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11619
11620test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11621 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11624which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11625$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11626which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11627
11628 rm -f "$tmp/stdin"
72b2cb61 11629 case $ac_file in
ec6a6fbe
AK
11630 -) cat "$tmp/out" && rm -f "$tmp/out";;
11631 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11632 esac \
f11781c5 11633 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11634 ;;
11635 :H)
11636 #
11637 # CONFIG_HEADER
11638 #
72b2cb61 11639 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11640 {
11641 $as_echo "/* $configure_input */" \
11642 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11643 } >"$tmp/config.h" \
f11781c5 11644 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11645 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11647$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11648 else
ec6a6fbe
AK
11649 rm -f "$ac_file"
11650 mv "$tmp/config.h" "$ac_file" \
f11781c5 11651 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11652 fi
11653 else
ec6a6fbe
AK
11654 $as_echo "/* $configure_input */" \
11655 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11656 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11657 fi
7a197a62
AK
11658 ;;
11659
11660
11661 esac
11662
11663done # for ac_tag
795ca3e5 11664
795ca3e5 11665
f11781c5 11666as_fn_exit 0
ad6254c5 11667_ACEOF
ad6254c5
AK
11668ac_clean_files=$ac_clean_files_save
11669
ec6a6fbe 11670test $ac_write_fail = 0 ||
f11781c5 11671 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11672
ad6254c5
AK
11673
11674# configure is writing to config.log, and then calls config.status.
11675# config.status does its own redirection, appending to config.log.
11676# Unfortunately, on DOS this fails, as config.log is still kept open
11677# by configure, so config.status won't be able to write to it; its
11678# output is simply discarded. So we exec the FD to /dev/null,
11679# effectively closing config.log, so it can be properly (re)opened and
11680# appended to by config.status. When coming back to configure, we
11681# need to make the FD available again.
11682if test "$no_create" != yes; then
11683 ac_cs_success=:
11684 ac_config_status_args=
11685 test "$silent" = yes &&
11686 ac_config_status_args="$ac_config_status_args --quiet"
11687 exec 5>/dev/null
11688 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11689 exec 5>>config.log
11690 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11691 # would make configure fail if this is the last instruction.
f11781c5 11692 $ac_cs_success || as_fn_exit 1
ad6254c5 11693fi
ec6a6fbe 11694if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11696$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11697fi
795ca3e5 11698
2dc95e1c
AK
11699
11700if test x$ODIRECT != xyes; then
f11781c5 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11702$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11703fi
This page took 1.699747 seconds and 5 git commands to generate.