]> sourceware.org Git - lvm2.git/blame - configure
.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 443
f11781c5
AK
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
6e5c1f75 606DMEVENTD_PIDFILE
23b059e7 607WRITE_INSTALL
0878503f 608UDEV_SYNC
a5f46f6a 609UDEV_RULES
f7f0854e 610UDEV_PC
54b362f9 611TESTING
ec6a6fbe
AK
612STATIC_LINK
613STATICDIR
614SNAPSHOTS
f7f0854e 615SELINUX_PC
e1b8a236 616SELINUX_LIBS
cac52ca4 617REPLICATORS
539f4a77 618READLINE_LIBS
cac52ca4 619RAID
f30875db 620PTHREAD_LIBS
ec6a6fbe
AK
621POOL
622PKGCONFIG
606d0858 623OCFDIR
37ddf259 624OCF
ec6a6fbe
AK
625MIRRORS
626LVM_RELEASE_DATE
627LVM_RELEASE
628LVM_PATCHLEVEL
629LVM_MINOR
630LVM_MAJOR
bf456146 631LVM_LIBAPI
ec6a6fbe 632LVM_VERSION
ec6a6fbe
AK
633LVM1_FALLBACK
634LVM1
635LOCALEDIR
636LIB_SUFFIX
637LDDEPS
638JOBS
639INTL_PACKAGE
640INTL
ec6a6fbe
AK
641HAVE_REALTIME
642HAVE_LIBDL
ec6a6fbe
AK
643FSADM
644DM_LIB_PATCHLEVEL
645DM_LIB_VERSION
646DM_IOCTLS
647DM_DEVICE_UID
648DM_DEVICE_MODE
649DM_DEVICE_GID
650DM_COMPAT
d1e8046f 651DMEVENTD_PATH
ec6a6fbe 652DMEVENTD
19a2c6e0 653DL_LIBS
ec6a6fbe 654DEVMAPPER
b1f08e51 655DEFAULT_RUN_DIR
3399ae32 656DEFAULT_LOCK_DIR
fea55602 657DEFAULT_DATA_ALIGNMENT
3399ae32
AK
658DEFAULT_CACHE_SUBDIR
659DEFAULT_BACKUP_SUBDIR
660DEFAULT_ARCHIVE_SUBDIR
661DEFAULT_SYS_DIR
ec6a6fbe
AK
662DEBUG
663COPTIMISE_FLAG
e2997b73 664CONFDIR
ec6a6fbe 665CMDLIB
c89bc357 666CLVMD_CMANAGERS
ec6a6fbe
AK
667CLVMD
668CLUSTER
669CLDWHOLEARCHIVE
670CLDNOWHOLEARCHIVE
671CLDFLAGS
672BUILD_DMEVENTD
66fd4529 673BUILD_CMIRRORD
572fefeb 674APPLIB
ec6a6fbe
AK
675MODPROBE_CMD
676MSGFMT
677LVM2CMD_LIB
572fefeb 678LVM2APP_LIB
d93275eb
PR
679UDEV_LIBS
680UDEV_CFLAGS
54b362f9
AK
681VALGRIND
682RUBY19
fd4728e1 683GENPNG
ec6a6fbe
AK
684GENHTML
685LCOV
90c80887
AK
686SACKPT_LIBS
687SACKPT_CFLAGS
a946372e
AK
688DLM_LIBS
689DLM_CFLAGS
e2997b73
AK
690CPG_LIBS
691CPG_CFLAGS
692CONFDB_LIBS
693CONFDB_CFLAGS
a946372e
AK
694SALCK_LIBS
695SALCK_CFLAGS
e2997b73
AK
696QUORUM_LIBS
697QUORUM_CFLAGS
a946372e
AK
698COROSYNC_LIBS
699COROSYNC_CFLAGS
700CMAN_LIBS
701CMAN_CFLAGS
a946372e
AK
702PKGCONFIGINIT_LIBS
703PKGCONFIGINIT_CFLAGS
f11781c5
AK
704PKG_CONFIG_LIBDIR
705PKG_CONFIG_PATH
e2997b73 706PKG_CONFIG
ec6a6fbe
AK
707POW_LIB
708LIBOBJS
709ALLOCA
710CSCOPE_CMD
711CFLOW_CMD
712RANLIB
713MKDIR_P
714SET_MAKE
715LN_S
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719EGREP
720GREP
721CPP
722OBJEXT
723EXEEXT
724ac_ct_CC
725CPPFLAGS
726LDFLAGS
727CFLAGS
728CC
729AWK
730SED
731target_os
732target_vendor
733target_cpu
734target
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
f11781c5 773PACKAGE_URL
ec6a6fbe
AK
774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
ad6254c5 781ac_subst_files=''
ec6a6fbe
AK
782ac_user_opts='
783enable_option_checking
784enable_static_link
785with_user
786with_group
787with_device_uid
788with_device_gid
789with_device_mode
d0df875d 790with_device_nodes_on
ec6a6fbe
AK
791enable_lvm1_fallback
792with_lvm1
793with_pool
794with_cluster
795with_snapshots
796with_mirrors
cac52ca4 797with_raid
8fea97b7 798with_replicators
ec6a6fbe
AK
799enable_readline
800enable_realtime
37ddf259 801enable_ocf
606d0858 802with_ocfdir
ec6a6fbe 803with_clvmd
8c4e8a18 804with_clvmd_pidfile
66fd4529
AK
805enable_cmirrord
806with_cmirrord_pidfile
ec6a6fbe
AK
807enable_debug
808with_optimisation
809enable_profiling
54b362f9 810enable_testing
d1e8046f 811enable_valgrind_pool
ec6a6fbe 812enable_devmapper
a5f46f6a
AK
813enable_udev_sync
814enable_udev_rules
ec6a6fbe 815enable_compat
95eaa683 816enable_units_compat
ec6a6fbe
AK
817enable_ioctl
818enable_o_direct
572fefeb 819enable_applib
ec6a6fbe
AK
820enable_cmdlib
821enable_pkgconfig
23b059e7 822enable_write_install
ec6a6fbe
AK
823enable_fsadm
824enable_dmeventd
825enable_selinux
826enable_nls
827with_localedir
828with_confdir
829with_staticdir
830with_usrlibdir
831with_usrsbindir
a5f46f6a 832with_udev_prefix
78ce7acc 833with_udevdir
ec6a6fbe
AK
834with_dmeventd_pidfile
835with_dmeventd_path
8bae0a1e 836with_default_run_dir
3399ae32
AK
837with_default_system_dir
838with_default_archive_subdir
839with_default_backup_subdir
840with_default_cache_subdir
841with_default_locking_dir
fea55602 842with_default_data_alignment
ec6a6fbe
AK
843with_interface
844'
7a197a62
AK
845 ac_precious_vars='build_alias
846host_alias
847target_alias
848CC
849CFLAGS
850LDFLAGS
25fbec5b 851LIBS
7a197a62 852CPPFLAGS
e2997b73
AK
853CPP
854PKG_CONFIG
f11781c5
AK
855PKG_CONFIG_PATH
856PKG_CONFIG_LIBDIR
a946372e
AK
857PKGCONFIGINIT_CFLAGS
858PKGCONFIGINIT_LIBS
a946372e
AK
859CMAN_CFLAGS
860CMAN_LIBS
861COROSYNC_CFLAGS
862COROSYNC_LIBS
e2997b73
AK
863QUORUM_CFLAGS
864QUORUM_LIBS
a946372e
AK
865SALCK_CFLAGS
866SALCK_LIBS
e2997b73
AK
867CONFDB_CFLAGS
868CONFDB_LIBS
869CPG_CFLAGS
a946372e
AK
870CPG_LIBS
871DLM_CFLAGS
90c80887
AK
872DLM_LIBS
873SACKPT_CFLAGS
d93275eb
PR
874SACKPT_LIBS
875UDEV_CFLAGS
876UDEV_LIBS'
7a197a62 877
795ca3e5
AK
878
879# Initialize some variables set by options.
ad6254c5
AK
880ac_init_help=
881ac_init_version=false
ec6a6fbe
AK
882ac_unrecognized_opts=
883ac_unrecognized_sep=
795ca3e5
AK
884# The variables have the same names as the options, with
885# dashes changed to underlines.
ad6254c5 886cache_file=/dev/null
795ca3e5 887exec_prefix=NONE
795ca3e5 888no_create=
795ca3e5
AK
889no_recursion=
890prefix=NONE
891program_prefix=NONE
892program_suffix=NONE
893program_transform_name=s,x,x,
894silent=
895site=
896srcdir=
795ca3e5
AK
897verbose=
898x_includes=NONE
899x_libraries=NONE
ad6254c5
AK
900
901# Installation directory options.
902# These are left unexpanded so users can "make install exec_prefix=/foo"
903# and all the variables that are supposed to be based on exec_prefix
904# by default will actually change.
905# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 906# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
907bindir='${exec_prefix}/bin'
908sbindir='${exec_prefix}/sbin'
909libexecdir='${exec_prefix}/libexec'
7a197a62
AK
910datarootdir='${prefix}/share'
911datadir='${datarootdir}'
795ca3e5
AK
912sysconfdir='${prefix}/etc'
913sharedstatedir='${prefix}/com'
914localstatedir='${prefix}/var'
795ca3e5
AK
915includedir='${prefix}/include'
916oldincludedir='/usr/include'
7a197a62
AK
917docdir='${datarootdir}/doc/${PACKAGE}'
918infodir='${datarootdir}/info'
919htmldir='${docdir}'
920dvidir='${docdir}'
921pdfdir='${docdir}'
922psdir='${docdir}'
923libdir='${exec_prefix}/lib'
924localedir='${datarootdir}/locale'
925mandir='${datarootdir}/man'
795ca3e5 926
795ca3e5 927ac_prev=
7a197a62 928ac_dashdash=
795ca3e5
AK
929for ac_option
930do
795ca3e5
AK
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
7a197a62 933 eval $ac_prev=\$ac_option
795ca3e5
AK
934 ac_prev=
935 continue
936 fi
937
7a197a62
AK
938 case $ac_option in
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *) ac_optarg=yes ;;
941 esac
795ca3e5
AK
942
943 # Accept the important Cygnus configure options, so we can diagnose typos.
944
7a197a62
AK
945 case $ac_dashdash$ac_option in
946 --)
947 ac_dashdash=yes ;;
795ca3e5
AK
948
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
950 ac_prev=bindir ;;
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 952 bindir=$ac_optarg ;;
795ca3e5
AK
953
954 -build | --build | --buil | --bui | --bu)
ad6254c5 955 ac_prev=build_alias ;;
795ca3e5 956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 957 build_alias=$ac_optarg ;;
795ca3e5
AK
958
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
964 cache_file=$ac_optarg ;;
965
966 --config-cache | -C)
967 cache_file=config.cache ;;
795ca3e5 968
7a197a62 969 -datadir | --datadir | --datadi | --datad)
795ca3e5 970 ac_prev=datadir ;;
7a197a62 971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 972 datadir=$ac_optarg ;;
795ca3e5 973
7a197a62
AK
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
980
795ca3e5 981 -disable-* | --disable-*)
ec6a6fbe 982 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 983 # Reject names that are not valid shell variable names.
ec6a6fbe 984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 985 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990"enable_$ac_useropt"
991"*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=no ;;
7a197a62
AK
996
997 -docdir | --docdir | --docdi | --doc | --do)
998 ac_prev=docdir ;;
999 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1000 docdir=$ac_optarg ;;
1001
1002 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1003 ac_prev=dvidir ;;
1004 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1005 dvidir=$ac_optarg ;;
795ca3e5
AK
1006
1007 -enable-* | --enable-*)
ec6a6fbe 1008 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1009 # Reject names that are not valid shell variable names.
ec6a6fbe 1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1011 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016"enable_$ac_useropt"
1017"*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1022
1023 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025 | --exec | --exe | --ex)
1026 ac_prev=exec_prefix ;;
1027 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029 | --exec=* | --exe=* | --ex=*)
ad6254c5 1030 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1031
1032 -gas | --gas | --ga | --g)
1033 # Obsolete; use --with-gas.
1034 with_gas=yes ;;
1035
ad6254c5
AK
1036 -help | --help | --hel | --he | -h)
1037 ac_init_help=long ;;
1038 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039 ac_init_help=recursive ;;
1040 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041 ac_init_help=short ;;
795ca3e5
AK
1042
1043 -host | --host | --hos | --ho)
ad6254c5 1044 ac_prev=host_alias ;;
795ca3e5 1045 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1046 host_alias=$ac_optarg ;;
795ca3e5 1047
7a197a62
AK
1048 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049 ac_prev=htmldir ;;
1050 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051 | --ht=*)
1052 htmldir=$ac_optarg ;;
1053
795ca3e5
AK
1054 -includedir | --includedir | --includedi | --included | --include \
1055 | --includ | --inclu | --incl | --inc)
1056 ac_prev=includedir ;;
1057 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1059 includedir=$ac_optarg ;;
795ca3e5
AK
1060
1061 -infodir | --infodir | --infodi | --infod | --info | --inf)
1062 ac_prev=infodir ;;
1063 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1064 infodir=$ac_optarg ;;
795ca3e5
AK
1065
1066 -libdir | --libdir | --libdi | --libd)
1067 ac_prev=libdir ;;
1068 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1069 libdir=$ac_optarg ;;
795ca3e5
AK
1070
1071 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072 | --libexe | --libex | --libe)
1073 ac_prev=libexecdir ;;
1074 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1076 libexecdir=$ac_optarg ;;
795ca3e5 1077
7a197a62
AK
1078 -localedir | --localedir | --localedi | --localed | --locale)
1079 ac_prev=localedir ;;
1080 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081 localedir=$ac_optarg ;;
1082
795ca3e5 1083 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1084 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1085 ac_prev=localstatedir ;;
1086 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1087 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1088 localstatedir=$ac_optarg ;;
795ca3e5
AK
1089
1090 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091 ac_prev=mandir ;;
1092 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1093 mandir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -nfp | --nfp | --nf)
1096 # Obsolete; use --without-fp.
1097 with_fp=no ;;
1098
1099 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1100 | --no-cr | --no-c | -n)
795ca3e5
AK
1101 no_create=yes ;;
1102
1103 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105 no_recursion=yes ;;
1106
1107 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109 | --oldin | --oldi | --old | --ol | --o)
1110 ac_prev=oldincludedir ;;
1111 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1114 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1115
1116 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117 ac_prev=prefix ;;
1118 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1119 prefix=$ac_optarg ;;
795ca3e5
AK
1120
1121 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122 | --program-pre | --program-pr | --program-p)
1123 ac_prev=program_prefix ;;
1124 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1126 program_prefix=$ac_optarg ;;
795ca3e5
AK
1127
1128 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129 | --program-suf | --program-su | --program-s)
1130 ac_prev=program_suffix ;;
1131 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1133 program_suffix=$ac_optarg ;;
795ca3e5
AK
1134
1135 -program-transform-name | --program-transform-name \
1136 | --program-transform-nam | --program-transform-na \
1137 | --program-transform-n | --program-transform- \
1138 | --program-transform | --program-transfor \
1139 | --program-transfo | --program-transf \
1140 | --program-trans | --program-tran \
1141 | --progr-tra | --program-tr | --program-t)
1142 ac_prev=program_transform_name ;;
1143 -program-transform-name=* | --program-transform-name=* \
1144 | --program-transform-nam=* | --program-transform-na=* \
1145 | --program-transform-n=* | --program-transform-=* \
1146 | --program-transform=* | --program-transfor=* \
1147 | --program-transfo=* | --program-transf=* \
1148 | --program-trans=* | --program-tran=* \
1149 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1150 program_transform_name=$ac_optarg ;;
795ca3e5 1151
7a197a62
AK
1152 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153 ac_prev=pdfdir ;;
1154 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155 pdfdir=$ac_optarg ;;
1156
1157 -psdir | --psdir | --psdi | --psd | --ps)
1158 ac_prev=psdir ;;
1159 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160 psdir=$ac_optarg ;;
1161
795ca3e5
AK
1162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163 | -silent | --silent | --silen | --sile | --sil)
1164 silent=yes ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
ad6254c5 1170 sbindir=$ac_optarg ;;
795ca3e5
AK
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
ad6254c5 1181 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
ad6254c5 1186 site=$ac_optarg ;;
795ca3e5
AK
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1191 srcdir=$ac_optarg ;;
795ca3e5
AK
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1198 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1201 ac_prev=target_alias ;;
795ca3e5 1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1203 target_alias=$ac_optarg ;;
795ca3e5
AK
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
ad6254c5
AK
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
795ca3e5
AK
1210
1211 -with-* | --with-*)
ec6a6fbe 1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1213 # Reject names that are not valid shell variable names.
ec6a6fbe 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1215 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220"with_$ac_useropt"
1221"*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1226
1227 -without-* | --without-*)
ec6a6fbe 1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1229 # Reject names that are not valid shell variable names.
ec6a6fbe 1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1231 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236"with_$ac_useropt"
1237"*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
795ca3e5
AK
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1252 x_includes=$ac_optarg ;;
795ca3e5
AK
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1259 x_libraries=$ac_optarg ;;
795ca3e5 1260
f11781c5
AK
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262Try \`$0 --help' for more information"
795ca3e5
AK
1263 ;;
1264
ad6254c5
AK
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
f11781c5
AK
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 esac
7a197a62 1272 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1273 export $ac_envvar ;;
1274
795ca3e5 1275 *)
ad6254c5 1276 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1277 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1279 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1280 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1281 ;;
1282
1283 esac
1284done
1285
1286if test -n "$ac_prev"; then
ad6254c5 1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1288 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1289fi
795ca3e5 1290
ec6a6fbe
AK
1291if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
f11781c5 1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1295 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297fi
1298
1299# Check all directory arguments for consistency.
7a197a62
AK
1300for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir
795ca3e5 1304do
7a197a62 1305 eval ac_val=\$$ac_var
ec6a6fbe
AK
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
ad6254c5 1313 case $ac_val in
7a197a62
AK
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1316 esac
f11781c5 1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1318done
1319
ad6254c5
AK
1320# There might be people who depend on the old broken behavior: `$host'
1321# used to hold the argument of --host etc.
1322# FIXME: To remove some day.
1323build=$build_alias
1324host=$host_alias
1325target=$target_alias
1326
1327# FIXME: To remove some day.
1328if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
f11781c5
AK
1331 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1332 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1333 elif test "x$build_alias" != "x$host_alias"; then
1334 cross_compiling=yes
1335 fi
1336fi
8106cdd5 1337
ad6254c5
AK
1338ac_tool_prefix=
1339test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340
1341test "$silent" = yes && exec 6>/dev/null
795ca3e5 1342
795ca3e5 1343
7a197a62
AK
1344ac_pwd=`pwd` && test -n "$ac_pwd" &&
1345ac_ls_di=`ls -di .` &&
1346ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1347 as_fn_error $? "working directory cannot be determined"
7a197a62 1348test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1349 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1350
1351
795ca3e5
AK
1352# Find the source files, if location was not specified.
1353if test -z "$srcdir"; then
1354 ac_srcdir_defaulted=yes
7a197a62 1355 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1356 ac_confdir=`$as_dirname -- "$as_myself" ||
1357$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1358 X"$as_myself" : 'X\(//\)[^/]' \| \
1359 X"$as_myself" : 'X\(//\)$' \| \
1360 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1361$as_echo X"$as_myself" |
7a197a62
AK
1362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)[^/].*/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\).*/{
1375 s//\1/
1376 q
1377 }
1378 s/.*/./; q'`
795ca3e5 1379 srcdir=$ac_confdir
7a197a62 1380 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1381 srcdir=..
1382 fi
1383else
1384 ac_srcdir_defaulted=no
1385fi
7a197a62
AK
1386if test ! -r "$srcdir/$ac_unique_file"; then
1387 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1388 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1389fi
7a197a62
AK
1390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
f11781c5 1392 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1393 pwd)`
1394# When building in place, set srcdir=.
1395if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1397fi
1398# Remove unnecessary trailing slashes from srcdir.
1399# Double slashes in file names in object file debugging info
1400# mess up M-x gdb in Emacs.
1401case $srcdir in
1402*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403esac
1404for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409done
ad6254c5
AK
1410
1411#
1412# Report the --help message.
1413#
1414if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418\`configure' configures this package to adapt to many kinds of systems.
1419
1420Usage: $0 [OPTION]... [VAR=VALUE]...
1421
1422To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423VAR=VALUE. See below for descriptions of some of the useful variables.
1424
1425Defaults for the options are specified in brackets.
1426
1427Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
f11781c5 1432 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437
ad6254c5
AK
1438Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1440 [$ac_default_prefix]
ad6254c5 1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1442 [PREFIX]
ad6254c5
AK
1443
1444By default, \`make install' will install all the files in
1445\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447for instance \`--prefix=\$HOME'.
1448
1449For better control, use the options below.
1450
1451Fine tuning of the installation directories:
ec6a6fbe
AK
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1471_ACEOF
1472
1473 cat <<\_ACEOF
1474
1475System types:
1476 --build=BUILD configure for building on BUILD [guessed]
1477 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1478 --target=TARGET configure for building compilers for TARGET [HOST]
1479_ACEOF
1480fi
1481
1482if test -n "$ac_init_help"; then
1483
1484 cat <<\_ACEOF
1485
1486Optional Features:
ec6a6fbe 1487 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1490 --enable-static_link use this to link the tools to their libraries
1491 statically (default is dynamic linking
1492 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1493 device-mapper is missing from the kernel
71082be4
ZK
1494 --disable-readline disable readline support
1495 --enable-realtime enable realtime clock support
37ddf259
AK
1496 --enable-ocf enable Open Cluster Framework (OCF) compliant
1497 resource agents
71082be4
ZK
1498 --enable-cmirrord enable the cluster mirror log daemon
1499 --enable-debug enable debugging
1500 --enable-profiling gather gcov profiling data
54b362f9 1501 --enable-testing enable testing targets in the makefile
d1e8046f 1502 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1503 --disable-devmapper disable LVM2 device-mapper interaction
1504 --enable-udev_sync enable synchronisation with udev processing
1505 --enable-udev_rules install rule files needed for udev synchronisation
1506 --enable-compat enable support for old device-mapper versions
1507 --enable-units-compat enable output compatibility with old versions that
1508 that do not use KiB-style unit suffixes
1509 --disable-driver disable calls to device-mapper in the kernel
1510 --disable-o_direct disable O_DIRECT
1511 --enable-applib build application library
1512 --enable-cmdlib build shared command library
1513 --enable-pkgconfig install pkgconfig support
1514 --enable-write_install install user writable files
1515 --disable-fsadm disable fsadm
1516 --enable-dmeventd enable the device-mapper event daemon
1517 --disable-selinux disable selinux support
1518 --enable-nls enable Native Language Support
ad6254c5
AK
1519
1520Optional Packages:
1521 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1522 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1523 --with-user=USER set the owner of installed files [[USER=]]
1524 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1525 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1526 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1527 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1528 --with-device-nodes-on=ON
1529 create nodes on resume or create [[ON=resume]]
ad6254c5 1530 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1531 [[TYPE=internal]]
ad6254c5 1532 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1533 [[TYPE=internal]]
71082be4 1534 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1535 [[TYPE=internal]]
71082be4 1536 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1537 [[TYPE=internal]]
71082be4 1538 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
cac52ca4
JEB
1540 --with-raid=TYPE mirror support: internal/shared/none
1541 [[TYPE=internal]]
71082be4 1542 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1543 [[TYPE=none]]
606d0858
AK
1544 --with-ocfdir=DIR install OCF files in DIR
1545 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1546 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1547 The following cluster manager combinations are valid:
a946372e
AK
1548 * cman (RHEL5 or equivalent)
1549 * cman,corosync,openais (or selection of them)
1091650a 1550 * singlenode (localhost only)
a946372e
AK
1551 * all (autodetect)
1552 * none (disable build)
71082be4 1553 [TYPE=none]
8c4e8a18 1554 --with-clvmd-pidfile=PATH
f11781c5 1555 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1556 --with-cmirrord-pidfile=PATH
f11781c5
AK
1557 cmirrord pidfile [[/var/run/cmirrord.pid]]
1558 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1559 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1560 --with-confdir=DIR configuration files in DIR [[/etc]]
1561 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1562 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1563 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1564 --with-udev-prefix=UPREFIX
f11781c5
AK
1565 install udev rule files in UPREFIX [[EPREFIX]]
1566 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1567 --with-dmeventd-pidfile=PATH
f11781c5 1568 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1569 --with-dmeventd-path=PATH
f11781c5 1570 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1571 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1572 --with-default-system-dir=DIR
f11781c5 1573 default LVM system directory [[/etc/lvm]]
71082be4 1574 --with-default-archive-subdir=SUBDIR
f11781c5 1575 default metadata archive subdir [[archive]]
71082be4 1576 --with-default-backup-subdir=SUBDIR
f11781c5 1577 default metadata backup subdir [[backup]]
71082be4 1578 --with-default-cache-subdir=SUBDIR
f11781c5 1579 default metadata cache subdir [[cache]]
71082be4 1580 --with-default-locking-dir=DIR
f11781c5 1581 default locking directory [[/var/lock/lvm]]
fea55602 1582 --with-default-data-alignment=NUM
f11781c5
AK
1583 set the default data alignment in MiB [[1]]
1584 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1585
1586Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
25fbec5b 1591 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1593 you have headers in a nonstandard directory <include dir>
ad6254c5 1594 CPP C preprocessor
e2997b73 1595 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1596 PKG_CONFIG_PATH
1597 directories to add to pkg-config's search path
1598 PKG_CONFIG_LIBDIR
1599 path overriding pkg-config's built-in search path
a946372e
AK
1600 PKGCONFIGINIT_CFLAGS
1601 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1602 PKGCONFIGINIT_LIBS
1603 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1604 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1605 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1606 COROSYNC_CFLAGS
1607 C compiler flags for COROSYNC, overriding pkg-config
1608 COROSYNC_LIBS
1609 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1610 QUORUM_CFLAGS
1611 C compiler flags for QUORUM, overriding pkg-config
1612 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1613 SALCK_CFLAGS
1614 C compiler flags for SALCK, overriding pkg-config
1615 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1616 CONFDB_CFLAGS
1617 C compiler flags for CONFDB, overriding pkg-config
1618 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1619 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1620 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1621 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1622 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1623 SACKPT_CFLAGS
1624 C compiler flags for SACKPT, overriding pkg-config
1625 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1626 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1627 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1628
1629Use these variables to override the choices made by `configure' or to help
1630it to find libraries and programs with nonstandard names/locations.
1631
f11781c5 1632Report bugs to the package provider.
ad6254c5 1633_ACEOF
7a197a62 1634ac_status=$?
ad6254c5
AK
1635fi
1636
1637if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
ad6254c5 1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
ad6254c5
AK
1643 ac_builddir=.
1644
7a197a62
AK
1645case "$ac_dir" in
1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647*)
ec6a6fbe 1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1649 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655esac
1656ac_abs_top_builddir=$ac_pwd
1657ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658# for backward compatibility:
1659ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1660
1661case $srcdir in
7a197a62 1662 .) # We are building in place.
ad6254c5 1663 ac_srcdir=.
7a197a62
AK
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1667 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1674esac
7a197a62
AK
1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1685 else
ec6a6fbe 1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1689 done
1690fi
1691
7a197a62 1692test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1693if $ac_init_version; then
1694 cat <<\_ACEOF
7a197a62 1695configure
f11781c5 1696generated by GNU Autoconf 2.66
ad6254c5 1697
f11781c5 1698Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1699This configure script is free software; the Free Software Foundation
1700gives unlimited permission to copy, distribute and modify it.
1701_ACEOF
7a197a62 1702 exit
ad6254c5 1703fi
ad6254c5 1704
f11781c5
AK
1705## ------------------------ ##
1706## Autoconf initialization. ##
1707## ------------------------ ##
ad6254c5 1708
f11781c5
AK
1709# ac_fn_c_try_compile LINENO
1710# --------------------------
1711# Try to compile conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_compile ()
ad6254c5 1713{
f11781c5
AK
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736else
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1739
f11781c5
AK
1740 ac_retval=1
1741fi
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 as_fn_set_status $ac_retval
ad6254c5 1744
f11781c5 1745} # ac_fn_c_try_compile
ad6254c5 1746
f11781c5
AK
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } >/dev/null && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773else
1774 $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1776
f11781c5
AK
1777 ac_retval=1
1778fi
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 as_fn_set_status $ac_retval
ad6254c5 1781
f11781c5 1782} # ac_fn_c_try_cpp
d911ec67 1783
f11781c5
AK
1784# ac_fn_c_try_link LINENO
1785# -----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded.
1787ac_fn_c_try_link ()
d911ec67 1788{
f11781c5
AK
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext conftest$ac_exeext
1791 if { { ac_try="$ac_link"
d911ec67
AK
1792case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795esac
f11781c5
AK
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>conftest.err
d911ec67 1799 ac_status=$?
f11781c5
AK
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest$ac_exeext && {
1810 test "$cross_compiling" = yes ||
1811 $as_test_x conftest$ac_exeext
1812 }; then :
1813 ac_retval=0
d911ec67 1814else
f11781c5 1815 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
f11781c5 1818 ac_retval=1
d911ec67 1819fi
f11781c5
AK
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 as_fn_set_status $ac_retval
d911ec67 1827
f11781c5 1828} # ac_fn_c_try_link
d911ec67 1829
f11781c5
AK
1830# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831# -------------------------------------------------------
1832# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833# the include files in INCLUDES and setting the cache variable VAR
1834# accordingly.
1835ac_fn_c_check_header_mongrel ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval "test \"\${$3+set}\"" = set; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1842 $as_echo_n "(cached) " >&6
1843fi
f11781c5
AK
1844eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1846$as_echo "$ac_res" >&6; }
1847else
1848 # Is the header compilable?
f11781c5
AK
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850$as_echo_n "checking $2 usability... " >&6; }
1851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1852/* end confdefs.h. */
f11781c5
AK
1853$4
1854#include <$2>
d911ec67 1855_ACEOF
f11781c5 1856if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1857 ac_header_compiler=yes
1858else
f11781c5 1859 ac_header_compiler=no
d911ec67 1860fi
d911ec67 1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1863$as_echo "$ac_header_compiler" >&6; }
1864
1865# Is the header present?
f11781c5
AK
1866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867$as_echo_n "checking $2 presence... " >&6; }
1868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1869/* end confdefs.h. */
f11781c5 1870#include <$2>
d911ec67 1871_ACEOF
f11781c5 1872if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1873 ac_header_preproc=yes
1874else
d911ec67
AK
1875 ac_header_preproc=no
1876fi
d911ec67 1877rm -f conftest.err conftest.$ac_ext
f11781c5 1878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1879$as_echo "$ac_header_preproc" >&6; }
1880
1881# So? What about this header?
f11781c5 1882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1883 yes:no: )
f11781c5
AK
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1888 ;;
1889 no:yes:* )
f11781c5
AK
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1900 ;;
1901esac
f11781c5
AK
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1905 $as_echo_n "(cached) " >&6
1906else
f11781c5 1907 eval "$3=\$ac_header_compiler"
d911ec67 1908fi
f11781c5
AK
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1911$as_echo "$ac_res" >&6; }
ad6254c5 1912fi
f11781c5 1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1914
f11781c5 1915} # ac_fn_c_check_header_mongrel
ad6254c5 1916
f11781c5
AK
1917# ac_fn_c_try_run LINENO
1918# ----------------------
1919# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920# that executables *can* be run.
1921ac_fn_c_try_run ()
ad6254c5 1922{
f11781c5
AK
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
7a197a62
AK
1925case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
f11781c5
AK
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
7a197a62 1931 (eval "$ac_link") 2>&5
ad6254c5 1932 ac_status=$?
f11781c5
AK
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
7a197a62
AK
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938esac
f11781c5
AK
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
7a197a62 1941 (eval "$ac_try") 2>&5
ad6254c5 1942 ac_status=$?
f11781c5
AK
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1945 ac_retval=0
ad6254c5 1946else
ec6a6fbe 1947 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1948 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1949sed 's/^/| /' conftest.$ac_ext >&5
1950
f11781c5 1951 ac_retval=$ac_status
ad6254c5 1952fi
f11781c5
AK
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 as_fn_set_status $ac_retval
ad6254c5 1956
f11781c5 1957} # ac_fn_c_try_run
ad6254c5 1958
f11781c5
AK
1959# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960# -------------------------------------------------------
1961# Tests whether HEADER exists and can be compiled using the include files in
1962# INCLUDES, setting the cache variable VAR accordingly.
1963ac_fn_c_check_header_compile ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1969 $as_echo_n "(cached) " >&6
ad6254c5 1970else
f11781c5 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1972/* end confdefs.h. */
f11781c5
AK
1973$4
1974#include <$2>
ad6254c5 1975_ACEOF
f11781c5
AK
1976if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$3=yes"
ad6254c5 1978else
f11781c5 1979 eval "$3=no"
ad6254c5 1980fi
7a197a62 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1982fi
f11781c5
AK
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1985$as_echo "$ac_res" >&6; }
f11781c5 1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1987
f11781c5 1988} # ac_fn_c_check_header_compile
ad6254c5 1989
f11781c5
AK
1990# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1991# ----------------------------------------------------
1992# Tries to find if the field MEMBER exists in type AGGR, after including
1993# INCLUDES, setting cache variable VAR accordingly.
1994ac_fn_c_check_member ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1998$as_echo_n "checking for $2.$3... " >&6; }
1999if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2000 $as_echo_n "(cached) " >&6
795ca3e5 2001else
f11781c5
AK
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004$5
2005int
2006main ()
2007{
2008static $2 ac_aggr;
2009if (ac_aggr.$3)
2010return 0;
2011 ;
2012 return 0;
2013}
ad6254c5 2014_ACEOF
f11781c5
AK
2015if ac_fn_c_try_compile "$LINENO"; then :
2016 eval "$4=yes"
2017else
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2019/* end confdefs.h. */
f11781c5
AK
2020$5
2021int
2022main ()
2023{
2024static $2 ac_aggr;
2025if (sizeof ac_aggr.$3)
2026return 0;
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$4=yes"
2033else
2034 eval "$4=no"
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037fi
2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
2040eval ac_res=\$$4
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042$as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045} # ac_fn_c_check_member
795ca3e5 2046
f11781c5
AK
2047# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048# -------------------------------------------
2049# Tests whether TYPE exists after having included INCLUDES, setting cache
2050# variable VAR accordingly.
2051ac_fn_c_check_type ()
2052{
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055$as_echo_n "checking for $2... " >&6; }
2056if eval "test \"\${$3+set}\"" = set; then :
2057 $as_echo_n "(cached) " >&6
2058else
2059 eval "$3=no"
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h. */
2062$4
ad6254c5
AK
2063int
2064main ()
2065{
f11781c5
AK
2066if (sizeof ($2))
2067 return 0;
ad6254c5
AK
2068 ;
2069 return 0;
2070}
2071_ACEOF
f11781c5
AK
2072if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074/* end confdefs.h. */
2075$4
2076int
2077main ()
2078{
2079if (sizeof (($2)))
2080 return 0;
2081 ;
2082 return 0;
2083}
2084_ACEOF
2085if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2086
f11781c5
AK
2087else
2088 eval "$3=yes"
795ca3e5 2089fi
f11781c5
AK
2090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091fi
2092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2093fi
f11781c5
AK
2094eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2096$as_echo "$ac_res" >&6; }
f11781c5 2097 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2098
f11781c5 2099} # ac_fn_c_check_type
ad6254c5 2100
f11781c5
AK
2101# ac_fn_c_find_intX_t LINENO BITS VAR
2102# -----------------------------------
2103# Finds a signed integer type with width BITS, setting cache variable VAR
2104# accordingly.
2105ac_fn_c_find_intX_t ()
2106{
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2109$as_echo_n "checking for int$2_t... " >&6; }
2110if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2111 $as_echo_n "(cached) " >&6
ad6254c5 2112else
f11781c5
AK
2113 eval "$3=no"
2114 # Order is important - never check a type that is potentially smaller
2115 # than half of the expected target width.
2116 for ac_type in int$2_t 'int' 'long int' \
2117 'long long int' 'short int' 'signed char'; do
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2119/* end confdefs.h. */
2120$ac_includes_default
f11781c5 2121 enum { N = $2 / 2 - 1 };
7a197a62
AK
2122int
2123main ()
2124{
f11781c5
AK
2125static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2126test_array [0] = 0
7a197a62 2127
f11781c5
AK
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_c_try_compile "$LINENO"; then :
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134/* end confdefs.h. */
2135$ac_includes_default
2136 enum { N = $2 / 2 - 1 };
2137int
2138main ()
2139{
2140static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2141 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2142test_array [0] = 0
7a197a62
AK
2143
2144 ;
2145 return 0;
2146}
ad6254c5 2147_ACEOF
f11781c5 2148if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2149
f11781c5
AK
2150else
2151 case $ac_type in #(
2152 int$2_t) :
2153 eval "$3=yes" ;; #(
2154 *) :
2155 eval "$3=\$ac_type" ;;
2156esac
ad6254c5 2157fi
f11781c5 2158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2159fi
f11781c5
AK
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2162
2163else
f11781c5 2164 break
ad6254c5 2165fi
f11781c5 2166 done
ad6254c5 2167fi
f11781c5
AK
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172
2173} # ac_fn_c_find_intX_t
2174
2175# ac_fn_c_find_uintX_t LINENO BITS VAR
2176# ------------------------------------
2177# Finds an unsigned integer type with width BITS, setting cache variable VAR
2178# accordingly.
2179ac_fn_c_find_uintX_t ()
2180{
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2183$as_echo_n "checking for uint$2_t... " >&6; }
2184if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2185 $as_echo_n "(cached) " >&6
ad6254c5 2186else
f11781c5
AK
2187 eval "$3=no"
2188 # Order is important - never check a type that is potentially smaller
2189 # than half of the expected target width.
2190 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2191 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2193/* end confdefs.h. */
7a197a62 2194$ac_includes_default
ad6254c5
AK
2195int
2196main ()
2197{
f11781c5
AK
2198static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2199test_array [0] = 0
ad6254c5 2200
f11781c5
AK
2201 ;
2202 return 0;
ad6254c5
AK
2203}
2204_ACEOF
f11781c5
AK
2205if ac_fn_c_try_compile "$LINENO"; then :
2206 case $ac_type in #(
2207 uint$2_t) :
2208 eval "$3=yes" ;; #(
2209 *) :
2210 eval "$3=\$ac_type" ;;
7a197a62 2211esac
ad6254c5 2212fi
f11781c5
AK
2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2215
f11781c5
AK
2216else
2217 break
ad6254c5 2218fi
f11781c5 2219 done
ad6254c5 2220fi
f11781c5
AK
2221eval ac_res=\$$3
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223$as_echo "$ac_res" >&6; }
2224 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2225
f11781c5 2226} # ac_fn_c_find_uintX_t
ad6254c5 2227
f11781c5
AK
2228# ac_fn_c_check_func LINENO FUNC VAR
2229# ----------------------------------
2230# Tests whether FUNC exists, setting the cache variable VAR accordingly
2231ac_fn_c_check_func ()
2232{
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235$as_echo_n "checking for $2... " >&6; }
2236if eval "test \"\${$3+set}\"" = set; then :
2237 $as_echo_n "(cached) " >&6
ad6254c5 2238else
f11781c5
AK
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2243#define $2 innocuous_$2
ad6254c5 2244
f11781c5
AK
2245/* System header to define __stub macros and hopefully few prototypes,
2246 which can conflict with char $2 (); below.
2247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2248 <limits.h> exists even on freestanding compilers. */
ad6254c5 2249
f11781c5
AK
2250#ifdef __STDC__
2251# include <limits.h>
2252#else
2253# include <assert.h>
2254#endif
ad6254c5 2255
f11781c5
AK
2256#undef $2
2257
2258/* Override any GCC internal prototype to avoid an error.
2259 Use char because int might match the return type of a GCC
2260 builtin and then its argument prototype would still apply. */
2261#ifdef __cplusplus
2262extern "C"
2263#endif
2264char $2 ();
2265/* The GNU C library defines this for functions which it implements
2266 to always fail with ENOSYS. Some functions are actually named
2267 something starting with __ and the normal name is an alias. */
2268#if defined __stub_$2 || defined __stub___$2
2269choke me
2270#endif
ad6254c5 2271
ad6254c5
AK
2272int
2273main ()
2274{
f11781c5 2275return $2 ();
ad6254c5
AK
2276 ;
2277 return 0;
2278}
2279_ACEOF
f11781c5
AK
2280if ac_fn_c_try_link "$LINENO"; then :
2281 eval "$3=yes"
ad6254c5 2282else
f11781c5 2283 eval "$3=no"
ad6254c5 2284fi
f11781c5
AK
2285rm -f core conftest.err conftest.$ac_objext \
2286 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2287fi
f11781c5
AK
2288eval ac_res=\$$3
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290$as_echo "$ac_res" >&6; }
2291 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2292
f11781c5
AK
2293} # ac_fn_c_check_func
2294cat >config.log <<_ACEOF
2295This file contains any messages produced by compilers while
2296running configure, to aid debugging if configure makes a mistake.
7a197a62 2297
f11781c5
AK
2298It was created by $as_me, which was
2299generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2300
f11781c5 2301 $ $0 $@
ad6254c5 2302
ad6254c5 2303_ACEOF
f11781c5
AK
2304exec 5>>config.log
2305{
2306cat <<_ASUNAME
2307## --------- ##
2308## Platform. ##
2309## --------- ##
ad6254c5 2310
f11781c5
AK
2311hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2312uname -m = `(uname -m) 2>/dev/null || echo unknown`
2313uname -r = `(uname -r) 2>/dev/null || echo unknown`
2314uname -s = `(uname -s) 2>/dev/null || echo unknown`
2315uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2316
f11781c5
AK
2317/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2318/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2319
f11781c5
AK
2320/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2321/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2322/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2323/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2324/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2325/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2326/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2327
2328_ASUNAME
2329
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333 IFS=$as_save_IFS
2334 test -z "$as_dir" && as_dir=.
2335 $as_echo "PATH: $as_dir"
2336 done
2337IFS=$as_save_IFS
2338
2339} >&5
2340
2341cat >&5 <<_ACEOF
2342
2343
2344## ----------- ##
2345## Core tests. ##
2346## ----------- ##
ad6254c5 2347
ad6254c5 2348_ACEOF
ad6254c5 2349
7a197a62 2350
f11781c5
AK
2351# Keep a trace of the command line.
2352# Strip out --no-create and --no-recursion so they do not pile up.
2353# Strip out --silent because we don't want to record it for future runs.
2354# Also quote any args containing shell meta-characters.
2355# Make two passes to allow for proper duplicate-argument suppression.
2356ac_configure_args=
2357ac_configure_args0=
2358ac_configure_args1=
2359ac_must_keep_next=false
2360for ac_pass in 1 2
2361do
2362 for ac_arg
2363 do
2364 case $ac_arg in
2365 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2367 | -silent | --silent | --silen | --sile | --sil)
2368 continue ;;
2369 *\'*)
2370 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2371 esac
2372 case $ac_pass in
2373 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2374 2)
2375 as_fn_append ac_configure_args1 " '$ac_arg'"
2376 if test $ac_must_keep_next = true; then
2377 ac_must_keep_next=false # Got value, back to normal.
2378 else
2379 case $ac_arg in
2380 *=* | --config-cache | -C | -disable-* | --disable-* \
2381 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2382 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2383 | -with-* | --with-* | -without-* | --without-* | --x)
2384 case "$ac_configure_args0 " in
2385 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2386 esac
2387 ;;
2388 -* ) ac_must_keep_next=true ;;
2389 esac
2390 fi
2391 as_fn_append ac_configure_args " '$ac_arg'"
2392 ;;
2393 esac
2394 done
2395done
2396{ ac_configure_args0=; unset ac_configure_args0;}
2397{ ac_configure_args1=; unset ac_configure_args1;}
2398
2399# When interrupted or exit'd, cleanup temporary files, and complete
2400# config.log. We remove comments because anyway the quotes in there
2401# would cause problems or look ugly.
2402# WARNING: Use '\'' to represent an apostrophe within the trap.
2403# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2404trap 'exit_status=$?
2405 # Save into config.log some information that might help in debugging.
2406 {
2407 echo
2408
2409 $as_echo "## ---------------- ##
2410## Cache variables. ##
2411## ---------------- ##"
2412 echo
2413 # The following way of writing the cache mishandles newlines in values,
2414(
2415 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2416 eval ac_val=\$$ac_var
2417 case $ac_val in #(
2418 *${as_nl}*)
2419 case $ac_var in #(
2420 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2421$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2422 esac
2423 case $ac_var in #(
2424 _ | IFS | as_nl) ;; #(
2425 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2426 *) { eval $ac_var=; unset $ac_var;} ;;
2427 esac ;;
2428 esac
2429 done
2430 (set) 2>&1 |
2431 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2432 *${as_nl}ac_space=\ *)
2433 sed -n \
2434 "s/'\''/'\''\\\\'\'''\''/g;
2435 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2436 ;; #(
2437 *)
2438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2439 ;;
2440 esac |
2441 sort
2442)
2443 echo
2444
2445 $as_echo "## ----------------- ##
2446## Output variables. ##
2447## ----------------- ##"
2448 echo
2449 for ac_var in $ac_subst_vars
2450 do
2451 eval ac_val=\$$ac_var
2452 case $ac_val in
2453 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2454 esac
2455 $as_echo "$ac_var='\''$ac_val'\''"
2456 done | sort
2457 echo
2458
2459 if test -n "$ac_subst_files"; then
2460 $as_echo "## ------------------- ##
2461## File substitutions. ##
2462## ------------------- ##"
2463 echo
2464 for ac_var in $ac_subst_files
2465 do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in
2468 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2469 esac
2470 $as_echo "$ac_var='\''$ac_val'\''"
2471 done | sort
2472 echo
2473 fi
2474
2475 if test -s confdefs.h; then
2476 $as_echo "## ----------- ##
2477## confdefs.h. ##
2478## ----------- ##"
2479 echo
2480 cat confdefs.h
2481 echo
2482 fi
2483 test "$ac_signal" != 0 &&
2484 $as_echo "$as_me: caught signal $ac_signal"
2485 $as_echo "$as_me: exit $exit_status"
2486 } >&5
2487 rm -f core *.core core.conftest.* &&
2488 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2489 exit $exit_status
2490' 0
2491for ac_signal in 1 2 13 15; do
2492 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2493done
2494ac_signal=0
2495
2496# confdefs.h avoids OS command line length limits that DEFS can exceed.
2497rm -f -r conftest* confdefs.h
7a197a62 2498
f11781c5 2499$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2500
f11781c5 2501# Predefined preprocessor variables.
ad6254c5
AK
2502
2503cat >>confdefs.h <<_ACEOF
f11781c5 2504#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2505_ACEOF
2506
f11781c5
AK
2507cat >>confdefs.h <<_ACEOF
2508#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2509_ACEOF
ad6254c5 2510
f11781c5
AK
2511cat >>confdefs.h <<_ACEOF
2512#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2513_ACEOF
f11781c5
AK
2514
2515cat >>confdefs.h <<_ACEOF
2516#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2517_ACEOF
ad6254c5 2518
f11781c5
AK
2519cat >>confdefs.h <<_ACEOF
2520#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2521_ACEOF
7a197a62 2522
f11781c5
AK
2523cat >>confdefs.h <<_ACEOF
2524#define PACKAGE_URL "$PACKAGE_URL"
2525_ACEOF
ad6254c5 2526
7a197a62 2527
f11781c5
AK
2528# Let the site file select an alternate cache file if it wants to.
2529# Prefer an explicitly selected file to automatically selected ones.
2530ac_site_file1=NONE
2531ac_site_file2=NONE
2532if test -n "$CONFIG_SITE"; then
2533 # We do not want a PATH search for config.site.
2534 case $CONFIG_SITE in #((
2535 -*) ac_site_file1=./$CONFIG_SITE;;
2536 */*) ac_site_file1=$CONFIG_SITE;;
2537 *) ac_site_file1=./$CONFIG_SITE;;
2538 esac
2539elif test "x$prefix" != xNONE; then
2540 ac_site_file1=$prefix/share/config.site
2541 ac_site_file2=$prefix/etc/config.site
ad6254c5 2542else
f11781c5
AK
2543 ac_site_file1=$ac_default_prefix/share/config.site
2544 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2545fi
f11781c5
AK
2546for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2547do
2548 test "x$ac_site_file" = xNONE && continue
2549 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2551$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2552 sed 's/^/| /' "$ac_site_file" >&5
2553 . "$ac_site_file" \
2554 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2556as_fn_error $? "failed to load site script $ac_site_file
2557See \`config.log' for more details" "$LINENO" 5; }
2558 fi
2559done
ad6254c5 2560
f11781c5
AK
2561if test -r "$cache_file"; then
2562 # Some versions of bash will fail to source /dev/null (special files
2563 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2564 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2566$as_echo "$as_me: loading cache $cache_file" >&6;}
2567 case $cache_file in
2568 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2569 *) . "./$cache_file";;
2570 esac
2571 fi
2572else
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2574$as_echo "$as_me: creating cache $cache_file" >&6;}
2575 >$cache_file
ad6254c5 2576fi
ad6254c5 2577
f11781c5
AK
2578as_fn_append ac_header_list " stdlib.h"
2579as_fn_append ac_header_list " unistd.h"
2580as_fn_append ac_header_list " sys/param.h"
2581# Check that the precious variables saved in the cache have kept the same
2582# value.
2583ac_cache_corrupted=false
2584for ac_var in $ac_precious_vars; do
2585 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2586 eval ac_new_set=\$ac_env_${ac_var}_set
2587 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2588 eval ac_new_val=\$ac_env_${ac_var}_value
2589 case $ac_old_set,$ac_new_set in
2590 set,)
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2592$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,set)
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2596$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2597 ac_cache_corrupted=: ;;
2598 ,);;
2599 *)
2600 if test "x$ac_old_val" != "x$ac_new_val"; then
2601 # differences in whitespace do not lead to failure.
2602 ac_old_val_w=`echo x $ac_old_val`
2603 ac_new_val_w=`echo x $ac_new_val`
2604 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2606$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2607 ac_cache_corrupted=:
2608 else
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2610$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2611 eval $ac_var=\$ac_old_val
2612 fi
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2614$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2616$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2617 fi;;
2618 esac
2619 # Pass precious variables to config.status.
2620 if test "$ac_new_set" = set; then
2621 case $ac_new_val in
2622 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2623 *) ac_arg=$ac_var=$ac_new_val ;;
2624 esac
2625 case " $ac_configure_args " in
2626 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2627 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2628 esac
2629 fi
2630done
2631if $ac_cache_corrupted; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2633$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2635$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2636 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2637fi
f11781c5
AK
2638## -------------------- ##
2639## Main body of script. ##
2640## -------------------- ##
ad6254c5 2641
f11781c5
AK
2642ac_ext=c
2643ac_cpp='$CPP $CPPFLAGS'
2644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2646ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2647
ad6254c5 2648
ad6254c5 2649
f11781c5 2650ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2651
2652
f11781c5
AK
2653################################################################################
2654ac_aux_dir=
2655for ac_dir in autoconf "$srcdir"/autoconf; do
2656 if test -f "$ac_dir/install-sh"; then
2657 ac_aux_dir=$ac_dir
2658 ac_install_sh="$ac_aux_dir/install-sh -c"
2659 break
2660 elif test -f "$ac_dir/install.sh"; then
2661 ac_aux_dir=$ac_dir
2662 ac_install_sh="$ac_aux_dir/install.sh -c"
2663 break
2664 elif test -f "$ac_dir/shtool"; then
2665 ac_aux_dir=$ac_dir
2666 ac_install_sh="$ac_aux_dir/shtool install -c"
2667 break
2668 fi
2669done
2670if test -z "$ac_aux_dir"; then
2671 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2672fi
ad6254c5 2673
f11781c5
AK
2674# These three variables are undocumented and unsupported,
2675# and are intended to be withdrawn in a future Autoconf release.
2676# They can cause serious problems if a builder's source tree is in a directory
2677# whose full name contains unusual characters.
2678ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2679ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2680ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2681
ad6254c5 2682
8a2fc586 2683
f11781c5
AK
2684################################################################################
2685# Make sure we can run config.sub.
2686$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2687 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2688
f11781c5
AK
2689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2690$as_echo_n "checking build system type... " >&6; }
2691if test "${ac_cv_build+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693else
2694 ac_build_alias=$build_alias
2695test "x$ac_build_alias" = x &&
2696 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2697test "x$ac_build_alias" = x &&
2698 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2699ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2700 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2701
2702fi
f11781c5
AK
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2704$as_echo "$ac_cv_build" >&6; }
2705case $ac_cv_build in
2706*-*-*) ;;
2707*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2708esac
2709build=$ac_cv_build
2710ac_save_IFS=$IFS; IFS='-'
2711set x $ac_cv_build
2712shift
2713build_cpu=$1
2714build_vendor=$2
2715shift; shift
2716# Remember, the first character of IFS is used to create $*,
2717# except with old shells:
2718build_os=$*
2719IFS=$ac_save_IFS
2720case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2721
2722
f11781c5
AK
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2724$as_echo_n "checking host system type... " >&6; }
2725if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2726 $as_echo_n "(cached) " >&6
ad6254c5 2727else
f11781c5
AK
2728 if test "x$host_alias" = x; then
2729 ac_cv_host=$ac_cv_build
ad6254c5 2730else
f11781c5
AK
2731 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2733fi
ad6254c5 2734
f11781c5
AK
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2737$as_echo "$ac_cv_host" >&6; }
2738case $ac_cv_host in
2739*-*-*) ;;
2740*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2741esac
2742host=$ac_cv_host
2743ac_save_IFS=$IFS; IFS='-'
2744set x $ac_cv_host
2745shift
2746host_cpu=$1
2747host_vendor=$2
2748shift; shift
2749# Remember, the first character of IFS is used to create $*,
2750# except with old shells:
2751host_os=$*
2752IFS=$ac_save_IFS
2753case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2754
ad6254c5 2755
f11781c5
AK
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2757$as_echo_n "checking target system type... " >&6; }
2758if test "${ac_cv_target+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
ad6254c5 2760else
f11781c5
AK
2761 if test "x$target_alias" = x; then
2762 ac_cv_target=$ac_cv_host
2763else
2764 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2765 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2766fi
7a197a62 2767
ad6254c5 2768fi
f11781c5
AK
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2770$as_echo "$ac_cv_target" >&6; }
2771case $ac_cv_target in
2772*-*-*) ;;
2773*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2774esac
f11781c5
AK
2775target=$ac_cv_target
2776ac_save_IFS=$IFS; IFS='-'
2777set x $ac_cv_target
2778shift
2779target_cpu=$1
2780target_vendor=$2
2781shift; shift
2782# Remember, the first character of IFS is used to create $*,
2783# except with old shells:
2784target_os=$*
2785IFS=$ac_save_IFS
2786case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2787
ad6254c5 2788
f11781c5
AK
2789# The aliases save the names the user supplied, while $host etc.
2790# will get canonicalized.
2791test -n "$target_alias" &&
2792 test "$program_prefix$program_suffix$program_transform_name" = \
2793 NONENONEs,x,x, &&
2794 program_prefix=${target_alias}-
ad6254c5 2795
f11781c5
AK
2796case "$host_os" in
2797 linux*)
2798 CFLAGS="$CFLAGS"
2799 COPTIMISE_FLAG="-O2"
2800 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2801 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2802 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2803 LDDEPS="$LDDEPS .export.sym"
2804 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2805 LIB_SUFFIX=so
2806 DEVMAPPER=yes
2807 ODIRECT=yes
2808 DM_IOCTLS=yes
2809 SELINUX=yes
2810 CLUSTER=internal
2811 FSADM=yes
2812 ;;
2813 darwin*)
2814 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2815 COPTIMISE_FLAG="-O2"
2816 CLDFLAGS="$CLDFLAGS"
2817 CLDWHOLEARCHIVE="-all_load"
2818 CLDNOWHOLEARCHIVE=
2819 LIB_SUFFIX=dylib
2820 DEVMAPPER=yes
2821 ODIRECT=no
2822 DM_IOCTLS=no
2823 SELINUX=no
2824 CLUSTER=none
2825 FSADM=no
2826 ;;
2827esac
ad6254c5 2828
f11781c5
AK
2829################################################################################
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2831$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2832if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2833 $as_echo_n "(cached) " >&6
ad6254c5 2834else
f11781c5
AK
2835 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2836 for ac_i in 1 2 3 4 5 6 7; do
2837 ac_script="$ac_script$as_nl$ac_script"
2838 done
2839 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2840 { ac_script=; unset ac_script;}
2841 if test -z "$SED"; then
2842 ac_path_SED_found=false
2843 # Loop through the user's path and test for each of PROGNAME-LIST
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 for ac_prog in sed gsed; do
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2852 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2853# Check for GNU ac_path_SED and select it if it is found.
2854 # Check for GNU $ac_path_SED
2855case `"$ac_path_SED" --version 2>&1` in
2856*GNU*)
2857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2858*)
2859 ac_count=0
2860 $as_echo_n 0123456789 >"conftest.in"
2861 while :
2862 do
2863 cat "conftest.in" "conftest.in" >"conftest.tmp"
2864 mv "conftest.tmp" "conftest.in"
2865 cp "conftest.in" "conftest.nl"
2866 $as_echo '' >> "conftest.nl"
2867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2869 as_fn_arith $ac_count + 1 && ac_count=$as_val
2870 if test $ac_count -gt ${ac_path_SED_max-0}; then
2871 # Best one so far, save it but keep looking for a better one
2872 ac_cv_path_SED="$ac_path_SED"
2873 ac_path_SED_max=$ac_count
2874 fi
2875 # 10*(2^10) chars as input seems more than enough
2876 test $ac_count -gt 10 && break
2877 done
2878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2879esac
ad6254c5 2880
f11781c5
AK
2881 $ac_path_SED_found && break 3
2882 done
2883 done
2884 done
2885IFS=$as_save_IFS
2886 if test -z "$ac_cv_path_SED"; then
2887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2888 fi
2889else
2890 ac_cv_path_SED=$SED
ad6254c5 2891fi
7a197a62 2892
f11781c5
AK
2893fi
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2895$as_echo "$ac_cv_path_SED" >&6; }
2896 SED="$ac_cv_path_SED"
2897 rm -f conftest.sed
ad6254c5 2898
f11781c5
AK
2899for ac_prog in gawk mawk nawk awk
2900do
2901 # Extract the first word of "$ac_prog", so it can be a program name with args.
2902set dummy $ac_prog; ac_word=$2
2903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2904$as_echo_n "checking for $ac_word... " >&6; }
2905if test "${ac_cv_prog_AWK+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
ad6254c5 2907else
f11781c5
AK
2908 if test -n "$AWK"; then
2909 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2910else
2911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912for as_dir in $PATH
2913do
2914 IFS=$as_save_IFS
2915 test -z "$as_dir" && as_dir=.
2916 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2918 ac_cv_prog_AWK="$ac_prog"
2919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2920 break 2
2921 fi
2922done
2923 done
2924IFS=$as_save_IFS
ad6254c5 2925
ad6254c5 2926fi
ad6254c5 2927fi
f11781c5
AK
2928AWK=$ac_cv_prog_AWK
2929if test -n "$AWK"; then
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2931$as_echo "$AWK" >&6; }
2932else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2934$as_echo "no" >&6; }
ad6254c5 2935fi
ad6254c5 2936
ad6254c5 2937
f11781c5 2938 test -n "$AWK" && break
ad6254c5
AK
2939done
2940
f11781c5
AK
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950$as_echo_n "checking for $ac_word... " >&6; }
2951if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2952 $as_echo_n "(cached) " >&6
ad6254c5 2953else
f11781c5
AK
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2956else
f11781c5
AK
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968done
2969 done
2970IFS=$as_save_IFS
ad6254c5 2971
ad6254c5 2972fi
ad6254c5 2973fi
f11781c5
AK
2974CC=$ac_cv_prog_CC
2975if test -n "$CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977$as_echo "$CC" >&6; }
2978else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980$as_echo "no" >&6; }
ad6254c5 2981fi
ad6254c5 2982
f11781c5
AK
2983
2984fi
2985if test -z "$ac_cv_prog_CC"; then
2986 ac_ct_CC=$CC
2987 # Extract the first word of "gcc", so it can be a program name with args.
2988set dummy gcc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990$as_echo_n "checking for $ac_word... " >&6; }
2991if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 2992 $as_echo_n "(cached) " >&6
ad6254c5 2993else
f11781c5
AK
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 2996else
f11781c5
AK
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3004 ac_cv_prog_ac_ct_CC="gcc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008done
3009 done
3010IFS=$as_save_IFS
d911ec67 3011
d911ec67 3012fi
d911ec67 3013fi
f11781c5
AK
3014ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015if test -n "$ac_ct_CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3017$as_echo "$ac_ct_CC" >&6; }
3018else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020$as_echo "no" >&6; }
d911ec67 3021fi
d911ec67 3022
f11781c5
AK
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027yes:)
3028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030ac_tool_warned=yes ;;
3031esac
3032 CC=$ac_ct_CC
3033 fi
3034else
3035 CC="$ac_cv_prog_CC"
d911ec67 3036fi
d911ec67 3037
f11781c5
AK
3038if test -z "$CC"; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041set dummy ${ac_tool_prefix}cc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3045 $as_echo_n "(cached) " >&6
d911ec67 3046else
f11781c5
AK
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3049else
f11781c5
AK
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_CC="${ac_tool_prefix}cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061done
3062 done
3063IFS=$as_save_IFS
d911ec67 3064
f11781c5
AK
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
d911ec67
AK
3074fi
3075
d911ec67 3076
f11781c5
AK
3077 fi
3078fi
3079if test -z "$CC"; then
3080 # Extract the first word of "cc", so it can be a program name with args.
3081set dummy cc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
3084if test "${ac_cv_prog_CC+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
d911ec67 3086else
f11781c5
AK
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090 ac_prog_rejected=no
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099 ac_prog_rejected=yes
3100 continue
3101 fi
3102 ac_cv_prog_CC="cc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106done
3107 done
3108IFS=$as_save_IFS
d911ec67 3109
f11781c5
AK
3110if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3113 shift
3114 if test $# != 0; then
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3118 shift
3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120 fi
3121fi
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
d911ec67
AK
3131fi
3132
d911ec67 3133
f11781c5
AK
3134fi
3135if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 for ac_prog in cl.exe
3138 do
3139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
3143if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3144 $as_echo_n "(cached) " >&6
3145else
f11781c5
AK
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160done
3161 done
3162IFS=$as_save_IFS
d911ec67
AK
3163
3164fi
f11781c5
AK
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
d911ec67
AK
3173fi
3174
d911ec67 3175
f11781c5
AK
3176 test -n "$CC" && break
3177 done
3178fi
3179if test -z "$CC"; then
3180 ac_ct_CC=$CC
3181 for ac_prog in cl.exe
3182do
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
3187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3188 $as_echo_n "(cached) " >&6
3189else
f11781c5
AK
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3192else
f11781c5
AK
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3200 ac_cv_prog_ac_ct_CC="$ac_prog"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204done
3205 done
3206IFS=$as_save_IFS
ad6254c5 3207
ad6254c5 3208fi
ad6254c5 3209fi
f11781c5
AK
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213$as_echo "$ac_ct_CC" >&6; }
3214else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
ad6254c5 3217fi
ad6254c5 3218
d911ec67 3219
f11781c5
AK
3220 test -n "$ac_ct_CC" && break
3221done
d911ec67 3222
f11781c5
AK
3223 if test "x$ac_ct_CC" = x; then
3224 CC=""
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
d911ec67 3231esac
f11781c5
AK
3232 CC=$ac_ct_CC
3233 fi
3234fi
ad6254c5
AK
3235
3236fi
d911ec67
AK
3237
3238
f11781c5
AK
3239test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241as_fn_error $? "no acceptable C compiler found in \$PATH
3242See \`config.log' for more details" "$LINENO" 5; }
3243
3244# Provide some information about the compiler.
3245$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3246set X $ac_compile
3247ac_compiler=$2
3248for ac_option in --version -v -V -qversion; do
3249 { { ac_try="$ac_compiler $ac_option >&5"
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3257 ac_status=$?
3258 if test -s conftest.err; then
3259 sed '10a\
3260... rest of stderr output deleted ...
3261 10q' conftest.err >conftest.er1
3262 cat conftest.er1 >&5
3263 fi
3264 rm -f conftest.er1 conftest.err
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }
3267done
ad6254c5 3268
f11781c5 3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3270/* end confdefs.h. */
f11781c5 3271
ad6254c5
AK
3272int
3273main ()
3274{
f11781c5 3275
ad6254c5
AK
3276 ;
3277 return 0;
3278}
3279_ACEOF
f11781c5
AK
3280ac_clean_files_save=$ac_clean_files
3281ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3282# Try to create an executable without -o first, disregard a.out.
3283# It will help us diagnose broken compilers, and finding out an intuition
3284# of exeext.
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286$as_echo_n "checking whether the C compiler works... " >&6; }
3287ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289# The possible output files:
3290ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
3292ac_rmfiles=
3293for ac_file in $ac_files
3294do
3295 case $ac_file in
3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298 esac
3299done
3300rm -f $ac_rmfiles
3301
3302if { { ac_try="$ac_link_default"
7a197a62
AK
3303case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
f11781c5
AK
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_link_default") 2>&5
ad6254c5 3310 ac_status=$?
f11781c5
AK
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315# in a Makefile. We should not override ac_cv_exeext if it was cached,
3316# so that the user can short-circuit this test for compilers unknown to
3317# Autoconf.
3318for ac_file in $ac_files ''
3319do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3323 ;;
3324 [ab].out )
3325 # We found the default executable, but exeext='' is most
3326 # certainly right.
3327 break;;
3328 *.* )
3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3330 then :; else
3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 fi
3333 # We set ac_cv_exeext here because the later test for it is not
3334 # safe: cross compilers may not add the suffix if given an `-o'
3335 # argument, so we may need to know it at that point already.
3336 # Even if this section looks crufty: it has the advantage of
3337 # actually working.
3338 break;;
3339 * )
3340 break;;
3341 esac
3342done
3343test "$ac_cv_exeext" = no && ac_cv_exeext=
3344
ad6254c5 3345else
f11781c5
AK
3346 ac_file=''
3347fi
3348if test -z "$ac_file"; then :
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
ec6a6fbe 3351$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
f11781c5
AK
3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3356as_fn_error 77 "C compiler cannot create executables
3357See \`config.log' for more details" "$LINENO" 5; }
3358else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
ad6254c5 3361fi
f11781c5
AK
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363$as_echo_n "checking for C compiler default output file name... " >&6; }
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365$as_echo "$ac_file" >&6; }
3366ac_exeext=$ac_cv_exeext
7a197a62 3367
f11781c5
AK
3368rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3371$as_echo_n "checking for suffix of executables... " >&6; }
3372if { { ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
8a2fc586 3376esac
f11781c5
AK
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
3383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3385# work properly (i.e., refer to `conftest.exe'), while it won't with
3386# `rm'.
3387for ac_file in conftest.exe conftest conftest.*; do
3388 test -f "$ac_file" || continue
3389 case $ac_file in
3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3392 break;;
3393 * ) break;;
3394 esac
3395done
3396else
3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3401fi
f11781c5
AK
3402rm -f conftest conftest$ac_cv_exeext
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3404$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3405
f11781c5
AK
3406rm -f conftest.$ac_ext
3407EXEEXT=$ac_cv_exeext
3408ac_exeext=$EXEEXT
3409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3410/* end confdefs.h. */
f11781c5 3411#include <stdio.h>
ad6254c5 3412int
f11781c5 3413main ()
ad6254c5 3414{
f11781c5
AK
3415FILE *f = fopen ("conftest.out", "w");
3416 return ferror (f) || fclose (f) != 0;
ad6254c5 3417
f11781c5 3418 ;
7a197a62 3419 return 0;
ad6254c5 3420}
ad6254c5 3421_ACEOF
f11781c5
AK
3422ac_clean_files="$ac_clean_files conftest.out"
3423# Check that the compiler produces executables we can run. If not, either
3424# the compiler is broken, or we cross compile.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426$as_echo_n "checking whether we are cross compiling... " >&6; }
3427if test "$cross_compiling" != yes; then
3428 { { ac_try="$ac_link"
7a197a62
AK
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
f11781c5
AK
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
7a197a62 3435 (eval "$ac_link") 2>&5
ad6254c5 3436 ac_status=$?
f11781c5
AK
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3439 if { ac_try='./conftest$ac_cv_exeext'
3440 { { case "(($ac_try" in
7a197a62
AK
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
f11781c5
AK
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
7a197a62 3446 (eval "$ac_try") 2>&5
ad6254c5 3447 ac_status=$?
f11781c5
AK
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; }; then
3450 cross_compiling=no
3451 else
3452 if test "$cross_compiling" = maybe; then
3453 cross_compiling=yes
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457as_fn_error $? "cannot run C compiled programs.
3458If you meant to cross compile, use \`--host'.
3459See \`config.log' for more details" "$LINENO" 5; }
3460 fi
3461 fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464$as_echo "$cross_compiling" >&6; }
3465
3466rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467ac_clean_files=$ac_clean_files_save
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3469$as_echo_n "checking for suffix of object files... " >&6; }
3470if test "${ac_cv_objext+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472else
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h. */
ad6254c5
AK
3475
3476int
3477main ()
3478{
f11781c5 3479
ad6254c5
AK
3480 ;
3481 return 0;
3482}
3483_ACEOF
f11781c5
AK
3484rm -f conftest.o conftest.obj
3485if { { ac_try="$ac_compile"
7a197a62
AK
3486case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489esac
f11781c5
AK
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_compile") 2>&5
ad6254c5 3493 ac_status=$?
f11781c5
AK
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
3496 for ac_file in conftest.o conftest.obj conftest.*; do
3497 test -f "$ac_file" || continue;
3498 case $ac_file in
3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501 break;;
3502 esac
3503done
ad6254c5 3504else
ec6a6fbe 3505 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
f11781c5
AK
3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "cannot compute suffix of object files: cannot compile
3511See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3512fi
f11781c5 3513rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3514fi
f11781c5
AK
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3516$as_echo "$ac_cv_objext" >&6; }
3517OBJEXT=$ac_cv_objext
3518ac_objext=$OBJEXT
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3521if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3522 $as_echo_n "(cached) " >&6
ad6254c5 3523else
f11781c5 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3525/* end confdefs.h. */
3526
ad6254c5
AK
3527int
3528main ()
3529{
f11781c5
AK
3530#ifndef __GNUC__
3531 choke me
3532#endif
3533
ad6254c5
AK
3534 ;
3535 return 0;
3536}
3537_ACEOF
f11781c5
AK
3538if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_compiler_gnu=yes
ad6254c5 3540else
f11781c5 3541 ac_compiler_gnu=no
ad6254c5 3542fi
f11781c5
AK
3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3545
d0191583 3546fi
f11781c5
AK
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549if test $ac_compiler_gnu = yes; then
3550 GCC=yes
d0191583 3551else
f11781c5 3552 GCC=
d0191583 3553fi
f11781c5
AK
3554ac_test_CFLAGS=${CFLAGS+set}
3555ac_save_CFLAGS=$CFLAGS
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3557$as_echo_n "checking whether $CC accepts -g... " >&6; }
3558if test "${ac_cv_prog_cc_g+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560else
3561 ac_save_c_werror_flag=$ac_c_werror_flag
3562 ac_c_werror_flag=yes
3563 ac_cv_prog_cc_g=no
3564 CFLAGS="-g"
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566/* end confdefs.h. */
72b2cb61 3567
f11781c5
AK
3568int
3569main ()
3570{
72b2cb61 3571
f11781c5
AK
3572 ;
3573 return 0;
3574}
3575_ACEOF
3576if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_cv_prog_cc_g=yes
3578else
3579 CFLAGS=""
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581/* end confdefs.h. */
ad6254c5 3582
f11781c5
AK
3583int
3584main ()
3585{
ad6254c5 3586
f11781c5
AK
3587 ;
3588 return 0;
3589}
d0191583 3590_ACEOF
f11781c5
AK
3591if ac_fn_c_try_compile "$LINENO"; then :
3592
3593else
3594 ac_c_werror_flag=$ac_save_c_werror_flag
3595 CFLAGS="-g"
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3597/* end confdefs.h. */
7a197a62 3598
f11781c5
AK
3599int
3600main ()
3601{
ad6254c5 3602
f11781c5
AK
3603 ;
3604 return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_g=yes
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613fi
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_c_werror_flag=$ac_save_c_werror_flag
3616fi
3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3618$as_echo "$ac_cv_prog_cc_g" >&6; }
3619if test "$ac_test_CFLAGS" = set; then
3620 CFLAGS=$ac_save_CFLAGS
3621elif test $ac_cv_prog_cc_g = yes; then
3622 if test "$GCC" = yes; then
3623 CFLAGS="-g -O2"
3624 else
3625 CFLAGS="-g"
3626 fi
3627else
3628 if test "$GCC" = yes; then
3629 CFLAGS="-O2"
3630 else
3631 CFLAGS=
3632 fi
3633fi
3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3636if test "${ac_cv_prog_cc_c89+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638else
3639 ac_cv_prog_cc_c89=no
3640ac_save_CC=$CC
3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642/* end confdefs.h. */
3643#include <stdarg.h>
3644#include <stdio.h>
3645#include <sys/types.h>
3646#include <sys/stat.h>
3647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3648struct buf { int x; };
3649FILE * (*rcsopen) (struct buf *, struct stat *, int);
3650static char *e (p, i)
3651 char **p;
3652 int i;
3653{
3654 return p[i];
3655}
3656static char *f (char * (*g) (char **, int), char **p, ...)
3657{
3658 char *s;
3659 va_list v;
3660 va_start (v,p);
3661 s = g (p, va_arg (v,int));
3662 va_end (v);
3663 return s;
3664}
ad6254c5 3665
f11781c5
AK
3666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3667 function prototypes and stuff, but not '\xHH' hex character constants.
3668 These don't provoke an error unfortunately, instead are silently treated
3669 as 'x'. The following induces an error, until -std is added to get
3670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3671 array size at least. It's necessary to write '\x00'==0 to get something
3672 that's true only with -std. */
3673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3674
f11781c5
AK
3675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3676 inside strings and character constants. */
3677#define FOO(x) 'x'
3678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3679
f11781c5
AK
3680int test (int i, double x);
3681struct s1 {int (*f) (int a);};
3682struct s2 {int (*f) (double a);};
3683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3684int argc;
3685char **argv;
d0191583
JM
3686int
3687main ()
3688{
f11781c5 3689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3690 ;
3691 return 0;
3692}
72b2cb61 3693_ACEOF
f11781c5
AK
3694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3696do
3697 CC="$ac_save_CC $ac_arg"
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_prog_cc_c89=$ac_arg
3700fi
3701rm -f core conftest.err conftest.$ac_objext
3702 test "x$ac_cv_prog_cc_c89" != "xno" && break
3703done
3704rm -f conftest.$ac_ext
3705CC=$ac_save_CC
3706
3707fi
3708# AC_CACHE_VAL
3709case "x$ac_cv_prog_cc_c89" in
3710 x)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3712$as_echo "none needed" >&6; } ;;
3713 xno)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3715$as_echo "unsupported" >&6; } ;;
3716 *)
3717 CC="$CC $ac_cv_prog_cc_c89"
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3720esac
f11781c5
AK
3721if test "x$ac_cv_prog_cc_c89" != xno; then :
3722
3723fi
3724
3725ac_ext=c
3726ac_cpp='$CPP $CPPFLAGS'
3727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3729ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3730
ad6254c5 3731
7a197a62 3732
f11781c5
AK
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
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3739$as_echo_n "checking how to run the C preprocessor... " >&6; }
3740# On Suns, sometimes $CPP names a directory.
3741if test -n "$CPP" && test -d "$CPP"; then
3742 CPP=
3743fi
3744if test -z "$CPP"; then
3745 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3746 $as_echo_n "(cached) " >&6
ad6254c5 3747else
f11781c5
AK
3748 # Double quotes because CPP needs to be expanded
3749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3750 do
3751 ac_preproc_ok=false
3752for ac_c_preproc_warn_flag in '' yes
3753do
3754 # Use a header file that comes with gcc, so configuring glibc
3755 # with a fresh cross-compiler works.
3756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3757 # <limits.h> exists even on freestanding compilers.
3758 # On the NeXT, cc -E runs the code through the compiler's parser,
3759 # not just through cpp. "Syntax error" is here to catch this case.
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3761/* end confdefs.h. */
d0191583
JM
3762#ifdef __STDC__
3763# include <limits.h>
3764#else
3765# include <assert.h>
3766#endif
f11781c5
AK
3767 Syntax error
3768_ACEOF
3769if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3770
f11781c5
AK
3771else
3772 # Broken: fails on valid input.
3773continue
3774fi
3775rm -f conftest.err conftest.$ac_ext
d0191583 3776
f11781c5
AK
3777 # OK, works on sane cases. Now check whether nonexistent headers
3778 # can be detected and how.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h. */
3781#include <ac_nonexistent.h>
72b2cb61 3782_ACEOF
f11781c5
AK
3783if ac_fn_c_try_cpp "$LINENO"; then :
3784 # Broken: success on invalid input.
3785continue
d0191583 3786else
f11781c5
AK
3787 # Passes both tests.
3788ac_preproc_ok=:
3789break
ad6254c5 3790fi
f11781c5 3791rm -f conftest.err conftest.$ac_ext
ad6254c5 3792
f11781c5
AK
3793done
3794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3795rm -f conftest.err conftest.$ac_ext
3796if $ac_preproc_ok; then :
3797 break
7a197a62
AK
3798fi
3799
f11781c5
AK
3800 done
3801 ac_cv_prog_CPP=$CPP
ad6254c5 3802
7a197a62 3803fi
f11781c5
AK
3804 CPP=$ac_cv_prog_CPP
3805else
3806 ac_cv_prog_CPP=$CPP
d0191583 3807fi
f11781c5
AK
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3809$as_echo "$CPP" >&6; }
3810ac_preproc_ok=false
3811for ac_c_preproc_warn_flag in '' yes
3812do
3813 # Use a header file that comes with gcc, so configuring glibc
3814 # with a fresh cross-compiler works.
3815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3816 # <limits.h> exists even on freestanding compilers.
3817 # On the NeXT, cc -E runs the code through the compiler's parser,
3818 # not just through cpp. "Syntax error" is here to catch this case.
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820/* end confdefs.h. */
3821#ifdef __STDC__
3822# include <limits.h>
3823#else
3824# include <assert.h>
3825#endif
3826 Syntax error
3827_ACEOF
3828if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3829
9c961554 3830else
f11781c5
AK
3831 # Broken: fails on valid input.
3832continue
9c961554 3833fi
f11781c5 3834rm -f conftest.err conftest.$ac_ext
9c961554 3835
f11781c5
AK
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839/* end confdefs.h. */
3840#include <ac_nonexistent.h>
3841_ACEOF
3842if ac_fn_c_try_cpp "$LINENO"; then :
3843 # Broken: success on invalid input.
3844continue
3845else
3846 # Passes both tests.
3847ac_preproc_ok=:
3848break
3849fi
3850rm -f conftest.err conftest.$ac_ext
ad6254c5 3851
f11781c5
AK
3852done
3853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854rm -f conftest.err conftest.$ac_ext
3855if $ac_preproc_ok; then :
d0191583 3856
f11781c5
AK
3857else
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3861See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3862fi
3863
f11781c5
AK
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3869
ad6254c5 3870
f11781c5
AK
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3872$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3873if test "${ac_cv_path_GREP+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3875else
3876 if test -z "$GREP"; then
3877 ac_path_GREP_found=false
3878 # Loop through the user's path and test for each of PROGNAME-LIST
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3881do
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_prog in grep ggrep; do
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3887 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3888# Check for GNU ac_path_GREP and select it if it is found.
3889 # Check for GNU $ac_path_GREP
3890case `"$ac_path_GREP" --version 2>&1` in
3891*GNU*)
3892 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3893*)
3894 ac_count=0
3895 $as_echo_n 0123456789 >"conftest.in"
3896 while :
3897 do
3898 cat "conftest.in" "conftest.in" >"conftest.tmp"
3899 mv "conftest.tmp" "conftest.in"
3900 cp "conftest.in" "conftest.nl"
3901 $as_echo 'GREP' >> "conftest.nl"
3902 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3903 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3904 as_fn_arith $ac_count + 1 && ac_count=$as_val
3905 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3906 # Best one so far, save it but keep looking for a better one
3907 ac_cv_path_GREP="$ac_path_GREP"
3908 ac_path_GREP_max=$ac_count
3909 fi
3910 # 10*(2^10) chars as input seems more than enough
3911 test $ac_count -gt 10 && break
3912 done
3913 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3914esac
ad6254c5 3915
f11781c5
AK
3916 $ac_path_GREP_found && break 3
3917 done
3918 done
3919 done
3920IFS=$as_save_IFS
3921 if test -z "$ac_cv_path_GREP"; then
3922 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3923 fi
3924else
3925 ac_cv_path_GREP=$GREP
7a197a62
AK
3926fi
3927
d0191583 3928fi
f11781c5
AK
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3930$as_echo "$ac_cv_path_GREP" >&6; }
3931 GREP="$ac_cv_path_GREP"
ad6254c5 3932
24bbc4d7 3933
f11781c5
AK
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3935$as_echo_n "checking for egrep... " >&6; }
3936if test "${ac_cv_path_EGREP+set}" = set; then :
3937 $as_echo_n "(cached) " >&6
3938else
3939 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3940 then ac_cv_path_EGREP="$GREP -E"
3941 else
3942 if test -z "$EGREP"; then
3943 ac_path_EGREP_found=false
3944 # Loop through the user's path and test for each of PROGNAME-LIST
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
3950 for ac_prog in egrep; do
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3953 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3954# Check for GNU ac_path_EGREP and select it if it is found.
3955 # Check for GNU $ac_path_EGREP
3956case `"$ac_path_EGREP" --version 2>&1` in
3957*GNU*)
3958 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3959*)
3960 ac_count=0
3961 $as_echo_n 0123456789 >"conftest.in"
3962 while :
3963 do
3964 cat "conftest.in" "conftest.in" >"conftest.tmp"
3965 mv "conftest.tmp" "conftest.in"
3966 cp "conftest.in" "conftest.nl"
3967 $as_echo 'EGREP' >> "conftest.nl"
3968 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3969 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3970 as_fn_arith $ac_count + 1 && ac_count=$as_val
3971 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3972 # Best one so far, save it but keep looking for a better one
3973 ac_cv_path_EGREP="$ac_path_EGREP"
3974 ac_path_EGREP_max=$ac_count
3975 fi
3976 # 10*(2^10) chars as input seems more than enough
3977 test $ac_count -gt 10 && break
3978 done
3979 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3980esac
24bbc4d7 3981
f11781c5
AK
3982 $ac_path_EGREP_found && break 3
3983 done
3984 done
3985 done
3986IFS=$as_save_IFS
3987 if test -z "$ac_cv_path_EGREP"; then
3988 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3989 fi
24bbc4d7 3990else
f11781c5 3991 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
3992fi
3993
f11781c5 3994 fi
24bbc4d7 3995fi
f11781c5
AK
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3997$as_echo "$ac_cv_path_EGREP" >&6; }
3998 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
3999
4000
f11781c5
AK
4001if test $ac_cv_c_compiler_gnu = yes; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4003$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4004if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
93bd259b 4006else
f11781c5
AK
4007 ac_pattern="Autoconf.*'x'"
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009/* end confdefs.h. */
4010#include <sgtty.h>
4011Autoconf TIOCGETP
4012_ACEOF
4013if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4015 ac_cv_prog_gcc_traditional=yes
d0191583 4016else
f11781c5 4017 ac_cv_prog_gcc_traditional=no
7a197a62 4018fi
f11781c5 4019rm -f conftest*
7a197a62 4020
72b2cb61 4021
f11781c5
AK
4022 if test $ac_cv_prog_gcc_traditional = no; then
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024/* end confdefs.h. */
4025#include <termio.h>
4026Autoconf TCGETA
72b2cb61 4027_ACEOF
f11781c5
AK
4028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4030 ac_cv_prog_gcc_traditional=yes
ad6254c5 4031fi
f11781c5 4032rm -f conftest*
ad6254c5 4033
f11781c5 4034 fi
7a197a62 4035fi
f11781c5
AK
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4037$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4038 if test $ac_cv_prog_gcc_traditional = yes; then
4039 CC="$CC -traditional"
4040 fi
ad6254c5
AK
4041fi
4042
f11781c5
AK
4043# Find a good install program. We prefer a C program (faster),
4044# so one script is as good as another. But avoid the broken or
4045# incompatible versions:
4046# SysV /etc/install, /usr/sbin/install
4047# SunOS /usr/etc/install
4048# IRIX /sbin/install
4049# AIX /bin/install
4050# AmigaOS /C/install, which installs bootblocks on floppy discs
4051# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4052# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4053# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4054# OS/2's system install, which has a completely different semantic
4055# ./install, which can be erroneously created by make from ./install.sh.
4056# Reject install programs that cannot install multiple files.
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4058$as_echo_n "checking for a BSD-compatible install... " >&6; }
4059if test -z "$INSTALL"; then
4060if test "${ac_cv_path_install+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
ad6254c5 4062else
f11781c5
AK
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064for as_dir in $PATH
4065do
4066 IFS=$as_save_IFS
4067 test -z "$as_dir" && as_dir=.
4068 # Account for people who put trailing slashes in PATH elements.
4069case $as_dir/ in #((
4070 ./ | .// | /[cC]/* | \
4071 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4072 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4073 /usr/ucb/* ) ;;
4074 *)
4075 # OSF1 and SCO ODT 3.0 have their own names for install.
4076 # Don't use installbsd from OSF since it installs stuff as root
4077 # by default.
4078 for ac_prog in ginstall scoinst install; do
4079 for ac_exec_ext in '' $ac_executable_extensions; do
4080 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4081 if test $ac_prog = install &&
4082 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4083 # AIX install. It has an incompatible calling convention.
4084 :
4085 elif test $ac_prog = install &&
4086 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4087 # program-specific install script used by HP pwplus--don't use.
4088 :
4089 else
4090 rm -rf conftest.one conftest.two conftest.dir
4091 echo one > conftest.one
4092 echo two > conftest.two
4093 mkdir conftest.dir
4094 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4095 test -s conftest.one && test -s conftest.two &&
4096 test -s conftest.dir/conftest.one &&
4097 test -s conftest.dir/conftest.two
4098 then
4099 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4100 break 3
4101 fi
4102 fi
4103 fi
4104 done
4105 done
4106 ;;
4107esac
7a197a62 4108
f11781c5
AK
4109 done
4110IFS=$as_save_IFS
d0191583 4111
f11781c5 4112rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4113
4114fi
f11781c5
AK
4115 if test "${ac_cv_path_install+set}" = set; then
4116 INSTALL=$ac_cv_path_install
4117 else
4118 # As a last resort, use the slow shell script. Don't cache a
4119 # value for INSTALL within a source directory, because that will
4120 # break other packages using the cache if that directory is
4121 # removed, or if the value is a relative name.
4122 INSTALL=$ac_install_sh
4123 fi
7a197a62 4124fi
f11781c5
AK
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4126$as_echo "$INSTALL" >&6; }
7a197a62 4127
f11781c5
AK
4128# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4129# It thinks the first close brace ends the variable substitution.
4130test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4131
f11781c5 4132test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4133
f11781c5 4134test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4135
f11781c5
AK
4136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4137$as_echo_n "checking whether ln -s works... " >&6; }
4138LN_S=$as_ln_s
4139if test "$LN_S" = "ln -s"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4141$as_echo "yes" >&6; }
4142else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4144$as_echo "no, using $LN_S" >&6; }
15d91f5a 4145fi
ad6254c5 4146
f11781c5
AK
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4148$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4149set x ${MAKE-make}
4150ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4151if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4152 $as_echo_n "(cached) " >&6
d0191583 4153else
f11781c5
AK
4154 cat >conftest.make <<\_ACEOF
4155SHELL = /bin/sh
4156all:
4157 @echo '@@@%%%=$(MAKE)=@@@%%%'
4158_ACEOF
4159# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4160case `${MAKE-make} -f conftest.make 2>/dev/null` in
4161 *@@@%%%=?*=@@@%%%*)
4162 eval ac_cv_prog_make_${ac_make}_set=yes;;
4163 *)
4164 eval ac_cv_prog_make_${ac_make}_set=no;;
4165esac
4166rm -f conftest.make
4167fi
4168if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4170$as_echo "yes" >&6; }
4171 SET_MAKE=
4172else
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4176fi
4177
f11781c5
AK
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4179$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4180if test -z "$MKDIR_P"; then
4181 if test "${ac_cv_path_mkdir+set}" = set; then :
4182 $as_echo_n "(cached) " >&6
4183else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4186do
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_prog in mkdir gmkdir; do
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4192 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4193 'mkdir (GNU coreutils) '* | \
4194 'mkdir (coreutils) '* | \
4195 'mkdir (fileutils) '4.1*)
4196 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4197 break 3;;
4198 esac
4199 done
4200 done
4201 done
4202IFS=$as_save_IFS
d0191583 4203
f11781c5 4204fi
ad6254c5 4205
f11781c5
AK
4206 test -d ./--version && rmdir ./--version
4207 if test "${ac_cv_path_mkdir+set}" = set; then
4208 MKDIR_P="$ac_cv_path_mkdir -p"
4209 else
4210 # As a last resort, use the slow shell script. Don't cache a
4211 # value for MKDIR_P within a source directory, because that will
4212 # break other packages using the cache if that directory is
4213 # removed, or if the value is a relative name.
4214 MKDIR_P="$ac_install_sh -d"
4215 fi
ad6254c5 4216fi
f11781c5
AK
4217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4218$as_echo "$MKDIR_P" >&6; }
7a197a62 4219
f11781c5
AK
4220if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4222set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224$as_echo_n "checking for $ac_word... " >&6; }
4225if test "${ac_cv_prog_RANLIB+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4227else
4228 if test -n "$RANLIB"; then
4229 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4241 fi
4242done
4243 done
4244IFS=$as_save_IFS
d0191583 4245
f11781c5
AK
4246fi
4247fi
4248RANLIB=$ac_cv_prog_RANLIB
4249if test -n "$RANLIB"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4251$as_echo "$RANLIB" >&6; }
d0191583 4252else
f11781c5
AK
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
ad6254c5 4255fi
ad6254c5 4256
8a2fc586 4257
d0191583 4258fi
f11781c5
AK
4259if test -z "$ac_cv_prog_RANLIB"; then
4260 ac_ct_RANLIB=$RANLIB
4261 # Extract the first word of "ranlib", so it can be a program name with args.
4262set dummy ranlib; ac_word=$2
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264$as_echo_n "checking for $ac_word... " >&6; }
4265if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4266 $as_echo_n "(cached) " >&6
4267else
4268 if test -n "$ac_ct_RANLIB"; then
4269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_ac_ct_RANLIB="ranlib"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282done
4283 done
4284IFS=$as_save_IFS
8a2fc586 4285
f11781c5
AK
4286fi
4287fi
4288ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4289if test -n "$ac_ct_RANLIB"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4291$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4292else
f11781c5
AK
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
8fea97b7
ZK
4295fi
4296
f11781c5
AK
4297 if test "x$ac_ct_RANLIB" = x; then
4298 RANLIB=":"
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301yes:)
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
8fea97b7 4305esac
f11781c5
AK
4306 RANLIB=$ac_ct_RANLIB
4307 fi
d0191583 4308else
f11781c5 4309 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4310fi
8a2fc586 4311
f11781c5
AK
4312# Extract the first word of "cflow", so it can be a program name with args.
4313set dummy cflow; ac_word=$2
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
4316if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4318else
4319 case $CFLOW_CMD in
4320 [\\/]* | ?:[\\/]*)
4321 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4322 ;;
4323 *)
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335done
4336 done
4337IFS=$as_save_IFS
8a2fc586 4338
f11781c5
AK
4339 ;;
4340esac
ad6254c5 4341fi
f11781c5
AK
4342CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4343if test -n "$CFLOW_CMD"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4345$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4346else
f11781c5
AK
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348$as_echo "no" >&6; }
37ddf259
AK
4349fi
4350
e2997b73 4351
f11781c5
AK
4352# Extract the first word of "cscope", so it can be a program name with args.
4353set dummy cscope; ac_word=$2
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4355$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4356if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4357 $as_echo_n "(cached) " >&6
4358else
f11781c5 4359 case $CSCOPE_CMD in
e2997b73 4360 [\\/]* | ?:[\\/]*)
f11781c5 4361 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4362 ;;
4363 *)
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
f11781c5 4369 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4371 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4373 break 2
4374 fi
4375done
f11781c5 4376 done
e2997b73
AK
4377IFS=$as_save_IFS
4378
4379 ;;
4380esac
4381fi
f11781c5
AK
4382CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4383if test -n "$CSCOPE_CMD"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4385$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4386else
f11781c5 4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4388$as_echo "no" >&6; }
4389fi
f11781c5
AK
4390
4391
4392
4393################################################################################
4394ac_header_dirent=no
4395for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4396 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4398$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4399if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4400 $as_echo_n "(cached) " >&6
4401else
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
4404#include <sys/types.h>
4405#include <$ac_hdr>
4406
4407int
4408main ()
4409{
4410if ((DIR *) 0)
4411return 0;
4412 ;
4413 return 0;
4414}
4415_ACEOF
4416if ac_fn_c_try_compile "$LINENO"; then :
4417 eval "$as_ac_Header=yes"
4418else
4419 eval "$as_ac_Header=no"
4420fi
4421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422fi
4423eval ac_res=\$$as_ac_Header
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4425$as_echo "$ac_res" >&6; }
4426if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4427 cat >>confdefs.h <<_ACEOF
4428#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4429_ACEOF
4430
4431ac_header_dirent=$ac_hdr; break
4432fi
4433
4434done
4435# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4436if test $ac_header_dirent = dirent.h; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4438$as_echo_n "checking for library containing opendir... " >&6; }
4439if test "${ac_cv_search_opendir+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4441else
4442 ac_func_search_save_LIBS=$LIBS
4443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444/* end confdefs.h. */
4445
4446/* Override any GCC internal prototype to avoid an error.
4447 Use char because int might match the return type of a GCC
4448 builtin and then its argument prototype would still apply. */
4449#ifdef __cplusplus
4450extern "C"
4451#endif
4452char opendir ();
4453int
4454main ()
4455{
4456return opendir ();
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461for ac_lib in '' dir; do
4462 if test -z "$ac_lib"; then
4463 ac_res="none required"
4464 else
4465 ac_res=-l$ac_lib
4466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4467 fi
4468 if ac_fn_c_try_link "$LINENO"; then :
4469 ac_cv_search_opendir=$ac_res
4470fi
4471rm -f core conftest.err conftest.$ac_objext \
4472 conftest$ac_exeext
4473 if test "${ac_cv_search_opendir+set}" = set; then :
4474 break
4475fi
4476done
4477if test "${ac_cv_search_opendir+set}" = set; then :
4478
4479else
4480 ac_cv_search_opendir=no
4481fi
4482rm conftest.$ac_ext
4483LIBS=$ac_func_search_save_LIBS
4484fi
4485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4486$as_echo "$ac_cv_search_opendir" >&6; }
4487ac_res=$ac_cv_search_opendir
4488if test "$ac_res" != no; then :
4489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4490
4491fi
f11781c5
AK
4492
4493else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4495$as_echo_n "checking for library containing opendir... " >&6; }
4496if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4497 $as_echo_n "(cached) " >&6
4498else
f11781c5
AK
4499 ac_func_search_save_LIBS=$LIBS
4500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h. */
e2997b73 4502
f11781c5
AK
4503/* Override any GCC internal prototype to avoid an error.
4504 Use char because int might match the return type of a GCC
4505 builtin and then its argument prototype would still apply. */
4506#ifdef __cplusplus
4507extern "C"
4508#endif
4509char opendir ();
4510int
4511main ()
4512{
4513return opendir ();
4514 ;
4515 return 0;
4516}
4517_ACEOF
4518for ac_lib in '' x; do
4519 if test -z "$ac_lib"; then
4520 ac_res="none required"
4521 else
4522 ac_res=-l$ac_lib
4523 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4524 fi
4525 if ac_fn_c_try_link "$LINENO"; then :
4526 ac_cv_search_opendir=$ac_res
e2997b73 4527fi
f11781c5
AK
4528rm -f core conftest.err conftest.$ac_objext \
4529 conftest$ac_exeext
4530 if test "${ac_cv_search_opendir+set}" = set; then :
4531 break
e2997b73 4532fi
f11781c5
AK
4533done
4534if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4535
e2997b73 4536else
f11781c5
AK
4537 ac_cv_search_opendir=no
4538fi
4539rm conftest.$ac_ext
4540LIBS=$ac_func_search_save_LIBS
e2997b73 4541fi
f11781c5
AK
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4543$as_echo "$ac_cv_search_opendir" >&6; }
4544ac_res=$ac_cv_search_opendir
4545if test "$ac_res" != no; then :
4546 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4547
4548fi
8c4e8a18 4549
e2997b73
AK
4550fi
4551
f11781c5
AK
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4553$as_echo_n "checking for ANSI C header files... " >&6; }
4554if test "${ac_cv_header_stdc+set}" = set; then :
4555 $as_echo_n "(cached) " >&6
4556else
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558/* end confdefs.h. */
4559#include <stdlib.h>
4560#include <stdarg.h>
4561#include <string.h>
4562#include <float.h>
e2997b73 4563
f11781c5
AK
4564int
4565main ()
4566{
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
4572if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_header_stdc=yes
e2997b73 4574else
f11781c5 4575 ac_cv_header_stdc=no
e2997b73 4576fi
f11781c5
AK
4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4578
4579if test $ac_cv_header_stdc = yes; then
4580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h. */
4583#include <string.h>
4584
4585_ACEOF
4586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4587 $EGREP "memchr" >/dev/null 2>&1; then :
4588
e2997b73 4589else
f11781c5 4590 ac_cv_header_stdc=no
e2997b73 4591fi
f11781c5 4592rm -f conftest*
e2997b73 4593
f11781c5 4594fi
e2997b73 4595
f11781c5
AK
4596if test $ac_cv_header_stdc = yes; then
4597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h. */
4600#include <stdlib.h>
e2997b73 4601
f11781c5
AK
4602_ACEOF
4603if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4604 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4605
e2997b73 4606else
f11781c5 4607 ac_cv_header_stdc=no
e2997b73 4608fi
f11781c5 4609rm -f conftest*
e2997b73 4610
e2997b73 4611fi
90c80887 4612
f11781c5
AK
4613if test $ac_cv_header_stdc = yes; then
4614 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4615 if test "$cross_compiling" = yes; then :
4616 :
4617else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619/* end confdefs.h. */
4620#include <ctype.h>
4621#include <stdlib.h>
4622#if ((' ' & 0x0FF) == 0x020)
4623# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4624# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4625#else
4626# define ISLOWER(c) \
4627 (('a' <= (c) && (c) <= 'i') \
4628 || ('j' <= (c) && (c) <= 'r') \
4629 || ('s' <= (c) && (c) <= 'z'))
4630# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4631#endif
4632
4633#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4634int
4635main ()
4636{
4637 int i;
4638 for (i = 0; i < 256; i++)
4639 if (XOR (islower (i), ISLOWER (i))
4640 || toupper (i) != TOUPPER (i))
4641 return 2;
4642 return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_run "$LINENO"; then :
90c80887 4646
90c80887 4647else
f11781c5 4648 ac_cv_header_stdc=no
90c80887 4649fi
f11781c5
AK
4650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4651 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4652fi
90c80887 4653
90c80887 4654fi
90c80887 4655fi
f11781c5
AK
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4657$as_echo "$ac_cv_header_stdc" >&6; }
4658if test $ac_cv_header_stdc = yes; then
90c80887 4659
f11781c5 4660$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4661
90c80887 4662fi
f11781c5
AK
4663
4664# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4665for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4666 inttypes.h stdint.h unistd.h
4667do :
4668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4669ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4670"
4671if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4672 cat >>confdefs.h <<_ACEOF
4673#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4674_ACEOF
4675
90c80887 4676fi
f11781c5
AK
4677
4678done
4679
4680
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4682$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4683if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685else
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h. */
4688#include <sys/types.h>
4689int
4690main ()
4691{
4692return makedev(0, 0);
4693 ;
4694 return 0;
4695}
4696_ACEOF
4697if ac_fn_c_try_link "$LINENO"; then :
4698 ac_cv_header_sys_types_h_makedev=yes
4699else
4700 ac_cv_header_sys_types_h_makedev=no
90c80887 4701fi
f11781c5
AK
4702rm -f core conftest.err conftest.$ac_objext \
4703 conftest$ac_exeext conftest.$ac_ext
4704
90c80887 4705fi
f11781c5
AK
4706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4707$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4708
4709if test $ac_cv_header_sys_types_h_makedev = no; then
4710ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4711if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4712
4713$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4714
a946372e 4715fi
e2997b73 4716
e2997b73 4717
a946372e 4718
f11781c5
AK
4719 if test $ac_cv_header_sys_mkdev_h = no; then
4720 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4721if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4722
4723$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4724
e2997b73 4725fi
a946372e 4726
a946372e 4727
f11781c5
AK
4728 fi
4729fi
4730
4731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4732$as_echo_n "checking for ANSI C header files... " >&6; }
4733if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4734 $as_echo_n "(cached) " >&6
4735else
f11781c5 4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4737/* end confdefs.h. */
f11781c5
AK
4738#include <stdlib.h>
4739#include <stdarg.h>
4740#include <string.h>
4741#include <float.h>
a946372e 4742
a946372e
AK
4743int
4744main ()
4745{
f11781c5 4746
a946372e
AK
4747 ;
4748 return 0;
4749}
4750_ACEOF
f11781c5
AK
4751if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_header_stdc=yes
e2997b73 4753else
f11781c5
AK
4754 ac_cv_header_stdc=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757
4758if test $ac_cv_header_stdc = yes; then
4759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761/* end confdefs.h. */
4762#include <string.h>
4763
4764_ACEOF
4765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4767
f11781c5
AK
4768else
4769 ac_cv_header_stdc=no
a946372e 4770fi
f11781c5 4771rm -f conftest*
e2997b73 4772
a946372e 4773fi
e2997b73 4774
f11781c5
AK
4775if test $ac_cv_header_stdc = yes; then
4776 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778/* end confdefs.h. */
4779#include <stdlib.h>
4780
4781_ACEOF
4782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4784
e2997b73 4785else
f11781c5 4786 ac_cv_header_stdc=no
e2997b73 4787fi
f11781c5 4788rm -f conftest*
e2997b73 4789
f11781c5 4790fi
a946372e 4791
f11781c5
AK
4792if test $ac_cv_header_stdc = yes; then
4793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4794 if test "$cross_compiling" = yes; then :
4795 :
4796else
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h. */
4799#include <ctype.h>
4800#include <stdlib.h>
4801#if ((' ' & 0x0FF) == 0x020)
4802# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4803# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4804#else
4805# define ISLOWER(c) \
4806 (('a' <= (c) && (c) <= 'i') \
4807 || ('j' <= (c) && (c) <= 'r') \
4808 || ('s' <= (c) && (c) <= 'z'))
4809# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4810#endif
e2997b73 4811
f11781c5
AK
4812#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4813int
4814main ()
4815{
4816 int i;
4817 for (i = 0; i < 256; i++)
4818 if (XOR (islower (i), ISLOWER (i))
4819 || toupper (i) != TOUPPER (i))
4820 return 2;
4821 return 0;
4822}
4823_ACEOF
4824if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4825
e2997b73 4826else
f11781c5 4827 ac_cv_header_stdc=no
e2997b73 4828fi
f11781c5
AK
4829rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4830 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4831fi
f11781c5 4832
e2997b73 4833fi
e2997b73 4834fi
f11781c5
AK
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4836$as_echo "$ac_cv_header_stdc" >&6; }
4837if test $ac_cv_header_stdc = yes; then
e2997b73 4838
f11781c5 4839$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4840
f11781c5 4841fi
e2997b73 4842
f11781c5
AK
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4844$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4845if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847else
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849/* end confdefs.h. */
4850#include <sys/types.h>
4851#include <sys/wait.h>
4852#ifndef WEXITSTATUS
4853# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4854#endif
4855#ifndef WIFEXITED
4856# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4857#endif
e2997b73 4858
f11781c5
AK
4859int
4860main ()
4861{
4862 int s;
4863 wait (&s);
4864 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4865 ;
4866 return 0;
4867}
4868_ACEOF
4869if ac_fn_c_try_compile "$LINENO"; then :
4870 ac_cv_header_sys_wait_h=yes
e2997b73 4871else
f11781c5 4872 ac_cv_header_sys_wait_h=no
e2997b73 4873fi
f11781c5
AK
4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4877$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4878if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4879
f11781c5 4880$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4881
d0191583 4882fi
f11781c5
AK
4883
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4885$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4886if test "${ac_cv_header_time+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
fc54be10 4888else
f11781c5 4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4890/* end confdefs.h. */
f11781c5
AK
4891#include <sys/types.h>
4892#include <sys/time.h>
4893#include <time.h>
4894
4895int
4896main ()
4897{
4898if ((struct tm *) 0)
4899return 0;
4900 ;
4901 return 0;
4902}
a946372e 4903_ACEOF
f11781c5
AK
4904if ac_fn_c_try_compile "$LINENO"; then :
4905 ac_cv_header_time=yes
a946372e 4906else
f11781c5
AK
4907 ac_cv_header_time=no
4908fi
4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910fi
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4912$as_echo "$ac_cv_header_time" >&6; }
4913if test $ac_cv_header_time = yes; then
4914
4915$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4916
4917fi
4918
4919
4920for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4921 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4922 sys/wait.h time.h
4923do :
4924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4925ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4926if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4927 cat >>confdefs.h <<_ACEOF
4928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4929_ACEOF
d0191583 4930
f11781c5
AK
4931else
4932 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4933fi
4934
f11781c5 4935done
fddafd51 4936
f11781c5
AK
4937
4938case "$host_os" in
4939 linux*)
4940 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4941do :
4942 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4943ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4945 cat >>confdefs.h <<_ACEOF
4946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4947_ACEOF
a946372e 4948
f11781c5
AK
4949else
4950 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4951fi
4952
f11781c5
AK
4953done
4954 ;;
4955 darwin*)
4956 for ac_header in machine/endian.h sys/disk.h
4957do :
4958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4959ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4960if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4961 cat >>confdefs.h <<_ACEOF
4962#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963_ACEOF
a946372e 4964
f11781c5
AK
4965else
4966 as_fn_error $? "bailing out" "$LINENO" 5
4967fi
a946372e 4968
f11781c5
AK
4969done
4970 ;;
a946372e 4971esac
f11781c5
AK
4972
4973for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4974 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4975 sys/types.h unistd.h
4976do :
4977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4978ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4979if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4980 cat >>confdefs.h <<_ACEOF
4981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4982_ACEOF
4983
a946372e 4984else
f11781c5 4985 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4986fi
a946372e 4987
f11781c5
AK
4988done
4989
4990for ac_header in termios.h sys/statvfs.h
4991do :
4992 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4993ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
4995 cat >>confdefs.h <<_ACEOF
4996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4997_ACEOF
4998
a946372e
AK
4999fi
5000
5001done
5002
a946372e 5003
f11781c5
AK
5004################################################################################
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5006$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5007if test "${ac_cv_c_const+set}" = set; then :
a946372e 5008 $as_echo_n "(cached) " >&6
a946372e 5009else
f11781c5 5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5011/* end confdefs.h. */
a946372e 5012
f11781c5
AK
5013int
5014main ()
5015{
5016/* FIXME: Include the comments suggested by Paul. */
5017#ifndef __cplusplus
5018 /* Ultrix mips cc rejects this. */
5019 typedef int charset[2];
5020 const charset cs;
5021 /* SunOS 4.1.1 cc rejects this. */
5022 char const *const *pcpcc;
5023 char **ppc;
5024 /* NEC SVR4.0.2 mips cc rejects this. */
5025 struct point {int x, y;};
5026 static struct point const zero = {0,0};
5027 /* AIX XL C 1.02.0.0 rejects this.
5028 It does not let you subtract one const X* pointer from another in
5029 an arm of an if-expression whose if-part is not a constant
5030 expression */
5031 const char *g = "string";
5032 pcpcc = &g + (g ? g-g : 0);
5033 /* HPUX 7.0 cc rejects these. */
5034 ++pcpcc;
5035 ppc = (char**) pcpcc;
5036 pcpcc = (char const *const *) ppc;
5037 { /* SCO 3.2v4 cc rejects this. */
5038 char *t;
5039 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5040
f11781c5
AK
5041 *t++ = 0;
5042 if (s) return 0;
5043 }
5044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5045 int x[] = {25, 17};
5046 const int *foo = &x[0];
5047 ++foo;
5048 }
5049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5050 typedef const int *iptr;
5051 iptr p = 0;
5052 ++p;
5053 }
5054 { /* AIX XL C 1.02.0.0 rejects this saying
5055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5056 struct s { int j; const int *ap[3]; };
5057 struct s *b; b->j = 5;
5058 }
5059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5060 const int foo = 10;
5061 if (!foo) return 0;
5062 }
5063 return !cs[0] && !zero.x;
5064#endif
a946372e 5065
f11781c5
AK
5066 ;
5067 return 0;
5068}
a946372e 5069_ACEOF
f11781c5
AK
5070if ac_fn_c_try_compile "$LINENO"; then :
5071 ac_cv_c_const=yes
a946372e 5072else
f11781c5
AK
5073 ac_cv_c_const=no
5074fi
5075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5076fi
f11781c5
AK
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5078$as_echo "$ac_cv_c_const" >&6; }
5079if test $ac_cv_c_const = no; then
a946372e 5080
f11781c5 5081$as_echo "#define const /**/" >>confdefs.h
a946372e 5082
f11781c5 5083fi
a946372e 5084
f11781c5
AK
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5086$as_echo_n "checking for inline... " >&6; }
5087if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5088 $as_echo_n "(cached) " >&6
5089else
f11781c5
AK
5090 ac_cv_c_inline=no
5091for ac_kw in inline __inline__ __inline; do
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h. */
5094#ifndef __cplusplus
5095typedef int foo_t;
5096static $ac_kw foo_t static_foo () {return 0; }
5097$ac_kw foo_t foo () {return 0; }
5098#endif
5099
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"; then :
5102 ac_cv_c_inline=$ac_kw
a946372e 5103fi
f11781c5
AK
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 test "$ac_cv_c_inline" != no && break
5106done
a946372e
AK
5107
5108fi
f11781c5
AK
5109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5110$as_echo "$ac_cv_c_inline" >&6; }
5111
5112case $ac_cv_c_inline in
5113 inline | yes) ;;
5114 *)
5115 case $ac_cv_c_inline in
5116 no) ac_val=;;
5117 *) ac_val=$ac_cv_c_inline;;
5118 esac
5119 cat >>confdefs.h <<_ACEOF
5120#ifndef __cplusplus
5121#define inline $ac_val
5122#endif
5123_ACEOF
5124 ;;
5125esac
5126
5127ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5128if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5129
5130cat >>confdefs.h <<_ACEOF
5131#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5132_ACEOF
5133
f11781c5 5134
a946372e
AK
5135fi
5136
f11781c5
AK
5137ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5138if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5139
a946372e 5140else
f11781c5
AK
5141
5142cat >>confdefs.h <<_ACEOF
5143#define off_t long int
5144_ACEOF
5145
a946372e
AK
5146fi
5147
f11781c5
AK
5148ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5149if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5150
a946372e 5151else
f11781c5
AK
5152
5153cat >>confdefs.h <<_ACEOF
5154#define pid_t int
5155_ACEOF
5156
5157fi
5158
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5160$as_echo_n "checking return type of signal handlers... " >&6; }
5161if test "${ac_cv_type_signal+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
a946372e 5163else
f11781c5
AK
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h. */
5166#include <sys/types.h>
5167#include <signal.h>
5168
5169int
5170main ()
5171{
5172return *(signal (0, 0)) (0) == 1;
5173 ;
5174 return 0;
5175}
5176_ACEOF
5177if ac_fn_c_try_compile "$LINENO"; then :
5178 ac_cv_type_signal=int
5179else
5180 ac_cv_type_signal=void
a946372e 5181fi
f11781c5 5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5183fi
f11781c5
AK
5184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5185$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5186
f11781c5
AK
5187cat >>confdefs.h <<_ACEOF
5188#define RETSIGTYPE $ac_cv_type_signal
5189_ACEOF
a946372e
AK
5190
5191
f11781c5
AK
5192ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5193if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5194
a946372e 5195else
a946372e 5196
f11781c5
AK
5197cat >>confdefs.h <<_ACEOF
5198#define size_t unsigned int
5199_ACEOF
a946372e 5200
a946372e 5201fi
f11781c5
AK
5202
5203ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5204if test "x$ac_cv_type_mode_t" = x""yes; then :
5205
a946372e 5206else
f11781c5
AK
5207
5208cat >>confdefs.h <<_ACEOF
5209#define mode_t int
a946372e 5210_ACEOF
a946372e 5211
a946372e
AK
5212fi
5213
f11781c5
AK
5214ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5215case $ac_cv_c_int8_t in #(
5216 no|yes) ;; #(
5217 *)
a946372e 5218
f11781c5
AK
5219cat >>confdefs.h <<_ACEOF
5220#define int8_t $ac_cv_c_int8_t
a946372e 5221_ACEOF
f11781c5 5222;;
a946372e 5223esac
a946372e 5224
f11781c5
AK
5225ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5226case $ac_cv_c_int16_t in #(
5227 no|yes) ;; #(
5228 *)
a946372e 5229
f11781c5
AK
5230cat >>confdefs.h <<_ACEOF
5231#define int16_t $ac_cv_c_int16_t
5232_ACEOF
5233;;
5234esac
a946372e 5235
f11781c5
AK
5236ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5237case $ac_cv_c_int32_t in #(
5238 no|yes) ;; #(
5239 *)
a946372e 5240
f11781c5
AK
5241cat >>confdefs.h <<_ACEOF
5242#define int32_t $ac_cv_c_int32_t
5243_ACEOF
5244;;
a946372e 5245esac
a946372e 5246
f11781c5
AK
5247ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5248case $ac_cv_c_int64_t in #(
5249 no|yes) ;; #(
5250 *)
5251
5252cat >>confdefs.h <<_ACEOF
5253#define int64_t $ac_cv_c_int64_t
a946372e 5254_ACEOF
f11781c5
AK
5255;;
5256esac
5257
5258ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5259if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5260
5261else
a946372e 5262
f11781c5
AK
5263cat >>confdefs.h <<_ACEOF
5264#define ssize_t int
5265_ACEOF
a946372e 5266
f11781c5 5267fi
a946372e 5268
f11781c5
AK
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5270$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5271if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5272 $as_echo_n "(cached) " >&6
a946372e 5273else
f11781c5 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5275/* end confdefs.h. */
f11781c5
AK
5276#include <sys/types.h>
5277
a946372e 5278_ACEOF
f11781c5
AK
5279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5280 $EGREP "uid_t" >/dev/null 2>&1; then :
5281 ac_cv_type_uid_t=yes
a946372e 5282else
f11781c5
AK
5283 ac_cv_type_uid_t=no
5284fi
5285rm -f conftest*
a946372e 5286
a946372e 5287fi
f11781c5
AK
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5289$as_echo "$ac_cv_type_uid_t" >&6; }
5290if test $ac_cv_type_uid_t = no; then
a946372e 5291
f11781c5 5292$as_echo "#define uid_t int" >>confdefs.h
a946372e 5293
f11781c5
AK
5294
5295$as_echo "#define gid_t int" >>confdefs.h
5296
5297fi
5298
5299ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5300case $ac_cv_c_uint8_t in #(
5301 no|yes) ;; #(
5302 *)
5303
5304$as_echo "#define _UINT8_T 1" >>confdefs.h
5305
5306
5307cat >>confdefs.h <<_ACEOF
5308#define uint8_t $ac_cv_c_uint8_t
a946372e 5309_ACEOF
f11781c5
AK
5310;;
5311 esac
5312
5313ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5314case $ac_cv_c_uint16_t in #(
5315 no|yes) ;; #(
5316 *)
5317
5318
5319cat >>confdefs.h <<_ACEOF
5320#define uint16_t $ac_cv_c_uint16_t
a946372e 5321_ACEOF
f11781c5
AK
5322;;
5323 esac
a946372e 5324
f11781c5
AK
5325ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5326case $ac_cv_c_uint32_t in #(
5327 no|yes) ;; #(
5328 *)
a946372e 5329
f11781c5 5330$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5331
a946372e 5332
f11781c5
AK
5333cat >>confdefs.h <<_ACEOF
5334#define uint32_t $ac_cv_c_uint32_t
5335_ACEOF
5336;;
5337 esac
5338
5339ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5340case $ac_cv_c_uint64_t in #(
5341 no|yes) ;; #(
5342 *)
5343
5344$as_echo "#define _UINT64_T 1" >>confdefs.h
5345
5346
5347cat >>confdefs.h <<_ACEOF
5348#define uint64_t $ac_cv_c_uint64_t
5349_ACEOF
5350;;
5351 esac
5352
5353ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5354if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5355
5356cat >>confdefs.h <<_ACEOF
5357#define HAVE_STRUCT_STAT_ST_RDEV 1
5358_ACEOF
5359
5360
5361fi
5362
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5364$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5365if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5366 $as_echo_n "(cached) " >&6
5367else
f11781c5
AK
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370#include <sys/types.h>
5371#include <time.h>
5372
5373int
5374main ()
5375{
5376struct tm tm;
5377 int *p = &tm.tm_sec;
5378 return !p;
5379 ;
5380 return 0;
5381}
5382_ACEOF
5383if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_cv_struct_tm=time.h
5385else
5386 ac_cv_struct_tm=sys/time.h
a946372e 5387fi
f11781c5
AK
5388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389fi
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5391$as_echo "$ac_cv_struct_tm" >&6; }
5392if test $ac_cv_struct_tm = sys/time.h; then
5393
5394$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5395
5396fi
f11781c5
AK
5397
5398
5399################################################################################
5400for ac_func in ftruncate gethostname getpagesize \
5401 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5402 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5403 strstr strtol strtoul uname
5404do :
5405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5406ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5407if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5408 cat >>confdefs.h <<_ACEOF
f11781c5 5409#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5410_ACEOF
5411
5412else
f11781c5 5413 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5414fi
a946372e
AK
5415done
5416
f11781c5
AK
5417for ac_func in siginterrupt
5418do :
5419 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5420if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5421 cat >>confdefs.h <<_ACEOF
5422#define HAVE_SIGINTERRUPT 1
5423_ACEOF
a946372e 5424
f11781c5
AK
5425fi
5426done
a946372e 5427
f11781c5
AK
5428# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5429# for constant arguments. Useless!
5430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5431$as_echo_n "checking for working alloca.h... " >&6; }
5432if test "${ac_cv_working_alloca_h+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
a946372e 5434else
f11781c5
AK
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437#include <alloca.h>
5438int
5439main ()
5440{
5441char *p = (char *) alloca (2 * sizeof (int));
5442 if (p) return 0;
5443 ;
5444 return 0;
5445}
5446_ACEOF
5447if ac_fn_c_try_link "$LINENO"; then :
5448 ac_cv_working_alloca_h=yes
a946372e 5449else
f11781c5 5450 ac_cv_working_alloca_h=no
a946372e 5451fi
f11781c5
AK
5452rm -f core conftest.err conftest.$ac_objext \
5453 conftest$ac_exeext conftest.$ac_ext
a946372e 5454fi
f11781c5
AK
5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5456$as_echo "$ac_cv_working_alloca_h" >&6; }
5457if test $ac_cv_working_alloca_h = yes; then
a946372e 5458
f11781c5 5459$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5460
a946372e 5461fi
a946372e 5462
f11781c5
AK
5463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5464$as_echo_n "checking for alloca... " >&6; }
5465if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5466 $as_echo_n "(cached) " >&6
a946372e 5467else
f11781c5 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5469/* end confdefs.h. */
f11781c5
AK
5470#ifdef __GNUC__
5471# define alloca __builtin_alloca
5472#else
5473# ifdef _MSC_VER
5474# include <malloc.h>
5475# define alloca _alloca
5476# else
5477# ifdef HAVE_ALLOCA_H
5478# include <alloca.h>
5479# else
5480# ifdef _AIX
5481 #pragma alloca
5482# else
5483# ifndef alloca /* predefined by HP cc +Olibcalls */
5484char *alloca ();
5485# endif
5486# endif
5487# endif
5488# endif
5489#endif
a946372e 5490
f11781c5
AK
5491int
5492main ()
5493{
5494char *p = (char *) alloca (1);
5495 if (p) return 0;
5496 ;
5497 return 0;
5498}
a946372e 5499_ACEOF
f11781c5
AK
5500if ac_fn_c_try_link "$LINENO"; then :
5501 ac_cv_func_alloca_works=yes
a946372e 5502else
f11781c5 5503 ac_cv_func_alloca_works=no
a946372e 5504fi
f11781c5
AK
5505rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
5507fi
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5509$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5510
f11781c5 5511if test $ac_cv_func_alloca_works = yes; then
a946372e 5512
f11781c5 5513$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5514
a946372e 5515else
f11781c5
AK
5516 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5517# that cause trouble. Some versions do not even contain alloca or
5518# contain a buggy version. If you still want to use their alloca,
5519# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5520
f11781c5 5521ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5522
f11781c5 5523$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5524
a946372e 5525
f11781c5
AK
5526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5527$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5528if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5529 $as_echo_n "(cached) " >&6
a946372e 5530else
f11781c5 5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5532/* end confdefs.h. */
f11781c5
AK
5533#if defined CRAY && ! defined CRAY2
5534webecray
5535#else
5536wenotbecray
5537#endif
5538
a946372e 5539_ACEOF
f11781c5
AK
5540if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5541 $EGREP "webecray" >/dev/null 2>&1; then :
5542 ac_cv_os_cray=yes
a946372e 5543else
f11781c5 5544 ac_cv_os_cray=no
a946372e 5545fi
f11781c5 5546rm -f conftest*
a946372e 5547
f11781c5
AK
5548fi
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5550$as_echo "$ac_cv_os_cray" >&6; }
5551if test $ac_cv_os_cray = yes; then
5552 for ac_func in _getb67 GETB67 getb67; do
5553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5554ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5555if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5556
f11781c5
AK
5557cat >>confdefs.h <<_ACEOF
5558#define CRAY_STACKSEG_END $ac_func
a946372e 5559_ACEOF
a946372e 5560
f11781c5 5561 break
a946372e
AK
5562fi
5563
f11781c5
AK
5564 done
5565fi
a946372e 5566
f11781c5
AK
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5568$as_echo_n "checking stack direction for C alloca... " >&6; }
5569if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5570 $as_echo_n "(cached) " >&6
5571else
f11781c5
AK
5572 if test "$cross_compiling" = yes; then :
5573 ac_cv_c_stack_direction=0
5574else
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576/* end confdefs.h. */
5577$ac_includes_default
5578int
5579find_stack_direction ()
5580{
5581 static char *addr = 0;
5582 auto char dummy;
5583 if (addr == 0)
5584 {
5585 addr = &dummy;
5586 return find_stack_direction ();
5587 }
5588 else
5589 return (&dummy > addr) ? 1 : -1;
5590}
5591
5592int
5593main ()
5594{
5595 return find_stack_direction () < 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_run "$LINENO"; then :
5599 ac_cv_c_stack_direction=1
5600else
5601 ac_cv_c_stack_direction=-1
5602fi
5603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5604 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5605fi
a946372e
AK
5606
5607fi
f11781c5
AK
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5609$as_echo "$ac_cv_c_stack_direction" >&6; }
5610cat >>confdefs.h <<_ACEOF
5611#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5612_ACEOF
5613
f11781c5 5614
a946372e
AK
5615fi
5616
f11781c5
AK
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5618$as_echo_n "checking whether closedir returns void... " >&6; }
5619if test "${ac_cv_func_closedir_void+set}" = set; then :
5620 $as_echo_n "(cached) " >&6
5621else
5622 if test "$cross_compiling" = yes; then :
5623 ac_cv_func_closedir_void=yes
5624else
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
5627$ac_includes_default
5628#include <$ac_header_dirent>
5629#ifndef __cplusplus
5630int closedir ();
5631#endif
a946372e 5632
f11781c5
AK
5633int
5634main ()
5635{
5636return closedir (opendir (".")) != 0;
5637 ;
5638 return 0;
5639}
5640_ACEOF
5641if ac_fn_c_try_run "$LINENO"; then :
5642 ac_cv_func_closedir_void=no
a946372e 5643else
f11781c5 5644 ac_cv_func_closedir_void=yes
a946372e 5645fi
f11781c5
AK
5646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5647 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5648fi
5649
f11781c5
AK
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5652$as_echo "$ac_cv_func_closedir_void" >&6; }
5653if test $ac_cv_func_closedir_void = yes; then
a946372e 5654
f11781c5 5655$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5656
a946372e
AK
5657fi
5658
f11781c5
AK
5659for ac_header in unistd.h
5660do :
5661 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5662if test "x$ac_cv_header_unistd_h" = x""yes; then :
5663 cat >>confdefs.h <<_ACEOF
5664#define HAVE_UNISTD_H 1
5665_ACEOF
a946372e 5666
f11781c5 5667fi
a946372e 5668
f11781c5 5669done
a946372e 5670
f11781c5
AK
5671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5672$as_echo_n "checking for working chown... " >&6; }
5673if test "${ac_cv_func_chown_works+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
a946372e 5675else
f11781c5
AK
5676 if test "$cross_compiling" = yes; then :
5677 ac_cv_func_chown_works=no
a946372e 5678else
f11781c5
AK
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681$ac_includes_default
5682#include <fcntl.h>
a946372e 5683
f11781c5
AK
5684int
5685main ()
5686{
5687 char *f = "conftest.chown";
5688 struct stat before, after;
a946372e 5689
f11781c5
AK
5690 if (creat (f, 0600) < 0)
5691 return 1;
5692 if (stat (f, &before) < 0)
5693 return 1;
5694 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5695 return 1;
5696 if (stat (f, &after) < 0)
5697 return 1;
5698 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5699
f11781c5
AK
5700 ;
5701 return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_run "$LINENO"; then :
5705 ac_cv_func_chown_works=yes
a946372e 5706else
f11781c5 5707 ac_cv_func_chown_works=no
a946372e 5708fi
f11781c5
AK
5709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5710 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5711fi
5712
f11781c5 5713rm -f conftest.chown
a946372e 5714
f11781c5
AK
5715fi
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5717$as_echo "$ac_cv_func_chown_works" >&6; }
5718if test $ac_cv_func_chown_works = yes; then
a946372e 5719
f11781c5 5720$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5721
a946372e 5722fi
a946372e 5723
f11781c5
AK
5724for ac_header in vfork.h
5725do :
5726 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5727if test "x$ac_cv_header_vfork_h" = x""yes; then :
5728 cat >>confdefs.h <<_ACEOF
5729#define HAVE_VFORK_H 1
5730_ACEOF
a946372e 5731
f11781c5 5732fi
a946372e 5733
f11781c5 5734done
a946372e 5735
f11781c5
AK
5736for ac_func in fork vfork
5737do :
5738 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5739ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5740if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5741 cat >>confdefs.h <<_ACEOF
5742#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5743_ACEOF
a946372e 5744
f11781c5
AK
5745fi
5746done
a946372e 5747
f11781c5
AK
5748if test "x$ac_cv_func_fork" = xyes; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5750$as_echo_n "checking for working fork... " >&6; }
5751if test "${ac_cv_func_fork_works+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5753else
5754 if test "$cross_compiling" = yes; then :
5755 ac_cv_func_fork_works=cross
5756else
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h. */
5759$ac_includes_default
5760int
5761main ()
5762{
a946372e 5763
f11781c5
AK
5764 /* By Ruediger Kuhlmann. */
5765 return fork () < 0;
a946372e 5766
f11781c5
AK
5767 ;
5768 return 0;
5769}
5770_ACEOF
5771if ac_fn_c_try_run "$LINENO"; then :
5772 ac_cv_func_fork_works=yes
a946372e 5773else
f11781c5
AK
5774 ac_cv_func_fork_works=no
5775fi
5776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5777 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5778fi
a946372e 5779
f11781c5
AK
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5782$as_echo "$ac_cv_func_fork_works" >&6; }
5783
a946372e 5784else
f11781c5 5785 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5786fi
f11781c5
AK
5787if test "x$ac_cv_func_fork_works" = xcross; then
5788 case $host in
5789 *-*-amigaos* | *-*-msdosdjgpp*)
5790 # Override, as these systems have only a dummy fork() stub
5791 ac_cv_func_fork_works=no
5792 ;;
5793 *)
5794 ac_cv_func_fork_works=yes
5795 ;;
5796 esac
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5798$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5799fi
f11781c5
AK
5800ac_cv_func_vfork_works=$ac_cv_func_vfork
5801if test "x$ac_cv_func_vfork" = xyes; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5803$as_echo_n "checking for working vfork... " >&6; }
5804if test "${ac_cv_func_vfork_works+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806else
5807 if test "$cross_compiling" = yes; then :
5808 ac_cv_func_vfork_works=cross
5809else
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h. */
5812/* Thanks to Paul Eggert for this test. */
5813$ac_includes_default
5814#include <sys/wait.h>
5815#ifdef HAVE_VFORK_H
5816# include <vfork.h>
5817#endif
5818/* On some sparc systems, changes by the child to local and incoming
5819 argument registers are propagated back to the parent. The compiler
5820 is told about this with #include <vfork.h>, but some compilers
5821 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5822 static variable whose address is put into a register that is
5823 clobbered by the vfork. */
5824static void
5825#ifdef __cplusplus
5826sparc_address_test (int arg)
5827# else
5828sparc_address_test (arg) int arg;
5829#endif
5830{
5831 static pid_t child;
5832 if (!child) {
5833 child = vfork ();
5834 if (child < 0) {
5835 perror ("vfork");
5836 _exit(2);
5837 }
5838 if (!child) {
5839 arg = getpid();
5840 write(-1, "", 0);
5841 _exit (arg);
5842 }
5843 }
5844}
a946372e 5845
f11781c5
AK
5846int
5847main ()
5848{
5849 pid_t parent = getpid ();
5850 pid_t child;
a946372e 5851
f11781c5 5852 sparc_address_test (0);
a946372e 5853
f11781c5 5854 child = vfork ();
a946372e 5855
f11781c5
AK
5856 if (child == 0) {
5857 /* Here is another test for sparc vfork register problems. This
5858 test uses lots of local variables, at least as many local
5859 variables as main has allocated so far including compiler
5860 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5861 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5862 reuse the register of parent for one of the local variables,
5863 since it will think that parent can't possibly be used any more
5864 in this routine. Assigning to the local variable will thus
5865 munge parent in the parent process. */
5866 pid_t
5867 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5868 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5869 /* Convince the compiler that p..p7 are live; otherwise, it might
5870 use the same hardware register for all 8 local variables. */
5871 if (p != p1 || p != p2 || p != p3 || p != p4
5872 || p != p5 || p != p6 || p != p7)
5873 _exit(1);
a946372e 5874
f11781c5
AK
5875 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5876 from child file descriptors. If the child closes a descriptor
5877 before it execs or exits, this munges the parent's descriptor
5878 as well. Test for this by closing stdout in the child. */
5879 _exit(close(fileno(stdout)) != 0);
5880 } else {
5881 int status;
5882 struct stat st;
5883
5884 while (wait(&status) != child)
5885 ;
5886 return (
5887 /* Was there some problem with vforking? */
5888 child < 0
5889
5890 /* Did the child fail? (This shouldn't happen.) */
5891 || status
5892
5893 /* Did the vfork/compiler bug occur? */
5894 || parent != getpid()
5895
5896 /* Did the file descriptor bug occur? */
5897 || fstat(fileno(stdout), &st) != 0
5898 );
5899 }
5900}
5901_ACEOF
5902if ac_fn_c_try_run "$LINENO"; then :
5903 ac_cv_func_vfork_works=yes
a946372e 5904else
f11781c5 5905 ac_cv_func_vfork_works=no
a946372e 5906fi
f11781c5
AK
5907rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5908 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5909fi
f11781c5 5910
a946372e 5911fi
f11781c5
AK
5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5913$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5914
f11781c5
AK
5915fi;
5916if test "x$ac_cv_func_fork_works" = xcross; then
5917 ac_cv_func_vfork_works=$ac_cv_func_vfork
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5919$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5920fi
a946372e 5921
f11781c5 5922if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5923
f11781c5 5924$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5925
a946372e 5926else
a946372e 5927
f11781c5
AK
5928$as_echo "#define vfork fork" >>confdefs.h
5929
a946372e 5930fi
f11781c5 5931if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5932
f11781c5 5933$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5934
a946372e 5935fi
f11781c5
AK
5936
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5938$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5939if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
a946372e 5941else
f11781c5
AK
5942 rm -f conftest.sym conftest.file
5943echo >conftest.file
5944if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5945 if test "$cross_compiling" = yes; then :
5946 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5947else
f11781c5 5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5949/* end confdefs.h. */
f11781c5
AK
5950$ac_includes_default
5951int
5952main ()
5953{
5954struct stat sbuf;
5955 /* Linux will dereference the symlink and fail, as required by POSIX.
5956 That is better in the sense that it means we will not
5957 have to compile and use the lstat wrapper. */
5958 return lstat ("conftest.sym/", &sbuf) == 0;
5959 ;
5960 return 0;
5961}
a946372e 5962_ACEOF
f11781c5
AK
5963if ac_fn_c_try_run "$LINENO"; then :
5964 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5965else
f11781c5 5966 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5967fi
f11781c5
AK
5968rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5969 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5970fi
a946372e 5971
a946372e 5972else
f11781c5
AK
5973 # If the `ln -s' command failed, then we probably don't even
5974 # have an lstat function.
5975 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5976fi
f11781c5 5977rm -f conftest.sym conftest.file
a946372e 5978
f11781c5
AK
5979fi
5980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5981$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5982
f11781c5 5983test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5984
f11781c5
AK
5985cat >>confdefs.h <<_ACEOF
5986#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5987_ACEOF
a946372e 5988
a946372e 5989
f11781c5
AK
5990if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5991 case " $LIBOBJS " in
5992 *" lstat.$ac_objext "* ) ;;
5993 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5994 ;;
5995esac
a946372e 5996
f11781c5 5997fi
a946372e 5998
f11781c5
AK
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6000$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6001if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
a946372e 6003else
f11781c5
AK
6004 if test "$cross_compiling" = yes; then :
6005 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6006else
f11781c5
AK
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h. */
6009$ac_includes_default
6010int
6011main ()
6012{
6013struct stat sbuf;
6014 return lstat ("", &sbuf) == 0;
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019if ac_fn_c_try_run "$LINENO"; then :
6020 ac_cv_func_lstat_empty_string_bug=no
6021else
6022 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6023fi
f11781c5
AK
6024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6025 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6026fi
6027
f11781c5
AK
6028fi
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6030$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6031if test $ac_cv_func_lstat_empty_string_bug = yes; then
6032 case " $LIBOBJS " in
6033 *" lstat.$ac_objext "* ) ;;
6034 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6035 ;;
6036esac
a946372e
AK
6037
6038
f11781c5
AK
6039cat >>confdefs.h <<_ACEOF
6040#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6041_ACEOF
a946372e 6042
a946372e 6043fi
a946372e 6044
f11781c5
AK
6045for ac_header in stdlib.h
6046do :
6047 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6048if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6049 cat >>confdefs.h <<_ACEOF
6050#define HAVE_STDLIB_H 1
6051_ACEOF
6052
a946372e
AK
6053fi
6054
f11781c5 6055done
a946372e 6056
f11781c5
AK
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6058$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6059if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061else
6062 if test "$cross_compiling" = yes; then :
6063 ac_cv_func_malloc_0_nonnull=no
6064else
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066/* end confdefs.h. */
6067#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6068# include <stdlib.h>
6069#else
6070char *malloc ();
6071#endif
a946372e 6072
f11781c5
AK
6073int
6074main ()
6075{
6076return ! malloc (0);
6077 ;
6078 return 0;
6079}
6080_ACEOF
6081if ac_fn_c_try_run "$LINENO"; then :
6082 ac_cv_func_malloc_0_nonnull=yes
a946372e 6083else
f11781c5 6084 ac_cv_func_malloc_0_nonnull=no
a946372e 6085fi
f11781c5
AK
6086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6087 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6088fi
f11781c5 6089
a946372e 6090fi
f11781c5
AK
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6092$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6093if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6094
f11781c5 6095$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6096
f11781c5
AK
6097else
6098 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6099
f11781c5
AK
6100 case " $LIBOBJS " in
6101 *" malloc.$ac_objext "* ) ;;
6102 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6103 ;;
6104esac
6105
6106
6107$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6108
a946372e 6109fi
a946372e 6110
a946372e 6111
f11781c5
AK
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6113$as_echo_n "checking for working memcmp... " >&6; }
6114if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6115 $as_echo_n "(cached) " >&6
a946372e 6116else
f11781c5
AK
6117 if test "$cross_compiling" = yes; then :
6118 ac_cv_func_memcmp_working=no
6119else
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6121/* end confdefs.h. */
6122$ac_includes_default
f11781c5
AK
6123int
6124main ()
6125{
a946372e 6126
f11781c5
AK
6127 /* Some versions of memcmp are not 8-bit clean. */
6128 char c0 = '\100', c1 = '\200', c2 = '\201';
6129 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6130 return 1;
a946372e 6131
f11781c5
AK
6132 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6133 or more and with at least one buffer not starting on a 4-byte boundary.
6134 William Lewis provided this test program. */
6135 {
6136 char foo[21];
6137 char bar[21];
6138 int i;
6139 for (i = 0; i < 4; i++)
6140 {
6141 char *a = foo + i;
6142 char *b = bar + i;
6143 strcpy (a, "--------01111111");
6144 strcpy (b, "--------10000000");
6145 if (memcmp (a, b, 16) >= 0)
6146 return 1;
6147 }
6148 return 0;
6149 }
a946372e 6150
f11781c5
AK
6151 ;
6152 return 0;
6153}
a946372e 6154_ACEOF
f11781c5
AK
6155if ac_fn_c_try_run "$LINENO"; then :
6156 ac_cv_func_memcmp_working=yes
a946372e 6157else
f11781c5
AK
6158 ac_cv_func_memcmp_working=no
6159fi
6160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6161 conftest.$ac_objext conftest.beam conftest.$ac_ext
6162fi
a946372e 6163
a946372e 6164fi
f11781c5
AK
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6166$as_echo "$ac_cv_func_memcmp_working" >&6; }
6167test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6168 *" memcmp.$ac_objext "* ) ;;
6169 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6170 ;;
6171esac
a946372e 6172
a946372e 6173
a946372e 6174
a946372e 6175
f11781c5
AK
6176
6177 for ac_header in $ac_header_list
6178do :
6179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6180ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6181"
6182if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6183 cat >>confdefs.h <<_ACEOF
6184#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6185_ACEOF
6186
a946372e
AK
6187fi
6188
6189done
6190
a946372e 6191
f11781c5
AK
6192
6193
6194
6195
6196
6197
6198for ac_func in getpagesize
6199do :
6200 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6201if test "x$ac_cv_func_getpagesize" = x""yes; then :
6202 cat >>confdefs.h <<_ACEOF
6203#define HAVE_GETPAGESIZE 1
6204_ACEOF
6205
a946372e 6206fi
f11781c5
AK
6207done
6208
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6210$as_echo_n "checking for working mmap... " >&6; }
6211if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
a946372e 6213else
f11781c5
AK
6214 if test "$cross_compiling" = yes; then :
6215 ac_cv_func_mmap_fixed_mapped=no
6216else
6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6218/* end confdefs.h. */
6219$ac_includes_default
f11781c5
AK
6220/* malloc might have been renamed as rpl_malloc. */
6221#undef malloc
6222
6223/* Thanks to Mike Haertel and Jim Avera for this test.
6224 Here is a matrix of mmap possibilities:
6225 mmap private not fixed
6226 mmap private fixed at somewhere currently unmapped
6227 mmap private fixed at somewhere already mapped
6228 mmap shared not fixed
6229 mmap shared fixed at somewhere currently unmapped
6230 mmap shared fixed at somewhere already mapped
6231 For private mappings, we should verify that changes cannot be read()
6232 back from the file, nor mmap's back from the file at a different
6233 address. (There have been systems where private was not correctly
6234 implemented like the infamous i386 svr4.0, and systems where the
6235 VM page cache was not coherent with the file system buffer cache
6236 like early versions of FreeBSD and possibly contemporary NetBSD.)
6237 For shared mappings, we should conversely verify that changes get
6238 propagated back to all the places they're supposed to be.
6239
6240 Grep wants private fixed already mapped.
6241 The main things grep needs to know about mmap are:
6242 * does it exist and is it safe to write into the mmap'd area
6243 * how to use it (BSD variants) */
6244
6245#include <fcntl.h>
6246#include <sys/mman.h>
6247
6248#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6249char *malloc ();
6250#endif
6251
6252/* This mess was copied from the GNU getpagesize.h. */
6253#ifndef HAVE_GETPAGESIZE
6254# ifdef _SC_PAGESIZE
6255# define getpagesize() sysconf(_SC_PAGESIZE)
6256# else /* no _SC_PAGESIZE */
6257# ifdef HAVE_SYS_PARAM_H
6258# include <sys/param.h>
6259# ifdef EXEC_PAGESIZE
6260# define getpagesize() EXEC_PAGESIZE
6261# else /* no EXEC_PAGESIZE */
6262# ifdef NBPG
6263# define getpagesize() NBPG * CLSIZE
6264# ifndef CLSIZE
6265# define CLSIZE 1
6266# endif /* no CLSIZE */
6267# else /* no NBPG */
6268# ifdef NBPC
6269# define getpagesize() NBPC
6270# else /* no NBPC */
6271# ifdef PAGESIZE
6272# define getpagesize() PAGESIZE
6273# endif /* PAGESIZE */
6274# endif /* no NBPC */
6275# endif /* no NBPG */
6276# endif /* no EXEC_PAGESIZE */
6277# else /* no HAVE_SYS_PARAM_H */
6278# define getpagesize() 8192 /* punt totally */
6279# endif /* no HAVE_SYS_PARAM_H */
6280# endif /* no _SC_PAGESIZE */
6281
6282#endif /* no HAVE_GETPAGESIZE */
6283
6284int
6285main ()
6286{
6287 char *data, *data2, *data3;
6288 const char *cdata2;
6289 int i, pagesize;
6290 int fd, fd2;
6291
6292 pagesize = getpagesize ();
6293
6294 /* First, make a file with some known garbage in it. */
6295 data = (char *) malloc (pagesize);
6296 if (!data)
6297 return 1;
6298 for (i = 0; i < pagesize; ++i)
6299 *(data + i) = rand ();
6300 umask (0);
6301 fd = creat ("conftest.mmap", 0600);
6302 if (fd < 0)
6303 return 2;
6304 if (write (fd, data, pagesize) != pagesize)
6305 return 3;
6306 close (fd);
6307
6308 /* Next, check that the tail of a page is zero-filled. File must have
6309 non-zero length, otherwise we risk SIGBUS for entire page. */
6310 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6311 if (fd2 < 0)
6312 return 4;
6313 cdata2 = "";
6314 if (write (fd2, cdata2, 1) != 1)
6315 return 5;
6316 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6317 if (data2 == MAP_FAILED)
6318 return 6;
6319 for (i = 0; i < pagesize; ++i)
6320 if (*(data2 + i))
6321 return 7;
6322 close (fd2);
6323 if (munmap (data2, pagesize))
6324 return 8;
6325
6326 /* Next, try to mmap the file at a fixed address which already has
6327 something else allocated at it. If we can, also make sure that
6328 we see the same garbage. */
6329 fd = open ("conftest.mmap", O_RDWR);
6330 if (fd < 0)
6331 return 9;
6332 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6333 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6334 return 10;
6335 for (i = 0; i < pagesize; ++i)
6336 if (*(data + i) != *(data2 + i))
6337 return 11;
6338
6339 /* Finally, make sure that changes to the mapped area do not
6340 percolate back to the file as seen by read(). (This is a bug on
6341 some variants of i386 svr4.0.) */
6342 for (i = 0; i < pagesize; ++i)
6343 *(data2 + i) = *(data2 + i) + 1;
6344 data3 = (char *) malloc (pagesize);
6345 if (!data3)
6346 return 12;
6347 if (read (fd, data3, pagesize) != pagesize)
6348 return 13;
6349 for (i = 0; i < pagesize; ++i)
6350 if (*(data + i) != *(data3 + i))
6351 return 14;
6352 close (fd);
6353 return 0;
6354}
a946372e 6355_ACEOF
f11781c5
AK
6356if ac_fn_c_try_run "$LINENO"; then :
6357 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6358else
f11781c5
AK
6359 ac_cv_func_mmap_fixed_mapped=no
6360fi
6361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6362 conftest.$ac_objext conftest.beam conftest.$ac_ext
6363fi
a946372e 6364
a946372e 6365fi
f11781c5
AK
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6367$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6368if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6369
f11781c5 6370$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6371
f11781c5
AK
6372fi
6373rm -f conftest.mmap conftest.txt
6374
6375for ac_header in stdlib.h
6376do :
6377 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6378if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6379 cat >>confdefs.h <<_ACEOF
6380#define HAVE_STDLIB_H 1
a946372e 6381_ACEOF
f11781c5
AK
6382
6383fi
6384
6385done
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6388$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6389if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6390 $as_echo_n "(cached) " >&6
6391else
6392 if test "$cross_compiling" = yes; then :
6393 ac_cv_func_realloc_0_nonnull=no
6394else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6396/* end confdefs.h. */
f11781c5
AK
6397#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6398# include <stdlib.h>
6399#else
6400char *realloc ();
6401#endif
6402
6403int
6404main ()
6405{
6406return ! realloc (0, 0);
6407 ;
6408 return 0;
6409}
a946372e 6410_ACEOF
f11781c5
AK
6411if ac_fn_c_try_run "$LINENO"; then :
6412 ac_cv_func_realloc_0_nonnull=yes
a946372e 6413else
f11781c5
AK
6414 ac_cv_func_realloc_0_nonnull=no
6415fi
6416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6417 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6418fi
6419
f11781c5
AK
6420fi
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6422$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6423if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6424
f11781c5 6425$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6426
a946372e 6427else
f11781c5
AK
6428 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6429
6430 case " $LIBOBJS " in
6431 *" realloc.$ac_objext "* ) ;;
6432 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6433 ;;
6434esac
a946372e 6435
a946372e 6436
f11781c5
AK
6437$as_echo "#define realloc rpl_realloc" >>confdefs.h
6438
a946372e
AK
6439fi
6440
a946372e 6441
f11781c5
AK
6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6443$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6444if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6445 $as_echo_n "(cached) " >&6
a946372e 6446else
f11781c5
AK
6447 if test "$cross_compiling" = yes; then :
6448 ac_cv_func_stat_empty_string_bug=yes
6449else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6451/* end confdefs.h. */
6452$ac_includes_default
6453int
6454main ()
6455{
6456struct stat sbuf;
6457 return stat ("", &sbuf) == 0;
6458 ;
6459 return 0;
6460}
6461_ACEOF
6462if ac_fn_c_try_run "$LINENO"; then :
6463 ac_cv_func_stat_empty_string_bug=no
6464else
6465 ac_cv_func_stat_empty_string_bug=yes
a946372e 6466fi
f11781c5
AK
6467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6468 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6469fi
6470
8c4e8a18 6471fi
f11781c5
AK
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6473$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6474if test $ac_cv_func_stat_empty_string_bug = yes; then
6475 case " $LIBOBJS " in
6476 *" stat.$ac_objext "* ) ;;
6477 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6478 ;;
6479esac
8c4e8a18
FDN
6480
6481
6482cat >>confdefs.h <<_ACEOF
f11781c5 6483#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6484_ACEOF
6485
6486fi
6487
f11781c5
AK
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6489$as_echo_n "checking for working strtod... " >&6; }
6490if test "${ac_cv_func_strtod+set}" = set; then :
6491 $as_echo_n "(cached) " >&6
66fd4529 6492else
f11781c5
AK
6493 if test "$cross_compiling" = yes; then :
6494 ac_cv_func_strtod=no
6495else
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497/* end confdefs.h. */
66fd4529 6498
f11781c5
AK
6499$ac_includes_default
6500#ifndef strtod
6501double strtod ();
6502#endif
6503int
6504main()
6505{
6506 {
6507 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6508 char *string = " +69";
6509 char *term;
6510 double value;
6511 value = strtod (string, &term);
6512 if (value != 69 || term != (string + 4))
6513 return 1;
6514 }
66fd4529 6515
f11781c5
AK
6516 {
6517 /* Under Solaris 2.4, strtod returns the wrong value for the
6518 terminating character under some conditions. */
6519 char *string = "NaN";
6520 char *term;
6521 strtod (string, &term);
6522 if (term != string && *(term - 1) == 0)
6523 return 1;
6524 }
6525 return 0;
6526}
66fd4529 6527
f11781c5
AK
6528_ACEOF
6529if ac_fn_c_try_run "$LINENO"; then :
6530 ac_cv_func_strtod=yes
66fd4529 6531else
f11781c5
AK
6532 ac_cv_func_strtod=no
6533fi
6534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6535 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6536fi
6537
f11781c5
AK
6538fi
6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6540$as_echo "$ac_cv_func_strtod" >&6; }
6541if test $ac_cv_func_strtod = no; then
6542 case " $LIBOBJS " in
6543 *" strtod.$ac_objext "* ) ;;
6544 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6545 ;;
6546esac
71082be4 6547
f11781c5
AK
6548ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6549if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6550
66fd4529 6551fi
a946372e 6552
f11781c5
AK
6553if test $ac_cv_func_pow = no; then
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6555$as_echo_n "checking for pow in -lm... " >&6; }
6556if test "${ac_cv_lib_m_pow+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558else
6559 ac_check_lib_save_LIBS=$LIBS
6560LIBS="-lm $LIBS"
6561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h. */
90c80887 6563
f11781c5
AK
6564/* Override any GCC internal prototype to avoid an error.
6565 Use char because int might match the return type of a GCC
6566 builtin and then its argument prototype would still apply. */
6567#ifdef __cplusplus
6568extern "C"
6569#endif
6570char pow ();
6571int
6572main ()
6573{
6574return pow ();
6575 ;
6576 return 0;
6577}
6578_ACEOF
6579if ac_fn_c_try_link "$LINENO"; then :
6580 ac_cv_lib_m_pow=yes
90c80887 6581else
f11781c5 6582 ac_cv_lib_m_pow=no
90c80887 6583fi
f11781c5
AK
6584rm -f core conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586LIBS=$ac_check_lib_save_LIBS
90c80887 6587fi
f11781c5
AK
6588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6589$as_echo "$ac_cv_lib_m_pow" >&6; }
6590if test "x$ac_cv_lib_m_pow" = x""yes; then :
6591 POW_LIB=-lm
90c80887 6592else
f11781c5
AK
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6594$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6595fi
f11781c5 6596
90c80887
AK
6597fi
6598
f11781c5
AK
6599fi
6600
6601for ac_func in vprintf
6602do :
6603 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6604if test "x$ac_cv_func_vprintf" = x""yes; then :
6605 cat >>confdefs.h <<_ACEOF
6606#define HAVE_VPRINTF 1
6607_ACEOF
90c80887 6608
f11781c5
AK
6609ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6610if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6611
f11781c5 6612$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6613
90c80887 6614fi
90c80887 6615
f11781c5
AK
6616fi
6617done
90c80887 6618
90c80887 6619
90c80887 6620
f11781c5
AK
6621################################################################################
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6623$as_echo_n "checking whether to use static linking... " >&6; }
6624# Check whether --enable-static_link was given.
6625if test "${enable_static_link+set}" = set; then :
6626 enableval=$enable_static_link; STATIC_LINK=$enableval
6627else
6628 STATIC_LINK=no
6629fi
90c80887 6630
f11781c5
AK
6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6632$as_echo "$STATIC_LINK" >&6; }
90c80887 6633
f11781c5 6634################################################################################
90c80887 6635
90c80887 6636
f11781c5
AK
6637################################################################################
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6639$as_echo_n "checking file owner... " >&6; }
90c80887 6640
f11781c5
AK
6641# Check whether --with-user was given.
6642if test "${with_user+set}" = set; then :
6643 withval=$with_user; OWNER=$withval
6644fi
90c80887 6645
f11781c5
AK
6646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6647$as_echo "$OWNER" >&6; }
90c80887 6648
f11781c5
AK
6649if test x$OWNER != x; then
6650 INSTALL="$INSTALL -o $OWNER"
90c80887 6651fi
a946372e 6652
f11781c5
AK
6653################################################################################
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6655$as_echo_n "checking group owner... " >&6; }
a946372e 6656
f11781c5
AK
6657# Check whether --with-group was given.
6658if test "${with_group+set}" = set; then :
6659 withval=$with_group; GROUP=$withval
a946372e 6660fi
f11781c5
AK
6661
6662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6663$as_echo "$GROUP" >&6; }
6664
6665if test x$GROUP != x; then
6666 INSTALL="$INSTALL -g $GROUP"
a946372e 6667fi
f11781c5
AK
6668
6669################################################################################
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6671$as_echo_n "checking device node uid... " >&6; }
6672
6673
6674# Check whether --with-device-uid was given.
6675if test "${with_device_uid+set}" = set; then :
6676 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6677else
f11781c5 6678 DM_DEVICE_UID=0
a946372e
AK
6679fi
6680
f11781c5
AK
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6682$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6683
f11781c5
AK
6684################################################################################
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6686$as_echo_n "checking device node gid... " >&6; }
a946372e 6687
a946372e 6688
f11781c5
AK
6689# Check whether --with-device-gid was given.
6690if test "${with_device_gid+set}" = set; then :
6691 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6692else
f11781c5 6693 DM_DEVICE_GID=0
a946372e 6694fi
a946372e 6695
f11781c5
AK
6696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6697$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6698
f11781c5
AK
6699################################################################################
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6701$as_echo_n "checking device node mode... " >&6; }
90c80887 6702
90c80887 6703
f11781c5
AK
6704# Check whether --with-device-mode was given.
6705if test "${with_device_mode+set}" = set; then :
6706 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6707else
6708 DM_DEVICE_MODE=0600
6709fi
90c80887 6710
f11781c5
AK
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6712$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6713
d0df875d
ZK
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6715$as_echo_n "checking when to create device nodes... " >&6; }
6716
6717# Check whether --with-device-nodes-on was given.
6718if test "${with_device_nodes_on+set}" = set; then :
6719 withval=$with_device_nodes_on; ADD_NODE=$withval
6720else
6721 ADD_NODE=resume
6722fi
6723
6724case "$ADD_NODE" in
6725 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6726 create) add_on=DM_ADD_NODE_ON_CREATE;;
6727 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6728esac
6729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6730$as_echo "on $ADD_NODE" >&6; }
6731
6732cat >>confdefs.h <<_ACEOF
6733#define DEFAULT_DM_ADD_NODE $add_on
6734_ACEOF
6735
6736
f11781c5
AK
6737################################################################################
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6739$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6740# Check whether --enable-lvm1_fallback was given.
6741if test "${enable_lvm1_fallback+set}" = set; then :
6742 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6743else
6744 LVM1_FALLBACK=no
6745fi
90c80887 6746
f11781c5
AK
6747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6748$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6749
f11781c5 6750if test x$LVM1_FALLBACK = xyes; then
90c80887 6751
f11781c5 6752$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6753
f11781c5 6754fi
90c80887 6755
f11781c5
AK
6756################################################################################
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6758$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6759
6760# Check whether --with-lvm1 was given.
6761if test "${with_lvm1+set}" = set; then :
6762 withval=$with_lvm1; LVM1=$withval
a946372e 6763else
f11781c5 6764 LVM1=internal
a946372e 6765fi
f11781c5
AK
6766
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6768$as_echo "$LVM1" >&6; }
6769
6770if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6771 then as_fn_error $? "--with-lvm1 parameter invalid
6772" "$LINENO" 5
6773fi;
6774
6775if test x$LVM1 = xinternal; then
6776
6777$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6778
a946372e
AK
6779fi
6780
6781################################################################################
f11781c5
AK
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6783$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6784
6785# Check whether --with-pool was given.
6786if test "${with_pool+set}" = set; then :
6787 withval=$with_pool; POOL=$withval
a946372e 6788else
f11781c5 6789 POOL=internal
a946372e
AK
6790fi
6791
f11781c5
AK
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6793$as_echo "$POOL" >&6; }
6794
6795if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6796 then as_fn_error $? "--with-pool parameter invalid
6797" "$LINENO" 5
6798fi;
6799
6800if test x$POOL = xinternal; then
6801
6802$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6803
a946372e
AK
6804fi
6805
6806################################################################################
f11781c5
AK
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6808$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6809
f11781c5
AK
6810# Check whether --with-cluster was given.
6811if test "${with_cluster+set}" = set; then :
6812 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6813fi
6814
f11781c5
AK
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6816$as_echo "$CLUSTER" >&6; }
a946372e 6817
f11781c5
AK
6818if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6819 then as_fn_error $? "--with-cluster parameter invalid
6820" "$LINENO" 5
6821fi;
fddafd51 6822
f11781c5 6823if test x$CLUSTER = xinternal; then
5556819a 6824
f11781c5 6825$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6826
fddafd51 6827fi
f11781c5
AK
6828
6829################################################################################
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6831$as_echo_n "checking whether to include snapshots... " >&6; }
6832
6833# Check whether --with-snapshots was given.
6834if test "${with_snapshots+set}" = set; then :
6835 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6836else
f11781c5 6837 SNAPSHOTS=internal
fddafd51
ZK
6838fi
6839
f11781c5
AK
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6841$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6842
f11781c5
AK
6843if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6844 then as_fn_error $? "--with-snapshots parameter invalid
6845" "$LINENO" 5
6846fi;
fddafd51 6847
f11781c5
AK
6848if test x$SNAPSHOTS = xinternal; then
6849
6850$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6851
6852fi
6853
6854################################################################################
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6856$as_echo_n "checking whether to include mirrors... " >&6; }
6857
6858# Check whether --with-mirrors was given.
6859if test "${with_mirrors+set}" = set; then :
6860 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6861else
f11781c5 6862 MIRRORS=internal
fddafd51
ZK
6863fi
6864
f11781c5
AK
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6866$as_echo "$MIRRORS" >&6; }
fddafd51 6867
f11781c5
AK
6868if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6869 then as_fn_error $? "--with-mirrors parameter invalid
6870" "$LINENO" 5
6871fi;
6872
6873if test x$MIRRORS = xinternal; then
6874
6875$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6876
6877fi
6878
cac52ca4
JEB
6879################################################################################
6880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6881$as_echo_n "checking whether to include raid... " >&6; }
6882
6883# Check whether --with-raid was given.
6884if test "${with_raid+set}" = set; then :
6885 withval=$with_raid; RAID=$withval
6886else
6887 RAID=internal
6888fi
6889
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6891$as_echo "$RAID" >&6; }
6892
6893if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6894 then as_fn_error $? "--with-raid parameter invalid
6895" "$LINENO" 5
6896fi;
6897
6898if test x$RAID = xinternal; then
6899
6900$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6901
6902fi
6903
f11781c5
AK
6904################################################################################
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6906$as_echo_n "checking whether to include replicators... " >&6; }
6907
6908# Check whether --with-replicators was given.
6909if test "${with_replicators+set}" = set; then :
6910 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6911else
f11781c5
AK
6912 REPLICATORS=none
6913fi
fd4728e1 6914
f11781c5
AK
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6916$as_echo "$REPLICATORS" >&6; }
6917
6918case "$REPLICATORS" in
6919 none|shared) ;;
6920 internal)
6921$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6922 ;;
6923 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6924esac
f11781c5
AK
6925
6926################################################################################
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6928$as_echo_n "checking whether to enable readline... " >&6; }
6929# Check whether --enable-readline was given.
6930if test "${enable_readline+set}" = set; then :
6931 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6932else
f11781c5 6933 READLINE=maybe
fd4728e1
ZK
6934fi
6935
f11781c5
AK
6936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6937$as_echo "$READLINE" >&6; }
fd4728e1 6938
f11781c5
AK
6939################################################################################
6940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6941$as_echo_n "checking whether to enable realtime support... " >&6; }
6942# Check whether --enable-realtime was given.
6943if test "${enable_realtime+set}" = set; then :
6944 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6945fi
d0191583 6946
f11781c5
AK
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6948$as_echo "$REALTIME" >&6; }
6949
54b362f9 6950################################################################################
f11781c5
AK
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6952$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6953# Check whether --enable-ocf was given.
6954if test "${enable_ocf+set}" = set; then :
6955 enableval=$enable_ocf; OCF=$enableval
54b362f9 6956else
f11781c5 6957 OCF=no
54b362f9
AK
6958fi
6959
f11781c5
AK
6960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6961$as_echo "$OCF" >&6; }
54b362f9 6962
606d0858
AK
6963# Check whether --with-ocfdir was given.
6964if test "${with_ocfdir+set}" = set; then :
6965 withval=$with_ocfdir; OCFDIR=$withval
6966else
6967 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6968fi
6969
6970
f11781c5
AK
6971################################################################################
6972pkg_config_init() {
6973
6974
6975
6976
6977
6978
6979if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6980 if test -n "$ac_tool_prefix"; then
6981 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6982set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6984$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6985if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6986 $as_echo_n "(cached) " >&6
6987else
f11781c5 6988 case $PKG_CONFIG in
54b362f9 6989 [\\/]* | ?:[\\/]*)
f11781c5 6990 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
6991 ;;
6992 *)
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
f11781c5 6998 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7000 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7002 break 2
7003 fi
7004done
f11781c5 7005 done
54b362f9
AK
7006IFS=$as_save_IFS
7007
7008 ;;
7009esac
7010fi
f11781c5
AK
7011PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7012if test -n "$PKG_CONFIG"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7014$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7015else
f11781c5 7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7017$as_echo "no" >&6; }
7018fi
7019
7020
f11781c5
AK
7021fi
7022if test -z "$ac_cv_path_PKG_CONFIG"; then
7023 ac_pt_PKG_CONFIG=$PKG_CONFIG
7024 # Extract the first word of "pkg-config", so it can be a program name with args.
7025set dummy pkg-config; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7027$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7028if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7029 $as_echo_n "(cached) " >&6
7030else
f11781c5 7031 case $ac_pt_PKG_CONFIG in
54b362f9 7032 [\\/]* | ?:[\\/]*)
f11781c5 7033 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7034 ;;
7035 *)
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
f11781c5 7041 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7043 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7045 break 2
7046 fi
7047done
f11781c5 7048 done
54b362f9
AK
7049IFS=$as_save_IFS
7050
7051 ;;
7052esac
7053fi
f11781c5
AK
7054ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7055if test -n "$ac_pt_PKG_CONFIG"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7057$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7058else
f11781c5 7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7060$as_echo "no" >&6; }
7061fi
7062
f11781c5
AK
7063 if test "x$ac_pt_PKG_CONFIG" = x; then
7064 PKG_CONFIG=""
7065 else
7066 case $cross_compiling:$ac_tool_warned in
7067yes:)
7068{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7069$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7070ac_tool_warned=yes ;;
7071esac
7072 PKG_CONFIG=$ac_pt_PKG_CONFIG
7073 fi
d1e8046f 7074else
f11781c5 7075 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7076fi
7077
f11781c5
AK
7078fi
7079if test -n "$PKG_CONFIG"; then
7080 _pkg_min_version=0.9.0
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7082$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7083 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085$as_echo "yes" >&6; }
7086 else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088$as_echo "no" >&6; }
7089 PKG_CONFIG=""
7090 fi
7091fi
d1e8046f 7092
f11781c5
AK
7093pkg_failed=no
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7095$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7096
f11781c5
AK
7097if test -n "$PKGCONFIGINIT_CFLAGS"; then
7098 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7099 elif test -n "$PKG_CONFIG"; then
7100 if test -n "$PKG_CONFIG" && \
7101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7102 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7103 ac_status=$?
7104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7105 test $ac_status = 0; }; then
7106 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7107else
f11781c5
AK
7108 pkg_failed=yes
7109fi
7110 else
7111 pkg_failed=untried
7112fi
7113if test -n "$PKGCONFIGINIT_LIBS"; then
7114 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7115 elif test -n "$PKG_CONFIG"; then
7116 if test -n "$PKG_CONFIG" && \
7117 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7118 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7119 ac_status=$?
f11781c5
AK
7120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7121 test $ac_status = 0; }; then
7122 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7123else
f11781c5
AK
7124 pkg_failed=yes
7125fi
7126 else
7127 pkg_failed=untried
d1e8046f
AK
7128fi
7129
d1e8046f 7130
f11781c5
AK
7131
7132if test $pkg_failed = yes; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134$as_echo "no" >&6; }
7135
7136if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7137 _pkg_short_errors_supported=yes
7138else
7139 _pkg_short_errors_supported=no
7140fi
7141 if test $_pkg_short_errors_supported = yes; then
7142 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7143 else
7144 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7145 fi
7146 # Put the nasty error message in config.log where it belongs
7147 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7148
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7150$as_echo "pkg-config initialized" >&6; }
7151elif test $pkg_failed = untried; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153$as_echo "no" >&6; }
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7155$as_echo "pkg-config initialized" >&6; }
d1e8046f 7156else
f11781c5
AK
7157 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7158 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7160$as_echo "yes" >&6; }
d1e8046f 7161
d1e8046f 7162fi
f11781c5
AK
7163 PKGCONFIG_INIT=1
7164}
d1e8046f 7165
f11781c5
AK
7166################################################################################
7167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7168$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7169
f11781c5
AK
7170# Check whether --with-clvmd was given.
7171if test "${with_clvmd+set}" = set; then :
7172 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7173else
f11781c5 7174 CLVMD=none
d1e8046f 7175fi
d1e8046f 7176
f11781c5
AK
7177if test x$CLVMD = xyes; then
7178 CLVMD=all
d1e8046f 7179fi
f11781c5
AK
7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7181$as_echo "$CLVMD" >&6; }
d1e8046f 7182
f11781c5
AK
7183if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7184 CLUSTER=internal
d1e8046f
AK
7185fi
7186
f11781c5
AK
7187if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7188 pkg_config_init
7189fi
d1e8046f 7190
f11781c5
AK
7191CLVMD_CMANAGERS=""
7192CLVMD_NEEDS_QDISKD=no
d1e8046f 7193
f11781c5 7194if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7195 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7196fi
f11781c5
AK
7197if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7198 BUILDCMAN=yes
7199 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7200 CLVMD_NEEDS_QDISKD=yes
7201fi
7202if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7203 BUILDCOROSYNC=yes
7204 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7205fi
7206if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7207 BUILDOPENAIS=yes
7208 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7209fi
7210if test x$CLVMD_NEEDS_QDISKD != xno; then
7211 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7212fi
7213
f11781c5
AK
7214soft_bailout() {
7215 NOTFOUND=1
7216}
ad6254c5 7217
f11781c5
AK
7218hard_bailout() {
7219 as_fn_error $? "bailing out" "$LINENO" 5
7220}
ad6254c5 7221
f11781c5
AK
7222if test x$CLVMD = xall; then
7223 bailout=soft_bailout
f11781c5
AK
7224 BUILDCMAN=yes
7225 BUILDCOROSYNC=yes
7226 BUILDOPENAIS=yes
a5f46f6a 7227else
f11781c5 7228 bailout=hard_bailout
a5f46f6a
AK
7229fi
7230
f11781c5
AK
7231check_lib_no_libs() {
7232 lib_no_libs_arg1=$1
7233 shift
7234 lib_no_libs_arg2=$1
7235 shift
7236 lib_no_libs_args=$@
7237 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7239$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7240if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7241 $as_echo_n "(cached) " >&6
7242else
7243 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7244LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7246/* end confdefs.h. */
7247
7248/* Override any GCC internal prototype to avoid an error.
7249 Use char because int might match the return type of a GCC
7250 builtin and then its argument prototype would still apply. */
7251#ifdef __cplusplus
7252extern "C"
7253#endif
f11781c5 7254char $lib_no_libs_arg2 ();
90c80887
AK
7255int
7256main ()
7257{
f11781c5 7258return $lib_no_libs_arg2 ();
90c80887
AK
7259 ;
7260 return 0;
7261}
7262_ACEOF
f11781c5
AK
7263if ac_fn_c_try_link "$LINENO"; then :
7264 eval "$as_ac_Lib=yes"
90c80887 7265else
f11781c5 7266 eval "$as_ac_Lib=no"
90c80887 7267fi
f11781c5
AK
7268rm -f core conftest.err conftest.$ac_objext \
7269 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7270LIBS=$ac_check_lib_save_LIBS
7271fi
f11781c5
AK
7272eval ac_res=\$$as_ac_Lib
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7274$as_echo "$ac_res" >&6; }
7275if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7276 cat >>confdefs.h <<_ACEOF
7277#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7278_ACEOF
7279
7280 LIBS="-l$lib_no_libs_arg1 $LIBS"
7281
90c80887 7282else
f11781c5 7283 $bailout
90c80887
AK
7284fi
7285
f11781c5
AK
7286 LIBS=$ac_check_lib_save_LIBS
7287}
90c80887 7288
f11781c5 7289if test x$BUILDCMAN = xyes; then
ad6254c5 7290
f11781c5
AK
7291pkg_failed=no
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7293$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7294
f11781c5
AK
7295if test -n "$CMAN_CFLAGS"; then
7296 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7297 elif test -n "$PKG_CONFIG"; then
7298 if test -n "$PKG_CONFIG" && \
7299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7300 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; }; then
7304 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7305else
7306 pkg_failed=yes
ad6254c5 7307fi
f11781c5
AK
7308 else
7309 pkg_failed=untried
ad6254c5 7310fi
f11781c5
AK
7311if test -n "$CMAN_LIBS"; then
7312 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7313 elif test -n "$PKG_CONFIG"; then
7314 if test -n "$PKG_CONFIG" && \
7315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7316 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7317 ac_status=$?
f11781c5
AK
7318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7319 test $ac_status = 0; }; then
7320 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7321else
f11781c5
AK
7322 pkg_failed=yes
7323fi
7324 else
7325 pkg_failed=untried
93bd259b
AK
7326fi
7327
f11781c5
AK
7328
7329
7330if test $pkg_failed = yes; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332$as_echo "no" >&6; }
7333
7334if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7335 _pkg_short_errors_supported=yes
7336else
7337 _pkg_short_errors_supported=no
93bd259b 7338fi
f11781c5
AK
7339 if test $_pkg_short_errors_supported = yes; then
7340 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7341 else
7342 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7343 fi
7344 # Put the nasty error message in config.log where it belongs
7345 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7346
f11781c5
AK
7347 NOTFOUND=0
7348 for ac_header in libcman.h
7349do :
7350 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7351if test "x$ac_cv_header_libcman_h" = x""yes; then :
7352 cat >>confdefs.h <<_ACEOF
7353#define HAVE_LIBCMAN_H 1
93bd259b
AK
7354_ACEOF
7355
f11781c5
AK
7356else
7357 $bailout
93bd259b
AK
7358fi
7359
f11781c5 7360done
93bd259b 7361
f11781c5
AK
7362 check_lib_no_libs cman cman_init
7363 if test $NOTFOUND = 0; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7365$as_echo "no pkg for libcman, using -lcman" >&6; }
7366 CMAN_LIBS="-lcman"
7367 HAVE_CMAN=yes
7368 fi
7369elif test $pkg_failed = untried; then
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372 NOTFOUND=0
7373 for ac_header in libcman.h
7374do :
7375 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7376if test "x$ac_cv_header_libcman_h" = x""yes; then :
7377 cat >>confdefs.h <<_ACEOF
7378#define HAVE_LIBCMAN_H 1
93bd259b 7379_ACEOF
93bd259b 7380
93bd259b 7381else
f11781c5 7382 $bailout
93bd259b
AK
7383fi
7384
f11781c5
AK
7385done
7386
7387 check_lib_no_libs cman cman_init
7388 if test $NOTFOUND = 0; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7390$as_echo "no pkg for libcman, using -lcman" >&6; }
7391 CMAN_LIBS="-lcman"
7392 HAVE_CMAN=yes
7393 fi
7394else
7395 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7396 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7398$as_echo "yes" >&6; }
7399 HAVE_CMAN=yes
93bd259b 7400fi
f11781c5
AK
7401 CHECKCONFDB=yes
7402 CHECKDLM=yes
93bd259b
AK
7403fi
7404
f11781c5
AK
7405if test x$BUILDCOROSYNC = xyes || \
7406 test x$BUILDOPENAIS = xyes; then
93bd259b 7407
f11781c5
AK
7408pkg_failed=no
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7410$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7411
f11781c5
AK
7412if test -n "$COROSYNC_CFLAGS"; then
7413 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7414 elif test -n "$PKG_CONFIG"; then
7415 if test -n "$PKG_CONFIG" && \
7416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7417 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7418 ac_status=$?
7419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7420 test $ac_status = 0; }; then
7421 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7422else
f11781c5
AK
7423 pkg_failed=yes
7424fi
7425 else
7426 pkg_failed=untried
7427fi
7428if test -n "$COROSYNC_LIBS"; then
7429 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7430 elif test -n "$PKG_CONFIG"; then
7431 if test -n "$PKG_CONFIG" && \
7432 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7433 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7434 ac_status=$?
f11781c5
AK
7435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436 test $ac_status = 0; }; then
7437 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7438else
f11781c5 7439 pkg_failed=yes
ad6254c5 7440fi
f11781c5
AK
7441 else
7442 pkg_failed=untried
ad6254c5 7443fi
ad6254c5 7444
72b2cb61 7445
72b2cb61 7446
f11781c5
AK
7447if test $pkg_failed = yes; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449$as_echo "no" >&6; }
19a2c6e0 7450
f11781c5
AK
7451if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7452 _pkg_short_errors_supported=yes
7453else
7454 _pkg_short_errors_supported=no
ad6254c5 7455fi
f11781c5
AK
7456 if test $_pkg_short_errors_supported = yes; then
7457 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7458 else
7459 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7460 fi
7461 # Put the nasty error message in config.log where it belongs
7462 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7463
f11781c5
AK
7464 $bailout
7465elif test $pkg_failed = untried; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468 $bailout
7469else
7470 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7471 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7473$as_echo "yes" >&6; }
7474 HAVE_COROSYNC=yes
7475fi
7476 CHECKCONFDB=yes
ad6254c5
AK
7477fi
7478
f11781c5 7479if test x$BUILDCOROSYNC = xyes; then
f30875db 7480
f11781c5
AK
7481pkg_failed=no
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7483$as_echo_n "checking for QUORUM... " >&6; }
7484
7485if test -n "$QUORUM_CFLAGS"; then
7486 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7487 elif test -n "$PKG_CONFIG"; then
7488 if test -n "$PKG_CONFIG" && \
7489 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7490 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7491 ac_status=$?
f11781c5
AK
7492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493 test $ac_status = 0; }; then
7494 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7495else
f11781c5 7496 pkg_failed=yes
f30875db 7497fi
f11781c5
AK
7498 else
7499 pkg_failed=untried
f30875db 7500fi
f11781c5
AK
7501if test -n "$QUORUM_LIBS"; then
7502 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7503 elif test -n "$PKG_CONFIG"; then
7504 if test -n "$PKG_CONFIG" && \
7505 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7506 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7507 ac_status=$?
7508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7509 test $ac_status = 0; }; then
7510 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7511else
f11781c5 7512 pkg_failed=yes
f30875db 7513fi
f11781c5
AK
7514 else
7515 pkg_failed=untried
7516fi
7517
f30875db 7518
f11781c5
AK
7519
7520if test $pkg_failed = yes; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522$as_echo "no" >&6; }
7523
7524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7525 _pkg_short_errors_supported=yes
7526else
7527 _pkg_short_errors_supported=no
f30875db 7528fi
f11781c5
AK
7529 if test $_pkg_short_errors_supported = yes; then
7530 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7531 else
7532 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7533 fi
7534 # Put the nasty error message in config.log where it belongs
7535 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7536
f11781c5
AK
7537 $bailout
7538elif test $pkg_failed = untried; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540$as_echo "no" >&6; }
7541 $bailout
7542else
7543 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7544 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7546$as_echo "yes" >&6; }
7547 HAVE_QUORUM=yes
7548fi
7549 CHECKCPG=yes
7550 CHECKDLM=yes
d0191583
JM
7551fi
7552
f11781c5 7553if test x$BUILDOPENAIS = xyes; then
d0191583 7554
f11781c5
AK
7555pkg_failed=no
7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7557$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7558
f11781c5
AK
7559if test -n "$SALCK_CFLAGS"; then
7560 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7561 elif test -n "$PKG_CONFIG"; then
7562 if test -n "$PKG_CONFIG" && \
7563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7564 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7565 ac_status=$?
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; }; then
7568 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7569else
7570 pkg_failed=yes
7571fi
7572 else
7573 pkg_failed=untried
7574fi
7575if test -n "$SALCK_LIBS"; then
7576 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7577 elif test -n "$PKG_CONFIG"; then
7578 if test -n "$PKG_CONFIG" && \
7579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7580 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7581 ac_status=$?
f11781c5
AK
7582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7583 test $ac_status = 0; }; then
7584 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7585else
f11781c5 7586 pkg_failed=yes
8a2fc586 7587fi
f11781c5
AK
7588 else
7589 pkg_failed=untried
8a2fc586 7590fi
d0191583 7591
d0191583 7592
f8f6ec92 7593
f11781c5
AK
7594if test $pkg_failed = yes; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
8a2fc586 7597
f11781c5
AK
7598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7599 _pkg_short_errors_supported=yes
ad6254c5 7600else
f11781c5
AK
7601 _pkg_short_errors_supported=no
7602fi
7603 if test $_pkg_short_errors_supported = yes; then
7604 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7605 else
7606 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7607 fi
7608 # Put the nasty error message in config.log where it belongs
7609 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7610
f11781c5
AK
7611 $bailout
7612elif test $pkg_failed = untried; then
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614$as_echo "no" >&6; }
7615 $bailout
ad6254c5 7616else
f11781c5
AK
7617 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7618 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7620$as_echo "yes" >&6; }
7621 HAVE_SALCK=yes
ad6254c5 7622fi
f11781c5 7623 CHECKCPG=yes
ad6254c5 7624fi
ad6254c5 7625
72b2cb61 7626
f8f6ec92 7627
f11781c5 7628if test x$CHECKCONFDB = xyes; then
f8f6ec92 7629
f11781c5
AK
7630pkg_failed=no
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7632$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7633
f11781c5
AK
7634if test -n "$CONFDB_CFLAGS"; then
7635 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7636 elif test -n "$PKG_CONFIG"; then
7637 if test -n "$PKG_CONFIG" && \
7638 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7639 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7640 ac_status=$?
f11781c5
AK
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }; then
7643 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7644else
f11781c5
AK
7645 pkg_failed=yes
7646fi
7647 else
7648 pkg_failed=untried
7649fi
7650if test -n "$CONFDB_LIBS"; then
7651 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7652 elif test -n "$PKG_CONFIG"; then
7653 if test -n "$PKG_CONFIG" && \
7654 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7655 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7656 ac_status=$?
7657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7658 test $ac_status = 0; }; then
7659 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7660else
7661 pkg_failed=yes
7662fi
7663 else
7664 pkg_failed=untried
f8f6ec92
ZK
7665fi
7666
f8f6ec92 7667
66e941e8 7668
f11781c5
AK
7669if test $pkg_failed = yes; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671$as_echo "no" >&6; }
7672
7673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7674 _pkg_short_errors_supported=yes
f8f6ec92 7675else
f11781c5 7676 _pkg_short_errors_supported=no
66e941e8 7677fi
f11781c5
AK
7678 if test $_pkg_short_errors_supported = yes; then
7679 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7680 else
7681 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7682 fi
7683 # Put the nasty error message in config.log where it belongs
7684 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7685
f11781c5
AK
7686 HAVE_CONFDB=no
7687elif test $pkg_failed = untried; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689$as_echo "no" >&6; }
7690 HAVE_CONFDB=no
7691else
7692 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7693 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7695$as_echo "yes" >&6; }
7696 HAVE_CONFDB=yes
66e941e8 7697fi
f11781c5
AK
7698
7699 for ac_header in corosync/confdb.h
7700do :
7701 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7702if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7703 cat >>confdefs.h <<_ACEOF
f11781c5 7704#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7705_ACEOF
f11781c5 7706 HAVE_CONFDB_H=yes
66e941e8 7707else
f11781c5 7708 HAVE_CONFDB_H=no
66e941e8 7709fi
dd1f2c09
MB
7710
7711done
7712
7713
f11781c5
AK
7714 if test x$HAVE_CONFDB != xyes && \
7715 test x$HAVE_CONFDB_H = xyes; then
7716 check_lib_no_libs confdb confdb_initialize
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7718$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7719 CONFDB_LIBS="-lconfdb"
7720 HAVE_CONFDB=yes
7721 fi
7722
7723 if test x$BUILDCOROSYNC = xyes && \
7724 test x$HAVE_CONFDB != xyes &&
7725 test x$CLVMD != xall; then
7726 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7727 fi
dd1f2c09 7728fi
f11781c5
AK
7729
7730if test x$CHECKCPG = xyes; then
7731
7732pkg_failed=no
7733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7734$as_echo_n "checking for CPG... " >&6; }
7735
7736if test -n "$CPG_CFLAGS"; then
7737 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7738 elif test -n "$PKG_CONFIG"; then
7739 if test -n "$PKG_CONFIG" && \
7740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7741 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7742 ac_status=$?
7743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744 test $ac_status = 0; }; then
7745 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7746else
f11781c5
AK
7747 pkg_failed=yes
7748fi
7749 else
7750 pkg_failed=untried
7751fi
7752if test -n "$CPG_LIBS"; then
7753 pkg_cv_CPG_LIBS="$CPG_LIBS"
7754 elif test -n "$PKG_CONFIG"; then
7755 if test -n "$PKG_CONFIG" && \
7756 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7757 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7758 ac_status=$?
f11781c5
AK
7759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }; then
7761 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7762else
f11781c5
AK
7763 pkg_failed=yes
7764fi
7765 else
7766 pkg_failed=untried
7767fi
7768
7769
7770
7771if test $pkg_failed = yes; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773$as_echo "no" >&6; }
7774
7775if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7776 _pkg_short_errors_supported=yes
7777else
7778 _pkg_short_errors_supported=no
7779fi
7780 if test $_pkg_short_errors_supported = yes; then
7781 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7782 else
7783 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7784 fi
7785 # Put the nasty error message in config.log where it belongs
7786 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7787
f11781c5
AK
7788 $bailout
7789elif test $pkg_failed = untried; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792 $bailout
7793else
7794 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7795 CPG_LIBS=$pkg_cv_CPG_LIBS
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7797$as_echo "yes" >&6; }
7798 HAVE_CPG=yes
7799fi
dd1f2c09
MB
7800fi
7801
f11781c5 7802if test x$CHECKDLM = xyes; then
dd1f2c09 7803
f11781c5
AK
7804pkg_failed=no
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7806$as_echo_n "checking for DLM... " >&6; }
7807
7808if test -n "$DLM_CFLAGS"; then
7809 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7810 elif test -n "$PKG_CONFIG"; then
7811 if test -n "$PKG_CONFIG" && \
7812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7813 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7814 ac_status=$?
f11781c5
AK
7815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7816 test $ac_status = 0; }; then
7817 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7818else
f11781c5
AK
7819 pkg_failed=yes
7820fi
7821 else
7822 pkg_failed=untried
7823fi
7824if test -n "$DLM_LIBS"; then
7825 pkg_cv_DLM_LIBS="$DLM_LIBS"
7826 elif test -n "$PKG_CONFIG"; then
7827 if test -n "$PKG_CONFIG" && \
7828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7829 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7830 ac_status=$?
7831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7832 test $ac_status = 0; }; then
7833 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7834else
7835 pkg_failed=yes
7836fi
7837 else
7838 pkg_failed=untried
dd1f2c09
MB
7839fi
7840
dd1f2c09 7841
dd1f2c09 7842
f11781c5
AK
7843if test $pkg_failed = yes; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845$as_echo "no" >&6; }
7846
7847if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7848 _pkg_short_errors_supported=yes
dd1f2c09 7849else
f11781c5 7850 _pkg_short_errors_supported=no
dd1f2c09 7851fi
f11781c5
AK
7852 if test $_pkg_short_errors_supported = yes; then
7853 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7854 else
7855 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7856 fi
7857 # Put the nasty error message in config.log where it belongs
7858 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 7859
f11781c5
AK
7860 NOTFOUND=0
7861 for ac_header in libdlm.h
7862do :
7863 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7864if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 7865 cat >>confdefs.h <<_ACEOF
f11781c5 7866#define HAVE_LIBDLM_H 1
dd1f2c09
MB
7867_ACEOF
7868
f11781c5
AK
7869else
7870 $bailout
dd1f2c09 7871fi
f8f6ec92
ZK
7872
7873done
7874
f11781c5
AK
7875 check_lib_no_libs dlm dlm_lock -lpthread
7876 if test $NOTFOUND = 0; then
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7878$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7879 DLM_LIBS="-ldlm -lpthread"
7880 HAVE_DLM=yes
7881 fi
7882elif test $pkg_failed = untried; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885 NOTFOUND=0
7886 for ac_header in libdlm.h
7887do :
7888 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7889if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7890 cat >>confdefs.h <<_ACEOF
7891#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
7892_ACEOF
7893
f8f6ec92 7894else
f11781c5 7895 $bailout
ad6254c5
AK
7896fi
7897
f11781c5 7898done
8b1a3214 7899
f11781c5
AK
7900 check_lib_no_libs dlm dlm_lock -lpthread
7901 if test $NOTFOUND = 0; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7903$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7904 DLM_LIBS="-ldlm -lpthread"
7905 HAVE_DLM=yes
7906 fi
8b1a3214 7907else
f11781c5
AK
7908 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7909 DLM_LIBS=$pkg_cv_DLM_LIBS
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7911$as_echo "yes" >&6; }
7912 HAVE_DLM=yes
8b1a3214 7913fi
8b1a3214
AK
7914fi
7915
f11781c5
AK
7916if test x$CLVMD = xall; then
7917 CLVMD=none
7918 CLVMD_CMANAGERS=""
7919 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
7920 if test x$HAVE_CMAN = xyes && \
7921 test x$HAVE_DLM = xyes; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7923$as_echo "Enabling clvmd cman cluster manager" >&6; }
7924 CLVMD="$CLVMD,cman"
7925 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7926 CLVMD_NEEDS_QDISKD=yes
7927 fi
7928 if test x$HAVE_COROSYNC = xyes && \
7929 test x$HAVE_QUORUM = xyes && \
7930 test x$HAVE_CPG = xyes && \
7931 test x$HAVE_DLM = xyes && \
7932 test x$HAVE_CONFDB = xyes; then
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7934$as_echo "Enabling clvmd corosync cluster manager" >&6; }
7935 CLVMD="$CLVMD,corosync"
7936 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7937 fi
7938 if test x$HAVE_COROSYNC = xyes && \
7939 test x$HAVE_CPG = xyes && \
7940 test x$HAVE_SALCK = xyes; then
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7942$as_echo "Enabling clvmd openais cluster manager" >&6; }
7943 CLVMD="$CLVMD,openais"
7944 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7945 fi
7946 if test x$CLVMD_NEEDS_QDISKD != xno; then
7947 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7948 fi
7949 if test x$CLVMD = xnone; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7951$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
7952 fi
7953fi
7954
ad6254c5 7955################################################################################
f11781c5 7956if test "x$CLVMD" != xnone; then
ad6254c5 7957
f11781c5
AK
7958# Check whether --with-clvmd-pidfile was given.
7959if test "${with_clvmd_pidfile+set}" = set; then :
7960 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 7961else
f11781c5 7962 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 7963fi
7a197a62 7964
ad6254c5 7965
f11781c5
AK
7966cat >>confdefs.h <<_ACEOF
7967#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 7968_ACEOF
ad6254c5 7969
ad6254c5 7970fi
7a197a62 7971
f11781c5
AK
7972################################################################################
7973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
7974$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
7975# Check whether --enable-cmirrord was given.
7976if test "${enable_cmirrord+set}" = set; then :
7977 enableval=$enable_cmirrord; CMIRRORD=$enableval
7978else
7979 CMIRRORD=no
7980fi
7981
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
7983$as_echo "$CMIRRORD" >&6; }
ad6254c5 7984
f11781c5 7985BUILD_CMIRRORD=$CMIRRORD
7a197a62 7986
f11781c5
AK
7987################################################################################
7988if test "x$BUILD_CMIRRORD" = xyes; then
7989
7990# Check whether --with-cmirrord-pidfile was given.
7991if test "${with_cmirrord_pidfile+set}" = set; then :
7992 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 7993else
f11781c5 7994 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 7995fi
ad6254c5 7996
72b2cb61 7997
f11781c5
AK
7998cat >>confdefs.h <<_ACEOF
7999#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8000_ACEOF
8001
ad6254c5
AK
8002fi
8003
f11781c5
AK
8004################################################################################
8005if [ "x$BUILD_CMIRRORD" = xyes ]; then
8006 if test x$PKGCONFIG_INIT != x1; then
8007 pkg_config_init
8008 fi
ad6254c5 8009
f11781c5
AK
8010pkg_failed=no
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8012$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8013
f11781c5
AK
8014if test -n "$SACKPT_CFLAGS"; then
8015 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8016 elif test -n "$PKG_CONFIG"; then
8017 if test -n "$PKG_CONFIG" && \
8018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8019 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8020 ac_status=$?
8021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8022 test $ac_status = 0; }; then
8023 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8024else
f11781c5
AK
8025 pkg_failed=yes
8026fi
8027 else
8028 pkg_failed=untried
8029fi
8030if test -n "$SACKPT_LIBS"; then
8031 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8032 elif test -n "$PKG_CONFIG"; then
8033 if test -n "$PKG_CONFIG" && \
8034 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8035 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8036 ac_status=$?
f11781c5
AK
8037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8038 test $ac_status = 0; }; then
8039 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8040else
f11781c5
AK
8041 pkg_failed=yes
8042fi
8043 else
8044 pkg_failed=untried
8045fi
539f4a77
ZK
8046
8047
539f4a77 8048
f11781c5
AK
8049if test $pkg_failed = yes; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
8052
8053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8054 _pkg_short_errors_supported=yes
539f4a77 8055else
f11781c5 8056 _pkg_short_errors_supported=no
539f4a77 8057fi
f11781c5
AK
8058 if test $_pkg_short_errors_supported = yes; then
8059 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8060 else
8061 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8062 fi
8063 # Put the nasty error message in config.log where it belongs
8064 echo "$SACKPT_PKG_ERRORS" >&5
8065
8066 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8067
8068$SACKPT_PKG_ERRORS
8069
8070Consider adjusting the PKG_CONFIG_PATH environment variable if you
8071installed software in a non-standard prefix.
8072
8073Alternatively, you may set the environment variables SACKPT_CFLAGS
8074and SACKPT_LIBS to avoid the need to call pkg-config.
8075See the pkg-config man page for more details." "$LINENO" 5
8076
8077elif test $pkg_failed = untried; then
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
8080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8081$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8082as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8083is in your PATH or set the PKG_CONFIG environment variable to the full
8084path to pkg-config.
8085
8086Alternatively, you may set the environment variables SACKPT_CFLAGS
8087and SACKPT_LIBS to avoid the need to call pkg-config.
8088See the pkg-config man page for more details.
8089
8090To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8091See \`config.log' for more details" "$LINENO" 5; }
8092
539f4a77 8093else
f11781c5
AK
8094 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8095 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097$as_echo "yes" >&6; }
539f4a77 8098
539f4a77 8099fi
f11781c5 8100 if test x$HAVE_CPG != xyes; then
539f4a77 8101
f11781c5
AK
8102pkg_failed=no
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8104$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8105
f11781c5
AK
8106if test -n "$CPG_CFLAGS"; then
8107 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8108 elif test -n "$PKG_CONFIG"; then
8109 if test -n "$PKG_CONFIG" && \
8110 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8111 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8112 ac_status=$?
f11781c5
AK
8113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114 test $ac_status = 0; }; then
8115 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8116else
f11781c5
AK
8117 pkg_failed=yes
8118fi
8119 else
8120 pkg_failed=untried
8121fi
8122if test -n "$CPG_LIBS"; then
8123 pkg_cv_CPG_LIBS="$CPG_LIBS"
8124 elif test -n "$PKG_CONFIG"; then
8125 if test -n "$PKG_CONFIG" && \
8126 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8127 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8128 ac_status=$?
8129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130 test $ac_status = 0; }; then
8131 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8132else
8133 pkg_failed=yes
8134fi
8135 else
8136 pkg_failed=untried
8137fi
8138
8139
8140
8141if test $pkg_failed = yes; then
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143$as_echo "no" >&6; }
ad6254c5 8144
f11781c5
AK
8145if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8146 _pkg_short_errors_supported=yes
8147else
8148 _pkg_short_errors_supported=no
ad6254c5 8149fi
f11781c5
AK
8150 if test $_pkg_short_errors_supported = yes; then
8151 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8152 else
8153 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8154 fi
8155 # Put the nasty error message in config.log where it belongs
8156 echo "$CPG_PKG_ERRORS" >&5
8157
8158 as_fn_error $? "Package requirements (libcpg) were not met:
8159
8160$CPG_PKG_ERRORS
8161
8162Consider adjusting the PKG_CONFIG_PATH environment variable if you
8163installed software in a non-standard prefix.
8164
8165Alternatively, you may set the environment variables CPG_CFLAGS
8166and CPG_LIBS to avoid the need to call pkg-config.
8167See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8168
f11781c5
AK
8169elif test $pkg_failed = untried; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8171$as_echo "no" >&6; }
8172 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8173$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8174as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8175is in your PATH or set the PKG_CONFIG environment variable to the full
8176path to pkg-config.
539f4a77 8177
f11781c5
AK
8178Alternatively, you may set the environment variables CPG_CFLAGS
8179and CPG_LIBS to avoid the need to call pkg-config.
8180See the pkg-config man page for more details.
539f4a77 8181
f11781c5
AK
8182To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8183See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8184
539f4a77 8185else
f11781c5
AK
8186 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8187 CPG_LIBS=$pkg_cv_CPG_LIBS
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8189$as_echo "yes" >&6; }
bc1024f8 8190
f11781c5
AK
8191fi
8192 fi
8193fi
8194
8195################################################################################
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8197$as_echo_n "checking whether to enable debugging... " >&6; }
8198# Check whether --enable-debug was given.
8199if test "${enable_debug+set}" = set; then :
8200 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8201else
f11781c5
AK
8202 DEBUG=no
8203fi
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8206$as_echo "$DEBUG" >&6; }
539f4a77 8207
f11781c5
AK
8208if test x$DEBUG = xyes; then
8209 COPTIMISE_FLAG=
8210else
8211 CSCOPE_CMD=
06e459df
JM
8212fi
8213
f11781c5
AK
8214################################################################################
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8216$as_echo_n "checking for C optimisation flag... " >&6; }
8217
8218# Check whether --with-optimisation was given.
8219if test "${with_optimisation+set}" = set; then :
8220 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8221fi
539f4a77 8222
f11781c5
AK
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8224$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8225
f11781c5
AK
8226################################################################################
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8228$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8229# Check whether --enable-profiling was given.
8230if test "${enable_profiling+set}" = set; then :
8231 enableval=$enable_profiling; PROFILING=$enableval
8232else
8233 PROFILING=no
539f4a77
ZK
8234fi
8235
f11781c5
AK
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8237$as_echo "$PROFILING" >&6; }
8238
8239if test "x$PROFILING" = xyes; then
8240 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8241 # Extract the first word of "lcov", so it can be a program name with args.
8242set dummy lcov; ac_word=$2
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8244$as_echo_n "checking for $ac_word... " >&6; }
8245if test "${ac_cv_path_LCOV+set}" = set; then :
8246 $as_echo_n "(cached) " >&6
539f4a77 8247else
f11781c5
AK
8248 case $LCOV in
8249 [\\/]* | ?:[\\/]*)
8250 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8251 ;;
8252 *)
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254for as_dir in $PATH
8255do
8256 IFS=$as_save_IFS
8257 test -z "$as_dir" && as_dir=.
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8260 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8262 break 2
8263 fi
8264done
8265 done
8266IFS=$as_save_IFS
539f4a77 8267
f11781c5
AK
8268 ;;
8269esac
8270fi
8271LCOV=$ac_cv_path_LCOV
8272if test -n "$LCOV"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8274$as_echo "$LCOV" >&6; }
8275else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277$as_echo "no" >&6; }
539f4a77
ZK
8278fi
8279
bc1024f8 8280
f11781c5
AK
8281 # Extract the first word of "genhtml", so it can be a program name with args.
8282set dummy genhtml; ac_word=$2
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8286 $as_echo_n "(cached) " >&6
ad6254c5 8287else
f11781c5
AK
8288 case $GENHTML in
8289 [\\/]* | ?:[\\/]*)
8290 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8291 ;;
8292 *)
8293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8294for as_dir in $PATH
8295do
8296 IFS=$as_save_IFS
8297 test -z "$as_dir" && as_dir=.
8298 for ac_exec_ext in '' $ac_executable_extensions; do
8299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8300 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8302 break 2
8303 fi
8304done
8305 done
8306IFS=$as_save_IFS
8a2fc586 8307
f11781c5
AK
8308 ;;
8309esac
8310fi
8311GENHTML=$ac_cv_path_GENHTML
8312if test -n "$GENHTML"; then
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8314$as_echo "$GENHTML" >&6; }
8315else
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8317$as_echo "no" >&6; }
8318fi
8a2fc586 8319
8a2fc586 8320
f11781c5
AK
8321 if test -z "$LCOV" -o -z "$GENHTML"; then
8322 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8323 fi
8324 # Extract the first word of "genpng", so it can be a program name with args.
8325set dummy genpng; ac_word=$2
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
8328if test "${ac_cv_path_GENPNG+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8330else
8331 case $GENPNG in
8332 [\\/]* | ?:[\\/]*)
8333 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8334 ;;
8335 *)
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337for as_dir in $PATH
8338do
8339 IFS=$as_save_IFS
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 break 2
8346 fi
8347done
8348 done
8349IFS=$as_save_IFS
ad6254c5 8350
f11781c5 8351 ;;
7a197a62 8352esac
f11781c5
AK
8353fi
8354GENPNG=$ac_cv_path_GENPNG
8355if test -n "$GENPNG"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8357$as_echo "$GENPNG" >&6; }
ad6254c5 8358else
f11781c5
AK
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360$as_echo "no" >&6; }
8361fi
8362
8363
8364 if test -n "$GENPNG"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8366$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8367 if $GENPNG --help > /dev/null 2>&1 ; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8369$as_echo "ok" >&6; }
8370 GENHTML="$GENHTML --frames"
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8373$as_echo "not supported" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8375$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8376 GENPNG=
8377 fi
8378 fi
8379fi
ad6254c5 8380
f11781c5
AK
8381################################################################################
8382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8383$as_echo_n "checking whether to enable unit testing... " >&6; }
8384# Check whether --enable-testing was given.
8385if test "${enable_testing+set}" = set; then :
8386 enableval=$enable_testing; TESTING=$enableval
8387else
8388 TESTING=no
ad6254c5 8389fi
7a197a62 8390
f11781c5
AK
8391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8392$as_echo "$TESTING" >&6; }
72b2cb61 8393
f11781c5
AK
8394if test "$TESTING" = yes; then
8395 # Extract the first word of "ruby1.9", so it can be a program name with args.
8396set dummy ruby1.9; ac_word=$2
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398$as_echo_n "checking for $ac_word... " >&6; }
8399if test "${ac_cv_path_RUBY19+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
8401else
8402 case $RUBY19 in
8403 [\\/]* | ?:[\\/]*)
8404 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8405 ;;
8406 *)
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408for as_dir in $PATH
8409do
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8417 fi
bc1024f8 8418done
f11781c5
AK
8419 done
8420IFS=$as_save_IFS
ad6254c5 8421
f11781c5
AK
8422 ;;
8423esac
ad6254c5 8424fi
f11781c5
AK
8425RUBY19=$ac_cv_path_RUBY19
8426if test -n "$RUBY19"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8428$as_echo "$RUBY19" >&6; }
ad6254c5 8429else
f11781c5
AK
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431$as_echo "no" >&6; }
7a197a62
AK
8432fi
8433
ad6254c5 8434
f11781c5
AK
8435 # Extract the first word of "valgrind", so it can be a program name with args.
8436set dummy valgrind; ac_word=$2
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8438$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8439if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8440 $as_echo_n "(cached) " >&6
ad6254c5 8441else
f11781c5 8442 case $VALGRIND in
ad6254c5 8443 [\\/]* | ?:[\\/]*)
f11781c5 8444 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8445 ;;
8446 *)
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448for as_dir in $PATH
8449do
8450 IFS=$as_save_IFS
8451 test -z "$as_dir" && as_dir=.
f11781c5 8452 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8454 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8456 break 2
8457 fi
8458done
f11781c5 8459 done
7a197a62 8460IFS=$as_save_IFS
ad6254c5
AK
8461
8462 ;;
8463esac
8464fi
f11781c5
AK
8465VALGRIND=$ac_cv_path_VALGRIND
8466if test -n "$VALGRIND"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8468$as_echo "$VALGRIND" >&6; }
ad6254c5 8469else
f11781c5 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8471$as_echo "no" >&6; }
ad6254c5
AK
8472fi
8473
7a197a62 8474
f11781c5
AK
8475 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8476 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8477 fi
8478fi
ad6254c5 8479
f11781c5
AK
8480################################################################################
8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8482$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8483# Check whether --enable-valgrind_pool was given.
8484if test "${enable_valgrind_pool+set}" = set; then :
8485 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8486else
8487 VALGRIND_POOL=no
8488fi
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8491$as_echo "$VALGRIND_POOL" >&6; }
8492
8493if test "$VALGRIND_POOL" = yes; then
8494 for ac_header in valgrind/memcheck.h
8495do :
8496 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8497if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8498 cat >>confdefs.h <<_ACEOF
8499#define HAVE_VALGRIND_MEMCHECK_H 1
8500_ACEOF
ad6254c5 8501
ad6254c5 8502else
f11781c5 8503 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8504fi
8505
f11781c5
AK
8506done
8507
8508
8509$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8510
ad6254c5
AK
8511fi
8512
8513################################################################################
f11781c5
AK
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8515$as_echo_n "checking whether to use device-mapper... " >&6; }
8516# Check whether --enable-devmapper was given.
8517if test "${enable_devmapper+set}" = set; then :
8518 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8519fi
8520
f11781c5
AK
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8522$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8523
f11781c5 8524if test x$DEVMAPPER = xyes; then
ad6254c5 8525
f11781c5
AK
8526$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8527
8528fi
8529
8530################################################################################
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8532$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8533# Check whether --enable-udev_sync was given.
8534if test "${enable_udev_sync+set}" = set; then :
8535 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8536else
f11781c5 8537 UDEV_SYNC=no
7a197a62 8538fi
ad6254c5 8539
f11781c5
AK
8540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8541$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8542
f11781c5 8543if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8544 if test x$PKGCONFIG_INIT != x1; then
8545 pkg_config_init
8546 fi
7a197a62 8547
d93275eb
PR
8548pkg_failed=no
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8550$as_echo_n "checking for UDEV... " >&6; }
8551
8552if test -n "$UDEV_CFLAGS"; then
8553 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8554 elif test -n "$PKG_CONFIG"; then
8555 if test -n "$PKG_CONFIG" && \
8556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8557 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8558 ac_status=$?
8559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8560 test $ac_status = 0; }; then
8561 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8562else
d93275eb 8563 pkg_failed=yes
f11781c5 8564fi
d93275eb
PR
8565 else
8566 pkg_failed=untried
f11781c5 8567fi
d93275eb
PR
8568if test -n "$UDEV_LIBS"; then
8569 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8570 elif test -n "$PKG_CONFIG"; then
8571 if test -n "$PKG_CONFIG" && \
8572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8573 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8574 ac_status=$?
8575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8576 test $ac_status = 0; }; then
8577 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8578else
d93275eb 8579 pkg_failed=yes
68f2de6d 8580fi
d93275eb
PR
8581 else
8582 pkg_failed=untried
8583fi
8584
8585
8586
8587if test $pkg_failed = yes; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
8590
8591if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8592 _pkg_short_errors_supported=yes
8593else
8594 _pkg_short_errors_supported=no
8595fi
8596 if test $_pkg_short_errors_supported = yes; then
8597 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8598 else
8599 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8600 fi
8601 # Put the nasty error message in config.log where it belongs
8602 echo "$UDEV_PKG_ERRORS" >&5
8603
8604 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8605
8606$UDEV_PKG_ERRORS
8607
8608Consider adjusting the PKG_CONFIG_PATH environment variable if you
8609installed software in a non-standard prefix.
8610
8611Alternatively, you may set the environment variables UDEV_CFLAGS
8612and UDEV_LIBS to avoid the need to call pkg-config.
8613See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8614
d93275eb
PR
8615elif test $pkg_failed = untried; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617$as_echo "no" >&6; }
8618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8620as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8621is in your PATH or set the PKG_CONFIG environment variable to the full
8622path to pkg-config.
8623
8624Alternatively, you may set the environment variables UDEV_CFLAGS
8625and UDEV_LIBS to avoid the need to call pkg-config.
8626See the pkg-config man page for more details.
8627
8628To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8629See \`config.log' for more details" "$LINENO" 5; }
8630
8631else
8632 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8633 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8635$as_echo "yes" >&6; }
8636 UDEV_PC="libudev"
8637fi
68f2de6d 8638
f11781c5 8639$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8640
f11781c5
AK
8641fi
8642
8643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8644$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8645# Check whether --enable-udev_rules was given.
8646if test "${enable_udev_rules+set}" = set; then :
8647 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8648else
f11781c5 8649 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8650fi
8651
f11781c5
AK
8652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8653$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8654
a5f46f6a 8655################################################################################
f11781c5
AK
8656# Check whether --enable-compat was given.
8657if test "${enable_compat+set}" = set; then :
8658 enableval=$enable_compat; DM_COMPAT=$enableval
8659else
8660 DM_COMPAT=no
8661fi
a5f46f6a 8662
f11781c5 8663
2061c0ec
AK
8664if test x$DM_COMPAT = xyes; then
8665 as_fn_error $? "--enable-compat is not currently supported.
8666Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8667ioctl protocol is supported.
8668 " "$LINENO" 5
8669fi
8670
f11781c5
AK
8671################################################################################
8672# Check whether --enable-units-compat was given.
8673if test "${enable_units_compat+set}" = set; then :
8674 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8675else
f11781c5 8676 UNITS_COMPAT=no
a5f46f6a
AK
8677fi
8678
8679
f11781c5 8680if test x$UNITS_COMPAT = xyes; then
78ce7acc 8681
f11781c5
AK
8682$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8683
8684fi
8685
8686################################################################################
8687# Check whether --enable-ioctl was given.
8688if test "${enable_ioctl+set}" = set; then :
8689 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8690fi
8691
a5f46f6a 8692
ad6254c5 8693################################################################################
f11781c5
AK
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8695$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8696# Check whether --enable-o_direct was given.
8697if test "${enable_o_direct+set}" = set; then :
8698 enableval=$enable_o_direct; ODIRECT=$enableval
8699fi
ad6254c5 8700
f11781c5
AK
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8702$as_echo "$ODIRECT" >&6; }
8703
8704if test x$ODIRECT = xyes; then
8705
8706$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8707
ad6254c5 8708fi
ad6254c5 8709
f11781c5
AK
8710################################################################################
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8712$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8713# Check whether --enable-applib was given.
8714if test "${enable_applib+set}" = set; then :
8715 enableval=$enable_applib; APPLIB=$enableval
8716else
8717 APPLIB=no
ad6254c5 8718fi
7a197a62 8719
f11781c5
AK
8720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8721$as_echo "$APPLIB" >&6; }
ad6254c5 8722
f11781c5
AK
8723test x$APPLIB = xyes \
8724 && LVM2APP_LIB=-llvm2app \
8725 || LVM2APP_LIB=
ad6254c5 8726
f11781c5
AK
8727################################################################################
8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8729$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8730# Check whether --enable-cmdlib was given.
8731if test "${enable_cmdlib+set}" = set; then :
8732 enableval=$enable_cmdlib; CMDLIB=$enableval
8733else
8734 CMDLIB=no
ad6254c5 8735fi
7a197a62 8736
f11781c5
AK
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8738$as_echo "$CMDLIB" >&6; }
7a197a62 8739
f11781c5
AK
8740test x$CMDLIB = xyes \
8741 && LVM2CMD_LIB=-llvm2cmd \
8742 || LVM2CMD_LIB=
8743
8744################################################################################
8745# Check whether --enable-pkgconfig was given.
8746if test "${enable_pkgconfig+set}" = set; then :
8747 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8748else
f11781c5 8749 PKGCONFIG=no
ad6254c5 8750fi
ad6254c5 8751
ad6254c5 8752
f11781c5
AK
8753################################################################################
8754# Check whether --enable-write_install was given.
8755if test "${enable_write_install+set}" = set; then :
8756 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8757else
f11781c5 8758 WRITE_INSTALL=no
ad6254c5
AK
8759fi
8760
ad6254c5 8761
f11781c5
AK
8762################################################################################
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8764$as_echo_n "checking whether to install fsadm... " >&6; }
8765# Check whether --enable-fsadm was given.
8766if test "${enable_fsadm+set}" = set; then :
8767 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8768fi
8769
f11781c5
AK
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8771$as_echo "$FSADM" >&6; }
ad6254c5 8772
f11781c5
AK
8773################################################################################
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8775$as_echo_n "checking whether to use dmeventd... " >&6; }
8776# Check whether --enable-dmeventd was given.
8777if test "${enable_dmeventd+set}" = set; then :
8778 enableval=$enable_dmeventd; DMEVENTD=$enableval
8779fi
ad6254c5 8780
f11781c5
AK
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8782$as_echo "$DMEVENTD" >&6; }
ad6254c5 8783
f11781c5 8784BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8785
f11781c5
AK
8786if test x$DMEVENTD = xyes; then
8787 if test x$MIRRORS != xinternal; then
8788 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8789 " "$LINENO" 5
8790 fi
8791 if test x$CMDLIB = xno; then
8792 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8793 " "$LINENO" 5
8794 fi
8795fi
ad6254c5 8796
f11781c5 8797if test x$DMEVENTD = xyes; then
ad6254c5 8798
f11781c5 8799$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8800
f11781c5 8801fi
ad6254c5 8802
f11781c5 8803################################################################################
ad6254c5 8804
f11781c5
AK
8805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8806$as_echo_n "checking for getline in -lc... " >&6; }
8807if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8808 $as_echo_n "(cached) " >&6
ad6254c5 8809else
f11781c5
AK
8810 ac_check_lib_save_LIBS=$LIBS
8811LIBS="-lc $LIBS"
8812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8813/* end confdefs.h. */
f11781c5
AK
8814
8815/* Override any GCC internal prototype to avoid an error.
8816 Use char because int might match the return type of a GCC
8817 builtin and then its argument prototype would still apply. */
8818#ifdef __cplusplus
8819extern "C"
8820#endif
8821char getline ();
8822int
8823main ()
8824{
8825return getline ();
8826 ;
8827 return 0;
8828}
ad6254c5 8829_ACEOF
f11781c5
AK
8830if ac_fn_c_try_link "$LINENO"; then :
8831 ac_cv_lib_c_getline=yes
ad6254c5 8832else
f11781c5
AK
8833 ac_cv_lib_c_getline=no
8834fi
8835rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8837LIBS=$ac_check_lib_save_LIBS
8838fi
8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8840$as_echo "$ac_cv_lib_c_getline" >&6; }
8841if test "x$ac_cv_lib_c_getline" = x""yes; then :
8842
8843$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8844
ad6254c5 8845fi
7a197a62 8846
ad6254c5 8847
f11781c5
AK
8848################################################################################
8849
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8851$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8852if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
8854else
8855 ac_check_lib_save_LIBS=$LIBS
8856LIBS="-lc $LIBS"
8857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8858/* end confdefs.h. */
f11781c5
AK
8859
8860/* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8863#ifdef __cplusplus
8864extern "C"
8865#endif
8866char canonicalize_file_name ();
8867int
8868main ()
8869{
8870return canonicalize_file_name ();
8871 ;
8872 return 0;
8873}
ad6254c5 8874_ACEOF
f11781c5
AK
8875if ac_fn_c_try_link "$LINENO"; then :
8876 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 8877else
f11781c5
AK
8878 ac_cv_lib_c_canonicalize_file_name=no
8879fi
8880rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882LIBS=$ac_check_lib_save_LIBS
8883fi
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8885$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8886if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8887
8888$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 8889
ad6254c5 8890fi
7a197a62 8891
ad6254c5 8892
f11781c5
AK
8893################################################################################
8894if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8895 then exec_prefix="";
8896fi;
7a197a62 8897
f11781c5
AK
8898################################################################################
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8900$as_echo_n "checking for dlopen in -ldl... " >&6; }
8901if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 8902 $as_echo_n "(cached) " >&6
ad6254c5 8903else
f11781c5
AK
8904 ac_check_lib_save_LIBS=$LIBS
8905LIBS="-ldl $LIBS"
8906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h. */
ad6254c5 8908
f11781c5
AK
8909/* Override any GCC internal prototype to avoid an error.
8910 Use char because int might match the return type of a GCC
8911 builtin and then its argument prototype would still apply. */
8912#ifdef __cplusplus
8913extern "C"
8914#endif
8915char dlopen ();
8916int
8917main ()
8918{
8919return dlopen ();
8920 ;
8921 return 0;
8922}
ad6254c5 8923_ACEOF
f11781c5
AK
8924if ac_fn_c_try_link "$LINENO"; then :
8925 ac_cv_lib_dl_dlopen=yes
ad6254c5 8926else
f11781c5 8927 ac_cv_lib_dl_dlopen=no
795ca3e5 8928fi
f11781c5
AK
8929rm -f core conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931LIBS=$ac_check_lib_save_LIBS
8932fi
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8934$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8935if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 8936
ad6254c5 8937
f11781c5 8938$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 8939
f11781c5
AK
8940 DL_LIBS="-ldl"
8941 HAVE_LIBDL=yes
8942else
795ca3e5 8943
f11781c5
AK
8944 DL_LIBS=
8945 HAVE_LIBDL=no
8946fi
8106cdd5 8947
ad6254c5 8948
f11781c5
AK
8949################################################################################
8950if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8951 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 8952 -o "x$RAID" = xshared \
f11781c5
AK
8953 \) -a "x$STATIC_LINK" = xyes ];
8954 then as_fn_error $? "Features cannot be 'shared' when building statically
8955" "$LINENO" 5
8956fi
ad6254c5 8957
f11781c5
AK
8958################################################################################
8959if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
8961$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
8962if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 8963 $as_echo_n "(cached) " >&6
795ca3e5 8964else
f11781c5
AK
8965 ac_check_lib_save_LIBS=$LIBS
8966LIBS="-lpthread $LIBS"
8967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8968/* end confdefs.h. */
8a2fc586 8969
f11781c5
AK
8970/* Override any GCC internal prototype to avoid an error.
8971 Use char because int might match the return type of a GCC
8972 builtin and then its argument prototype would still apply. */
8973#ifdef __cplusplus
8974extern "C"
ad6254c5 8975#endif
f11781c5
AK
8976char pthread_mutex_lock ();
8977int
8978main ()
8979{
8980return pthread_mutex_lock ();
8981 ;
8982 return 0;
8983}
8984_ACEOF
8985if ac_fn_c_try_link "$LINENO"; then :
8986 ac_cv_lib_pthread_pthread_mutex_lock=yes
8987else
8988 ac_cv_lib_pthread_pthread_mutex_lock=no
8989fi
8990rm -f core conftest.err conftest.$ac_objext \
8991 conftest$ac_exeext conftest.$ac_ext
8992LIBS=$ac_check_lib_save_LIBS
8993fi
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
8995$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
8996if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
8997 PTHREAD_LIBS="-lpthread"
8998else
8999 hard_bailout
9000fi
9001
9002fi
9003
9004################################################################################
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9006$as_echo_n "checking whether to enable selinux support... " >&6; }
9007# Check whether --enable-selinux was given.
9008if test "${enable_selinux+set}" = set; then :
9009 enableval=$enable_selinux; SELINUX=$enableval
9010fi
9011
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9013$as_echo "$SELINUX" >&6; }
8a2fc586 9014
f11781c5
AK
9015################################################################################
9016if test x$SELINUX = xyes; then
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9018$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9019if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9020 $as_echo_n "(cached) " >&6
9021else
9022 ac_check_lib_save_LIBS=$LIBS
9023LIBS="-lsepol $LIBS"
9024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025/* end confdefs.h. */
8a2fc586 9026
7a197a62
AK
9027/* Override any GCC internal prototype to avoid an error.
9028 Use char because int might match the return type of a GCC
9029 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9030#ifdef __cplusplus
9031extern "C"
ad6254c5 9032#endif
f11781c5 9033char sepol_check_context ();
ad6254c5
AK
9034int
9035main ()
9036{
f11781c5 9037return sepol_check_context ();
ad6254c5
AK
9038 ;
9039 return 0;
9040}
9041_ACEOF
f11781c5
AK
9042if ac_fn_c_try_link "$LINENO"; then :
9043 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9044else
f11781c5
AK
9045 ac_cv_lib_sepol_sepol_check_context=no
9046fi
9047rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049LIBS=$ac_check_lib_save_LIBS
80992638 9050fi
f11781c5
AK
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9052$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9053if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9054
80992638 9055
f11781c5
AK
9056$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9057
9058 SELINUX_LIBS="-lsepol"
8106cdd5 9059fi
795ca3e5 9060
f11781c5
AK
9061
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9063$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9064if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9065 $as_echo_n "(cached) " >&6
25fbec5b 9066else
f11781c5
AK
9067 ac_check_lib_save_LIBS=$LIBS
9068LIBS="-lselinux $LIBS"
9069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9070/* end confdefs.h. */
80992638 9071
7a197a62
AK
9072/* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
ad6254c5 9074 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9075#ifdef __cplusplus
9076extern "C"
9077#endif
f11781c5 9078char is_selinux_enabled ();
ad6254c5
AK
9079int
9080main ()
9081{
f11781c5 9082return is_selinux_enabled ();
ad6254c5
AK
9083 ;
9084 return 0;
9085}
9086_ACEOF
f11781c5
AK
9087if ac_fn_c_try_link "$LINENO"; then :
9088 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9089else
f11781c5 9090 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9091fi
f11781c5
AK
9092rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094LIBS=$ac_check_lib_save_LIBS
25fbec5b 9095fi
f11781c5
AK
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9097$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9098if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9099
f11781c5
AK
9100 for ac_header in selinux/selinux.h
9101do :
9102 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9103if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9104 cat >>confdefs.h <<_ACEOF
9105#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9106_ACEOF
795ca3e5 9107
25fbec5b 9108else
f11781c5 9109 hard_bailout
795ca3e5 9110fi
795ca3e5 9111
f11781c5 9112done
795ca3e5 9113
f11781c5
AK
9114 for ac_header in selinux/label.h
9115do :
9116 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9117if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9118 cat >>confdefs.h <<_ACEOF
9119#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9120_ACEOF
ad6254c5 9121
ad6254c5 9122fi
7a197a62 9123
f11781c5 9124done
7a197a62 9125
ad6254c5 9126
f11781c5 9127$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9128
f11781c5
AK
9129 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9130 SELINUX_PC="libselinux"
9131 HAVE_SELINUX=yes
ad6254c5 9132else
8106cdd5 9133
f11781c5
AK
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9135$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9136 SELINUX_LIBS=
9137 SELINUX_PC=
9138 HAVE_SELINUX=no
795ca3e5 9139fi
ad6254c5 9140
795ca3e5
AK
9141fi
9142
f11781c5
AK
9143################################################################################
9144if test x$REALTIME = xyes; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9146$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9147if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9148 $as_echo_n "(cached) " >&6
26e7f2e0 9149else
f11781c5
AK
9150 ac_check_lib_save_LIBS=$LIBS
9151LIBS="-lrt $LIBS"
9152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9153/* end confdefs.h. */
ad6254c5 9154
f11781c5
AK
9155/* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9158#ifdef __cplusplus
9159extern "C"
9160#endif
9161char clock_gettime ();
ad6254c5
AK
9162int
9163main ()
9164{
f11781c5 9165return clock_gettime ();
ad6254c5
AK
9166 ;
9167 return 0;
9168}
9169_ACEOF
f11781c5
AK
9170if ac_fn_c_try_link "$LINENO"; then :
9171 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9172else
f11781c5 9173 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9174fi
f11781c5
AK
9175rm -f core conftest.err conftest.$ac_objext \
9176 conftest$ac_exeext conftest.$ac_ext
9177LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9178fi
f11781c5
AK
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9180$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9181if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9182 HAVE_REALTIME=yes
9183else
9184 HAVE_REALTIME=no
8106cdd5 9185fi
ad6254c5 9186
ad6254c5 9187
f11781c5 9188 if test x$HAVE_REALTIME = xyes; then
7a197a62 9189
f11781c5 9190$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9191
f11781c5
AK
9192 LIBS="-lrt $LIBS"
9193 else
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9195$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9196 fi
9197fi
9198
9199################################################################################
9200for ac_header in getopt.h
9201do :
9202 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9203if test "x$ac_cv_header_getopt_h" = x""yes; then :
9204 cat >>confdefs.h <<_ACEOF
9205#define HAVE_GETOPT_H 1
9206_ACEOF
9207
9208$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9209
ad6254c5 9210fi
7a197a62 9211
f11781c5 9212done
ad6254c5 9213
7a197a62 9214
f11781c5
AK
9215################################################################################
9216if test x$READLINE != xno; then
9217 lvm_saved_libs=$LIBS
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9219$as_echo_n "checking for library containing tgetent... " >&6; }
9220if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9221 $as_echo_n "(cached) " >&6
ad6254c5 9222else
f11781c5
AK
9223 ac_func_search_save_LIBS=$LIBS
9224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9225/* end confdefs.h. */
ad6254c5 9226
f11781c5
AK
9227/* Override any GCC internal prototype to avoid an error.
9228 Use char because int might match the return type of a GCC
9229 builtin and then its argument prototype would still apply. */
9230#ifdef __cplusplus
9231extern "C"
9232#endif
9233char tgetent ();
9234int
9235main ()
9236{
9237return tgetent ();
9238 ;
9239 return 0;
9240}
ad6254c5 9241_ACEOF
f11781c5
AK
9242for ac_lib in '' tinfo ncurses curses termcap termlib; do
9243 if test -z "$ac_lib"; then
9244 ac_res="none required"
9245 else
9246 ac_res=-l$ac_lib
9247 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9248 fi
9249 if ac_fn_c_try_link "$LINENO"; then :
9250 ac_cv_search_tgetent=$ac_res
9251fi
9252rm -f core conftest.err conftest.$ac_objext \
9253 conftest$ac_exeext
9254 if test "${ac_cv_search_tgetent+set}" = set; then :
9255 break
9256fi
9257done
9258if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9259
80992638 9260else
f11781c5 9261 ac_cv_search_tgetent=no
b896caa1 9262fi
f11781c5
AK
9263rm conftest.$ac_ext
9264LIBS=$ac_func_search_save_LIBS
9265fi
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9267$as_echo "$ac_cv_search_tgetent" >&6; }
9268ac_res=$ac_cv_search_tgetent
9269if test "$ac_res" != no; then :
9270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9271 READLINE_LIBS=$ac_cv_search_tgetent
9272else
ad6254c5 9273
f11781c5
AK
9274 if test "$READLINE" = yes; then
9275 as_fn_error $? "termcap could not be found which is required for the
9276--enable-readline option (which is enabled by default). Either disable readline
9277support with --disable-readline or download and install termcap from:
9278 ftp.gnu.org/gnu/termcap
9279Note: if you are using precompiled packages you will also need the development
9280 package as well (which may be called termcap-devel or something similar).
9281Note: (n)curses also seems to work as a substitute for termcap. This was
9282 not found either - but you could try installing that as well." "$LINENO" 5
9283 fi
9284fi
b896caa1 9285
f11781c5
AK
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9287$as_echo_n "checking for readline in -lreadline... " >&6; }
9288if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9289 $as_echo_n "(cached) " >&6
795ca3e5 9290else
f11781c5
AK
9291 ac_check_lib_save_LIBS=$LIBS
9292LIBS="-lreadline $LIBS"
9293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9294/* end confdefs.h. */
8a2fc586 9295
f11781c5
AK
9296/* Override any GCC internal prototype to avoid an error.
9297 Use char because int might match the return type of a GCC
9298 builtin and then its argument prototype would still apply. */
9299#ifdef __cplusplus
9300extern "C"
ad6254c5 9301#endif
f11781c5
AK
9302char readline ();
9303int
9304main ()
9305{
9306return readline ();
9307 ;
9308 return 0;
9309}
9310_ACEOF
9311if ac_fn_c_try_link "$LINENO"; then :
9312 ac_cv_lib_readline_readline=yes
9313else
9314 ac_cv_lib_readline_readline=no
9315fi
9316rm -f core conftest.err conftest.$ac_objext \
9317 conftest$ac_exeext conftest.$ac_ext
9318LIBS=$ac_check_lib_save_LIBS
9319fi
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9321$as_echo "$ac_cv_lib_readline_readline" >&6; }
9322if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9323
8a2fc586 9324
f11781c5
AK
9325$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9326
9327 LIBS=$lvm_saved_libs
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9329$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9330if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9332else
9333 ac_check_lib_save_LIBS=$LIBS
9334LIBS="-lreadline $LIBS"
9335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h. */
8a2fc586 9337
7a197a62
AK
9338/* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9341#ifdef __cplusplus
9342extern "C"
ad6254c5 9343#endif
f11781c5 9344char rl_line_buffer ();
ad6254c5
AK
9345int
9346main ()
9347{
f11781c5 9348return rl_line_buffer ();
ad6254c5
AK
9349 ;
9350 return 0;
9351}
9352_ACEOF
f11781c5
AK
9353if ac_fn_c_try_link "$LINENO"; then :
9354 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9355else
f11781c5
AK
9356 ac_cv_lib_readline_rl_line_buffer=no
9357fi
9358rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
9360LIBS=$ac_check_lib_save_LIBS
9361fi
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9363$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9364if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9365 READLINE_LIBS="-lreadline"
9366else
9367
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9369$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9370 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9371
ad6254c5 9372fi
7a197a62 9373
f11781c5
AK
9374else
9375
9376 READLINE_LIBS=
9377 if test "$READLINE" = yes; then
9378 as_fn_error $? "GNU Readline could not be found which is required for the
9379--enable-readline option (which is enabled by default). Either disable readline
9380support with --disable-readline or download and install readline from:
9381 ftp.gnu.org/gnu/readline
9382Note: if you are using precompiled packages you will also need the development
9383package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9384 fi
ad6254c5 9385fi
f11781c5
AK
9386
9387 LIBS="$READLINE_LIBS $lvm_saved_libs"
9388 for ac_func in rl_completion_matches
9389do :
9390 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9391if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9392 cat >>confdefs.h <<_ACEOF
f11781c5 9393#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9394_ACEOF
9395
ad6254c5
AK
9396fi
9397done
9398
f11781c5 9399 LIBS=$lvm_saved_libs
ad6254c5
AK
9400fi
9401
f11781c5
AK
9402################################################################################
9403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9404$as_echo_n "checking whether to enable internationalisation... " >&6; }
9405# Check whether --enable-nls was given.
9406if test "${enable_nls+set}" = set; then :
9407 enableval=$enable_nls; INTL=$enableval
9408else
9409 INTL=no
9410fi
d911ec67 9411
f11781c5
AK
9412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9413$as_echo "$INTL" >&6; }
9414
9415if test x$INTL = xyes; then
9416# FIXME - Move this - can be device-mapper too
9417 INTL_PACKAGE="lvm2"
9418 # Extract the first word of "msgfmt", so it can be a program name with args.
9419set dummy msgfmt; ac_word=$2
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
9422if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9423 $as_echo_n "(cached) " >&6
d911ec67 9424else
f11781c5
AK
9425 case $MSGFMT in
9426 [\\/]* | ?:[\\/]*)
9427 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9428 ;;
9429 *)
9430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433 IFS=$as_save_IFS
9434 test -z "$as_dir" && as_dir=.
9435 for ac_exec_ext in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439 break 2
9440 fi
9441done
9442 done
9443IFS=$as_save_IFS
9444
9445 ;;
d911ec67 9446esac
f11781c5
AK
9447fi
9448MSGFMT=$ac_cv_path_MSGFMT
9449if test -n "$MSGFMT"; then
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9451$as_echo "$MSGFMT" >&6; }
d911ec67 9452else
f11781c5
AK
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9454$as_echo "no" >&6; }
9455fi
d911ec67 9456
f11781c5
AK
9457
9458 if [ "x$MSGFMT" == x ];
9459 then as_fn_error $? "msgfmt not found in path $PATH
9460 " "$LINENO" 5
9461 fi;
9462
9463
9464# Check whether --with-localedir was given.
9465if test "${with_localedir+set}" = set; then :
9466 withval=$with_localedir; LOCALEDIR=$withval
9467else
9468 LOCALEDIR='${prefix}/share/locale'
9469fi
9470
9471fi
9472
9473################################################################################
9474
9475# Check whether --with-confdir was given.
9476if test "${with_confdir+set}" = set; then :
9477 withval=$with_confdir; CONFDIR=$withval
9478else
9479 CONFDIR="/etc"
9480fi
9481
9482
9483
9484# Check whether --with-staticdir was given.
9485if test "${with_staticdir+set}" = set; then :
9486 withval=$with_staticdir; STATICDIR=$withval
9487else
9488 STATICDIR='${exec_prefix}/sbin'
9489fi
9490
9491
9492
9493# Check whether --with-usrlibdir was given.
9494if test "${with_usrlibdir+set}" = set; then :
9495 withval=$with_usrlibdir; usrlibdir=$withval
9496else
9497 usrlibdir='${prefix}/lib'
d911ec67
AK
9498fi
9499
d911ec67 9500
d911ec67 9501
f11781c5
AK
9502# Check whether --with-usrsbindir was given.
9503if test "${with_usrsbindir+set}" = set; then :
9504 withval=$with_usrsbindir; usrsbindir=$withval
9505else
9506 usrsbindir='${prefix}/sbin'
d911ec67
AK
9507fi
9508
d911ec67 9509
f11781c5 9510################################################################################
d911ec67 9511
f11781c5
AK
9512# Check whether --with-udev_prefix was given.
9513if test "${with_udev_prefix+set}" = set; then :
9514 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9515else
f11781c5 9516 udev_prefix='${exec_prefix}'
d911ec67 9517fi
d911ec67 9518
f11781c5
AK
9519
9520
9521# Check whether --with-udevdir was given.
9522if test "${with_udevdir+set}" = set; then :
9523 withval=$with_udevdir; udevdir=$withval
9524else
9525 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9526fi
f11781c5
AK
9527
9528
9529################################################################################
9530if test x$READLINE = xyes; then
9531 for ac_header in readline/readline.h readline/history.h
9532do :
9533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9534ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9536 cat >>confdefs.h <<_ACEOF
9537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9538_ACEOF
9539
9540else
f11781c5 9541 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9542fi
9543
9544done
9545
9546fi
9547
f11781c5
AK
9548if test x$CLVMD != xnone; then
9549 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
9550do :
9551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9552ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9553if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9554 cat >>confdefs.h <<_ACEOF
9555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9556_ACEOF
ad6254c5 9557
f11781c5
AK
9558else
9559 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9560fi
7a197a62 9561
f11781c5 9562done
ad6254c5 9563
f11781c5
AK
9564 for ac_func in dup2 getmntent memmove select socket
9565do :
9566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9568if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9569 cat >>confdefs.h <<_ACEOF
9570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9571_ACEOF
ad6254c5 9572
f11781c5
AK
9573else
9574 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9575fi
f11781c5 9576done
7a197a62 9577
f11781c5
AK
9578 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9579# -lseq on Dynix/PTX, -lgen on Unixware.
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9581$as_echo_n "checking for library containing getmntent... " >&6; }
9582if test "${ac_cv_search_getmntent+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9584else
9585 ac_func_search_save_LIBS=$LIBS
9586cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587/* end confdefs.h. */
ad6254c5 9588
f11781c5
AK
9589/* Override any GCC internal prototype to avoid an error.
9590 Use char because int might match the return type of a GCC
9591 builtin and then its argument prototype would still apply. */
9592#ifdef __cplusplus
9593extern "C"
9594#endif
9595char getmntent ();
9596int
9597main ()
9598{
9599return getmntent ();
9600 ;
9601 return 0;
9602}
9603_ACEOF
9604for ac_lib in '' sun seq gen; do
9605 if test -z "$ac_lib"; then
9606 ac_res="none required"
9607 else
9608 ac_res=-l$ac_lib
9609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9610 fi
9611 if ac_fn_c_try_link "$LINENO"; then :
9612 ac_cv_search_getmntent=$ac_res
9613fi
9614rm -f core conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext
9616 if test "${ac_cv_search_getmntent+set}" = set; then :
9617 break
9618fi
9619done
9620if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9621
ad6254c5 9622else
f11781c5 9623 ac_cv_search_getmntent=no
795ca3e5 9624fi
f11781c5
AK
9625rm conftest.$ac_ext
9626LIBS=$ac_func_search_save_LIBS
9627fi
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9629$as_echo "$ac_cv_search_getmntent" >&6; }
9630ac_res=$ac_cv_search_getmntent
9631if test "$ac_res" != no; then :
9632 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9633 ac_cv_func_getmntent=yes
9634
9635$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9636
f11781c5
AK
9637else
9638 ac_cv_func_getmntent=no
8106cdd5 9639fi
f11781c5
AK
9640
9641
9642 for ac_header in sys/select.h sys/socket.h
9643do :
9644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9645ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9646if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9647 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9648#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9649_ACEOF
795ca3e5 9650
795ca3e5
AK
9651fi
9652
ad6254c5 9653done
80992638 9654
f11781c5
AK
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9656$as_echo_n "checking types of arguments for select... " >&6; }
9657if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9658 $as_echo_n "(cached) " >&6
83912faa 9659else
f11781c5
AK
9660 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9661 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9662 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9664/* end confdefs.h. */
9665$ac_includes_default
f11781c5
AK
9666#ifdef HAVE_SYS_SELECT_H
9667# include <sys/select.h>
9668#endif
9669#ifdef HAVE_SYS_SOCKET_H
9670# include <sys/socket.h>
9671#endif
9672
9673int
9674main ()
9675{
9676extern int select ($ac_arg1,
9677 $ac_arg234, $ac_arg234, $ac_arg234,
9678 $ac_arg5);
9679 ;
9680 return 0;
9681}
ad6254c5 9682_ACEOF
f11781c5
AK
9683if ac_fn_c_try_compile "$LINENO"; then :
9684 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9685fi
9686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9687 done
9688 done
9689done
9690# Provide a safe default value.
9691: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9692
ad6254c5 9693fi
f11781c5
AK
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9695$as_echo "$ac_cv_func_select_args" >&6; }
9696ac_save_IFS=$IFS; IFS=','
9697set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9698IFS=$ac_save_IFS
9699shift
7a197a62 9700
f11781c5
AK
9701cat >>confdefs.h <<_ACEOF
9702#define SELECT_TYPE_ARG1 $1
9703_ACEOF
ad6254c5 9704
f11781c5
AK
9705
9706cat >>confdefs.h <<_ACEOF
9707#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9708_ACEOF
f11781c5
AK
9709
9710
9711cat >>confdefs.h <<_ACEOF
9712#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9713_ACEOF
ad6254c5 9714
f11781c5
AK
9715rm -f conftest*
9716
ad6254c5 9717fi
7a197a62 9718
f11781c5
AK
9719if test x$CLUSTER != xnone; then
9720 for ac_header in sys/socket.h sys/un.h
9721do :
9722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9723ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9724if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9725 cat >>confdefs.h <<_ACEOF
9726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727_ACEOF
ad6254c5 9728
f11781c5
AK
9729else
9730 as_fn_error $? "bailing out" "$LINENO" 5
9731fi
9732
9733done
9734
9735 for ac_func in socket
9736do :
9737 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9738if test "x$ac_cv_func_socket" = x""yes; then :
9739 cat >>confdefs.h <<_ACEOF
9740#define HAVE_SOCKET 1
9741_ACEOF
7a197a62 9742
80992638 9743else
f11781c5 9744 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9745fi
f11781c5 9746done
83912faa 9747
69792976 9748fi
f11781c5
AK
9749
9750if test x$DMEVENTD = xyes; then
9751 for ac_header in arpa/inet.h
9752do :
9753 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9754if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9755 cat >>confdefs.h <<_ACEOF
f11781c5 9756#define HAVE_ARPA_INET_H 1
ad6254c5 9757_ACEOF
69792976 9758
69792976 9759else
f11781c5 9760 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9761fi
9762
ad6254c5 9763done
69792976 9764
ad6254c5
AK
9765fi
9766
f11781c5
AK
9767if test x$HAVE_LIBDL = xyes; then
9768 for ac_header in dlfcn.h
9769do :
9770 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9771if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9772 cat >>confdefs.h <<_ACEOF
9773#define HAVE_DLFCN_H 1
a5f46f6a 9774_ACEOF
a5f46f6a 9775
f11781c5
AK
9776else
9777 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9778fi
9779
f11781c5 9780done
a5f46f6a 9781
a5f46f6a
AK
9782fi
9783
f11781c5
AK
9784if test x$INTL = xyes; then
9785 for ac_header in libintl.h
9786do :
9787 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9788if test "x$ac_cv_header_libintl_h" = x""yes; then :
9789 cat >>confdefs.h <<_ACEOF
9790#define HAVE_LIBINTL_H 1
9791_ACEOF
a5f46f6a 9792
a5f46f6a 9793else
f11781c5 9794 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9795fi
f11781c5
AK
9796
9797done
a5f46f6a
AK
9798
9799fi
f11781c5
AK
9800
9801if test x$UDEV_SYNC = xyes; then
9802 for ac_header in sys/ipc.h sys/sem.h
9803do :
9804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9805ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9806if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9807 cat >>confdefs.h <<_ACEOF
9808#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9809_ACEOF
9810
9811else
f11781c5 9812 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9813fi
9814
9815done
9816
9817fi
9818
a653923f
AK
9819################################################################################
9820# Extract the first word of "modprobe", so it can be a program name with args.
9821set dummy modprobe; ac_word=$2
f11781c5 9822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9823$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9824if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9825 $as_echo_n "(cached) " >&6
72b2cb61
AK
9826else
9827 case $MODPROBE_CMD in
9828 [\\/]* | ?:[\\/]*)
9829 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9830 ;;
9831 *)
9832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
f11781c5 9837 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9839 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9841 break 2
9842 fi
9843done
f11781c5 9844 done
7a197a62 9845IFS=$as_save_IFS
72b2cb61
AK
9846
9847 ;;
9848esac
9849fi
9850MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9851if test -n "$MODPROBE_CMD"; then
f11781c5 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9853$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9854else
f11781c5 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9856$as_echo "no" >&6; }
72b2cb61
AK
9857fi
9858
a653923f 9859
7a197a62 9860
a653923f 9861if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9862
9863cat >>confdefs.h <<_ACEOF
9864#define MODPROBE_CMD "$MODPROBE_CMD"
9865_ACEOF
9866
a653923f
AK
9867fi
9868
b5c2529b 9869
a9b601e2
ZK
9870lvm_exec_prefix=$exec_prefix
9871test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9872test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
9873
b5c2529b 9874cat >>confdefs.h <<_ACEOF
a9b601e2 9875#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
9876_ACEOF
9877
9878
9879if test "$CLVMD" != none; then
9880 clvmd_prefix=$ac_default_prefix
9881 test "$prefix" != NONE && clvmd_prefix=$prefix
9882
9883cat >>confdefs.h <<_ACEOF
9884#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
9885_ACEOF
9886
9887fi
9888
80992638 9889################################################################################
93bd259b
AK
9890if test "$BUILD_DMEVENTD" = yes; then
9891
9892# Check whether --with-dmeventd-pidfile was given.
f11781c5 9893if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 9894 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 9895else
71082be4 9896 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
9897fi
9898
93bd259b 9899
71082be4
ZK
9900cat >>confdefs.h <<_ACEOF
9901#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9902_ACEOF
93bd259b 9903
71082be4 9904fi
93bd259b
AK
9905
9906if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
9907
9908# Check whether --with-dmeventd-path was given.
f11781c5 9909if test "${with_dmeventd_path+set}" = set; then :
71082be4 9910 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 9911else
71082be4 9912 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
9913fi
9914
93bd259b 9915
71082be4
ZK
9916cat >>confdefs.h <<_ACEOF
9917#define DMEVENTD_PATH "$DMEVENTD_PATH"
9918_ACEOF
3399ae32 9919
71082be4 9920fi
3399ae32 9921
8bae0a1e
AK
9922
9923
8bae0a1e 9924# Check whether --with-default-run-dir was given.
f11781c5 9925if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
9926 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9927else
9928 DEFAULT_RUN_DIR="/var/run/lvm"
9929fi
9930
9931cat >>confdefs.h <<_ACEOF
9932#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9933_ACEOF
9934
9935
71082be4 9936################################################################################
3399ae32
AK
9937
9938# Check whether --with-default-system-dir was given.
f11781c5 9939if test "${with_default_system_dir+set}" = set; then :
71082be4 9940 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 9941else
71082be4 9942 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
9943fi
9944
71082be4 9945
3399ae32
AK
9946cat >>confdefs.h <<_ACEOF
9947#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9948_ACEOF
9949
9950
9951
3399ae32 9952# Check whether --with-default-archive-subdir was given.
f11781c5 9953if test "${with_default_archive_subdir+set}" = set; then :
71082be4 9954 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 9955else
71082be4 9956 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
9957fi
9958
71082be4 9959
3399ae32
AK
9960cat >>confdefs.h <<_ACEOF
9961#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
9962_ACEOF
9963
9964
9965
3399ae32 9966# Check whether --with-default-backup-subdir was given.
f11781c5 9967if test "${with_default_backup_subdir+set}" = set; then :
71082be4 9968 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 9969else
71082be4 9970 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
9971fi
9972
71082be4 9973
3399ae32
AK
9974cat >>confdefs.h <<_ACEOF
9975#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
9976_ACEOF
9977
9978
9979
3399ae32 9980# Check whether --with-default-cache-subdir was given.
f11781c5 9981if test "${with_default_cache_subdir+set}" = set; then :
71082be4 9982 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 9983else
71082be4 9984 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
9985fi
9986
71082be4 9987
3399ae32
AK
9988cat >>confdefs.h <<_ACEOF
9989#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
9990_ACEOF
9991
9992
9993
3399ae32 9994# Check whether --with-default-locking-dir was given.
f11781c5 9995if test "${with_default_locking_dir+set}" = set; then :
71082be4 9996 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 9997else
71082be4 9998 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
9999fi
10000
71082be4 10001
3399ae32
AK
10002cat >>confdefs.h <<_ACEOF
10003#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10004_ACEOF
10005
10006
fea55602
DW
10007################################################################################
10008
10009# Check whether --with-default-data-alignment was given.
f11781c5 10010if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10011 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10012else
10013 DEFAULT_DATA_ALIGNMENT=1
10014fi
10015
10016
10017cat >>confdefs.h <<_ACEOF
10018#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10019_ACEOF
10020
10021
93bd259b 10022################################################################################
f11781c5 10023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10024$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10025
10026# Check whether --with-interface was given.
f11781c5 10027if test "${with_interface+set}" = set; then :
71082be4 10028 withval=$with_interface; interface=$withval
93bd259b 10029else
71082be4 10030 interface=ioctl
93bd259b
AK
10031fi
10032
10033if [ "x$interface" != xioctl ];
10034then
f11781c5 10035 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10036fi
f11781c5 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10038$as_echo "$interface" >&6; }
93bd259b
AK
10039
10040################################################################################
db8b5af9 10041DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10042
10043cat >>confdefs.h <<_ACEOF
10044#define DM_LIB_VERSION $DM_LIB_VERSION
10045_ACEOF
10046
10047
db8b5af9 10048DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10049
db8b5af9 10050LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10051
db8b5af9 10052VER=`cat "$srcdir"/VERSION`
bf456146 10053LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10054VER=`echo "$VER" | $AWK '{print $1}'`
10055LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10056VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10057LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10058LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10059LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10060LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10061
80992638 10062################################################################################
fae0c576 10063
83912faa 10064
795ca3e5
AK
10065
10066
10067
10068
10069
10070
5a52dca9 10071
8ef2b021 10072
199e490e 10073
69792976
AK
10074
10075
10076
d0191583 10077
69792976 10078
8106cdd5
AK
10079
10080
10081
10082
10083
d68a82ec 10084
036f273a 10085
7d1552c9 10086
8106cdd5 10087
0a62c911 10088
8106cdd5 10089
4a7f3eb2 10090
4922197a
AK
10091
10092
d8ac0fbc 10093
1a9ea74d 10094
8a2fc586
AK
10095
10096
d0191583 10097
93bd259b
AK
10098
10099
10100
10101
10102
d0191583
JM
10103
10104
10105
10106
10107
8a2fc586 10108
19a2c6e0 10109
f7f0854e
ZK
10110
10111
3ceb7608 10112
8ce0cbda 10113
8b1a3214 10114
ec6a6fbe
AK
10115
10116
10117
10118
e2997b73
AK
10119
10120
10121
10122
10123
10124
a946372e
AK
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
ec6a6fbe 10136
cac52ca4 10137
d3c8211f 10138
7e3fe830 10139
a5f46f6a
AK
10140
10141
10142
572fefeb 10143
90c80887 10144
3399ae32
AK
10145
10146
10147
10148
10149
90c80887 10150
bf456146 10151
e1b8a236 10152
0878503f 10153
8fea97b7 10154
54b362f9 10155
b1f08e51 10156
d1e8046f 10157
fea55602 10158
c89bc357 10159
6e5c1f75 10160
68f2de6d
AK
10161
10162
80992638 10163################################################################################
40dbaac8 10164ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10165
ad6254c5 10166cat >confcache <<\_ACEOF
795ca3e5
AK
10167# This file is a shell script that caches the results of configure
10168# tests run on this system so they can be shared between configure
ad6254c5
AK
10169# scripts and configure runs, see configure's option --config-cache.
10170# It is not useful on other systems. If it contains results you don't
10171# want to keep, you may remove or edit it.
795ca3e5 10172#
ad6254c5
AK
10173# config.status only pays attention to the cache file if you give it
10174# the --recheck option to rerun configure.
795ca3e5 10175#
ad6254c5
AK
10176# `ac_cv_env_foo' variables (set or unset) will be overridden when
10177# loading this file, other *unset* `ac_cv_foo' will be assigned the
10178# following values.
10179
10180_ACEOF
10181
795ca3e5
AK
10182# The following way of writing the cache mishandles newlines in values,
10183# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10184# So, we kill variables containing newlines.
795ca3e5
AK
10185# Ultrix sh set writes to stderr and can't be redirected directly,
10186# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10187(
10188 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10189 eval ac_val=\$$ac_var
10190 case $ac_val in #(
10191 *${as_nl}*)
10192 case $ac_var in #(
f11781c5 10193 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10194$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10195 esac
10196 case $ac_var in #(
10197 _ | IFS | as_nl) ;; #(
ec6a6fbe 10198 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10199 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10200 esac ;;
10201 esac
10202 done
10203
ad6254c5 10204 (set) 2>&1 |
7a197a62
AK
10205 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10206 *${as_nl}ac_space=\ *)
f11781c5
AK
10207 # `set' does not quote correctly, so add quotes: double-quote
10208 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10209 sed -n \
8a2fc586
AK
10210 "s/'/'\\\\''/g;
10211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10212 ;; #(
ad6254c5
AK
10213 *)
10214 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10215 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10216 ;;
7a197a62
AK
10217 esac |
10218 sort
10219) |
ad6254c5 10220 sed '
7a197a62 10221 /^ac_cv_env_/b end
ad6254c5 10222 t clear
7a197a62 10223 :clear
ad6254c5
AK
10224 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10225 t end
7a197a62
AK
10226 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10227 :end' >>confcache
10228if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10229 if test -w "$cache_file"; then
10230 test "x$cache_file" != "x/dev/null" &&
f11781c5 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10232$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10233 cat confcache >$cache_file
795ca3e5 10234 else
f11781c5 10235 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10236$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10237 fi
10238fi
10239rm -f confcache
10240
795ca3e5
AK
10241test "x$prefix" = xNONE && prefix=$ac_default_prefix
10242# Let make expand exec_prefix.
10243test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10244
72b2cb61 10245DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10246
10247ac_libobjs=
10248ac_ltlibobjs=
f11781c5 10249U=
ad6254c5
AK
10250for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10251 # 1. Remove the extension, and $U if already installed.
7a197a62 10252 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10253 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10254 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10255 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10256 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10257 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10258done
10259LIBOBJS=$ac_libobjs
80992638 10260
ad6254c5
AK
10261LTLIBOBJS=$ac_ltlibobjs
10262
10263
10264
10265: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10266ac_write_fail=0
ad6254c5
AK
10267ac_clean_files_save=$ac_clean_files
10268ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10269{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10270$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10271as_write_fail=0
10272cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10273#! $SHELL
10274# Generated by $as_me.
795ca3e5 10275# Run this file to recreate the current configuration.
795ca3e5 10276# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10277# configure, is in config.log if it exists.
10278
10279debug=false
10280ac_cs_recheck=false
10281ac_cs_silent=false
ad6254c5 10282
f11781c5
AK
10283SHELL=\${CONFIG_SHELL-$SHELL}
10284export SHELL
10285_ASEOF
10286cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10287## -------------------- ##
10288## M4sh Initialization. ##
10289## -------------------- ##
ad6254c5 10290
25fbec5b
AK
10291# Be more Bourne compatible
10292DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10293if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10294 emulate sh
10295 NULLCMD=:
ec6a6fbe 10296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10297 # is contrary to our usage. Disable this feature.
10298 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10299 setopt NO_GLOB_SUBST
10300else
f11781c5
AK
10301 case `(set -o) 2>/dev/null` in #(
10302 *posix*) :
10303 set -o posix ;; #(
10304 *) :
10305 ;;
25fbec5b 10306esac
7a197a62 10307fi
25fbec5b
AK
10308
10309
ec6a6fbe
AK
10310as_nl='
10311'
10312export as_nl
10313# Printing a long string crashes Solaris 7 /usr/bin/printf.
10314as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10316as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10317# Prefer a ksh shell builtin over an external printf program on Solaris,
10318# but without wasting forks for bash or zsh.
10319if test -z "$BASH_VERSION$ZSH_VERSION" \
10320 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10321 as_echo='print -r --'
10322 as_echo_n='print -rn --'
10323elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10324 as_echo='printf %s\n'
10325 as_echo_n='printf %s'
10326else
10327 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10328 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10329 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10330 else
ec6a6fbe
AK
10331 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10332 as_echo_n_body='eval
10333 arg=$1;
f11781c5 10334 case $arg in #(
ec6a6fbe
AK
10335 *"$as_nl"*)
10336 expr "X$arg" : "X\\(.*\\)$as_nl";
10337 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10338 esac;
10339 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10340 '
10341 export as_echo_n_body
10342 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10343 fi
ec6a6fbe
AK
10344 export as_echo_body
10345 as_echo='sh -c $as_echo_body as_echo'
10346fi
10347
10348# The user is always right.
10349if test "${PATH_SEPARATOR+set}" != set; then
10350 PATH_SEPARATOR=:
10351 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10352 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10353 PATH_SEPARATOR=';'
10354 }
ad6254c5
AK
10355fi
10356
ad6254c5 10357
7a197a62
AK
10358# IFS
10359# We need space, tab and new line, in precisely that order. Quoting is
10360# there to prevent editors from complaining about space-tab.
10361# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10362# splitting by setting IFS to empty value.)
7a197a62
AK
10363IFS=" "" $as_nl"
10364
10365# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10366case $0 in #((
7a197a62
AK
10367 *[\\/]* ) as_myself=$0 ;;
10368 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
f11781c5
AK
10373 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10374 done
7a197a62
AK
10375IFS=$as_save_IFS
10376
10377 ;;
10378esac
10379# We did not find ourselves, most probably we were run as `sh COMMAND'
10380# in which case we are not to be found in the path.
10381if test "x$as_myself" = x; then
10382 as_myself=$0
10383fi
10384if test ! -f "$as_myself"; then
ec6a6fbe 10385 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10386 exit 1
7a197a62
AK
10387fi
10388
f11781c5
AK
10389# Unset variables that we do not need and which cause bugs (e.g. in
10390# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10391# suppresses any "Segmentation fault" message there. '((' could
10392# trigger a bug in pdksh 5.2.14.
10393for as_var in BASH_ENV ENV MAIL MAILPATH
10394do eval test x\${$as_var+set} = xset \
10395 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10396done
ad6254c5
AK
10397PS1='$ '
10398PS2='> '
10399PS4='+ '
10400
10401# NLS nuisances.
ec6a6fbe
AK
10402LC_ALL=C
10403export LC_ALL
10404LANGUAGE=C
10405export LANGUAGE
8106cdd5 10406
f11781c5
AK
10407# CDPATH.
10408(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10409
10410
10411# as_fn_error STATUS ERROR [LINENO LOG_FD]
10412# ----------------------------------------
10413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10415# script with STATUS, using 1 if that was 0.
10416as_fn_error ()
10417{
10418 as_status=$1; test $as_status -eq 0 && as_status=1
10419 if test "$4"; then
10420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10422 fi
10423 $as_echo "$as_me: error: $2" >&2
10424 as_fn_exit $as_status
10425} # as_fn_error
10426
10427
10428# as_fn_set_status STATUS
10429# -----------------------
10430# Set $? to STATUS, without forking.
10431as_fn_set_status ()
10432{
10433 return $1
10434} # as_fn_set_status
10435
10436# as_fn_exit STATUS
10437# -----------------
10438# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10439as_fn_exit ()
10440{
10441 set +e
10442 as_fn_set_status $1
10443 exit $1
10444} # as_fn_exit
10445
10446# as_fn_unset VAR
10447# ---------------
10448# Portably unset VAR.
10449as_fn_unset ()
10450{
10451 { eval $1=; unset $1;}
10452}
10453as_unset=as_fn_unset
10454# as_fn_append VAR VALUE
10455# ----------------------
10456# Append the text in VALUE to the end of the definition contained in VAR. Take
10457# advantage of any shell optimizations that allow amortized linear growth over
10458# repeated appends, instead of the typical quadratic growth present in naive
10459# implementations.
10460if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10461 eval 'as_fn_append ()
10462 {
10463 eval $1+=\$2
10464 }'
10465else
10466 as_fn_append ()
10467 {
10468 eval $1=\$$1\$2
10469 }
10470fi # as_fn_append
10471
10472# as_fn_arith ARG...
10473# ------------------
10474# Perform arithmetic evaluation on the ARGs, and store the result in the
10475# global $as_val. Take advantage of shells that can avoid forks. The arguments
10476# must be portable across $(()) and expr.
10477if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10478 eval 'as_fn_arith ()
10479 {
10480 as_val=$(( $* ))
10481 }'
10482else
10483 as_fn_arith ()
10484 {
10485 as_val=`expr "$@" || test $? -eq 1`
10486 }
10487fi # as_fn_arith
10488
10489
7a197a62
AK
10490if expr a : '\(a\)' >/dev/null 2>&1 &&
10491 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10492 as_expr=expr
10493else
10494 as_expr=false
10495fi
8106cdd5 10496
7a197a62 10497if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10498 as_basename=basename
10499else
10500 as_basename=false
10501fi
10502
f11781c5
AK
10503if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10504 as_dirname=dirname
10505else
10506 as_dirname=false
10507fi
ad6254c5 10508
7a197a62 10509as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10510$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10511 X"$0" : 'X\(//\)$' \| \
7a197a62 10512 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10513$as_echo X/"$0" |
7a197a62
AK
10514 sed '/^.*\/\([^/][^/]*\)\/*$/{
10515 s//\1/
10516 q
10517 }
10518 /^X\/\(\/\/\)$/{
10519 s//\1/
10520 q
10521 }
10522 /^X\/\(\/\).*/{
10523 s//\1/
10524 q
10525 }
10526 s/.*/./; q'`
ad6254c5 10527
f11781c5
AK
10528# Avoid depending upon Character Ranges.
10529as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10530as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10531as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10532as_cr_digits='0123456789'
10533as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10534
10535ECHO_C= ECHO_N= ECHO_T=
f11781c5 10536case `echo -n x` in #(((((
7a197a62 10537-n*)
f11781c5 10538 case `echo 'xy\c'` in
7a197a62 10539 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10540 xy) ECHO_C='\c';;
10541 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10542 ECHO_T=' ';;
7a197a62
AK
10543 esac;;
10544*)
10545 ECHO_N='-n';;
ad6254c5 10546esac
80992638 10547
ad6254c5 10548rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10549if test -d conf$$.dir; then
10550 rm -f conf$$.dir/conf$$.file
10551else
10552 rm -f conf$$.dir
ec6a6fbe
AK
10553 mkdir conf$$.dir 2>/dev/null
10554fi
10555if (echo >conf$$.file) 2>/dev/null; then
10556 if ln -s conf$$.file conf$$ 2>/dev/null; then
10557 as_ln_s='ln -s'
10558 # ... but there are two gotchas:
10559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10561 # In both cases, we have to default to `cp -p'.
10562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10563 as_ln_s='cp -p'
10564 elif ln conf$$.file conf$$ 2>/dev/null; then
10565 as_ln_s=ln
10566 else
ad6254c5 10567 as_ln_s='cp -p'
ec6a6fbe 10568 fi
ad6254c5
AK
10569else
10570 as_ln_s='cp -p'
10571fi
7a197a62
AK
10572rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10573rmdir conf$$.dir 2>/dev/null
8106cdd5 10574
f11781c5
AK
10575
10576# as_fn_mkdir_p
10577# -------------
10578# Create "$as_dir" as a directory, including parents if necessary.
10579as_fn_mkdir_p ()
10580{
10581
10582 case $as_dir in #(
10583 -*) as_dir=./$as_dir;;
10584 esac
10585 test -d "$as_dir" || eval $as_mkdir_p || {
10586 as_dirs=
10587 while :; do
10588 case $as_dir in #(
10589 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10590 *) as_qdir=$as_dir;;
10591 esac
10592 as_dirs="'$as_qdir' $as_dirs"
10593 as_dir=`$as_dirname -- "$as_dir" ||
10594$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10595 X"$as_dir" : 'X\(//\)[^/]' \| \
10596 X"$as_dir" : 'X\(//\)$' \| \
10597 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10598$as_echo X"$as_dir" |
10599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10600 s//\1/
10601 q
10602 }
10603 /^X\(\/\/\)[^/].*/{
10604 s//\1/
10605 q
10606 }
10607 /^X\(\/\/\)$/{
10608 s//\1/
10609 q
10610 }
10611 /^X\(\/\).*/{
10612 s//\1/
10613 q
10614 }
10615 s/.*/./; q'`
10616 test -d "$as_dir" && break
10617 done
10618 test -z "$as_dirs" || eval "mkdir $as_dirs"
10619 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10620
10621
10622} # as_fn_mkdir_p
ad6254c5 10623if mkdir -p . 2>/dev/null; then
f11781c5 10624 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10625else
8a2fc586 10626 test -d ./-p && rmdir ./-p
ad6254c5
AK
10627 as_mkdir_p=false
10628fi
10629
25fbec5b
AK
10630if test -x / >/dev/null 2>&1; then
10631 as_test_x='test -x'
7a197a62 10632else
25fbec5b
AK
10633 if ls -dL / >/dev/null 2>&1; then
10634 as_ls_L_option=L
10635 else
10636 as_ls_L_option=
10637 fi
10638 as_test_x='
10639 eval sh -c '\''
10640 if test -d "$1"; then
ec6a6fbe 10641 test -d "$1/.";
25fbec5b 10642 else
f11781c5 10643 case $1 in #(
ec6a6fbe 10644 -*)set "./$1";;
25fbec5b 10645 esac;
f11781c5 10646 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10647 ???[sx]*):;;*)false;;esac;fi
10648 '\'' sh
10649 '
7a197a62 10650fi
25fbec5b 10651as_executable_p=$as_test_x
ad6254c5
AK
10652
10653# Sed expression to map a string onto a valid CPP name.
8a2fc586 10654as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10655
10656# Sed expression to map a string onto a valid variable name.
8a2fc586 10657as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10658
10659
ad6254c5 10660exec 6>&1
f11781c5
AK
10661## ----------------------------------- ##
10662## Main body of $CONFIG_STATUS script. ##
10663## ----------------------------------- ##
10664_ASEOF
10665test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10666
f11781c5
AK
10667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10668# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10669# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10670# values after options handling.
10671ac_log="
ad6254c5 10672This file was extended by $as_me, which was
f11781c5 10673generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10674
10675 CONFIG_FILES = $CONFIG_FILES
10676 CONFIG_HEADERS = $CONFIG_HEADERS
10677 CONFIG_LINKS = $CONFIG_LINKS
10678 CONFIG_COMMANDS = $CONFIG_COMMANDS
10679 $ $0 $@
10680
7a197a62
AK
10681on `(hostname || uname -n) 2>/dev/null | sed 1q`
10682"
10683
ad6254c5
AK
10684_ACEOF
10685
ec6a6fbe
AK
10686case $ac_config_files in *"
10687"*) set x $ac_config_files; shift; ac_config_files=$*;;
10688esac
10689
10690case $ac_config_headers in *"
10691"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10692esac
10693
10694
10695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10696# Files that config.status was made for.
68f2de6d
AK
10697config_files="$ac_config_files"
10698config_headers="$ac_config_headers"
ad6254c5 10699
7a197a62 10700_ACEOF
ad6254c5 10701
ec6a6fbe 10702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10703ac_cs_usage="\
f11781c5
AK
10704\`$as_me' instantiates files and other configuration actions
10705from templates according to the current configuration. Unless the files
10706and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10707
f11781c5 10708Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10709
10710 -h, --help print this help, then exit
25fbec5b 10711 -V, --version print version number and configuration settings, then exit
f11781c5 10712 --config print configuration, then exit
ec6a6fbe
AK
10713 -q, --quiet, --silent
10714 do not print progress messages
ad6254c5
AK
10715 -d, --debug don't remove temporary files
10716 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10717 --file=FILE[:TEMPLATE]
10718 instantiate the configuration file FILE
10719 --header=FILE[:TEMPLATE]
10720 instantiate the configuration header FILE
ad6254c5
AK
10721
10722Configuration files:
10723$config_files
10724
72b2cb61
AK
10725Configuration headers:
10726$config_headers
10727
f11781c5 10728Report bugs to the package provider."
ad6254c5 10729
7a197a62 10730_ACEOF
ec6a6fbe 10731cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10732ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10733ac_cs_version="\\
10734config.status
f11781c5
AK
10735configured by $0, generated by GNU Autoconf 2.66,
10736 with options \\"\$ac_cs_config\\"
ad6254c5 10737
f11781c5 10738Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10739This config.status script is free software; the Free Software Foundation
10740gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10741
10742ac_pwd='$ac_pwd'
10743srcdir='$srcdir'
10744INSTALL='$INSTALL'
fddafd51 10745MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10746AWK='$AWK'
10747test -n "\$AWK" || AWK=awk
ad6254c5
AK
10748_ACEOF
10749
ec6a6fbe
AK
10750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10751# The default lists apply if the user does not specify any file.
ad6254c5
AK
10752ac_need_defaults=:
10753while test $# != 0
10754do
10755 case $1 in
10756 --*=*)
7a197a62
AK
10757 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10758 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10759 ac_shift=:
10760 ;;
7a197a62 10761 *)
ad6254c5
AK
10762 ac_option=$1
10763 ac_optarg=$2
10764 ac_shift=shift
10765 ;;
ad6254c5
AK
10766 esac
10767
10768 case $ac_option in
10769 # Handling of the options.
ad6254c5
AK
10770 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10771 ac_cs_recheck=: ;;
7a197a62 10772 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10773 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10774 --config | --confi | --conf | --con | --co | --c )
10775 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10776 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10777 debug=: ;;
10778 --file | --fil | --fi | --f )
10779 $ac_shift
ec6a6fbe
AK
10780 case $ac_optarg in
10781 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10782 esac
f11781c5 10783 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10784 ac_need_defaults=false;;
10785 --header | --heade | --head | --hea )
10786 $ac_shift
ec6a6fbe
AK
10787 case $ac_optarg in
10788 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10789 esac
f11781c5 10790 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10791 ac_need_defaults=false;;
7a197a62
AK
10792 --he | --h)
10793 # Conflict between --help and --header
f11781c5
AK
10794 as_fn_error $? "ambiguous option: \`$1'
10795Try \`$0 --help' for more information.";;
7a197a62 10796 --help | --hel | -h )
ec6a6fbe 10797 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10798 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10799 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10800 ac_cs_silent=: ;;
10801
10802 # This is an error.
f11781c5
AK
10803 -*) as_fn_error $? "unrecognized option: \`$1'
10804Try \`$0 --help' for more information." ;;
ad6254c5 10805
f11781c5 10806 *) as_fn_append ac_config_targets " $1"
7a197a62 10807 ac_need_defaults=false ;;
ad6254c5
AK
10808
10809 esac
10810 shift
10811done
10812
10813ac_configure_extra_args=
10814
10815if $ac_cs_silent; then
10816 exec 6>/dev/null
10817 ac_configure_extra_args="$ac_configure_extra_args --silent"
10818fi
10819
10820_ACEOF
ec6a6fbe 10821cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10822if \$ac_cs_recheck; then
ec6a6fbe
AK
10823 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10824 shift
10825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10826 CONFIG_SHELL='$SHELL'
7a197a62 10827 export CONFIG_SHELL
ec6a6fbe 10828 exec "\$@"
ad6254c5
AK
10829fi
10830
10831_ACEOF
ec6a6fbe 10832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10833exec 5>>config.log
10834{
10835 echo
10836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10837## Running $as_me. ##
10838_ASBOX
ec6a6fbe 10839 $as_echo "$ac_log"
7a197a62 10840} >&5
ad6254c5 10841
7a197a62 10842_ACEOF
ec6a6fbe 10843cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10844_ACEOF
ad6254c5 10845
ec6a6fbe 10846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10847
10848# Handling of arguments.
ad6254c5
AK
10849for ac_config_target in $ac_config_targets
10850do
7a197a62
AK
10851 case $ac_config_target in
10852 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10853 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10854 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10855 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10856 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10857 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
10858 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10859 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10860 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10861 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 10862 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
10863 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10864 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 10865 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 10866 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 10867 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
10868 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10869 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
10870 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10871 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10872 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10873 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 10874 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 10875 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 10876 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 10877 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
10878 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10879 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 10880 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 10881 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
10882 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10883 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 10884 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 10885 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 10886 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
10887 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10888 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 10889 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 10890 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 10891 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 10892 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 10893 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
10894 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10895 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 10896 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 10897
f11781c5 10898 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 10899 esac
ad6254c5
AK
10900done
10901
7a197a62 10902
ad6254c5
AK
10903# If the user did not use the arguments to specify the items to instantiate,
10904# then the envvar interface is used. Set only those that are not.
10905# We use the long form for the default assignment because of an extremely
10906# bizarre bug on SunOS 4.1.3.
10907if $ac_need_defaults; then
10908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 10909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
10910fi
10911
10912# Have a temporary directory for convenience. Make it in the build tree
7a197a62 10913# simply because there is no reason against having it here, and in addition,
ad6254c5 10914# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
10915# Hook for its removal unless debugging.
10916# Note that there is a small window in which the directory will not be cleaned:
10917# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
10918$debug ||
10919{
7a197a62
AK
10920 tmp=
10921 trap 'exit_status=$?
10922 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10923' 0
f11781c5 10924 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 10925}
ad6254c5
AK
10926# Create a (secure) tmp directory for tmp files.
10927
10928{
7a197a62 10929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
10930 test -n "$tmp" && test -d "$tmp"
10931} ||
10932{
7a197a62
AK
10933 tmp=./conf$$-$RANDOM
10934 (umask 077 && mkdir "$tmp")
f11781c5 10935} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 10936
ec6a6fbe
AK
10937# Set up the scripts for CONFIG_FILES section.
10938# No need to generate them if there are no CONFIG_FILES.
10939# This happens for instance with `./config.status config.h'.
1995c9ff 10940if test -n "$CONFIG_FILES"; then
7a197a62 10941
68f2de6d 10942
f11781c5
AK
10943ac_cr=`echo X | tr X '\015'`
10944# On cygwin, bash can eat \r inside `` if the user requested igncr.
10945# But we know of no other shell where ac_cr would be empty at this
10946# point, so we can use a bashism as a fallback.
10947if test "x$ac_cr" = x; then
10948 eval ac_cr=\$\'\\r\'
10949fi
ec6a6fbe
AK
10950ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10951if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10952 ac_cs_awk_cr='\\r'
10953else
10954 ac_cs_awk_cr=$ac_cr
1995c9ff 10955fi
7a197a62 10956
ec6a6fbe 10957echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 10958_ACEOF
7a197a62 10959
8106cdd5 10960
ec6a6fbe
AK
10961{
10962 echo "cat >conf$$subs.awk <<_ACEOF" &&
10963 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10964 echo "_ACEOF"
10965} >conf$$subs.sh ||
f11781c5
AK
10966 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10967ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
10968ac_delim='%!_!# '
10969for ac_last_try in false false false false false :; do
ec6a6fbe 10970 . ./conf$$subs.sh ||
f11781c5 10971 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
10972
10973 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10974 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
10975 break
10976 elif $ac_last_try; then
f11781c5 10977 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
10978 else
10979 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10980 fi
10981done
ec6a6fbe
AK
10982rm -f conf$$subs.sh
10983
10984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10985cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10986_ACEOF
10987sed -n '
10988h
10989s/^/S["/; s/!.*/"]=/
10990p
10991g
10992s/^[^!]*!//
10993:repl
10994t repl
10995s/'"$ac_delim"'$//
10996t delim
10997:nl
10998h
f11781c5 10999s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11000t more1
11001s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11002p
11003n
11004b repl
11005:more1
11006s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11007p
11008g
11009s/.\{148\}//
11010t nl
11011:delim
11012h
f11781c5 11013s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11014t more2
11015s/["\\]/\\&/g; s/^/"/; s/$/"/
11016p
11017b
11018:more2
11019s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11020p
11021g
11022s/.\{148\}//
11023t delim
11024' <conf$$subs.awk | sed '
11025/^[^""]/{
11026 N
11027 s/\n//
11028}
11029' >>$CONFIG_STATUS || ac_write_fail=1
11030rm -f conf$$subs.awk
11031cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11032_ACAWK
11033cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11034 for (key in S) S_is_set[key] = 1
11035 FS = "\a"
7a197a62 11036
ec6a6fbe
AK
11037}
11038{
11039 line = $ 0
11040 nfields = split(line, field, "@")
11041 substed = 0
11042 len = length(field[1])
11043 for (i = 2; i < nfields; i++) {
11044 key = field[i]
11045 keylen = length(key)
11046 if (S_is_set[key]) {
11047 value = S[key]
11048 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11049 len += length(value) + length(field[++i])
11050 substed = 1
11051 } else
11052 len += 1 + keylen
11053 }
11054
11055 print line
11056}
fddafd51 11057
ec6a6fbe 11058_ACAWK
1995c9ff 11059_ACEOF
ec6a6fbe
AK
11060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11061if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11062 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11063else
11064 cat
11065fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11066 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11067_ACEOF
11068
f11781c5
AK
11069# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11070# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11071# trailing colons and then remove the whole line if VPATH becomes empty
11072# (actually we leave an empty line to preserve line numbers).
11073if test "x$srcdir" = x.; then
f11781c5
AK
11074 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11075h
11076s///
11077s/^/:/
11078s/[ ]*$/:/
11079s/:\$(srcdir):/:/g
11080s/:\${srcdir}:/:/g
11081s/:@srcdir@:/:/g
11082s/^:*//
7a197a62 11083s/:*$//
f11781c5
AK
11084x
11085s/\(=[ ]*\).*/\1/
11086G
11087s/\n//
7a197a62
AK
11088s/^[^=]*=[ ]*$//
11089}'
11090fi
11091
ec6a6fbe 11092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11093fi # test -n "$CONFIG_FILES"
11094
ec6a6fbe
AK
11095# Set up the scripts for CONFIG_HEADERS section.
11096# No need to generate them if there are no CONFIG_HEADERS.
11097# This happens for instance with `./config.status Makefile'.
11098if test -n "$CONFIG_HEADERS"; then
11099cat >"$tmp/defines.awk" <<\_ACAWK ||
11100BEGIN {
11101_ACEOF
11102
11103# Transform confdefs.h into an awk script `defines.awk', embedded as
11104# here-document in config.status, that substitutes the proper values into
11105# config.h.in to produce config.h.
11106
11107# Create a delimiter string that does not exist in confdefs.h, to ease
11108# handling of long lines.
11109ac_delim='%!_!# '
11110for ac_last_try in false false :; do
11111 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11112 if test -z "$ac_t"; then
11113 break
11114 elif $ac_last_try; then
f11781c5 11115 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11116 else
11117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11118 fi
11119done
11120
11121# For the awk script, D is an array of macro values keyed by name,
11122# likewise P contains macro parameters if any. Preserve backslash
11123# newline sequences.
11124
11125ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11126sed -n '
11127s/.\{148\}/&'"$ac_delim"'/g
11128t rset
11129:rset
11130s/^[ ]*#[ ]*define[ ][ ]*/ /
11131t def
11132d
11133:def
11134s/\\$//
11135t bsnl
11136s/["\\]/\\&/g
11137s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11138D["\1"]=" \3"/p
11139s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11140d
11141:bsnl
11142s/["\\]/\\&/g
11143s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11144D["\1"]=" \3\\\\\\n"\\/p
11145t cont
11146s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11147t cont
11148d
11149:cont
11150n
11151s/.\{148\}/&'"$ac_delim"'/g
11152t clear
11153:clear
11154s/\\$//
11155t bsnlc
11156s/["\\]/\\&/g; s/^/"/; s/$/"/p
11157d
11158:bsnlc
11159s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11160b cont
11161' <confdefs.h | sed '
11162s/'"$ac_delim"'/"\\\
11163"/g' >>$CONFIG_STATUS || ac_write_fail=1
11164
11165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11166 for (key in D) D_is_set[key] = 1
11167 FS = "\a"
11168}
11169/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11170 line = \$ 0
11171 split(line, arg, " ")
11172 if (arg[1] == "#") {
11173 defundef = arg[2]
11174 mac1 = arg[3]
11175 } else {
11176 defundef = substr(arg[1], 2)
11177 mac1 = arg[2]
11178 }
11179 split(mac1, mac2, "(") #)
11180 macro = mac2[1]
11181 prefix = substr(line, 1, index(line, defundef) - 1)
11182 if (D_is_set[macro]) {
11183 # Preserve the white space surrounding the "#".
11184 print prefix "define", macro P[macro] D[macro]
11185 next
11186 } else {
11187 # Replace #undef with comments. This is necessary, for example,
11188 # in the case of _POSIX_SOURCE, which is predefined and required
11189 # on some systems where configure will not decide to define it.
11190 if (defundef == "undef") {
11191 print "/*", prefix defundef, macro, "*/"
11192 next
11193 }
11194 }
11195}
11196{ print }
11197_ACAWK
11198_ACEOF
11199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11200 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11201fi # test -n "$CONFIG_HEADERS"
11202
7a197a62 11203
ec6a6fbe
AK
11204eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11205shift
11206for ac_tag
7a197a62
AK
11207do
11208 case $ac_tag in
11209 :[FHLC]) ac_mode=$ac_tag; continue;;
11210 esac
11211 case $ac_mode$ac_tag in
11212 :[FHL]*:*);;
f11781c5 11213 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11214 :[FH]-) ac_tag=-:-;;
11215 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11216 esac
11217 ac_save_IFS=$IFS
11218 IFS=:
11219 set x $ac_tag
11220 IFS=$ac_save_IFS
11221 shift
11222 ac_file=$1
11223 shift
11224
11225 case $ac_mode in
11226 :L) ac_source=$1;;
11227 :[FH])
11228 ac_file_inputs=
11229 for ac_f
11230 do
11231 case $ac_f in
11232 -) ac_f="$tmp/stdin";;
11233 *) # Look for the file first in the build tree, then in the source tree
11234 # (if the path is not absolute). The absolute path cannot be DOS-style,
11235 # because $ac_f cannot contain `:'.
11236 test -f "$ac_f" ||
11237 case $ac_f in
11238 [\\/$]*) false;;
11239 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11240 esac ||
f11781c5 11241 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11242 esac
ec6a6fbe 11243 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11244 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11245 done
11246
11247 # Let's still pretend it is `configure' which instantiates (i.e., don't
11248 # use $as_me), people would be surprised to read:
11249 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11250 configure_input='Generated from '`
11251 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11252 `' by configure.'
7a197a62
AK
11253 if test x"$ac_file" != x-; then
11254 configure_input="$ac_file. $configure_input"
f11781c5 11255 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11256$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11257 fi
ec6a6fbe
AK
11258 # Neutralize special characters interpreted by sed in replacement strings.
11259 case $configure_input in #(
11260 *\&* | *\|* | *\\* )
11261 ac_sed_conf_input=`$as_echo "$configure_input" |
11262 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11263 *) ac_sed_conf_input=$configure_input;;
11264 esac
7a197a62
AK
11265
11266 case $ac_tag in
ec6a6fbe 11267 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11268 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11269 esac
11270 ;;
80992638 11271 esac
8106cdd5 11272
7a197a62 11273 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11274$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11275 X"$ac_file" : 'X\(//\)[^/]' \| \
11276 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11277 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11278$as_echo X"$ac_file" |
7a197a62
AK
11279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11280 s//\1/
11281 q
11282 }
11283 /^X\(\/\/\)[^/].*/{
11284 s//\1/
11285 q
11286 }
11287 /^X\(\/\/\)$/{
11288 s//\1/
11289 q
11290 }
11291 /^X\(\/\).*/{
11292 s//\1/
11293 q
11294 }
11295 s/.*/./; q'`
f11781c5 11296 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11297 ac_builddir=.
11298
7a197a62
AK
11299case "$ac_dir" in
11300.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11301*)
ec6a6fbe 11302 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11303 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11304 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11305 case $ac_top_builddir_sub in
11306 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11307 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11308 esac ;;
11309esac
11310ac_abs_top_builddir=$ac_pwd
11311ac_abs_builddir=$ac_pwd$ac_dir_suffix
11312# for backward compatibility:
11313ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11314
11315case $srcdir in
7a197a62 11316 .) # We are building in place.
ad6254c5 11317 ac_srcdir=.
7a197a62
AK
11318 ac_top_srcdir=$ac_top_builddir_sub
11319 ac_abs_top_srcdir=$ac_pwd ;;
11320 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11321 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11322 ac_top_srcdir=$srcdir
11323 ac_abs_top_srcdir=$srcdir ;;
11324 *) # Relative name.
11325 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11326 ac_top_srcdir=$ac_top_build_prefix$srcdir
11327 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11328esac
7a197a62 11329ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11330
ad6254c5 11331
7a197a62
AK
11332 case $ac_mode in
11333 :F)
11334 #
11335 # CONFIG_FILE
11336 #
ad6254c5
AK
11337
11338 case $INSTALL in
11339 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11340 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11341 esac
fddafd51
ZK
11342 ac_MKDIR_P=$MKDIR_P
11343 case $MKDIR_P in
11344 [\\/$]* | ?:[\\/]* ) ;;
11345 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11346 esac
7a197a62 11347_ACEOF
795ca3e5 11348
ec6a6fbe 11349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11350# If the template does not know about datarootdir, expand it.
11351# FIXME: This hack should be removed a few years after 2.60.
11352ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11353ac_sed_dataroot='
11354/datarootdir/ {
7a197a62
AK
11355 p
11356 q
11357}
11358/@datadir@/p
11359/@docdir@/p
11360/@infodir@/p
11361/@localedir@/p
f11781c5 11362/@mandir@/p'
ec6a6fbe 11363case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11364*datarootdir*) ac_datarootdir_seen=yes;;
11365*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11367$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11368_ACEOF
ec6a6fbe 11369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11370 ac_datarootdir_hack='
11371 s&@datadir@&$datadir&g
11372 s&@docdir@&$docdir&g
11373 s&@infodir@&$infodir&g
11374 s&@localedir@&$localedir&g
11375 s&@mandir@&$mandir&g
f11781c5 11376 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11377esac
11378_ACEOF
11379
11380# Neutralize VPATH when `$srcdir' = `.'.
11381# Shell code in configure.ac might set extrasub.
11382# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11383cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11384ac_sed_extra="$ac_vpsub
ad6254c5
AK
11385$extrasub
11386_ACEOF
ec6a6fbe 11387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11388:t
11389/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11390s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11391s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11392s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11393s&@srcdir@&$ac_srcdir&;t t
11394s&@abs_srcdir@&$ac_abs_srcdir&;t t
11395s&@top_srcdir@&$ac_top_srcdir&;t t
11396s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11397s&@builddir@&$ac_builddir&;t t
11398s&@abs_builddir@&$ac_abs_builddir&;t t
11399s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11400s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11401s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11402$ac_datarootdir_hack
ec6a6fbe
AK
11403"
11404eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11405 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11406
11407test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11408 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11409 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11411which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11412$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11413which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11414
11415 rm -f "$tmp/stdin"
72b2cb61 11416 case $ac_file in
ec6a6fbe
AK
11417 -) cat "$tmp/out" && rm -f "$tmp/out";;
11418 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11419 esac \
f11781c5 11420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11421 ;;
11422 :H)
11423 #
11424 # CONFIG_HEADER
11425 #
72b2cb61 11426 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11427 {
11428 $as_echo "/* $configure_input */" \
11429 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11430 } >"$tmp/config.h" \
f11781c5 11431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11432 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11433 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11434$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11435 else
ec6a6fbe
AK
11436 rm -f "$ac_file"
11437 mv "$tmp/config.h" "$ac_file" \
f11781c5 11438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11439 fi
11440 else
ec6a6fbe
AK
11441 $as_echo "/* $configure_input */" \
11442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11443 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11444 fi
7a197a62
AK
11445 ;;
11446
11447
11448 esac
11449
11450done # for ac_tag
795ca3e5 11451
795ca3e5 11452
f11781c5 11453as_fn_exit 0
ad6254c5 11454_ACEOF
ad6254c5
AK
11455ac_clean_files=$ac_clean_files_save
11456
ec6a6fbe 11457test $ac_write_fail = 0 ||
f11781c5 11458 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11459
ad6254c5
AK
11460
11461# configure is writing to config.log, and then calls config.status.
11462# config.status does its own redirection, appending to config.log.
11463# Unfortunately, on DOS this fails, as config.log is still kept open
11464# by configure, so config.status won't be able to write to it; its
11465# output is simply discarded. So we exec the FD to /dev/null,
11466# effectively closing config.log, so it can be properly (re)opened and
11467# appended to by config.status. When coming back to configure, we
11468# need to make the FD available again.
11469if test "$no_create" != yes; then
11470 ac_cs_success=:
11471 ac_config_status_args=
11472 test "$silent" = yes &&
11473 ac_config_status_args="$ac_config_status_args --quiet"
11474 exec 5>/dev/null
11475 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11476 exec 5>>config.log
11477 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11478 # would make configure fail if this is the last instruction.
f11781c5 11479 $ac_cs_success || as_fn_exit 1
ad6254c5 11480fi
ec6a6fbe 11481if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11483$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11484fi
795ca3e5 11485
2dc95e1c
AK
11486
11487if test x$ODIRECT != xyes; then
f11781c5 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11489$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11490fi
This page took 1.659896 seconds and 5 git commands to generate.