]> sourceware.org Git - lvm2.git/blame - configure
Use common udev_get_dev_dir() to get current device directory managed by udev.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 443
f11781c5
AK
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
23b059e7 606WRITE_INSTALL
0878503f 607UDEV_SYNC
a5f46f6a 608UDEV_RULES
f7f0854e 609UDEV_PC
db724a44 610UDEV_LIBS
54b362f9 611TESTING
ec6a6fbe
AK
612STATIC_LINK
613STATICDIR
614SNAPSHOTS
f7f0854e 615SELINUX_PC
e1b8a236 616SELINUX_LIBS
539f4a77 617READLINE_LIBS
f30875db 618PTHREAD_LIBS
ec6a6fbe
AK
619POOL
620PKGCONFIG
8fea97b7 621REPLICATORS
606d0858 622OCFDIR
37ddf259 623OCF
ec6a6fbe
AK
624MIRRORS
625LVM_RELEASE_DATE
626LVM_RELEASE
627LVM_PATCHLEVEL
628LVM_MINOR
629LVM_MAJOR
bf456146 630LVM_LIBAPI
ec6a6fbe 631LVM_VERSION
ec6a6fbe
AK
632LVM1_FALLBACK
633LVM1
634LOCALEDIR
635LIB_SUFFIX
636LDDEPS
637JOBS
638INTL_PACKAGE
639INTL
ec6a6fbe
AK
640HAVE_REALTIME
641HAVE_LIBDL
ec6a6fbe
AK
642FSADM
643DM_LIB_PATCHLEVEL
644DM_LIB_VERSION
645DM_IOCTLS
646DM_DEVICE_UID
647DM_DEVICE_MODE
648DM_DEVICE_GID
649DM_COMPAT
d1e8046f 650DMEVENTD_PATH
ec6a6fbe 651DMEVENTD
19a2c6e0 652DL_LIBS
ec6a6fbe 653DEVMAPPER
b1f08e51 654DEFAULT_RUN_DIR
3399ae32 655DEFAULT_LOCK_DIR
fea55602 656DEFAULT_DATA_ALIGNMENT
3399ae32
AK
657DEFAULT_CACHE_SUBDIR
658DEFAULT_BACKUP_SUBDIR
659DEFAULT_ARCHIVE_SUBDIR
660DEFAULT_SYS_DIR
ec6a6fbe
AK
661DEBUG
662COPTIMISE_FLAG
e2997b73 663CONFDIR
ec6a6fbe 664CMDLIB
c89bc357 665CLVMD_CMANAGERS
ec6a6fbe
AK
666CLVMD
667CLUSTER
668CLDWHOLEARCHIVE
669CLDNOWHOLEARCHIVE
670CLDFLAGS
671BUILD_DMEVENTD
66fd4529 672BUILD_CMIRRORD
572fefeb 673APPLIB
ec6a6fbe
AK
674MODPROBE_CMD
675MSGFMT
676LVM2CMD_LIB
572fefeb 677LVM2APP_LIB
54b362f9
AK
678VALGRIND
679RUBY19
fd4728e1 680GENPNG
ec6a6fbe
AK
681GENHTML
682LCOV
90c80887
AK
683SACKPT_LIBS
684SACKPT_CFLAGS
a946372e
AK
685DLM_LIBS
686DLM_CFLAGS
e2997b73
AK
687CPG_LIBS
688CPG_CFLAGS
689CONFDB_LIBS
690CONFDB_CFLAGS
a946372e
AK
691SALCK_LIBS
692SALCK_CFLAGS
e2997b73
AK
693QUORUM_LIBS
694QUORUM_CFLAGS
a946372e
AK
695COROSYNC_LIBS
696COROSYNC_CFLAGS
697CMAN_LIBS
698CMAN_CFLAGS
699GULM_LIBS
700GULM_CFLAGS
701CCS_LIBS
702CCS_CFLAGS
703PKGCONFIGINIT_LIBS
704PKGCONFIGINIT_CFLAGS
f11781c5
AK
705PKG_CONFIG_LIBDIR
706PKG_CONFIG_PATH
e2997b73 707PKG_CONFIG
ec6a6fbe
AK
708POW_LIB
709LIBOBJS
710ALLOCA
711CSCOPE_CMD
712CFLOW_CMD
713RANLIB
714MKDIR_P
715SET_MAKE
716LN_S
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720EGREP
721GREP
722CPP
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730AWK
731SED
732target_os
733target_vendor
734target_cpu
735target
736host_os
737host_vendor
738host_cpu
739host
740build_os
741build_vendor
742build_cpu
743build
744target_alias
745host_alias
746build_alias
747LIBS
748ECHO_T
749ECHO_N
750ECHO_C
751DEFS
752mandir
753localedir
754libdir
755psdir
756pdfdir
757dvidir
758htmldir
759infodir
760docdir
761oldincludedir
762includedir
763localstatedir
764sharedstatedir
765sysconfdir
766datadir
767datarootdir
768libexecdir
769sbindir
770bindir
771program_transform_name
772prefix
773exec_prefix
f11781c5 774PACKAGE_URL
ec6a6fbe
AK
775PACKAGE_BUGREPORT
776PACKAGE_STRING
777PACKAGE_VERSION
778PACKAGE_TARNAME
779PACKAGE_NAME
780PATH_SEPARATOR
781SHELL'
ad6254c5 782ac_subst_files=''
ec6a6fbe
AK
783ac_user_opts='
784enable_option_checking
785enable_static_link
786with_user
787with_group
788with_device_uid
789with_device_gid
790with_device_mode
d0df875d 791with_device_nodes_on
ec6a6fbe
AK
792enable_lvm1_fallback
793with_lvm1
794with_pool
795with_cluster
796with_snapshots
797with_mirrors
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
859CCS_CFLAGS
860CCS_LIBS
861GULM_CFLAGS
862GULM_LIBS
863CMAN_CFLAGS
864CMAN_LIBS
865COROSYNC_CFLAGS
866COROSYNC_LIBS
e2997b73
AK
867QUORUM_CFLAGS
868QUORUM_LIBS
a946372e
AK
869SALCK_CFLAGS
870SALCK_LIBS
e2997b73
AK
871CONFDB_CFLAGS
872CONFDB_LIBS
873CPG_CFLAGS
a946372e
AK
874CPG_LIBS
875DLM_CFLAGS
90c80887
AK
876DLM_LIBS
877SACKPT_CFLAGS
878SACKPT_LIBS'
7a197a62 879
795ca3e5
AK
880
881# Initialize some variables set by options.
ad6254c5
AK
882ac_init_help=
883ac_init_version=false
ec6a6fbe
AK
884ac_unrecognized_opts=
885ac_unrecognized_sep=
795ca3e5
AK
886# The variables have the same names as the options, with
887# dashes changed to underlines.
ad6254c5 888cache_file=/dev/null
795ca3e5 889exec_prefix=NONE
795ca3e5 890no_create=
795ca3e5
AK
891no_recursion=
892prefix=NONE
893program_prefix=NONE
894program_suffix=NONE
895program_transform_name=s,x,x,
896silent=
897site=
898srcdir=
795ca3e5
AK
899verbose=
900x_includes=NONE
901x_libraries=NONE
ad6254c5
AK
902
903# Installation directory options.
904# These are left unexpanded so users can "make install exec_prefix=/foo"
905# and all the variables that are supposed to be based on exec_prefix
906# by default will actually change.
907# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 908# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
909bindir='${exec_prefix}/bin'
910sbindir='${exec_prefix}/sbin'
911libexecdir='${exec_prefix}/libexec'
7a197a62
AK
912datarootdir='${prefix}/share'
913datadir='${datarootdir}'
795ca3e5
AK
914sysconfdir='${prefix}/etc'
915sharedstatedir='${prefix}/com'
916localstatedir='${prefix}/var'
795ca3e5
AK
917includedir='${prefix}/include'
918oldincludedir='/usr/include'
7a197a62
AK
919docdir='${datarootdir}/doc/${PACKAGE}'
920infodir='${datarootdir}/info'
921htmldir='${docdir}'
922dvidir='${docdir}'
923pdfdir='${docdir}'
924psdir='${docdir}'
925libdir='${exec_prefix}/lib'
926localedir='${datarootdir}/locale'
927mandir='${datarootdir}/man'
795ca3e5 928
795ca3e5 929ac_prev=
7a197a62 930ac_dashdash=
795ca3e5
AK
931for ac_option
932do
795ca3e5
AK
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
7a197a62 935 eval $ac_prev=\$ac_option
795ca3e5
AK
936 ac_prev=
937 continue
938 fi
939
7a197a62
AK
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
795ca3e5
AK
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
7a197a62
AK
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
795ca3e5
AK
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 954 bindir=$ac_optarg ;;
795ca3e5
AK
955
956 -build | --build | --buil | --bui | --bu)
ad6254c5 957 ac_prev=build_alias ;;
795ca3e5 958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 959 build_alias=$ac_optarg ;;
795ca3e5
AK
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
795ca3e5 970
7a197a62 971 -datadir | --datadir | --datadi | --datad)
795ca3e5 972 ac_prev=datadir ;;
7a197a62 973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 974 datadir=$ac_optarg ;;
795ca3e5 975
7a197a62
AK
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
795ca3e5 983 -disable-* | --disable-*)
ec6a6fbe 984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 985 # Reject names that are not valid shell variable names.
ec6a6fbe 986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 987 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992"enable_$ac_useropt"
993"*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
7a197a62
AK
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
795ca3e5
AK
1008
1009 -enable-* | --enable-*)
ec6a6fbe 1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1011 # Reject names that are not valid shell variable names.
ec6a6fbe 1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1013 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018"enable_$ac_useropt"
1019"*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
ad6254c5 1032 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
ad6254c5
AK
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
795ca3e5
AK
1044
1045 -host | --host | --hos | --ho)
ad6254c5 1046 ac_prev=host_alias ;;
795ca3e5 1047 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1048 host_alias=$ac_optarg ;;
795ca3e5 1049
7a197a62
AK
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
795ca3e5
AK
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1061 includedir=$ac_optarg ;;
795ca3e5
AK
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1066 infodir=$ac_optarg ;;
795ca3e5
AK
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1071 libdir=$ac_optarg ;;
795ca3e5
AK
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1078 libexecdir=$ac_optarg ;;
795ca3e5 1079
7a197a62
AK
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
795ca3e5 1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1086 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1090 localstatedir=$ac_optarg ;;
795ca3e5
AK
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1095 mandir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1102 | --no-cr | --no-c | -n)
795ca3e5
AK
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1116 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1121 prefix=$ac_optarg ;;
795ca3e5
AK
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1128 program_prefix=$ac_optarg ;;
795ca3e5
AK
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1135 program_suffix=$ac_optarg ;;
795ca3e5
AK
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1152 program_transform_name=$ac_optarg ;;
795ca3e5 1153
7a197a62
AK
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
795ca3e5
AK
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
ad6254c5 1172 sbindir=$ac_optarg ;;
795ca3e5
AK
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
ad6254c5 1183 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
ad6254c5 1188 site=$ac_optarg ;;
795ca3e5
AK
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1193 srcdir=$ac_optarg ;;
795ca3e5
AK
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1200 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1203 ac_prev=target_alias ;;
795ca3e5 1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1205 target_alias=$ac_optarg ;;
795ca3e5
AK
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
ad6254c5
AK
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
795ca3e5
AK
1212
1213 -with-* | --with-*)
ec6a6fbe 1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1215 # Reject names that are not valid shell variable names.
ec6a6fbe 1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1217 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222"with_$ac_useropt"
1223"*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1228
1229 -without-* | --without-*)
ec6a6fbe 1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1231 # Reject names that are not valid shell variable names.
ec6a6fbe 1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1233 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238"with_$ac_useropt"
1239"*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
795ca3e5
AK
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1254 x_includes=$ac_optarg ;;
795ca3e5
AK
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1261 x_libraries=$ac_optarg ;;
795ca3e5 1262
f11781c5
AK
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264Try \`$0 --help' for more information"
795ca3e5
AK
1265 ;;
1266
ad6254c5
AK
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
f11781c5
AK
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
7a197a62 1274 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1275 export $ac_envvar ;;
1276
795ca3e5 1277 *)
ad6254c5 1278 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1283 ;;
1284
1285 esac
1286done
1287
1288if test -n "$ac_prev"; then
ad6254c5 1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1290 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1291fi
795ca3e5 1292
ec6a6fbe
AK
1293if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
f11781c5 1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299fi
1300
1301# Check all directory arguments for consistency.
7a197a62
AK
1302for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
795ca3e5 1306do
7a197a62 1307 eval ac_val=\$$ac_var
ec6a6fbe
AK
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
ad6254c5 1315 case $ac_val in
7a197a62
AK
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1318 esac
f11781c5 1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1320done
1321
ad6254c5
AK
1322# There might be people who depend on the old broken behavior: `$host'
1323# used to hold the argument of --host etc.
1324# FIXME: To remove some day.
1325build=$build_alias
1326host=$host_alias
1327target=$target_alias
1328
1329# FIXME: To remove some day.
1330if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
f11781c5
AK
1333 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338fi
8106cdd5 1339
ad6254c5
AK
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
795ca3e5 1344
795ca3e5 1345
7a197a62
AK
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1349 as_fn_error $? "working directory cannot be determined"
7a197a62 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1351 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1352
1353
795ca3e5
AK
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
7a197a62 1357 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363$as_echo X"$as_myself" |
7a197a62
AK
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
795ca3e5 1381 srcdir=$ac_confdir
7a197a62 1382 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1383 srcdir=..
1384 fi
1385else
1386 ac_srcdir_defaulted=no
1387fi
7a197a62
AK
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1391fi
7a197a62
AK
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
f11781c5 1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1395 pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
1406for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411done
ad6254c5
AK
1412
1413#
1414# Report the --help message.
1415#
1416if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1419 cat <<_ACEOF
1420\`configure' configures this package to adapt to many kinds of systems.
1421
1422Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425VAR=VALUE. See below for descriptions of some of the useful variables.
1426
1427Defaults for the options are specified in brackets.
1428
1429Configuration:
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
f11781c5 1434 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439
ad6254c5
AK
1440Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1442 [$ac_default_prefix]
ad6254c5 1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1444 [PREFIX]
ad6254c5
AK
1445
1446By default, \`make install' will install all the files in
1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449for instance \`--prefix=\$HOME'.
1450
1451For better control, use the options below.
1452
1453Fine tuning of the installation directories:
ec6a6fbe
AK
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1473_ACEOF
1474
1475 cat <<\_ACEOF
1476
1477System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 --target=TARGET configure for building compilers for TARGET [HOST]
1481_ACEOF
1482fi
1483
1484if test -n "$ac_init_help"; then
1485
1486 cat <<\_ACEOF
1487
1488Optional Features:
ec6a6fbe 1489 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1492 --enable-static_link use this to link the tools to their libraries
1493 statically (default is dynamic linking
1494 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1495 device-mapper is missing from the kernel
71082be4
ZK
1496 --disable-readline disable readline support
1497 --enable-realtime enable realtime clock support
37ddf259
AK
1498 --enable-ocf enable Open Cluster Framework (OCF) compliant
1499 resource agents
71082be4
ZK
1500 --enable-cmirrord enable the cluster mirror log daemon
1501 --enable-debug enable debugging
1502 --enable-profiling gather gcov profiling data
54b362f9 1503 --enable-testing enable testing targets in the makefile
d1e8046f 1504 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1505 --disable-devmapper disable LVM2 device-mapper interaction
1506 --enable-udev_sync enable synchronisation with udev processing
1507 --enable-udev_rules install rule files needed for udev synchronisation
1508 --enable-compat enable support for old device-mapper versions
1509 --enable-units-compat enable output compatibility with old versions that
1510 that do not use KiB-style unit suffixes
1511 --disable-driver disable calls to device-mapper in the kernel
1512 --disable-o_direct disable O_DIRECT
1513 --enable-applib build application library
1514 --enable-cmdlib build shared command library
1515 --enable-pkgconfig install pkgconfig support
1516 --enable-write_install install user writable files
1517 --disable-fsadm disable fsadm
1518 --enable-dmeventd enable the device-mapper event daemon
1519 --disable-selinux disable selinux support
1520 --enable-nls enable Native Language Support
ad6254c5
AK
1521
1522Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1525 --with-user=USER set the owner of installed files [[USER=]]
1526 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1527 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1528 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1529 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1530 --with-device-nodes-on=ON
1531 create nodes on resume or create [[ON=resume]]
ad6254c5 1532 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1533 [[TYPE=internal]]
ad6254c5 1534 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1535 [[TYPE=internal]]
71082be4 1536 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1537 [[TYPE=internal]]
71082be4 1538 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1539 [[TYPE=internal]]
71082be4 1540 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1541 [[TYPE=internal]]
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,gulm (RHEL4 or equivalent)
1549 * cman (RHEL5 or equivalent)
1550 * cman,corosync,openais (or selection of them)
1091650a 1551 * singlenode (localhost only)
a946372e
AK
1552 * all (autodetect)
1553 * none (disable build)
71082be4 1554 [TYPE=none]
8c4e8a18 1555 --with-clvmd-pidfile=PATH
f11781c5 1556 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1557 --with-cmirrord-pidfile=PATH
f11781c5
AK
1558 cmirrord pidfile [[/var/run/cmirrord.pid]]
1559 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1560 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1561 --with-confdir=DIR configuration files in DIR [[/etc]]
1562 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1563 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1564 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1565 --with-udev-prefix=UPREFIX
f11781c5
AK
1566 install udev rule files in UPREFIX [[EPREFIX]]
1567 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1568 --with-dmeventd-pidfile=PATH
f11781c5 1569 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1570 --with-dmeventd-path=PATH
f11781c5 1571 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1572 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1573 --with-default-system-dir=DIR
f11781c5 1574 default LVM system directory [[/etc/lvm]]
71082be4 1575 --with-default-archive-subdir=SUBDIR
f11781c5 1576 default metadata archive subdir [[archive]]
71082be4 1577 --with-default-backup-subdir=SUBDIR
f11781c5 1578 default metadata backup subdir [[backup]]
71082be4 1579 --with-default-cache-subdir=SUBDIR
f11781c5 1580 default metadata cache subdir [[cache]]
71082be4 1581 --with-default-locking-dir=DIR
f11781c5 1582 default locking directory [[/var/lock/lvm]]
fea55602 1583 --with-default-data-alignment=NUM
f11781c5
AK
1584 set the default data alignment in MiB [[1]]
1585 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1586
1587Some influential environment variables:
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
25fbec5b 1592 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1593 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1594 you have headers in a nonstandard directory <include dir>
ad6254c5 1595 CPP C preprocessor
e2997b73 1596 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1597 PKG_CONFIG_PATH
1598 directories to add to pkg-config's search path
1599 PKG_CONFIG_LIBDIR
1600 path overriding pkg-config's built-in search path
a946372e
AK
1601 PKGCONFIGINIT_CFLAGS
1602 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1603 PKGCONFIGINIT_LIBS
1604 linker flags for PKGCONFIGINIT, overriding pkg-config
1605 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1606 CCS_LIBS linker flags for CCS, overriding pkg-config
1607 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1608 GULM_LIBS linker flags for GULM, overriding pkg-config
1609 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1610 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1611 COROSYNC_CFLAGS
1612 C compiler flags for COROSYNC, overriding pkg-config
1613 COROSYNC_LIBS
1614 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1615 QUORUM_CFLAGS
1616 C compiler flags for QUORUM, overriding pkg-config
1617 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1618 SALCK_CFLAGS
1619 C compiler flags for SALCK, overriding pkg-config
1620 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1621 CONFDB_CFLAGS
1622 C compiler flags for CONFDB, overriding pkg-config
1623 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1624 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1625 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1626 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1627 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1628 SACKPT_CFLAGS
1629 C compiler flags for SACKPT, overriding pkg-config
1630 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
f11781c5 1635Report bugs to the package provider.
ad6254c5 1636_ACEOF
7a197a62 1637ac_status=$?
ad6254c5
AK
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
ad6254c5 1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
ad6254c5
AK
1646 ac_builddir=.
1647
7a197a62
AK
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
ec6a6fbe 1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1652 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1663
1664case $srcdir in
7a197a62 1665 .) # We are building in place.
ad6254c5 1666 ac_srcdir=.
7a197a62
AK
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1670 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1677esac
7a197a62
AK
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1688 else
ec6a6fbe 1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1692 done
1693fi
1694
7a197a62 1695test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1696if $ac_init_version; then
1697 cat <<\_ACEOF
7a197a62 1698configure
f11781c5 1699generated by GNU Autoconf 2.66
ad6254c5 1700
f11781c5 1701Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1702This configure script is free software; the Free Software Foundation
1703gives unlimited permission to copy, distribute and modify it.
1704_ACEOF
7a197a62 1705 exit
ad6254c5 1706fi
ad6254c5 1707
f11781c5
AK
1708## ------------------------ ##
1709## Autoconf initialization. ##
1710## ------------------------ ##
ad6254c5 1711
f11781c5
AK
1712# ac_fn_c_try_compile LINENO
1713# --------------------------
1714# Try to compile conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_compile ()
ad6254c5 1716{
f11781c5
AK
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1742
f11781c5
AK
1743 ac_retval=1
1744fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 as_fn_set_status $ac_retval
ad6254c5 1747
f11781c5 1748} # ac_fn_c_try_compile
ad6254c5 1749
f11781c5
AK
1750# ac_fn_c_try_cpp LINENO
1751# ----------------------
1752# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_c_try_cpp ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 if { { ac_try="$ac_cpp conftest.$ac_ext"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } >/dev/null && {
1772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 }; then :
1775 ac_retval=0
1776else
1777 $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1779
f11781c5
AK
1780 ac_retval=1
1781fi
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 as_fn_set_status $ac_retval
ad6254c5 1784
f11781c5 1785} # ac_fn_c_try_cpp
d911ec67 1786
f11781c5
AK
1787# ac_fn_c_try_link LINENO
1788# -----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_link ()
d911ec67 1791{
f11781c5
AK
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
d911ec67
AK
1795case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798esac
f11781c5
AK
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
d911ec67 1802 ac_status=$?
f11781c5
AK
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
d911ec67 1817else
f11781c5 1818 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
f11781c5 1821 ac_retval=1
d911ec67 1822fi
f11781c5
AK
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 as_fn_set_status $ac_retval
d911ec67 1830
f11781c5 1831} # ac_fn_c_try_link
d911ec67 1832
f11781c5
AK
1833# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1834# -------------------------------------------------------
1835# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1836# the include files in INCLUDES and setting the cache variable VAR
1837# accordingly.
1838ac_fn_c_check_header_mongrel ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if eval "test \"\${$3+set}\"" = set; then :
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
1844if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1845 $as_echo_n "(cached) " >&6
1846fi
f11781c5
AK
1847eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1849$as_echo "$ac_res" >&6; }
1850else
1851 # Is the header compilable?
f11781c5
AK
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1853$as_echo_n "checking $2 usability... " >&6; }
1854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1855/* end confdefs.h. */
f11781c5
AK
1856$4
1857#include <$2>
d911ec67 1858_ACEOF
f11781c5 1859if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1860 ac_header_compiler=yes
1861else
f11781c5 1862 ac_header_compiler=no
d911ec67 1863fi
d911ec67 1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1866$as_echo "$ac_header_compiler" >&6; }
1867
1868# Is the header present?
f11781c5
AK
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1870$as_echo_n "checking $2 presence... " >&6; }
1871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1872/* end confdefs.h. */
f11781c5 1873#include <$2>
d911ec67 1874_ACEOF
f11781c5 1875if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1876 ac_header_preproc=yes
1877else
d911ec67
AK
1878 ac_header_preproc=no
1879fi
d911ec67 1880rm -f conftest.err conftest.$ac_ext
f11781c5 1881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1882$as_echo "$ac_header_preproc" >&6; }
1883
1884# So? What about this header?
f11781c5 1885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1886 yes:no: )
f11781c5
AK
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1888$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1891 ;;
1892 no:yes:* )
f11781c5
AK
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1894$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1896$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1898$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1900$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1903 ;;
1904esac
f11781c5
AK
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1908 $as_echo_n "(cached) " >&6
1909else
f11781c5 1910 eval "$3=\$ac_header_compiler"
d911ec67 1911fi
f11781c5
AK
1912eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1914$as_echo "$ac_res" >&6; }
ad6254c5 1915fi
f11781c5 1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1917
f11781c5 1918} # ac_fn_c_check_header_mongrel
ad6254c5 1919
f11781c5
AK
1920# ac_fn_c_try_run LINENO
1921# ----------------------
1922# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1923# that executables *can* be run.
1924ac_fn_c_try_run ()
ad6254c5 1925{
f11781c5
AK
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if { { ac_try="$ac_link"
7a197a62
AK
1928case "(($ac_try" in
1929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1931esac
f11781c5
AK
1932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933$as_echo "$ac_try_echo"; } >&5
7a197a62 1934 (eval "$ac_link") 2>&5
ad6254c5 1935 ac_status=$?
f11781c5
AK
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1938 { { case "(($ac_try" in
7a197a62
AK
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941esac
f11781c5
AK
1942eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943$as_echo "$ac_try_echo"; } >&5
7a197a62 1944 (eval "$ac_try") 2>&5
ad6254c5 1945 ac_status=$?
f11781c5
AK
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; }; }; then :
1948 ac_retval=0
ad6254c5 1949else
ec6a6fbe 1950 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1951 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
f11781c5 1954 ac_retval=$ac_status
ad6254c5 1955fi
f11781c5
AK
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 as_fn_set_status $ac_retval
ad6254c5 1959
f11781c5 1960} # ac_fn_c_try_run
ad6254c5 1961
f11781c5
AK
1962# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1963# -------------------------------------------------------
1964# Tests whether HEADER exists and can be compiled using the include files in
1965# INCLUDES, setting the cache variable VAR accordingly.
1966ac_fn_c_check_header_compile ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1972 $as_echo_n "(cached) " >&6
ad6254c5 1973else
f11781c5 1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1975/* end confdefs.h. */
f11781c5
AK
1976$4
1977#include <$2>
ad6254c5 1978_ACEOF
f11781c5
AK
1979if ac_fn_c_try_compile "$LINENO"; then :
1980 eval "$3=yes"
ad6254c5 1981else
f11781c5 1982 eval "$3=no"
ad6254c5 1983fi
7a197a62 1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1985fi
f11781c5
AK
1986eval ac_res=\$$3
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1988$as_echo "$ac_res" >&6; }
f11781c5 1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1990
f11781c5 1991} # ac_fn_c_check_header_compile
ad6254c5 1992
f11781c5
AK
1993# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1994# ----------------------------------------------------
1995# Tries to find if the field MEMBER exists in type AGGR, after including
1996# INCLUDES, setting cache variable VAR accordingly.
1997ac_fn_c_check_member ()
1998{
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2001$as_echo_n "checking for $2.$3... " >&6; }
2002if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2003 $as_echo_n "(cached) " >&6
795ca3e5 2004else
f11781c5
AK
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h. */
2007$5
2008int
2009main ()
2010{
2011static $2 ac_aggr;
2012if (ac_aggr.$3)
2013return 0;
2014 ;
2015 return 0;
2016}
ad6254c5 2017_ACEOF
f11781c5
AK
2018if ac_fn_c_try_compile "$LINENO"; then :
2019 eval "$4=yes"
2020else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2022/* end confdefs.h. */
f11781c5
AK
2023$5
2024int
2025main ()
2026{
2027static $2 ac_aggr;
2028if (sizeof ac_aggr.$3)
2029return 0;
2030 ;
2031 return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$4=yes"
2036else
2037 eval "$4=no"
2038fi
2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043eval ac_res=\$$4
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045$as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047
2048} # ac_fn_c_check_member
795ca3e5 2049
f11781c5
AK
2050# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2051# -------------------------------------------
2052# Tests whether TYPE exists after having included INCLUDES, setting cache
2053# variable VAR accordingly.
2054ac_fn_c_check_type ()
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058$as_echo_n "checking for $2... " >&6; }
2059if eval "test \"\${$3+set}\"" = set; then :
2060 $as_echo_n "(cached) " >&6
2061else
2062 eval "$3=no"
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064/* end confdefs.h. */
2065$4
ad6254c5
AK
2066int
2067main ()
2068{
f11781c5
AK
2069if (sizeof ($2))
2070 return 0;
ad6254c5
AK
2071 ;
2072 return 0;
2073}
2074_ACEOF
f11781c5
AK
2075if ac_fn_c_try_compile "$LINENO"; then :
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077/* end confdefs.h. */
2078$4
2079int
2080main ()
2081{
2082if (sizeof (($2)))
2083 return 0;
2084 ;
2085 return 0;
2086}
2087_ACEOF
2088if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2089
f11781c5
AK
2090else
2091 eval "$3=yes"
795ca3e5 2092fi
f11781c5
AK
2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2096fi
f11781c5
AK
2097eval ac_res=\$$3
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2099$as_echo "$ac_res" >&6; }
f11781c5 2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2101
f11781c5 2102} # ac_fn_c_check_type
ad6254c5 2103
f11781c5
AK
2104# ac_fn_c_find_intX_t LINENO BITS VAR
2105# -----------------------------------
2106# Finds a signed integer type with width BITS, setting cache variable VAR
2107# accordingly.
2108ac_fn_c_find_intX_t ()
2109{
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2112$as_echo_n "checking for int$2_t... " >&6; }
2113if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2114 $as_echo_n "(cached) " >&6
ad6254c5 2115else
f11781c5
AK
2116 eval "$3=no"
2117 # Order is important - never check a type that is potentially smaller
2118 # than half of the expected target width.
2119 for ac_type in int$2_t 'int' 'long int' \
2120 'long long int' 'short int' 'signed char'; do
2121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2122/* end confdefs.h. */
2123$ac_includes_default
f11781c5 2124 enum { N = $2 / 2 - 1 };
7a197a62
AK
2125int
2126main ()
2127{
f11781c5
AK
2128static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2129test_array [0] = 0
7a197a62 2130
f11781c5
AK
2131 ;
2132 return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_compile "$LINENO"; then :
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h. */
2138$ac_includes_default
2139 enum { N = $2 / 2 - 1 };
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2144 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2145test_array [0] = 0
7a197a62
AK
2146
2147 ;
2148 return 0;
2149}
ad6254c5 2150_ACEOF
f11781c5 2151if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2152
f11781c5
AK
2153else
2154 case $ac_type in #(
2155 int$2_t) :
2156 eval "$3=yes" ;; #(
2157 *) :
2158 eval "$3=\$ac_type" ;;
2159esac
ad6254c5 2160fi
f11781c5 2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2162fi
f11781c5
AK
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2165
2166else
f11781c5 2167 break
ad6254c5 2168fi
f11781c5 2169 done
ad6254c5 2170fi
f11781c5
AK
2171eval ac_res=\$$3
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173$as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175
2176} # ac_fn_c_find_intX_t
2177
2178# ac_fn_c_find_uintX_t LINENO BITS VAR
2179# ------------------------------------
2180# Finds an unsigned integer type with width BITS, setting cache variable VAR
2181# accordingly.
2182ac_fn_c_find_uintX_t ()
2183{
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2186$as_echo_n "checking for uint$2_t... " >&6; }
2187if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2188 $as_echo_n "(cached) " >&6
ad6254c5 2189else
f11781c5
AK
2190 eval "$3=no"
2191 # Order is important - never check a type that is potentially smaller
2192 # than half of the expected target width.
2193 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2194 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2196/* end confdefs.h. */
7a197a62 2197$ac_includes_default
ad6254c5
AK
2198int
2199main ()
2200{
f11781c5
AK
2201static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2202test_array [0] = 0
ad6254c5 2203
f11781c5
AK
2204 ;
2205 return 0;
ad6254c5
AK
2206}
2207_ACEOF
f11781c5
AK
2208if ac_fn_c_try_compile "$LINENO"; then :
2209 case $ac_type in #(
2210 uint$2_t) :
2211 eval "$3=yes" ;; #(
2212 *) :
2213 eval "$3=\$ac_type" ;;
7a197a62 2214esac
ad6254c5 2215fi
f11781c5
AK
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2218
f11781c5
AK
2219else
2220 break
ad6254c5 2221fi
f11781c5 2222 done
ad6254c5 2223fi
f11781c5
AK
2224eval ac_res=\$$3
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226$as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2228
f11781c5 2229} # ac_fn_c_find_uintX_t
ad6254c5 2230
f11781c5
AK
2231# ac_fn_c_check_func LINENO FUNC VAR
2232# ----------------------------------
2233# Tests whether FUNC exists, setting the cache variable VAR accordingly
2234ac_fn_c_check_func ()
2235{
2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238$as_echo_n "checking for $2... " >&6; }
2239if eval "test \"\${$3+set}\"" = set; then :
2240 $as_echo_n "(cached) " >&6
ad6254c5 2241else
f11781c5
AK
2242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2243/* end confdefs.h. */
2244/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2246#define $2 innocuous_$2
ad6254c5 2247
f11781c5
AK
2248/* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $2 (); below.
2250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2251 <limits.h> exists even on freestanding compilers. */
ad6254c5 2252
f11781c5
AK
2253#ifdef __STDC__
2254# include <limits.h>
2255#else
2256# include <assert.h>
2257#endif
ad6254c5 2258
f11781c5
AK
2259#undef $2
2260
2261/* Override any GCC internal prototype to avoid an error.
2262 Use char because int might match the return type of a GCC
2263 builtin and then its argument prototype would still apply. */
2264#ifdef __cplusplus
2265extern "C"
2266#endif
2267char $2 ();
2268/* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271#if defined __stub_$2 || defined __stub___$2
2272choke me
2273#endif
ad6254c5 2274
ad6254c5
AK
2275int
2276main ()
2277{
f11781c5 2278return $2 ();
ad6254c5
AK
2279 ;
2280 return 0;
2281}
2282_ACEOF
f11781c5
AK
2283if ac_fn_c_try_link "$LINENO"; then :
2284 eval "$3=yes"
ad6254c5 2285else
f11781c5 2286 eval "$3=no"
ad6254c5 2287fi
f11781c5
AK
2288rm -f core conftest.err conftest.$ac_objext \
2289 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2290fi
f11781c5
AK
2291eval ac_res=\$$3
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293$as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2295
f11781c5
AK
2296} # ac_fn_c_check_func
2297cat >config.log <<_ACEOF
2298This file contains any messages produced by compilers while
2299running configure, to aid debugging if configure makes a mistake.
7a197a62 2300
f11781c5
AK
2301It was created by $as_me, which was
2302generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2303
f11781c5 2304 $ $0 $@
ad6254c5 2305
ad6254c5 2306_ACEOF
f11781c5
AK
2307exec 5>>config.log
2308{
2309cat <<_ASUNAME
2310## --------- ##
2311## Platform. ##
2312## --------- ##
ad6254c5 2313
f11781c5
AK
2314hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2319
f11781c5
AK
2320/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2322
f11781c5
AK
2323/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2324/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2325/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2327/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2328/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2329/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2330
2331_ASUNAME
2332
2333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334for as_dir in $PATH
2335do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 $as_echo "PATH: $as_dir"
2339 done
2340IFS=$as_save_IFS
2341
2342} >&5
2343
2344cat >&5 <<_ACEOF
2345
2346
2347## ----------- ##
2348## Core tests. ##
2349## ----------- ##
ad6254c5 2350
ad6254c5 2351_ACEOF
ad6254c5 2352
7a197a62 2353
f11781c5
AK
2354# Keep a trace of the command line.
2355# Strip out --no-create and --no-recursion so they do not pile up.
2356# Strip out --silent because we don't want to record it for future runs.
2357# Also quote any args containing shell meta-characters.
2358# Make two passes to allow for proper duplicate-argument suppression.
2359ac_configure_args=
2360ac_configure_args0=
2361ac_configure_args1=
2362ac_must_keep_next=false
2363for ac_pass in 1 2
2364do
2365 for ac_arg
2366 do
2367 case $ac_arg in
2368 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2370 | -silent | --silent | --silen | --sile | --sil)
2371 continue ;;
2372 *\'*)
2373 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2374 esac
2375 case $ac_pass in
2376 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2377 2)
2378 as_fn_append ac_configure_args1 " '$ac_arg'"
2379 if test $ac_must_keep_next = true; then
2380 ac_must_keep_next=false # Got value, back to normal.
2381 else
2382 case $ac_arg in
2383 *=* | --config-cache | -C | -disable-* | --disable-* \
2384 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2385 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2386 | -with-* | --with-* | -without-* | --without-* | --x)
2387 case "$ac_configure_args0 " in
2388 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2389 esac
2390 ;;
2391 -* ) ac_must_keep_next=true ;;
2392 esac
2393 fi
2394 as_fn_append ac_configure_args " '$ac_arg'"
2395 ;;
2396 esac
2397 done
2398done
2399{ ac_configure_args0=; unset ac_configure_args0;}
2400{ ac_configure_args1=; unset ac_configure_args1;}
2401
2402# When interrupted or exit'd, cleanup temporary files, and complete
2403# config.log. We remove comments because anyway the quotes in there
2404# would cause problems or look ugly.
2405# WARNING: Use '\'' to represent an apostrophe within the trap.
2406# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407trap 'exit_status=$?
2408 # Save into config.log some information that might help in debugging.
2409 {
2410 echo
2411
2412 $as_echo "## ---------------- ##
2413## Cache variables. ##
2414## ---------------- ##"
2415 echo
2416 # The following way of writing the cache mishandles newlines in values,
2417(
2418 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2419 eval ac_val=\$$ac_var
2420 case $ac_val in #(
2421 *${as_nl}*)
2422 case $ac_var in #(
2423 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2424$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2425 esac
2426 case $ac_var in #(
2427 _ | IFS | as_nl) ;; #(
2428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2429 *) { eval $ac_var=; unset $ac_var;} ;;
2430 esac ;;
2431 esac
2432 done
2433 (set) 2>&1 |
2434 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2435 *${as_nl}ac_space=\ *)
2436 sed -n \
2437 "s/'\''/'\''\\\\'\'''\''/g;
2438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2439 ;; #(
2440 *)
2441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2442 ;;
2443 esac |
2444 sort
2445)
2446 echo
2447
2448 $as_echo "## ----------------- ##
2449## Output variables. ##
2450## ----------------- ##"
2451 echo
2452 for ac_var in $ac_subst_vars
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461
2462 if test -n "$ac_subst_files"; then
2463 $as_echo "## ------------------- ##
2464## File substitutions. ##
2465## ------------------- ##"
2466 echo
2467 for ac_var in $ac_subst_files
2468 do
2469 eval ac_val=\$$ac_var
2470 case $ac_val in
2471 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 esac
2473 $as_echo "$ac_var='\''$ac_val'\''"
2474 done | sort
2475 echo
2476 fi
2477
2478 if test -s confdefs.h; then
2479 $as_echo "## ----------- ##
2480## confdefs.h. ##
2481## ----------- ##"
2482 echo
2483 cat confdefs.h
2484 echo
2485 fi
2486 test "$ac_signal" != 0 &&
2487 $as_echo "$as_me: caught signal $ac_signal"
2488 $as_echo "$as_me: exit $exit_status"
2489 } >&5
2490 rm -f core *.core core.conftest.* &&
2491 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2492 exit $exit_status
2493' 0
2494for ac_signal in 1 2 13 15; do
2495 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2496done
2497ac_signal=0
2498
2499# confdefs.h avoids OS command line length limits that DEFS can exceed.
2500rm -f -r conftest* confdefs.h
7a197a62 2501
f11781c5 2502$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2503
f11781c5 2504# Predefined preprocessor variables.
ad6254c5
AK
2505
2506cat >>confdefs.h <<_ACEOF
f11781c5 2507#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2508_ACEOF
2509
f11781c5
AK
2510cat >>confdefs.h <<_ACEOF
2511#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2512_ACEOF
ad6254c5 2513
f11781c5
AK
2514cat >>confdefs.h <<_ACEOF
2515#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2516_ACEOF
f11781c5
AK
2517
2518cat >>confdefs.h <<_ACEOF
2519#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2520_ACEOF
ad6254c5 2521
f11781c5
AK
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2524_ACEOF
7a197a62 2525
f11781c5
AK
2526cat >>confdefs.h <<_ACEOF
2527#define PACKAGE_URL "$PACKAGE_URL"
2528_ACEOF
ad6254c5 2529
7a197a62 2530
f11781c5
AK
2531# Let the site file select an alternate cache file if it wants to.
2532# Prefer an explicitly selected file to automatically selected ones.
2533ac_site_file1=NONE
2534ac_site_file2=NONE
2535if test -n "$CONFIG_SITE"; then
2536 # We do not want a PATH search for config.site.
2537 case $CONFIG_SITE in #((
2538 -*) ac_site_file1=./$CONFIG_SITE;;
2539 */*) ac_site_file1=$CONFIG_SITE;;
2540 *) ac_site_file1=./$CONFIG_SITE;;
2541 esac
2542elif test "x$prefix" != xNONE; then
2543 ac_site_file1=$prefix/share/config.site
2544 ac_site_file2=$prefix/etc/config.site
ad6254c5 2545else
f11781c5
AK
2546 ac_site_file1=$ac_default_prefix/share/config.site
2547 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2548fi
f11781c5
AK
2549for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2550do
2551 test "x$ac_site_file" = xNONE && continue
2552 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555 sed 's/^/| /' "$ac_site_file" >&5
2556 . "$ac_site_file" \
2557 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559as_fn_error $? "failed to load site script $ac_site_file
2560See \`config.log' for more details" "$LINENO" 5; }
2561 fi
2562done
ad6254c5 2563
f11781c5
AK
2564if test -r "$cache_file"; then
2565 # Some versions of bash will fail to source /dev/null (special files
2566 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2567 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2569$as_echo "$as_me: loading cache $cache_file" >&6;}
2570 case $cache_file in
2571 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2572 *) . "./$cache_file";;
2573 esac
2574 fi
2575else
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2577$as_echo "$as_me: creating cache $cache_file" >&6;}
2578 >$cache_file
ad6254c5 2579fi
ad6254c5 2580
f11781c5
AK
2581as_fn_append ac_header_list " stdlib.h"
2582as_fn_append ac_header_list " unistd.h"
2583as_fn_append ac_header_list " sys/param.h"
2584# Check that the precious variables saved in the cache have kept the same
2585# value.
2586ac_cache_corrupted=false
2587for ac_var in $ac_precious_vars; do
2588 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2589 eval ac_new_set=\$ac_env_${ac_var}_set
2590 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2591 eval ac_new_val=\$ac_env_${ac_var}_value
2592 case $ac_old_set,$ac_new_set in
2593 set,)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2595$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2596 ac_cache_corrupted=: ;;
2597 ,set)
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2599$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2601 ,);;
2602 *)
2603 if test "x$ac_old_val" != "x$ac_new_val"; then
2604 # differences in whitespace do not lead to failure.
2605 ac_old_val_w=`echo x $ac_old_val`
2606 ac_new_val_w=`echo x $ac_new_val`
2607 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2609$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2610 ac_cache_corrupted=:
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2613$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2614 eval $ac_var=\$ac_old_val
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2617$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2619$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2620 fi;;
2621 esac
2622 # Pass precious variables to config.status.
2623 if test "$ac_new_set" = set; then
2624 case $ac_new_val in
2625 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2626 *) ac_arg=$ac_var=$ac_new_val ;;
2627 esac
2628 case " $ac_configure_args " in
2629 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2630 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2631 esac
2632 fi
2633done
2634if $ac_cache_corrupted; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2638$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2639 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2640fi
f11781c5
AK
2641## -------------------- ##
2642## Main body of script. ##
2643## -------------------- ##
ad6254c5 2644
f11781c5
AK
2645ac_ext=c
2646ac_cpp='$CPP $CPPFLAGS'
2647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2650
ad6254c5 2651
ad6254c5 2652
f11781c5 2653ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2654
2655
f11781c5
AK
2656################################################################################
2657ac_aux_dir=
2658for ac_dir in autoconf "$srcdir"/autoconf; do
2659 if test -f "$ac_dir/install-sh"; then
2660 ac_aux_dir=$ac_dir
2661 ac_install_sh="$ac_aux_dir/install-sh -c"
2662 break
2663 elif test -f "$ac_dir/install.sh"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install.sh -c"
2666 break
2667 elif test -f "$ac_dir/shtool"; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/shtool install -c"
2670 break
2671 fi
2672done
2673if test -z "$ac_aux_dir"; then
2674 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2675fi
ad6254c5 2676
f11781c5
AK
2677# These three variables are undocumented and unsupported,
2678# and are intended to be withdrawn in a future Autoconf release.
2679# They can cause serious problems if a builder's source tree is in a directory
2680# whose full name contains unusual characters.
2681ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2682ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2683ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2684
ad6254c5 2685
8a2fc586 2686
f11781c5
AK
2687################################################################################
2688# Make sure we can run config.sub.
2689$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2690 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2691
f11781c5
AK
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2693$as_echo_n "checking build system type... " >&6; }
2694if test "${ac_cv_build+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2696else
2697 ac_build_alias=$build_alias
2698test "x$ac_build_alias" = x &&
2699 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2700test "x$ac_build_alias" = x &&
2701 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2702ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2703 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2704
2705fi
f11781c5
AK
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2707$as_echo "$ac_cv_build" >&6; }
2708case $ac_cv_build in
2709*-*-*) ;;
2710*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2711esac
2712build=$ac_cv_build
2713ac_save_IFS=$IFS; IFS='-'
2714set x $ac_cv_build
2715shift
2716build_cpu=$1
2717build_vendor=$2
2718shift; shift
2719# Remember, the first character of IFS is used to create $*,
2720# except with old shells:
2721build_os=$*
2722IFS=$ac_save_IFS
2723case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2724
2725
f11781c5
AK
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2727$as_echo_n "checking host system type... " >&6; }
2728if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2729 $as_echo_n "(cached) " >&6
ad6254c5 2730else
f11781c5
AK
2731 if test "x$host_alias" = x; then
2732 ac_cv_host=$ac_cv_build
ad6254c5 2733else
f11781c5
AK
2734 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2735 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2736fi
ad6254c5 2737
f11781c5
AK
2738fi
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2740$as_echo "$ac_cv_host" >&6; }
2741case $ac_cv_host in
2742*-*-*) ;;
2743*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2744esac
2745host=$ac_cv_host
2746ac_save_IFS=$IFS; IFS='-'
2747set x $ac_cv_host
2748shift
2749host_cpu=$1
2750host_vendor=$2
2751shift; shift
2752# Remember, the first character of IFS is used to create $*,
2753# except with old shells:
2754host_os=$*
2755IFS=$ac_save_IFS
2756case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2757
ad6254c5 2758
f11781c5
AK
2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2760$as_echo_n "checking target system type... " >&6; }
2761if test "${ac_cv_target+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
ad6254c5 2763else
f11781c5
AK
2764 if test "x$target_alias" = x; then
2765 ac_cv_target=$ac_cv_host
2766else
2767 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2769fi
7a197a62 2770
ad6254c5 2771fi
f11781c5
AK
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2773$as_echo "$ac_cv_target" >&6; }
2774case $ac_cv_target in
2775*-*-*) ;;
2776*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2777esac
f11781c5
AK
2778target=$ac_cv_target
2779ac_save_IFS=$IFS; IFS='-'
2780set x $ac_cv_target
2781shift
2782target_cpu=$1
2783target_vendor=$2
2784shift; shift
2785# Remember, the first character of IFS is used to create $*,
2786# except with old shells:
2787target_os=$*
2788IFS=$ac_save_IFS
2789case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2790
ad6254c5 2791
f11781c5
AK
2792# The aliases save the names the user supplied, while $host etc.
2793# will get canonicalized.
2794test -n "$target_alias" &&
2795 test "$program_prefix$program_suffix$program_transform_name" = \
2796 NONENONEs,x,x, &&
2797 program_prefix=${target_alias}-
ad6254c5 2798
f11781c5
AK
2799case "$host_os" in
2800 linux*)
2801 CFLAGS="$CFLAGS"
2802 COPTIMISE_FLAG="-O2"
2803 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2804 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2805 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2806 LDDEPS="$LDDEPS .export.sym"
2807 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2808 LIB_SUFFIX=so
2809 DEVMAPPER=yes
2810 ODIRECT=yes
2811 DM_IOCTLS=yes
2812 SELINUX=yes
2813 CLUSTER=internal
2814 FSADM=yes
2815 ;;
2816 darwin*)
2817 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2818 COPTIMISE_FLAG="-O2"
2819 CLDFLAGS="$CLDFLAGS"
2820 CLDWHOLEARCHIVE="-all_load"
2821 CLDNOWHOLEARCHIVE=
2822 LIB_SUFFIX=dylib
2823 DEVMAPPER=yes
2824 ODIRECT=no
2825 DM_IOCTLS=no
2826 SELINUX=no
2827 CLUSTER=none
2828 FSADM=no
2829 ;;
2830esac
ad6254c5 2831
f11781c5
AK
2832################################################################################
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2834$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2835if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2836 $as_echo_n "(cached) " >&6
ad6254c5 2837else
f11781c5
AK
2838 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2839 for ac_i in 1 2 3 4 5 6 7; do
2840 ac_script="$ac_script$as_nl$ac_script"
2841 done
2842 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2843 { ac_script=; unset ac_script;}
2844 if test -z "$SED"; then
2845 ac_path_SED_found=false
2846 # Loop through the user's path and test for each of PROGNAME-LIST
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850 IFS=$as_save_IFS
2851 test -z "$as_dir" && as_dir=.
2852 for ac_prog in sed gsed; do
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2855 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2856# Check for GNU ac_path_SED and select it if it is found.
2857 # Check for GNU $ac_path_SED
2858case `"$ac_path_SED" --version 2>&1` in
2859*GNU*)
2860 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2861*)
2862 ac_count=0
2863 $as_echo_n 0123456789 >"conftest.in"
2864 while :
2865 do
2866 cat "conftest.in" "conftest.in" >"conftest.tmp"
2867 mv "conftest.tmp" "conftest.in"
2868 cp "conftest.in" "conftest.nl"
2869 $as_echo '' >> "conftest.nl"
2870 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2871 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2872 as_fn_arith $ac_count + 1 && ac_count=$as_val
2873 if test $ac_count -gt ${ac_path_SED_max-0}; then
2874 # Best one so far, save it but keep looking for a better one
2875 ac_cv_path_SED="$ac_path_SED"
2876 ac_path_SED_max=$ac_count
2877 fi
2878 # 10*(2^10) chars as input seems more than enough
2879 test $ac_count -gt 10 && break
2880 done
2881 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2882esac
ad6254c5 2883
f11781c5
AK
2884 $ac_path_SED_found && break 3
2885 done
2886 done
2887 done
2888IFS=$as_save_IFS
2889 if test -z "$ac_cv_path_SED"; then
2890 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2891 fi
2892else
2893 ac_cv_path_SED=$SED
ad6254c5 2894fi
7a197a62 2895
f11781c5
AK
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2898$as_echo "$ac_cv_path_SED" >&6; }
2899 SED="$ac_cv_path_SED"
2900 rm -f conftest.sed
ad6254c5 2901
f11781c5
AK
2902for ac_prog in gawk mawk nawk awk
2903do
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905set dummy $ac_prog; ac_word=$2
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907$as_echo_n "checking for $ac_word... " >&6; }
2908if test "${ac_cv_prog_AWK+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
ad6254c5 2910else
f11781c5
AK
2911 if test -n "$AWK"; then
2912 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2913else
2914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_AWK="$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925done
2926 done
2927IFS=$as_save_IFS
ad6254c5 2928
ad6254c5 2929fi
ad6254c5 2930fi
f11781c5
AK
2931AWK=$ac_cv_prog_AWK
2932if test -n "$AWK"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934$as_echo "$AWK" >&6; }
2935else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
ad6254c5 2938fi
ad6254c5 2939
ad6254c5 2940
f11781c5 2941 test -n "$AWK" && break
ad6254c5
AK
2942done
2943
f11781c5
AK
2944ac_ext=c
2945ac_cpp='$CPP $CPPFLAGS'
2946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2951set dummy ${ac_tool_prefix}gcc; ac_word=$2
2952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953$as_echo_n "checking for $ac_word... " >&6; }
2954if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2955 $as_echo_n "(cached) " >&6
ad6254c5 2956else
f11781c5
AK
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2959else
f11781c5
AK
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH
2962do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971done
2972 done
2973IFS=$as_save_IFS
ad6254c5 2974
ad6254c5 2975fi
ad6254c5 2976fi
f11781c5
AK
2977CC=$ac_cv_prog_CC
2978if test -n "$CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980$as_echo "$CC" >&6; }
2981else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983$as_echo "no" >&6; }
ad6254c5 2984fi
ad6254c5 2985
f11781c5
AK
2986
2987fi
2988if test -z "$ac_cv_prog_CC"; then
2989 ac_ct_CC=$CC
2990 # Extract the first word of "gcc", so it can be a program name with args.
2991set dummy gcc; ac_word=$2
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993$as_echo_n "checking for $ac_word... " >&6; }
2994if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 2995 $as_echo_n "(cached) " >&6
ad6254c5 2996else
f11781c5
AK
2997 if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 2999else
f11781c5
AK
3000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001for as_dir in $PATH
3002do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_ac_ct_CC="gcc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009 break 2
3010 fi
3011done
3012 done
3013IFS=$as_save_IFS
d911ec67 3014
d911ec67 3015fi
d911ec67 3016fi
f11781c5
AK
3017ac_ct_CC=$ac_cv_prog_ac_ct_CC
3018if test -n "$ac_ct_CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020$as_echo "$ac_ct_CC" >&6; }
3021else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023$as_echo "no" >&6; }
d911ec67 3024fi
d911ec67 3025
f11781c5
AK
3026 if test "x$ac_ct_CC" = x; then
3027 CC=""
3028 else
3029 case $cross_compiling:$ac_tool_warned in
3030yes:)
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033ac_tool_warned=yes ;;
3034esac
3035 CC=$ac_ct_CC
3036 fi
3037else
3038 CC="$ac_cv_prog_CC"
d911ec67 3039fi
d911ec67 3040
f11781c5
AK
3041if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3044set dummy ${ac_tool_prefix}cc; ac_word=$2
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046$as_echo_n "checking for $ac_word... " >&6; }
3047if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3048 $as_echo_n "(cached) " >&6
d911ec67 3049else
f11781c5
AK
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3052else
f11781c5
AK
3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_exec_ext in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_CC="${ac_tool_prefix}cc"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 break 2
3063 fi
3064done
3065 done
3066IFS=$as_save_IFS
d911ec67 3067
f11781c5
AK
3068fi
3069fi
3070CC=$ac_cv_prog_CC
3071if test -n "$CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073$as_echo "$CC" >&6; }
3074else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076$as_echo "no" >&6; }
d911ec67
AK
3077fi
3078
d911ec67 3079
f11781c5
AK
3080 fi
3081fi
3082if test -z "$CC"; then
3083 # Extract the first word of "cc", so it can be a program name with args.
3084set dummy cc; ac_word=$2
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086$as_echo_n "checking for $ac_word... " >&6; }
3087if test "${ac_cv_prog_CC+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
d911ec67 3089else
f11781c5
AK
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
3093 ac_prog_rejected=no
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3102 ac_prog_rejected=yes
3103 continue
3104 fi
3105 ac_cv_prog_CC="cc"
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109done
3110 done
3111IFS=$as_save_IFS
d911ec67 3112
f11781c5
AK
3113if test $ac_prog_rejected = yes; then
3114 # We found a bogon in the path, so make sure we never use it.
3115 set dummy $ac_cv_prog_CC
3116 shift
3117 if test $# != 0; then
3118 # We chose a different compiler from the bogus one.
3119 # However, it has the same basename, so the bogon will be chosen
3120 # first if we set CC to just the basename; use the full file name.
3121 shift
3122 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3123 fi
3124fi
3125fi
3126fi
3127CC=$ac_cv_prog_CC
3128if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130$as_echo "$CC" >&6; }
3131else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133$as_echo "no" >&6; }
d911ec67
AK
3134fi
3135
d911ec67 3136
f11781c5
AK
3137fi
3138if test -z "$CC"; then
3139 if test -n "$ac_tool_prefix"; then
3140 for ac_prog in cl.exe
3141 do
3142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3143set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145$as_echo_n "checking for $ac_word... " >&6; }
3146if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3147 $as_echo_n "(cached) " >&6
3148else
f11781c5
AK
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155 IFS=$as_save_IFS
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161 break 2
3162 fi
3163done
3164 done
3165IFS=$as_save_IFS
d911ec67
AK
3166
3167fi
f11781c5
AK
3168fi
3169CC=$ac_cv_prog_CC
3170if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172$as_echo "$CC" >&6; }
3173else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175$as_echo "no" >&6; }
d911ec67
AK
3176fi
3177
d911ec67 3178
f11781c5
AK
3179 test -n "$CC" && break
3180 done
3181fi
3182if test -z "$CC"; then
3183 ac_ct_CC=$CC
3184 for ac_prog in cl.exe
3185do
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187set dummy $ac_prog; ac_word=$2
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189$as_echo_n "checking for $ac_word... " >&6; }
3190if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3191 $as_echo_n "(cached) " >&6
3192else
f11781c5
AK
3193 if test -n "$ac_ct_CC"; then
3194 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3195else
f11781c5
AK
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_ac_ct_CC="$ac_prog"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3206 fi
3207done
3208 done
3209IFS=$as_save_IFS
ad6254c5 3210
ad6254c5 3211fi
ad6254c5 3212fi
f11781c5
AK
3213ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214if test -n "$ac_ct_CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216$as_echo "$ac_ct_CC" >&6; }
3217else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219$as_echo "no" >&6; }
ad6254c5 3220fi
ad6254c5 3221
d911ec67 3222
f11781c5
AK
3223 test -n "$ac_ct_CC" && break
3224done
d911ec67 3225
f11781c5
AK
3226 if test "x$ac_ct_CC" = x; then
3227 CC=""
3228 else
3229 case $cross_compiling:$ac_tool_warned in
3230yes:)
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233ac_tool_warned=yes ;;
d911ec67 3234esac
f11781c5
AK
3235 CC=$ac_ct_CC
3236 fi
3237fi
ad6254c5
AK
3238
3239fi
d911ec67
AK
3240
3241
f11781c5
AK
3242test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244as_fn_error $? "no acceptable C compiler found in \$PATH
3245See \`config.log' for more details" "$LINENO" 5; }
3246
3247# Provide some information about the compiler.
3248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3249set X $ac_compile
3250ac_compiler=$2
3251for ac_option in --version -v -V -qversion; do
3252 { { ac_try="$ac_compiler $ac_option >&5"
3253case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256esac
3257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258$as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3260 ac_status=$?
3261 if test -s conftest.err; then
3262 sed '10a\
3263... rest of stderr output deleted ...
3264 10q' conftest.err >conftest.er1
3265 cat conftest.er1 >&5
3266 fi
3267 rm -f conftest.er1 conftest.err
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3270done
ad6254c5 3271
f11781c5 3272cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3273/* end confdefs.h. */
f11781c5 3274
ad6254c5
AK
3275int
3276main ()
3277{
f11781c5 3278
ad6254c5
AK
3279 ;
3280 return 0;
3281}
3282_ACEOF
f11781c5
AK
3283ac_clean_files_save=$ac_clean_files
3284ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3285# Try to create an executable without -o first, disregard a.out.
3286# It will help us diagnose broken compilers, and finding out an intuition
3287# of exeext.
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3289$as_echo_n "checking whether the C compiler works... " >&6; }
3290ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3291
3292# The possible output files:
3293ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3294
3295ac_rmfiles=
3296for ac_file in $ac_files
3297do
3298 case $ac_file in
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3300 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3301 esac
3302done
3303rm -f $ac_rmfiles
3304
3305if { { ac_try="$ac_link_default"
7a197a62
AK
3306case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
f11781c5
AK
3310eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311$as_echo "$ac_try_echo"; } >&5
3312 (eval "$ac_link_default") 2>&5
ad6254c5 3313 ac_status=$?
f11781c5
AK
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }; then :
3316 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3317# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3318# in a Makefile. We should not override ac_cv_exeext if it was cached,
3319# so that the user can short-circuit this test for compilers unknown to
3320# Autoconf.
3321for ac_file in $ac_files ''
3322do
3323 test -f "$ac_file" || continue
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3326 ;;
3327 [ab].out )
3328 # We found the default executable, but exeext='' is most
3329 # certainly right.
3330 break;;
3331 *.* )
3332 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3333 then :; else
3334 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 fi
3336 # We set ac_cv_exeext here because the later test for it is not
3337 # safe: cross compilers may not add the suffix if given an `-o'
3338 # argument, so we may need to know it at that point already.
3339 # Even if this section looks crufty: it has the advantage of
3340 # actually working.
3341 break;;
3342 * )
3343 break;;
3344 esac
3345done
3346test "$ac_cv_exeext" = no && ac_cv_exeext=
3347
ad6254c5 3348else
f11781c5
AK
3349 ac_file=''
3350fi
3351if test -z "$ac_file"; then :
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
ec6a6fbe 3354$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
f11781c5
AK
3357{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359as_fn_error 77 "C compiler cannot create executables
3360See \`config.log' for more details" "$LINENO" 5; }
3361else
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3363$as_echo "yes" >&6; }
ad6254c5 3364fi
f11781c5
AK
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3366$as_echo_n "checking for C compiler default output file name... " >&6; }
3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3368$as_echo "$ac_file" >&6; }
3369ac_exeext=$ac_cv_exeext
7a197a62 3370
f11781c5
AK
3371rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3372ac_clean_files=$ac_clean_files_save
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3374$as_echo_n "checking for suffix of executables... " >&6; }
3375if { { ac_try="$ac_link"
3376case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
8a2fc586 3379esac
f11781c5
AK
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; then :
3386 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3387# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3388# work properly (i.e., refer to `conftest.exe'), while it won't with
3389# `rm'.
3390for ac_file in conftest.exe conftest conftest.*; do
3391 test -f "$ac_file" || continue
3392 case $ac_file in
3393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3394 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 break;;
3396 * ) break;;
3397 esac
3398done
3399else
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3403See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3404fi
f11781c5
AK
3405rm -f conftest conftest$ac_cv_exeext
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3407$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3408
f11781c5
AK
3409rm -f conftest.$ac_ext
3410EXEEXT=$ac_cv_exeext
3411ac_exeext=$EXEEXT
3412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3413/* end confdefs.h. */
f11781c5 3414#include <stdio.h>
ad6254c5 3415int
f11781c5 3416main ()
ad6254c5 3417{
f11781c5
AK
3418FILE *f = fopen ("conftest.out", "w");
3419 return ferror (f) || fclose (f) != 0;
ad6254c5 3420
f11781c5 3421 ;
7a197a62 3422 return 0;
ad6254c5 3423}
ad6254c5 3424_ACEOF
f11781c5
AK
3425ac_clean_files="$ac_clean_files conftest.out"
3426# Check that the compiler produces executables we can run. If not, either
3427# the compiler is broken, or we cross compile.
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3429$as_echo_n "checking whether we are cross compiling... " >&6; }
3430if test "$cross_compiling" != yes; then
3431 { { ac_try="$ac_link"
7a197a62
AK
3432case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435esac
f11781c5
AK
3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437$as_echo "$ac_try_echo"; } >&5
7a197a62 3438 (eval "$ac_link") 2>&5
ad6254c5 3439 ac_status=$?
f11781c5
AK
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }
3442 if { ac_try='./conftest$ac_cv_exeext'
3443 { { case "(($ac_try" in
7a197a62
AK
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
f11781c5
AK
3447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
7a197a62 3449 (eval "$ac_try") 2>&5
ad6254c5 3450 ac_status=$?
f11781c5
AK
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; }; then
3453 cross_compiling=no
3454 else
3455 if test "$cross_compiling" = maybe; then
3456 cross_compiling=yes
3457 else
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460as_fn_error $? "cannot run C compiled programs.
3461If you meant to cross compile, use \`--host'.
3462See \`config.log' for more details" "$LINENO" 5; }
3463 fi
3464 fi
3465fi
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3467$as_echo "$cross_compiling" >&6; }
3468
3469rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3470ac_clean_files=$ac_clean_files_save
3471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3472$as_echo_n "checking for suffix of object files... " >&6; }
3473if test "${ac_cv_objext+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475else
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h. */
ad6254c5
AK
3478
3479int
3480main ()
3481{
f11781c5 3482
ad6254c5
AK
3483 ;
3484 return 0;
3485}
3486_ACEOF
f11781c5
AK
3487rm -f conftest.o conftest.obj
3488if { { ac_try="$ac_compile"
7a197a62
AK
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
f11781c5
AK
3493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494$as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_compile") 2>&5
ad6254c5 3496 ac_status=$?
f11781c5
AK
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; then :
3499 for ac_file in conftest.o conftest.obj conftest.*; do
3500 test -f "$ac_file" || continue;
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3503 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3504 break;;
3505 esac
3506done
ad6254c5 3507else
ec6a6fbe 3508 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
f11781c5
AK
3511{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513as_fn_error $? "cannot compute suffix of object files: cannot compile
3514See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3515fi
f11781c5 3516rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3517fi
f11781c5
AK
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3519$as_echo "$ac_cv_objext" >&6; }
3520OBJEXT=$ac_cv_objext
3521ac_objext=$OBJEXT
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3523$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3524if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3525 $as_echo_n "(cached) " >&6
ad6254c5 3526else
f11781c5 3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3528/* end confdefs.h. */
3529
ad6254c5
AK
3530int
3531main ()
3532{
f11781c5
AK
3533#ifndef __GNUC__
3534 choke me
3535#endif
3536
ad6254c5
AK
3537 ;
3538 return 0;
3539}
3540_ACEOF
f11781c5
AK
3541if ac_fn_c_try_compile "$LINENO"; then :
3542 ac_compiler_gnu=yes
ad6254c5 3543else
f11781c5 3544 ac_compiler_gnu=no
ad6254c5 3545fi
f11781c5
AK
3546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3548
d0191583 3549fi
f11781c5
AK
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3551$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3552if test $ac_compiler_gnu = yes; then
3553 GCC=yes
d0191583 3554else
f11781c5 3555 GCC=
d0191583 3556fi
f11781c5
AK
3557ac_test_CFLAGS=${CFLAGS+set}
3558ac_save_CFLAGS=$CFLAGS
3559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3560$as_echo_n "checking whether $CC accepts -g... " >&6; }
3561if test "${ac_cv_prog_cc_g+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
3563else
3564 ac_save_c_werror_flag=$ac_c_werror_flag
3565 ac_c_werror_flag=yes
3566 ac_cv_prog_cc_g=no
3567 CFLAGS="-g"
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569/* end confdefs.h. */
72b2cb61 3570
f11781c5
AK
3571int
3572main ()
3573{
72b2cb61 3574
f11781c5
AK
3575 ;
3576 return 0;
3577}
3578_ACEOF
3579if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_cv_prog_cc_g=yes
3581else
3582 CFLAGS=""
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h. */
ad6254c5 3585
f11781c5
AK
3586int
3587main ()
3588{
ad6254c5 3589
f11781c5
AK
3590 ;
3591 return 0;
3592}
d0191583 3593_ACEOF
f11781c5
AK
3594if ac_fn_c_try_compile "$LINENO"; then :
3595
3596else
3597 ac_c_werror_flag=$ac_save_c_werror_flag
3598 CFLAGS="-g"
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3600/* end confdefs.h. */
7a197a62 3601
f11781c5
AK
3602int
3603main ()
3604{
ad6254c5 3605
f11781c5
AK
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_cv_prog_cc_g=yes
3612fi
3613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614fi
3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616fi
3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3619fi
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3621$as_echo "$ac_cv_prog_cc_g" >&6; }
3622if test "$ac_test_CFLAGS" = set; then
3623 CFLAGS=$ac_save_CFLAGS
3624elif test $ac_cv_prog_cc_g = yes; then
3625 if test "$GCC" = yes; then
3626 CFLAGS="-g -O2"
3627 else
3628 CFLAGS="-g"
3629 fi
3630else
3631 if test "$GCC" = yes; then
3632 CFLAGS="-O2"
3633 else
3634 CFLAGS=
3635 fi
3636fi
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3638$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3639if test "${ac_cv_prog_cc_c89+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3641else
3642 ac_cv_prog_cc_c89=no
3643ac_save_CC=$CC
3644cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645/* end confdefs.h. */
3646#include <stdarg.h>
3647#include <stdio.h>
3648#include <sys/types.h>
3649#include <sys/stat.h>
3650/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651struct buf { int x; };
3652FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653static char *e (p, i)
3654 char **p;
3655 int i;
3656{
3657 return p[i];
3658}
3659static char *f (char * (*g) (char **, int), char **p, ...)
3660{
3661 char *s;
3662 va_list v;
3663 va_start (v,p);
3664 s = g (p, va_arg (v,int));
3665 va_end (v);
3666 return s;
3667}
ad6254c5 3668
f11781c5
AK
3669/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3677
f11781c5
AK
3678/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3680#define FOO(x) 'x'
3681int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3682
f11781c5
AK
3683int test (int i, double x);
3684struct s1 {int (*f) (int a);};
3685struct s2 {int (*f) (double a);};
3686int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3687int argc;
3688char **argv;
d0191583
JM
3689int
3690main ()
3691{
f11781c5 3692return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3693 ;
3694 return 0;
3695}
72b2cb61 3696_ACEOF
f11781c5
AK
3697for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699do
3700 CC="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_prog_cc_c89=$ac_arg
3703fi
3704rm -f core conftest.err conftest.$ac_objext
3705 test "x$ac_cv_prog_cc_c89" != "xno" && break
3706done
3707rm -f conftest.$ac_ext
3708CC=$ac_save_CC
3709
3710fi
3711# AC_CACHE_VAL
3712case "x$ac_cv_prog_cc_c89" in
3713 x)
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715$as_echo "none needed" >&6; } ;;
3716 xno)
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718$as_echo "unsupported" >&6; } ;;
3719 *)
3720 CC="$CC $ac_cv_prog_cc_c89"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3723esac
f11781c5
AK
3724if test "x$ac_cv_prog_cc_c89" != xno; then :
3725
3726fi
3727
3728ac_ext=c
3729ac_cpp='$CPP $CPPFLAGS'
3730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3733
ad6254c5 3734
7a197a62 3735
f11781c5
AK
3736ac_ext=c
3737ac_cpp='$CPP $CPPFLAGS'
3738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3742$as_echo_n "checking how to run the C preprocessor... " >&6; }
3743# On Suns, sometimes $CPP names a directory.
3744if test -n "$CPP" && test -d "$CPP"; then
3745 CPP=
3746fi
3747if test -z "$CPP"; then
3748 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3749 $as_echo_n "(cached) " >&6
ad6254c5 3750else
f11781c5
AK
3751 # Double quotes because CPP needs to be expanded
3752 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3753 do
3754 ac_preproc_ok=false
3755for ac_c_preproc_warn_flag in '' yes
3756do
3757 # Use a header file that comes with gcc, so configuring glibc
3758 # with a fresh cross-compiler works.
3759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760 # <limits.h> exists even on freestanding compilers.
3761 # On the NeXT, cc -E runs the code through the compiler's parser,
3762 # not just through cpp. "Syntax error" is here to catch this case.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3764/* end confdefs.h. */
d0191583
JM
3765#ifdef __STDC__
3766# include <limits.h>
3767#else
3768# include <assert.h>
3769#endif
f11781c5
AK
3770 Syntax error
3771_ACEOF
3772if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3773
f11781c5
AK
3774else
3775 # Broken: fails on valid input.
3776continue
3777fi
3778rm -f conftest.err conftest.$ac_ext
d0191583 3779
f11781c5
AK
3780 # OK, works on sane cases. Now check whether nonexistent headers
3781 # can be detected and how.
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783/* end confdefs.h. */
3784#include <ac_nonexistent.h>
72b2cb61 3785_ACEOF
f11781c5
AK
3786if ac_fn_c_try_cpp "$LINENO"; then :
3787 # Broken: success on invalid input.
3788continue
d0191583 3789else
f11781c5
AK
3790 # Passes both tests.
3791ac_preproc_ok=:
3792break
ad6254c5 3793fi
f11781c5 3794rm -f conftest.err conftest.$ac_ext
ad6254c5 3795
f11781c5
AK
3796done
3797# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3798rm -f conftest.err conftest.$ac_ext
3799if $ac_preproc_ok; then :
3800 break
7a197a62
AK
3801fi
3802
f11781c5
AK
3803 done
3804 ac_cv_prog_CPP=$CPP
ad6254c5 3805
7a197a62 3806fi
f11781c5
AK
3807 CPP=$ac_cv_prog_CPP
3808else
3809 ac_cv_prog_CPP=$CPP
d0191583 3810fi
f11781c5
AK
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3812$as_echo "$CPP" >&6; }
3813ac_preproc_ok=false
3814for ac_c_preproc_warn_flag in '' yes
3815do
3816 # Use a header file that comes with gcc, so configuring glibc
3817 # with a fresh cross-compiler works.
3818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819 # <limits.h> exists even on freestanding compilers.
3820 # On the NeXT, cc -E runs the code through the compiler's parser,
3821 # not just through cpp. "Syntax error" is here to catch this case.
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h. */
3824#ifdef __STDC__
3825# include <limits.h>
3826#else
3827# include <assert.h>
3828#endif
3829 Syntax error
3830_ACEOF
3831if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3832
9c961554 3833else
f11781c5
AK
3834 # Broken: fails on valid input.
3835continue
9c961554 3836fi
f11781c5 3837rm -f conftest.err conftest.$ac_ext
9c961554 3838
f11781c5
AK
3839 # OK, works on sane cases. Now check whether nonexistent headers
3840 # can be detected and how.
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842/* end confdefs.h. */
3843#include <ac_nonexistent.h>
3844_ACEOF
3845if ac_fn_c_try_cpp "$LINENO"; then :
3846 # Broken: success on invalid input.
3847continue
3848else
3849 # Passes both tests.
3850ac_preproc_ok=:
3851break
3852fi
3853rm -f conftest.err conftest.$ac_ext
ad6254c5 3854
f11781c5
AK
3855done
3856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857rm -f conftest.err conftest.$ac_ext
3858if $ac_preproc_ok; then :
d0191583 3859
f11781c5
AK
3860else
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3864See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3865fi
3866
f11781c5
AK
3867ac_ext=c
3868ac_cpp='$CPP $CPPFLAGS'
3869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3872
ad6254c5 3873
f11781c5
AK
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3875$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3876if test "${ac_cv_path_GREP+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3878else
3879 if test -z "$GREP"; then
3880 ac_path_GREP_found=false
3881 # Loop through the user's path and test for each of PROGNAME-LIST
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3884do
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_prog in grep ggrep; do
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3891# Check for GNU ac_path_GREP and select it if it is found.
3892 # Check for GNU $ac_path_GREP
3893case `"$ac_path_GREP" --version 2>&1` in
3894*GNU*)
3895 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3896*)
3897 ac_count=0
3898 $as_echo_n 0123456789 >"conftest.in"
3899 while :
3900 do
3901 cat "conftest.in" "conftest.in" >"conftest.tmp"
3902 mv "conftest.tmp" "conftest.in"
3903 cp "conftest.in" "conftest.nl"
3904 $as_echo 'GREP' >> "conftest.nl"
3905 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3907 as_fn_arith $ac_count + 1 && ac_count=$as_val
3908 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_GREP="$ac_path_GREP"
3911 ac_path_GREP_max=$ac_count
3912 fi
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3915 done
3916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3917esac
ad6254c5 3918
f11781c5
AK
3919 $ac_path_GREP_found && break 3
3920 done
3921 done
3922 done
3923IFS=$as_save_IFS
3924 if test -z "$ac_cv_path_GREP"; then
3925 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3926 fi
3927else
3928 ac_cv_path_GREP=$GREP
7a197a62
AK
3929fi
3930
d0191583 3931fi
f11781c5
AK
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3933$as_echo "$ac_cv_path_GREP" >&6; }
3934 GREP="$ac_cv_path_GREP"
ad6254c5 3935
24bbc4d7 3936
f11781c5
AK
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3938$as_echo_n "checking for egrep... " >&6; }
3939if test "${ac_cv_path_EGREP+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941else
3942 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3943 then ac_cv_path_EGREP="$GREP -E"
3944 else
3945 if test -z "$EGREP"; then
3946 ac_path_EGREP_found=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_prog in egrep; do
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3957# Check for GNU ac_path_EGREP and select it if it is found.
3958 # Check for GNU $ac_path_EGREP
3959case `"$ac_path_EGREP" --version 2>&1` in
3960*GNU*)
3961 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3962*)
3963 ac_count=0
3964 $as_echo_n 0123456789 >"conftest.in"
3965 while :
3966 do
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
3970 $as_echo 'EGREP' >> "conftest.nl"
3971 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3972 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3973 as_fn_arith $ac_count + 1 && ac_count=$as_val
3974 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_EGREP="$ac_path_EGREP"
3977 ac_path_EGREP_max=$ac_count
3978 fi
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3981 done
3982 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3983esac
24bbc4d7 3984
f11781c5
AK
3985 $ac_path_EGREP_found && break 3
3986 done
3987 done
3988 done
3989IFS=$as_save_IFS
3990 if test -z "$ac_cv_path_EGREP"; then
3991 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3992 fi
24bbc4d7 3993else
f11781c5 3994 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
3995fi
3996
f11781c5 3997 fi
24bbc4d7 3998fi
f11781c5
AK
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4000$as_echo "$ac_cv_path_EGREP" >&6; }
4001 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4002
4003
f11781c5
AK
4004if test $ac_cv_c_compiler_gnu = yes; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4006$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4007if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
93bd259b 4009else
f11781c5
AK
4010 ac_pattern="Autoconf.*'x'"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012/* end confdefs.h. */
4013#include <sgtty.h>
4014Autoconf TIOCGETP
4015_ACEOF
4016if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4017 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4018 ac_cv_prog_gcc_traditional=yes
d0191583 4019else
f11781c5 4020 ac_cv_prog_gcc_traditional=no
7a197a62 4021fi
f11781c5 4022rm -f conftest*
7a197a62 4023
72b2cb61 4024
f11781c5
AK
4025 if test $ac_cv_prog_gcc_traditional = no; then
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027/* end confdefs.h. */
4028#include <termio.h>
4029Autoconf TCGETA
72b2cb61 4030_ACEOF
f11781c5
AK
4031if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4033 ac_cv_prog_gcc_traditional=yes
ad6254c5 4034fi
f11781c5 4035rm -f conftest*
ad6254c5 4036
f11781c5 4037 fi
7a197a62 4038fi
f11781c5
AK
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4040$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4041 if test $ac_cv_prog_gcc_traditional = yes; then
4042 CC="$CC -traditional"
4043 fi
ad6254c5
AK
4044fi
4045
f11781c5
AK
4046# Find a good install program. We prefer a C program (faster),
4047# so one script is as good as another. But avoid the broken or
4048# incompatible versions:
4049# SysV /etc/install, /usr/sbin/install
4050# SunOS /usr/etc/install
4051# IRIX /sbin/install
4052# AIX /bin/install
4053# AmigaOS /C/install, which installs bootblocks on floppy discs
4054# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4055# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4056# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4057# OS/2's system install, which has a completely different semantic
4058# ./install, which can be erroneously created by make from ./install.sh.
4059# Reject install programs that cannot install multiple files.
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4061$as_echo_n "checking for a BSD-compatible install... " >&6; }
4062if test -z "$INSTALL"; then
4063if test "${ac_cv_path_install+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
ad6254c5 4065else
f11781c5
AK
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
4071 # Account for people who put trailing slashes in PATH elements.
4072case $as_dir/ in #((
4073 ./ | .// | /[cC]/* | \
4074 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4075 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4076 /usr/ucb/* ) ;;
4077 *)
4078 # OSF1 and SCO ODT 3.0 have their own names for install.
4079 # Don't use installbsd from OSF since it installs stuff as root
4080 # by default.
4081 for ac_prog in ginstall scoinst install; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4084 if test $ac_prog = install &&
4085 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4086 # AIX install. It has an incompatible calling convention.
4087 :
4088 elif test $ac_prog = install &&
4089 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4090 # program-specific install script used by HP pwplus--don't use.
4091 :
4092 else
4093 rm -rf conftest.one conftest.two conftest.dir
4094 echo one > conftest.one
4095 echo two > conftest.two
4096 mkdir conftest.dir
4097 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4098 test -s conftest.one && test -s conftest.two &&
4099 test -s conftest.dir/conftest.one &&
4100 test -s conftest.dir/conftest.two
4101 then
4102 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4103 break 3
4104 fi
4105 fi
4106 fi
4107 done
4108 done
4109 ;;
4110esac
7a197a62 4111
f11781c5
AK
4112 done
4113IFS=$as_save_IFS
d0191583 4114
f11781c5 4115rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4116
4117fi
f11781c5
AK
4118 if test "${ac_cv_path_install+set}" = set; then
4119 INSTALL=$ac_cv_path_install
4120 else
4121 # As a last resort, use the slow shell script. Don't cache a
4122 # value for INSTALL within a source directory, because that will
4123 # break other packages using the cache if that directory is
4124 # removed, or if the value is a relative name.
4125 INSTALL=$ac_install_sh
4126 fi
7a197a62 4127fi
f11781c5
AK
4128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4129$as_echo "$INSTALL" >&6; }
7a197a62 4130
f11781c5
AK
4131# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4132# It thinks the first close brace ends the variable substitution.
4133test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4134
f11781c5 4135test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4136
f11781c5 4137test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4138
f11781c5
AK
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4140$as_echo_n "checking whether ln -s works... " >&6; }
4141LN_S=$as_ln_s
4142if test "$LN_S" = "ln -s"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144$as_echo "yes" >&6; }
4145else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4147$as_echo "no, using $LN_S" >&6; }
15d91f5a 4148fi
ad6254c5 4149
f11781c5
AK
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4151$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4152set x ${MAKE-make}
4153ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4154if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4155 $as_echo_n "(cached) " >&6
d0191583 4156else
f11781c5
AK
4157 cat >conftest.make <<\_ACEOF
4158SHELL = /bin/sh
4159all:
4160 @echo '@@@%%%=$(MAKE)=@@@%%%'
4161_ACEOF
4162# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4163case `${MAKE-make} -f conftest.make 2>/dev/null` in
4164 *@@@%%%=?*=@@@%%%*)
4165 eval ac_cv_prog_make_${ac_make}_set=yes;;
4166 *)
4167 eval ac_cv_prog_make_${ac_make}_set=no;;
4168esac
4169rm -f conftest.make
4170fi
4171if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4173$as_echo "yes" >&6; }
4174 SET_MAKE=
4175else
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177$as_echo "no" >&6; }
4178 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4179fi
4180
f11781c5
AK
4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4182$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4183if test -z "$MKDIR_P"; then
4184 if test "${ac_cv_path_mkdir+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186else
4187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4189do
4190 IFS=$as_save_IFS
4191 test -z "$as_dir" && as_dir=.
4192 for ac_prog in mkdir gmkdir; do
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4195 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4196 'mkdir (GNU coreutils) '* | \
4197 'mkdir (coreutils) '* | \
4198 'mkdir (fileutils) '4.1*)
4199 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4200 break 3;;
4201 esac
4202 done
4203 done
4204 done
4205IFS=$as_save_IFS
d0191583 4206
f11781c5 4207fi
ad6254c5 4208
f11781c5
AK
4209 test -d ./--version && rmdir ./--version
4210 if test "${ac_cv_path_mkdir+set}" = set; then
4211 MKDIR_P="$ac_cv_path_mkdir -p"
4212 else
4213 # As a last resort, use the slow shell script. Don't cache a
4214 # value for MKDIR_P within a source directory, because that will
4215 # break other packages using the cache if that directory is
4216 # removed, or if the value is a relative name.
4217 MKDIR_P="$ac_install_sh -d"
4218 fi
ad6254c5 4219fi
f11781c5
AK
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4221$as_echo "$MKDIR_P" >&6; }
7a197a62 4222
f11781c5
AK
4223if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4225set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227$as_echo_n "checking for $ac_word... " >&6; }
4228if test "${ac_cv_prog_RANLIB+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230else
4231 if test -n "$RANLIB"; then
4232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4233else
4234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245done
4246 done
4247IFS=$as_save_IFS
d0191583 4248
f11781c5
AK
4249fi
4250fi
4251RANLIB=$ac_cv_prog_RANLIB
4252if test -n "$RANLIB"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4254$as_echo "$RANLIB" >&6; }
d0191583 4255else
f11781c5
AK
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257$as_echo "no" >&6; }
ad6254c5 4258fi
ad6254c5 4259
8a2fc586 4260
d0191583 4261fi
f11781c5
AK
4262if test -z "$ac_cv_prog_RANLIB"; then
4263 ac_ct_RANLIB=$RANLIB
4264 # Extract the first word of "ranlib", so it can be a program name with args.
4265set dummy ranlib; ac_word=$2
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4270else
4271 if test -n "$ac_ct_RANLIB"; then
4272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_ac_ct_RANLIB="ranlib"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 break 2
4284 fi
4285done
4286 done
4287IFS=$as_save_IFS
8a2fc586 4288
f11781c5
AK
4289fi
4290fi
4291ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4292if test -n "$ac_ct_RANLIB"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4294$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4295else
f11781c5
AK
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
8fea97b7
ZK
4298fi
4299
f11781c5
AK
4300 if test "x$ac_ct_RANLIB" = x; then
4301 RANLIB=":"
4302 else
4303 case $cross_compiling:$ac_tool_warned in
4304yes:)
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307ac_tool_warned=yes ;;
8fea97b7 4308esac
f11781c5
AK
4309 RANLIB=$ac_ct_RANLIB
4310 fi
d0191583 4311else
f11781c5 4312 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4313fi
8a2fc586 4314
f11781c5
AK
4315# Extract the first word of "cflow", so it can be a program name with args.
4316set dummy cflow; ac_word=$2
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318$as_echo_n "checking for $ac_word... " >&6; }
4319if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4321else
4322 case $CFLOW_CMD in
4323 [\\/]* | ?:[\\/]*)
4324 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4325 ;;
4326 *)
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328for as_dir in $PATH
4329do
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338done
4339 done
4340IFS=$as_save_IFS
8a2fc586 4341
f11781c5
AK
4342 ;;
4343esac
ad6254c5 4344fi
f11781c5
AK
4345CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4346if test -n "$CFLOW_CMD"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4348$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4349else
f11781c5
AK
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351$as_echo "no" >&6; }
37ddf259
AK
4352fi
4353
e2997b73 4354
f11781c5
AK
4355# Extract the first word of "cscope", so it can be a program name with args.
4356set dummy cscope; ac_word=$2
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4358$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4359if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4360 $as_echo_n "(cached) " >&6
4361else
f11781c5 4362 case $CSCOPE_CMD in
e2997b73 4363 [\\/]* | ?:[\\/]*)
f11781c5 4364 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4365 ;;
4366 *)
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
f11781c5 4372 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4374 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4376 break 2
4377 fi
4378done
f11781c5 4379 done
e2997b73
AK
4380IFS=$as_save_IFS
4381
4382 ;;
4383esac
4384fi
f11781c5
AK
4385CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4386if test -n "$CSCOPE_CMD"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4388$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4389else
f11781c5 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4391$as_echo "no" >&6; }
4392fi
f11781c5
AK
4393
4394
4395
4396################################################################################
4397ac_header_dirent=no
4398for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4399 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4401$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4402if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4403 $as_echo_n "(cached) " >&6
4404else
4405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406/* end confdefs.h. */
4407#include <sys/types.h>
4408#include <$ac_hdr>
4409
4410int
4411main ()
4412{
4413if ((DIR *) 0)
4414return 0;
4415 ;
4416 return 0;
4417}
4418_ACEOF
4419if ac_fn_c_try_compile "$LINENO"; then :
4420 eval "$as_ac_Header=yes"
4421else
4422 eval "$as_ac_Header=no"
4423fi
4424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425fi
4426eval ac_res=\$$as_ac_Header
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4428$as_echo "$ac_res" >&6; }
4429if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4430 cat >>confdefs.h <<_ACEOF
4431#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4432_ACEOF
4433
4434ac_header_dirent=$ac_hdr; break
4435fi
4436
4437done
4438# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4439if test $ac_header_dirent = dirent.h; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4441$as_echo_n "checking for library containing opendir... " >&6; }
4442if test "${ac_cv_search_opendir+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444else
4445 ac_func_search_save_LIBS=$LIBS
4446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h. */
4448
4449/* Override any GCC internal prototype to avoid an error.
4450 Use char because int might match the return type of a GCC
4451 builtin and then its argument prototype would still apply. */
4452#ifdef __cplusplus
4453extern "C"
4454#endif
4455char opendir ();
4456int
4457main ()
4458{
4459return opendir ();
4460 ;
4461 return 0;
4462}
4463_ACEOF
4464for ac_lib in '' dir; do
4465 if test -z "$ac_lib"; then
4466 ac_res="none required"
4467 else
4468 ac_res=-l$ac_lib
4469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4470 fi
4471 if ac_fn_c_try_link "$LINENO"; then :
4472 ac_cv_search_opendir=$ac_res
4473fi
4474rm -f core conftest.err conftest.$ac_objext \
4475 conftest$ac_exeext
4476 if test "${ac_cv_search_opendir+set}" = set; then :
4477 break
4478fi
4479done
4480if test "${ac_cv_search_opendir+set}" = set; then :
4481
4482else
4483 ac_cv_search_opendir=no
4484fi
4485rm conftest.$ac_ext
4486LIBS=$ac_func_search_save_LIBS
4487fi
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4489$as_echo "$ac_cv_search_opendir" >&6; }
4490ac_res=$ac_cv_search_opendir
4491if test "$ac_res" != no; then :
4492 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4493
4494fi
f11781c5
AK
4495
4496else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4498$as_echo_n "checking for library containing opendir... " >&6; }
4499if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4500 $as_echo_n "(cached) " >&6
4501else
f11781c5
AK
4502 ac_func_search_save_LIBS=$LIBS
4503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h. */
e2997b73 4505
f11781c5
AK
4506/* Override any GCC internal prototype to avoid an error.
4507 Use char because int might match the return type of a GCC
4508 builtin and then its argument prototype would still apply. */
4509#ifdef __cplusplus
4510extern "C"
4511#endif
4512char opendir ();
4513int
4514main ()
4515{
4516return opendir ();
4517 ;
4518 return 0;
4519}
4520_ACEOF
4521for ac_lib in '' x; do
4522 if test -z "$ac_lib"; then
4523 ac_res="none required"
4524 else
4525 ac_res=-l$ac_lib
4526 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4527 fi
4528 if ac_fn_c_try_link "$LINENO"; then :
4529 ac_cv_search_opendir=$ac_res
e2997b73 4530fi
f11781c5
AK
4531rm -f core conftest.err conftest.$ac_objext \
4532 conftest$ac_exeext
4533 if test "${ac_cv_search_opendir+set}" = set; then :
4534 break
e2997b73 4535fi
f11781c5
AK
4536done
4537if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4538
e2997b73 4539else
f11781c5
AK
4540 ac_cv_search_opendir=no
4541fi
4542rm conftest.$ac_ext
4543LIBS=$ac_func_search_save_LIBS
e2997b73 4544fi
f11781c5
AK
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4546$as_echo "$ac_cv_search_opendir" >&6; }
4547ac_res=$ac_cv_search_opendir
4548if test "$ac_res" != no; then :
4549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4550
4551fi
8c4e8a18 4552
e2997b73
AK
4553fi
4554
f11781c5
AK
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4556$as_echo_n "checking for ANSI C header files... " >&6; }
4557if test "${ac_cv_header_stdc+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559else
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h. */
4562#include <stdlib.h>
4563#include <stdarg.h>
4564#include <string.h>
4565#include <float.h>
e2997b73 4566
f11781c5
AK
4567int
4568main ()
4569{
4570
4571 ;
4572 return 0;
4573}
4574_ACEOF
4575if ac_fn_c_try_compile "$LINENO"; then :
4576 ac_cv_header_stdc=yes
e2997b73 4577else
f11781c5 4578 ac_cv_header_stdc=no
e2997b73 4579fi
f11781c5
AK
4580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581
4582if test $ac_cv_header_stdc = yes; then
4583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586#include <string.h>
4587
4588_ACEOF
4589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590 $EGREP "memchr" >/dev/null 2>&1; then :
4591
e2997b73 4592else
f11781c5 4593 ac_cv_header_stdc=no
e2997b73 4594fi
f11781c5 4595rm -f conftest*
e2997b73 4596
f11781c5 4597fi
e2997b73 4598
f11781c5
AK
4599if test $ac_cv_header_stdc = yes; then
4600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602/* end confdefs.h. */
4603#include <stdlib.h>
e2997b73 4604
f11781c5
AK
4605_ACEOF
4606if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4608
e2997b73 4609else
f11781c5 4610 ac_cv_header_stdc=no
e2997b73 4611fi
f11781c5 4612rm -f conftest*
e2997b73 4613
e2997b73 4614fi
90c80887 4615
f11781c5
AK
4616if test $ac_cv_header_stdc = yes; then
4617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4618 if test "$cross_compiling" = yes; then :
4619 :
4620else
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622/* end confdefs.h. */
4623#include <ctype.h>
4624#include <stdlib.h>
4625#if ((' ' & 0x0FF) == 0x020)
4626# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4627# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4628#else
4629# define ISLOWER(c) \
4630 (('a' <= (c) && (c) <= 'i') \
4631 || ('j' <= (c) && (c) <= 'r') \
4632 || ('s' <= (c) && (c) <= 'z'))
4633# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4634#endif
4635
4636#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4637int
4638main ()
4639{
4640 int i;
4641 for (i = 0; i < 256; i++)
4642 if (XOR (islower (i), ISLOWER (i))
4643 || toupper (i) != TOUPPER (i))
4644 return 2;
4645 return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_run "$LINENO"; then :
90c80887 4649
90c80887 4650else
f11781c5 4651 ac_cv_header_stdc=no
90c80887 4652fi
f11781c5
AK
4653rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4654 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4655fi
90c80887 4656
90c80887 4657fi
90c80887 4658fi
f11781c5
AK
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4660$as_echo "$ac_cv_header_stdc" >&6; }
4661if test $ac_cv_header_stdc = yes; then
90c80887 4662
f11781c5 4663$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4664
90c80887 4665fi
f11781c5
AK
4666
4667# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4668for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4669 inttypes.h stdint.h unistd.h
4670do :
4671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4672ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4673"
4674if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4675 cat >>confdefs.h <<_ACEOF
4676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4677_ACEOF
4678
90c80887 4679fi
f11781c5
AK
4680
4681done
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4685$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4686if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4688else
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h. */
4691#include <sys/types.h>
4692int
4693main ()
4694{
4695return makedev(0, 0);
4696 ;
4697 return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_link "$LINENO"; then :
4701 ac_cv_header_sys_types_h_makedev=yes
4702else
4703 ac_cv_header_sys_types_h_makedev=no
90c80887 4704fi
f11781c5
AK
4705rm -f core conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
4707
90c80887 4708fi
f11781c5
AK
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4710$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4711
4712if test $ac_cv_header_sys_types_h_makedev = no; then
4713ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4714if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4715
4716$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4717
a946372e 4718fi
e2997b73 4719
e2997b73 4720
a946372e 4721
f11781c5
AK
4722 if test $ac_cv_header_sys_mkdev_h = no; then
4723 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4724if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4725
4726$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4727
e2997b73 4728fi
a946372e 4729
a946372e 4730
f11781c5
AK
4731 fi
4732fi
4733
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4735$as_echo_n "checking for ANSI C header files... " >&6; }
4736if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4737 $as_echo_n "(cached) " >&6
4738else
f11781c5 4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4740/* end confdefs.h. */
f11781c5
AK
4741#include <stdlib.h>
4742#include <stdarg.h>
4743#include <string.h>
4744#include <float.h>
a946372e 4745
a946372e
AK
4746int
4747main ()
4748{
f11781c5 4749
a946372e
AK
4750 ;
4751 return 0;
4752}
4753_ACEOF
f11781c5
AK
4754if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_header_stdc=yes
e2997b73 4756else
f11781c5
AK
4757 ac_cv_header_stdc=no
4758fi
4759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4760
4761if test $ac_cv_header_stdc = yes; then
4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
4765#include <string.h>
4766
4767_ACEOF
4768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4770
f11781c5
AK
4771else
4772 ac_cv_header_stdc=no
a946372e 4773fi
f11781c5 4774rm -f conftest*
e2997b73 4775
a946372e 4776fi
e2997b73 4777
f11781c5
AK
4778if test $ac_cv_header_stdc = yes; then
4779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4781/* end confdefs.h. */
4782#include <stdlib.h>
4783
4784_ACEOF
4785if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4786 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4787
e2997b73 4788else
f11781c5 4789 ac_cv_header_stdc=no
e2997b73 4790fi
f11781c5 4791rm -f conftest*
e2997b73 4792
f11781c5 4793fi
a946372e 4794
f11781c5
AK
4795if test $ac_cv_header_stdc = yes; then
4796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4797 if test "$cross_compiling" = yes; then :
4798 :
4799else
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802#include <ctype.h>
4803#include <stdlib.h>
4804#if ((' ' & 0x0FF) == 0x020)
4805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4807#else
4808# define ISLOWER(c) \
4809 (('a' <= (c) && (c) <= 'i') \
4810 || ('j' <= (c) && (c) <= 'r') \
4811 || ('s' <= (c) && (c) <= 'z'))
4812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4813#endif
e2997b73 4814
f11781c5
AK
4815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4816int
4817main ()
4818{
4819 int i;
4820 for (i = 0; i < 256; i++)
4821 if (XOR (islower (i), ISLOWER (i))
4822 || toupper (i) != TOUPPER (i))
4823 return 2;
4824 return 0;
4825}
4826_ACEOF
4827if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4828
e2997b73 4829else
f11781c5 4830 ac_cv_header_stdc=no
e2997b73 4831fi
f11781c5
AK
4832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4833 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4834fi
f11781c5 4835
e2997b73 4836fi
e2997b73 4837fi
f11781c5
AK
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4839$as_echo "$ac_cv_header_stdc" >&6; }
4840if test $ac_cv_header_stdc = yes; then
e2997b73 4841
f11781c5 4842$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4843
f11781c5 4844fi
e2997b73 4845
f11781c5
AK
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4847$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4848if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h. */
4853#include <sys/types.h>
4854#include <sys/wait.h>
4855#ifndef WEXITSTATUS
4856# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4857#endif
4858#ifndef WIFEXITED
4859# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4860#endif
e2997b73 4861
f11781c5
AK
4862int
4863main ()
4864{
4865 int s;
4866 wait (&s);
4867 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4868 ;
4869 return 0;
4870}
4871_ACEOF
4872if ac_fn_c_try_compile "$LINENO"; then :
4873 ac_cv_header_sys_wait_h=yes
e2997b73 4874else
f11781c5 4875 ac_cv_header_sys_wait_h=no
e2997b73 4876fi
f11781c5
AK
4877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878fi
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4880$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4881if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4882
f11781c5 4883$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4884
d0191583 4885fi
f11781c5
AK
4886
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4888$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4889if test "${ac_cv_header_time+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
fc54be10 4891else
f11781c5 4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4893/* end confdefs.h. */
f11781c5
AK
4894#include <sys/types.h>
4895#include <sys/time.h>
4896#include <time.h>
4897
4898int
4899main ()
4900{
4901if ((struct tm *) 0)
4902return 0;
4903 ;
4904 return 0;
4905}
a946372e 4906_ACEOF
f11781c5
AK
4907if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_cv_header_time=yes
a946372e 4909else
f11781c5
AK
4910 ac_cv_header_time=no
4911fi
4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913fi
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4915$as_echo "$ac_cv_header_time" >&6; }
4916if test $ac_cv_header_time = yes; then
4917
4918$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4919
4920fi
4921
4922
4923for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4924 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4925 sys/wait.h time.h
4926do :
4927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4928ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4929if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4930 cat >>confdefs.h <<_ACEOF
4931#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4932_ACEOF
d0191583 4933
f11781c5
AK
4934else
4935 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4936fi
4937
f11781c5 4938done
fddafd51 4939
f11781c5
AK
4940
4941case "$host_os" in
4942 linux*)
4943 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4944do :
4945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4946ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4947if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4948 cat >>confdefs.h <<_ACEOF
4949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4950_ACEOF
a946372e 4951
f11781c5
AK
4952else
4953 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4954fi
4955
f11781c5
AK
4956done
4957 ;;
4958 darwin*)
4959 for ac_header in machine/endian.h sys/disk.h
4960do :
4961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4962ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4963if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4964 cat >>confdefs.h <<_ACEOF
4965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4966_ACEOF
a946372e 4967
f11781c5
AK
4968else
4969 as_fn_error $? "bailing out" "$LINENO" 5
4970fi
a946372e 4971
f11781c5
AK
4972done
4973 ;;
a946372e 4974esac
f11781c5
AK
4975
4976for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4977 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4978 sys/types.h unistd.h
4979do :
4980 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4981ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4982if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4983 cat >>confdefs.h <<_ACEOF
4984#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4985_ACEOF
4986
a946372e 4987else
f11781c5 4988 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4989fi
a946372e 4990
f11781c5
AK
4991done
4992
4993for ac_header in termios.h sys/statvfs.h
4994do :
4995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4997if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
4998 cat >>confdefs.h <<_ACEOF
4999#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5000_ACEOF
5001
a946372e
AK
5002fi
5003
5004done
5005
a946372e 5006
f11781c5
AK
5007################################################################################
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5009$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5010if test "${ac_cv_c_const+set}" = set; then :
a946372e 5011 $as_echo_n "(cached) " >&6
a946372e 5012else
f11781c5 5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5014/* end confdefs.h. */
a946372e 5015
f11781c5
AK
5016int
5017main ()
5018{
5019/* FIXME: Include the comments suggested by Paul. */
5020#ifndef __cplusplus
5021 /* Ultrix mips cc rejects this. */
5022 typedef int charset[2];
5023 const charset cs;
5024 /* SunOS 4.1.1 cc rejects this. */
5025 char const *const *pcpcc;
5026 char **ppc;
5027 /* NEC SVR4.0.2 mips cc rejects this. */
5028 struct point {int x, y;};
5029 static struct point const zero = {0,0};
5030 /* AIX XL C 1.02.0.0 rejects this.
5031 It does not let you subtract one const X* pointer from another in
5032 an arm of an if-expression whose if-part is not a constant
5033 expression */
5034 const char *g = "string";
5035 pcpcc = &g + (g ? g-g : 0);
5036 /* HPUX 7.0 cc rejects these. */
5037 ++pcpcc;
5038 ppc = (char**) pcpcc;
5039 pcpcc = (char const *const *) ppc;
5040 { /* SCO 3.2v4 cc rejects this. */
5041 char *t;
5042 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5043
f11781c5
AK
5044 *t++ = 0;
5045 if (s) return 0;
5046 }
5047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5048 int x[] = {25, 17};
5049 const int *foo = &x[0];
5050 ++foo;
5051 }
5052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5053 typedef const int *iptr;
5054 iptr p = 0;
5055 ++p;
5056 }
5057 { /* AIX XL C 1.02.0.0 rejects this saying
5058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5059 struct s { int j; const int *ap[3]; };
5060 struct s *b; b->j = 5;
5061 }
5062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5063 const int foo = 10;
5064 if (!foo) return 0;
5065 }
5066 return !cs[0] && !zero.x;
5067#endif
a946372e 5068
f11781c5
AK
5069 ;
5070 return 0;
5071}
a946372e 5072_ACEOF
f11781c5
AK
5073if ac_fn_c_try_compile "$LINENO"; then :
5074 ac_cv_c_const=yes
a946372e 5075else
f11781c5
AK
5076 ac_cv_c_const=no
5077fi
5078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5079fi
f11781c5
AK
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5081$as_echo "$ac_cv_c_const" >&6; }
5082if test $ac_cv_c_const = no; then
a946372e 5083
f11781c5 5084$as_echo "#define const /**/" >>confdefs.h
a946372e 5085
f11781c5 5086fi
a946372e 5087
f11781c5
AK
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5089$as_echo_n "checking for inline... " >&6; }
5090if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5091 $as_echo_n "(cached) " >&6
5092else
f11781c5
AK
5093 ac_cv_c_inline=no
5094for ac_kw in inline __inline__ __inline; do
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h. */
5097#ifndef __cplusplus
5098typedef int foo_t;
5099static $ac_kw foo_t static_foo () {return 0; }
5100$ac_kw foo_t foo () {return 0; }
5101#endif
5102
5103_ACEOF
5104if ac_fn_c_try_compile "$LINENO"; then :
5105 ac_cv_c_inline=$ac_kw
a946372e 5106fi
f11781c5
AK
5107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5108 test "$ac_cv_c_inline" != no && break
5109done
a946372e
AK
5110
5111fi
f11781c5
AK
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5113$as_echo "$ac_cv_c_inline" >&6; }
5114
5115case $ac_cv_c_inline in
5116 inline | yes) ;;
5117 *)
5118 case $ac_cv_c_inline in
5119 no) ac_val=;;
5120 *) ac_val=$ac_cv_c_inline;;
5121 esac
5122 cat >>confdefs.h <<_ACEOF
5123#ifndef __cplusplus
5124#define inline $ac_val
5125#endif
5126_ACEOF
5127 ;;
5128esac
5129
5130ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5131if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5132
5133cat >>confdefs.h <<_ACEOF
5134#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5135_ACEOF
5136
f11781c5 5137
a946372e
AK
5138fi
5139
f11781c5
AK
5140ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5141if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5142
a946372e 5143else
f11781c5
AK
5144
5145cat >>confdefs.h <<_ACEOF
5146#define off_t long int
5147_ACEOF
5148
a946372e
AK
5149fi
5150
f11781c5
AK
5151ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5152if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5153
a946372e 5154else
f11781c5
AK
5155
5156cat >>confdefs.h <<_ACEOF
5157#define pid_t int
5158_ACEOF
5159
5160fi
5161
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5163$as_echo_n "checking return type of signal handlers... " >&6; }
5164if test "${ac_cv_type_signal+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
a946372e 5166else
f11781c5
AK
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168/* end confdefs.h. */
5169#include <sys/types.h>
5170#include <signal.h>
5171
5172int
5173main ()
5174{
5175return *(signal (0, 0)) (0) == 1;
5176 ;
5177 return 0;
5178}
5179_ACEOF
5180if ac_fn_c_try_compile "$LINENO"; then :
5181 ac_cv_type_signal=int
5182else
5183 ac_cv_type_signal=void
a946372e 5184fi
f11781c5 5185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5186fi
f11781c5
AK
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5188$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5189
f11781c5
AK
5190cat >>confdefs.h <<_ACEOF
5191#define RETSIGTYPE $ac_cv_type_signal
5192_ACEOF
a946372e
AK
5193
5194
f11781c5
AK
5195ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5196if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5197
a946372e 5198else
a946372e 5199
f11781c5
AK
5200cat >>confdefs.h <<_ACEOF
5201#define size_t unsigned int
5202_ACEOF
a946372e 5203
a946372e 5204fi
f11781c5
AK
5205
5206ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5207if test "x$ac_cv_type_mode_t" = x""yes; then :
5208
a946372e 5209else
f11781c5
AK
5210
5211cat >>confdefs.h <<_ACEOF
5212#define mode_t int
a946372e 5213_ACEOF
a946372e 5214
a946372e
AK
5215fi
5216
f11781c5
AK
5217ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5218case $ac_cv_c_int8_t in #(
5219 no|yes) ;; #(
5220 *)
a946372e 5221
f11781c5
AK
5222cat >>confdefs.h <<_ACEOF
5223#define int8_t $ac_cv_c_int8_t
a946372e 5224_ACEOF
f11781c5 5225;;
a946372e 5226esac
a946372e 5227
f11781c5
AK
5228ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5229case $ac_cv_c_int16_t in #(
5230 no|yes) ;; #(
5231 *)
a946372e 5232
f11781c5
AK
5233cat >>confdefs.h <<_ACEOF
5234#define int16_t $ac_cv_c_int16_t
5235_ACEOF
5236;;
5237esac
a946372e 5238
f11781c5
AK
5239ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5240case $ac_cv_c_int32_t in #(
5241 no|yes) ;; #(
5242 *)
a946372e 5243
f11781c5
AK
5244cat >>confdefs.h <<_ACEOF
5245#define int32_t $ac_cv_c_int32_t
5246_ACEOF
5247;;
a946372e 5248esac
a946372e 5249
f11781c5
AK
5250ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5251case $ac_cv_c_int64_t in #(
5252 no|yes) ;; #(
5253 *)
5254
5255cat >>confdefs.h <<_ACEOF
5256#define int64_t $ac_cv_c_int64_t
a946372e 5257_ACEOF
f11781c5
AK
5258;;
5259esac
5260
5261ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5262if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5263
5264else
a946372e 5265
f11781c5
AK
5266cat >>confdefs.h <<_ACEOF
5267#define ssize_t int
5268_ACEOF
a946372e 5269
f11781c5 5270fi
a946372e 5271
f11781c5
AK
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5273$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5274if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5275 $as_echo_n "(cached) " >&6
a946372e 5276else
f11781c5 5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5278/* end confdefs.h. */
f11781c5
AK
5279#include <sys/types.h>
5280
a946372e 5281_ACEOF
f11781c5
AK
5282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283 $EGREP "uid_t" >/dev/null 2>&1; then :
5284 ac_cv_type_uid_t=yes
a946372e 5285else
f11781c5
AK
5286 ac_cv_type_uid_t=no
5287fi
5288rm -f conftest*
a946372e 5289
a946372e 5290fi
f11781c5
AK
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5292$as_echo "$ac_cv_type_uid_t" >&6; }
5293if test $ac_cv_type_uid_t = no; then
a946372e 5294
f11781c5 5295$as_echo "#define uid_t int" >>confdefs.h
a946372e 5296
f11781c5
AK
5297
5298$as_echo "#define gid_t int" >>confdefs.h
5299
5300fi
5301
5302ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5303case $ac_cv_c_uint8_t in #(
5304 no|yes) ;; #(
5305 *)
5306
5307$as_echo "#define _UINT8_T 1" >>confdefs.h
5308
5309
5310cat >>confdefs.h <<_ACEOF
5311#define uint8_t $ac_cv_c_uint8_t
a946372e 5312_ACEOF
f11781c5
AK
5313;;
5314 esac
5315
5316ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5317case $ac_cv_c_uint16_t in #(
5318 no|yes) ;; #(
5319 *)
5320
5321
5322cat >>confdefs.h <<_ACEOF
5323#define uint16_t $ac_cv_c_uint16_t
a946372e 5324_ACEOF
f11781c5
AK
5325;;
5326 esac
a946372e 5327
f11781c5
AK
5328ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5329case $ac_cv_c_uint32_t in #(
5330 no|yes) ;; #(
5331 *)
a946372e 5332
f11781c5 5333$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5334
a946372e 5335
f11781c5
AK
5336cat >>confdefs.h <<_ACEOF
5337#define uint32_t $ac_cv_c_uint32_t
5338_ACEOF
5339;;
5340 esac
5341
5342ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5343case $ac_cv_c_uint64_t in #(
5344 no|yes) ;; #(
5345 *)
5346
5347$as_echo "#define _UINT64_T 1" >>confdefs.h
5348
5349
5350cat >>confdefs.h <<_ACEOF
5351#define uint64_t $ac_cv_c_uint64_t
5352_ACEOF
5353;;
5354 esac
5355
5356ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5357if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5358
5359cat >>confdefs.h <<_ACEOF
5360#define HAVE_STRUCT_STAT_ST_RDEV 1
5361_ACEOF
5362
5363
5364fi
5365
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5367$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5368if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5369 $as_echo_n "(cached) " >&6
5370else
f11781c5
AK
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h. */
5373#include <sys/types.h>
5374#include <time.h>
5375
5376int
5377main ()
5378{
5379struct tm tm;
5380 int *p = &tm.tm_sec;
5381 return !p;
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"; then :
5387 ac_cv_struct_tm=time.h
5388else
5389 ac_cv_struct_tm=sys/time.h
a946372e 5390fi
f11781c5
AK
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5394$as_echo "$ac_cv_struct_tm" >&6; }
5395if test $ac_cv_struct_tm = sys/time.h; then
5396
5397$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5398
5399fi
f11781c5
AK
5400
5401
5402################################################################################
5403for ac_func in ftruncate gethostname getpagesize \
5404 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5405 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5406 strstr strtol strtoul uname
5407do :
5408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5409ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5410if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5411 cat >>confdefs.h <<_ACEOF
f11781c5 5412#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5413_ACEOF
5414
5415else
f11781c5 5416 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5417fi
a946372e
AK
5418done
5419
f11781c5
AK
5420for ac_func in siginterrupt
5421do :
5422 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5423if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5424 cat >>confdefs.h <<_ACEOF
5425#define HAVE_SIGINTERRUPT 1
5426_ACEOF
a946372e 5427
f11781c5
AK
5428fi
5429done
a946372e 5430
f11781c5
AK
5431# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5432# for constant arguments. Useless!
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5434$as_echo_n "checking for working alloca.h... " >&6; }
5435if test "${ac_cv_working_alloca_h+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
a946372e 5437else
f11781c5
AK
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h. */
5440#include <alloca.h>
5441int
5442main ()
5443{
5444char *p = (char *) alloca (2 * sizeof (int));
5445 if (p) return 0;
5446 ;
5447 return 0;
5448}
5449_ACEOF
5450if ac_fn_c_try_link "$LINENO"; then :
5451 ac_cv_working_alloca_h=yes
a946372e 5452else
f11781c5 5453 ac_cv_working_alloca_h=no
a946372e 5454fi
f11781c5
AK
5455rm -f core conftest.err conftest.$ac_objext \
5456 conftest$ac_exeext conftest.$ac_ext
a946372e 5457fi
f11781c5
AK
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5459$as_echo "$ac_cv_working_alloca_h" >&6; }
5460if test $ac_cv_working_alloca_h = yes; then
a946372e 5461
f11781c5 5462$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5463
a946372e 5464fi
a946372e 5465
f11781c5
AK
5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5467$as_echo_n "checking for alloca... " >&6; }
5468if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5469 $as_echo_n "(cached) " >&6
a946372e 5470else
f11781c5 5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5472/* end confdefs.h. */
f11781c5
AK
5473#ifdef __GNUC__
5474# define alloca __builtin_alloca
5475#else
5476# ifdef _MSC_VER
5477# include <malloc.h>
5478# define alloca _alloca
5479# else
5480# ifdef HAVE_ALLOCA_H
5481# include <alloca.h>
5482# else
5483# ifdef _AIX
5484 #pragma alloca
5485# else
5486# ifndef alloca /* predefined by HP cc +Olibcalls */
5487char *alloca ();
5488# endif
5489# endif
5490# endif
5491# endif
5492#endif
a946372e 5493
f11781c5
AK
5494int
5495main ()
5496{
5497char *p = (char *) alloca (1);
5498 if (p) return 0;
5499 ;
5500 return 0;
5501}
a946372e 5502_ACEOF
f11781c5
AK
5503if ac_fn_c_try_link "$LINENO"; then :
5504 ac_cv_func_alloca_works=yes
a946372e 5505else
f11781c5 5506 ac_cv_func_alloca_works=no
a946372e 5507fi
f11781c5
AK
5508rm -f core conftest.err conftest.$ac_objext \
5509 conftest$ac_exeext conftest.$ac_ext
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5512$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5513
f11781c5 5514if test $ac_cv_func_alloca_works = yes; then
a946372e 5515
f11781c5 5516$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5517
a946372e 5518else
f11781c5
AK
5519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5520# that cause trouble. Some versions do not even contain alloca or
5521# contain a buggy version. If you still want to use their alloca,
5522# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5523
f11781c5 5524ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5525
f11781c5 5526$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5527
a946372e 5528
f11781c5
AK
5529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5530$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5531if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5532 $as_echo_n "(cached) " >&6
a946372e 5533else
f11781c5 5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5535/* end confdefs.h. */
f11781c5
AK
5536#if defined CRAY && ! defined CRAY2
5537webecray
5538#else
5539wenotbecray
5540#endif
5541
a946372e 5542_ACEOF
f11781c5
AK
5543if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5544 $EGREP "webecray" >/dev/null 2>&1; then :
5545 ac_cv_os_cray=yes
a946372e 5546else
f11781c5 5547 ac_cv_os_cray=no
a946372e 5548fi
f11781c5 5549rm -f conftest*
a946372e 5550
f11781c5
AK
5551fi
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5553$as_echo "$ac_cv_os_cray" >&6; }
5554if test $ac_cv_os_cray = yes; then
5555 for ac_func in _getb67 GETB67 getb67; do
5556 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5557ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5558if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5559
f11781c5
AK
5560cat >>confdefs.h <<_ACEOF
5561#define CRAY_STACKSEG_END $ac_func
a946372e 5562_ACEOF
a946372e 5563
f11781c5 5564 break
a946372e
AK
5565fi
5566
f11781c5
AK
5567 done
5568fi
a946372e 5569
f11781c5
AK
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5571$as_echo_n "checking stack direction for C alloca... " >&6; }
5572if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5573 $as_echo_n "(cached) " >&6
5574else
f11781c5
AK
5575 if test "$cross_compiling" = yes; then :
5576 ac_cv_c_stack_direction=0
5577else
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579/* end confdefs.h. */
5580$ac_includes_default
5581int
5582find_stack_direction ()
5583{
5584 static char *addr = 0;
5585 auto char dummy;
5586 if (addr == 0)
5587 {
5588 addr = &dummy;
5589 return find_stack_direction ();
5590 }
5591 else
5592 return (&dummy > addr) ? 1 : -1;
5593}
5594
5595int
5596main ()
5597{
5598 return find_stack_direction () < 0;
5599}
5600_ACEOF
5601if ac_fn_c_try_run "$LINENO"; then :
5602 ac_cv_c_stack_direction=1
5603else
5604 ac_cv_c_stack_direction=-1
5605fi
5606rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5607 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5608fi
a946372e
AK
5609
5610fi
f11781c5
AK
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5612$as_echo "$ac_cv_c_stack_direction" >&6; }
5613cat >>confdefs.h <<_ACEOF
5614#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5615_ACEOF
5616
f11781c5 5617
a946372e
AK
5618fi
5619
f11781c5
AK
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5621$as_echo_n "checking whether closedir returns void... " >&6; }
5622if test "${ac_cv_func_closedir_void+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624else
5625 if test "$cross_compiling" = yes; then :
5626 ac_cv_func_closedir_void=yes
5627else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629/* end confdefs.h. */
5630$ac_includes_default
5631#include <$ac_header_dirent>
5632#ifndef __cplusplus
5633int closedir ();
5634#endif
a946372e 5635
f11781c5
AK
5636int
5637main ()
5638{
5639return closedir (opendir (".")) != 0;
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644if ac_fn_c_try_run "$LINENO"; then :
5645 ac_cv_func_closedir_void=no
a946372e 5646else
f11781c5 5647 ac_cv_func_closedir_void=yes
a946372e 5648fi
f11781c5
AK
5649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5650 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5651fi
5652
f11781c5
AK
5653fi
5654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5655$as_echo "$ac_cv_func_closedir_void" >&6; }
5656if test $ac_cv_func_closedir_void = yes; then
a946372e 5657
f11781c5 5658$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5659
a946372e
AK
5660fi
5661
f11781c5
AK
5662for ac_header in unistd.h
5663do :
5664 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5665if test "x$ac_cv_header_unistd_h" = x""yes; then :
5666 cat >>confdefs.h <<_ACEOF
5667#define HAVE_UNISTD_H 1
5668_ACEOF
a946372e 5669
f11781c5 5670fi
a946372e 5671
f11781c5 5672done
a946372e 5673
f11781c5
AK
5674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5675$as_echo_n "checking for working chown... " >&6; }
5676if test "${ac_cv_func_chown_works+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
a946372e 5678else
f11781c5
AK
5679 if test "$cross_compiling" = yes; then :
5680 ac_cv_func_chown_works=no
a946372e 5681else
f11781c5
AK
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h. */
5684$ac_includes_default
5685#include <fcntl.h>
a946372e 5686
f11781c5
AK
5687int
5688main ()
5689{
5690 char *f = "conftest.chown";
5691 struct stat before, after;
a946372e 5692
f11781c5
AK
5693 if (creat (f, 0600) < 0)
5694 return 1;
5695 if (stat (f, &before) < 0)
5696 return 1;
5697 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5698 return 1;
5699 if (stat (f, &after) < 0)
5700 return 1;
5701 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5702
f11781c5
AK
5703 ;
5704 return 0;
5705}
5706_ACEOF
5707if ac_fn_c_try_run "$LINENO"; then :
5708 ac_cv_func_chown_works=yes
a946372e 5709else
f11781c5 5710 ac_cv_func_chown_works=no
a946372e 5711fi
f11781c5
AK
5712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5713 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5714fi
5715
f11781c5 5716rm -f conftest.chown
a946372e 5717
f11781c5
AK
5718fi
5719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5720$as_echo "$ac_cv_func_chown_works" >&6; }
5721if test $ac_cv_func_chown_works = yes; then
a946372e 5722
f11781c5 5723$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5724
a946372e 5725fi
a946372e 5726
f11781c5
AK
5727for ac_header in vfork.h
5728do :
5729 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5730if test "x$ac_cv_header_vfork_h" = x""yes; then :
5731 cat >>confdefs.h <<_ACEOF
5732#define HAVE_VFORK_H 1
5733_ACEOF
a946372e 5734
f11781c5 5735fi
a946372e 5736
f11781c5 5737done
a946372e 5738
f11781c5
AK
5739for ac_func in fork vfork
5740do :
5741 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5742ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5743if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5744 cat >>confdefs.h <<_ACEOF
5745#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5746_ACEOF
a946372e 5747
f11781c5
AK
5748fi
5749done
a946372e 5750
f11781c5
AK
5751if test "x$ac_cv_func_fork" = xyes; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5753$as_echo_n "checking for working fork... " >&6; }
5754if test "${ac_cv_func_fork_works+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756else
5757 if test "$cross_compiling" = yes; then :
5758 ac_cv_func_fork_works=cross
5759else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h. */
5762$ac_includes_default
5763int
5764main ()
5765{
a946372e 5766
f11781c5
AK
5767 /* By Ruediger Kuhlmann. */
5768 return fork () < 0;
a946372e 5769
f11781c5
AK
5770 ;
5771 return 0;
5772}
5773_ACEOF
5774if ac_fn_c_try_run "$LINENO"; then :
5775 ac_cv_func_fork_works=yes
a946372e 5776else
f11781c5
AK
5777 ac_cv_func_fork_works=no
5778fi
5779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5780 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5781fi
a946372e 5782
f11781c5
AK
5783fi
5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5785$as_echo "$ac_cv_func_fork_works" >&6; }
5786
a946372e 5787else
f11781c5 5788 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5789fi
f11781c5
AK
5790if test "x$ac_cv_func_fork_works" = xcross; then
5791 case $host in
5792 *-*-amigaos* | *-*-msdosdjgpp*)
5793 # Override, as these systems have only a dummy fork() stub
5794 ac_cv_func_fork_works=no
5795 ;;
5796 *)
5797 ac_cv_func_fork_works=yes
5798 ;;
5799 esac
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5801$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5802fi
f11781c5
AK
5803ac_cv_func_vfork_works=$ac_cv_func_vfork
5804if test "x$ac_cv_func_vfork" = xyes; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5806$as_echo_n "checking for working vfork... " >&6; }
5807if test "${ac_cv_func_vfork_works+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5809else
5810 if test "$cross_compiling" = yes; then :
5811 ac_cv_func_vfork_works=cross
5812else
5813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h. */
5815/* Thanks to Paul Eggert for this test. */
5816$ac_includes_default
5817#include <sys/wait.h>
5818#ifdef HAVE_VFORK_H
5819# include <vfork.h>
5820#endif
5821/* On some sparc systems, changes by the child to local and incoming
5822 argument registers are propagated back to the parent. The compiler
5823 is told about this with #include <vfork.h>, but some compilers
5824 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5825 static variable whose address is put into a register that is
5826 clobbered by the vfork. */
5827static void
5828#ifdef __cplusplus
5829sparc_address_test (int arg)
5830# else
5831sparc_address_test (arg) int arg;
5832#endif
5833{
5834 static pid_t child;
5835 if (!child) {
5836 child = vfork ();
5837 if (child < 0) {
5838 perror ("vfork");
5839 _exit(2);
5840 }
5841 if (!child) {
5842 arg = getpid();
5843 write(-1, "", 0);
5844 _exit (arg);
5845 }
5846 }
5847}
a946372e 5848
f11781c5
AK
5849int
5850main ()
5851{
5852 pid_t parent = getpid ();
5853 pid_t child;
a946372e 5854
f11781c5 5855 sparc_address_test (0);
a946372e 5856
f11781c5 5857 child = vfork ();
a946372e 5858
f11781c5
AK
5859 if (child == 0) {
5860 /* Here is another test for sparc vfork register problems. This
5861 test uses lots of local variables, at least as many local
5862 variables as main has allocated so far including compiler
5863 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5864 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5865 reuse the register of parent for one of the local variables,
5866 since it will think that parent can't possibly be used any more
5867 in this routine. Assigning to the local variable will thus
5868 munge parent in the parent process. */
5869 pid_t
5870 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5871 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5872 /* Convince the compiler that p..p7 are live; otherwise, it might
5873 use the same hardware register for all 8 local variables. */
5874 if (p != p1 || p != p2 || p != p3 || p != p4
5875 || p != p5 || p != p6 || p != p7)
5876 _exit(1);
a946372e 5877
f11781c5
AK
5878 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5879 from child file descriptors. If the child closes a descriptor
5880 before it execs or exits, this munges the parent's descriptor
5881 as well. Test for this by closing stdout in the child. */
5882 _exit(close(fileno(stdout)) != 0);
5883 } else {
5884 int status;
5885 struct stat st;
5886
5887 while (wait(&status) != child)
5888 ;
5889 return (
5890 /* Was there some problem with vforking? */
5891 child < 0
5892
5893 /* Did the child fail? (This shouldn't happen.) */
5894 || status
5895
5896 /* Did the vfork/compiler bug occur? */
5897 || parent != getpid()
5898
5899 /* Did the file descriptor bug occur? */
5900 || fstat(fileno(stdout), &st) != 0
5901 );
5902 }
5903}
5904_ACEOF
5905if ac_fn_c_try_run "$LINENO"; then :
5906 ac_cv_func_vfork_works=yes
a946372e 5907else
f11781c5 5908 ac_cv_func_vfork_works=no
a946372e 5909fi
f11781c5
AK
5910rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5911 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5912fi
f11781c5 5913
a946372e 5914fi
f11781c5
AK
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5916$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5917
f11781c5
AK
5918fi;
5919if test "x$ac_cv_func_fork_works" = xcross; then
5920 ac_cv_func_vfork_works=$ac_cv_func_vfork
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5922$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5923fi
a946372e 5924
f11781c5 5925if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5926
f11781c5 5927$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5928
a946372e 5929else
a946372e 5930
f11781c5
AK
5931$as_echo "#define vfork fork" >>confdefs.h
5932
a946372e 5933fi
f11781c5 5934if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5935
f11781c5 5936$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5937
a946372e 5938fi
f11781c5
AK
5939
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5941$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5942if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
a946372e 5944else
f11781c5
AK
5945 rm -f conftest.sym conftest.file
5946echo >conftest.file
5947if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5948 if test "$cross_compiling" = yes; then :
5949 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5950else
f11781c5 5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5952/* end confdefs.h. */
f11781c5
AK
5953$ac_includes_default
5954int
5955main ()
5956{
5957struct stat sbuf;
5958 /* Linux will dereference the symlink and fail, as required by POSIX.
5959 That is better in the sense that it means we will not
5960 have to compile and use the lstat wrapper. */
5961 return lstat ("conftest.sym/", &sbuf) == 0;
5962 ;
5963 return 0;
5964}
a946372e 5965_ACEOF
f11781c5
AK
5966if ac_fn_c_try_run "$LINENO"; then :
5967 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5968else
f11781c5 5969 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5970fi
f11781c5
AK
5971rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5972 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5973fi
a946372e 5974
a946372e 5975else
f11781c5
AK
5976 # If the `ln -s' command failed, then we probably don't even
5977 # have an lstat function.
5978 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5979fi
f11781c5 5980rm -f conftest.sym conftest.file
a946372e 5981
f11781c5
AK
5982fi
5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5984$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5985
f11781c5 5986test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5987
f11781c5
AK
5988cat >>confdefs.h <<_ACEOF
5989#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5990_ACEOF
a946372e 5991
a946372e 5992
f11781c5
AK
5993if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5994 case " $LIBOBJS " in
5995 *" lstat.$ac_objext "* ) ;;
5996 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5997 ;;
5998esac
a946372e 5999
f11781c5 6000fi
a946372e 6001
f11781c5
AK
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6003$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6004if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
a946372e 6006else
f11781c5
AK
6007 if test "$cross_compiling" = yes; then :
6008 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6009else
f11781c5
AK
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011/* end confdefs.h. */
6012$ac_includes_default
6013int
6014main ()
6015{
6016struct stat sbuf;
6017 return lstat ("", &sbuf) == 0;
6018 ;
6019 return 0;
6020}
6021_ACEOF
6022if ac_fn_c_try_run "$LINENO"; then :
6023 ac_cv_func_lstat_empty_string_bug=no
6024else
6025 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6026fi
f11781c5
AK
6027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6028 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6029fi
6030
f11781c5
AK
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6033$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6034if test $ac_cv_func_lstat_empty_string_bug = yes; then
6035 case " $LIBOBJS " in
6036 *" lstat.$ac_objext "* ) ;;
6037 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6038 ;;
6039esac
a946372e
AK
6040
6041
f11781c5
AK
6042cat >>confdefs.h <<_ACEOF
6043#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6044_ACEOF
a946372e 6045
a946372e 6046fi
a946372e 6047
f11781c5
AK
6048for ac_header in stdlib.h
6049do :
6050 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6051if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6052 cat >>confdefs.h <<_ACEOF
6053#define HAVE_STDLIB_H 1
6054_ACEOF
6055
a946372e
AK
6056fi
6057
f11781c5 6058done
a946372e 6059
f11781c5
AK
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6061$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6062if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6064else
6065 if test "$cross_compiling" = yes; then :
6066 ac_cv_func_malloc_0_nonnull=no
6067else
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069/* end confdefs.h. */
6070#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6071# include <stdlib.h>
6072#else
6073char *malloc ();
6074#endif
a946372e 6075
f11781c5
AK
6076int
6077main ()
6078{
6079return ! malloc (0);
6080 ;
6081 return 0;
6082}
6083_ACEOF
6084if ac_fn_c_try_run "$LINENO"; then :
6085 ac_cv_func_malloc_0_nonnull=yes
a946372e 6086else
f11781c5 6087 ac_cv_func_malloc_0_nonnull=no
a946372e 6088fi
f11781c5
AK
6089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6090 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6091fi
f11781c5 6092
a946372e 6093fi
f11781c5
AK
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6095$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6096if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6097
f11781c5 6098$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6099
f11781c5
AK
6100else
6101 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6102
f11781c5
AK
6103 case " $LIBOBJS " in
6104 *" malloc.$ac_objext "* ) ;;
6105 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6106 ;;
6107esac
6108
6109
6110$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6111
a946372e 6112fi
a946372e 6113
a946372e 6114
f11781c5
AK
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6116$as_echo_n "checking for working memcmp... " >&6; }
6117if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6118 $as_echo_n "(cached) " >&6
a946372e 6119else
f11781c5
AK
6120 if test "$cross_compiling" = yes; then :
6121 ac_cv_func_memcmp_working=no
6122else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6124/* end confdefs.h. */
6125$ac_includes_default
f11781c5
AK
6126int
6127main ()
6128{
a946372e 6129
f11781c5
AK
6130 /* Some versions of memcmp are not 8-bit clean. */
6131 char c0 = '\100', c1 = '\200', c2 = '\201';
6132 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6133 return 1;
a946372e 6134
f11781c5
AK
6135 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6136 or more and with at least one buffer not starting on a 4-byte boundary.
6137 William Lewis provided this test program. */
6138 {
6139 char foo[21];
6140 char bar[21];
6141 int i;
6142 for (i = 0; i < 4; i++)
6143 {
6144 char *a = foo + i;
6145 char *b = bar + i;
6146 strcpy (a, "--------01111111");
6147 strcpy (b, "--------10000000");
6148 if (memcmp (a, b, 16) >= 0)
6149 return 1;
6150 }
6151 return 0;
6152 }
a946372e 6153
f11781c5
AK
6154 ;
6155 return 0;
6156}
a946372e 6157_ACEOF
f11781c5
AK
6158if ac_fn_c_try_run "$LINENO"; then :
6159 ac_cv_func_memcmp_working=yes
a946372e 6160else
f11781c5
AK
6161 ac_cv_func_memcmp_working=no
6162fi
6163rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6164 conftest.$ac_objext conftest.beam conftest.$ac_ext
6165fi
a946372e 6166
a946372e 6167fi
f11781c5
AK
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6169$as_echo "$ac_cv_func_memcmp_working" >&6; }
6170test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6171 *" memcmp.$ac_objext "* ) ;;
6172 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6173 ;;
6174esac
a946372e 6175
a946372e 6176
a946372e 6177
a946372e 6178
f11781c5
AK
6179
6180 for ac_header in $ac_header_list
6181do :
6182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6184"
6185if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6186 cat >>confdefs.h <<_ACEOF
6187#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6188_ACEOF
6189
a946372e
AK
6190fi
6191
6192done
6193
a946372e 6194
f11781c5
AK
6195
6196
6197
6198
6199
6200
6201for ac_func in getpagesize
6202do :
6203 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6204if test "x$ac_cv_func_getpagesize" = x""yes; then :
6205 cat >>confdefs.h <<_ACEOF
6206#define HAVE_GETPAGESIZE 1
6207_ACEOF
6208
a946372e 6209fi
f11781c5
AK
6210done
6211
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6213$as_echo_n "checking for working mmap... " >&6; }
6214if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
a946372e 6216else
f11781c5
AK
6217 if test "$cross_compiling" = yes; then :
6218 ac_cv_func_mmap_fixed_mapped=no
6219else
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6221/* end confdefs.h. */
6222$ac_includes_default
f11781c5
AK
6223/* malloc might have been renamed as rpl_malloc. */
6224#undef malloc
6225
6226/* Thanks to Mike Haertel and Jim Avera for this test.
6227 Here is a matrix of mmap possibilities:
6228 mmap private not fixed
6229 mmap private fixed at somewhere currently unmapped
6230 mmap private fixed at somewhere already mapped
6231 mmap shared not fixed
6232 mmap shared fixed at somewhere currently unmapped
6233 mmap shared fixed at somewhere already mapped
6234 For private mappings, we should verify that changes cannot be read()
6235 back from the file, nor mmap's back from the file at a different
6236 address. (There have been systems where private was not correctly
6237 implemented like the infamous i386 svr4.0, and systems where the
6238 VM page cache was not coherent with the file system buffer cache
6239 like early versions of FreeBSD and possibly contemporary NetBSD.)
6240 For shared mappings, we should conversely verify that changes get
6241 propagated back to all the places they're supposed to be.
6242
6243 Grep wants private fixed already mapped.
6244 The main things grep needs to know about mmap are:
6245 * does it exist and is it safe to write into the mmap'd area
6246 * how to use it (BSD variants) */
6247
6248#include <fcntl.h>
6249#include <sys/mman.h>
6250
6251#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6252char *malloc ();
6253#endif
6254
6255/* This mess was copied from the GNU getpagesize.h. */
6256#ifndef HAVE_GETPAGESIZE
6257# ifdef _SC_PAGESIZE
6258# define getpagesize() sysconf(_SC_PAGESIZE)
6259# else /* no _SC_PAGESIZE */
6260# ifdef HAVE_SYS_PARAM_H
6261# include <sys/param.h>
6262# ifdef EXEC_PAGESIZE
6263# define getpagesize() EXEC_PAGESIZE
6264# else /* no EXEC_PAGESIZE */
6265# ifdef NBPG
6266# define getpagesize() NBPG * CLSIZE
6267# ifndef CLSIZE
6268# define CLSIZE 1
6269# endif /* no CLSIZE */
6270# else /* no NBPG */
6271# ifdef NBPC
6272# define getpagesize() NBPC
6273# else /* no NBPC */
6274# ifdef PAGESIZE
6275# define getpagesize() PAGESIZE
6276# endif /* PAGESIZE */
6277# endif /* no NBPC */
6278# endif /* no NBPG */
6279# endif /* no EXEC_PAGESIZE */
6280# else /* no HAVE_SYS_PARAM_H */
6281# define getpagesize() 8192 /* punt totally */
6282# endif /* no HAVE_SYS_PARAM_H */
6283# endif /* no _SC_PAGESIZE */
6284
6285#endif /* no HAVE_GETPAGESIZE */
6286
6287int
6288main ()
6289{
6290 char *data, *data2, *data3;
6291 const char *cdata2;
6292 int i, pagesize;
6293 int fd, fd2;
6294
6295 pagesize = getpagesize ();
6296
6297 /* First, make a file with some known garbage in it. */
6298 data = (char *) malloc (pagesize);
6299 if (!data)
6300 return 1;
6301 for (i = 0; i < pagesize; ++i)
6302 *(data + i) = rand ();
6303 umask (0);
6304 fd = creat ("conftest.mmap", 0600);
6305 if (fd < 0)
6306 return 2;
6307 if (write (fd, data, pagesize) != pagesize)
6308 return 3;
6309 close (fd);
6310
6311 /* Next, check that the tail of a page is zero-filled. File must have
6312 non-zero length, otherwise we risk SIGBUS for entire page. */
6313 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6314 if (fd2 < 0)
6315 return 4;
6316 cdata2 = "";
6317 if (write (fd2, cdata2, 1) != 1)
6318 return 5;
6319 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6320 if (data2 == MAP_FAILED)
6321 return 6;
6322 for (i = 0; i < pagesize; ++i)
6323 if (*(data2 + i))
6324 return 7;
6325 close (fd2);
6326 if (munmap (data2, pagesize))
6327 return 8;
6328
6329 /* Next, try to mmap the file at a fixed address which already has
6330 something else allocated at it. If we can, also make sure that
6331 we see the same garbage. */
6332 fd = open ("conftest.mmap", O_RDWR);
6333 if (fd < 0)
6334 return 9;
6335 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6336 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6337 return 10;
6338 for (i = 0; i < pagesize; ++i)
6339 if (*(data + i) != *(data2 + i))
6340 return 11;
6341
6342 /* Finally, make sure that changes to the mapped area do not
6343 percolate back to the file as seen by read(). (This is a bug on
6344 some variants of i386 svr4.0.) */
6345 for (i = 0; i < pagesize; ++i)
6346 *(data2 + i) = *(data2 + i) + 1;
6347 data3 = (char *) malloc (pagesize);
6348 if (!data3)
6349 return 12;
6350 if (read (fd, data3, pagesize) != pagesize)
6351 return 13;
6352 for (i = 0; i < pagesize; ++i)
6353 if (*(data + i) != *(data3 + i))
6354 return 14;
6355 close (fd);
6356 return 0;
6357}
a946372e 6358_ACEOF
f11781c5
AK
6359if ac_fn_c_try_run "$LINENO"; then :
6360 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6361else
f11781c5
AK
6362 ac_cv_func_mmap_fixed_mapped=no
6363fi
6364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6365 conftest.$ac_objext conftest.beam conftest.$ac_ext
6366fi
a946372e 6367
a946372e 6368fi
f11781c5
AK
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6370$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6371if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6372
f11781c5 6373$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6374
f11781c5
AK
6375fi
6376rm -f conftest.mmap conftest.txt
6377
6378for ac_header in stdlib.h
6379do :
6380 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6381if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6382 cat >>confdefs.h <<_ACEOF
6383#define HAVE_STDLIB_H 1
a946372e 6384_ACEOF
f11781c5
AK
6385
6386fi
6387
6388done
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6391$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6392if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6394else
6395 if test "$cross_compiling" = yes; then :
6396 ac_cv_func_realloc_0_nonnull=no
6397else
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6399/* end confdefs.h. */
f11781c5
AK
6400#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6401# include <stdlib.h>
6402#else
6403char *realloc ();
6404#endif
6405
6406int
6407main ()
6408{
6409return ! realloc (0, 0);
6410 ;
6411 return 0;
6412}
a946372e 6413_ACEOF
f11781c5
AK
6414if ac_fn_c_try_run "$LINENO"; then :
6415 ac_cv_func_realloc_0_nonnull=yes
a946372e 6416else
f11781c5
AK
6417 ac_cv_func_realloc_0_nonnull=no
6418fi
6419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6420 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6421fi
6422
f11781c5
AK
6423fi
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6425$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6426if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6427
f11781c5 6428$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6429
a946372e 6430else
f11781c5
AK
6431 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6432
6433 case " $LIBOBJS " in
6434 *" realloc.$ac_objext "* ) ;;
6435 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6436 ;;
6437esac
a946372e 6438
a946372e 6439
f11781c5
AK
6440$as_echo "#define realloc rpl_realloc" >>confdefs.h
6441
a946372e
AK
6442fi
6443
a946372e 6444
f11781c5
AK
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6446$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6447if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
a946372e 6449else
f11781c5
AK
6450 if test "$cross_compiling" = yes; then :
6451 ac_cv_func_stat_empty_string_bug=yes
6452else
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454/* end confdefs.h. */
6455$ac_includes_default
6456int
6457main ()
6458{
6459struct stat sbuf;
6460 return stat ("", &sbuf) == 0;
6461 ;
6462 return 0;
6463}
6464_ACEOF
6465if ac_fn_c_try_run "$LINENO"; then :
6466 ac_cv_func_stat_empty_string_bug=no
6467else
6468 ac_cv_func_stat_empty_string_bug=yes
a946372e 6469fi
f11781c5
AK
6470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6471 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6472fi
6473
8c4e8a18 6474fi
f11781c5
AK
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6476$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6477if test $ac_cv_func_stat_empty_string_bug = yes; then
6478 case " $LIBOBJS " in
6479 *" stat.$ac_objext "* ) ;;
6480 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6481 ;;
6482esac
8c4e8a18
FDN
6483
6484
6485cat >>confdefs.h <<_ACEOF
f11781c5 6486#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6487_ACEOF
6488
6489fi
6490
f11781c5
AK
6491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6492$as_echo_n "checking for working strtod... " >&6; }
6493if test "${ac_cv_func_strtod+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
66fd4529 6495else
f11781c5
AK
6496 if test "$cross_compiling" = yes; then :
6497 ac_cv_func_strtod=no
6498else
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500/* end confdefs.h. */
66fd4529 6501
f11781c5
AK
6502$ac_includes_default
6503#ifndef strtod
6504double strtod ();
6505#endif
6506int
6507main()
6508{
6509 {
6510 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6511 char *string = " +69";
6512 char *term;
6513 double value;
6514 value = strtod (string, &term);
6515 if (value != 69 || term != (string + 4))
6516 return 1;
6517 }
66fd4529 6518
f11781c5
AK
6519 {
6520 /* Under Solaris 2.4, strtod returns the wrong value for the
6521 terminating character under some conditions. */
6522 char *string = "NaN";
6523 char *term;
6524 strtod (string, &term);
6525 if (term != string && *(term - 1) == 0)
6526 return 1;
6527 }
6528 return 0;
6529}
66fd4529 6530
f11781c5
AK
6531_ACEOF
6532if ac_fn_c_try_run "$LINENO"; then :
6533 ac_cv_func_strtod=yes
66fd4529 6534else
f11781c5
AK
6535 ac_cv_func_strtod=no
6536fi
6537rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6538 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6539fi
6540
f11781c5
AK
6541fi
6542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6543$as_echo "$ac_cv_func_strtod" >&6; }
6544if test $ac_cv_func_strtod = no; then
6545 case " $LIBOBJS " in
6546 *" strtod.$ac_objext "* ) ;;
6547 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6548 ;;
6549esac
71082be4 6550
f11781c5
AK
6551ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6552if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6553
66fd4529 6554fi
a946372e 6555
f11781c5
AK
6556if test $ac_cv_func_pow = no; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6558$as_echo_n "checking for pow in -lm... " >&6; }
6559if test "${ac_cv_lib_m_pow+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561else
6562 ac_check_lib_save_LIBS=$LIBS
6563LIBS="-lm $LIBS"
6564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6565/* end confdefs.h. */
90c80887 6566
f11781c5
AK
6567/* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6570#ifdef __cplusplus
6571extern "C"
6572#endif
6573char pow ();
6574int
6575main ()
6576{
6577return pow ();
6578 ;
6579 return 0;
6580}
6581_ACEOF
6582if ac_fn_c_try_link "$LINENO"; then :
6583 ac_cv_lib_m_pow=yes
90c80887 6584else
f11781c5 6585 ac_cv_lib_m_pow=no
90c80887 6586fi
f11781c5
AK
6587rm -f core conftest.err conftest.$ac_objext \
6588 conftest$ac_exeext conftest.$ac_ext
6589LIBS=$ac_check_lib_save_LIBS
90c80887 6590fi
f11781c5
AK
6591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6592$as_echo "$ac_cv_lib_m_pow" >&6; }
6593if test "x$ac_cv_lib_m_pow" = x""yes; then :
6594 POW_LIB=-lm
90c80887 6595else
f11781c5
AK
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6597$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6598fi
f11781c5 6599
90c80887
AK
6600fi
6601
f11781c5
AK
6602fi
6603
6604for ac_func in vprintf
6605do :
6606 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6607if test "x$ac_cv_func_vprintf" = x""yes; then :
6608 cat >>confdefs.h <<_ACEOF
6609#define HAVE_VPRINTF 1
6610_ACEOF
90c80887 6611
f11781c5
AK
6612ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6613if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6614
f11781c5 6615$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6616
90c80887 6617fi
90c80887 6618
f11781c5
AK
6619fi
6620done
90c80887 6621
90c80887 6622
90c80887 6623
f11781c5
AK
6624################################################################################
6625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6626$as_echo_n "checking whether to use static linking... " >&6; }
6627# Check whether --enable-static_link was given.
6628if test "${enable_static_link+set}" = set; then :
6629 enableval=$enable_static_link; STATIC_LINK=$enableval
6630else
6631 STATIC_LINK=no
6632fi
90c80887 6633
f11781c5
AK
6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6635$as_echo "$STATIC_LINK" >&6; }
90c80887 6636
f11781c5 6637################################################################################
90c80887 6638
90c80887 6639
f11781c5
AK
6640################################################################################
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6642$as_echo_n "checking file owner... " >&6; }
90c80887 6643
f11781c5
AK
6644# Check whether --with-user was given.
6645if test "${with_user+set}" = set; then :
6646 withval=$with_user; OWNER=$withval
6647fi
90c80887 6648
f11781c5
AK
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6650$as_echo "$OWNER" >&6; }
90c80887 6651
f11781c5
AK
6652if test x$OWNER != x; then
6653 INSTALL="$INSTALL -o $OWNER"
90c80887 6654fi
a946372e 6655
f11781c5
AK
6656################################################################################
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6658$as_echo_n "checking group owner... " >&6; }
a946372e 6659
f11781c5
AK
6660# Check whether --with-group was given.
6661if test "${with_group+set}" = set; then :
6662 withval=$with_group; GROUP=$withval
a946372e 6663fi
f11781c5
AK
6664
6665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6666$as_echo "$GROUP" >&6; }
6667
6668if test x$GROUP != x; then
6669 INSTALL="$INSTALL -g $GROUP"
a946372e 6670fi
f11781c5
AK
6671
6672################################################################################
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6674$as_echo_n "checking device node uid... " >&6; }
6675
6676
6677# Check whether --with-device-uid was given.
6678if test "${with_device_uid+set}" = set; then :
6679 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6680else
f11781c5 6681 DM_DEVICE_UID=0
a946372e
AK
6682fi
6683
f11781c5
AK
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6685$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6686
f11781c5
AK
6687################################################################################
6688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6689$as_echo_n "checking device node gid... " >&6; }
a946372e 6690
a946372e 6691
f11781c5
AK
6692# Check whether --with-device-gid was given.
6693if test "${with_device_gid+set}" = set; then :
6694 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6695else
f11781c5 6696 DM_DEVICE_GID=0
a946372e 6697fi
a946372e 6698
f11781c5
AK
6699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6700$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6701
f11781c5
AK
6702################################################################################
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6704$as_echo_n "checking device node mode... " >&6; }
90c80887 6705
90c80887 6706
f11781c5
AK
6707# Check whether --with-device-mode was given.
6708if test "${with_device_mode+set}" = set; then :
6709 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6710else
6711 DM_DEVICE_MODE=0600
6712fi
90c80887 6713
f11781c5
AK
6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6715$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6716
d0df875d
ZK
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6718$as_echo_n "checking when to create device nodes... " >&6; }
6719
6720# Check whether --with-device-nodes-on was given.
6721if test "${with_device_nodes_on+set}" = set; then :
6722 withval=$with_device_nodes_on; ADD_NODE=$withval
6723else
6724 ADD_NODE=resume
6725fi
6726
6727case "$ADD_NODE" in
6728 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6729 create) add_on=DM_ADD_NODE_ON_CREATE;;
6730 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6731esac
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6733$as_echo "on $ADD_NODE" >&6; }
6734
6735cat >>confdefs.h <<_ACEOF
6736#define DEFAULT_DM_ADD_NODE $add_on
6737_ACEOF
6738
6739
f11781c5
AK
6740################################################################################
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6742$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6743# Check whether --enable-lvm1_fallback was given.
6744if test "${enable_lvm1_fallback+set}" = set; then :
6745 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6746else
6747 LVM1_FALLBACK=no
6748fi
90c80887 6749
f11781c5
AK
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6751$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6752
f11781c5 6753if test x$LVM1_FALLBACK = xyes; then
90c80887 6754
f11781c5 6755$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6756
f11781c5 6757fi
90c80887 6758
f11781c5
AK
6759################################################################################
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6761$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6762
6763# Check whether --with-lvm1 was given.
6764if test "${with_lvm1+set}" = set; then :
6765 withval=$with_lvm1; LVM1=$withval
a946372e 6766else
f11781c5 6767 LVM1=internal
a946372e 6768fi
f11781c5
AK
6769
6770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6771$as_echo "$LVM1" >&6; }
6772
6773if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6774 then as_fn_error $? "--with-lvm1 parameter invalid
6775" "$LINENO" 5
6776fi;
6777
6778if test x$LVM1 = xinternal; then
6779
6780$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6781
a946372e
AK
6782fi
6783
6784################################################################################
f11781c5
AK
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6786$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6787
6788# Check whether --with-pool was given.
6789if test "${with_pool+set}" = set; then :
6790 withval=$with_pool; POOL=$withval
a946372e 6791else
f11781c5 6792 POOL=internal
a946372e
AK
6793fi
6794
f11781c5
AK
6795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6796$as_echo "$POOL" >&6; }
6797
6798if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6799 then as_fn_error $? "--with-pool parameter invalid
6800" "$LINENO" 5
6801fi;
6802
6803if test x$POOL = xinternal; then
6804
6805$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6806
a946372e
AK
6807fi
6808
6809################################################################################
f11781c5
AK
6810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6811$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6812
f11781c5
AK
6813# Check whether --with-cluster was given.
6814if test "${with_cluster+set}" = set; then :
6815 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6816fi
6817
f11781c5
AK
6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6819$as_echo "$CLUSTER" >&6; }
a946372e 6820
f11781c5
AK
6821if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6822 then as_fn_error $? "--with-cluster parameter invalid
6823" "$LINENO" 5
6824fi;
fddafd51 6825
f11781c5 6826if test x$CLUSTER = xinternal; then
5556819a 6827
f11781c5 6828$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6829
fddafd51 6830fi
f11781c5
AK
6831
6832################################################################################
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6834$as_echo_n "checking whether to include snapshots... " >&6; }
6835
6836# Check whether --with-snapshots was given.
6837if test "${with_snapshots+set}" = set; then :
6838 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6839else
f11781c5 6840 SNAPSHOTS=internal
fddafd51
ZK
6841fi
6842
f11781c5
AK
6843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6844$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6845
f11781c5
AK
6846if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6847 then as_fn_error $? "--with-snapshots parameter invalid
6848" "$LINENO" 5
6849fi;
fddafd51 6850
f11781c5
AK
6851if test x$SNAPSHOTS = xinternal; then
6852
6853$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6854
6855fi
6856
6857################################################################################
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6859$as_echo_n "checking whether to include mirrors... " >&6; }
6860
6861# Check whether --with-mirrors was given.
6862if test "${with_mirrors+set}" = set; then :
6863 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6864else
f11781c5 6865 MIRRORS=internal
fddafd51
ZK
6866fi
6867
f11781c5
AK
6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6869$as_echo "$MIRRORS" >&6; }
fddafd51 6870
f11781c5
AK
6871if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6872 then as_fn_error $? "--with-mirrors parameter invalid
6873" "$LINENO" 5
6874fi;
6875
6876if test x$MIRRORS = xinternal; then
6877
6878$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6879
6880fi
6881
6882################################################################################
6883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6884$as_echo_n "checking whether to include replicators... " >&6; }
6885
6886# Check whether --with-replicators was given.
6887if test "${with_replicators+set}" = set; then :
6888 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6889else
f11781c5
AK
6890 REPLICATORS=none
6891fi
fd4728e1 6892
f11781c5
AK
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6894$as_echo "$REPLICATORS" >&6; }
6895
6896case "$REPLICATORS" in
6897 none|shared) ;;
6898 internal)
6899$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6900 ;;
6901 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6902esac
f11781c5
AK
6903
6904################################################################################
6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6906$as_echo_n "checking whether to enable readline... " >&6; }
6907# Check whether --enable-readline was given.
6908if test "${enable_readline+set}" = set; then :
6909 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6910else
f11781c5 6911 READLINE=maybe
fd4728e1
ZK
6912fi
6913
f11781c5
AK
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6915$as_echo "$READLINE" >&6; }
fd4728e1 6916
f11781c5
AK
6917################################################################################
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6919$as_echo_n "checking whether to enable realtime support... " >&6; }
6920# Check whether --enable-realtime was given.
6921if test "${enable_realtime+set}" = set; then :
6922 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6923fi
d0191583 6924
f11781c5
AK
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6926$as_echo "$REALTIME" >&6; }
6927
54b362f9 6928################################################################################
f11781c5
AK
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6930$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6931# Check whether --enable-ocf was given.
6932if test "${enable_ocf+set}" = set; then :
6933 enableval=$enable_ocf; OCF=$enableval
54b362f9 6934else
f11781c5 6935 OCF=no
54b362f9
AK
6936fi
6937
f11781c5
AK
6938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6939$as_echo "$OCF" >&6; }
54b362f9 6940
606d0858
AK
6941# Check whether --with-ocfdir was given.
6942if test "${with_ocfdir+set}" = set; then :
6943 withval=$with_ocfdir; OCFDIR=$withval
6944else
6945 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6946fi
6947
6948
f11781c5
AK
6949################################################################################
6950pkg_config_init() {
6951
6952
6953
6954
6955
6956
6957if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6958 if test -n "$ac_tool_prefix"; then
6959 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6960set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 6962$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 6963if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
6964 $as_echo_n "(cached) " >&6
6965else
f11781c5 6966 case $PKG_CONFIG in
54b362f9 6967 [\\/]* | ?:[\\/]*)
f11781c5 6968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
6969 ;;
6970 *)
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
f11781c5 6976 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
6978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
6980 break 2
6981 fi
6982done
f11781c5 6983 done
54b362f9
AK
6984IFS=$as_save_IFS
6985
6986 ;;
6987esac
6988fi
f11781c5
AK
6989PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6990if test -n "$PKG_CONFIG"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6992$as_echo "$PKG_CONFIG" >&6; }
54b362f9 6993else
f11781c5 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
6995$as_echo "no" >&6; }
6996fi
6997
6998
f11781c5
AK
6999fi
7000if test -z "$ac_cv_path_PKG_CONFIG"; then
7001 ac_pt_PKG_CONFIG=$PKG_CONFIG
7002 # Extract the first word of "pkg-config", so it can be a program name with args.
7003set dummy pkg-config; ac_word=$2
7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7005$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7006if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7007 $as_echo_n "(cached) " >&6
7008else
f11781c5 7009 case $ac_pt_PKG_CONFIG in
54b362f9 7010 [\\/]* | ?:[\\/]*)
f11781c5 7011 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7012 ;;
7013 *)
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015for as_dir in $PATH
7016do
7017 IFS=$as_save_IFS
7018 test -z "$as_dir" && as_dir=.
f11781c5 7019 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7021 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7023 break 2
7024 fi
7025done
f11781c5 7026 done
54b362f9
AK
7027IFS=$as_save_IFS
7028
7029 ;;
7030esac
7031fi
f11781c5
AK
7032ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7033if test -n "$ac_pt_PKG_CONFIG"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7035$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7036else
f11781c5 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7038$as_echo "no" >&6; }
7039fi
7040
f11781c5
AK
7041 if test "x$ac_pt_PKG_CONFIG" = x; then
7042 PKG_CONFIG=""
7043 else
7044 case $cross_compiling:$ac_tool_warned in
7045yes:)
7046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048ac_tool_warned=yes ;;
7049esac
7050 PKG_CONFIG=$ac_pt_PKG_CONFIG
7051 fi
d1e8046f 7052else
f11781c5 7053 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7054fi
7055
f11781c5
AK
7056fi
7057if test -n "$PKG_CONFIG"; then
7058 _pkg_min_version=0.9.0
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7060$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7061 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7063$as_echo "yes" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066$as_echo "no" >&6; }
7067 PKG_CONFIG=""
7068 fi
7069fi
d1e8046f 7070
f11781c5
AK
7071pkg_failed=no
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7073$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7074
f11781c5
AK
7075if test -n "$PKGCONFIGINIT_CFLAGS"; then
7076 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7077 elif test -n "$PKG_CONFIG"; then
7078 if test -n "$PKG_CONFIG" && \
7079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7080 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7081 ac_status=$?
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }; then
7084 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7085else
f11781c5
AK
7086 pkg_failed=yes
7087fi
7088 else
7089 pkg_failed=untried
7090fi
7091if test -n "$PKGCONFIGINIT_LIBS"; then
7092 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7093 elif test -n "$PKG_CONFIG"; then
7094 if test -n "$PKG_CONFIG" && \
7095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7096 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7097 ac_status=$?
f11781c5
AK
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }; then
7100 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7101else
f11781c5
AK
7102 pkg_failed=yes
7103fi
7104 else
7105 pkg_failed=untried
d1e8046f
AK
7106fi
7107
d1e8046f 7108
f11781c5
AK
7109
7110if test $pkg_failed = yes; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112$as_echo "no" >&6; }
7113
7114if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7115 _pkg_short_errors_supported=yes
7116else
7117 _pkg_short_errors_supported=no
7118fi
7119 if test $_pkg_short_errors_supported = yes; then
7120 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7121 else
7122 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7123 fi
7124 # Put the nasty error message in config.log where it belongs
7125 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7126
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7128$as_echo "pkg-config initialized" >&6; }
7129elif test $pkg_failed = untried; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131$as_echo "no" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7133$as_echo "pkg-config initialized" >&6; }
d1e8046f 7134else
f11781c5
AK
7135 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7136 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7138$as_echo "yes" >&6; }
d1e8046f 7139
d1e8046f 7140fi
f11781c5
AK
7141 PKGCONFIG_INIT=1
7142}
d1e8046f 7143
f11781c5
AK
7144################################################################################
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7146$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7147
f11781c5
AK
7148# Check whether --with-clvmd was given.
7149if test "${with_clvmd+set}" = set; then :
7150 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7151else
f11781c5 7152 CLVMD=none
d1e8046f 7153fi
d1e8046f 7154
f11781c5
AK
7155if test x$CLVMD = xyes; then
7156 CLVMD=all
d1e8046f 7157fi
f11781c5
AK
7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7159$as_echo "$CLVMD" >&6; }
d1e8046f 7160
f11781c5
AK
7161if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7162 CLUSTER=internal
d1e8046f
AK
7163fi
7164
f11781c5
AK
7165if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7166 pkg_config_init
7167fi
d1e8046f 7168
f11781c5
AK
7169CLVMD_CMANAGERS=""
7170CLVMD_NEEDS_QDISKD=no
d1e8046f 7171
f11781c5
AK
7172if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7173 BUILDGULM=yes
7174 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7175 CLVMD_NEEDS_QDISKD=yes
d1e8046f 7176fi
f11781c5
AK
7177if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7178 BUILDCMAN=yes
7179 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7180 CLVMD_NEEDS_QDISKD=yes
7181fi
7182if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7183 BUILDCOROSYNC=yes
7184 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7185fi
7186if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7187 BUILDOPENAIS=yes
7188 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7189fi
7190if test x$CLVMD_NEEDS_QDISKD != xno; then
7191 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7192fi
7193
f11781c5
AK
7194if test x$BUILDGULM = xyes; then
7195 if test x$BUILDCOROSYNC = xyes || \
7196 test x$BUILDOPENAIS = xyes; then
7197 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7198 fi
7199fi
ad6254c5 7200
f11781c5
AK
7201soft_bailout() {
7202 NOTFOUND=1
7203}
ad6254c5 7204
f11781c5
AK
7205hard_bailout() {
7206 as_fn_error $? "bailing out" "$LINENO" 5
7207}
ad6254c5 7208
f11781c5
AK
7209if test x$CLVMD = xall; then
7210 bailout=soft_bailout
7211 BUILDGULM=yes
7212 BUILDCMAN=yes
7213 BUILDCOROSYNC=yes
7214 BUILDOPENAIS=yes
a5f46f6a 7215else
f11781c5 7216 bailout=hard_bailout
a5f46f6a
AK
7217fi
7218
f11781c5
AK
7219check_lib_no_libs() {
7220 lib_no_libs_arg1=$1
7221 shift
7222 lib_no_libs_arg2=$1
7223 shift
7224 lib_no_libs_args=$@
7225 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7227$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7228if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7229 $as_echo_n "(cached) " >&6
7230else
7231 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7232LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7234/* end confdefs.h. */
7235
7236/* Override any GCC internal prototype to avoid an error.
7237 Use char because int might match the return type of a GCC
7238 builtin and then its argument prototype would still apply. */
7239#ifdef __cplusplus
7240extern "C"
7241#endif
f11781c5 7242char $lib_no_libs_arg2 ();
90c80887
AK
7243int
7244main ()
7245{
f11781c5 7246return $lib_no_libs_arg2 ();
90c80887
AK
7247 ;
7248 return 0;
7249}
7250_ACEOF
f11781c5
AK
7251if ac_fn_c_try_link "$LINENO"; then :
7252 eval "$as_ac_Lib=yes"
90c80887 7253else
f11781c5 7254 eval "$as_ac_Lib=no"
90c80887 7255fi
f11781c5
AK
7256rm -f core conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7258LIBS=$ac_check_lib_save_LIBS
7259fi
f11781c5
AK
7260eval ac_res=\$$as_ac_Lib
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7262$as_echo "$ac_res" >&6; }
7263if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7264 cat >>confdefs.h <<_ACEOF
7265#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7266_ACEOF
7267
7268 LIBS="-l$lib_no_libs_arg1 $LIBS"
7269
90c80887 7270else
f11781c5 7271 $bailout
90c80887
AK
7272fi
7273
f11781c5
AK
7274 LIBS=$ac_check_lib_save_LIBS
7275}
90c80887 7276
f11781c5 7277if test x$BUILDGULM = xyes; then
90c80887 7278
f11781c5
AK
7279pkg_failed=no
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7281$as_echo_n "checking for CCS... " >&6; }
90c80887 7282
f11781c5
AK
7283if test -n "$CCS_CFLAGS"; then
7284 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7285 elif test -n "$PKG_CONFIG"; then
7286 if test -n "$PKG_CONFIG" && \
7287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7288 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7289 ac_status=$?
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
5161ecb9 7293else
f11781c5
AK
7294 pkg_failed=yes
7295fi
7296 else
7297 pkg_failed=untried
7298fi
7299if test -n "$CCS_LIBS"; then
7300 pkg_cv_CCS_LIBS="$CCS_LIBS"
7301 elif test -n "$PKG_CONFIG"; then
7302 if test -n "$PKG_CONFIG" && \
7303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7304 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7305 ac_status=$?
7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; }; then
7308 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7309else
7310 pkg_failed=yes
7311fi
7312 else
7313 pkg_failed=untried
5161ecb9
PR
7314fi
7315
5161ecb9 7316
f11781c5
AK
7317
7318if test $pkg_failed = yes; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320$as_echo "no" >&6; }
7321
7322if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7323 _pkg_short_errors_supported=yes
93bd259b 7324else
f11781c5 7325 _pkg_short_errors_supported=no
93bd259b 7326fi
f11781c5
AK
7327 if test $_pkg_short_errors_supported = yes; then
7328 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7329 else
7330 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7331 fi
7332 # Put the nasty error message in config.log where it belongs
7333 echo "$CCS_PKG_ERRORS" >&5
93bd259b 7334
f11781c5
AK
7335 NOTFOUND=0
7336 for ac_header in ccs.h
7337do :
7338 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7339if test "x$ac_cv_header_ccs_h" = x""yes; then :
7340 cat >>confdefs.h <<_ACEOF
7341#define HAVE_CCS_H 1
7342_ACEOF
93bd259b 7343
95eaa683 7344else
f11781c5 7345 $bailout
95eaa683
AK
7346fi
7347
f11781c5 7348done
95eaa683 7349
f11781c5
AK
7350 check_lib_no_libs ccs ccs_connect
7351 if test $NOTFOUND = 0; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7353$as_echo "no pkg for libccs, using -lccs" >&6; }
7354 CCS_LIBS="-lccs"
7355 HAVE_CCS=yes
7356 fi
7357elif test $pkg_failed = untried; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359$as_echo "no" >&6; }
7360 NOTFOUND=0
7361 for ac_header in ccs.h
7362do :
7363 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7364if test "x$ac_cv_header_ccs_h" = x""yes; then :
7365 cat >>confdefs.h <<_ACEOF
7366#define HAVE_CCS_H 1
95eaa683
AK
7367_ACEOF
7368
f11781c5
AK
7369else
7370 $bailout
95eaa683
AK
7371fi
7372
f11781c5
AK
7373done
7374
7375 check_lib_no_libs ccs ccs_connect
7376 if test $NOTFOUND = 0; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7378$as_echo "no pkg for libccs, using -lccs" >&6; }
7379 CCS_LIBS="-lccs"
7380 HAVE_CCS=yes
7381 fi
7382else
7383 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7384 CCS_LIBS=$pkg_cv_CCS_LIBS
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7386$as_echo "yes" >&6; }
7387 HAVE_CCS=yes
7388fi
7389
7390pkg_failed=no
7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7392$as_echo_n "checking for GULM... " >&6; }
7393
7394if test -n "$GULM_CFLAGS"; then
7395 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7396 elif test -n "$PKG_CONFIG"; then
7397 if test -n "$PKG_CONFIG" && \
7398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7399 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7400 ac_status=$?
7401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402 test $ac_status = 0; }; then
7403 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7404else
7405 pkg_failed=yes
7406fi
7407 else
7408 pkg_failed=untried
7409fi
7410if test -n "$GULM_LIBS"; then
7411 pkg_cv_GULM_LIBS="$GULM_LIBS"
7412 elif test -n "$PKG_CONFIG"; then
7413 if test -n "$PKG_CONFIG" && \
7414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7415 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7416 ac_status=$?
7417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418 test $ac_status = 0; }; then
7419 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7420else
7421 pkg_failed=yes
93bd259b 7422fi
f11781c5
AK
7423 else
7424 pkg_failed=untried
ad6254c5 7425fi
ad6254c5 7426
ad6254c5
AK
7427
7428
f11781c5
AK
7429if test $pkg_failed = yes; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431$as_echo "no" >&6; }
ad6254c5 7432
f11781c5
AK
7433if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7434 _pkg_short_errors_supported=yes
572fefeb 7435else
f11781c5 7436 _pkg_short_errors_supported=no
572fefeb 7437fi
f11781c5
AK
7438 if test $_pkg_short_errors_supported = yes; then
7439 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7440 else
7441 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7442 fi
7443 # Put the nasty error message in config.log where it belongs
7444 echo "$GULM_PKG_ERRORS" >&5
572fefeb 7445
f11781c5
AK
7446 NOTFOUND=0
7447 for ac_header in libgulm.h
7448do :
7449 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7450if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7451 cat >>confdefs.h <<_ACEOF
7452#define HAVE_LIBGULM_H 1
7453_ACEOF
572fefeb 7454
ad6254c5 7455else
f11781c5 7456 $bailout
d0191583 7457fi
8a2fc586 7458
f11781c5 7459done
8a2fc586 7460
f11781c5
AK
7461 check_lib_no_libs gulm lg_core_login
7462 if test $NOTFOUND = 0; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7464$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7465 GULM_LIBS="-lgulm"
7466 HAVE_GULM=yes
7467 fi
7468elif test $pkg_failed = untried; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470$as_echo "no" >&6; }
7471 NOTFOUND=0
7472 for ac_header in libgulm.h
7473do :
7474 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7475if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7476 cat >>confdefs.h <<_ACEOF
7477#define HAVE_LIBGULM_H 1
7478_ACEOF
d179cc7a 7479
93bd259b 7480else
f11781c5 7481 $bailout
93bd259b
AK
7482fi
7483
f11781c5 7484done
2a9a80c9 7485
f11781c5
AK
7486 check_lib_no_libs gulm lg_core_login
7487 if test $NOTFOUND = 0; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7489$as_echo "no pkg for libgulm, using -lgulm" >&6; }
7490 GULM_LIBS="-lgulm"
7491 HAVE_GULM=yes
7492 fi
23b059e7 7493else
f11781c5
AK
7494 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7495 GULM_LIBS=$pkg_cv_GULM_LIBS
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7497$as_echo "yes" >&6; }
7498 HAVE_GULM=yes
d0191583 7499fi
d0191583 7500fi
ad6254c5 7501
f11781c5 7502if test x$BUILDCMAN = xyes; then
ad6254c5 7503
f11781c5
AK
7504pkg_failed=no
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7506$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7507
f11781c5
AK
7508if test -n "$CMAN_CFLAGS"; then
7509 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7510 elif test -n "$PKG_CONFIG"; then
7511 if test -n "$PKG_CONFIG" && \
7512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7513 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7514 ac_status=$?
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7518else
7519 pkg_failed=yes
ad6254c5 7520fi
f11781c5
AK
7521 else
7522 pkg_failed=untried
ad6254c5 7523fi
f11781c5
AK
7524if test -n "$CMAN_LIBS"; then
7525 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7526 elif test -n "$PKG_CONFIG"; then
7527 if test -n "$PKG_CONFIG" && \
7528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7529 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7530 ac_status=$?
f11781c5
AK
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }; then
7533 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7534else
f11781c5
AK
7535 pkg_failed=yes
7536fi
7537 else
7538 pkg_failed=untried
93bd259b
AK
7539fi
7540
f11781c5
AK
7541
7542
7543if test $pkg_failed = yes; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
7546
7547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7548 _pkg_short_errors_supported=yes
7549else
7550 _pkg_short_errors_supported=no
93bd259b 7551fi
f11781c5
AK
7552 if test $_pkg_short_errors_supported = yes; then
7553 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7554 else
7555 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7556 fi
7557 # Put the nasty error message in config.log where it belongs
7558 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7559
f11781c5
AK
7560 NOTFOUND=0
7561 for ac_header in libcman.h
7562do :
7563 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7564if test "x$ac_cv_header_libcman_h" = x""yes; then :
7565 cat >>confdefs.h <<_ACEOF
7566#define HAVE_LIBCMAN_H 1
93bd259b
AK
7567_ACEOF
7568
f11781c5
AK
7569else
7570 $bailout
93bd259b
AK
7571fi
7572
f11781c5 7573done
93bd259b 7574
f11781c5
AK
7575 check_lib_no_libs cman cman_init
7576 if test $NOTFOUND = 0; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7578$as_echo "no pkg for libcman, using -lcman" >&6; }
7579 CMAN_LIBS="-lcman"
7580 HAVE_CMAN=yes
7581 fi
7582elif test $pkg_failed = untried; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584$as_echo "no" >&6; }
7585 NOTFOUND=0
7586 for ac_header in libcman.h
7587do :
7588 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7589if test "x$ac_cv_header_libcman_h" = x""yes; then :
7590 cat >>confdefs.h <<_ACEOF
7591#define HAVE_LIBCMAN_H 1
93bd259b 7592_ACEOF
93bd259b 7593
93bd259b 7594else
f11781c5 7595 $bailout
93bd259b
AK
7596fi
7597
f11781c5
AK
7598done
7599
7600 check_lib_no_libs cman cman_init
7601 if test $NOTFOUND = 0; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7603$as_echo "no pkg for libcman, using -lcman" >&6; }
7604 CMAN_LIBS="-lcman"
7605 HAVE_CMAN=yes
7606 fi
7607else
7608 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7609 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7611$as_echo "yes" >&6; }
7612 HAVE_CMAN=yes
93bd259b 7613fi
f11781c5
AK
7614 CHECKCONFDB=yes
7615 CHECKDLM=yes
93bd259b
AK
7616fi
7617
f11781c5
AK
7618if test x$BUILDCOROSYNC = xyes || \
7619 test x$BUILDOPENAIS = xyes; then
93bd259b 7620
f11781c5
AK
7621pkg_failed=no
7622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7623$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7624
f11781c5
AK
7625if test -n "$COROSYNC_CFLAGS"; then
7626 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7627 elif test -n "$PKG_CONFIG"; then
7628 if test -n "$PKG_CONFIG" && \
7629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7630 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7631 ac_status=$?
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7635else
f11781c5
AK
7636 pkg_failed=yes
7637fi
7638 else
7639 pkg_failed=untried
7640fi
7641if test -n "$COROSYNC_LIBS"; then
7642 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7643 elif test -n "$PKG_CONFIG"; then
7644 if test -n "$PKG_CONFIG" && \
7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7646 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7647 ac_status=$?
f11781c5
AK
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7651else
f11781c5 7652 pkg_failed=yes
ad6254c5 7653fi
f11781c5
AK
7654 else
7655 pkg_failed=untried
ad6254c5 7656fi
ad6254c5 7657
72b2cb61 7658
72b2cb61 7659
f11781c5
AK
7660if test $pkg_failed = yes; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
19a2c6e0 7663
f11781c5
AK
7664if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7665 _pkg_short_errors_supported=yes
7666else
7667 _pkg_short_errors_supported=no
ad6254c5 7668fi
f11781c5
AK
7669 if test $_pkg_short_errors_supported = yes; then
7670 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7671 else
7672 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7673 fi
7674 # Put the nasty error message in config.log where it belongs
7675 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7676
f11781c5
AK
7677 $bailout
7678elif test $pkg_failed = untried; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680$as_echo "no" >&6; }
7681 $bailout
7682else
7683 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7684 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686$as_echo "yes" >&6; }
7687 HAVE_COROSYNC=yes
7688fi
7689 CHECKCONFDB=yes
ad6254c5
AK
7690fi
7691
f11781c5 7692if test x$BUILDCOROSYNC = xyes; then
f30875db 7693
f11781c5
AK
7694pkg_failed=no
7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7696$as_echo_n "checking for QUORUM... " >&6; }
7697
7698if test -n "$QUORUM_CFLAGS"; then
7699 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7700 elif test -n "$PKG_CONFIG"; then
7701 if test -n "$PKG_CONFIG" && \
7702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7703 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7704 ac_status=$?
f11781c5
AK
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; }; then
7707 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7708else
f11781c5 7709 pkg_failed=yes
f30875db 7710fi
f11781c5
AK
7711 else
7712 pkg_failed=untried
f30875db 7713fi
f11781c5
AK
7714if test -n "$QUORUM_LIBS"; then
7715 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7716 elif test -n "$PKG_CONFIG"; then
7717 if test -n "$PKG_CONFIG" && \
7718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7719 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7720 ac_status=$?
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }; then
7723 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7724else
f11781c5 7725 pkg_failed=yes
f30875db 7726fi
f11781c5
AK
7727 else
7728 pkg_failed=untried
7729fi
7730
f30875db 7731
f11781c5
AK
7732
7733if test $pkg_failed = yes; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735$as_echo "no" >&6; }
7736
7737if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7738 _pkg_short_errors_supported=yes
7739else
7740 _pkg_short_errors_supported=no
f30875db 7741fi
f11781c5
AK
7742 if test $_pkg_short_errors_supported = yes; then
7743 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7744 else
7745 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7746 fi
7747 # Put the nasty error message in config.log where it belongs
7748 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7749
f11781c5
AK
7750 $bailout
7751elif test $pkg_failed = untried; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
7754 $bailout
7755else
7756 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7757 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7759$as_echo "yes" >&6; }
7760 HAVE_QUORUM=yes
7761fi
7762 CHECKCPG=yes
7763 CHECKDLM=yes
d0191583
JM
7764fi
7765
f11781c5 7766if test x$BUILDOPENAIS = xyes; then
d0191583 7767
f11781c5
AK
7768pkg_failed=no
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7770$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7771
f11781c5
AK
7772if test -n "$SALCK_CFLAGS"; then
7773 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7774 elif test -n "$PKG_CONFIG"; then
7775 if test -n "$PKG_CONFIG" && \
7776 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7777 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7778 ac_status=$?
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7782else
7783 pkg_failed=yes
7784fi
7785 else
7786 pkg_failed=untried
7787fi
7788if test -n "$SALCK_LIBS"; then
7789 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7790 elif test -n "$PKG_CONFIG"; then
7791 if test -n "$PKG_CONFIG" && \
7792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7793 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7794 ac_status=$?
f11781c5
AK
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7798else
f11781c5 7799 pkg_failed=yes
8a2fc586 7800fi
f11781c5
AK
7801 else
7802 pkg_failed=untried
8a2fc586 7803fi
d0191583 7804
d0191583 7805
f8f6ec92 7806
f11781c5
AK
7807if test $pkg_failed = yes; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
8a2fc586 7810
f11781c5
AK
7811if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7812 _pkg_short_errors_supported=yes
ad6254c5 7813else
f11781c5
AK
7814 _pkg_short_errors_supported=no
7815fi
7816 if test $_pkg_short_errors_supported = yes; then
7817 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7818 else
7819 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7820 fi
7821 # Put the nasty error message in config.log where it belongs
7822 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7823
f11781c5
AK
7824 $bailout
7825elif test $pkg_failed = untried; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827$as_echo "no" >&6; }
7828 $bailout
ad6254c5 7829else
f11781c5
AK
7830 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7831 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833$as_echo "yes" >&6; }
7834 HAVE_SALCK=yes
ad6254c5 7835fi
f11781c5 7836 CHECKCPG=yes
ad6254c5 7837fi
ad6254c5 7838
72b2cb61 7839
f8f6ec92 7840
f11781c5 7841if test x$CHECKCONFDB = xyes; then
f8f6ec92 7842
f11781c5
AK
7843pkg_failed=no
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7845$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7846
f11781c5
AK
7847if test -n "$CONFDB_CFLAGS"; then
7848 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7849 elif test -n "$PKG_CONFIG"; then
7850 if test -n "$PKG_CONFIG" && \
7851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7852 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7853 ac_status=$?
f11781c5
AK
7854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855 test $ac_status = 0; }; then
7856 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7857else
f11781c5
AK
7858 pkg_failed=yes
7859fi
7860 else
7861 pkg_failed=untried
7862fi
7863if test -n "$CONFDB_LIBS"; then
7864 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7865 elif test -n "$PKG_CONFIG"; then
7866 if test -n "$PKG_CONFIG" && \
7867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7868 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7869 ac_status=$?
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7873else
7874 pkg_failed=yes
7875fi
7876 else
7877 pkg_failed=untried
f8f6ec92
ZK
7878fi
7879
f8f6ec92 7880
66e941e8 7881
f11781c5
AK
7882if test $pkg_failed = yes; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884$as_echo "no" >&6; }
7885
7886if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7887 _pkg_short_errors_supported=yes
f8f6ec92 7888else
f11781c5 7889 _pkg_short_errors_supported=no
66e941e8 7890fi
f11781c5
AK
7891 if test $_pkg_short_errors_supported = yes; then
7892 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7893 else
7894 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7895 fi
7896 # Put the nasty error message in config.log where it belongs
7897 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7898
f11781c5
AK
7899 HAVE_CONFDB=no
7900elif test $pkg_failed = untried; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902$as_echo "no" >&6; }
7903 HAVE_CONFDB=no
7904else
7905 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7906 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908$as_echo "yes" >&6; }
7909 HAVE_CONFDB=yes
66e941e8 7910fi
f11781c5
AK
7911
7912 for ac_header in corosync/confdb.h
7913do :
7914 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7915if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7916 cat >>confdefs.h <<_ACEOF
f11781c5 7917#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7918_ACEOF
f11781c5 7919 HAVE_CONFDB_H=yes
66e941e8 7920else
f11781c5 7921 HAVE_CONFDB_H=no
66e941e8 7922fi
dd1f2c09
MB
7923
7924done
7925
7926
f11781c5
AK
7927 if test x$HAVE_CONFDB != xyes && \
7928 test x$HAVE_CONFDB_H = xyes; then
7929 check_lib_no_libs confdb confdb_initialize
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7931$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7932 CONFDB_LIBS="-lconfdb"
7933 HAVE_CONFDB=yes
7934 fi
7935
7936 if test x$BUILDCOROSYNC = xyes && \
7937 test x$HAVE_CONFDB != xyes &&
7938 test x$CLVMD != xall; then
7939 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7940 fi
dd1f2c09 7941fi
f11781c5
AK
7942
7943if test x$CHECKCPG = xyes; then
7944
7945pkg_failed=no
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7947$as_echo_n "checking for CPG... " >&6; }
7948
7949if test -n "$CPG_CFLAGS"; then
7950 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7951 elif test -n "$PKG_CONFIG"; then
7952 if test -n "$PKG_CONFIG" && \
7953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7954 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7955 ac_status=$?
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }; then
7958 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7959else
f11781c5
AK
7960 pkg_failed=yes
7961fi
7962 else
7963 pkg_failed=untried
7964fi
7965if test -n "$CPG_LIBS"; then
7966 pkg_cv_CPG_LIBS="$CPG_LIBS"
7967 elif test -n "$PKG_CONFIG"; then
7968 if test -n "$PKG_CONFIG" && \
7969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7970 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7971 ac_status=$?
f11781c5
AK
7972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7973 test $ac_status = 0; }; then
7974 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7975else
f11781c5
AK
7976 pkg_failed=yes
7977fi
7978 else
7979 pkg_failed=untried
7980fi
7981
7982
7983
7984if test $pkg_failed = yes; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986$as_echo "no" >&6; }
7987
7988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7989 _pkg_short_errors_supported=yes
7990else
7991 _pkg_short_errors_supported=no
7992fi
7993 if test $_pkg_short_errors_supported = yes; then
7994 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7995 else
7996 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7997 fi
7998 # Put the nasty error message in config.log where it belongs
7999 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 8000
f11781c5
AK
8001 $bailout
8002elif test $pkg_failed = untried; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004$as_echo "no" >&6; }
8005 $bailout
8006else
8007 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8008 CPG_LIBS=$pkg_cv_CPG_LIBS
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8010$as_echo "yes" >&6; }
8011 HAVE_CPG=yes
8012fi
dd1f2c09
MB
8013fi
8014
f11781c5 8015if test x$CHECKDLM = xyes; then
dd1f2c09 8016
f11781c5
AK
8017pkg_failed=no
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8019$as_echo_n "checking for DLM... " >&6; }
8020
8021if test -n "$DLM_CFLAGS"; then
8022 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8023 elif test -n "$PKG_CONFIG"; then
8024 if test -n "$PKG_CONFIG" && \
8025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8026 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 8027 ac_status=$?
f11781c5
AK
8028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8029 test $ac_status = 0; }; then
8030 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 8031else
f11781c5
AK
8032 pkg_failed=yes
8033fi
8034 else
8035 pkg_failed=untried
8036fi
8037if test -n "$DLM_LIBS"; then
8038 pkg_cv_DLM_LIBS="$DLM_LIBS"
8039 elif test -n "$PKG_CONFIG"; then
8040 if test -n "$PKG_CONFIG" && \
8041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8042 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8043 ac_status=$?
8044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045 test $ac_status = 0; }; then
8046 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8047else
8048 pkg_failed=yes
8049fi
8050 else
8051 pkg_failed=untried
dd1f2c09
MB
8052fi
8053
dd1f2c09 8054
dd1f2c09 8055
f11781c5
AK
8056if test $pkg_failed = yes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058$as_echo "no" >&6; }
8059
8060if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8061 _pkg_short_errors_supported=yes
dd1f2c09 8062else
f11781c5 8063 _pkg_short_errors_supported=no
dd1f2c09 8064fi
f11781c5
AK
8065 if test $_pkg_short_errors_supported = yes; then
8066 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8067 else
8068 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8069 fi
8070 # Put the nasty error message in config.log where it belongs
8071 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 8072
f11781c5
AK
8073 NOTFOUND=0
8074 for ac_header in libdlm.h
8075do :
8076 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8077if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 8078 cat >>confdefs.h <<_ACEOF
f11781c5 8079#define HAVE_LIBDLM_H 1
dd1f2c09
MB
8080_ACEOF
8081
f11781c5
AK
8082else
8083 $bailout
dd1f2c09 8084fi
f8f6ec92
ZK
8085
8086done
8087
f11781c5
AK
8088 check_lib_no_libs dlm dlm_lock -lpthread
8089 if test $NOTFOUND = 0; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8091$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8092 DLM_LIBS="-ldlm -lpthread"
8093 HAVE_DLM=yes
8094 fi
8095elif test $pkg_failed = untried; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097$as_echo "no" >&6; }
8098 NOTFOUND=0
8099 for ac_header in libdlm.h
8100do :
8101 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8102if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8103 cat >>confdefs.h <<_ACEOF
8104#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
8105_ACEOF
8106
f8f6ec92 8107else
f11781c5 8108 $bailout
ad6254c5
AK
8109fi
8110
f11781c5 8111done
8b1a3214 8112
f11781c5
AK
8113 check_lib_no_libs dlm dlm_lock -lpthread
8114 if test $NOTFOUND = 0; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8116$as_echo "no pkg for libdlm, using -ldlm" >&6; }
8117 DLM_LIBS="-ldlm -lpthread"
8118 HAVE_DLM=yes
8119 fi
8b1a3214 8120else
f11781c5
AK
8121 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8122 DLM_LIBS=$pkg_cv_DLM_LIBS
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8124$as_echo "yes" >&6; }
8125 HAVE_DLM=yes
8b1a3214 8126fi
8b1a3214
AK
8127fi
8128
f11781c5
AK
8129if test x$CLVMD = xall; then
8130 CLVMD=none
8131 CLVMD_CMANAGERS=""
8132 CLVMD_NEEDS_QDISKD=no
8133 if test x$HAVE_CCS = xyes && \
8134 test x$HAVE_GULM = xyes; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8136$as_echo "Enabling clvmd gulm cluster manager" >&6; }
8137 CLVMD="$CLVMD,gulm"
8138 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8139 CLVMD_NEEDS_QDISKD=yes
8140 fi
8141 if test x$HAVE_CMAN = xyes && \
8142 test x$HAVE_DLM = xyes; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8144$as_echo "Enabling clvmd cman cluster manager" >&6; }
8145 CLVMD="$CLVMD,cman"
8146 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8147 CLVMD_NEEDS_QDISKD=yes
8148 fi
8149 if test x$HAVE_COROSYNC = xyes && \
8150 test x$HAVE_QUORUM = xyes && \
8151 test x$HAVE_CPG = xyes && \
8152 test x$HAVE_DLM = xyes && \
8153 test x$HAVE_CONFDB = xyes; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8155$as_echo "Enabling clvmd corosync cluster manager" >&6; }
8156 CLVMD="$CLVMD,corosync"
8157 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8158 fi
8159 if test x$HAVE_COROSYNC = xyes && \
8160 test x$HAVE_CPG = xyes && \
8161 test x$HAVE_SALCK = xyes; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8163$as_echo "Enabling clvmd openais cluster manager" >&6; }
8164 CLVMD="$CLVMD,openais"
8165 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8166 fi
8167 if test x$CLVMD_NEEDS_QDISKD != xno; then
8168 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8169 fi
8170 if test x$CLVMD = xnone; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8172$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
8173 fi
8174fi
8175
ad6254c5 8176################################################################################
f11781c5 8177if test "x$CLVMD" != xnone; then
ad6254c5 8178
f11781c5
AK
8179# Check whether --with-clvmd-pidfile was given.
8180if test "${with_clvmd_pidfile+set}" = set; then :
8181 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 8182else
f11781c5 8183 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 8184fi
7a197a62 8185
ad6254c5 8186
f11781c5
AK
8187cat >>confdefs.h <<_ACEOF
8188#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8189_ACEOF
ad6254c5 8190
ad6254c5 8191fi
7a197a62 8192
f11781c5
AK
8193################################################################################
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8195$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8196# Check whether --enable-cmirrord was given.
8197if test "${enable_cmirrord+set}" = set; then :
8198 enableval=$enable_cmirrord; CMIRRORD=$enableval
8199else
8200 CMIRRORD=no
8201fi
8202
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8204$as_echo "$CMIRRORD" >&6; }
ad6254c5 8205
f11781c5 8206BUILD_CMIRRORD=$CMIRRORD
7a197a62 8207
f11781c5
AK
8208################################################################################
8209if test "x$BUILD_CMIRRORD" = xyes; then
8210
8211# Check whether --with-cmirrord-pidfile was given.
8212if test "${with_cmirrord_pidfile+set}" = set; then :
8213 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8214else
f11781c5 8215 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8216fi
ad6254c5 8217
72b2cb61 8218
f11781c5
AK
8219cat >>confdefs.h <<_ACEOF
8220#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8221_ACEOF
8222
ad6254c5
AK
8223fi
8224
f11781c5
AK
8225################################################################################
8226if [ "x$BUILD_CMIRRORD" = xyes ]; then
8227 if test x$PKGCONFIG_INIT != x1; then
8228 pkg_config_init
8229 fi
ad6254c5 8230
f11781c5
AK
8231pkg_failed=no
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8233$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8234
f11781c5
AK
8235if test -n "$SACKPT_CFLAGS"; then
8236 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8237 elif test -n "$PKG_CONFIG"; then
8238 if test -n "$PKG_CONFIG" && \
8239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8240 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8241 ac_status=$?
8242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243 test $ac_status = 0; }; then
8244 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8245else
f11781c5
AK
8246 pkg_failed=yes
8247fi
8248 else
8249 pkg_failed=untried
8250fi
8251if test -n "$SACKPT_LIBS"; then
8252 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8253 elif test -n "$PKG_CONFIG"; then
8254 if test -n "$PKG_CONFIG" && \
8255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8256 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8257 ac_status=$?
f11781c5
AK
8258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; }; then
8260 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8261else
f11781c5
AK
8262 pkg_failed=yes
8263fi
8264 else
8265 pkg_failed=untried
8266fi
539f4a77
ZK
8267
8268
539f4a77 8269
f11781c5
AK
8270if test $pkg_failed = yes; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272$as_echo "no" >&6; }
8273
8274if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8275 _pkg_short_errors_supported=yes
539f4a77 8276else
f11781c5 8277 _pkg_short_errors_supported=no
539f4a77 8278fi
f11781c5
AK
8279 if test $_pkg_short_errors_supported = yes; then
8280 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8281 else
8282 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8283 fi
8284 # Put the nasty error message in config.log where it belongs
8285 echo "$SACKPT_PKG_ERRORS" >&5
8286
8287 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8288
8289$SACKPT_PKG_ERRORS
8290
8291Consider adjusting the PKG_CONFIG_PATH environment variable if you
8292installed software in a non-standard prefix.
8293
8294Alternatively, you may set the environment variables SACKPT_CFLAGS
8295and SACKPT_LIBS to avoid the need to call pkg-config.
8296See the pkg-config man page for more details." "$LINENO" 5
8297
8298elif test $pkg_failed = untried; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
8301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8303as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8304is in your PATH or set the PKG_CONFIG environment variable to the full
8305path to pkg-config.
8306
8307Alternatively, you may set the environment variables SACKPT_CFLAGS
8308and SACKPT_LIBS to avoid the need to call pkg-config.
8309See the pkg-config man page for more details.
8310
8311To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8312See \`config.log' for more details" "$LINENO" 5; }
8313
539f4a77 8314else
f11781c5
AK
8315 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8316 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8318$as_echo "yes" >&6; }
539f4a77 8319
539f4a77 8320fi
f11781c5 8321 if test x$HAVE_CPG != xyes; then
539f4a77 8322
f11781c5
AK
8323pkg_failed=no
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8325$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8326
f11781c5
AK
8327if test -n "$CPG_CFLAGS"; then
8328 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8329 elif test -n "$PKG_CONFIG"; then
8330 if test -n "$PKG_CONFIG" && \
8331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8332 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8333 ac_status=$?
f11781c5
AK
8334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8335 test $ac_status = 0; }; then
8336 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8337else
f11781c5
AK
8338 pkg_failed=yes
8339fi
8340 else
8341 pkg_failed=untried
8342fi
8343if test -n "$CPG_LIBS"; then
8344 pkg_cv_CPG_LIBS="$CPG_LIBS"
8345 elif test -n "$PKG_CONFIG"; then
8346 if test -n "$PKG_CONFIG" && \
8347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8348 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8349 ac_status=$?
8350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8351 test $ac_status = 0; }; then
8352 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8353else
8354 pkg_failed=yes
8355fi
8356 else
8357 pkg_failed=untried
8358fi
8359
8360
8361
8362if test $pkg_failed = yes; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364$as_echo "no" >&6; }
ad6254c5 8365
f11781c5
AK
8366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8367 _pkg_short_errors_supported=yes
8368else
8369 _pkg_short_errors_supported=no
ad6254c5 8370fi
f11781c5
AK
8371 if test $_pkg_short_errors_supported = yes; then
8372 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8373 else
8374 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8375 fi
8376 # Put the nasty error message in config.log where it belongs
8377 echo "$CPG_PKG_ERRORS" >&5
8378
8379 as_fn_error $? "Package requirements (libcpg) were not met:
8380
8381$CPG_PKG_ERRORS
8382
8383Consider adjusting the PKG_CONFIG_PATH environment variable if you
8384installed software in a non-standard prefix.
8385
8386Alternatively, you may set the environment variables CPG_CFLAGS
8387and CPG_LIBS to avoid the need to call pkg-config.
8388See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8389
f11781c5
AK
8390elif test $pkg_failed = untried; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
8393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8394$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8395as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8396is in your PATH or set the PKG_CONFIG environment variable to the full
8397path to pkg-config.
539f4a77 8398
f11781c5
AK
8399Alternatively, you may set the environment variables CPG_CFLAGS
8400and CPG_LIBS to avoid the need to call pkg-config.
8401See the pkg-config man page for more details.
539f4a77 8402
f11781c5
AK
8403To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8404See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8405
539f4a77 8406else
f11781c5
AK
8407 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8408 CPG_LIBS=$pkg_cv_CPG_LIBS
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410$as_echo "yes" >&6; }
bc1024f8 8411
f11781c5
AK
8412fi
8413 fi
8414fi
8415
8416################################################################################
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8418$as_echo_n "checking whether to enable debugging... " >&6; }
8419# Check whether --enable-debug was given.
8420if test "${enable_debug+set}" = set; then :
8421 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8422else
f11781c5
AK
8423 DEBUG=no
8424fi
8425
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8427$as_echo "$DEBUG" >&6; }
539f4a77 8428
f11781c5
AK
8429if test x$DEBUG = xyes; then
8430 COPTIMISE_FLAG=
8431else
8432 CSCOPE_CMD=
06e459df
JM
8433fi
8434
f11781c5
AK
8435################################################################################
8436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8437$as_echo_n "checking for C optimisation flag... " >&6; }
8438
8439# Check whether --with-optimisation was given.
8440if test "${with_optimisation+set}" = set; then :
8441 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8442fi
539f4a77 8443
f11781c5
AK
8444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8445$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8446
f11781c5
AK
8447################################################################################
8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8449$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8450# Check whether --enable-profiling was given.
8451if test "${enable_profiling+set}" = set; then :
8452 enableval=$enable_profiling; PROFILING=$enableval
8453else
8454 PROFILING=no
539f4a77
ZK
8455fi
8456
f11781c5
AK
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8458$as_echo "$PROFILING" >&6; }
8459
8460if test "x$PROFILING" = xyes; then
8461 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8462 # Extract the first word of "lcov", so it can be a program name with args.
8463set dummy lcov; ac_word=$2
8464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465$as_echo_n "checking for $ac_word... " >&6; }
8466if test "${ac_cv_path_LCOV+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
539f4a77 8468else
f11781c5
AK
8469 case $LCOV in
8470 [\\/]* | ?:[\\/]*)
8471 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8472 ;;
8473 *)
8474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475for as_dir in $PATH
8476do
8477 IFS=$as_save_IFS
8478 test -z "$as_dir" && as_dir=.
8479 for ac_exec_ext in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8481 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483 break 2
8484 fi
8485done
8486 done
8487IFS=$as_save_IFS
539f4a77 8488
f11781c5
AK
8489 ;;
8490esac
8491fi
8492LCOV=$ac_cv_path_LCOV
8493if test -n "$LCOV"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8495$as_echo "$LCOV" >&6; }
8496else
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
539f4a77
ZK
8499fi
8500
bc1024f8 8501
f11781c5
AK
8502 # Extract the first word of "genhtml", so it can be a program name with args.
8503set dummy genhtml; ac_word=$2
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
8506if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8507 $as_echo_n "(cached) " >&6
ad6254c5 8508else
f11781c5
AK
8509 case $GENHTML in
8510 [\\/]* | ?:[\\/]*)
8511 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8512 ;;
8513 *)
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515for as_dir in $PATH
8516do
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8524 fi
8525done
8526 done
8527IFS=$as_save_IFS
8a2fc586 8528
f11781c5
AK
8529 ;;
8530esac
8531fi
8532GENHTML=$ac_cv_path_GENHTML
8533if test -n "$GENHTML"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8535$as_echo "$GENHTML" >&6; }
8536else
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538$as_echo "no" >&6; }
8539fi
8a2fc586 8540
8a2fc586 8541
f11781c5
AK
8542 if test -z "$LCOV" -o -z "$GENHTML"; then
8543 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8544 fi
8545 # Extract the first word of "genpng", so it can be a program name with args.
8546set dummy genpng; ac_word=$2
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548$as_echo_n "checking for $ac_word... " >&6; }
8549if test "${ac_cv_path_GENPNG+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8551else
8552 case $GENPNG in
8553 [\\/]* | ?:[\\/]*)
8554 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8555 ;;
8556 *)
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568done
8569 done
8570IFS=$as_save_IFS
ad6254c5 8571
f11781c5 8572 ;;
7a197a62 8573esac
f11781c5
AK
8574fi
8575GENPNG=$ac_cv_path_GENPNG
8576if test -n "$GENPNG"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8578$as_echo "$GENPNG" >&6; }
ad6254c5 8579else
f11781c5
AK
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581$as_echo "no" >&6; }
8582fi
8583
8584
8585 if test -n "$GENPNG"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8587$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8588 if $GENPNG --help > /dev/null 2>&1 ; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8590$as_echo "ok" >&6; }
8591 GENHTML="$GENHTML --frames"
8592 else
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8594$as_echo "not supported" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8596$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8597 GENPNG=
8598 fi
8599 fi
8600fi
ad6254c5 8601
f11781c5
AK
8602################################################################################
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8604$as_echo_n "checking whether to enable unit testing... " >&6; }
8605# Check whether --enable-testing was given.
8606if test "${enable_testing+set}" = set; then :
8607 enableval=$enable_testing; TESTING=$enableval
8608else
8609 TESTING=no
ad6254c5 8610fi
7a197a62 8611
f11781c5
AK
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8613$as_echo "$TESTING" >&6; }
72b2cb61 8614
f11781c5
AK
8615if test "$TESTING" = yes; then
8616 # Extract the first word of "ruby1.9", so it can be a program name with args.
8617set dummy ruby1.9; ac_word=$2
8618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619$as_echo_n "checking for $ac_word... " >&6; }
8620if test "${ac_cv_path_RUBY19+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8622else
8623 case $RUBY19 in
8624 [\\/]* | ?:[\\/]*)
8625 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8626 ;;
8627 *)
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
bc1024f8 8639done
f11781c5
AK
8640 done
8641IFS=$as_save_IFS
ad6254c5 8642
f11781c5
AK
8643 ;;
8644esac
ad6254c5 8645fi
f11781c5
AK
8646RUBY19=$ac_cv_path_RUBY19
8647if test -n "$RUBY19"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8649$as_echo "$RUBY19" >&6; }
ad6254c5 8650else
f11781c5
AK
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652$as_echo "no" >&6; }
7a197a62
AK
8653fi
8654
ad6254c5 8655
f11781c5
AK
8656 # Extract the first word of "valgrind", so it can be a program name with args.
8657set dummy valgrind; ac_word=$2
8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8659$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8660if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8661 $as_echo_n "(cached) " >&6
ad6254c5 8662else
f11781c5 8663 case $VALGRIND in
ad6254c5 8664 [\\/]* | ?:[\\/]*)
f11781c5 8665 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8666 ;;
8667 *)
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669for as_dir in $PATH
8670do
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
f11781c5 8673 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8675 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8677 break 2
8678 fi
8679done
f11781c5 8680 done
7a197a62 8681IFS=$as_save_IFS
ad6254c5
AK
8682
8683 ;;
8684esac
8685fi
f11781c5
AK
8686VALGRIND=$ac_cv_path_VALGRIND
8687if test -n "$VALGRIND"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8689$as_echo "$VALGRIND" >&6; }
ad6254c5 8690else
f11781c5 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8692$as_echo "no" >&6; }
ad6254c5
AK
8693fi
8694
7a197a62 8695
f11781c5
AK
8696 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8697 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8698 fi
8699fi
ad6254c5 8700
f11781c5
AK
8701################################################################################
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8703$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8704# Check whether --enable-valgrind_pool was given.
8705if test "${enable_valgrind_pool+set}" = set; then :
8706 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8707else
8708 VALGRIND_POOL=no
8709fi
8710
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8712$as_echo "$VALGRIND_POOL" >&6; }
8713
8714if test "$VALGRIND_POOL" = yes; then
8715 for ac_header in valgrind/memcheck.h
8716do :
8717 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8718if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8719 cat >>confdefs.h <<_ACEOF
8720#define HAVE_VALGRIND_MEMCHECK_H 1
8721_ACEOF
ad6254c5 8722
ad6254c5 8723else
f11781c5 8724 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8725fi
8726
f11781c5
AK
8727done
8728
8729
8730$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8731
ad6254c5
AK
8732fi
8733
8734################################################################################
f11781c5
AK
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8736$as_echo_n "checking whether to use device-mapper... " >&6; }
8737# Check whether --enable-devmapper was given.
8738if test "${enable_devmapper+set}" = set; then :
8739 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8740fi
8741
f11781c5
AK
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8743$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8744
f11781c5 8745if test x$DEVMAPPER = xyes; then
ad6254c5 8746
f11781c5
AK
8747$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8748
8749fi
8750
8751################################################################################
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8753$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8754# Check whether --enable-udev_sync was given.
8755if test "${enable_udev_sync+set}" = set; then :
8756 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8757else
f11781c5 8758 UDEV_SYNC=no
7a197a62 8759fi
ad6254c5 8760
f11781c5
AK
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8762$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8763
f11781c5
AK
8764if test x$UDEV_SYNC = xyes; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_queue_get_udev_is_active in -ludev" >&5
8766$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
8767if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769else
8770 ac_check_lib_save_LIBS=$LIBS
8771LIBS="-ludev $LIBS"
8772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773/* end confdefs.h. */
7a197a62 8774
f11781c5
AK
8775/* Override any GCC internal prototype to avoid an error.
8776 Use char because int might match the return type of a GCC
8777 builtin and then its argument prototype would still apply. */
8778#ifdef __cplusplus
8779extern "C"
8780#endif
8781char udev_queue_get_udev_is_active ();
8782int
8783main ()
8784{
8785return udev_queue_get_udev_is_active ();
8786 ;
8787 return 0;
8788}
8789_ACEOF
8790if ac_fn_c_try_link "$LINENO"; then :
8791 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
68f2de6d 8792else
f11781c5
AK
8793 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
8794fi
8795rm -f core conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797LIBS=$ac_check_lib_save_LIBS
8798fi
8799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
8800$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
8801if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then :
8802 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
8803else
8804 as_fn_error $? "bailing out... libudev library is required" "$LINENO" 5
68f2de6d
AK
8805fi
8806
8807
f11781c5 8808$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8809
f11781c5
AK
8810fi
8811
8812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8813$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8814# Check whether --enable-udev_rules was given.
8815if test "${enable_udev_rules+set}" = set; then :
8816 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8817else
f11781c5 8818 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8819fi
8820
f11781c5
AK
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8822$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8823
a5f46f6a 8824################################################################################
f11781c5
AK
8825# Check whether --enable-compat was given.
8826if test "${enable_compat+set}" = set; then :
8827 enableval=$enable_compat; DM_COMPAT=$enableval
8828else
8829 DM_COMPAT=no
8830fi
a5f46f6a 8831
f11781c5
AK
8832
8833################################################################################
8834# Check whether --enable-units-compat was given.
8835if test "${enable_units_compat+set}" = set; then :
8836 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8837else
f11781c5 8838 UNITS_COMPAT=no
a5f46f6a
AK
8839fi
8840
8841
f11781c5 8842if test x$UNITS_COMPAT = xyes; then
78ce7acc 8843
f11781c5
AK
8844$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8845
8846fi
8847
8848################################################################################
8849# Check whether --enable-ioctl was given.
8850if test "${enable_ioctl+set}" = set; then :
8851 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8852fi
8853
a5f46f6a 8854
ad6254c5 8855################################################################################
f11781c5
AK
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8857$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8858# Check whether --enable-o_direct was given.
8859if test "${enable_o_direct+set}" = set; then :
8860 enableval=$enable_o_direct; ODIRECT=$enableval
8861fi
ad6254c5 8862
f11781c5
AK
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8864$as_echo "$ODIRECT" >&6; }
8865
8866if test x$ODIRECT = xyes; then
8867
8868$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8869
ad6254c5 8870fi
ad6254c5 8871
f11781c5
AK
8872################################################################################
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8874$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8875# Check whether --enable-applib was given.
8876if test "${enable_applib+set}" = set; then :
8877 enableval=$enable_applib; APPLIB=$enableval
8878else
8879 APPLIB=no
ad6254c5 8880fi
7a197a62 8881
f11781c5
AK
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8883$as_echo "$APPLIB" >&6; }
ad6254c5 8884
f11781c5
AK
8885test x$APPLIB = xyes \
8886 && LVM2APP_LIB=-llvm2app \
8887 || LVM2APP_LIB=
ad6254c5 8888
f11781c5
AK
8889################################################################################
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8891$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8892# Check whether --enable-cmdlib was given.
8893if test "${enable_cmdlib+set}" = set; then :
8894 enableval=$enable_cmdlib; CMDLIB=$enableval
8895else
8896 CMDLIB=no
ad6254c5 8897fi
7a197a62 8898
f11781c5
AK
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8900$as_echo "$CMDLIB" >&6; }
7a197a62 8901
f11781c5
AK
8902test x$CMDLIB = xyes \
8903 && LVM2CMD_LIB=-llvm2cmd \
8904 || LVM2CMD_LIB=
8905
8906################################################################################
8907# Check whether --enable-pkgconfig was given.
8908if test "${enable_pkgconfig+set}" = set; then :
8909 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8910else
f11781c5 8911 PKGCONFIG=no
ad6254c5 8912fi
ad6254c5 8913
ad6254c5 8914
f11781c5
AK
8915################################################################################
8916# Check whether --enable-write_install was given.
8917if test "${enable_write_install+set}" = set; then :
8918 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8919else
f11781c5 8920 WRITE_INSTALL=no
ad6254c5
AK
8921fi
8922
ad6254c5 8923
f11781c5
AK
8924################################################################################
8925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8926$as_echo_n "checking whether to install fsadm... " >&6; }
8927# Check whether --enable-fsadm was given.
8928if test "${enable_fsadm+set}" = set; then :
8929 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8930fi
8931
f11781c5
AK
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8933$as_echo "$FSADM" >&6; }
ad6254c5 8934
f11781c5
AK
8935################################################################################
8936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8937$as_echo_n "checking whether to use dmeventd... " >&6; }
8938# Check whether --enable-dmeventd was given.
8939if test "${enable_dmeventd+set}" = set; then :
8940 enableval=$enable_dmeventd; DMEVENTD=$enableval
8941fi
ad6254c5 8942
f11781c5
AK
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8944$as_echo "$DMEVENTD" >&6; }
ad6254c5 8945
f11781c5 8946BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8947
f11781c5
AK
8948if test x$DMEVENTD = xyes; then
8949 if test x$MIRRORS != xinternal; then
8950 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8951 " "$LINENO" 5
8952 fi
8953 if test x$CMDLIB = xno; then
8954 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8955 " "$LINENO" 5
8956 fi
8957fi
ad6254c5 8958
f11781c5 8959if test x$DMEVENTD = xyes; then
ad6254c5 8960
f11781c5 8961$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8962
f11781c5 8963fi
ad6254c5 8964
f11781c5 8965################################################################################
ad6254c5 8966
f11781c5
AK
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8968$as_echo_n "checking for getline in -lc... " >&6; }
8969if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8970 $as_echo_n "(cached) " >&6
ad6254c5 8971else
f11781c5
AK
8972 ac_check_lib_save_LIBS=$LIBS
8973LIBS="-lc $LIBS"
8974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8975/* end confdefs.h. */
f11781c5
AK
8976
8977/* Override any GCC internal prototype to avoid an error.
8978 Use char because int might match the return type of a GCC
8979 builtin and then its argument prototype would still apply. */
8980#ifdef __cplusplus
8981extern "C"
8982#endif
8983char getline ();
8984int
8985main ()
8986{
8987return getline ();
8988 ;
8989 return 0;
8990}
ad6254c5 8991_ACEOF
f11781c5
AK
8992if ac_fn_c_try_link "$LINENO"; then :
8993 ac_cv_lib_c_getline=yes
ad6254c5 8994else
f11781c5
AK
8995 ac_cv_lib_c_getline=no
8996fi
8997rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999LIBS=$ac_check_lib_save_LIBS
9000fi
9001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9002$as_echo "$ac_cv_lib_c_getline" >&6; }
9003if test "x$ac_cv_lib_c_getline" = x""yes; then :
9004
9005$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 9006
ad6254c5 9007fi
7a197a62 9008
ad6254c5 9009
f11781c5
AK
9010################################################################################
9011
9012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9013$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9014if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
9016else
9017 ac_check_lib_save_LIBS=$LIBS
9018LIBS="-lc $LIBS"
9019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9020/* end confdefs.h. */
f11781c5
AK
9021
9022/* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9025#ifdef __cplusplus
9026extern "C"
9027#endif
9028char canonicalize_file_name ();
9029int
9030main ()
9031{
9032return canonicalize_file_name ();
9033 ;
9034 return 0;
9035}
ad6254c5 9036_ACEOF
f11781c5
AK
9037if ac_fn_c_try_link "$LINENO"; then :
9038 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 9039else
f11781c5
AK
9040 ac_cv_lib_c_canonicalize_file_name=no
9041fi
9042rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9044LIBS=$ac_check_lib_save_LIBS
9045fi
9046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9047$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9048if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9049
9050$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 9051
ad6254c5 9052fi
7a197a62 9053
ad6254c5 9054
f11781c5
AK
9055################################################################################
9056if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9057 then exec_prefix="";
9058fi;
7a197a62 9059
f11781c5
AK
9060################################################################################
9061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9062$as_echo_n "checking for dlopen in -ldl... " >&6; }
9063if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 9064 $as_echo_n "(cached) " >&6
ad6254c5 9065else
f11781c5
AK
9066 ac_check_lib_save_LIBS=$LIBS
9067LIBS="-ldl $LIBS"
9068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069/* end confdefs.h. */
ad6254c5 9070
f11781c5
AK
9071/* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9074#ifdef __cplusplus
9075extern "C"
9076#endif
9077char dlopen ();
9078int
9079main ()
9080{
9081return dlopen ();
9082 ;
9083 return 0;
9084}
ad6254c5 9085_ACEOF
f11781c5
AK
9086if ac_fn_c_try_link "$LINENO"; then :
9087 ac_cv_lib_dl_dlopen=yes
ad6254c5 9088else
f11781c5 9089 ac_cv_lib_dl_dlopen=no
795ca3e5 9090fi
f11781c5
AK
9091rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093LIBS=$ac_check_lib_save_LIBS
9094fi
9095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9096$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9097if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 9098
ad6254c5 9099
f11781c5 9100$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 9101
f11781c5
AK
9102 DL_LIBS="-ldl"
9103 HAVE_LIBDL=yes
9104else
795ca3e5 9105
f11781c5
AK
9106 DL_LIBS=
9107 HAVE_LIBDL=no
9108fi
8106cdd5 9109
ad6254c5 9110
f11781c5
AK
9111################################################################################
9112if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9113 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9114 \) -a "x$STATIC_LINK" = xyes ];
9115 then as_fn_error $? "Features cannot be 'shared' when building statically
9116" "$LINENO" 5
9117fi
ad6254c5 9118
f11781c5
AK
9119################################################################################
9120if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9122$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9123if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9124 $as_echo_n "(cached) " >&6
795ca3e5 9125else
f11781c5
AK
9126 ac_check_lib_save_LIBS=$LIBS
9127LIBS="-lpthread $LIBS"
9128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9129/* end confdefs.h. */
8a2fc586 9130
f11781c5
AK
9131/* Override any GCC internal prototype to avoid an error.
9132 Use char because int might match the return type of a GCC
9133 builtin and then its argument prototype would still apply. */
9134#ifdef __cplusplus
9135extern "C"
ad6254c5 9136#endif
f11781c5
AK
9137char pthread_mutex_lock ();
9138int
9139main ()
9140{
9141return pthread_mutex_lock ();
9142 ;
9143 return 0;
9144}
9145_ACEOF
9146if ac_fn_c_try_link "$LINENO"; then :
9147 ac_cv_lib_pthread_pthread_mutex_lock=yes
9148else
9149 ac_cv_lib_pthread_pthread_mutex_lock=no
9150fi
9151rm -f core conftest.err conftest.$ac_objext \
9152 conftest$ac_exeext conftest.$ac_ext
9153LIBS=$ac_check_lib_save_LIBS
9154fi
9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9156$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9157if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9158 PTHREAD_LIBS="-lpthread"
9159else
9160 hard_bailout
9161fi
9162
9163fi
9164
9165################################################################################
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9167$as_echo_n "checking whether to enable selinux support... " >&6; }
9168# Check whether --enable-selinux was given.
9169if test "${enable_selinux+set}" = set; then :
9170 enableval=$enable_selinux; SELINUX=$enableval
9171fi
9172
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9174$as_echo "$SELINUX" >&6; }
8a2fc586 9175
f11781c5
AK
9176################################################################################
9177if test x$SELINUX = xyes; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9179$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9180if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182else
9183 ac_check_lib_save_LIBS=$LIBS
9184LIBS="-lsepol $LIBS"
9185cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186/* end confdefs.h. */
8a2fc586 9187
7a197a62
AK
9188/* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9191#ifdef __cplusplus
9192extern "C"
ad6254c5 9193#endif
f11781c5 9194char sepol_check_context ();
ad6254c5
AK
9195int
9196main ()
9197{
f11781c5 9198return sepol_check_context ();
ad6254c5
AK
9199 ;
9200 return 0;
9201}
9202_ACEOF
f11781c5
AK
9203if ac_fn_c_try_link "$LINENO"; then :
9204 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9205else
f11781c5
AK
9206 ac_cv_lib_sepol_sepol_check_context=no
9207fi
9208rm -f core conftest.err conftest.$ac_objext \
9209 conftest$ac_exeext conftest.$ac_ext
9210LIBS=$ac_check_lib_save_LIBS
80992638 9211fi
f11781c5
AK
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9213$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9214if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9215
80992638 9216
f11781c5
AK
9217$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9218
9219 SELINUX_LIBS="-lsepol"
8106cdd5 9220fi
795ca3e5 9221
f11781c5
AK
9222
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9224$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9225if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9226 $as_echo_n "(cached) " >&6
25fbec5b 9227else
f11781c5
AK
9228 ac_check_lib_save_LIBS=$LIBS
9229LIBS="-lselinux $LIBS"
9230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9231/* end confdefs.h. */
80992638 9232
7a197a62
AK
9233/* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
ad6254c5 9235 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9236#ifdef __cplusplus
9237extern "C"
9238#endif
f11781c5 9239char is_selinux_enabled ();
ad6254c5
AK
9240int
9241main ()
9242{
f11781c5 9243return is_selinux_enabled ();
ad6254c5
AK
9244 ;
9245 return 0;
9246}
9247_ACEOF
f11781c5
AK
9248if ac_fn_c_try_link "$LINENO"; then :
9249 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9250else
f11781c5 9251 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9252fi
f11781c5
AK
9253rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
9255LIBS=$ac_check_lib_save_LIBS
25fbec5b 9256fi
f11781c5
AK
9257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9258$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9259if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9260
f11781c5
AK
9261 for ac_header in selinux/selinux.h
9262do :
9263 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9264if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9265 cat >>confdefs.h <<_ACEOF
9266#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9267_ACEOF
795ca3e5 9268
25fbec5b 9269else
f11781c5 9270 hard_bailout
795ca3e5 9271fi
795ca3e5 9272
f11781c5 9273done
795ca3e5 9274
f11781c5
AK
9275 for ac_header in selinux/label.h
9276do :
9277 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9278if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9279 cat >>confdefs.h <<_ACEOF
9280#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9281_ACEOF
ad6254c5 9282
ad6254c5 9283fi
7a197a62 9284
f11781c5 9285done
7a197a62 9286
ad6254c5 9287
f11781c5 9288$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9289
f11781c5
AK
9290 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9291 SELINUX_PC="libselinux"
9292 HAVE_SELINUX=yes
ad6254c5 9293else
8106cdd5 9294
f11781c5
AK
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9296$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9297 SELINUX_LIBS=
9298 SELINUX_PC=
9299 HAVE_SELINUX=no
795ca3e5 9300fi
ad6254c5 9301
795ca3e5
AK
9302fi
9303
f11781c5
AK
9304################################################################################
9305if test x$REALTIME = xyes; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9307$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9308if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9309 $as_echo_n "(cached) " >&6
26e7f2e0 9310else
f11781c5
AK
9311 ac_check_lib_save_LIBS=$LIBS
9312LIBS="-lrt $LIBS"
9313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9314/* end confdefs.h. */
ad6254c5 9315
f11781c5
AK
9316/* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
9319#ifdef __cplusplus
9320extern "C"
9321#endif
9322char clock_gettime ();
ad6254c5
AK
9323int
9324main ()
9325{
f11781c5 9326return clock_gettime ();
ad6254c5
AK
9327 ;
9328 return 0;
9329}
9330_ACEOF
f11781c5
AK
9331if ac_fn_c_try_link "$LINENO"; then :
9332 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9333else
f11781c5 9334 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9335fi
f11781c5
AK
9336rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9339fi
f11781c5
AK
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9341$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9342if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9343 HAVE_REALTIME=yes
9344else
9345 HAVE_REALTIME=no
8106cdd5 9346fi
ad6254c5 9347
ad6254c5 9348
f11781c5 9349 if test x$HAVE_REALTIME = xyes; then
7a197a62 9350
f11781c5 9351$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9352
f11781c5
AK
9353 LIBS="-lrt $LIBS"
9354 else
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9356$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9357 fi
9358fi
9359
9360################################################################################
9361for ac_header in getopt.h
9362do :
9363 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9364if test "x$ac_cv_header_getopt_h" = x""yes; then :
9365 cat >>confdefs.h <<_ACEOF
9366#define HAVE_GETOPT_H 1
9367_ACEOF
9368
9369$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9370
ad6254c5 9371fi
7a197a62 9372
f11781c5 9373done
ad6254c5 9374
7a197a62 9375
f11781c5
AK
9376################################################################################
9377if test x$READLINE != xno; then
9378 lvm_saved_libs=$LIBS
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9380$as_echo_n "checking for library containing tgetent... " >&6; }
9381if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9382 $as_echo_n "(cached) " >&6
ad6254c5 9383else
f11781c5
AK
9384 ac_func_search_save_LIBS=$LIBS
9385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h. */
ad6254c5 9387
f11781c5
AK
9388/* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9391#ifdef __cplusplus
9392extern "C"
9393#endif
9394char tgetent ();
9395int
9396main ()
9397{
9398return tgetent ();
9399 ;
9400 return 0;
9401}
ad6254c5 9402_ACEOF
f11781c5
AK
9403for ac_lib in '' tinfo ncurses curses termcap termlib; do
9404 if test -z "$ac_lib"; then
9405 ac_res="none required"
9406 else
9407 ac_res=-l$ac_lib
9408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9409 fi
9410 if ac_fn_c_try_link "$LINENO"; then :
9411 ac_cv_search_tgetent=$ac_res
9412fi
9413rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext
9415 if test "${ac_cv_search_tgetent+set}" = set; then :
9416 break
9417fi
9418done
9419if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9420
80992638 9421else
f11781c5 9422 ac_cv_search_tgetent=no
b896caa1 9423fi
f11781c5
AK
9424rm conftest.$ac_ext
9425LIBS=$ac_func_search_save_LIBS
9426fi
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9428$as_echo "$ac_cv_search_tgetent" >&6; }
9429ac_res=$ac_cv_search_tgetent
9430if test "$ac_res" != no; then :
9431 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9432 READLINE_LIBS=$ac_cv_search_tgetent
9433else
ad6254c5 9434
f11781c5
AK
9435 if test "$READLINE" = yes; then
9436 as_fn_error $? "termcap could not be found which is required for the
9437--enable-readline option (which is enabled by default). Either disable readline
9438support with --disable-readline or download and install termcap from:
9439 ftp.gnu.org/gnu/termcap
9440Note: if you are using precompiled packages you will also need the development
9441 package as well (which may be called termcap-devel or something similar).
9442Note: (n)curses also seems to work as a substitute for termcap. This was
9443 not found either - but you could try installing that as well." "$LINENO" 5
9444 fi
9445fi
b896caa1 9446
f11781c5
AK
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9448$as_echo_n "checking for readline in -lreadline... " >&6; }
9449if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9450 $as_echo_n "(cached) " >&6
795ca3e5 9451else
f11781c5
AK
9452 ac_check_lib_save_LIBS=$LIBS
9453LIBS="-lreadline $LIBS"
9454cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9455/* end confdefs.h. */
8a2fc586 9456
f11781c5
AK
9457/* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9460#ifdef __cplusplus
9461extern "C"
ad6254c5 9462#endif
f11781c5
AK
9463char readline ();
9464int
9465main ()
9466{
9467return readline ();
9468 ;
9469 return 0;
9470}
9471_ACEOF
9472if ac_fn_c_try_link "$LINENO"; then :
9473 ac_cv_lib_readline_readline=yes
9474else
9475 ac_cv_lib_readline_readline=no
9476fi
9477rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479LIBS=$ac_check_lib_save_LIBS
9480fi
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9482$as_echo "$ac_cv_lib_readline_readline" >&6; }
9483if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9484
8a2fc586 9485
f11781c5
AK
9486$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9487
9488 LIBS=$lvm_saved_libs
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9490$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9491if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9493else
9494 ac_check_lib_save_LIBS=$LIBS
9495LIBS="-lreadline $LIBS"
9496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497/* end confdefs.h. */
8a2fc586 9498
7a197a62
AK
9499/* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9502#ifdef __cplusplus
9503extern "C"
ad6254c5 9504#endif
f11781c5 9505char rl_line_buffer ();
ad6254c5
AK
9506int
9507main ()
9508{
f11781c5 9509return rl_line_buffer ();
ad6254c5
AK
9510 ;
9511 return 0;
9512}
9513_ACEOF
f11781c5
AK
9514if ac_fn_c_try_link "$LINENO"; then :
9515 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9516else
f11781c5
AK
9517 ac_cv_lib_readline_rl_line_buffer=no
9518fi
9519rm -f core conftest.err conftest.$ac_objext \
9520 conftest$ac_exeext conftest.$ac_ext
9521LIBS=$ac_check_lib_save_LIBS
9522fi
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9524$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9525if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9526 READLINE_LIBS="-lreadline"
9527else
9528
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9530$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9531 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9532
ad6254c5 9533fi
7a197a62 9534
f11781c5
AK
9535else
9536
9537 READLINE_LIBS=
9538 if test "$READLINE" = yes; then
9539 as_fn_error $? "GNU Readline could not be found which is required for the
9540--enable-readline option (which is enabled by default). Either disable readline
9541support with --disable-readline or download and install readline from:
9542 ftp.gnu.org/gnu/readline
9543Note: if you are using precompiled packages you will also need the development
9544package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9545 fi
ad6254c5 9546fi
f11781c5
AK
9547
9548 LIBS="$READLINE_LIBS $lvm_saved_libs"
9549 for ac_func in rl_completion_matches
9550do :
9551 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9552if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9553 cat >>confdefs.h <<_ACEOF
f11781c5 9554#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9555_ACEOF
9556
ad6254c5
AK
9557fi
9558done
9559
f11781c5 9560 LIBS=$lvm_saved_libs
ad6254c5
AK
9561fi
9562
f11781c5
AK
9563################################################################################
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9565$as_echo_n "checking whether to enable internationalisation... " >&6; }
9566# Check whether --enable-nls was given.
9567if test "${enable_nls+set}" = set; then :
9568 enableval=$enable_nls; INTL=$enableval
9569else
9570 INTL=no
9571fi
d911ec67 9572
f11781c5
AK
9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9574$as_echo "$INTL" >&6; }
9575
9576if test x$INTL = xyes; then
9577# FIXME - Move this - can be device-mapper too
9578 INTL_PACKAGE="lvm2"
9579 # Extract the first word of "msgfmt", so it can be a program name with args.
9580set dummy msgfmt; ac_word=$2
9581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582$as_echo_n "checking for $ac_word... " >&6; }
9583if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9584 $as_echo_n "(cached) " >&6
d911ec67 9585else
f11781c5
AK
9586 case $MSGFMT in
9587 [\\/]* | ?:[\\/]*)
9588 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9589 ;;
9590 *)
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592for as_dir in $PATH
9593do
9594 IFS=$as_save_IFS
9595 test -z "$as_dir" && as_dir=.
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 break 2
9601 fi
9602done
9603 done
9604IFS=$as_save_IFS
9605
9606 ;;
d911ec67 9607esac
f11781c5
AK
9608fi
9609MSGFMT=$ac_cv_path_MSGFMT
9610if test -n "$MSGFMT"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9612$as_echo "$MSGFMT" >&6; }
d911ec67 9613else
f11781c5
AK
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615$as_echo "no" >&6; }
9616fi
d911ec67 9617
f11781c5
AK
9618
9619 if [ "x$MSGFMT" == x ];
9620 then as_fn_error $? "msgfmt not found in path $PATH
9621 " "$LINENO" 5
9622 fi;
9623
9624
9625# Check whether --with-localedir was given.
9626if test "${with_localedir+set}" = set; then :
9627 withval=$with_localedir; LOCALEDIR=$withval
9628else
9629 LOCALEDIR='${prefix}/share/locale'
9630fi
9631
9632fi
9633
9634################################################################################
9635
9636# Check whether --with-confdir was given.
9637if test "${with_confdir+set}" = set; then :
9638 withval=$with_confdir; CONFDIR=$withval
9639else
9640 CONFDIR="/etc"
9641fi
9642
9643
9644
9645# Check whether --with-staticdir was given.
9646if test "${with_staticdir+set}" = set; then :
9647 withval=$with_staticdir; STATICDIR=$withval
9648else
9649 STATICDIR='${exec_prefix}/sbin'
9650fi
9651
9652
9653
9654# Check whether --with-usrlibdir was given.
9655if test "${with_usrlibdir+set}" = set; then :
9656 withval=$with_usrlibdir; usrlibdir=$withval
9657else
9658 usrlibdir='${prefix}/lib'
d911ec67
AK
9659fi
9660
d911ec67 9661
d911ec67 9662
f11781c5
AK
9663# Check whether --with-usrsbindir was given.
9664if test "${with_usrsbindir+set}" = set; then :
9665 withval=$with_usrsbindir; usrsbindir=$withval
9666else
9667 usrsbindir='${prefix}/sbin'
d911ec67
AK
9668fi
9669
d911ec67 9670
f11781c5 9671################################################################################
d911ec67 9672
f11781c5
AK
9673# Check whether --with-udev_prefix was given.
9674if test "${with_udev_prefix+set}" = set; then :
9675 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9676else
f11781c5 9677 udev_prefix='${exec_prefix}'
d911ec67 9678fi
d911ec67 9679
f11781c5
AK
9680
9681
9682# Check whether --with-udevdir was given.
9683if test "${with_udevdir+set}" = set; then :
9684 withval=$with_udevdir; udevdir=$withval
9685else
9686 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9687fi
f11781c5
AK
9688
9689
9690################################################################################
9691if test x$READLINE = xyes; then
9692 for ac_header in readline/readline.h readline/history.h
9693do :
9694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9695ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9696if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9697 cat >>confdefs.h <<_ACEOF
9698#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9699_ACEOF
9700
9701else
f11781c5 9702 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9703fi
9704
9705done
9706
9707fi
9708
f11781c5
AK
9709if test x$CLVMD != xnone; then
9710 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
9711do :
9712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9715 cat >>confdefs.h <<_ACEOF
9716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9717_ACEOF
ad6254c5 9718
f11781c5
AK
9719else
9720 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9721fi
7a197a62 9722
f11781c5 9723done
ad6254c5 9724
f11781c5
AK
9725 for ac_func in dup2 getmntent memmove select socket
9726do :
9727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9729if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9730 cat >>confdefs.h <<_ACEOF
9731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9732_ACEOF
ad6254c5 9733
f11781c5
AK
9734else
9735 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9736fi
f11781c5 9737done
7a197a62 9738
f11781c5
AK
9739 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9740# -lseq on Dynix/PTX, -lgen on Unixware.
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9742$as_echo_n "checking for library containing getmntent... " >&6; }
9743if test "${ac_cv_search_getmntent+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9745else
9746 ac_func_search_save_LIBS=$LIBS
9747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h. */
ad6254c5 9749
f11781c5
AK
9750/* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9753#ifdef __cplusplus
9754extern "C"
9755#endif
9756char getmntent ();
9757int
9758main ()
9759{
9760return getmntent ();
9761 ;
9762 return 0;
9763}
9764_ACEOF
9765for ac_lib in '' sun seq gen; do
9766 if test -z "$ac_lib"; then
9767 ac_res="none required"
9768 else
9769 ac_res=-l$ac_lib
9770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9771 fi
9772 if ac_fn_c_try_link "$LINENO"; then :
9773 ac_cv_search_getmntent=$ac_res
9774fi
9775rm -f core conftest.err conftest.$ac_objext \
9776 conftest$ac_exeext
9777 if test "${ac_cv_search_getmntent+set}" = set; then :
9778 break
9779fi
9780done
9781if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9782
ad6254c5 9783else
f11781c5 9784 ac_cv_search_getmntent=no
795ca3e5 9785fi
f11781c5
AK
9786rm conftest.$ac_ext
9787LIBS=$ac_func_search_save_LIBS
9788fi
9789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9790$as_echo "$ac_cv_search_getmntent" >&6; }
9791ac_res=$ac_cv_search_getmntent
9792if test "$ac_res" != no; then :
9793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9794 ac_cv_func_getmntent=yes
9795
9796$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9797
f11781c5
AK
9798else
9799 ac_cv_func_getmntent=no
8106cdd5 9800fi
f11781c5
AK
9801
9802
9803 for ac_header in sys/select.h sys/socket.h
9804do :
9805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9807if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9808 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9809#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9810_ACEOF
795ca3e5 9811
795ca3e5
AK
9812fi
9813
ad6254c5 9814done
80992638 9815
f11781c5
AK
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9817$as_echo_n "checking types of arguments for select... " >&6; }
9818if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9819 $as_echo_n "(cached) " >&6
83912faa 9820else
f11781c5
AK
9821 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9822 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9823 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9825/* end confdefs.h. */
9826$ac_includes_default
f11781c5
AK
9827#ifdef HAVE_SYS_SELECT_H
9828# include <sys/select.h>
9829#endif
9830#ifdef HAVE_SYS_SOCKET_H
9831# include <sys/socket.h>
9832#endif
9833
9834int
9835main ()
9836{
9837extern int select ($ac_arg1,
9838 $ac_arg234, $ac_arg234, $ac_arg234,
9839 $ac_arg5);
9840 ;
9841 return 0;
9842}
ad6254c5 9843_ACEOF
f11781c5
AK
9844if ac_fn_c_try_compile "$LINENO"; then :
9845 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 done
9849 done
9850done
9851# Provide a safe default value.
9852: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9853
ad6254c5 9854fi
f11781c5
AK
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9856$as_echo "$ac_cv_func_select_args" >&6; }
9857ac_save_IFS=$IFS; IFS=','
9858set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9859IFS=$ac_save_IFS
9860shift
7a197a62 9861
f11781c5
AK
9862cat >>confdefs.h <<_ACEOF
9863#define SELECT_TYPE_ARG1 $1
9864_ACEOF
ad6254c5 9865
f11781c5
AK
9866
9867cat >>confdefs.h <<_ACEOF
9868#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9869_ACEOF
f11781c5
AK
9870
9871
9872cat >>confdefs.h <<_ACEOF
9873#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9874_ACEOF
ad6254c5 9875
f11781c5
AK
9876rm -f conftest*
9877
ad6254c5 9878fi
7a197a62 9879
f11781c5
AK
9880if test x$CLUSTER != xnone; then
9881 for ac_header in sys/socket.h sys/un.h
9882do :
9883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9884ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9885if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9886 cat >>confdefs.h <<_ACEOF
9887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9888_ACEOF
ad6254c5 9889
f11781c5
AK
9890else
9891 as_fn_error $? "bailing out" "$LINENO" 5
9892fi
9893
9894done
9895
9896 for ac_func in socket
9897do :
9898 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9899if test "x$ac_cv_func_socket" = x""yes; then :
9900 cat >>confdefs.h <<_ACEOF
9901#define HAVE_SOCKET 1
9902_ACEOF
7a197a62 9903
80992638 9904else
f11781c5 9905 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9906fi
f11781c5 9907done
83912faa 9908
69792976 9909fi
f11781c5
AK
9910
9911if test x$DMEVENTD = xyes; then
9912 for ac_header in arpa/inet.h
9913do :
9914 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9915if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9916 cat >>confdefs.h <<_ACEOF
f11781c5 9917#define HAVE_ARPA_INET_H 1
ad6254c5 9918_ACEOF
69792976 9919
69792976 9920else
f11781c5 9921 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9922fi
9923
ad6254c5 9924done
69792976 9925
ad6254c5
AK
9926fi
9927
f11781c5
AK
9928if test x$HAVE_LIBDL = xyes; then
9929 for ac_header in dlfcn.h
9930do :
9931 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9932if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9933 cat >>confdefs.h <<_ACEOF
9934#define HAVE_DLFCN_H 1
a5f46f6a 9935_ACEOF
a5f46f6a 9936
f11781c5
AK
9937else
9938 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9939fi
9940
f11781c5 9941done
a5f46f6a 9942
a5f46f6a
AK
9943fi
9944
f11781c5
AK
9945if test x$INTL = xyes; then
9946 for ac_header in libintl.h
9947do :
9948 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9949if test "x$ac_cv_header_libintl_h" = x""yes; then :
9950 cat >>confdefs.h <<_ACEOF
9951#define HAVE_LIBINTL_H 1
9952_ACEOF
a5f46f6a 9953
a5f46f6a 9954else
f11781c5 9955 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9956fi
f11781c5
AK
9957
9958done
a5f46f6a
AK
9959
9960fi
f11781c5
AK
9961
9962if test x$UDEV_SYNC = xyes; then
9963 for ac_header in sys/ipc.h sys/sem.h
9964do :
9965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9966ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9967if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9968 cat >>confdefs.h <<_ACEOF
9969#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9970_ACEOF
9971
9972else
f11781c5 9973 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9974fi
9975
9976done
9977
9978fi
9979
a653923f
AK
9980################################################################################
9981# Extract the first word of "modprobe", so it can be a program name with args.
9982set dummy modprobe; ac_word=$2
f11781c5 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9984$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9985if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9986 $as_echo_n "(cached) " >&6
72b2cb61
AK
9987else
9988 case $MODPROBE_CMD in
9989 [\\/]* | ?:[\\/]*)
9990 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9991 ;;
9992 *)
9993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
f11781c5 9998 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 10000 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
10002 break 2
10003 fi
10004done
f11781c5 10005 done
7a197a62 10006IFS=$as_save_IFS
72b2cb61
AK
10007
10008 ;;
10009esac
10010fi
10011MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 10012if test -n "$MODPROBE_CMD"; then
f11781c5 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 10014$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 10015else
f11781c5 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 10017$as_echo "no" >&6; }
72b2cb61
AK
10018fi
10019
a653923f 10020
7a197a62 10021
a653923f 10022if test x$MODPROBE_CMD != x; then
72b2cb61
AK
10023
10024cat >>confdefs.h <<_ACEOF
10025#define MODPROBE_CMD "$MODPROBE_CMD"
10026_ACEOF
10027
a653923f
AK
10028fi
10029
b5c2529b 10030
a9b601e2
ZK
10031lvm_exec_prefix=$exec_prefix
10032test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10033test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10034
b5c2529b 10035cat >>confdefs.h <<_ACEOF
a9b601e2 10036#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
10037_ACEOF
10038
10039
10040if test "$CLVMD" != none; then
10041 clvmd_prefix=$ac_default_prefix
10042 test "$prefix" != NONE && clvmd_prefix=$prefix
10043
10044cat >>confdefs.h <<_ACEOF
10045#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10046_ACEOF
10047
10048fi
10049
80992638 10050################################################################################
93bd259b
AK
10051if test "$BUILD_DMEVENTD" = yes; then
10052
10053# Check whether --with-dmeventd-pidfile was given.
f11781c5 10054if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 10055 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 10056else
71082be4 10057 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
10058fi
10059
93bd259b 10060
71082be4
ZK
10061cat >>confdefs.h <<_ACEOF
10062#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10063_ACEOF
93bd259b 10064
71082be4 10065fi
93bd259b
AK
10066
10067if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
10068
10069# Check whether --with-dmeventd-path was given.
f11781c5 10070if test "${with_dmeventd_path+set}" = set; then :
71082be4 10071 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 10072else
71082be4 10073 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
10074fi
10075
93bd259b 10076
71082be4
ZK
10077cat >>confdefs.h <<_ACEOF
10078#define DMEVENTD_PATH "$DMEVENTD_PATH"
10079_ACEOF
3399ae32 10080
71082be4 10081fi
3399ae32 10082
8bae0a1e
AK
10083
10084
8bae0a1e 10085# Check whether --with-default-run-dir was given.
f11781c5 10086if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
10087 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10088else
10089 DEFAULT_RUN_DIR="/var/run/lvm"
10090fi
10091
10092cat >>confdefs.h <<_ACEOF
10093#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10094_ACEOF
10095
10096
71082be4 10097################################################################################
3399ae32
AK
10098
10099# Check whether --with-default-system-dir was given.
f11781c5 10100if test "${with_default_system_dir+set}" = set; then :
71082be4 10101 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 10102else
71082be4 10103 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
10104fi
10105
71082be4 10106
3399ae32
AK
10107cat >>confdefs.h <<_ACEOF
10108#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10109_ACEOF
10110
10111
10112
3399ae32 10113# Check whether --with-default-archive-subdir was given.
f11781c5 10114if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10115 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10116else
71082be4 10117 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10118fi
10119
71082be4 10120
3399ae32
AK
10121cat >>confdefs.h <<_ACEOF
10122#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10123_ACEOF
10124
10125
10126
3399ae32 10127# Check whether --with-default-backup-subdir was given.
f11781c5 10128if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10129 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10130else
71082be4 10131 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10132fi
10133
71082be4 10134
3399ae32
AK
10135cat >>confdefs.h <<_ACEOF
10136#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10137_ACEOF
10138
10139
10140
3399ae32 10141# Check whether --with-default-cache-subdir was given.
f11781c5 10142if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10143 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10144else
71082be4 10145 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10146fi
10147
71082be4 10148
3399ae32
AK
10149cat >>confdefs.h <<_ACEOF
10150#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10151_ACEOF
10152
10153
10154
3399ae32 10155# Check whether --with-default-locking-dir was given.
f11781c5 10156if test "${with_default_locking_dir+set}" = set; then :
71082be4 10157 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10158else
71082be4 10159 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10160fi
10161
71082be4 10162
3399ae32
AK
10163cat >>confdefs.h <<_ACEOF
10164#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10165_ACEOF
10166
10167
fea55602
DW
10168################################################################################
10169
10170# Check whether --with-default-data-alignment was given.
f11781c5 10171if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10172 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10173else
10174 DEFAULT_DATA_ALIGNMENT=1
10175fi
10176
10177
10178cat >>confdefs.h <<_ACEOF
10179#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10180_ACEOF
10181
10182
93bd259b 10183################################################################################
f11781c5 10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10185$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10186
10187# Check whether --with-interface was given.
f11781c5 10188if test "${with_interface+set}" = set; then :
71082be4 10189 withval=$with_interface; interface=$withval
93bd259b 10190else
71082be4 10191 interface=ioctl
93bd259b
AK
10192fi
10193
10194if [ "x$interface" != xioctl ];
10195then
f11781c5 10196 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10197fi
f11781c5 10198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10199$as_echo "$interface" >&6; }
93bd259b
AK
10200
10201################################################################################
db8b5af9 10202DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10203
10204cat >>confdefs.h <<_ACEOF
10205#define DM_LIB_VERSION $DM_LIB_VERSION
10206_ACEOF
10207
10208
db8b5af9 10209DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10210
db8b5af9 10211LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10212
db8b5af9 10213VER=`cat "$srcdir"/VERSION`
bf456146 10214LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10215VER=`echo "$VER" | $AWK '{print $1}'`
10216LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10217VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10218LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10219LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10220LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10221LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10222
80992638 10223################################################################################
fae0c576 10224
83912faa 10225
795ca3e5
AK
10226
10227
10228
10229
10230
10231
5a52dca9 10232
8ef2b021 10233
199e490e 10234
69792976
AK
10235
10236
10237
d0191583 10238
69792976 10239
8106cdd5
AK
10240
10241
10242
10243
10244
d68a82ec 10245
036f273a 10246
7d1552c9 10247
8106cdd5 10248
0a62c911 10249
8106cdd5 10250
4a7f3eb2 10251
4922197a
AK
10252
10253
d8ac0fbc 10254
1a9ea74d 10255
8a2fc586
AK
10256
10257
d0191583 10258
93bd259b
AK
10259
10260
10261
10262
10263
d0191583
JM
10264
10265
10266
10267
10268
8a2fc586 10269
19a2c6e0 10270
f7f0854e
ZK
10271
10272
3ceb7608 10273
8ce0cbda 10274
8b1a3214 10275
ec6a6fbe
AK
10276
10277
10278
10279
e2997b73
AK
10280
10281
10282
10283
10284
10285
a946372e
AK
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
ec6a6fbe 10297
33f732c5 10298
66e941e8 10299
d3c8211f 10300
7e3fe830 10301
a5f46f6a
AK
10302
10303
10304
572fefeb 10305
90c80887 10306
3399ae32
AK
10307
10308
10309
10310
10311
90c80887 10312
bf456146 10313
e1b8a236 10314
0878503f 10315
8fea97b7 10316
54b362f9 10317
b1f08e51 10318
d1e8046f 10319
fea55602 10320
c89bc357 10321
37ddf259 10322
606d0858 10323
68f2de6d
AK
10324
10325
80992638 10326################################################################################
d1e8046f 10327ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10328
ad6254c5 10329cat >confcache <<\_ACEOF
795ca3e5
AK
10330# This file is a shell script that caches the results of configure
10331# tests run on this system so they can be shared between configure
ad6254c5
AK
10332# scripts and configure runs, see configure's option --config-cache.
10333# It is not useful on other systems. If it contains results you don't
10334# want to keep, you may remove or edit it.
795ca3e5 10335#
ad6254c5
AK
10336# config.status only pays attention to the cache file if you give it
10337# the --recheck option to rerun configure.
795ca3e5 10338#
ad6254c5
AK
10339# `ac_cv_env_foo' variables (set or unset) will be overridden when
10340# loading this file, other *unset* `ac_cv_foo' will be assigned the
10341# following values.
10342
10343_ACEOF
10344
795ca3e5
AK
10345# The following way of writing the cache mishandles newlines in values,
10346# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10347# So, we kill variables containing newlines.
795ca3e5
AK
10348# Ultrix sh set writes to stderr and can't be redirected directly,
10349# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10350(
10351 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10352 eval ac_val=\$$ac_var
10353 case $ac_val in #(
10354 *${as_nl}*)
10355 case $ac_var in #(
f11781c5 10356 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10357$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10358 esac
10359 case $ac_var in #(
10360 _ | IFS | as_nl) ;; #(
ec6a6fbe 10361 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10362 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10363 esac ;;
10364 esac
10365 done
10366
ad6254c5 10367 (set) 2>&1 |
7a197a62
AK
10368 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10369 *${as_nl}ac_space=\ *)
f11781c5
AK
10370 # `set' does not quote correctly, so add quotes: double-quote
10371 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10372 sed -n \
8a2fc586
AK
10373 "s/'/'\\\\''/g;
10374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10375 ;; #(
ad6254c5
AK
10376 *)
10377 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10379 ;;
7a197a62
AK
10380 esac |
10381 sort
10382) |
ad6254c5 10383 sed '
7a197a62 10384 /^ac_cv_env_/b end
ad6254c5 10385 t clear
7a197a62 10386 :clear
ad6254c5
AK
10387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10388 t end
7a197a62
AK
10389 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10390 :end' >>confcache
10391if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10392 if test -w "$cache_file"; then
10393 test "x$cache_file" != "x/dev/null" &&
f11781c5 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10395$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10396 cat confcache >$cache_file
795ca3e5 10397 else
f11781c5 10398 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10399$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10400 fi
10401fi
10402rm -f confcache
10403
795ca3e5
AK
10404test "x$prefix" = xNONE && prefix=$ac_default_prefix
10405# Let make expand exec_prefix.
10406test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10407
72b2cb61 10408DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10409
10410ac_libobjs=
10411ac_ltlibobjs=
f11781c5 10412U=
ad6254c5
AK
10413for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10414 # 1. Remove the extension, and $U if already installed.
7a197a62 10415 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10416 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10417 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10418 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10419 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10420 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10421done
10422LIBOBJS=$ac_libobjs
80992638 10423
ad6254c5
AK
10424LTLIBOBJS=$ac_ltlibobjs
10425
10426
10427
10428: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10429ac_write_fail=0
ad6254c5
AK
10430ac_clean_files_save=$ac_clean_files
10431ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10432{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10433$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10434as_write_fail=0
10435cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10436#! $SHELL
10437# Generated by $as_me.
795ca3e5 10438# Run this file to recreate the current configuration.
795ca3e5 10439# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10440# configure, is in config.log if it exists.
10441
10442debug=false
10443ac_cs_recheck=false
10444ac_cs_silent=false
ad6254c5 10445
f11781c5
AK
10446SHELL=\${CONFIG_SHELL-$SHELL}
10447export SHELL
10448_ASEOF
10449cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10450## -------------------- ##
10451## M4sh Initialization. ##
10452## -------------------- ##
ad6254c5 10453
25fbec5b
AK
10454# Be more Bourne compatible
10455DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10456if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10457 emulate sh
10458 NULLCMD=:
ec6a6fbe 10459 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10460 # is contrary to our usage. Disable this feature.
10461 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10462 setopt NO_GLOB_SUBST
10463else
f11781c5
AK
10464 case `(set -o) 2>/dev/null` in #(
10465 *posix*) :
10466 set -o posix ;; #(
10467 *) :
10468 ;;
25fbec5b 10469esac
7a197a62 10470fi
25fbec5b
AK
10471
10472
ec6a6fbe
AK
10473as_nl='
10474'
10475export as_nl
10476# Printing a long string crashes Solaris 7 /usr/bin/printf.
10477as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10478as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10479as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10480# Prefer a ksh shell builtin over an external printf program on Solaris,
10481# but without wasting forks for bash or zsh.
10482if test -z "$BASH_VERSION$ZSH_VERSION" \
10483 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10484 as_echo='print -r --'
10485 as_echo_n='print -rn --'
10486elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10487 as_echo='printf %s\n'
10488 as_echo_n='printf %s'
10489else
10490 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10491 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10492 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10493 else
ec6a6fbe
AK
10494 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10495 as_echo_n_body='eval
10496 arg=$1;
f11781c5 10497 case $arg in #(
ec6a6fbe
AK
10498 *"$as_nl"*)
10499 expr "X$arg" : "X\\(.*\\)$as_nl";
10500 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10501 esac;
10502 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10503 '
10504 export as_echo_n_body
10505 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10506 fi
ec6a6fbe
AK
10507 export as_echo_body
10508 as_echo='sh -c $as_echo_body as_echo'
10509fi
10510
10511# The user is always right.
10512if test "${PATH_SEPARATOR+set}" != set; then
10513 PATH_SEPARATOR=:
10514 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10515 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10516 PATH_SEPARATOR=';'
10517 }
ad6254c5
AK
10518fi
10519
ad6254c5 10520
7a197a62
AK
10521# IFS
10522# We need space, tab and new line, in precisely that order. Quoting is
10523# there to prevent editors from complaining about space-tab.
10524# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10525# splitting by setting IFS to empty value.)
7a197a62
AK
10526IFS=" "" $as_nl"
10527
10528# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10529case $0 in #((
7a197a62
AK
10530 *[\\/]* ) as_myself=$0 ;;
10531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
f11781c5
AK
10536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10537 done
7a197a62
AK
10538IFS=$as_save_IFS
10539
10540 ;;
10541esac
10542# We did not find ourselves, most probably we were run as `sh COMMAND'
10543# in which case we are not to be found in the path.
10544if test "x$as_myself" = x; then
10545 as_myself=$0
10546fi
10547if test ! -f "$as_myself"; then
ec6a6fbe 10548 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10549 exit 1
7a197a62
AK
10550fi
10551
f11781c5
AK
10552# Unset variables that we do not need and which cause bugs (e.g. in
10553# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10554# suppresses any "Segmentation fault" message there. '((' could
10555# trigger a bug in pdksh 5.2.14.
10556for as_var in BASH_ENV ENV MAIL MAILPATH
10557do eval test x\${$as_var+set} = xset \
10558 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10559done
ad6254c5
AK
10560PS1='$ '
10561PS2='> '
10562PS4='+ '
10563
10564# NLS nuisances.
ec6a6fbe
AK
10565LC_ALL=C
10566export LC_ALL
10567LANGUAGE=C
10568export LANGUAGE
8106cdd5 10569
f11781c5
AK
10570# CDPATH.
10571(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10572
10573
10574# as_fn_error STATUS ERROR [LINENO LOG_FD]
10575# ----------------------------------------
10576# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10577# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10578# script with STATUS, using 1 if that was 0.
10579as_fn_error ()
10580{
10581 as_status=$1; test $as_status -eq 0 && as_status=1
10582 if test "$4"; then
10583 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10584 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10585 fi
10586 $as_echo "$as_me: error: $2" >&2
10587 as_fn_exit $as_status
10588} # as_fn_error
10589
10590
10591# as_fn_set_status STATUS
10592# -----------------------
10593# Set $? to STATUS, without forking.
10594as_fn_set_status ()
10595{
10596 return $1
10597} # as_fn_set_status
10598
10599# as_fn_exit STATUS
10600# -----------------
10601# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10602as_fn_exit ()
10603{
10604 set +e
10605 as_fn_set_status $1
10606 exit $1
10607} # as_fn_exit
10608
10609# as_fn_unset VAR
10610# ---------------
10611# Portably unset VAR.
10612as_fn_unset ()
10613{
10614 { eval $1=; unset $1;}
10615}
10616as_unset=as_fn_unset
10617# as_fn_append VAR VALUE
10618# ----------------------
10619# Append the text in VALUE to the end of the definition contained in VAR. Take
10620# advantage of any shell optimizations that allow amortized linear growth over
10621# repeated appends, instead of the typical quadratic growth present in naive
10622# implementations.
10623if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10624 eval 'as_fn_append ()
10625 {
10626 eval $1+=\$2
10627 }'
10628else
10629 as_fn_append ()
10630 {
10631 eval $1=\$$1\$2
10632 }
10633fi # as_fn_append
10634
10635# as_fn_arith ARG...
10636# ------------------
10637# Perform arithmetic evaluation on the ARGs, and store the result in the
10638# global $as_val. Take advantage of shells that can avoid forks. The arguments
10639# must be portable across $(()) and expr.
10640if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10641 eval 'as_fn_arith ()
10642 {
10643 as_val=$(( $* ))
10644 }'
10645else
10646 as_fn_arith ()
10647 {
10648 as_val=`expr "$@" || test $? -eq 1`
10649 }
10650fi # as_fn_arith
10651
10652
7a197a62
AK
10653if expr a : '\(a\)' >/dev/null 2>&1 &&
10654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10655 as_expr=expr
10656else
10657 as_expr=false
10658fi
8106cdd5 10659
7a197a62 10660if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10661 as_basename=basename
10662else
10663 as_basename=false
10664fi
10665
f11781c5
AK
10666if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10667 as_dirname=dirname
10668else
10669 as_dirname=false
10670fi
ad6254c5 10671
7a197a62 10672as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10673$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10674 X"$0" : 'X\(//\)$' \| \
7a197a62 10675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10676$as_echo X/"$0" |
7a197a62
AK
10677 sed '/^.*\/\([^/][^/]*\)\/*$/{
10678 s//\1/
10679 q
10680 }
10681 /^X\/\(\/\/\)$/{
10682 s//\1/
10683 q
10684 }
10685 /^X\/\(\/\).*/{
10686 s//\1/
10687 q
10688 }
10689 s/.*/./; q'`
ad6254c5 10690
f11781c5
AK
10691# Avoid depending upon Character Ranges.
10692as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10693as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10694as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10695as_cr_digits='0123456789'
10696as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10697
10698ECHO_C= ECHO_N= ECHO_T=
f11781c5 10699case `echo -n x` in #(((((
7a197a62 10700-n*)
f11781c5 10701 case `echo 'xy\c'` in
7a197a62 10702 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10703 xy) ECHO_C='\c';;
10704 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10705 ECHO_T=' ';;
7a197a62
AK
10706 esac;;
10707*)
10708 ECHO_N='-n';;
ad6254c5 10709esac
80992638 10710
ad6254c5 10711rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10712if test -d conf$$.dir; then
10713 rm -f conf$$.dir/conf$$.file
10714else
10715 rm -f conf$$.dir
ec6a6fbe
AK
10716 mkdir conf$$.dir 2>/dev/null
10717fi
10718if (echo >conf$$.file) 2>/dev/null; then
10719 if ln -s conf$$.file conf$$ 2>/dev/null; then
10720 as_ln_s='ln -s'
10721 # ... but there are two gotchas:
10722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10724 # In both cases, we have to default to `cp -p'.
10725 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10726 as_ln_s='cp -p'
10727 elif ln conf$$.file conf$$ 2>/dev/null; then
10728 as_ln_s=ln
10729 else
ad6254c5 10730 as_ln_s='cp -p'
ec6a6fbe 10731 fi
ad6254c5
AK
10732else
10733 as_ln_s='cp -p'
10734fi
7a197a62
AK
10735rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10736rmdir conf$$.dir 2>/dev/null
8106cdd5 10737
f11781c5
AK
10738
10739# as_fn_mkdir_p
10740# -------------
10741# Create "$as_dir" as a directory, including parents if necessary.
10742as_fn_mkdir_p ()
10743{
10744
10745 case $as_dir in #(
10746 -*) as_dir=./$as_dir;;
10747 esac
10748 test -d "$as_dir" || eval $as_mkdir_p || {
10749 as_dirs=
10750 while :; do
10751 case $as_dir in #(
10752 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10753 *) as_qdir=$as_dir;;
10754 esac
10755 as_dirs="'$as_qdir' $as_dirs"
10756 as_dir=`$as_dirname -- "$as_dir" ||
10757$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10758 X"$as_dir" : 'X\(//\)[^/]' \| \
10759 X"$as_dir" : 'X\(//\)$' \| \
10760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10761$as_echo X"$as_dir" |
10762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10763 s//\1/
10764 q
10765 }
10766 /^X\(\/\/\)[^/].*/{
10767 s//\1/
10768 q
10769 }
10770 /^X\(\/\/\)$/{
10771 s//\1/
10772 q
10773 }
10774 /^X\(\/\).*/{
10775 s//\1/
10776 q
10777 }
10778 s/.*/./; q'`
10779 test -d "$as_dir" && break
10780 done
10781 test -z "$as_dirs" || eval "mkdir $as_dirs"
10782 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10783
10784
10785} # as_fn_mkdir_p
ad6254c5 10786if mkdir -p . 2>/dev/null; then
f11781c5 10787 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10788else
8a2fc586 10789 test -d ./-p && rmdir ./-p
ad6254c5
AK
10790 as_mkdir_p=false
10791fi
10792
25fbec5b
AK
10793if test -x / >/dev/null 2>&1; then
10794 as_test_x='test -x'
7a197a62 10795else
25fbec5b
AK
10796 if ls -dL / >/dev/null 2>&1; then
10797 as_ls_L_option=L
10798 else
10799 as_ls_L_option=
10800 fi
10801 as_test_x='
10802 eval sh -c '\''
10803 if test -d "$1"; then
ec6a6fbe 10804 test -d "$1/.";
25fbec5b 10805 else
f11781c5 10806 case $1 in #(
ec6a6fbe 10807 -*)set "./$1";;
25fbec5b 10808 esac;
f11781c5 10809 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10810 ???[sx]*):;;*)false;;esac;fi
10811 '\'' sh
10812 '
7a197a62 10813fi
25fbec5b 10814as_executable_p=$as_test_x
ad6254c5
AK
10815
10816# Sed expression to map a string onto a valid CPP name.
8a2fc586 10817as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10818
10819# Sed expression to map a string onto a valid variable name.
8a2fc586 10820as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10821
10822
ad6254c5 10823exec 6>&1
f11781c5
AK
10824## ----------------------------------- ##
10825## Main body of $CONFIG_STATUS script. ##
10826## ----------------------------------- ##
10827_ASEOF
10828test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10829
f11781c5
AK
10830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10831# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10832# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10833# values after options handling.
10834ac_log="
ad6254c5 10835This file was extended by $as_me, which was
f11781c5 10836generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10837
10838 CONFIG_FILES = $CONFIG_FILES
10839 CONFIG_HEADERS = $CONFIG_HEADERS
10840 CONFIG_LINKS = $CONFIG_LINKS
10841 CONFIG_COMMANDS = $CONFIG_COMMANDS
10842 $ $0 $@
10843
7a197a62
AK
10844on `(hostname || uname -n) 2>/dev/null | sed 1q`
10845"
10846
ad6254c5
AK
10847_ACEOF
10848
ec6a6fbe
AK
10849case $ac_config_files in *"
10850"*) set x $ac_config_files; shift; ac_config_files=$*;;
10851esac
10852
10853case $ac_config_headers in *"
10854"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10855esac
10856
10857
10858cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10859# Files that config.status was made for.
68f2de6d
AK
10860config_files="$ac_config_files"
10861config_headers="$ac_config_headers"
ad6254c5 10862
7a197a62 10863_ACEOF
ad6254c5 10864
ec6a6fbe 10865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10866ac_cs_usage="\
f11781c5
AK
10867\`$as_me' instantiates files and other configuration actions
10868from templates according to the current configuration. Unless the files
10869and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10870
f11781c5 10871Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10872
10873 -h, --help print this help, then exit
25fbec5b 10874 -V, --version print version number and configuration settings, then exit
f11781c5 10875 --config print configuration, then exit
ec6a6fbe
AK
10876 -q, --quiet, --silent
10877 do not print progress messages
ad6254c5
AK
10878 -d, --debug don't remove temporary files
10879 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10880 --file=FILE[:TEMPLATE]
10881 instantiate the configuration file FILE
10882 --header=FILE[:TEMPLATE]
10883 instantiate the configuration header FILE
ad6254c5
AK
10884
10885Configuration files:
10886$config_files
10887
72b2cb61
AK
10888Configuration headers:
10889$config_headers
10890
f11781c5 10891Report bugs to the package provider."
ad6254c5 10892
7a197a62 10893_ACEOF
ec6a6fbe 10894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10895ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10896ac_cs_version="\\
10897config.status
f11781c5
AK
10898configured by $0, generated by GNU Autoconf 2.66,
10899 with options \\"\$ac_cs_config\\"
ad6254c5 10900
f11781c5 10901Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10902This config.status script is free software; the Free Software Foundation
10903gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10904
10905ac_pwd='$ac_pwd'
10906srcdir='$srcdir'
10907INSTALL='$INSTALL'
fddafd51 10908MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10909AWK='$AWK'
10910test -n "\$AWK" || AWK=awk
ad6254c5
AK
10911_ACEOF
10912
ec6a6fbe
AK
10913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10914# The default lists apply if the user does not specify any file.
ad6254c5
AK
10915ac_need_defaults=:
10916while test $# != 0
10917do
10918 case $1 in
10919 --*=*)
7a197a62
AK
10920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10921 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10922 ac_shift=:
10923 ;;
7a197a62 10924 *)
ad6254c5
AK
10925 ac_option=$1
10926 ac_optarg=$2
10927 ac_shift=shift
10928 ;;
ad6254c5
AK
10929 esac
10930
10931 case $ac_option in
10932 # Handling of the options.
ad6254c5
AK
10933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10934 ac_cs_recheck=: ;;
7a197a62 10935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10936 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10937 --config | --confi | --conf | --con | --co | --c )
10938 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10939 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10940 debug=: ;;
10941 --file | --fil | --fi | --f )
10942 $ac_shift
ec6a6fbe
AK
10943 case $ac_optarg in
10944 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10945 esac
f11781c5 10946 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10947 ac_need_defaults=false;;
10948 --header | --heade | --head | --hea )
10949 $ac_shift
ec6a6fbe
AK
10950 case $ac_optarg in
10951 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10952 esac
f11781c5 10953 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10954 ac_need_defaults=false;;
7a197a62
AK
10955 --he | --h)
10956 # Conflict between --help and --header
f11781c5
AK
10957 as_fn_error $? "ambiguous option: \`$1'
10958Try \`$0 --help' for more information.";;
7a197a62 10959 --help | --hel | -h )
ec6a6fbe 10960 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10961 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10962 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10963 ac_cs_silent=: ;;
10964
10965 # This is an error.
f11781c5
AK
10966 -*) as_fn_error $? "unrecognized option: \`$1'
10967Try \`$0 --help' for more information." ;;
ad6254c5 10968
f11781c5 10969 *) as_fn_append ac_config_targets " $1"
7a197a62 10970 ac_need_defaults=false ;;
ad6254c5
AK
10971
10972 esac
10973 shift
10974done
10975
10976ac_configure_extra_args=
10977
10978if $ac_cs_silent; then
10979 exec 6>/dev/null
10980 ac_configure_extra_args="$ac_configure_extra_args --silent"
10981fi
10982
10983_ACEOF
ec6a6fbe 10984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10985if \$ac_cs_recheck; then
ec6a6fbe
AK
10986 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10987 shift
10988 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10989 CONFIG_SHELL='$SHELL'
7a197a62 10990 export CONFIG_SHELL
ec6a6fbe 10991 exec "\$@"
ad6254c5
AK
10992fi
10993
10994_ACEOF
ec6a6fbe 10995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10996exec 5>>config.log
10997{
10998 echo
10999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11000## Running $as_me. ##
11001_ASBOX
ec6a6fbe 11002 $as_echo "$ac_log"
7a197a62 11003} >&5
ad6254c5 11004
7a197a62 11005_ACEOF
ec6a6fbe 11006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 11007_ACEOF
ad6254c5 11008
ec6a6fbe 11009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11010
11011# Handling of arguments.
ad6254c5
AK
11012for ac_config_target in $ac_config_targets
11013do
7a197a62
AK
11014 case $ac_config_target in
11015 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11016 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11017 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11018 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11019 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 11020 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
11021 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11022 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 11023 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 11024 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
11025 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11026 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 11027 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 11028 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 11029 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
11030 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11031 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
11032 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11033 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11034 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11035 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 11036 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 11037 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 11038 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
11039 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11040 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 11041 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 11042 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
11043 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11044 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 11045 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 11046 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 11047 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 11048 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 11049 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 11050 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 11051 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 11052 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
11053 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11054 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 11055 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 11056
f11781c5 11057 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 11058 esac
ad6254c5
AK
11059done
11060
7a197a62 11061
ad6254c5
AK
11062# If the user did not use the arguments to specify the items to instantiate,
11063# then the envvar interface is used. Set only those that are not.
11064# We use the long form for the default assignment because of an extremely
11065# bizarre bug on SunOS 4.1.3.
11066if $ac_need_defaults; then
11067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 11068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
11069fi
11070
11071# Have a temporary directory for convenience. Make it in the build tree
7a197a62 11072# simply because there is no reason against having it here, and in addition,
ad6254c5 11073# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
11074# Hook for its removal unless debugging.
11075# Note that there is a small window in which the directory will not be cleaned:
11076# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
11077$debug ||
11078{
7a197a62
AK
11079 tmp=
11080 trap 'exit_status=$?
11081 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11082' 0
f11781c5 11083 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 11084}
ad6254c5
AK
11085# Create a (secure) tmp directory for tmp files.
11086
11087{
7a197a62 11088 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
11089 test -n "$tmp" && test -d "$tmp"
11090} ||
11091{
7a197a62
AK
11092 tmp=./conf$$-$RANDOM
11093 (umask 077 && mkdir "$tmp")
f11781c5 11094} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 11095
ec6a6fbe
AK
11096# Set up the scripts for CONFIG_FILES section.
11097# No need to generate them if there are no CONFIG_FILES.
11098# This happens for instance with `./config.status config.h'.
1995c9ff 11099if test -n "$CONFIG_FILES"; then
7a197a62 11100
68f2de6d 11101
f11781c5
AK
11102ac_cr=`echo X | tr X '\015'`
11103# On cygwin, bash can eat \r inside `` if the user requested igncr.
11104# But we know of no other shell where ac_cr would be empty at this
11105# point, so we can use a bashism as a fallback.
11106if test "x$ac_cr" = x; then
11107 eval ac_cr=\$\'\\r\'
11108fi
ec6a6fbe
AK
11109ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11110if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11111 ac_cs_awk_cr='\\r'
11112else
11113 ac_cs_awk_cr=$ac_cr
1995c9ff 11114fi
7a197a62 11115
ec6a6fbe 11116echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11117_ACEOF
7a197a62 11118
8106cdd5 11119
ec6a6fbe
AK
11120{
11121 echo "cat >conf$$subs.awk <<_ACEOF" &&
11122 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11123 echo "_ACEOF"
11124} >conf$$subs.sh ||
f11781c5
AK
11125 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11126ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11127ac_delim='%!_!# '
11128for ac_last_try in false false false false false :; do
ec6a6fbe 11129 . ./conf$$subs.sh ||
f11781c5 11130 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11131
11132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11133 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11134 break
11135 elif $ac_last_try; then
f11781c5 11136 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11137 else
11138 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11139 fi
11140done
ec6a6fbe
AK
11141rm -f conf$$subs.sh
11142
11143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11144cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11145_ACEOF
11146sed -n '
11147h
11148s/^/S["/; s/!.*/"]=/
11149p
11150g
11151s/^[^!]*!//
11152:repl
11153t repl
11154s/'"$ac_delim"'$//
11155t delim
11156:nl
11157h
f11781c5 11158s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11159t more1
11160s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11161p
11162n
11163b repl
11164:more1
11165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11166p
11167g
11168s/.\{148\}//
11169t nl
11170:delim
11171h
f11781c5 11172s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11173t more2
11174s/["\\]/\\&/g; s/^/"/; s/$/"/
11175p
11176b
11177:more2
11178s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11179p
11180g
11181s/.\{148\}//
11182t delim
11183' <conf$$subs.awk | sed '
11184/^[^""]/{
11185 N
11186 s/\n//
11187}
11188' >>$CONFIG_STATUS || ac_write_fail=1
11189rm -f conf$$subs.awk
11190cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11191_ACAWK
11192cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11193 for (key in S) S_is_set[key] = 1
11194 FS = "\a"
7a197a62 11195
ec6a6fbe
AK
11196}
11197{
11198 line = $ 0
11199 nfields = split(line, field, "@")
11200 substed = 0
11201 len = length(field[1])
11202 for (i = 2; i < nfields; i++) {
11203 key = field[i]
11204 keylen = length(key)
11205 if (S_is_set[key]) {
11206 value = S[key]
11207 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11208 len += length(value) + length(field[++i])
11209 substed = 1
11210 } else
11211 len += 1 + keylen
11212 }
11213
11214 print line
11215}
fddafd51 11216
ec6a6fbe 11217_ACAWK
1995c9ff 11218_ACEOF
ec6a6fbe
AK
11219cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11221 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11222else
11223 cat
11224fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11225 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11226_ACEOF
11227
f11781c5
AK
11228# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11229# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11230# trailing colons and then remove the whole line if VPATH becomes empty
11231# (actually we leave an empty line to preserve line numbers).
11232if test "x$srcdir" = x.; then
f11781c5
AK
11233 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11234h
11235s///
11236s/^/:/
11237s/[ ]*$/:/
11238s/:\$(srcdir):/:/g
11239s/:\${srcdir}:/:/g
11240s/:@srcdir@:/:/g
11241s/^:*//
7a197a62 11242s/:*$//
f11781c5
AK
11243x
11244s/\(=[ ]*\).*/\1/
11245G
11246s/\n//
7a197a62
AK
11247s/^[^=]*=[ ]*$//
11248}'
11249fi
11250
ec6a6fbe 11251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11252fi # test -n "$CONFIG_FILES"
11253
ec6a6fbe
AK
11254# Set up the scripts for CONFIG_HEADERS section.
11255# No need to generate them if there are no CONFIG_HEADERS.
11256# This happens for instance with `./config.status Makefile'.
11257if test -n "$CONFIG_HEADERS"; then
11258cat >"$tmp/defines.awk" <<\_ACAWK ||
11259BEGIN {
11260_ACEOF
11261
11262# Transform confdefs.h into an awk script `defines.awk', embedded as
11263# here-document in config.status, that substitutes the proper values into
11264# config.h.in to produce config.h.
11265
11266# Create a delimiter string that does not exist in confdefs.h, to ease
11267# handling of long lines.
11268ac_delim='%!_!# '
11269for ac_last_try in false false :; do
11270 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11271 if test -z "$ac_t"; then
11272 break
11273 elif $ac_last_try; then
f11781c5 11274 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11275 else
11276 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11277 fi
11278done
11279
11280# For the awk script, D is an array of macro values keyed by name,
11281# likewise P contains macro parameters if any. Preserve backslash
11282# newline sequences.
11283
11284ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11285sed -n '
11286s/.\{148\}/&'"$ac_delim"'/g
11287t rset
11288:rset
11289s/^[ ]*#[ ]*define[ ][ ]*/ /
11290t def
11291d
11292:def
11293s/\\$//
11294t bsnl
11295s/["\\]/\\&/g
11296s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11297D["\1"]=" \3"/p
11298s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11299d
11300:bsnl
11301s/["\\]/\\&/g
11302s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11303D["\1"]=" \3\\\\\\n"\\/p
11304t cont
11305s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11306t cont
11307d
11308:cont
11309n
11310s/.\{148\}/&'"$ac_delim"'/g
11311t clear
11312:clear
11313s/\\$//
11314t bsnlc
11315s/["\\]/\\&/g; s/^/"/; s/$/"/p
11316d
11317:bsnlc
11318s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11319b cont
11320' <confdefs.h | sed '
11321s/'"$ac_delim"'/"\\\
11322"/g' >>$CONFIG_STATUS || ac_write_fail=1
11323
11324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11325 for (key in D) D_is_set[key] = 1
11326 FS = "\a"
11327}
11328/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11329 line = \$ 0
11330 split(line, arg, " ")
11331 if (arg[1] == "#") {
11332 defundef = arg[2]
11333 mac1 = arg[3]
11334 } else {
11335 defundef = substr(arg[1], 2)
11336 mac1 = arg[2]
11337 }
11338 split(mac1, mac2, "(") #)
11339 macro = mac2[1]
11340 prefix = substr(line, 1, index(line, defundef) - 1)
11341 if (D_is_set[macro]) {
11342 # Preserve the white space surrounding the "#".
11343 print prefix "define", macro P[macro] D[macro]
11344 next
11345 } else {
11346 # Replace #undef with comments. This is necessary, for example,
11347 # in the case of _POSIX_SOURCE, which is predefined and required
11348 # on some systems where configure will not decide to define it.
11349 if (defundef == "undef") {
11350 print "/*", prefix defundef, macro, "*/"
11351 next
11352 }
11353 }
11354}
11355{ print }
11356_ACAWK
11357_ACEOF
11358cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11359 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11360fi # test -n "$CONFIG_HEADERS"
11361
7a197a62 11362
ec6a6fbe
AK
11363eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11364shift
11365for ac_tag
7a197a62
AK
11366do
11367 case $ac_tag in
11368 :[FHLC]) ac_mode=$ac_tag; continue;;
11369 esac
11370 case $ac_mode$ac_tag in
11371 :[FHL]*:*);;
f11781c5 11372 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11373 :[FH]-) ac_tag=-:-;;
11374 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11375 esac
11376 ac_save_IFS=$IFS
11377 IFS=:
11378 set x $ac_tag
11379 IFS=$ac_save_IFS
11380 shift
11381 ac_file=$1
11382 shift
11383
11384 case $ac_mode in
11385 :L) ac_source=$1;;
11386 :[FH])
11387 ac_file_inputs=
11388 for ac_f
11389 do
11390 case $ac_f in
11391 -) ac_f="$tmp/stdin";;
11392 *) # Look for the file first in the build tree, then in the source tree
11393 # (if the path is not absolute). The absolute path cannot be DOS-style,
11394 # because $ac_f cannot contain `:'.
11395 test -f "$ac_f" ||
11396 case $ac_f in
11397 [\\/$]*) false;;
11398 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11399 esac ||
f11781c5 11400 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11401 esac
ec6a6fbe 11402 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11403 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11404 done
11405
11406 # Let's still pretend it is `configure' which instantiates (i.e., don't
11407 # use $as_me), people would be surprised to read:
11408 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11409 configure_input='Generated from '`
11410 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11411 `' by configure.'
7a197a62
AK
11412 if test x"$ac_file" != x-; then
11413 configure_input="$ac_file. $configure_input"
f11781c5 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11415$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11416 fi
ec6a6fbe
AK
11417 # Neutralize special characters interpreted by sed in replacement strings.
11418 case $configure_input in #(
11419 *\&* | *\|* | *\\* )
11420 ac_sed_conf_input=`$as_echo "$configure_input" |
11421 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11422 *) ac_sed_conf_input=$configure_input;;
11423 esac
7a197a62
AK
11424
11425 case $ac_tag in
ec6a6fbe 11426 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11428 esac
11429 ;;
80992638 11430 esac
8106cdd5 11431
7a197a62 11432 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11433$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11434 X"$ac_file" : 'X\(//\)[^/]' \| \
11435 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11437$as_echo X"$ac_file" |
7a197a62
AK
11438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11439 s//\1/
11440 q
11441 }
11442 /^X\(\/\/\)[^/].*/{
11443 s//\1/
11444 q
11445 }
11446 /^X\(\/\/\)$/{
11447 s//\1/
11448 q
11449 }
11450 /^X\(\/\).*/{
11451 s//\1/
11452 q
11453 }
11454 s/.*/./; q'`
f11781c5 11455 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11456 ac_builddir=.
11457
7a197a62
AK
11458case "$ac_dir" in
11459.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11460*)
ec6a6fbe 11461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11462 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11464 case $ac_top_builddir_sub in
11465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11467 esac ;;
11468esac
11469ac_abs_top_builddir=$ac_pwd
11470ac_abs_builddir=$ac_pwd$ac_dir_suffix
11471# for backward compatibility:
11472ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11473
11474case $srcdir in
7a197a62 11475 .) # We are building in place.
ad6254c5 11476 ac_srcdir=.
7a197a62
AK
11477 ac_top_srcdir=$ac_top_builddir_sub
11478 ac_abs_top_srcdir=$ac_pwd ;;
11479 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11480 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11481 ac_top_srcdir=$srcdir
11482 ac_abs_top_srcdir=$srcdir ;;
11483 *) # Relative name.
11484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11485 ac_top_srcdir=$ac_top_build_prefix$srcdir
11486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11487esac
7a197a62 11488ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11489
ad6254c5 11490
7a197a62
AK
11491 case $ac_mode in
11492 :F)
11493 #
11494 # CONFIG_FILE
11495 #
ad6254c5
AK
11496
11497 case $INSTALL in
11498 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11499 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11500 esac
fddafd51
ZK
11501 ac_MKDIR_P=$MKDIR_P
11502 case $MKDIR_P in
11503 [\\/$]* | ?:[\\/]* ) ;;
11504 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11505 esac
7a197a62 11506_ACEOF
795ca3e5 11507
ec6a6fbe 11508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11509# If the template does not know about datarootdir, expand it.
11510# FIXME: This hack should be removed a few years after 2.60.
11511ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11512ac_sed_dataroot='
11513/datarootdir/ {
7a197a62
AK
11514 p
11515 q
11516}
11517/@datadir@/p
11518/@docdir@/p
11519/@infodir@/p
11520/@localedir@/p
f11781c5 11521/@mandir@/p'
ec6a6fbe 11522case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11523*datarootdir*) ac_datarootdir_seen=yes;;
11524*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11526$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11527_ACEOF
ec6a6fbe 11528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11529 ac_datarootdir_hack='
11530 s&@datadir@&$datadir&g
11531 s&@docdir@&$docdir&g
11532 s&@infodir@&$infodir&g
11533 s&@localedir@&$localedir&g
11534 s&@mandir@&$mandir&g
f11781c5 11535 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11536esac
11537_ACEOF
11538
11539# Neutralize VPATH when `$srcdir' = `.'.
11540# Shell code in configure.ac might set extrasub.
11541# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11543ac_sed_extra="$ac_vpsub
ad6254c5
AK
11544$extrasub
11545_ACEOF
ec6a6fbe 11546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11547:t
11548/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11549s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11550s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11551s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11552s&@srcdir@&$ac_srcdir&;t t
11553s&@abs_srcdir@&$ac_abs_srcdir&;t t
11554s&@top_srcdir@&$ac_top_srcdir&;t t
11555s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11556s&@builddir@&$ac_builddir&;t t
11557s&@abs_builddir@&$ac_abs_builddir&;t t
11558s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11559s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11560s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11561$ac_datarootdir_hack
ec6a6fbe
AK
11562"
11563eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11565
11566test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11567 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11570which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11571$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11572which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11573
11574 rm -f "$tmp/stdin"
72b2cb61 11575 case $ac_file in
ec6a6fbe
AK
11576 -) cat "$tmp/out" && rm -f "$tmp/out";;
11577 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11578 esac \
f11781c5 11579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11580 ;;
11581 :H)
11582 #
11583 # CONFIG_HEADER
11584 #
72b2cb61 11585 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11586 {
11587 $as_echo "/* $configure_input */" \
11588 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11589 } >"$tmp/config.h" \
f11781c5 11590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11591 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11593$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11594 else
ec6a6fbe
AK
11595 rm -f "$ac_file"
11596 mv "$tmp/config.h" "$ac_file" \
f11781c5 11597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11598 fi
11599 else
ec6a6fbe
AK
11600 $as_echo "/* $configure_input */" \
11601 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11602 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11603 fi
7a197a62
AK
11604 ;;
11605
11606
11607 esac
11608
11609done # for ac_tag
795ca3e5 11610
795ca3e5 11611
f11781c5 11612as_fn_exit 0
ad6254c5 11613_ACEOF
ad6254c5
AK
11614ac_clean_files=$ac_clean_files_save
11615
ec6a6fbe 11616test $ac_write_fail = 0 ||
f11781c5 11617 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11618
ad6254c5
AK
11619
11620# configure is writing to config.log, and then calls config.status.
11621# config.status does its own redirection, appending to config.log.
11622# Unfortunately, on DOS this fails, as config.log is still kept open
11623# by configure, so config.status won't be able to write to it; its
11624# output is simply discarded. So we exec the FD to /dev/null,
11625# effectively closing config.log, so it can be properly (re)opened and
11626# appended to by config.status. When coming back to configure, we
11627# need to make the FD available again.
11628if test "$no_create" != yes; then
11629 ac_cs_success=:
11630 ac_config_status_args=
11631 test "$silent" = yes &&
11632 ac_config_status_args="$ac_config_status_args --quiet"
11633 exec 5>/dev/null
11634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11635 exec 5>>config.log
11636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11637 # would make configure fail if this is the last instruction.
f11781c5 11638 $ac_cs_success || as_fn_exit 1
ad6254c5 11639fi
ec6a6fbe 11640if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11642$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11643fi
795ca3e5 11644
2dc95e1c
AK
11645
11646if test x$ODIRECT != xyes; then
f11781c5 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11648$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11649fi
This page took 1.625573 seconds and 5 git commands to generate.