]> sourceware.org Git - lvm2.git/blob - configure
Update autoconf.
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if 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 --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
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'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
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'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if 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 }
81 fi
82
83
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.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
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.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
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.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if 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
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test 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
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
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
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$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+"$@"}
222 fi
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
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_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.
269 as_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.
279 as_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.
329 if (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 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # 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.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # 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.
364 as_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
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
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'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
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; }
443
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
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `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';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (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
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
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 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="lib/device/dev-cache.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_default_prefix=/usr
596 ac_subst_vars='LTLIBOBJS
597 usrsbindir
598 usrlibdir
599 udevdir
600 udev_prefix
601 tmpdir
602 kernelvsn
603 missingkernel
604 kerneldir
605 interface
606 DMEVENTD_PIDFILE
607 WRITE_INSTALL
608 UDEV_SYNC
609 UDEV_RULES
610 UDEV_PC
611 THIN
612 TESTING
613 STATIC_LINK
614 STATICDIR
615 SNAPSHOTS
616 SELINUX_PC
617 SELINUX_LIBS
618 REPLICATORS
619 READLINE_LIBS
620 RAID
621 PTHREAD_LIBS
622 POOL
623 PKGCONFIG
624 OCFDIR
625 OCF
626 MIRRORS
627 LVM_RELEASE_DATE
628 LVM_RELEASE
629 LVM_PATH
630 LVM_PATCHLEVEL
631 LVM_MINOR
632 LVM_MAJOR
633 LVM_LIBAPI
634 LVM_VERSION
635 LVM1_FALLBACK
636 LVM1
637 LOCALEDIR
638 LIB_SUFFIX
639 LDDEPS
640 JOBS
641 INTL_PACKAGE
642 INTL
643 HAVE_REALTIME
644 HAVE_LIBDL
645 FSADM
646 ELDFLAGS
647 DM_LIB_PATCHLEVEL
648 DM_LIB_VERSION
649 DM_IOCTLS
650 DM_DEVICE_UID
651 DM_DEVICE_MODE
652 DM_DEVICE_GID
653 DM_COMPAT
654 DMEVENTD_PATH
655 DMEVENTD
656 DL_LIBS
657 DEVMAPPER
658 DEFAULT_RUN_DIR
659 DEFAULT_LOCK_DIR
660 DEFAULT_DATA_ALIGNMENT
661 DEFAULT_CACHE_SUBDIR
662 DEFAULT_BACKUP_SUBDIR
663 DEFAULT_ARCHIVE_SUBDIR
664 DEFAULT_SYS_DIR
665 DEBUG
666 COPTIMISE_FLAG
667 CONFDIR
668 CMDLIB
669 CLVMD_PATH
670 CLVMD_CMANAGERS
671 CLVMD
672 CLUSTER
673 CLDWHOLEARCHIVE
674 CLDNOWHOLEARCHIVE
675 CLDFLAGS
676 BUILD_LVMETAD
677 BUILD_DMEVENTD
678 BUILD_CMIRRORD
679 APPLIB
680 MODPROBE_CMD
681 MSGFMT
682 LVM2CMD_LIB
683 LVM2APP_LIB
684 UDEV_LIBS
685 UDEV_CFLAGS
686 CUNIT_LIBS
687 CUNIT_CFLAGS
688 GENPNG
689 GENHTML
690 LCOV
691 SACKPT_LIBS
692 SACKPT_CFLAGS
693 DLM_LIBS
694 DLM_CFLAGS
695 CPG_LIBS
696 CPG_CFLAGS
697 CMAP_LIBS
698 CMAP_CFLAGS
699 CONFDB_LIBS
700 CONFDB_CFLAGS
701 SALCK_LIBS
702 SALCK_CFLAGS
703 QUORUM_LIBS
704 QUORUM_CFLAGS
705 COROSYNC_LIBS
706 COROSYNC_CFLAGS
707 CMAN_LIBS
708 CMAN_CFLAGS
709 PKGCONFIGINIT_LIBS
710 PKGCONFIGINIT_CFLAGS
711 PKG_CONFIG_LIBDIR
712 PKG_CONFIG_PATH
713 PKG_CONFIG
714 POW_LIB
715 LIBOBJS
716 ALLOCA
717 CSCOPE_CMD
718 CFLOW_CMD
719 RANLIB
720 MKDIR_P
721 SET_MAKE
722 LN_S
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 EGREP
727 GREP
728 CPP
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 AWK
737 SED
738 target_os
739 target_vendor
740 target_cpu
741 target
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 target_alias
751 host_alias
752 build_alias
753 LIBS
754 ECHO_T
755 ECHO_N
756 ECHO_C
757 DEFS
758 mandir
759 localedir
760 libdir
761 psdir
762 pdfdir
763 dvidir
764 htmldir
765 infodir
766 docdir
767 oldincludedir
768 includedir
769 localstatedir
770 sharedstatedir
771 sysconfdir
772 datadir
773 datarootdir
774 libexecdir
775 sbindir
776 bindir
777 program_transform_name
778 prefix
779 exec_prefix
780 PACKAGE_URL
781 PACKAGE_BUGREPORT
782 PACKAGE_STRING
783 PACKAGE_VERSION
784 PACKAGE_TARNAME
785 PACKAGE_NAME
786 PATH_SEPARATOR
787 SHELL'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_static_link
792 with_user
793 with_group
794 with_device_uid
795 with_device_gid
796 with_device_mode
797 with_device_nodes_on
798 enable_lvm1_fallback
799 with_lvm1
800 with_pool
801 with_cluster
802 with_snapshots
803 with_mirrors
804 with_raid
805 with_replicators
806 with_thin
807 enable_readline
808 enable_realtime
809 enable_ocf
810 with_ocfdir
811 with_clvmd
812 with_clvmd_pidfile
813 enable_cmirrord
814 with_cmirrord_pidfile
815 enable_debug
816 with_optimisation
817 enable_profiling
818 enable_testing
819 enable_valgrind_pool
820 enable_devmapper
821 enable_lvmetad
822 enable_udev_sync
823 enable_udev_rules
824 enable_compat
825 enable_units_compat
826 enable_ioctl
827 enable_o_direct
828 enable_applib
829 enable_cmdlib
830 enable_pkgconfig
831 enable_write_install
832 enable_fsadm
833 enable_dmeventd
834 enable_selinux
835 enable_nls
836 with_localedir
837 with_confdir
838 with_staticdir
839 with_usrlibdir
840 with_usrsbindir
841 with_udev_prefix
842 with_udevdir
843 with_dmeventd_pidfile
844 with_dmeventd_path
845 with_default_run_dir
846 with_default_system_dir
847 with_default_archive_subdir
848 with_default_backup_subdir
849 with_default_cache_subdir
850 with_default_locking_dir
851 with_default_data_alignment
852 with_interface
853 '
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 PKG_CONFIG
864 PKG_CONFIG_PATH
865 PKG_CONFIG_LIBDIR
866 PKGCONFIGINIT_CFLAGS
867 PKGCONFIGINIT_LIBS
868 CMAN_CFLAGS
869 CMAN_LIBS
870 COROSYNC_CFLAGS
871 COROSYNC_LIBS
872 QUORUM_CFLAGS
873 QUORUM_LIBS
874 SALCK_CFLAGS
875 SALCK_LIBS
876 CONFDB_CFLAGS
877 CONFDB_LIBS
878 CMAP_CFLAGS
879 CMAP_LIBS
880 CPG_CFLAGS
881 CPG_LIBS
882 DLM_CFLAGS
883 DLM_LIBS
884 SACKPT_CFLAGS
885 SACKPT_LIBS
886 CUNIT_CFLAGS
887 CUNIT_LIBS
888 UDEV_CFLAGS
889 UDEV_LIBS'
890
891
892 # Initialize some variables set by options.
893 ac_init_help=
894 ac_init_version=false
895 ac_unrecognized_opts=
896 ac_unrecognized_sep=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
899 cache_file=/dev/null
900 exec_prefix=NONE
901 no_create=
902 no_recursion=
903 prefix=NONE
904 program_prefix=NONE
905 program_suffix=NONE
906 program_transform_name=s,x,x,
907 silent=
908 site=
909 srcdir=
910 verbose=
911 x_includes=NONE
912 x_libraries=NONE
913
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir='${exec_prefix}/bin'
921 sbindir='${exec_prefix}/sbin'
922 libexecdir='${exec_prefix}/libexec'
923 datarootdir='${prefix}/share'
924 datadir='${datarootdir}'
925 sysconfdir='${prefix}/etc'
926 sharedstatedir='${prefix}/com'
927 localstatedir='${prefix}/var'
928 includedir='${prefix}/include'
929 oldincludedir='/usr/include'
930 docdir='${datarootdir}/doc/${PACKAGE}'
931 infodir='${datarootdir}/info'
932 htmldir='${docdir}'
933 dvidir='${docdir}'
934 pdfdir='${docdir}'
935 psdir='${docdir}'
936 libdir='${exec_prefix}/lib'
937 localedir='${datarootdir}/locale'
938 mandir='${datarootdir}/man'
939
940 ac_prev=
941 ac_dashdash=
942 for ac_option
943 do
944 # If the previous option needs an argument, assign it.
945 if test -n "$ac_prev"; then
946 eval $ac_prev=\$ac_option
947 ac_prev=
948 continue
949 fi
950
951 case $ac_option in
952 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 *) ac_optarg=yes ;;
954 esac
955
956 # Accept the important Cygnus configure options, so we can diagnose typos.
957
958 case $ac_dashdash$ac_option in
959 --)
960 ac_dashdash=yes ;;
961
962 -bindir | --bindir | --bindi | --bind | --bin | --bi)
963 ac_prev=bindir ;;
964 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
965 bindir=$ac_optarg ;;
966
967 -build | --build | --buil | --bui | --bu)
968 ac_prev=build_alias ;;
969 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
970 build_alias=$ac_optarg ;;
971
972 -cache-file | --cache-file | --cache-fil | --cache-fi \
973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
974 ac_prev=cache_file ;;
975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
977 cache_file=$ac_optarg ;;
978
979 --config-cache | -C)
980 cache_file=config.cache ;;
981
982 -datadir | --datadir | --datadi | --datad)
983 ac_prev=datadir ;;
984 -datadir=* | --datadir=* | --datadi=* | --datad=*)
985 datadir=$ac_optarg ;;
986
987 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
988 | --dataroo | --dataro | --datar)
989 ac_prev=datarootdir ;;
990 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
991 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
992 datarootdir=$ac_optarg ;;
993
994 -disable-* | --disable-*)
995 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
996 # Reject names that are not valid shell variable names.
997 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
998 as_fn_error $? "invalid feature name: $ac_useropt"
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003 "enable_$ac_useropt"
1004 "*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=no ;;
1009
1010 -docdir | --docdir | --docdi | --doc | --do)
1011 ac_prev=docdir ;;
1012 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1013 docdir=$ac_optarg ;;
1014
1015 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1016 ac_prev=dvidir ;;
1017 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1018 dvidir=$ac_optarg ;;
1019
1020 -enable-* | --enable-*)
1021 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024 as_fn_error $? "invalid feature name: $ac_useropt"
1025 ac_useropt_orig=$ac_useropt
1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1028 *"
1029 "enable_$ac_useropt"
1030 "*) ;;
1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1032 ac_unrecognized_sep=', ';;
1033 esac
1034 eval enable_$ac_useropt=\$ac_optarg ;;
1035
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1044
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1047 with_gas=yes ;;
1048
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1055
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1060
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 ac_prev=htmldir ;;
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 | --ht=*)
1065 htmldir=$ac_optarg ;;
1066
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1073
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 ac_prev=infodir ;;
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1078
1079 -libdir | --libdir | --libdi | --libd)
1080 ac_prev=libdir ;;
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1083
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1090
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1095
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1102
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 ac_prev=mandir ;;
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1107
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1110 with_fp=no ;;
1111
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1114 no_create=yes ;;
1115
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1118 no_recursion=yes ;;
1119
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1128
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 ac_prev=prefix ;;
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1133
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1140
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1147
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1164
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 ac_prev=pdfdir ;;
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1169
1170 -psdir | --psdir | --psdi | --psd | --ps)
1171 ac_prev=psdir ;;
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1173 psdir=$ac_optarg ;;
1174
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1177 silent=yes ;;
1178
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 ac_prev=sbindir ;;
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 | --sbi=* | --sb=*)
1183 sbindir=$ac_optarg ;;
1184
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1188 | --sha | --sh)
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 | --sha=* | --sh=*)
1194 sharedstatedir=$ac_optarg ;;
1195
1196 -site | --site | --sit)
1197 ac_prev=site ;;
1198 -site=* | --site=* | --sit=*)
1199 site=$ac_optarg ;;
1200
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 ac_prev=srcdir ;;
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1205
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1212
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1217
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1219 verbose=yes ;;
1220
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1223
1224 -with-* | --with-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1232 *"
1233 "with_$ac_useropt"
1234 "*) ;;
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1237 esac
1238 eval with_$ac_useropt=\$ac_optarg ;;
1239
1240 -without-* | --without-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid package name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "with_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval with_$ac_useropt=no ;;
1255
1256 --x)
1257 # Obsolete; use --with-x.
1258 with_x=yes ;;
1259
1260 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1261 | --x-incl | --x-inc | --x-in | --x-i)
1262 ac_prev=x_includes ;;
1263 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1264 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1265 x_includes=$ac_optarg ;;
1266
1267 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1268 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1269 ac_prev=x_libraries ;;
1270 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1271 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1272 x_libraries=$ac_optarg ;;
1273
1274 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1275 Try \`$0 --help' for more information"
1276 ;;
1277
1278 *=*)
1279 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1280 # Reject names that are not valid shell variable names.
1281 case $ac_envvar in #(
1282 '' | [0-9]* | *[!_$as_cr_alnum]* )
1283 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1284 esac
1285 eval $ac_envvar=\$ac_optarg
1286 export $ac_envvar ;;
1287
1288 *)
1289 # FIXME: should be removed in autoconf 3.0.
1290 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1291 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1293 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1294 ;;
1295
1296 esac
1297 done
1298
1299 if test -n "$ac_prev"; then
1300 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1301 as_fn_error $? "missing argument to $ac_option"
1302 fi
1303
1304 if test -n "$ac_unrecognized_opts"; then
1305 case $enable_option_checking in
1306 no) ;;
1307 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1308 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309 esac
1310 fi
1311
1312 # Check all directory arguments for consistency.
1313 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1314 datadir sysconfdir sharedstatedir localstatedir includedir \
1315 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1316 libdir localedir mandir
1317 do
1318 eval ac_val=\$$ac_var
1319 # Remove trailing slashes.
1320 case $ac_val in
1321 */ )
1322 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1323 eval $ac_var=\$ac_val;;
1324 esac
1325 # Be sure to have absolute directory names.
1326 case $ac_val in
1327 [\\/$]* | ?:[\\/]* ) continue;;
1328 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1329 esac
1330 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1331 done
1332
1333 # There might be people who depend on the old broken behavior: `$host'
1334 # used to hold the argument of --host etc.
1335 # FIXME: To remove some day.
1336 build=$build_alias
1337 host=$host_alias
1338 target=$target_alias
1339
1340 # FIXME: To remove some day.
1341 if test "x$host_alias" != x; then
1342 if test "x$build_alias" = x; then
1343 cross_compiling=maybe
1344 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1345 If a cross compiler is detected then cross compile mode will be used" >&2
1346 elif test "x$build_alias" != "x$host_alias"; then
1347 cross_compiling=yes
1348 fi
1349 fi
1350
1351 ac_tool_prefix=
1352 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353
1354 test "$silent" = yes && exec 6>/dev/null
1355
1356
1357 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1358 ac_ls_di=`ls -di .` &&
1359 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1360 as_fn_error $? "working directory cannot be determined"
1361 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1362 as_fn_error $? "pwd does not report name of working directory"
1363
1364
1365 # Find the source files, if location was not specified.
1366 if test -z "$srcdir"; then
1367 ac_srcdir_defaulted=yes
1368 # Try the directory containing this script, then the parent directory.
1369 ac_confdir=`$as_dirname -- "$as_myself" ||
1370 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1371 X"$as_myself" : 'X\(//\)[^/]' \| \
1372 X"$as_myself" : 'X\(//\)$' \| \
1373 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1374 $as_echo X"$as_myself" |
1375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1376 s//\1/
1377 q
1378 }
1379 /^X\(\/\/\)[^/].*/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\).*/{
1388 s//\1/
1389 q
1390 }
1391 s/.*/./; q'`
1392 srcdir=$ac_confdir
1393 if test ! -r "$srcdir/$ac_unique_file"; then
1394 srcdir=..
1395 fi
1396 else
1397 ac_srcdir_defaulted=no
1398 fi
1399 if test ! -r "$srcdir/$ac_unique_file"; then
1400 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1401 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402 fi
1403 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1404 ac_abs_confdir=`(
1405 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1406 pwd)`
1407 # When building in place, set srcdir=.
1408 if test "$ac_abs_confdir" = "$ac_pwd"; then
1409 srcdir=.
1410 fi
1411 # Remove unnecessary trailing slashes from srcdir.
1412 # Double slashes in file names in object file debugging info
1413 # mess up M-x gdb in Emacs.
1414 case $srcdir in
1415 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 esac
1417 for ac_var in $ac_precious_vars; do
1418 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1419 eval ac_env_${ac_var}_value=\$${ac_var}
1420 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422 done
1423
1424 #
1425 # Report the --help message.
1426 #
1427 if test "$ac_init_help" = "long"; then
1428 # Omit some internal or obsolete options to make the list less imposing.
1429 # This message is too long to be a string in the A/UX 3.1 sh.
1430 cat <<_ACEOF
1431 \`configure' configures this package to adapt to many kinds of systems.
1432
1433 Usage: $0 [OPTION]... [VAR=VALUE]...
1434
1435 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1436 VAR=VALUE. See below for descriptions of some of the useful variables.
1437
1438 Defaults for the options are specified in brackets.
1439
1440 Configuration:
1441 -h, --help display this help and exit
1442 --help=short display options specific to this package
1443 --help=recursive display the short help of all the included packages
1444 -V, --version display version information and exit
1445 -q, --quiet, --silent do not print \`checking ...' messages
1446 --cache-file=FILE cache test results in FILE [disabled]
1447 -C, --config-cache alias for \`--cache-file=config.cache'
1448 -n, --no-create do not create output files
1449 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450
1451 Installation directories:
1452 --prefix=PREFIX install architecture-independent files in PREFIX
1453 [$ac_default_prefix]
1454 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1455 [PREFIX]
1456
1457 By default, \`make install' will install all the files in
1458 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1459 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1460 for instance \`--prefix=\$HOME'.
1461
1462 For better control, use the options below.
1463
1464 Fine tuning of the installation directories:
1465 --bindir=DIR user executables [EPREFIX/bin]
1466 --sbindir=DIR system admin executables [EPREFIX/sbin]
1467 --libexecdir=DIR program executables [EPREFIX/libexec]
1468 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1469 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1470 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1471 --libdir=DIR object code libraries [EPREFIX/lib]
1472 --includedir=DIR C header files [PREFIX/include]
1473 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1474 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1475 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1476 --infodir=DIR info documentation [DATAROOTDIR/info]
1477 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1478 --mandir=DIR man documentation [DATAROOTDIR/man]
1479 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1480 --htmldir=DIR html documentation [DOCDIR]
1481 --dvidir=DIR dvi documentation [DOCDIR]
1482 --pdfdir=DIR pdf documentation [DOCDIR]
1483 --psdir=DIR ps documentation [DOCDIR]
1484 _ACEOF
1485
1486 cat <<\_ACEOF
1487
1488 System types:
1489 --build=BUILD configure for building on BUILD [guessed]
1490 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1491 --target=TARGET configure for building compilers for TARGET [HOST]
1492 _ACEOF
1493 fi
1494
1495 if test -n "$ac_init_help"; then
1496
1497 cat <<\_ACEOF
1498
1499 Optional Features:
1500 --disable-option-checking ignore unrecognized --enable/--with options
1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1503 --enable-static_link use this to link the tools to their libraries
1504 statically (default is dynamic linking
1505 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1506 device-mapper is missing from the kernel
1507 --disable-readline disable readline support
1508 --enable-realtime enable realtime clock support
1509 --enable-ocf enable Open Cluster Framework (OCF) compliant
1510 resource agents
1511 --enable-cmirrord enable the cluster mirror log daemon
1512 --enable-debug enable debugging
1513 --enable-profiling gather gcov profiling data
1514 --enable-testing enable testing targets in the makefile
1515 --enable-valgrind-pool enable valgrind awareness of pools
1516 --disable-devmapper disable LVM2 device-mapper interaction
1517 --enable-lvmetad enable the LVM Metadata Daemon
1518 --enable-udev_sync enable synchronisation with udev processing
1519 --enable-udev_rules install rule files needed for udev synchronisation
1520 --enable-compat enable support for old device-mapper versions
1521 --enable-units-compat enable output compatibility with old versions that
1522 that do not use KiB-style unit suffixes
1523 --disable-driver disable calls to device-mapper in the kernel
1524 --disable-o_direct disable O_DIRECT
1525 --enable-applib build application library
1526 --enable-cmdlib build shared command library
1527 --enable-pkgconfig install pkgconfig support
1528 --enable-write_install install user writable files
1529 --disable-fsadm disable fsadm
1530 --enable-dmeventd enable the device-mapper event daemon
1531 --disable-selinux disable selinux support
1532 --enable-nls enable Native Language Support
1533
1534 Optional Packages:
1535 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1536 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1537 --with-user=USER set the owner of installed files [[USER=]]
1538 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1539 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1540 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1541 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1542 --with-device-nodes-on=ON
1543 create nodes on resume or create [[ON=resume]]
1544 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1545 [[TYPE=internal]]
1546 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1547 [[TYPE=internal]]
1548 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1549 [[TYPE=internal]]
1550 --with-snapshots=TYPE snapshot support: internal/shared/none
1551 [[TYPE=internal]]
1552 --with-mirrors=TYPE mirror support: internal/shared/none
1553 [[TYPE=internal]]
1554 --with-raid=TYPE mirror support: internal/shared/none
1555 [[TYPE=internal]]
1556 --with-replicators=TYPE replicator support: internal/shared/none
1557 [[TYPE=none]]
1558 --with-thin=TYPE thin provisioning support: internal/shared/none
1559 [[TYPE=none]]
1560 --with-ocfdir=DIR install OCF files in DIR
1561 [[PREFIX/lib/ocf/resource.d/lvm2]]
1562 --with-clvmd=TYPE build cluster LVM Daemon
1563 The following cluster manager combinations are valid:
1564 * cman (RHEL5 or equivalent)
1565 * cman,corosync,openais (or selection of them)
1566 * singlenode (localhost only)
1567 * all (autodetect)
1568 * none (disable build)
1569 [TYPE=none]
1570 --with-clvmd-pidfile=PATH
1571 clvmd pidfile [[/var/run/clvmd.pid]]
1572 --with-cmirrord-pidfile=PATH
1573 cmirrord pidfile [[/var/run/cmirrord.pid]]
1574 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1575 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1576 --with-confdir=DIR configuration files in DIR [[/etc]]
1577 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1578 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1579 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1580 --with-udev-prefix=UPREFIX
1581 install udev rule files in UPREFIX [[EPREFIX]]
1582 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1583 --with-dmeventd-pidfile=PATH
1584 dmeventd pidfile [[/var/run/dmeventd.pid]]
1585 --with-dmeventd-path=PATH
1586 dmeventd path [[EPREFIX/sbin/dmeventd]]
1587 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1588 --with-default-system-dir=DIR
1589 default LVM system directory [[/etc/lvm]]
1590 --with-default-archive-subdir=SUBDIR
1591 default metadata archive subdir [[archive]]
1592 --with-default-backup-subdir=SUBDIR
1593 default metadata backup subdir [[backup]]
1594 --with-default-cache-subdir=SUBDIR
1595 default metadata cache subdir [[cache]]
1596 --with-default-locking-dir=DIR
1597 default locking directory [[/var/lock/lvm]]
1598 --with-default-data-alignment=NUM
1599 set the default data alignment in MiB [[1]]
1600 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1601
1602 Some influential environment variables:
1603 CC C compiler command
1604 CFLAGS C compiler flags
1605 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1606 nonstandard directory <lib dir>
1607 LIBS libraries to pass to the linker, e.g. -l<library>
1608 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1609 you have headers in a nonstandard directory <include dir>
1610 CPP C preprocessor
1611 PKG_CONFIG path to pkg-config utility
1612 PKG_CONFIG_PATH
1613 directories to add to pkg-config's search path
1614 PKG_CONFIG_LIBDIR
1615 path overriding pkg-config's built-in search path
1616 PKGCONFIGINIT_CFLAGS
1617 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1618 PKGCONFIGINIT_LIBS
1619 linker flags for PKGCONFIGINIT, overriding pkg-config
1620 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1621 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1622 COROSYNC_CFLAGS
1623 C compiler flags for COROSYNC, overriding pkg-config
1624 COROSYNC_LIBS
1625 linker flags for COROSYNC, overriding pkg-config
1626 QUORUM_CFLAGS
1627 C compiler flags for QUORUM, overriding pkg-config
1628 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1629 SALCK_CFLAGS
1630 C compiler flags for SALCK, overriding pkg-config
1631 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1632 CONFDB_CFLAGS
1633 C compiler flags for CONFDB, overriding pkg-config
1634 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1635 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1636 CMAP_LIBS linker flags for CMAP, overriding pkg-config
1637 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1638 CPG_LIBS linker flags for CPG, overriding pkg-config
1639 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1640 DLM_LIBS linker flags for DLM, overriding pkg-config
1641 SACKPT_CFLAGS
1642 C compiler flags for SACKPT, overriding pkg-config
1643 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1644 CUNIT_CFLAGS
1645 C compiler flags for CUNIT, overriding pkg-config
1646 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
1647 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1648 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1649
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1652
1653 Report bugs to the package provider.
1654 _ACEOF
1655 ac_status=$?
1656 fi
1657
1658 if test "$ac_init_help" = "recursive"; then
1659 # If there are subdirs, report their specific --help.
1660 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1661 test -d "$ac_dir" ||
1662 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1663 continue
1664 ac_builddir=.
1665
1666 case "$ac_dir" in
1667 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *)
1669 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1670 # A ".." for each directory in $ac_dir_suffix.
1671 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1672 case $ac_top_builddir_sub in
1673 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1675 esac ;;
1676 esac
1677 ac_abs_top_builddir=$ac_pwd
1678 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1679 # for backward compatibility:
1680 ac_top_builddir=$ac_top_build_prefix
1681
1682 case $srcdir in
1683 .) # We are building in place.
1684 ac_srcdir=.
1685 ac_top_srcdir=$ac_top_builddir_sub
1686 ac_abs_top_srcdir=$ac_pwd ;;
1687 [\\/]* | ?:[\\/]* ) # Absolute name.
1688 ac_srcdir=$srcdir$ac_dir_suffix;
1689 ac_top_srcdir=$srcdir
1690 ac_abs_top_srcdir=$srcdir ;;
1691 *) # Relative name.
1692 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1693 ac_top_srcdir=$ac_top_build_prefix$srcdir
1694 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1695 esac
1696 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1697
1698 cd "$ac_dir" || { ac_status=$?; continue; }
1699 # Check for guested configure.
1700 if test -f "$ac_srcdir/configure.gnu"; then
1701 echo &&
1702 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1703 elif test -f "$ac_srcdir/configure"; then
1704 echo &&
1705 $SHELL "$ac_srcdir/configure" --help=recursive
1706 else
1707 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1708 fi || ac_status=$?
1709 cd "$ac_pwd" || { ac_status=$?; break; }
1710 done
1711 fi
1712
1713 test -n "$ac_init_help" && exit $ac_status
1714 if $ac_init_version; then
1715 cat <<\_ACEOF
1716 configure
1717 generated by GNU Autoconf 2.66
1718
1719 Copyright (C) 2010 Free Software Foundation, Inc.
1720 This configure script is free software; the Free Software Foundation
1721 gives unlimited permission to copy, distribute and modify it.
1722 _ACEOF
1723 exit
1724 fi
1725
1726 ## ------------------------ ##
1727 ## Autoconf initialization. ##
1728 ## ------------------------ ##
1729
1730 # ac_fn_c_try_compile LINENO
1731 # --------------------------
1732 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_compile ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762 fi
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_compile
1767
1768 # ac_fn_c_try_cpp LINENO
1769 # ----------------------
1770 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_cpp ()
1772 {
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 if { { ac_try="$ac_cpp conftest.$ac_ext"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1787 fi
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } >/dev/null && {
1790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 }; then :
1793 ac_retval=0
1794 else
1795 $as_echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 ac_retval=1
1799 fi
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_cpp
1804
1805 # ac_fn_c_try_link LINENO
1806 # -----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_link ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 rm -f conftest.$ac_objext conftest$ac_exeext
1812 if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>conftest.err
1820 ac_status=$?
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1825 fi
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest$ac_exeext && {
1831 test "$cross_compiling" = yes ||
1832 $as_test_x conftest$ac_exeext
1833 }; then :
1834 ac_retval=0
1835 else
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840 fi
1841 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1842 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1843 # interfere with the next link command; also delete a directory that is
1844 # left behind by Apple's compiler. We do this before executing the actions.
1845 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1846 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1847 as_fn_set_status $ac_retval
1848
1849 } # ac_fn_c_try_link
1850
1851 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1852 # -------------------------------------------------------
1853 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1854 # the include files in INCLUDES and setting the cache variable VAR
1855 # accordingly.
1856 ac_fn_c_check_header_mongrel ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 if eval "test \"\${$3+set}\"" = set; then :
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval "test \"\${$3+set}\"" = set; then :
1863 $as_echo_n "(cached) " >&6
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 else
1869 # Is the header compilable?
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1871 $as_echo_n "checking $2 usability... " >&6; }
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h. */
1874 $4
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_compile "$LINENO"; then :
1878 ac_header_compiler=yes
1879 else
1880 ac_header_compiler=no
1881 fi
1882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1884 $as_echo "$ac_header_compiler" >&6; }
1885
1886 # Is the header present?
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1888 $as_echo_n "checking $2 presence... " >&6; }
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_cpp "$LINENO"; then :
1894 ac_header_preproc=yes
1895 else
1896 ac_header_preproc=no
1897 fi
1898 rm -f conftest.err conftest.$ac_ext
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1900 $as_echo "$ac_header_preproc" >&6; }
1901
1902 # So? What about this header?
1903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1904 yes:no: )
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1906 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909 ;;
1910 no:yes:* )
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1912 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1914 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1916 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1918 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1920 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1921 ;;
1922 esac
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval "test \"\${$3+set}\"" = set; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 eval "$3=\$ac_header_compiler"
1929 fi
1930 eval ac_res=\$$3
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1932 $as_echo "$ac_res" >&6; }
1933 fi
1934 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1935
1936 } # ac_fn_c_check_header_mongrel
1937
1938 # ac_fn_c_try_run LINENO
1939 # ----------------------
1940 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941 # that executables *can* be run.
1942 ac_fn_c_try_run ()
1943 {
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 if { { ac_try="$ac_link"
1946 case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_link") 2>&5
1953 ac_status=$?
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956 { { case "(($ac_try" in
1957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958 *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962 (eval "$ac_try") 2>&5
1963 ac_status=$?
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; }; }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: program exited with status $ac_status" >&5
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1971
1972 ac_retval=$ac_status
1973 fi
1974 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976 as_fn_set_status $ac_retval
1977
1978 } # ac_fn_c_try_run
1979
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1985 {
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval "test \"\${$3+set}\"" = set; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 $4
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 eval "$3=yes"
1999 else
2000 eval "$3=no"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009 } # ac_fn_c_check_header_compile
2010
2011 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2012 # ----------------------------------------------------
2013 # Tries to find if the field MEMBER exists in type AGGR, after including
2014 # INCLUDES, setting cache variable VAR accordingly.
2015 ac_fn_c_check_member ()
2016 {
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2019 $as_echo_n "checking for $2.$3... " >&6; }
2020 if eval "test \"\${$4+set}\"" = set; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $5
2026 int
2027 main ()
2028 {
2029 static $2 ac_aggr;
2030 if (ac_aggr.$3)
2031 return 0;
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $5
2042 int
2043 main ()
2044 {
2045 static $2 ac_aggr;
2046 if (sizeof ac_aggr.$3)
2047 return 0;
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 eval "$4=yes"
2054 else
2055 eval "$4=no"
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 fi
2061 eval ac_res=\$$4
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2063 $as_echo "$ac_res" >&6; }
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065
2066 } # ac_fn_c_check_member
2067
2068 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2069 # -------------------------------------------
2070 # Tests whether TYPE exists after having included INCLUDES, setting cache
2071 # variable VAR accordingly.
2072 ac_fn_c_check_type ()
2073 {
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if eval "test \"\${$3+set}\"" = set; then :
2078 $as_echo_n "(cached) " >&6
2079 else
2080 eval "$3=no"
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $4
2084 int
2085 main ()
2086 {
2087 if (sizeof ($2))
2088 return 0;
2089 ;
2090 return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 int
2098 main ()
2099 {
2100 if (sizeof (($2)))
2101 return 0;
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107
2108 else
2109 eval "$3=yes"
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 fi
2115 eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117 $as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119
2120 } # ac_fn_c_check_type
2121
2122 # ac_fn_c_find_intX_t LINENO BITS VAR
2123 # -----------------------------------
2124 # Finds a signed integer type with width BITS, setting cache variable VAR
2125 # accordingly.
2126 ac_fn_c_find_intX_t ()
2127 {
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2130 $as_echo_n "checking for int$2_t... " >&6; }
2131 if eval "test \"\${$3+set}\"" = set; then :
2132 $as_echo_n "(cached) " >&6
2133 else
2134 eval "$3=no"
2135 # Order is important - never check a type that is potentially smaller
2136 # than half of the expected target width.
2137 for ac_type in int$2_t 'int' 'long int' \
2138 'long long int' 'short int' 'signed char'; do
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $ac_includes_default
2142 enum { N = $2 / 2 - 1 };
2143 int
2144 main ()
2145 {
2146 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2147 test_array [0] = 0
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2156 $ac_includes_default
2157 enum { N = $2 / 2 - 1 };
2158 int
2159 main ()
2160 {
2161 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2162 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2163 test_array [0] = 0
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170
2171 else
2172 case $ac_type in #(
2173 int$2_t) :
2174 eval "$3=yes" ;; #(
2175 *) :
2176 eval "$3=\$ac_type" ;;
2177 esac
2178 fi
2179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 if eval test \"x\$"$3"\" = x"no"; then :
2183
2184 else
2185 break
2186 fi
2187 done
2188 fi
2189 eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193
2194 } # ac_fn_c_find_intX_t
2195
2196 # ac_fn_c_find_uintX_t LINENO BITS VAR
2197 # ------------------------------------
2198 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2199 # accordingly.
2200 ac_fn_c_find_uintX_t ()
2201 {
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2204 $as_echo_n "checking for uint$2_t... " >&6; }
2205 if eval "test \"\${$3+set}\"" = set; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 eval "$3=no"
2209 # Order is important - never check a type that is potentially smaller
2210 # than half of the expected target width.
2211 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2212 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2215 $ac_includes_default
2216 int
2217 main ()
2218 {
2219 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2220 test_array [0] = 0
2221
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 case $ac_type in #(
2228 uint$2_t) :
2229 eval "$3=yes" ;; #(
2230 *) :
2231 eval "$3=\$ac_type" ;;
2232 esac
2233 fi
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 if eval test \"x\$"$3"\" = x"no"; then :
2236
2237 else
2238 break
2239 fi
2240 done
2241 fi
2242 eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246
2247 } # ac_fn_c_find_uintX_t
2248
2249 # ac_fn_c_check_func LINENO FUNC VAR
2250 # ----------------------------------
2251 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2252 ac_fn_c_check_func ()
2253 {
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if eval "test \"\${$3+set}\"" = set; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261 /* end confdefs.h. */
2262 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2264 #define $2 innocuous_$2
2265
2266 /* System header to define __stub macros and hopefully few prototypes,
2267 which can conflict with char $2 (); below.
2268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2269 <limits.h> exists even on freestanding compilers. */
2270
2271 #ifdef __STDC__
2272 # include <limits.h>
2273 #else
2274 # include <assert.h>
2275 #endif
2276
2277 #undef $2
2278
2279 /* Override any GCC internal prototype to avoid an error.
2280 Use char because int might match the return type of a GCC
2281 builtin and then its argument prototype would still apply. */
2282 #ifdef __cplusplus
2283 extern "C"
2284 #endif
2285 char $2 ();
2286 /* The GNU C library defines this for functions which it implements
2287 to always fail with ENOSYS. Some functions are actually named
2288 something starting with __ and the normal name is an alias. */
2289 #if defined __stub_$2 || defined __stub___$2
2290 choke me
2291 #endif
2292
2293 int
2294 main ()
2295 {
2296 return $2 ();
2297 ;
2298 return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_link "$LINENO"; then :
2302 eval "$3=yes"
2303 else
2304 eval "$3=no"
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext \
2307 conftest$ac_exeext conftest.$ac_ext
2308 fi
2309 eval ac_res=\$$3
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313
2314 } # ac_fn_c_check_func
2315 cat >config.log <<_ACEOF
2316 This file contains any messages produced by compilers while
2317 running configure, to aid debugging if configure makes a mistake.
2318
2319 It was created by $as_me, which was
2320 generated by GNU Autoconf 2.66. Invocation command line was
2321
2322 $ $0 $@
2323
2324 _ACEOF
2325 exec 5>>config.log
2326 {
2327 cat <<_ASUNAME
2328 ## --------- ##
2329 ## Platform. ##
2330 ## --------- ##
2331
2332 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2333 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2334 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2335 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2336 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2337
2338 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2339 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2340
2341 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2342 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2343 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2344 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2345 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2346 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2347 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2348
2349 _ASUNAME
2350
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354 IFS=$as_save_IFS
2355 test -z "$as_dir" && as_dir=.
2356 $as_echo "PATH: $as_dir"
2357 done
2358 IFS=$as_save_IFS
2359
2360 } >&5
2361
2362 cat >&5 <<_ACEOF
2363
2364
2365 ## ----------- ##
2366 ## Core tests. ##
2367 ## ----------- ##
2368
2369 _ACEOF
2370
2371
2372 # Keep a trace of the command line.
2373 # Strip out --no-create and --no-recursion so they do not pile up.
2374 # Strip out --silent because we don't want to record it for future runs.
2375 # Also quote any args containing shell meta-characters.
2376 # Make two passes to allow for proper duplicate-argument suppression.
2377 ac_configure_args=
2378 ac_configure_args0=
2379 ac_configure_args1=
2380 ac_must_keep_next=false
2381 for ac_pass in 1 2
2382 do
2383 for ac_arg
2384 do
2385 case $ac_arg in
2386 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2388 | -silent | --silent | --silen | --sile | --sil)
2389 continue ;;
2390 *\'*)
2391 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2392 esac
2393 case $ac_pass in
2394 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2395 2)
2396 as_fn_append ac_configure_args1 " '$ac_arg'"
2397 if test $ac_must_keep_next = true; then
2398 ac_must_keep_next=false # Got value, back to normal.
2399 else
2400 case $ac_arg in
2401 *=* | --config-cache | -C | -disable-* | --disable-* \
2402 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2403 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2404 | -with-* | --with-* | -without-* | --without-* | --x)
2405 case "$ac_configure_args0 " in
2406 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2407 esac
2408 ;;
2409 -* ) ac_must_keep_next=true ;;
2410 esac
2411 fi
2412 as_fn_append ac_configure_args " '$ac_arg'"
2413 ;;
2414 esac
2415 done
2416 done
2417 { ac_configure_args0=; unset ac_configure_args0;}
2418 { ac_configure_args1=; unset ac_configure_args1;}
2419
2420 # When interrupted or exit'd, cleanup temporary files, and complete
2421 # config.log. We remove comments because anyway the quotes in there
2422 # would cause problems or look ugly.
2423 # WARNING: Use '\'' to represent an apostrophe within the trap.
2424 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2425 trap 'exit_status=$?
2426 # Save into config.log some information that might help in debugging.
2427 {
2428 echo
2429
2430 $as_echo "## ---------------- ##
2431 ## Cache variables. ##
2432 ## ---------------- ##"
2433 echo
2434 # The following way of writing the cache mishandles newlines in values,
2435 (
2436 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2437 eval ac_val=\$$ac_var
2438 case $ac_val in #(
2439 *${as_nl}*)
2440 case $ac_var in #(
2441 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2442 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2443 esac
2444 case $ac_var in #(
2445 _ | IFS | as_nl) ;; #(
2446 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2447 *) { eval $ac_var=; unset $ac_var;} ;;
2448 esac ;;
2449 esac
2450 done
2451 (set) 2>&1 |
2452 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2453 *${as_nl}ac_space=\ *)
2454 sed -n \
2455 "s/'\''/'\''\\\\'\'''\''/g;
2456 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2457 ;; #(
2458 *)
2459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2460 ;;
2461 esac |
2462 sort
2463 )
2464 echo
2465
2466 $as_echo "## ----------------- ##
2467 ## Output variables. ##
2468 ## ----------------- ##"
2469 echo
2470 for ac_var in $ac_subst_vars
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479
2480 if test -n "$ac_subst_files"; then
2481 $as_echo "## ------------------- ##
2482 ## File substitutions. ##
2483 ## ------------------- ##"
2484 echo
2485 for ac_var in $ac_subst_files
2486 do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in
2489 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2490 esac
2491 $as_echo "$ac_var='\''$ac_val'\''"
2492 done | sort
2493 echo
2494 fi
2495
2496 if test -s confdefs.h; then
2497 $as_echo "## ----------- ##
2498 ## confdefs.h. ##
2499 ## ----------- ##"
2500 echo
2501 cat confdefs.h
2502 echo
2503 fi
2504 test "$ac_signal" != 0 &&
2505 $as_echo "$as_me: caught signal $ac_signal"
2506 $as_echo "$as_me: exit $exit_status"
2507 } >&5
2508 rm -f core *.core core.conftest.* &&
2509 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2510 exit $exit_status
2511 ' 0
2512 for ac_signal in 1 2 13 15; do
2513 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2514 done
2515 ac_signal=0
2516
2517 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2518 rm -f -r conftest* confdefs.h
2519
2520 $as_echo "/* confdefs.h */" > confdefs.h
2521
2522 # Predefined preprocessor variables.
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_NAME "$PACKAGE_NAME"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_STRING "$PACKAGE_STRING"
2538 _ACEOF
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2542 _ACEOF
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_URL "$PACKAGE_URL"
2546 _ACEOF
2547
2548
2549 # Let the site file select an alternate cache file if it wants to.
2550 # Prefer an explicitly selected file to automatically selected ones.
2551 ac_site_file1=NONE
2552 ac_site_file2=NONE
2553 if test -n "$CONFIG_SITE"; then
2554 # We do not want a PATH search for config.site.
2555 case $CONFIG_SITE in #((
2556 -*) ac_site_file1=./$CONFIG_SITE;;
2557 */*) ac_site_file1=$CONFIG_SITE;;
2558 *) ac_site_file1=./$CONFIG_SITE;;
2559 esac
2560 elif test "x$prefix" != xNONE; then
2561 ac_site_file1=$prefix/share/config.site
2562 ac_site_file2=$prefix/etc/config.site
2563 else
2564 ac_site_file1=$ac_default_prefix/share/config.site
2565 ac_site_file2=$ac_default_prefix/etc/config.site
2566 fi
2567 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568 do
2569 test "x$ac_site_file" = xNONE && continue
2570 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2572 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2573 sed 's/^/| /' "$ac_site_file" >&5
2574 . "$ac_site_file" \
2575 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2577 as_fn_error $? "failed to load site script $ac_site_file
2578 See \`config.log' for more details" "$LINENO" 5; }
2579 fi
2580 done
2581
2582 if test -r "$cache_file"; then
2583 # Some versions of bash will fail to source /dev/null (special files
2584 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2585 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2587 $as_echo "$as_me: loading cache $cache_file" >&6;}
2588 case $cache_file in
2589 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2590 *) . "./$cache_file";;
2591 esac
2592 fi
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2595 $as_echo "$as_me: creating cache $cache_file" >&6;}
2596 >$cache_file
2597 fi
2598
2599 as_fn_append ac_header_list " stdlib.h"
2600 as_fn_append ac_header_list " unistd.h"
2601 as_fn_append ac_header_list " sys/param.h"
2602 # Check that the precious variables saved in the cache have kept the same
2603 # value.
2604 ac_cache_corrupted=false
2605 for ac_var in $ac_precious_vars; do
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
2610 case $ac_old_set,$ac_new_set in
2611 set,)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,set)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,);;
2620 *)
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=`echo x $ac_old_val`
2624 ac_new_val_w=`echo x $ac_new_val`
2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628 ac_cache_corrupted=:
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632 eval $ac_var=\$ac_old_val
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2638 fi;;
2639 esac
2640 # Pass precious variables to config.status.
2641 if test "$ac_new_set" = set; then
2642 case $ac_new_val in
2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644 *) ac_arg=$ac_var=$ac_new_val ;;
2645 esac
2646 case " $ac_configure_args " in
2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2649 esac
2650 fi
2651 done
2652 if $ac_cache_corrupted; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2658 fi
2659 ## -------------------- ##
2660 ## Main body of script. ##
2661 ## -------------------- ##
2662
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
2669
2670
2671 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2672
2673
2674 ################################################################################
2675 ac_aux_dir=
2676 for ac_dir in autoconf "$srcdir"/autoconf; do
2677 if test -f "$ac_dir/install-sh"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/install-sh -c"
2680 break
2681 elif test -f "$ac_dir/install.sh"; then
2682 ac_aux_dir=$ac_dir
2683 ac_install_sh="$ac_aux_dir/install.sh -c"
2684 break
2685 elif test -f "$ac_dir/shtool"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 break
2689 fi
2690 done
2691 if test -z "$ac_aux_dir"; then
2692 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2693 fi
2694
2695 # These three variables are undocumented and unsupported,
2696 # and are intended to be withdrawn in a future Autoconf release.
2697 # They can cause serious problems if a builder's source tree is in a directory
2698 # whose full name contains unusual characters.
2699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2702
2703
2704
2705 ################################################################################
2706 # Make sure we can run config.sub.
2707 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2708 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2711 $as_echo_n "checking build system type... " >&6; }
2712 if test "${ac_cv_build+set}" = set; then :
2713 $as_echo_n "(cached) " >&6
2714 else
2715 ac_build_alias=$build_alias
2716 test "x$ac_build_alias" = x &&
2717 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2718 test "x$ac_build_alias" = x &&
2719 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2720 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2721 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2722
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2725 $as_echo "$ac_cv_build" >&6; }
2726 case $ac_cv_build in
2727 *-*-*) ;;
2728 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2729 esac
2730 build=$ac_cv_build
2731 ac_save_IFS=$IFS; IFS='-'
2732 set x $ac_cv_build
2733 shift
2734 build_cpu=$1
2735 build_vendor=$2
2736 shift; shift
2737 # Remember, the first character of IFS is used to create $*,
2738 # except with old shells:
2739 build_os=$*
2740 IFS=$ac_save_IFS
2741 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2742
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2745 $as_echo_n "checking host system type... " >&6; }
2746 if test "${ac_cv_host+set}" = set; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 if test "x$host_alias" = x; then
2750 ac_cv_host=$ac_cv_build
2751 else
2752 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2753 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2754 fi
2755
2756 fi
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2758 $as_echo "$ac_cv_host" >&6; }
2759 case $ac_cv_host in
2760 *-*-*) ;;
2761 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2762 esac
2763 host=$ac_cv_host
2764 ac_save_IFS=$IFS; IFS='-'
2765 set x $ac_cv_host
2766 shift
2767 host_cpu=$1
2768 host_vendor=$2
2769 shift; shift
2770 # Remember, the first character of IFS is used to create $*,
2771 # except with old shells:
2772 host_os=$*
2773 IFS=$ac_save_IFS
2774 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2775
2776
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2778 $as_echo_n "checking target system type... " >&6; }
2779 if test "${ac_cv_target+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2781 else
2782 if test "x$target_alias" = x; then
2783 ac_cv_target=$ac_cv_host
2784 else
2785 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2786 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2787 fi
2788
2789 fi
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2791 $as_echo "$ac_cv_target" >&6; }
2792 case $ac_cv_target in
2793 *-*-*) ;;
2794 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2795 esac
2796 target=$ac_cv_target
2797 ac_save_IFS=$IFS; IFS='-'
2798 set x $ac_cv_target
2799 shift
2800 target_cpu=$1
2801 target_vendor=$2
2802 shift; shift
2803 # Remember, the first character of IFS is used to create $*,
2804 # except with old shells:
2805 target_os=$*
2806 IFS=$ac_save_IFS
2807 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2808
2809
2810 # The aliases save the names the user supplied, while $host etc.
2811 # will get canonicalized.
2812 test -n "$target_alias" &&
2813 test "$program_prefix$program_suffix$program_transform_name" = \
2814 NONENONEs,x,x, &&
2815 program_prefix=${target_alias}-
2816
2817 case "$host_os" in
2818 linux*)
2819 CFLAGS="$CFLAGS"
2820 COPTIMISE_FLAG="-O2"
2821 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2822 ELDFLAGS="-Wl,--export-dynamic"
2823 # FIXME Generate list and use --dynamic-list=.dlopen.sym
2824 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2825 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2826 LDDEPS="$LDDEPS .export.sym"
2827 LIB_SUFFIX=so
2828 DEVMAPPER=yes
2829 LVMETAD=no
2830 ODIRECT=yes
2831 DM_IOCTLS=yes
2832 SELINUX=yes
2833 CLUSTER=internal
2834 FSADM=yes
2835 ;;
2836 darwin*)
2837 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2838 COPTIMISE_FLAG="-O2"
2839 CLDFLAGS="$CLDFLAGS"
2840 ELDFLAGS=
2841 CLDWHOLEARCHIVE="-all_load"
2842 CLDNOWHOLEARCHIVE=
2843 LIB_SUFFIX=dylib
2844 DEVMAPPER=yes
2845 ODIRECT=no
2846 DM_IOCTLS=no
2847 SELINUX=no
2848 CLUSTER=none
2849 FSADM=no
2850 ;;
2851 esac
2852
2853 ################################################################################
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2855 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2856 if test "${ac_cv_path_SED+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2860 for ac_i in 1 2 3 4 5 6 7; do
2861 ac_script="$ac_script$as_nl$ac_script"
2862 done
2863 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2864 { ac_script=; unset ac_script;}
2865 if test -z "$SED"; then
2866 ac_path_SED_found=false
2867 # Loop through the user's path and test for each of PROGNAME-LIST
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2870 do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_prog in sed gsed; do
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2876 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2877 # Check for GNU ac_path_SED and select it if it is found.
2878 # Check for GNU $ac_path_SED
2879 case `"$ac_path_SED" --version 2>&1` in
2880 *GNU*)
2881 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2882 *)
2883 ac_count=0
2884 $as_echo_n 0123456789 >"conftest.in"
2885 while :
2886 do
2887 cat "conftest.in" "conftest.in" >"conftest.tmp"
2888 mv "conftest.tmp" "conftest.in"
2889 cp "conftest.in" "conftest.nl"
2890 $as_echo '' >> "conftest.nl"
2891 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2892 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2893 as_fn_arith $ac_count + 1 && ac_count=$as_val
2894 if test $ac_count -gt ${ac_path_SED_max-0}; then
2895 # Best one so far, save it but keep looking for a better one
2896 ac_cv_path_SED="$ac_path_SED"
2897 ac_path_SED_max=$ac_count
2898 fi
2899 # 10*(2^10) chars as input seems more than enough
2900 test $ac_count -gt 10 && break
2901 done
2902 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2903 esac
2904
2905 $ac_path_SED_found && break 3
2906 done
2907 done
2908 done
2909 IFS=$as_save_IFS
2910 if test -z "$ac_cv_path_SED"; then
2911 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2912 fi
2913 else
2914 ac_cv_path_SED=$SED
2915 fi
2916
2917 fi
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2919 $as_echo "$ac_cv_path_SED" >&6; }
2920 SED="$ac_cv_path_SED"
2921 rm -f conftest.sed
2922
2923 for ac_prog in gawk mawk nawk awk
2924 do
2925 # Extract the first word of "$ac_prog", so it can be a program name with args.
2926 set dummy $ac_prog; ac_word=$2
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2928 $as_echo_n "checking for $ac_word... " >&6; }
2929 if test "${ac_cv_prog_AWK+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if test -n "$AWK"; then
2933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 test -z "$as_dir" && as_dir=.
2940 for ac_exec_ext in '' $ac_executable_extensions; do
2941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2942 ac_cv_prog_AWK="$ac_prog"
2943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 break 2
2945 fi
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951 fi
2952 AWK=$ac_cv_prog_AWK
2953 if test -n "$AWK"; then
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2955 $as_echo "$AWK" >&6; }
2956 else
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2958 $as_echo "no" >&6; }
2959 fi
2960
2961
2962 test -n "$AWK" && break
2963 done
2964
2965 ac_ext=c
2966 ac_cpp='$CPP $CPPFLAGS'
2967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2970 if test -n "$ac_tool_prefix"; then
2971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974 $as_echo_n "checking for $ac_word... " >&6; }
2975 if test "${ac_cv_prog_CC+set}" = set; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if test -n "$CC"; then
2979 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 else
2981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982 for as_dir in $PATH
2983 do
2984 IFS=$as_save_IFS
2985 test -z "$as_dir" && as_dir=.
2986 for ac_exec_ext in '' $ac_executable_extensions; do
2987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 break 2
2991 fi
2992 done
2993 done
2994 IFS=$as_save_IFS
2995
2996 fi
2997 fi
2998 CC=$ac_cv_prog_CC
2999 if test -n "$CC"; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3001 $as_echo "$CC" >&6; }
3002 else
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004 $as_echo "no" >&6; }
3005 fi
3006
3007
3008 fi
3009 if test -z "$ac_cv_prog_CC"; then
3010 ac_ct_CC=$CC
3011 # Extract the first word of "gcc", so it can be a program name with args.
3012 set dummy gcc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$ac_ct_CC"; then
3019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028 ac_cv_prog_ac_ct_CC="gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3039 if test -n "$ac_ct_CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3041 $as_echo "$ac_ct_CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047 if test "x$ac_ct_CC" = x; then
3048 CC=""
3049 else
3050 case $cross_compiling:$ac_tool_warned in
3051 yes:)
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3055 esac
3056 CC=$ac_ct_CC
3057 fi
3058 else
3059 CC="$ac_cv_prog_CC"
3060 fi
3061
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3065 set dummy ${ac_tool_prefix}cc; ac_word=$2
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3067 $as_echo_n "checking for $ac_word... " >&6; }
3068 if test "${ac_cv_prog_CC+set}" = set; then :
3069 $as_echo_n "(cached) " >&6
3070 else
3071 if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 test -z "$as_dir" && as_dir=.
3079 for ac_exec_ext in '' $ac_executable_extensions; do
3080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081 ac_cv_prog_CC="${ac_tool_prefix}cc"
3082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083 break 2
3084 fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 CC=$ac_cv_prog_CC
3092 if test -n "$CC"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3094 $as_echo "$CC" >&6; }
3095 else
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3097 $as_echo "no" >&6; }
3098 fi
3099
3100
3101 fi
3102 fi
3103 if test -z "$CC"; then
3104 # Extract the first word of "cc", so it can be a program name with args.
3105 set dummy cc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if test "${ac_cv_prog_CC+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 else
3114 ac_prog_rejected=no
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3123 ac_prog_rejected=yes
3124 continue
3125 fi
3126 ac_cv_prog_CC="cc"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128 break 2
3129 fi
3130 done
3131 done
3132 IFS=$as_save_IFS
3133
3134 if test $ac_prog_rejected = yes; then
3135 # We found a bogon in the path, so make sure we never use it.
3136 set dummy $ac_cv_prog_CC
3137 shift
3138 if test $# != 0; then
3139 # We chose a different compiler from the bogus one.
3140 # However, it has the same basename, so the bogon will be chosen
3141 # first if we set CC to just the basename; use the full file name.
3142 shift
3143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3144 fi
3145 fi
3146 fi
3147 fi
3148 CC=$ac_cv_prog_CC
3149 if test -n "$CC"; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151 $as_echo "$CC" >&6; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157
3158 fi
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 for ac_prog in cl.exe
3162 do
3163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_CC+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$CC" && break
3201 done
3202 fi
3203 if test -z "$CC"; then
3204 ac_ct_CC=$CC
3205 for ac_prog in cl.exe
3206 do
3207 # Extract the first word of "$ac_prog", so it can be a program name with args.
3208 set dummy $ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3212 $as_echo_n "(cached) " >&6
3213 else
3214 if test -n "$ac_ct_CC"; then
3215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_ac_ct_CC="$ac_prog"
3225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 break 2
3227 fi
3228 done
3229 done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3235 if test -n "$ac_ct_CC"; then
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3237 $as_echo "$ac_ct_CC" >&6; }
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244 test -n "$ac_ct_CC" && break
3245 done
3246
3247 if test "x$ac_ct_CC" = x; then
3248 CC=""
3249 else
3250 case $cross_compiling:$ac_tool_warned in
3251 yes:)
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3254 ac_tool_warned=yes ;;
3255 esac
3256 CC=$ac_ct_CC
3257 fi
3258 fi
3259
3260 fi
3261
3262
3263 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 as_fn_error $? "no acceptable C compiler found in \$PATH
3266 See \`config.log' for more details" "$LINENO" 5; }
3267
3268 # Provide some information about the compiler.
3269 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3270 set X $ac_compile
3271 ac_compiler=$2
3272 for ac_option in --version -v -V -qversion; do
3273 { { ac_try="$ac_compiler $ac_option >&5"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3281 ac_status=$?
3282 if test -s conftest.err; then
3283 sed '10a\
3284 ... rest of stderr output deleted ...
3285 10q' conftest.err >conftest.er1
3286 cat conftest.er1 >&5
3287 fi
3288 rm -f conftest.er1 conftest.err
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }
3291 done
3292
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3295
3296 int
3297 main ()
3298 {
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 ac_clean_files_save=$ac_clean_files
3305 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3306 # Try to create an executable without -o first, disregard a.out.
3307 # It will help us diagnose broken compilers, and finding out an intuition
3308 # of exeext.
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3310 $as_echo_n "checking whether the C compiler works... " >&6; }
3311 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3312
3313 # The possible output files:
3314 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3315
3316 ac_rmfiles=
3317 for ac_file in $ac_files
3318 do
3319 case $ac_file in
3320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3321 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3322 esac
3323 done
3324 rm -f $ac_rmfiles
3325
3326 if { { ac_try="$ac_link_default"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_link_default") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3338 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3339 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3340 # so that the user can short-circuit this test for compilers unknown to
3341 # Autoconf.
3342 for ac_file in $ac_files ''
3343 do
3344 test -f "$ac_file" || continue
3345 case $ac_file in
3346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3347 ;;
3348 [ab].out )
3349 # We found the default executable, but exeext='' is most
3350 # certainly right.
3351 break;;
3352 *.* )
3353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3354 then :; else
3355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 fi
3357 # We set ac_cv_exeext here because the later test for it is not
3358 # safe: cross compilers may not add the suffix if given an `-o'
3359 # argument, so we may need to know it at that point already.
3360 # Even if this section looks crufty: it has the advantage of
3361 # actually working.
3362 break;;
3363 * )
3364 break;;
3365 esac
3366 done
3367 test "$ac_cv_exeext" = no && ac_cv_exeext=
3368
3369 else
3370 ac_file=''
3371 fi
3372 if test -z "$ac_file"; then :
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 $as_echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error 77 "C compiler cannot create executables
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; }
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3389 $as_echo "$ac_file" >&6; }
3390 ac_exeext=$ac_cv_exeext
3391
3392 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3393 ac_clean_files=$ac_clean_files_save
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3395 $as_echo_n "checking for suffix of executables... " >&6; }
3396 if { { ac_try="$ac_link"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_link") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; then :
3407 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3408 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3409 # work properly (i.e., refer to `conftest.exe'), while it won't with
3410 # `rm'.
3411 for ac_file in conftest.exe conftest conftest.*; do
3412 test -f "$ac_file" || continue
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3415 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 break;;
3417 * ) break;;
3418 esac
3419 done
3420 else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3424 See \`config.log' for more details" "$LINENO" 5; }
3425 fi
3426 rm -f conftest conftest$ac_cv_exeext
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3428 $as_echo "$ac_cv_exeext" >&6; }
3429
3430 rm -f conftest.$ac_ext
3431 EXEEXT=$ac_cv_exeext
3432 ac_exeext=$EXEEXT
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3435 #include <stdio.h>
3436 int
3437 main ()
3438 {
3439 FILE *f = fopen ("conftest.out", "w");
3440 return ferror (f) || fclose (f) != 0;
3441
3442 ;
3443 return 0;
3444 }
3445 _ACEOF
3446 ac_clean_files="$ac_clean_files conftest.out"
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 if test "$cross_compiling" != yes; then
3452 { { ac_try="$ac_link"
3453 case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_link") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }
3463 if { ac_try='./conftest$ac_cv_exeext'
3464 { { case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_try") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3473 test $ac_status = 0; }; }; then
3474 cross_compiling=no
3475 else
3476 if test "$cross_compiling" = maybe; then
3477 cross_compiling=yes
3478 else
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $? "cannot run C compiled programs.
3482 If you meant to cross compile, use \`--host'.
3483 See \`config.log' for more details" "$LINENO" 5; }
3484 fi
3485 fi
3486 fi
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3488 $as_echo "$cross_compiling" >&6; }
3489
3490 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3491 ac_clean_files=$ac_clean_files_save
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3493 $as_echo_n "checking for suffix of object files... " >&6; }
3494 if test "${ac_cv_objext+set}" = set; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.o conftest.obj
3509 if { { ac_try="$ac_compile"
3510 case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 $as_echo "$ac_try_echo"; } >&5
3516 (eval "$ac_compile") 2>&5
3517 ac_status=$?
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; then :
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3522 case $ac_file in
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3525 break;;
3526 esac
3527 done
3528 else
3529 $as_echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534 as_fn_error $? "cannot compute suffix of object files: cannot compile
3535 See \`config.log' for more details" "$LINENO" 5; }
3536 fi
3537 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3540 $as_echo "$ac_cv_objext" >&6; }
3541 OBJEXT=$ac_cv_objext
3542 ac_objext=$OBJEXT
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3544 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3545 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main ()
3553 {
3554 #ifndef __GNUC__
3555 choke me
3556 #endif
3557
3558 ;
3559 return 0;
3560 }
3561 _ACEOF
3562 if ac_fn_c_try_compile "$LINENO"; then :
3563 ac_compiler_gnu=yes
3564 else
3565 ac_compiler_gnu=no
3566 fi
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569
3570 fi
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3572 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3573 if test $ac_compiler_gnu = yes; then
3574 GCC=yes
3575 else
3576 GCC=
3577 fi
3578 ac_test_CFLAGS=${CFLAGS+set}
3579 ac_save_CFLAGS=$CFLAGS
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3581 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3582 if test "${ac_cv_prog_cc_g+set}" = set; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 ac_save_c_werror_flag=$ac_c_werror_flag
3586 ac_c_werror_flag=yes
3587 ac_cv_prog_cc_g=no
3588 CFLAGS="-g"
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591
3592 int
3593 main ()
3594 {
3595
3596 ;
3597 return 0;
3598 }
3599 _ACEOF
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_g=yes
3602 else
3603 CFLAGS=""
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606
3607 int
3608 main ()
3609 {
3610
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 if ac_fn_c_try_compile "$LINENO"; then :
3616
3617 else
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3619 CFLAGS="-g"
3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3622
3623 int
3624 main ()
3625 {
3626
3627 ;
3628 return 0;
3629 }
3630 _ACEOF
3631 if ac_fn_c_try_compile "$LINENO"; then :
3632 ac_cv_prog_cc_g=yes
3633 fi
3634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 fi
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3640 fi
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3642 $as_echo "$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3647 CFLAGS="-g -O2"
3648 else
3649 CFLAGS="-g"
3650 fi
3651 else
3652 if test "$GCC" = yes; then
3653 CFLAGS="-O2"
3654 else
3655 CFLAGS=
3656 fi
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3659 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3660 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 ac_cv_prog_cc_c89=no
3664 ac_save_CC=$CC
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3667 #include <stdarg.h>
3668 #include <stdio.h>
3669 #include <sys/types.h>
3670 #include <sys/stat.h>
3671 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3672 struct buf { int x; };
3673 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3674 static char *e (p, i)
3675 char **p;
3676 int i;
3677 {
3678 return p[i];
3679 }
3680 static char *f (char * (*g) (char **, int), char **p, ...)
3681 {
3682 char *s;
3683 va_list v;
3684 va_start (v,p);
3685 s = g (p, va_arg (v,int));
3686 va_end (v);
3687 return s;
3688 }
3689
3690 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3691 function prototypes and stuff, but not '\xHH' hex character constants.
3692 These don't provoke an error unfortunately, instead are silently treated
3693 as 'x'. The following induces an error, until -std is added to get
3694 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3695 array size at least. It's necessary to write '\x00'==0 to get something
3696 that's true only with -std. */
3697 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3698
3699 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3700 inside strings and character constants. */
3701 #define FOO(x) 'x'
3702 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3703
3704 int test (int i, double x);
3705 struct s1 {int (*f) (int a);};
3706 struct s2 {int (*f) (double a);};
3707 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3708 int argc;
3709 char **argv;
3710 int
3711 main ()
3712 {
3713 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3719 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3720 do
3721 CC="$ac_save_CC $ac_arg"
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723 ac_cv_prog_cc_c89=$ac_arg
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext
3726 test "x$ac_cv_prog_cc_c89" != "xno" && break
3727 done
3728 rm -f conftest.$ac_ext
3729 CC=$ac_save_CC
3730
3731 fi
3732 # AC_CACHE_VAL
3733 case "x$ac_cv_prog_cc_c89" in
3734 x)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3736 $as_echo "none needed" >&6; } ;;
3737 xno)
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3739 $as_echo "unsupported" >&6; } ;;
3740 *)
3741 CC="$CC $ac_cv_prog_cc_c89"
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3743 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3744 esac
3745 if test "x$ac_cv_prog_cc_c89" != xno; then :
3746
3747 fi
3748
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755
3756
3757 ac_ext=c
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3763 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3764 # On Suns, sometimes $CPP names a directory.
3765 if test -n "$CPP" && test -d "$CPP"; then
3766 CPP=
3767 fi
3768 if test -z "$CPP"; then
3769 if test "${ac_cv_prog_CPP+set}" = set; then :
3770 $as_echo_n "(cached) " >&6
3771 else
3772 # Double quotes because CPP needs to be expanded
3773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3774 do
3775 ac_preproc_ok=false
3776 for ac_c_preproc_warn_flag in '' yes
3777 do
3778 # Use a header file that comes with gcc, so configuring glibc
3779 # with a fresh cross-compiler works.
3780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3781 # <limits.h> exists even on freestanding compilers.
3782 # On the NeXT, cc -E runs the code through the compiler's parser,
3783 # not just through cpp. "Syntax error" is here to catch this case.
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786 #ifdef __STDC__
3787 # include <limits.h>
3788 #else
3789 # include <assert.h>
3790 #endif
3791 Syntax error
3792 _ACEOF
3793 if ac_fn_c_try_cpp "$LINENO"; then :
3794
3795 else
3796 # Broken: fails on valid input.
3797 continue
3798 fi
3799 rm -f conftest.err conftest.$ac_ext
3800
3801 # OK, works on sane cases. Now check whether nonexistent headers
3802 # can be detected and how.
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3805 #include <ac_nonexistent.h>
3806 _ACEOF
3807 if ac_fn_c_try_cpp "$LINENO"; then :
3808 # Broken: success on invalid input.
3809 continue
3810 else
3811 # Passes both tests.
3812 ac_preproc_ok=:
3813 break
3814 fi
3815 rm -f conftest.err conftest.$ac_ext
3816
3817 done
3818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3819 rm -f conftest.err conftest.$ac_ext
3820 if $ac_preproc_ok; then :
3821 break
3822 fi
3823
3824 done
3825 ac_cv_prog_CPP=$CPP
3826
3827 fi
3828 CPP=$ac_cv_prog_CPP
3829 else
3830 ac_cv_prog_CPP=$CPP
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3833 $as_echo "$CPP" >&6; }
3834 ac_preproc_ok=false
3835 for ac_c_preproc_warn_flag in '' yes
3836 do
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3845 #ifdef __STDC__
3846 # include <limits.h>
3847 #else
3848 # include <assert.h>
3849 #endif
3850 Syntax error
3851 _ACEOF
3852 if ac_fn_c_try_cpp "$LINENO"; then :
3853
3854 else
3855 # Broken: fails on valid input.
3856 continue
3857 fi
3858 rm -f conftest.err conftest.$ac_ext
3859
3860 # OK, works on sane cases. Now check whether nonexistent headers
3861 # can be detected and how.
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864 #include <ac_nonexistent.h>
3865 _ACEOF
3866 if ac_fn_c_try_cpp "$LINENO"; then :
3867 # Broken: success on invalid input.
3868 continue
3869 else
3870 # Passes both tests.
3871 ac_preproc_ok=:
3872 break
3873 fi
3874 rm -f conftest.err conftest.$ac_ext
3875
3876 done
3877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878 rm -f conftest.err conftest.$ac_ext
3879 if $ac_preproc_ok; then :
3880
3881 else
3882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details" "$LINENO" 5; }
3886 fi
3887
3888 ac_ext=c
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3896 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3897 if test "${ac_cv_path_GREP+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -z "$GREP"; then
3901 ac_path_GREP_found=false
3902 # Loop through the user's path and test for each of PROGNAME-LIST
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3905 do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_prog in grep ggrep; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3911 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3912 # Check for GNU ac_path_GREP and select it if it is found.
3913 # Check for GNU $ac_path_GREP
3914 case `"$ac_path_GREP" --version 2>&1` in
3915 *GNU*)
3916 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3917 *)
3918 ac_count=0
3919 $as_echo_n 0123456789 >"conftest.in"
3920 while :
3921 do
3922 cat "conftest.in" "conftest.in" >"conftest.tmp"
3923 mv "conftest.tmp" "conftest.in"
3924 cp "conftest.in" "conftest.nl"
3925 $as_echo 'GREP' >> "conftest.nl"
3926 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3927 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3928 as_fn_arith $ac_count + 1 && ac_count=$as_val
3929 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3930 # Best one so far, save it but keep looking for a better one
3931 ac_cv_path_GREP="$ac_path_GREP"
3932 ac_path_GREP_max=$ac_count
3933 fi
3934 # 10*(2^10) chars as input seems more than enough
3935 test $ac_count -gt 10 && break
3936 done
3937 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3938 esac
3939
3940 $ac_path_GREP_found && break 3
3941 done
3942 done
3943 done
3944 IFS=$as_save_IFS
3945 if test -z "$ac_cv_path_GREP"; then
3946 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3947 fi
3948 else
3949 ac_cv_path_GREP=$GREP
3950 fi
3951
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3954 $as_echo "$ac_cv_path_GREP" >&6; }
3955 GREP="$ac_cv_path_GREP"
3956
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3959 $as_echo_n "checking for egrep... " >&6; }
3960 if test "${ac_cv_path_EGREP+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3964 then ac_cv_path_EGREP="$GREP -E"
3965 else
3966 if test -z "$EGREP"; then
3967 ac_path_EGREP_found=false
3968 # Loop through the user's path and test for each of PROGNAME-LIST
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
3974 for ac_prog in egrep; do
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3977 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3978 # Check for GNU ac_path_EGREP and select it if it is found.
3979 # Check for GNU $ac_path_EGREP
3980 case `"$ac_path_EGREP" --version 2>&1` in
3981 *GNU*)
3982 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3983 *)
3984 ac_count=0
3985 $as_echo_n 0123456789 >"conftest.in"
3986 while :
3987 do
3988 cat "conftest.in" "conftest.in" >"conftest.tmp"
3989 mv "conftest.tmp" "conftest.in"
3990 cp "conftest.in" "conftest.nl"
3991 $as_echo 'EGREP' >> "conftest.nl"
3992 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3994 as_fn_arith $ac_count + 1 && ac_count=$as_val
3995 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3996 # Best one so far, save it but keep looking for a better one
3997 ac_cv_path_EGREP="$ac_path_EGREP"
3998 ac_path_EGREP_max=$ac_count
3999 fi
4000 # 10*(2^10) chars as input seems more than enough
4001 test $ac_count -gt 10 && break
4002 done
4003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4004 esac
4005
4006 $ac_path_EGREP_found && break 3
4007 done
4008 done
4009 done
4010 IFS=$as_save_IFS
4011 if test -z "$ac_cv_path_EGREP"; then
4012 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4013 fi
4014 else
4015 ac_cv_path_EGREP=$EGREP
4016 fi
4017
4018 fi
4019 fi
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4021 $as_echo "$ac_cv_path_EGREP" >&6; }
4022 EGREP="$ac_cv_path_EGREP"
4023
4024
4025 if test $ac_cv_c_compiler_gnu = yes; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4027 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4028 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 ac_pattern="Autoconf.*'x'"
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #include <sgtty.h>
4035 Autoconf TIOCGETP
4036 _ACEOF
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4039 ac_cv_prog_gcc_traditional=yes
4040 else
4041 ac_cv_prog_gcc_traditional=no
4042 fi
4043 rm -f conftest*
4044
4045
4046 if test $ac_cv_prog_gcc_traditional = no; then
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <termio.h>
4050 Autoconf TCGETA
4051 _ACEOF
4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4054 ac_cv_prog_gcc_traditional=yes
4055 fi
4056 rm -f conftest*
4057
4058 fi
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4061 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4062 if test $ac_cv_prog_gcc_traditional = yes; then
4063 CC="$CC -traditional"
4064 fi
4065 fi
4066
4067 # Find a good install program. We prefer a C program (faster),
4068 # so one script is as good as another. But avoid the broken or
4069 # incompatible versions:
4070 # SysV /etc/install, /usr/sbin/install
4071 # SunOS /usr/etc/install
4072 # IRIX /sbin/install
4073 # AIX /bin/install
4074 # AmigaOS /C/install, which installs bootblocks on floppy discs
4075 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4076 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4077 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4078 # OS/2's system install, which has a completely different semantic
4079 # ./install, which can be erroneously created by make from ./install.sh.
4080 # Reject install programs that cannot install multiple files.
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4082 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4083 if test -z "$INSTALL"; then
4084 if test "${ac_cv_path_install+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4089 do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 # Account for people who put trailing slashes in PATH elements.
4093 case $as_dir/ in #((
4094 ./ | .// | /[cC]/* | \
4095 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4096 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4097 /usr/ucb/* ) ;;
4098 *)
4099 # OSF1 and SCO ODT 3.0 have their own names for install.
4100 # Don't use installbsd from OSF since it installs stuff as root
4101 # by default.
4102 for ac_prog in ginstall scoinst install; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4105 if test $ac_prog = install &&
4106 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4107 # AIX install. It has an incompatible calling convention.
4108 :
4109 elif test $ac_prog = install &&
4110 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4111 # program-specific install script used by HP pwplus--don't use.
4112 :
4113 else
4114 rm -rf conftest.one conftest.two conftest.dir
4115 echo one > conftest.one
4116 echo two > conftest.two
4117 mkdir conftest.dir
4118 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4119 test -s conftest.one && test -s conftest.two &&
4120 test -s conftest.dir/conftest.one &&
4121 test -s conftest.dir/conftest.two
4122 then
4123 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4124 break 3
4125 fi
4126 fi
4127 fi
4128 done
4129 done
4130 ;;
4131 esac
4132
4133 done
4134 IFS=$as_save_IFS
4135
4136 rm -rf conftest.one conftest.two conftest.dir
4137
4138 fi
4139 if test "${ac_cv_path_install+set}" = set; then
4140 INSTALL=$ac_cv_path_install
4141 else
4142 # As a last resort, use the slow shell script. Don't cache a
4143 # value for INSTALL within a source directory, because that will
4144 # break other packages using the cache if that directory is
4145 # removed, or if the value is a relative name.
4146 INSTALL=$ac_install_sh
4147 fi
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4150 $as_echo "$INSTALL" >&6; }
4151
4152 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4153 # It thinks the first close brace ends the variable substitution.
4154 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4155
4156 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4157
4158 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4161 $as_echo_n "checking whether ln -s works... " >&6; }
4162 LN_S=$as_ln_s
4163 if test "$LN_S" = "ln -s"; then
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4165 $as_echo "yes" >&6; }
4166 else
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4168 $as_echo "no, using $LN_S" >&6; }
4169 fi
4170
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4172 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4173 set x ${MAKE-make}
4174 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4175 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 cat >conftest.make <<\_ACEOF
4179 SHELL = /bin/sh
4180 all:
4181 @echo '@@@%%%=$(MAKE)=@@@%%%'
4182 _ACEOF
4183 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4184 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4185 *@@@%%%=?*=@@@%%%*)
4186 eval ac_cv_prog_make_${ac_make}_set=yes;;
4187 *)
4188 eval ac_cv_prog_make_${ac_make}_set=no;;
4189 esac
4190 rm -f conftest.make
4191 fi
4192 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4194 $as_echo "yes" >&6; }
4195 SET_MAKE=
4196 else
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 SET_MAKE="MAKE=${MAKE-make}"
4200 fi
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4203 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4204 if test -z "$MKDIR_P"; then
4205 if test "${ac_cv_path_mkdir+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_prog in mkdir gmkdir; do
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4216 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4217 'mkdir (GNU coreutils) '* | \
4218 'mkdir (coreutils) '* | \
4219 'mkdir (fileutils) '4.1*)
4220 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4221 break 3;;
4222 esac
4223 done
4224 done
4225 done
4226 IFS=$as_save_IFS
4227
4228 fi
4229
4230 test -d ./--version && rmdir ./--version
4231 if test "${ac_cv_path_mkdir+set}" = set; then
4232 MKDIR_P="$ac_cv_path_mkdir -p"
4233 else
4234 # As a last resort, use the slow shell script. Don't cache a
4235 # value for MKDIR_P within a source directory, because that will
4236 # break other packages using the cache if that directory is
4237 # removed, or if the value is a relative name.
4238 MKDIR_P="$ac_install_sh -d"
4239 fi
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4242 $as_echo "$MKDIR_P" >&6; }
4243
4244 if test -n "$ac_tool_prefix"; then
4245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if test -n "$RANLIB"; then
4253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266 done
4267 done
4268 IFS=$as_save_IFS
4269
4270 fi
4271 fi
4272 RANLIB=$ac_cv_prog_RANLIB
4273 if test -n "$RANLIB"; then
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4275 $as_echo "$RANLIB" >&6; }
4276 else
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281
4282 fi
4283 if test -z "$ac_cv_prog_RANLIB"; then
4284 ac_ct_RANLIB=$RANLIB
4285 # Extract the first word of "ranlib", so it can be a program name with args.
4286 set dummy ranlib; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 if test -n "$ac_ct_RANLIB"; then
4293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_ac_ct_RANLIB="ranlib"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4305 fi
4306 done
4307 done
4308 IFS=$as_save_IFS
4309
4310 fi
4311 fi
4312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4313 if test -n "$ac_ct_RANLIB"; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4315 $as_echo "$ac_ct_RANLIB" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319 fi
4320
4321 if test "x$ac_ct_RANLIB" = x; then
4322 RANLIB=":"
4323 else
4324 case $cross_compiling:$ac_tool_warned in
4325 yes:)
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4328 ac_tool_warned=yes ;;
4329 esac
4330 RANLIB=$ac_ct_RANLIB
4331 fi
4332 else
4333 RANLIB="$ac_cv_prog_RANLIB"
4334 fi
4335
4336 # Extract the first word of "cflow", so it can be a program name with args.
4337 set dummy cflow; ac_word=$2
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4339 $as_echo_n "checking for $ac_word... " >&6; }
4340 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 case $CFLOW_CMD in
4344 [\\/]* | ?:[\\/]*)
4345 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4346 ;;
4347 *)
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363 ;;
4364 esac
4365 fi
4366 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4367 if test -n "$CFLOW_CMD"; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4369 $as_echo "$CFLOW_CMD" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4373 fi
4374
4375
4376 # Extract the first word of "cscope", so it can be a program name with args.
4377 set dummy cscope; ac_word=$2
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4379 $as_echo_n "checking for $ac_word... " >&6; }
4380 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4382 else
4383 case $CSCOPE_CMD in
4384 [\\/]* | ?:[\\/]*)
4385 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4386 ;;
4387 *)
4388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 for as_dir in $PATH
4390 do
4391 IFS=$as_save_IFS
4392 test -z "$as_dir" && as_dir=.
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4395 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 break 2
4398 fi
4399 done
4400 done
4401 IFS=$as_save_IFS
4402
4403 ;;
4404 esac
4405 fi
4406 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4407 if test -n "$CSCOPE_CMD"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4409 $as_echo "$CSCOPE_CMD" >&6; }
4410 else
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4413 fi
4414
4415
4416
4417 ################################################################################
4418 ac_header_dirent=no
4419 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4420 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4422 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4423 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4428 #include <sys/types.h>
4429 #include <$ac_hdr>
4430
4431 int
4432 main ()
4433 {
4434 if ((DIR *) 0)
4435 return 0;
4436 ;
4437 return 0;
4438 }
4439 _ACEOF
4440 if ac_fn_c_try_compile "$LINENO"; then :
4441 eval "$as_ac_Header=yes"
4442 else
4443 eval "$as_ac_Header=no"
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 fi
4447 eval ac_res=\$$as_ac_Header
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4449 $as_echo "$ac_res" >&6; }
4450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4451 cat >>confdefs.h <<_ACEOF
4452 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4453 _ACEOF
4454
4455 ac_header_dirent=$ac_hdr; break
4456 fi
4457
4458 done
4459 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4460 if test $ac_header_dirent = dirent.h; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4462 $as_echo_n "checking for library containing opendir... " >&6; }
4463 if test "${ac_cv_search_opendir+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 ac_func_search_save_LIBS=$LIBS
4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4468 /* end confdefs.h. */
4469
4470 /* Override any GCC internal prototype to avoid an error.
4471 Use char because int might match the return type of a GCC
4472 builtin and then its argument prototype would still apply. */
4473 #ifdef __cplusplus
4474 extern "C"
4475 #endif
4476 char opendir ();
4477 int
4478 main ()
4479 {
4480 return opendir ();
4481 ;
4482 return 0;
4483 }
4484 _ACEOF
4485 for ac_lib in '' dir; do
4486 if test -z "$ac_lib"; then
4487 ac_res="none required"
4488 else
4489 ac_res=-l$ac_lib
4490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4491 fi
4492 if ac_fn_c_try_link "$LINENO"; then :
4493 ac_cv_search_opendir=$ac_res
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext
4497 if test "${ac_cv_search_opendir+set}" = set; then :
4498 break
4499 fi
4500 done
4501 if test "${ac_cv_search_opendir+set}" = set; then :
4502
4503 else
4504 ac_cv_search_opendir=no
4505 fi
4506 rm conftest.$ac_ext
4507 LIBS=$ac_func_search_save_LIBS
4508 fi
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4510 $as_echo "$ac_cv_search_opendir" >&6; }
4511 ac_res=$ac_cv_search_opendir
4512 if test "$ac_res" != no; then :
4513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4514
4515 fi
4516
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4519 $as_echo_n "checking for library containing opendir... " >&6; }
4520 if test "${ac_cv_search_opendir+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 ac_func_search_save_LIBS=$LIBS
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 /* Override any GCC internal prototype to avoid an error.
4528 Use char because int might match the return type of a GCC
4529 builtin and then its argument prototype would still apply. */
4530 #ifdef __cplusplus
4531 extern "C"
4532 #endif
4533 char opendir ();
4534 int
4535 main ()
4536 {
4537 return opendir ();
4538 ;
4539 return 0;
4540 }
4541 _ACEOF
4542 for ac_lib in '' x; do
4543 if test -z "$ac_lib"; then
4544 ac_res="none required"
4545 else
4546 ac_res=-l$ac_lib
4547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4548 fi
4549 if ac_fn_c_try_link "$LINENO"; then :
4550 ac_cv_search_opendir=$ac_res
4551 fi
4552 rm -f core conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext
4554 if test "${ac_cv_search_opendir+set}" = set; then :
4555 break
4556 fi
4557 done
4558 if test "${ac_cv_search_opendir+set}" = set; then :
4559
4560 else
4561 ac_cv_search_opendir=no
4562 fi
4563 rm conftest.$ac_ext
4564 LIBS=$ac_func_search_save_LIBS
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4567 $as_echo "$ac_cv_search_opendir" >&6; }
4568 ac_res=$ac_cv_search_opendir
4569 if test "$ac_res" != no; then :
4570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4571
4572 fi
4573
4574 fi
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4577 $as_echo_n "checking for ANSI C header files... " >&6; }
4578 if test "${ac_cv_header_stdc+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583 #include <stdlib.h>
4584 #include <stdarg.h>
4585 #include <string.h>
4586 #include <float.h>
4587
4588 int
4589 main ()
4590 {
4591
4592 ;
4593 return 0;
4594 }
4595 _ACEOF
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597 ac_cv_header_stdc=yes
4598 else
4599 ac_cv_header_stdc=no
4600 fi
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602
4603 if test $ac_cv_header_stdc = yes; then
4604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #include <string.h>
4608
4609 _ACEOF
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "memchr" >/dev/null 2>&1; then :
4612
4613 else
4614 ac_cv_header_stdc=no
4615 fi
4616 rm -f conftest*
4617
4618 fi
4619
4620 if test $ac_cv_header_stdc = yes; then
4621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <stdlib.h>
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "free" >/dev/null 2>&1; then :
4629
4630 else
4631 ac_cv_header_stdc=no
4632 fi
4633 rm -f conftest*
4634
4635 fi
4636
4637 if test $ac_cv_header_stdc = yes; then
4638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4639 if test "$cross_compiling" = yes; then :
4640 :
4641 else
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4644 #include <ctype.h>
4645 #include <stdlib.h>
4646 #if ((' ' & 0x0FF) == 0x020)
4647 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4648 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4649 #else
4650 # define ISLOWER(c) \
4651 (('a' <= (c) && (c) <= 'i') \
4652 || ('j' <= (c) && (c) <= 'r') \
4653 || ('s' <= (c) && (c) <= 'z'))
4654 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4655 #endif
4656
4657 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4658 int
4659 main ()
4660 {
4661 int i;
4662 for (i = 0; i < 256; i++)
4663 if (XOR (islower (i), ISLOWER (i))
4664 || toupper (i) != TOUPPER (i))
4665 return 2;
4666 return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_run "$LINENO"; then :
4670
4671 else
4672 ac_cv_header_stdc=no
4673 fi
4674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4675 conftest.$ac_objext conftest.beam conftest.$ac_ext
4676 fi
4677
4678 fi
4679 fi
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4681 $as_echo "$ac_cv_header_stdc" >&6; }
4682 if test $ac_cv_header_stdc = yes; then
4683
4684 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4685
4686 fi
4687
4688 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4689 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4690 inttypes.h stdint.h unistd.h
4691 do :
4692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4693 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4694 "
4695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4696 cat >>confdefs.h <<_ACEOF
4697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4698 _ACEOF
4699
4700 fi
4701
4702 done
4703
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4706 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4707 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 #include <sys/types.h>
4713 int
4714 main ()
4715 {
4716 return makedev(0, 0);
4717 ;
4718 return 0;
4719 }
4720 _ACEOF
4721 if ac_fn_c_try_link "$LINENO"; then :
4722 ac_cv_header_sys_types_h_makedev=yes
4723 else
4724 ac_cv_header_sys_types_h_makedev=no
4725 fi
4726 rm -f core conftest.err conftest.$ac_objext \
4727 conftest$ac_exeext conftest.$ac_ext
4728
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4731 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4732
4733 if test $ac_cv_header_sys_types_h_makedev = no; then
4734 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4735 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4736
4737 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4738
4739 fi
4740
4741
4742
4743 if test $ac_cv_header_sys_mkdev_h = no; then
4744 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4745 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4746
4747 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4748
4749 fi
4750
4751
4752 fi
4753 fi
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4756 $as_echo_n "checking for ANSI C header files... " >&6; }
4757 if test "${ac_cv_header_stdc+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 #include <stdlib.h>
4763 #include <stdarg.h>
4764 #include <string.h>
4765 #include <float.h>
4766
4767 int
4768 main ()
4769 {
4770
4771 ;
4772 return 0;
4773 }
4774 _ACEOF
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776 ac_cv_header_stdc=yes
4777 else
4778 ac_cv_header_stdc=no
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781
4782 if test $ac_cv_header_stdc = yes; then
4783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786 #include <string.h>
4787
4788 _ACEOF
4789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "memchr" >/dev/null 2>&1; then :
4791
4792 else
4793 ac_cv_header_stdc=no
4794 fi
4795 rm -f conftest*
4796
4797 fi
4798
4799 if test $ac_cv_header_stdc = yes; then
4800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 #include <stdlib.h>
4804
4805 _ACEOF
4806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807 $EGREP "free" >/dev/null 2>&1; then :
4808
4809 else
4810 ac_cv_header_stdc=no
4811 fi
4812 rm -f conftest*
4813
4814 fi
4815
4816 if test $ac_cv_header_stdc = yes; then
4817 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4818 if test "$cross_compiling" = yes; then :
4819 :
4820 else
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4823 #include <ctype.h>
4824 #include <stdlib.h>
4825 #if ((' ' & 0x0FF) == 0x020)
4826 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4827 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4828 #else
4829 # define ISLOWER(c) \
4830 (('a' <= (c) && (c) <= 'i') \
4831 || ('j' <= (c) && (c) <= 'r') \
4832 || ('s' <= (c) && (c) <= 'z'))
4833 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4834 #endif
4835
4836 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4837 int
4838 main ()
4839 {
4840 int i;
4841 for (i = 0; i < 256; i++)
4842 if (XOR (islower (i), ISLOWER (i))
4843 || toupper (i) != TOUPPER (i))
4844 return 2;
4845 return 0;
4846 }
4847 _ACEOF
4848 if ac_fn_c_try_run "$LINENO"; then :
4849
4850 else
4851 ac_cv_header_stdc=no
4852 fi
4853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4854 conftest.$ac_objext conftest.beam conftest.$ac_ext
4855 fi
4856
4857 fi
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4860 $as_echo "$ac_cv_header_stdc" >&6; }
4861 if test $ac_cv_header_stdc = yes; then
4862
4863 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4864
4865 fi
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4868 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4869 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4874 #include <sys/types.h>
4875 #include <sys/wait.h>
4876 #ifndef WEXITSTATUS
4877 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4878 #endif
4879 #ifndef WIFEXITED
4880 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4881 #endif
4882
4883 int
4884 main ()
4885 {
4886 int s;
4887 wait (&s);
4888 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4889 ;
4890 return 0;
4891 }
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 ac_cv_header_sys_wait_h=yes
4895 else
4896 ac_cv_header_sys_wait_h=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4901 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4902 if test $ac_cv_header_sys_wait_h = yes; then
4903
4904 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4905
4906 fi
4907
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4909 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4910 if test "${ac_cv_header_time+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4915 #include <sys/types.h>
4916 #include <sys/time.h>
4917 #include <time.h>
4918
4919 int
4920 main ()
4921 {
4922 if ((struct tm *) 0)
4923 return 0;
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 if ac_fn_c_try_compile "$LINENO"; then :
4929 ac_cv_header_time=yes
4930 else
4931 ac_cv_header_time=no
4932 fi
4933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4936 $as_echo "$ac_cv_header_time" >&6; }
4937 if test $ac_cv_header_time = yes; then
4938
4939 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4940
4941 fi
4942
4943
4944 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4945 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4946 sys/wait.h time.h
4947 do :
4948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4949 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4951 cat >>confdefs.h <<_ACEOF
4952 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4953 _ACEOF
4954
4955 else
4956 as_fn_error $? "bailing out" "$LINENO" 5
4957 fi
4958
4959 done
4960
4961
4962 case "$host_os" in
4963 linux*)
4964 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4965 do :
4966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4969 cat >>confdefs.h <<_ACEOF
4970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4971 _ACEOF
4972
4973 else
4974 as_fn_error $? "bailing out" "$LINENO" 5
4975 fi
4976
4977 done
4978 ;;
4979 darwin*)
4980 for ac_header in machine/endian.h sys/disk.h
4981 do :
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4985 cat >>confdefs.h <<_ACEOF
4986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987 _ACEOF
4988
4989 else
4990 as_fn_error $? "bailing out" "$LINENO" 5
4991 fi
4992
4993 done
4994 ;;
4995 esac
4996
4997 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4998 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4999 sys/types.h unistd.h
5000 do :
5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5003 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5004 cat >>confdefs.h <<_ACEOF
5005 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006 _ACEOF
5007
5008 else
5009 as_fn_error $? "bailing out" "$LINENO" 5
5010 fi
5011
5012 done
5013
5014 for ac_header in termios.h sys/statvfs.h
5015 do :
5016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5017 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5019 cat >>confdefs.h <<_ACEOF
5020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021 _ACEOF
5022
5023 fi
5024
5025 done
5026
5027
5028 ################################################################################
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5030 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5031 if test "${ac_cv_c_const+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036
5037 int
5038 main ()
5039 {
5040 /* FIXME: Include the comments suggested by Paul. */
5041 #ifndef __cplusplus
5042 /* Ultrix mips cc rejects this. */
5043 typedef int charset[2];
5044 const charset cs;
5045 /* SunOS 4.1.1 cc rejects this. */
5046 char const *const *pcpcc;
5047 char **ppc;
5048 /* NEC SVR4.0.2 mips cc rejects this. */
5049 struct point {int x, y;};
5050 static struct point const zero = {0,0};
5051 /* AIX XL C 1.02.0.0 rejects this.
5052 It does not let you subtract one const X* pointer from another in
5053 an arm of an if-expression whose if-part is not a constant
5054 expression */
5055 const char *g = "string";
5056 pcpcc = &g + (g ? g-g : 0);
5057 /* HPUX 7.0 cc rejects these. */
5058 ++pcpcc;
5059 ppc = (char**) pcpcc;
5060 pcpcc = (char const *const *) ppc;
5061 { /* SCO 3.2v4 cc rejects this. */
5062 char *t;
5063 char const *s = 0 ? (char *) 0 : (char const *) 0;
5064
5065 *t++ = 0;
5066 if (s) return 0;
5067 }
5068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5069 int x[] = {25, 17};
5070 const int *foo = &x[0];
5071 ++foo;
5072 }
5073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5074 typedef const int *iptr;
5075 iptr p = 0;
5076 ++p;
5077 }
5078 { /* AIX XL C 1.02.0.0 rejects this saying
5079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5080 struct s { int j; const int *ap[3]; };
5081 struct s *b; b->j = 5;
5082 }
5083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5084 const int foo = 10;
5085 if (!foo) return 0;
5086 }
5087 return !cs[0] && !zero.x;
5088 #endif
5089
5090 ;
5091 return 0;
5092 }
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095 ac_cv_c_const=yes
5096 else
5097 ac_cv_c_const=no
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5102 $as_echo "$ac_cv_c_const" >&6; }
5103 if test $ac_cv_c_const = no; then
5104
5105 $as_echo "#define const /**/" >>confdefs.h
5106
5107 fi
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5110 $as_echo_n "checking for inline... " >&6; }
5111 if test "${ac_cv_c_inline+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 ac_cv_c_inline=no
5115 for ac_kw in inline __inline__ __inline; do
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #ifndef __cplusplus
5119 typedef int foo_t;
5120 static $ac_kw foo_t static_foo () {return 0; }
5121 $ac_kw foo_t foo () {return 0; }
5122 #endif
5123
5124 _ACEOF
5125 if ac_fn_c_try_compile "$LINENO"; then :
5126 ac_cv_c_inline=$ac_kw
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 test "$ac_cv_c_inline" != no && break
5130 done
5131
5132 fi
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5134 $as_echo "$ac_cv_c_inline" >&6; }
5135
5136 case $ac_cv_c_inline in
5137 inline | yes) ;;
5138 *)
5139 case $ac_cv_c_inline in
5140 no) ac_val=;;
5141 *) ac_val=$ac_cv_c_inline;;
5142 esac
5143 cat >>confdefs.h <<_ACEOF
5144 #ifndef __cplusplus
5145 #define inline $ac_val
5146 #endif
5147 _ACEOF
5148 ;;
5149 esac
5150
5151 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5152 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5153
5154 cat >>confdefs.h <<_ACEOF
5155 #define HAVE_STRUCT_STAT_ST_RDEV 1
5156 _ACEOF
5157
5158
5159 fi
5160
5161 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5162 if test "x$ac_cv_type_off_t" = x""yes; then :
5163
5164 else
5165
5166 cat >>confdefs.h <<_ACEOF
5167 #define off_t long int
5168 _ACEOF
5169
5170 fi
5171
5172 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5173 if test "x$ac_cv_type_pid_t" = x""yes; then :
5174
5175 else
5176
5177 cat >>confdefs.h <<_ACEOF
5178 #define pid_t int
5179 _ACEOF
5180
5181 fi
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5184 $as_echo_n "checking return type of signal handlers... " >&6; }
5185 if test "${ac_cv_type_signal+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <sys/types.h>
5191 #include <signal.h>
5192
5193 int
5194 main ()
5195 {
5196 return *(signal (0, 0)) (0) == 1;
5197 ;
5198 return 0;
5199 }
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"; then :
5202 ac_cv_type_signal=int
5203 else
5204 ac_cv_type_signal=void
5205 fi
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 fi
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5209 $as_echo "$ac_cv_type_signal" >&6; }
5210
5211 cat >>confdefs.h <<_ACEOF
5212 #define RETSIGTYPE $ac_cv_type_signal
5213 _ACEOF
5214
5215
5216 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5217 if test "x$ac_cv_type_size_t" = x""yes; then :
5218
5219 else
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define size_t unsigned int
5223 _ACEOF
5224
5225 fi
5226
5227 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5228 if test "x$ac_cv_type_mode_t" = x""yes; then :
5229
5230 else
5231
5232 cat >>confdefs.h <<_ACEOF
5233 #define mode_t int
5234 _ACEOF
5235
5236 fi
5237
5238 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5239 case $ac_cv_c_int8_t in #(
5240 no|yes) ;; #(
5241 *)
5242
5243 cat >>confdefs.h <<_ACEOF
5244 #define int8_t $ac_cv_c_int8_t
5245 _ACEOF
5246 ;;
5247 esac
5248
5249 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5250 case $ac_cv_c_int16_t in #(
5251 no|yes) ;; #(
5252 *)
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define int16_t $ac_cv_c_int16_t
5256 _ACEOF
5257 ;;
5258 esac
5259
5260 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5261 case $ac_cv_c_int32_t in #(
5262 no|yes) ;; #(
5263 *)
5264
5265 cat >>confdefs.h <<_ACEOF
5266 #define int32_t $ac_cv_c_int32_t
5267 _ACEOF
5268 ;;
5269 esac
5270
5271 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5272 case $ac_cv_c_int64_t in #(
5273 no|yes) ;; #(
5274 *)
5275
5276 cat >>confdefs.h <<_ACEOF
5277 #define int64_t $ac_cv_c_int64_t
5278 _ACEOF
5279 ;;
5280 esac
5281
5282 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5283 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5284
5285 else
5286
5287 cat >>confdefs.h <<_ACEOF
5288 #define ssize_t int
5289 _ACEOF
5290
5291 fi
5292
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5294 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5295 if test "${ac_cv_type_uid_t+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 #include <sys/types.h>
5301
5302 _ACEOF
5303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5304 $EGREP "uid_t" >/dev/null 2>&1; then :
5305 ac_cv_type_uid_t=yes
5306 else
5307 ac_cv_type_uid_t=no
5308 fi
5309 rm -f conftest*
5310
5311 fi
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5313 $as_echo "$ac_cv_type_uid_t" >&6; }
5314 if test $ac_cv_type_uid_t = no; then
5315
5316 $as_echo "#define uid_t int" >>confdefs.h
5317
5318
5319 $as_echo "#define gid_t int" >>confdefs.h
5320
5321 fi
5322
5323 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5324 case $ac_cv_c_uint8_t in #(
5325 no|yes) ;; #(
5326 *)
5327
5328 $as_echo "#define _UINT8_T 1" >>confdefs.h
5329
5330
5331 cat >>confdefs.h <<_ACEOF
5332 #define uint8_t $ac_cv_c_uint8_t
5333 _ACEOF
5334 ;;
5335 esac
5336
5337 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5338 case $ac_cv_c_uint16_t in #(
5339 no|yes) ;; #(
5340 *)
5341
5342
5343 cat >>confdefs.h <<_ACEOF
5344 #define uint16_t $ac_cv_c_uint16_t
5345 _ACEOF
5346 ;;
5347 esac
5348
5349 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5350 case $ac_cv_c_uint32_t in #(
5351 no|yes) ;; #(
5352 *)
5353
5354 $as_echo "#define _UINT32_T 1" >>confdefs.h
5355
5356
5357 cat >>confdefs.h <<_ACEOF
5358 #define uint32_t $ac_cv_c_uint32_t
5359 _ACEOF
5360 ;;
5361 esac
5362
5363 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5364 case $ac_cv_c_uint64_t in #(
5365 no|yes) ;; #(
5366 *)
5367
5368 $as_echo "#define _UINT64_T 1" >>confdefs.h
5369
5370
5371 cat >>confdefs.h <<_ACEOF
5372 #define uint64_t $ac_cv_c_uint64_t
5373 _ACEOF
5374 ;;
5375 esac
5376
5377 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5378 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define HAVE_STRUCT_STAT_ST_RDEV 1
5382 _ACEOF
5383
5384
5385 fi
5386
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5388 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5389 if test "${ac_cv_struct_tm+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5394 #include <sys/types.h>
5395 #include <time.h>
5396
5397 int
5398 main ()
5399 {
5400 struct tm tm;
5401 int *p = &tm.tm_sec;
5402 return !p;
5403 ;
5404 return 0;
5405 }
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_struct_tm=time.h
5409 else
5410 ac_cv_struct_tm=sys/time.h
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 fi
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5415 $as_echo "$ac_cv_struct_tm" >&6; }
5416 if test $ac_cv_struct_tm = sys/time.h; then
5417
5418 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5419
5420 fi
5421
5422
5423 ################################################################################
5424 for ac_func in ftruncate gethostname getpagesize \
5425 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5426 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5427 strstr strtol strtoul uname
5428 do :
5429 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5430 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5431 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5432 cat >>confdefs.h <<_ACEOF
5433 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5434 _ACEOF
5435
5436 else
5437 as_fn_error $? "bailing out" "$LINENO" 5
5438 fi
5439 done
5440
5441 for ac_func in siginterrupt
5442 do :
5443 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5444 if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5445 cat >>confdefs.h <<_ACEOF
5446 #define HAVE_SIGINTERRUPT 1
5447 _ACEOF
5448
5449 fi
5450 done
5451
5452 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5453 # for constant arguments. Useless!
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5455 $as_echo_n "checking for working alloca.h... " >&6; }
5456 if test "${ac_cv_working_alloca_h+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 #include <alloca.h>
5462 int
5463 main ()
5464 {
5465 char *p = (char *) alloca (2 * sizeof (int));
5466 if (p) return 0;
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_link "$LINENO"; then :
5472 ac_cv_working_alloca_h=yes
5473 else
5474 ac_cv_working_alloca_h=no
5475 fi
5476 rm -f core conftest.err conftest.$ac_objext \
5477 conftest$ac_exeext conftest.$ac_ext
5478 fi
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5480 $as_echo "$ac_cv_working_alloca_h" >&6; }
5481 if test $ac_cv_working_alloca_h = yes; then
5482
5483 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5484
5485 fi
5486
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5488 $as_echo_n "checking for alloca... " >&6; }
5489 if test "${ac_cv_func_alloca_works+set}" = set; then :
5490 $as_echo_n "(cached) " >&6
5491 else
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #ifdef __GNUC__
5495 # define alloca __builtin_alloca
5496 #else
5497 # ifdef _MSC_VER
5498 # include <malloc.h>
5499 # define alloca _alloca
5500 # else
5501 # ifdef HAVE_ALLOCA_H
5502 # include <alloca.h>
5503 # else
5504 # ifdef _AIX
5505 #pragma alloca
5506 # else
5507 # ifndef alloca /* predefined by HP cc +Olibcalls */
5508 char *alloca ();
5509 # endif
5510 # endif
5511 # endif
5512 # endif
5513 #endif
5514
5515 int
5516 main ()
5517 {
5518 char *p = (char *) alloca (1);
5519 if (p) return 0;
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_c_try_link "$LINENO"; then :
5525 ac_cv_func_alloca_works=yes
5526 else
5527 ac_cv_func_alloca_works=no
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext conftest.$ac_ext
5531 fi
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5533 $as_echo "$ac_cv_func_alloca_works" >&6; }
5534
5535 if test $ac_cv_func_alloca_works = yes; then
5536
5537 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5538
5539 else
5540 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5541 # that cause trouble. Some versions do not even contain alloca or
5542 # contain a buggy version. If you still want to use their alloca,
5543 # use ar to extract alloca.o from them instead of compiling alloca.c.
5544
5545 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5546
5547 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5548
5549
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5551 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5552 if test "${ac_cv_os_cray+set}" = set; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556 /* end confdefs.h. */
5557 #if defined CRAY && ! defined CRAY2
5558 webecray
5559 #else
5560 wenotbecray
5561 #endif
5562
5563 _ACEOF
5564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5565 $EGREP "webecray" >/dev/null 2>&1; then :
5566 ac_cv_os_cray=yes
5567 else
5568 ac_cv_os_cray=no
5569 fi
5570 rm -f conftest*
5571
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5574 $as_echo "$ac_cv_os_cray" >&6; }
5575 if test $ac_cv_os_cray = yes; then
5576 for ac_func in _getb67 GETB67 getb67; do
5577 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5578 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5579 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5580
5581 cat >>confdefs.h <<_ACEOF
5582 #define CRAY_STACKSEG_END $ac_func
5583 _ACEOF
5584
5585 break
5586 fi
5587
5588 done
5589 fi
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5592 $as_echo_n "checking stack direction for C alloca... " >&6; }
5593 if test "${ac_cv_c_stack_direction+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 if test "$cross_compiling" = yes; then :
5597 ac_cv_c_stack_direction=0
5598 else
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601 $ac_includes_default
5602 int
5603 find_stack_direction ()
5604 {
5605 static char *addr = 0;
5606 auto char dummy;
5607 if (addr == 0)
5608 {
5609 addr = &dummy;
5610 return find_stack_direction ();
5611 }
5612 else
5613 return (&dummy > addr) ? 1 : -1;
5614 }
5615
5616 int
5617 main ()
5618 {
5619 return find_stack_direction () < 0;
5620 }
5621 _ACEOF
5622 if ac_fn_c_try_run "$LINENO"; then :
5623 ac_cv_c_stack_direction=1
5624 else
5625 ac_cv_c_stack_direction=-1
5626 fi
5627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5628 conftest.$ac_objext conftest.beam conftest.$ac_ext
5629 fi
5630
5631 fi
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5633 $as_echo "$ac_cv_c_stack_direction" >&6; }
5634 cat >>confdefs.h <<_ACEOF
5635 #define STACK_DIRECTION $ac_cv_c_stack_direction
5636 _ACEOF
5637
5638
5639 fi
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5642 $as_echo_n "checking whether closedir returns void... " >&6; }
5643 if test "${ac_cv_func_closedir_void+set}" = set; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 if test "$cross_compiling" = yes; then :
5647 ac_cv_func_closedir_void=yes
5648 else
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 $ac_includes_default
5652 #include <$ac_header_dirent>
5653 #ifndef __cplusplus
5654 int closedir ();
5655 #endif
5656
5657 int
5658 main ()
5659 {
5660 return closedir (opendir (".")) != 0;
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 if ac_fn_c_try_run "$LINENO"; then :
5666 ac_cv_func_closedir_void=no
5667 else
5668 ac_cv_func_closedir_void=yes
5669 fi
5670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5671 conftest.$ac_objext conftest.beam conftest.$ac_ext
5672 fi
5673
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5676 $as_echo "$ac_cv_func_closedir_void" >&6; }
5677 if test $ac_cv_func_closedir_void = yes; then
5678
5679 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5680
5681 fi
5682
5683 for ac_header in unistd.h
5684 do :
5685 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5686 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5687 cat >>confdefs.h <<_ACEOF
5688 #define HAVE_UNISTD_H 1
5689 _ACEOF
5690
5691 fi
5692
5693 done
5694
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5696 $as_echo_n "checking for working chown... " >&6; }
5697 if test "${ac_cv_func_chown_works+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test "$cross_compiling" = yes; then :
5701 ac_cv_func_chown_works=no
5702 else
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 $ac_includes_default
5706 #include <fcntl.h>
5707
5708 int
5709 main ()
5710 {
5711 char *f = "conftest.chown";
5712 struct stat before, after;
5713
5714 if (creat (f, 0600) < 0)
5715 return 1;
5716 if (stat (f, &before) < 0)
5717 return 1;
5718 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5719 return 1;
5720 if (stat (f, &after) < 0)
5721 return 1;
5722 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_run "$LINENO"; then :
5729 ac_cv_func_chown_works=yes
5730 else
5731 ac_cv_func_chown_works=no
5732 fi
5733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5734 conftest.$ac_objext conftest.beam conftest.$ac_ext
5735 fi
5736
5737 rm -f conftest.chown
5738
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5741 $as_echo "$ac_cv_func_chown_works" >&6; }
5742 if test $ac_cv_func_chown_works = yes; then
5743
5744 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5745
5746 fi
5747
5748 for ac_header in vfork.h
5749 do :
5750 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5751 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5752 cat >>confdefs.h <<_ACEOF
5753 #define HAVE_VFORK_H 1
5754 _ACEOF
5755
5756 fi
5757
5758 done
5759
5760 for ac_func in fork vfork
5761 do :
5762 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5763 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5764 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5765 cat >>confdefs.h <<_ACEOF
5766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5767 _ACEOF
5768
5769 fi
5770 done
5771
5772 if test "x$ac_cv_func_fork" = xyes; then
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5774 $as_echo_n "checking for working fork... " >&6; }
5775 if test "${ac_cv_func_fork_works+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 if test "$cross_compiling" = yes; then :
5779 ac_cv_func_fork_works=cross
5780 else
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782 /* end confdefs.h. */
5783 $ac_includes_default
5784 int
5785 main ()
5786 {
5787
5788 /* By Ruediger Kuhlmann. */
5789 return fork () < 0;
5790
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_c_try_run "$LINENO"; then :
5796 ac_cv_func_fork_works=yes
5797 else
5798 ac_cv_func_fork_works=no
5799 fi
5800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5801 conftest.$ac_objext conftest.beam conftest.$ac_ext
5802 fi
5803
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5806 $as_echo "$ac_cv_func_fork_works" >&6; }
5807
5808 else
5809 ac_cv_func_fork_works=$ac_cv_func_fork
5810 fi
5811 if test "x$ac_cv_func_fork_works" = xcross; then
5812 case $host in
5813 *-*-amigaos* | *-*-msdosdjgpp*)
5814 # Override, as these systems have only a dummy fork() stub
5815 ac_cv_func_fork_works=no
5816 ;;
5817 *)
5818 ac_cv_func_fork_works=yes
5819 ;;
5820 esac
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5822 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5823 fi
5824 ac_cv_func_vfork_works=$ac_cv_func_vfork
5825 if test "x$ac_cv_func_vfork" = xyes; then
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5827 $as_echo_n "checking for working vfork... " >&6; }
5828 if test "${ac_cv_func_vfork_works+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if test "$cross_compiling" = yes; then :
5832 ac_cv_func_vfork_works=cross
5833 else
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 /* Thanks to Paul Eggert for this test. */
5837 $ac_includes_default
5838 #include <sys/wait.h>
5839 #ifdef HAVE_VFORK_H
5840 # include <vfork.h>
5841 #endif
5842 /* On some sparc systems, changes by the child to local and incoming
5843 argument registers are propagated back to the parent. The compiler
5844 is told about this with #include <vfork.h>, but some compilers
5845 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5846 static variable whose address is put into a register that is
5847 clobbered by the vfork. */
5848 static void
5849 #ifdef __cplusplus
5850 sparc_address_test (int arg)
5851 # else
5852 sparc_address_test (arg) int arg;
5853 #endif
5854 {
5855 static pid_t child;
5856 if (!child) {
5857 child = vfork ();
5858 if (child < 0) {
5859 perror ("vfork");
5860 _exit(2);
5861 }
5862 if (!child) {
5863 arg = getpid();
5864 write(-1, "", 0);
5865 _exit (arg);
5866 }
5867 }
5868 }
5869
5870 int
5871 main ()
5872 {
5873 pid_t parent = getpid ();
5874 pid_t child;
5875
5876 sparc_address_test (0);
5877
5878 child = vfork ();
5879
5880 if (child == 0) {
5881 /* Here is another test for sparc vfork register problems. This
5882 test uses lots of local variables, at least as many local
5883 variables as main has allocated so far including compiler
5884 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5885 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5886 reuse the register of parent for one of the local variables,
5887 since it will think that parent can't possibly be used any more
5888 in this routine. Assigning to the local variable will thus
5889 munge parent in the parent process. */
5890 pid_t
5891 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5892 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5893 /* Convince the compiler that p..p7 are live; otherwise, it might
5894 use the same hardware register for all 8 local variables. */
5895 if (p != p1 || p != p2 || p != p3 || p != p4
5896 || p != p5 || p != p6 || p != p7)
5897 _exit(1);
5898
5899 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5900 from child file descriptors. If the child closes a descriptor
5901 before it execs or exits, this munges the parent's descriptor
5902 as well. Test for this by closing stdout in the child. */
5903 _exit(close(fileno(stdout)) != 0);
5904 } else {
5905 int status;
5906 struct stat st;
5907
5908 while (wait(&status) != child)
5909 ;
5910 return (
5911 /* Was there some problem with vforking? */
5912 child < 0
5913
5914 /* Did the child fail? (This shouldn't happen.) */
5915 || status
5916
5917 /* Did the vfork/compiler bug occur? */
5918 || parent != getpid()
5919
5920 /* Did the file descriptor bug occur? */
5921 || fstat(fileno(stdout), &st) != 0
5922 );
5923 }
5924 }
5925 _ACEOF
5926 if ac_fn_c_try_run "$LINENO"; then :
5927 ac_cv_func_vfork_works=yes
5928 else
5929 ac_cv_func_vfork_works=no
5930 fi
5931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5932 conftest.$ac_objext conftest.beam conftest.$ac_ext
5933 fi
5934
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5937 $as_echo "$ac_cv_func_vfork_works" >&6; }
5938
5939 fi;
5940 if test "x$ac_cv_func_fork_works" = xcross; then
5941 ac_cv_func_vfork_works=$ac_cv_func_vfork
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5943 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5944 fi
5945
5946 if test "x$ac_cv_func_vfork_works" = xyes; then
5947
5948 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5949
5950 else
5951
5952 $as_echo "#define vfork fork" >>confdefs.h
5953
5954 fi
5955 if test "x$ac_cv_func_fork_works" = xyes; then
5956
5957 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5958
5959 fi
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5962 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5963 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5964 $as_echo_n "(cached) " >&6
5965 else
5966 rm -f conftest.sym conftest.file
5967 echo >conftest.file
5968 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5969 if test "$cross_compiling" = yes; then :
5970 ac_cv_func_lstat_dereferences_slashed_symlink=no
5971 else
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5974 $ac_includes_default
5975 int
5976 main ()
5977 {
5978 struct stat sbuf;
5979 /* Linux will dereference the symlink and fail, as required by POSIX.
5980 That is better in the sense that it means we will not
5981 have to compile and use the lstat wrapper. */
5982 return lstat ("conftest.sym/", &sbuf) == 0;
5983 ;
5984 return 0;
5985 }
5986 _ACEOF
5987 if ac_fn_c_try_run "$LINENO"; then :
5988 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5989 else
5990 ac_cv_func_lstat_dereferences_slashed_symlink=no
5991 fi
5992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5993 conftest.$ac_objext conftest.beam conftest.$ac_ext
5994 fi
5995
5996 else
5997 # If the `ln -s' command failed, then we probably don't even
5998 # have an lstat function.
5999 ac_cv_func_lstat_dereferences_slashed_symlink=no
6000 fi
6001 rm -f conftest.sym conftest.file
6002
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6005 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6006
6007 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6008
6009 cat >>confdefs.h <<_ACEOF
6010 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6011 _ACEOF
6012
6013
6014 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6015 case " $LIBOBJS " in
6016 *" lstat.$ac_objext "* ) ;;
6017 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6018 ;;
6019 esac
6020
6021 fi
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6024 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6025 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test "$cross_compiling" = yes; then :
6029 ac_cv_func_lstat_empty_string_bug=yes
6030 else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 $ac_includes_default
6034 int
6035 main ()
6036 {
6037 struct stat sbuf;
6038 return lstat ("", &sbuf) == 0;
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_run "$LINENO"; then :
6044 ac_cv_func_lstat_empty_string_bug=no
6045 else
6046 ac_cv_func_lstat_empty_string_bug=yes
6047 fi
6048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6049 conftest.$ac_objext conftest.beam conftest.$ac_ext
6050 fi
6051
6052 fi
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6054 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6055 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6056 case " $LIBOBJS " in
6057 *" lstat.$ac_objext "* ) ;;
6058 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6059 ;;
6060 esac
6061
6062
6063 cat >>confdefs.h <<_ACEOF
6064 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6065 _ACEOF
6066
6067 fi
6068
6069 for ac_header in stdlib.h
6070 do :
6071 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6072 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6073 cat >>confdefs.h <<_ACEOF
6074 #define HAVE_STDLIB_H 1
6075 _ACEOF
6076
6077 fi
6078
6079 done
6080
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6082 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6083 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6084 $as_echo_n "(cached) " >&6
6085 else
6086 if test "$cross_compiling" = yes; then :
6087 ac_cv_func_malloc_0_nonnull=no
6088 else
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6092 # include <stdlib.h>
6093 #else
6094 char *malloc ();
6095 #endif
6096
6097 int
6098 main ()
6099 {
6100 return ! malloc (0);
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_run "$LINENO"; then :
6106 ac_cv_func_malloc_0_nonnull=yes
6107 else
6108 ac_cv_func_malloc_0_nonnull=no
6109 fi
6110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6111 conftest.$ac_objext conftest.beam conftest.$ac_ext
6112 fi
6113
6114 fi
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6116 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6117 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6118
6119 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6120
6121 else
6122 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6123
6124 case " $LIBOBJS " in
6125 *" malloc.$ac_objext "* ) ;;
6126 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6127 ;;
6128 esac
6129
6130
6131 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6132
6133 fi
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6137 $as_echo_n "checking for working memcmp... " >&6; }
6138 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 if test "$cross_compiling" = yes; then :
6142 ac_cv_func_memcmp_working=no
6143 else
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6146 $ac_includes_default
6147 int
6148 main ()
6149 {
6150
6151 /* Some versions of memcmp are not 8-bit clean. */
6152 char c0 = '\100', c1 = '\200', c2 = '\201';
6153 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6154 return 1;
6155
6156 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6157 or more and with at least one buffer not starting on a 4-byte boundary.
6158 William Lewis provided this test program. */
6159 {
6160 char foo[21];
6161 char bar[21];
6162 int i;
6163 for (i = 0; i < 4; i++)
6164 {
6165 char *a = foo + i;
6166 char *b = bar + i;
6167 strcpy (a, "--------01111111");
6168 strcpy (b, "--------10000000");
6169 if (memcmp (a, b, 16) >= 0)
6170 return 1;
6171 }
6172 return 0;
6173 }
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_run "$LINENO"; then :
6180 ac_cv_func_memcmp_working=yes
6181 else
6182 ac_cv_func_memcmp_working=no
6183 fi
6184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6185 conftest.$ac_objext conftest.beam conftest.$ac_ext
6186 fi
6187
6188 fi
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6190 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6191 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6192 *" memcmp.$ac_objext "* ) ;;
6193 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6194 ;;
6195 esac
6196
6197
6198
6199
6200
6201 for ac_header in $ac_header_list
6202 do :
6203 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6204 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6205 "
6206 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6207 cat >>confdefs.h <<_ACEOF
6208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6209 _ACEOF
6210
6211 fi
6212
6213 done
6214
6215
6216
6217
6218
6219
6220
6221
6222 for ac_func in getpagesize
6223 do :
6224 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6225 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6226 cat >>confdefs.h <<_ACEOF
6227 #define HAVE_GETPAGESIZE 1
6228 _ACEOF
6229
6230 fi
6231 done
6232
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6234 $as_echo_n "checking for working mmap... " >&6; }
6235 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6236 $as_echo_n "(cached) " >&6
6237 else
6238 if test "$cross_compiling" = yes; then :
6239 ac_cv_func_mmap_fixed_mapped=no
6240 else
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 $ac_includes_default
6244 /* malloc might have been renamed as rpl_malloc. */
6245 #undef malloc
6246
6247 /* Thanks to Mike Haertel and Jim Avera for this test.
6248 Here is a matrix of mmap possibilities:
6249 mmap private not fixed
6250 mmap private fixed at somewhere currently unmapped
6251 mmap private fixed at somewhere already mapped
6252 mmap shared not fixed
6253 mmap shared fixed at somewhere currently unmapped
6254 mmap shared fixed at somewhere already mapped
6255 For private mappings, we should verify that changes cannot be read()
6256 back from the file, nor mmap's back from the file at a different
6257 address. (There have been systems where private was not correctly
6258 implemented like the infamous i386 svr4.0, and systems where the
6259 VM page cache was not coherent with the file system buffer cache
6260 like early versions of FreeBSD and possibly contemporary NetBSD.)
6261 For shared mappings, we should conversely verify that changes get
6262 propagated back to all the places they're supposed to be.
6263
6264 Grep wants private fixed already mapped.
6265 The main things grep needs to know about mmap are:
6266 * does it exist and is it safe to write into the mmap'd area
6267 * how to use it (BSD variants) */
6268
6269 #include <fcntl.h>
6270 #include <sys/mman.h>
6271
6272 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6273 char *malloc ();
6274 #endif
6275
6276 /* This mess was copied from the GNU getpagesize.h. */
6277 #ifndef HAVE_GETPAGESIZE
6278 # ifdef _SC_PAGESIZE
6279 # define getpagesize() sysconf(_SC_PAGESIZE)
6280 # else /* no _SC_PAGESIZE */
6281 # ifdef HAVE_SYS_PARAM_H
6282 # include <sys/param.h>
6283 # ifdef EXEC_PAGESIZE
6284 # define getpagesize() EXEC_PAGESIZE
6285 # else /* no EXEC_PAGESIZE */
6286 # ifdef NBPG
6287 # define getpagesize() NBPG * CLSIZE
6288 # ifndef CLSIZE
6289 # define CLSIZE 1
6290 # endif /* no CLSIZE */
6291 # else /* no NBPG */
6292 # ifdef NBPC
6293 # define getpagesize() NBPC
6294 # else /* no NBPC */
6295 # ifdef PAGESIZE
6296 # define getpagesize() PAGESIZE
6297 # endif /* PAGESIZE */
6298 # endif /* no NBPC */
6299 # endif /* no NBPG */
6300 # endif /* no EXEC_PAGESIZE */
6301 # else /* no HAVE_SYS_PARAM_H */
6302 # define getpagesize() 8192 /* punt totally */
6303 # endif /* no HAVE_SYS_PARAM_H */
6304 # endif /* no _SC_PAGESIZE */
6305
6306 #endif /* no HAVE_GETPAGESIZE */
6307
6308 int
6309 main ()
6310 {
6311 char *data, *data2, *data3;
6312 const char *cdata2;
6313 int i, pagesize;
6314 int fd, fd2;
6315
6316 pagesize = getpagesize ();
6317
6318 /* First, make a file with some known garbage in it. */
6319 data = (char *) malloc (pagesize);
6320 if (!data)
6321 return 1;
6322 for (i = 0; i < pagesize; ++i)
6323 *(data + i) = rand ();
6324 umask (0);
6325 fd = creat ("conftest.mmap", 0600);
6326 if (fd < 0)
6327 return 2;
6328 if (write (fd, data, pagesize) != pagesize)
6329 return 3;
6330 close (fd);
6331
6332 /* Next, check that the tail of a page is zero-filled. File must have
6333 non-zero length, otherwise we risk SIGBUS for entire page. */
6334 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6335 if (fd2 < 0)
6336 return 4;
6337 cdata2 = "";
6338 if (write (fd2, cdata2, 1) != 1)
6339 return 5;
6340 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6341 if (data2 == MAP_FAILED)
6342 return 6;
6343 for (i = 0; i < pagesize; ++i)
6344 if (*(data2 + i))
6345 return 7;
6346 close (fd2);
6347 if (munmap (data2, pagesize))
6348 return 8;
6349
6350 /* Next, try to mmap the file at a fixed address which already has
6351 something else allocated at it. If we can, also make sure that
6352 we see the same garbage. */
6353 fd = open ("conftest.mmap", O_RDWR);
6354 if (fd < 0)
6355 return 9;
6356 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6357 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6358 return 10;
6359 for (i = 0; i < pagesize; ++i)
6360 if (*(data + i) != *(data2 + i))
6361 return 11;
6362
6363 /* Finally, make sure that changes to the mapped area do not
6364 percolate back to the file as seen by read(). (This is a bug on
6365 some variants of i386 svr4.0.) */
6366 for (i = 0; i < pagesize; ++i)
6367 *(data2 + i) = *(data2 + i) + 1;
6368 data3 = (char *) malloc (pagesize);
6369 if (!data3)
6370 return 12;
6371 if (read (fd, data3, pagesize) != pagesize)
6372 return 13;
6373 for (i = 0; i < pagesize; ++i)
6374 if (*(data + i) != *(data3 + i))
6375 return 14;
6376 close (fd);
6377 return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_c_try_run "$LINENO"; then :
6381 ac_cv_func_mmap_fixed_mapped=yes
6382 else
6383 ac_cv_func_mmap_fixed_mapped=no
6384 fi
6385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6386 conftest.$ac_objext conftest.beam conftest.$ac_ext
6387 fi
6388
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6391 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6392 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6393
6394 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6395
6396 fi
6397 rm -f conftest.mmap conftest.txt
6398
6399 for ac_header in stdlib.h
6400 do :
6401 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6402 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6403 cat >>confdefs.h <<_ACEOF
6404 #define HAVE_STDLIB_H 1
6405 _ACEOF
6406
6407 fi
6408
6409 done
6410
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6412 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6413 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if test "$cross_compiling" = yes; then :
6417 ac_cv_func_realloc_0_nonnull=no
6418 else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6422 # include <stdlib.h>
6423 #else
6424 char *realloc ();
6425 #endif
6426
6427 int
6428 main ()
6429 {
6430 return ! realloc (0, 0);
6431 ;
6432 return 0;
6433 }
6434 _ACEOF
6435 if ac_fn_c_try_run "$LINENO"; then :
6436 ac_cv_func_realloc_0_nonnull=yes
6437 else
6438 ac_cv_func_realloc_0_nonnull=no
6439 fi
6440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6441 conftest.$ac_objext conftest.beam conftest.$ac_ext
6442 fi
6443
6444 fi
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6446 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6447 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6448
6449 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6450
6451 else
6452 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6453
6454 case " $LIBOBJS " in
6455 *" realloc.$ac_objext "* ) ;;
6456 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6457 ;;
6458 esac
6459
6460
6461 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6462
6463 fi
6464
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6467 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6468 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6469 $as_echo_n "(cached) " >&6
6470 else
6471 if test "$cross_compiling" = yes; then :
6472 ac_cv_func_stat_empty_string_bug=yes
6473 else
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6476 $ac_includes_default
6477 int
6478 main ()
6479 {
6480 struct stat sbuf;
6481 return stat ("", &sbuf) == 0;
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_c_try_run "$LINENO"; then :
6487 ac_cv_func_stat_empty_string_bug=no
6488 else
6489 ac_cv_func_stat_empty_string_bug=yes
6490 fi
6491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6492 conftest.$ac_objext conftest.beam conftest.$ac_ext
6493 fi
6494
6495 fi
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6497 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6498 if test $ac_cv_func_stat_empty_string_bug = yes; then
6499 case " $LIBOBJS " in
6500 *" stat.$ac_objext "* ) ;;
6501 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6502 ;;
6503 esac
6504
6505
6506 cat >>confdefs.h <<_ACEOF
6507 #define HAVE_STAT_EMPTY_STRING_BUG 1
6508 _ACEOF
6509
6510 fi
6511
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6513 $as_echo_n "checking for working strtod... " >&6; }
6514 if test "${ac_cv_func_strtod+set}" = set; then :
6515 $as_echo_n "(cached) " >&6
6516 else
6517 if test "$cross_compiling" = yes; then :
6518 ac_cv_func_strtod=no
6519 else
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521 /* end confdefs.h. */
6522
6523 $ac_includes_default
6524 #ifndef strtod
6525 double strtod ();
6526 #endif
6527 int
6528 main()
6529 {
6530 {
6531 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6532 char *string = " +69";
6533 char *term;
6534 double value;
6535 value = strtod (string, &term);
6536 if (value != 69 || term != (string + 4))
6537 return 1;
6538 }
6539
6540 {
6541 /* Under Solaris 2.4, strtod returns the wrong value for the
6542 terminating character under some conditions. */
6543 char *string = "NaN";
6544 char *term;
6545 strtod (string, &term);
6546 if (term != string && *(term - 1) == 0)
6547 return 1;
6548 }
6549 return 0;
6550 }
6551
6552 _ACEOF
6553 if ac_fn_c_try_run "$LINENO"; then :
6554 ac_cv_func_strtod=yes
6555 else
6556 ac_cv_func_strtod=no
6557 fi
6558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6559 conftest.$ac_objext conftest.beam conftest.$ac_ext
6560 fi
6561
6562 fi
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6564 $as_echo "$ac_cv_func_strtod" >&6; }
6565 if test $ac_cv_func_strtod = no; then
6566 case " $LIBOBJS " in
6567 *" strtod.$ac_objext "* ) ;;
6568 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6569 ;;
6570 esac
6571
6572 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6573 if test "x$ac_cv_func_pow" = x""yes; then :
6574
6575 fi
6576
6577 if test $ac_cv_func_pow = no; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6579 $as_echo_n "checking for pow in -lm... " >&6; }
6580 if test "${ac_cv_lib_m_pow+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 ac_check_lib_save_LIBS=$LIBS
6584 LIBS="-lm $LIBS"
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587
6588 /* Override any GCC internal prototype to avoid an error.
6589 Use char because int might match the return type of a GCC
6590 builtin and then its argument prototype would still apply. */
6591 #ifdef __cplusplus
6592 extern "C"
6593 #endif
6594 char pow ();
6595 int
6596 main ()
6597 {
6598 return pow ();
6599 ;
6600 return 0;
6601 }
6602 _ACEOF
6603 if ac_fn_c_try_link "$LINENO"; then :
6604 ac_cv_lib_m_pow=yes
6605 else
6606 ac_cv_lib_m_pow=no
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610 LIBS=$ac_check_lib_save_LIBS
6611 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6613 $as_echo "$ac_cv_lib_m_pow" >&6; }
6614 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6615 POW_LIB=-lm
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6618 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6619 fi
6620
6621 fi
6622
6623 fi
6624
6625 for ac_func in vprintf
6626 do :
6627 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6628 if test "x$ac_cv_func_vprintf" = x""yes; then :
6629 cat >>confdefs.h <<_ACEOF
6630 #define HAVE_VPRINTF 1
6631 _ACEOF
6632
6633 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6634 if test "x$ac_cv_func__doprnt" = x""yes; then :
6635
6636 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6637
6638 fi
6639
6640 fi
6641 done
6642
6643
6644
6645 ################################################################################
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6647 $as_echo_n "checking whether to use static linking... " >&6; }
6648 # Check whether --enable-static_link was given.
6649 if test "${enable_static_link+set}" = set; then :
6650 enableval=$enable_static_link; STATIC_LINK=$enableval
6651 else
6652 STATIC_LINK=no
6653 fi
6654
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6656 $as_echo "$STATIC_LINK" >&6; }
6657
6658 ################################################################################
6659
6660
6661 ################################################################################
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6663 $as_echo_n "checking file owner... " >&6; }
6664
6665 # Check whether --with-user was given.
6666 if test "${with_user+set}" = set; then :
6667 withval=$with_user; OWNER=$withval
6668 fi
6669
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6671 $as_echo "$OWNER" >&6; }
6672
6673 if test x$OWNER != x; then
6674 INSTALL="$INSTALL -o $OWNER"
6675 fi
6676
6677 ################################################################################
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6679 $as_echo_n "checking group owner... " >&6; }
6680
6681 # Check whether --with-group was given.
6682 if test "${with_group+set}" = set; then :
6683 withval=$with_group; GROUP=$withval
6684 fi
6685
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6687 $as_echo "$GROUP" >&6; }
6688
6689 if test x$GROUP != x; then
6690 INSTALL="$INSTALL -g $GROUP"
6691 fi
6692
6693 ################################################################################
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6695 $as_echo_n "checking device node uid... " >&6; }
6696
6697
6698 # Check whether --with-device-uid was given.
6699 if test "${with_device_uid+set}" = set; then :
6700 withval=$with_device_uid; DM_DEVICE_UID=$withval
6701 else
6702 DM_DEVICE_UID=0
6703 fi
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6706 $as_echo "$DM_DEVICE_UID" >&6; }
6707
6708 ################################################################################
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6710 $as_echo_n "checking device node gid... " >&6; }
6711
6712
6713 # Check whether --with-device-gid was given.
6714 if test "${with_device_gid+set}" = set; then :
6715 withval=$with_device_gid; DM_DEVICE_GID=$withval
6716 else
6717 DM_DEVICE_GID=0
6718 fi
6719
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6721 $as_echo "$DM_DEVICE_GID" >&6; }
6722
6723 ################################################################################
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6725 $as_echo_n "checking device node mode... " >&6; }
6726
6727
6728 # Check whether --with-device-mode was given.
6729 if test "${with_device_mode+set}" = set; then :
6730 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6731 else
6732 DM_DEVICE_MODE=0600
6733 fi
6734
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6736 $as_echo "$DM_DEVICE_MODE" >&6; }
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6739 $as_echo_n "checking when to create device nodes... " >&6; }
6740
6741 # Check whether --with-device-nodes-on was given.
6742 if test "${with_device_nodes_on+set}" = set; then :
6743 withval=$with_device_nodes_on; ADD_NODE=$withval
6744 else
6745 ADD_NODE=resume
6746 fi
6747
6748 case "$ADD_NODE" in
6749 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6750 create) add_on=DM_ADD_NODE_ON_CREATE;;
6751 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6752 esac
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6754 $as_echo "on $ADD_NODE" >&6; }
6755
6756 cat >>confdefs.h <<_ACEOF
6757 #define DEFAULT_DM_ADD_NODE $add_on
6758 _ACEOF
6759
6760
6761 ################################################################################
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6763 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6764 # Check whether --enable-lvm1_fallback was given.
6765 if test "${enable_lvm1_fallback+set}" = set; then :
6766 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6767 else
6768 LVM1_FALLBACK=no
6769 fi
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6772 $as_echo "$LVM1_FALLBACK" >&6; }
6773
6774 if test x$LVM1_FALLBACK = xyes; then
6775
6776 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6777
6778 fi
6779
6780 ################################################################################
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6782 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6783
6784 # Check whether --with-lvm1 was given.
6785 if test "${with_lvm1+set}" = set; then :
6786 withval=$with_lvm1; LVM1=$withval
6787 else
6788 LVM1=internal
6789 fi
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6792 $as_echo "$LVM1" >&6; }
6793
6794 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6795 then as_fn_error $? "--with-lvm1 parameter invalid
6796 " "$LINENO" 5
6797 fi;
6798
6799 if test x$LVM1 = xinternal; then
6800
6801 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6802
6803 fi
6804
6805 ################################################################################
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6807 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6808
6809 # Check whether --with-pool was given.
6810 if test "${with_pool+set}" = set; then :
6811 withval=$with_pool; POOL=$withval
6812 else
6813 POOL=internal
6814 fi
6815
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6817 $as_echo "$POOL" >&6; }
6818
6819 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6820 then as_fn_error $? "--with-pool parameter invalid
6821 " "$LINENO" 5
6822 fi;
6823
6824 if test x$POOL = xinternal; then
6825
6826 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6827
6828 fi
6829
6830 ################################################################################
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6832 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6833
6834 # Check whether --with-cluster was given.
6835 if test "${with_cluster+set}" = set; then :
6836 withval=$with_cluster; CLUSTER=$withval
6837 fi
6838
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6840 $as_echo "$CLUSTER" >&6; }
6841
6842 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6843 then as_fn_error $? "--with-cluster parameter invalid
6844 " "$LINENO" 5
6845 fi;
6846
6847 if test x$CLUSTER = xinternal; then
6848
6849 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6850
6851 fi
6852
6853 ################################################################################
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6855 $as_echo_n "checking whether to include snapshots... " >&6; }
6856
6857 # Check whether --with-snapshots was given.
6858 if test "${with_snapshots+set}" = set; then :
6859 withval=$with_snapshots; SNAPSHOTS=$withval
6860 else
6861 SNAPSHOTS=internal
6862 fi
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6865 $as_echo "$SNAPSHOTS" >&6; }
6866
6867 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6868 then as_fn_error $? "--with-snapshots parameter invalid
6869 " "$LINENO" 5
6870 fi;
6871
6872 if test x$SNAPSHOTS = xinternal; then
6873
6874 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6875
6876 fi
6877
6878 ################################################################################
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6880 $as_echo_n "checking whether to include mirrors... " >&6; }
6881
6882 # Check whether --with-mirrors was given.
6883 if test "${with_mirrors+set}" = set; then :
6884 withval=$with_mirrors; MIRRORS=$withval
6885 else
6886 MIRRORS=internal
6887 fi
6888
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6890 $as_echo "$MIRRORS" >&6; }
6891
6892 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6893 then as_fn_error $? "--with-mirrors parameter invalid
6894 " "$LINENO" 5
6895 fi;
6896
6897 if test x$MIRRORS = xinternal; then
6898
6899 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6900
6901 fi
6902
6903 ################################################################################
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6905 $as_echo_n "checking whether to include raid... " >&6; }
6906
6907 # Check whether --with-raid was given.
6908 if test "${with_raid+set}" = set; then :
6909 withval=$with_raid; RAID=$withval
6910 else
6911 RAID=internal
6912 fi
6913
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6915 $as_echo "$RAID" >&6; }
6916
6917 if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6918 then as_fn_error $? "--with-raid parameter invalid
6919 " "$LINENO" 5
6920 fi;
6921
6922 if test x$RAID = xinternal; then
6923
6924 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6925
6926 fi
6927
6928 ################################################################################
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6930 $as_echo_n "checking whether to include replicators... " >&6; }
6931
6932 # Check whether --with-replicators was given.
6933 if test "${with_replicators+set}" = set; then :
6934 withval=$with_replicators; REPLICATORS=$withval
6935 else
6936 REPLICATORS=none
6937 fi
6938
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6940 $as_echo "$REPLICATORS" >&6; }
6941
6942 case "$REPLICATORS" in
6943 none|shared) ;;
6944 internal)
6945 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6946 ;;
6947 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6948 esac
6949
6950 ################################################################################
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6952 $as_echo_n "checking whether to include thin provisioning... " >&6; }
6953
6954 # Check whether --with-thin was given.
6955 if test "${with_thin+set}" = set; then :
6956 withval=$with_thin; THIN=$withval
6957 else
6958 THIN=none
6959 fi
6960
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6962 $as_echo "$THIN" >&6; }
6963
6964 case "$THIN" in
6965 none|shared) ;;
6966 internal)
6967 $as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6968 ;;
6969 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6970 esac
6971
6972 ################################################################################
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6974 $as_echo_n "checking whether to enable readline... " >&6; }
6975 # Check whether --enable-readline was given.
6976 if test "${enable_readline+set}" = set; then :
6977 enableval=$enable_readline; READLINE=$enableval
6978 else
6979 READLINE=maybe
6980 fi
6981
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6983 $as_echo "$READLINE" >&6; }
6984
6985 ################################################################################
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6987 $as_echo_n "checking whether to enable realtime support... " >&6; }
6988 # Check whether --enable-realtime was given.
6989 if test "${enable_realtime+set}" = set; then :
6990 enableval=$enable_realtime; REALTIME=$enableval
6991 fi
6992
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6994 $as_echo "$REALTIME" >&6; }
6995
6996 ################################################################################
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6998 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6999 # Check whether --enable-ocf was given.
7000 if test "${enable_ocf+set}" = set; then :
7001 enableval=$enable_ocf; OCF=$enableval
7002 else
7003 OCF=no
7004 fi
7005
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7007 $as_echo "$OCF" >&6; }
7008
7009 # Check whether --with-ocfdir was given.
7010 if test "${with_ocfdir+set}" = set; then :
7011 withval=$with_ocfdir; OCFDIR=$withval
7012 else
7013 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7014 fi
7015
7016
7017 ################################################################################
7018 pkg_config_init() {
7019
7020
7021
7022
7023
7024
7025 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 case $PKG_CONFIG in
7035 [\\/]* | ?:[\\/]*)
7036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7037 ;;
7038 *)
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 ;;
7055 esac
7056 fi
7057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7058 if test -n "$PKG_CONFIG"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7060 $as_echo "$PKG_CONFIG" >&6; }
7061 else
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066
7067 fi
7068 if test -z "$ac_cv_path_PKG_CONFIG"; then
7069 ac_pt_PKG_CONFIG=$PKG_CONFIG
7070 # Extract the first word of "pkg-config", so it can be a program name with args.
7071 set dummy pkg-config; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 case $ac_pt_PKG_CONFIG in
7078 [\\/]* | ?:[\\/]*)
7079 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7080 ;;
7081 *)
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 ;;
7098 esac
7099 fi
7100 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7101 if test -n "$ac_pt_PKG_CONFIG"; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7103 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7104 else
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7106 $as_echo "no" >&6; }
7107 fi
7108
7109 if test "x$ac_pt_PKG_CONFIG" = x; then
7110 PKG_CONFIG=""
7111 else
7112 case $cross_compiling:$ac_tool_warned in
7113 yes:)
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7116 ac_tool_warned=yes ;;
7117 esac
7118 PKG_CONFIG=$ac_pt_PKG_CONFIG
7119 fi
7120 else
7121 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7122 fi
7123
7124 fi
7125 if test -n "$PKG_CONFIG"; then
7126 _pkg_min_version=0.9.0
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7128 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7129 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7131 $as_echo "yes" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 PKG_CONFIG=""
7136 fi
7137 fi
7138
7139 pkg_failed=no
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7141 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7142
7143 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7144 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7145 elif test -n "$PKG_CONFIG"; then
7146 if test -n "$PKG_CONFIG" && \
7147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7148 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7149 ac_status=$?
7150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151 test $ac_status = 0; }; then
7152 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7153 else
7154 pkg_failed=yes
7155 fi
7156 else
7157 pkg_failed=untried
7158 fi
7159 if test -n "$PKGCONFIGINIT_LIBS"; then
7160 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7161 elif test -n "$PKG_CONFIG"; then
7162 if test -n "$PKG_CONFIG" && \
7163 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7164 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7165 ac_status=$?
7166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7167 test $ac_status = 0; }; then
7168 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7169 else
7170 pkg_failed=yes
7171 fi
7172 else
7173 pkg_failed=untried
7174 fi
7175
7176
7177
7178 if test $pkg_failed = yes; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7181
7182 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7183 _pkg_short_errors_supported=yes
7184 else
7185 _pkg_short_errors_supported=no
7186 fi
7187 if test $_pkg_short_errors_supported = yes; then
7188 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7189 else
7190 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7191 fi
7192 # Put the nasty error message in config.log where it belongs
7193 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7194
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7196 $as_echo "pkg-config initialized" >&6; }
7197 elif test $pkg_failed = untried; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 $as_echo "no" >&6; }
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7201 $as_echo "pkg-config initialized" >&6; }
7202 else
7203 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7204 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7206 $as_echo "yes" >&6; }
7207
7208 fi
7209 PKGCONFIG_INIT=1
7210 }
7211
7212 ################################################################################
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7214 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7215
7216 # Check whether --with-clvmd was given.
7217 if test "${with_clvmd+set}" = set; then :
7218 withval=$with_clvmd; CLVMD=$withval
7219 else
7220 CLVMD=none
7221 fi
7222
7223 if test x$CLVMD = xyes; then
7224 CLVMD=all
7225 fi
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7227 $as_echo "$CLVMD" >&6; }
7228
7229 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7230 CLUSTER=internal
7231 fi
7232
7233 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7234 pkg_config_init
7235 fi
7236
7237 CLVMD_CMANAGERS=""
7238 CLVMD_NEEDS_QDISKD=no
7239
7240 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7241 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7242 fi
7243 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7244 BUILDCMAN=yes
7245 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7246 CLVMD_NEEDS_QDISKD=yes
7247 fi
7248 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7249 BUILDCOROSYNC=yes
7250 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7251 fi
7252 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7253 BUILDOPENAIS=yes
7254 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7255 fi
7256 if test x$CLVMD_NEEDS_QDISKD != xno; then
7257 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7258 fi
7259
7260 soft_bailout() {
7261 NOTFOUND=1
7262 }
7263
7264 hard_bailout() {
7265 as_fn_error $? "bailing out" "$LINENO" 5
7266 }
7267
7268 if test x$CLVMD = xall; then
7269 bailout=soft_bailout
7270 BUILDCMAN=yes
7271 BUILDCOROSYNC=yes
7272 BUILDOPENAIS=yes
7273 else
7274 bailout=hard_bailout
7275 fi
7276
7277 check_lib_no_libs() {
7278 lib_no_libs_arg1=$1
7279 shift
7280 lib_no_libs_arg2=$1
7281 shift
7282 lib_no_libs_args=$@
7283 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7285 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7286 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7287 $as_echo_n "(cached) " >&6
7288 else
7289 ac_check_lib_save_LIBS=$LIBS
7290 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7293
7294 /* Override any GCC internal prototype to avoid an error.
7295 Use char because int might match the return type of a GCC
7296 builtin and then its argument prototype would still apply. */
7297 #ifdef __cplusplus
7298 extern "C"
7299 #endif
7300 char $lib_no_libs_arg2 ();
7301 int
7302 main ()
7303 {
7304 return $lib_no_libs_arg2 ();
7305 ;
7306 return 0;
7307 }
7308 _ACEOF
7309 if ac_fn_c_try_link "$LINENO"; then :
7310 eval "$as_ac_Lib=yes"
7311 else
7312 eval "$as_ac_Lib=no"
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 LIBS=$ac_check_lib_save_LIBS
7317 fi
7318 eval ac_res=\$$as_ac_Lib
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7320 $as_echo "$ac_res" >&6; }
7321 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7322 cat >>confdefs.h <<_ACEOF
7323 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 LIBS="-l$lib_no_libs_arg1 $LIBS"
7327
7328 else
7329 $bailout
7330 fi
7331
7332 LIBS=$ac_check_lib_save_LIBS
7333 }
7334
7335 if test x$BUILDCMAN = xyes; then
7336
7337 pkg_failed=no
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7339 $as_echo_n "checking for CMAN... " >&6; }
7340
7341 if test -n "$CMAN_CFLAGS"; then
7342 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7343 elif test -n "$PKG_CONFIG"; then
7344 if test -n "$PKG_CONFIG" && \
7345 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7346 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7347 ac_status=$?
7348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7349 test $ac_status = 0; }; then
7350 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7351 else
7352 pkg_failed=yes
7353 fi
7354 else
7355 pkg_failed=untried
7356 fi
7357 if test -n "$CMAN_LIBS"; then
7358 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7359 elif test -n "$PKG_CONFIG"; then
7360 if test -n "$PKG_CONFIG" && \
7361 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7362 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7363 ac_status=$?
7364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7365 test $ac_status = 0; }; then
7366 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7367 else
7368 pkg_failed=yes
7369 fi
7370 else
7371 pkg_failed=untried
7372 fi
7373
7374
7375
7376 if test $pkg_failed = yes; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379
7380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7381 _pkg_short_errors_supported=yes
7382 else
7383 _pkg_short_errors_supported=no
7384 fi
7385 if test $_pkg_short_errors_supported = yes; then
7386 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7387 else
7388 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7389 fi
7390 # Put the nasty error message in config.log where it belongs
7391 echo "$CMAN_PKG_ERRORS" >&5
7392
7393 NOTFOUND=0
7394 for ac_header in libcman.h
7395 do :
7396 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7397 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7398 cat >>confdefs.h <<_ACEOF
7399 #define HAVE_LIBCMAN_H 1
7400 _ACEOF
7401
7402 else
7403 $bailout
7404 fi
7405
7406 done
7407
7408 check_lib_no_libs cman cman_init
7409 if test $NOTFOUND = 0; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7411 $as_echo "no pkg for libcman, using -lcman" >&6; }
7412 CMAN_LIBS="-lcman"
7413 HAVE_CMAN=yes
7414 fi
7415 elif test $pkg_failed = untried; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 NOTFOUND=0
7419 for ac_header in libcman.h
7420 do :
7421 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7422 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7423 cat >>confdefs.h <<_ACEOF
7424 #define HAVE_LIBCMAN_H 1
7425 _ACEOF
7426
7427 else
7428 $bailout
7429 fi
7430
7431 done
7432
7433 check_lib_no_libs cman cman_init
7434 if test $NOTFOUND = 0; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7436 $as_echo "no pkg for libcman, using -lcman" >&6; }
7437 CMAN_LIBS="-lcman"
7438 HAVE_CMAN=yes
7439 fi
7440 else
7441 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7442 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7444 $as_echo "yes" >&6; }
7445 HAVE_CMAN=yes
7446 fi
7447 CHECKCONFDB=yes
7448 CHECKDLM=yes
7449 fi
7450
7451 if test x$BUILDCOROSYNC = xyes || \
7452 test x$BUILDOPENAIS = xyes; then
7453
7454 pkg_failed=no
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7456 $as_echo_n "checking for COROSYNC... " >&6; }
7457
7458 if test -n "$COROSYNC_CFLAGS"; then
7459 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7460 elif test -n "$PKG_CONFIG"; then
7461 if test -n "$PKG_CONFIG" && \
7462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7463 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7464 ac_status=$?
7465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466 test $ac_status = 0; }; then
7467 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7468 else
7469 pkg_failed=yes
7470 fi
7471 else
7472 pkg_failed=untried
7473 fi
7474 if test -n "$COROSYNC_LIBS"; then
7475 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7476 elif test -n "$PKG_CONFIG"; then
7477 if test -n "$PKG_CONFIG" && \
7478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7479 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7480 ac_status=$?
7481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482 test $ac_status = 0; }; then
7483 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7484 else
7485 pkg_failed=yes
7486 fi
7487 else
7488 pkg_failed=untried
7489 fi
7490
7491
7492
7493 if test $pkg_failed = yes; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496
7497 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7498 _pkg_short_errors_supported=yes
7499 else
7500 _pkg_short_errors_supported=no
7501 fi
7502 if test $_pkg_short_errors_supported = yes; then
7503 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7504 else
7505 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7506 fi
7507 # Put the nasty error message in config.log where it belongs
7508 echo "$COROSYNC_PKG_ERRORS" >&5
7509
7510 $bailout
7511 elif test $pkg_failed = untried; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513 $as_echo "no" >&6; }
7514 $bailout
7515 else
7516 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7517 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519 $as_echo "yes" >&6; }
7520 HAVE_COROSYNC=yes
7521 fi
7522 CHECKCONFDB=yes
7523 CHECKCMAP=yes
7524 fi
7525
7526 if test x$BUILDCOROSYNC = xyes; then
7527
7528 pkg_failed=no
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7530 $as_echo_n "checking for QUORUM... " >&6; }
7531
7532 if test -n "$QUORUM_CFLAGS"; then
7533 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7534 elif test -n "$PKG_CONFIG"; then
7535 if test -n "$PKG_CONFIG" && \
7536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7537 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7538 ac_status=$?
7539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7540 test $ac_status = 0; }; then
7541 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7542 else
7543 pkg_failed=yes
7544 fi
7545 else
7546 pkg_failed=untried
7547 fi
7548 if test -n "$QUORUM_LIBS"; then
7549 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7550 elif test -n "$PKG_CONFIG"; then
7551 if test -n "$PKG_CONFIG" && \
7552 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7553 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7554 ac_status=$?
7555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556 test $ac_status = 0; }; then
7557 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7558 else
7559 pkg_failed=yes
7560 fi
7561 else
7562 pkg_failed=untried
7563 fi
7564
7565
7566
7567 if test $pkg_failed = yes; then
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570
7571 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7572 _pkg_short_errors_supported=yes
7573 else
7574 _pkg_short_errors_supported=no
7575 fi
7576 if test $_pkg_short_errors_supported = yes; then
7577 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7578 else
7579 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7580 fi
7581 # Put the nasty error message in config.log where it belongs
7582 echo "$QUORUM_PKG_ERRORS" >&5
7583
7584 $bailout
7585 elif test $pkg_failed = untried; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 $bailout
7589 else
7590 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7591 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593 $as_echo "yes" >&6; }
7594 HAVE_QUORUM=yes
7595 fi
7596 CHECKCPG=yes
7597 CHECKDLM=yes
7598 fi
7599
7600 if test x$BUILDOPENAIS = xyes; then
7601
7602 pkg_failed=no
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7604 $as_echo_n "checking for SALCK... " >&6; }
7605
7606 if test -n "$SALCK_CFLAGS"; then
7607 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7608 elif test -n "$PKG_CONFIG"; then
7609 if test -n "$PKG_CONFIG" && \
7610 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7611 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7612 ac_status=$?
7613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7614 test $ac_status = 0; }; then
7615 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7616 else
7617 pkg_failed=yes
7618 fi
7619 else
7620 pkg_failed=untried
7621 fi
7622 if test -n "$SALCK_LIBS"; then
7623 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7624 elif test -n "$PKG_CONFIG"; then
7625 if test -n "$PKG_CONFIG" && \
7626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7627 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7628 ac_status=$?
7629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630 test $ac_status = 0; }; then
7631 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7632 else
7633 pkg_failed=yes
7634 fi
7635 else
7636 pkg_failed=untried
7637 fi
7638
7639
7640
7641 if test $pkg_failed = yes; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644
7645 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7646 _pkg_short_errors_supported=yes
7647 else
7648 _pkg_short_errors_supported=no
7649 fi
7650 if test $_pkg_short_errors_supported = yes; then
7651 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7652 else
7653 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7654 fi
7655 # Put the nasty error message in config.log where it belongs
7656 echo "$SALCK_PKG_ERRORS" >&5
7657
7658 $bailout
7659 elif test $pkg_failed = untried; then
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661 $as_echo "no" >&6; }
7662 $bailout
7663 else
7664 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7665 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7667 $as_echo "yes" >&6; }
7668 HAVE_SALCK=yes
7669 fi
7670 CHECKCPG=yes
7671 fi
7672
7673
7674
7675 if test x$CHECKCONFDB = xyes; then
7676
7677 pkg_failed=no
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7679 $as_echo_n "checking for CONFDB... " >&6; }
7680
7681 if test -n "$CONFDB_CFLAGS"; then
7682 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7683 elif test -n "$PKG_CONFIG"; then
7684 if test -n "$PKG_CONFIG" && \
7685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7686 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7687 ac_status=$?
7688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7689 test $ac_status = 0; }; then
7690 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7691 else
7692 pkg_failed=yes
7693 fi
7694 else
7695 pkg_failed=untried
7696 fi
7697 if test -n "$CONFDB_LIBS"; then
7698 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7699 elif test -n "$PKG_CONFIG"; then
7700 if test -n "$PKG_CONFIG" && \
7701 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7702 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7703 ac_status=$?
7704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7705 test $ac_status = 0; }; then
7706 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7707 else
7708 pkg_failed=yes
7709 fi
7710 else
7711 pkg_failed=untried
7712 fi
7713
7714
7715
7716 if test $pkg_failed = yes; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7719
7720 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7721 _pkg_short_errors_supported=yes
7722 else
7723 _pkg_short_errors_supported=no
7724 fi
7725 if test $_pkg_short_errors_supported = yes; then
7726 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7727 else
7728 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7729 fi
7730 # Put the nasty error message in config.log where it belongs
7731 echo "$CONFDB_PKG_ERRORS" >&5
7732
7733 HAVE_CONFDB=no
7734 elif test $pkg_failed = untried; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 HAVE_CONFDB=no
7738 else
7739 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7740 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7742 $as_echo "yes" >&6; }
7743 HAVE_CONFDB=yes
7744 fi
7745
7746 for ac_header in corosync/confdb.h
7747 do :
7748 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7749 if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7750 cat >>confdefs.h <<_ACEOF
7751 #define HAVE_COROSYNC_CONFDB_H 1
7752 _ACEOF
7753 HAVE_CONFDB_H=yes
7754 else
7755 HAVE_CONFDB_H=no
7756 fi
7757
7758 done
7759
7760
7761 if test x$HAVE_CONFDB != xyes && \
7762 test x$HAVE_CONFDB_H = xyes; then
7763 check_lib_no_libs confdb confdb_initialize
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7765 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7766 CONFDB_LIBS="-lconfdb"
7767 HAVE_CONFDB=yes
7768 fi
7769 fi
7770
7771
7772 if test x$CHECKCMAP = xyes; then
7773
7774 pkg_failed=no
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7776 $as_echo_n "checking for CMAP... " >&6; }
7777
7778 if test -n "$CMAP_CFLAGS"; then
7779 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7780 elif test -n "$PKG_CONFIG"; then
7781 if test -n "$PKG_CONFIG" && \
7782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7783 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7784 ac_status=$?
7785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7786 test $ac_status = 0; }; then
7787 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7788 else
7789 pkg_failed=yes
7790 fi
7791 else
7792 pkg_failed=untried
7793 fi
7794 if test -n "$CMAP_LIBS"; then
7795 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7796 elif test -n "$PKG_CONFIG"; then
7797 if test -n "$PKG_CONFIG" && \
7798 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7799 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7800 ac_status=$?
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }; then
7803 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7804 else
7805 pkg_failed=yes
7806 fi
7807 else
7808 pkg_failed=untried
7809 fi
7810
7811
7812
7813 if test $pkg_failed = yes; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816
7817 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7818 _pkg_short_errors_supported=yes
7819 else
7820 _pkg_short_errors_supported=no
7821 fi
7822 if test $_pkg_short_errors_supported = yes; then
7823 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7824 else
7825 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7826 fi
7827 # Put the nasty error message in config.log where it belongs
7828 echo "$CMAP_PKG_ERRORS" >&5
7829
7830 HAVE_CMAP=no
7831 elif test $pkg_failed = untried; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 HAVE_CMAP=no
7835 else
7836 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
7837 CMAP_LIBS=$pkg_cv_CMAP_LIBS
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7839 $as_echo "yes" >&6; }
7840 HAVE_CMAP=yes
7841 fi
7842
7843 for ac_header in corosync/cmap.h
7844 do :
7845 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
7846 if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
7847 cat >>confdefs.h <<_ACEOF
7848 #define HAVE_COROSYNC_CMAP_H 1
7849 _ACEOF
7850 HAVE_CMAP_H=yes
7851 else
7852 HAVE_CMAP_H=no
7853 fi
7854
7855 done
7856
7857
7858 if test x$HAVE_CMAP != xyes && \
7859 test x$HAVE_CMAP_H = xyes; then
7860 check_lib_no_libs cmap cmap_initialize
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
7862 $as_echo "no pkg for cmap, using -lcmap" >&6; }
7863 CMAP_LIBS="-lcmap"
7864 HAVE_CMAP=yes
7865 fi
7866 fi
7867
7868 if test x$BUILDCOROSYNC = xyes; then
7869 if test x$HAVE_CMAP != xyes && \
7870 test x$HAVE_CONFDB != xyes && \
7871 test x$CLVMD != xall; then
7872 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
7873 fi
7874 fi
7875
7876 if test x$CHECKCPG = xyes; then
7877
7878 pkg_failed=no
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7880 $as_echo_n "checking for CPG... " >&6; }
7881
7882 if test -n "$CPG_CFLAGS"; then
7883 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7884 elif test -n "$PKG_CONFIG"; then
7885 if test -n "$PKG_CONFIG" && \
7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7887 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7888 ac_status=$?
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; }; then
7891 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7892 else
7893 pkg_failed=yes
7894 fi
7895 else
7896 pkg_failed=untried
7897 fi
7898 if test -n "$CPG_LIBS"; then
7899 pkg_cv_CPG_LIBS="$CPG_LIBS"
7900 elif test -n "$PKG_CONFIG"; then
7901 if test -n "$PKG_CONFIG" && \
7902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7903 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7904 ac_status=$?
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7908 else
7909 pkg_failed=yes
7910 fi
7911 else
7912 pkg_failed=untried
7913 fi
7914
7915
7916
7917 if test $pkg_failed = yes; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920
7921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7922 _pkg_short_errors_supported=yes
7923 else
7924 _pkg_short_errors_supported=no
7925 fi
7926 if test $_pkg_short_errors_supported = yes; then
7927 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7928 else
7929 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7930 fi
7931 # Put the nasty error message in config.log where it belongs
7932 echo "$CPG_PKG_ERRORS" >&5
7933
7934 $bailout
7935 elif test $pkg_failed = untried; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 $bailout
7939 else
7940 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7941 CPG_LIBS=$pkg_cv_CPG_LIBS
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943 $as_echo "yes" >&6; }
7944 HAVE_CPG=yes
7945 fi
7946 fi
7947
7948 if test x$CHECKDLM = xyes; then
7949
7950 pkg_failed=no
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7952 $as_echo_n "checking for DLM... " >&6; }
7953
7954 if test -n "$DLM_CFLAGS"; then
7955 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7956 elif test -n "$PKG_CONFIG"; then
7957 if test -n "$PKG_CONFIG" && \
7958 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7959 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
7964 else
7965 pkg_failed=yes
7966 fi
7967 else
7968 pkg_failed=untried
7969 fi
7970 if test -n "$DLM_LIBS"; then
7971 pkg_cv_DLM_LIBS="$DLM_LIBS"
7972 elif test -n "$PKG_CONFIG"; then
7973 if test -n "$PKG_CONFIG" && \
7974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7975 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }; then
7979 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7980 else
7981 pkg_failed=yes
7982 fi
7983 else
7984 pkg_failed=untried
7985 fi
7986
7987
7988
7989 if test $pkg_failed = yes; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7992
7993 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7994 _pkg_short_errors_supported=yes
7995 else
7996 _pkg_short_errors_supported=no
7997 fi
7998 if test $_pkg_short_errors_supported = yes; then
7999 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8000 else
8001 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8002 fi
8003 # Put the nasty error message in config.log where it belongs
8004 echo "$DLM_PKG_ERRORS" >&5
8005
8006 NOTFOUND=0
8007 for ac_header in libdlm.h
8008 do :
8009 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8010 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8011 cat >>confdefs.h <<_ACEOF
8012 #define HAVE_LIBDLM_H 1
8013 _ACEOF
8014
8015 else
8016 $bailout
8017 fi
8018
8019 done
8020
8021 check_lib_no_libs dlm dlm_lock -lpthread
8022 if test $NOTFOUND = 0; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8024 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8025 DLM_LIBS="-ldlm -lpthread"
8026 HAVE_DLM=yes
8027 fi
8028 elif test $pkg_failed = untried; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031 NOTFOUND=0
8032 for ac_header in libdlm.h
8033 do :
8034 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8035 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8036 cat >>confdefs.h <<_ACEOF
8037 #define HAVE_LIBDLM_H 1
8038 _ACEOF
8039
8040 else
8041 $bailout
8042 fi
8043
8044 done
8045
8046 check_lib_no_libs dlm dlm_lock -lpthread
8047 if test $NOTFOUND = 0; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8049 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8050 DLM_LIBS="-ldlm -lpthread"
8051 HAVE_DLM=yes
8052 fi
8053 else
8054 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8055 DLM_LIBS=$pkg_cv_DLM_LIBS
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8057 $as_echo "yes" >&6; }
8058 HAVE_DLM=yes
8059 fi
8060 fi
8061
8062 if test x$CLVMD = xall; then
8063 CLVMD=none
8064 CLVMD_CMANAGERS=""
8065 CLVMD_NEEDS_QDISKD=no
8066 if test x$HAVE_CMAN = xyes && \
8067 test x$HAVE_DLM = xyes; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8069 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8070 CLVMD="$CLVMD,cman"
8071 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8072 CLVMD_NEEDS_QDISKD=yes
8073 fi
8074 if test x$HAVE_COROSYNC = xyes && \
8075 test x$HAVE_QUORUM = xyes && \
8076 test x$HAVE_CPG = xyes && \
8077 test x$HAVE_DLM = xyes; then
8078 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8080 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8081 CLVMD="$CLVMD,corosync"
8082 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8083 fi
8084 fi
8085 if test x$HAVE_COROSYNC = xyes && \
8086 test x$HAVE_CPG = xyes && \
8087 test x$HAVE_SALCK = xyes; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8089 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8090 CLVMD="$CLVMD,openais"
8091 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8092 fi
8093 if test x$CLVMD_NEEDS_QDISKD != xno; then
8094 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8095 fi
8096 if test x$CLVMD = xnone; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8098 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8099 fi
8100 fi
8101
8102 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8103 if test x$HAVE_CMAP = xyes; then
8104 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8105 fi
8106 fi
8107
8108 ################################################################################
8109 if test "x$CLVMD" != xnone; then
8110
8111 # Check whether --with-clvmd-pidfile was given.
8112 if test "${with_clvmd_pidfile+set}" = set; then :
8113 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
8114 else
8115 CLVMD_PIDFILE="/var/run/clvmd.pid"
8116 fi
8117
8118
8119 cat >>confdefs.h <<_ACEOF
8120 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8121 _ACEOF
8122
8123 fi
8124
8125 ################################################################################
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8127 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8128 # Check whether --enable-cmirrord was given.
8129 if test "${enable_cmirrord+set}" = set; then :
8130 enableval=$enable_cmirrord; CMIRRORD=$enableval
8131 else
8132 CMIRRORD=no
8133 fi
8134
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8136 $as_echo "$CMIRRORD" >&6; }
8137
8138 BUILD_CMIRRORD=$CMIRRORD
8139
8140 ################################################################################
8141 if test "x$BUILD_CMIRRORD" = xyes; then
8142
8143 # Check whether --with-cmirrord-pidfile was given.
8144 if test "${with_cmirrord_pidfile+set}" = set; then :
8145 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
8146 else
8147 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
8148 fi
8149
8150
8151 cat >>confdefs.h <<_ACEOF
8152 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8153 _ACEOF
8154
8155 fi
8156
8157 ################################################################################
8158 if [ "x$BUILD_CMIRRORD" = xyes ]; then
8159 if test x$PKGCONFIG_INIT != x1; then
8160 pkg_config_init
8161 fi
8162
8163 pkg_failed=no
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8165 $as_echo_n "checking for SACKPT... " >&6; }
8166
8167 if test -n "$SACKPT_CFLAGS"; then
8168 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8169 elif test -n "$PKG_CONFIG"; then
8170 if test -n "$PKG_CONFIG" && \
8171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8172 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8173 ac_status=$?
8174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8175 test $ac_status = 0; }; then
8176 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8177 else
8178 pkg_failed=yes
8179 fi
8180 else
8181 pkg_failed=untried
8182 fi
8183 if test -n "$SACKPT_LIBS"; then
8184 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8185 elif test -n "$PKG_CONFIG"; then
8186 if test -n "$PKG_CONFIG" && \
8187 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8188 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8189 ac_status=$?
8190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8191 test $ac_status = 0; }; then
8192 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8193 else
8194 pkg_failed=yes
8195 fi
8196 else
8197 pkg_failed=untried
8198 fi
8199
8200
8201
8202 if test $pkg_failed = yes; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8204 $as_echo "no" >&6; }
8205
8206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8207 _pkg_short_errors_supported=yes
8208 else
8209 _pkg_short_errors_supported=no
8210 fi
8211 if test $_pkg_short_errors_supported = yes; then
8212 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8213 else
8214 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8215 fi
8216 # Put the nasty error message in config.log where it belongs
8217 echo "$SACKPT_PKG_ERRORS" >&5
8218
8219 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8220
8221 $SACKPT_PKG_ERRORS
8222
8223 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8224 installed software in a non-standard prefix.
8225
8226 Alternatively, you may set the environment variables SACKPT_CFLAGS
8227 and SACKPT_LIBS to avoid the need to call pkg-config.
8228 See the pkg-config man page for more details." "$LINENO" 5
8229
8230 elif test $pkg_failed = untried; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8232 $as_echo "no" >&6; }
8233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8235 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8236 is in your PATH or set the PKG_CONFIG environment variable to the full
8237 path to pkg-config.
8238
8239 Alternatively, you may set the environment variables SACKPT_CFLAGS
8240 and SACKPT_LIBS to avoid the need to call pkg-config.
8241 See the pkg-config man page for more details.
8242
8243 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8244 See \`config.log' for more details" "$LINENO" 5; }
8245
8246 else
8247 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8248 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8250 $as_echo "yes" >&6; }
8251
8252 fi
8253 if test x$HAVE_CPG != xyes; then
8254
8255 pkg_failed=no
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8257 $as_echo_n "checking for CPG... " >&6; }
8258
8259 if test -n "$CPG_CFLAGS"; then
8260 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8261 elif test -n "$PKG_CONFIG"; then
8262 if test -n "$PKG_CONFIG" && \
8263 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8264 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8265 ac_status=$?
8266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8267 test $ac_status = 0; }; then
8268 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8269 else
8270 pkg_failed=yes
8271 fi
8272 else
8273 pkg_failed=untried
8274 fi
8275 if test -n "$CPG_LIBS"; then
8276 pkg_cv_CPG_LIBS="$CPG_LIBS"
8277 elif test -n "$PKG_CONFIG"; then
8278 if test -n "$PKG_CONFIG" && \
8279 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8280 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; }; then
8284 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8285 else
8286 pkg_failed=yes
8287 fi
8288 else
8289 pkg_failed=untried
8290 fi
8291
8292
8293
8294 if test $pkg_failed = yes; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8297
8298 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8299 _pkg_short_errors_supported=yes
8300 else
8301 _pkg_short_errors_supported=no
8302 fi
8303 if test $_pkg_short_errors_supported = yes; then
8304 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8305 else
8306 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8307 fi
8308 # Put the nasty error message in config.log where it belongs
8309 echo "$CPG_PKG_ERRORS" >&5
8310
8311 as_fn_error $? "Package requirements (libcpg) were not met:
8312
8313 $CPG_PKG_ERRORS
8314
8315 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8316 installed software in a non-standard prefix.
8317
8318 Alternatively, you may set the environment variables CPG_CFLAGS
8319 and CPG_LIBS to avoid the need to call pkg-config.
8320 See the pkg-config man page for more details." "$LINENO" 5
8321
8322 elif test $pkg_failed = untried; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8327 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8328 is in your PATH or set the PKG_CONFIG environment variable to the full
8329 path to pkg-config.
8330
8331 Alternatively, you may set the environment variables CPG_CFLAGS
8332 and CPG_LIBS to avoid the need to call pkg-config.
8333 See the pkg-config man page for more details.
8334
8335 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8336 See \`config.log' for more details" "$LINENO" 5; }
8337
8338 else
8339 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8340 CPG_LIBS=$pkg_cv_CPG_LIBS
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8342 $as_echo "yes" >&6; }
8343
8344 fi
8345 fi
8346 fi
8347
8348 ################################################################################
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8350 $as_echo_n "checking whether to enable debugging... " >&6; }
8351 # Check whether --enable-debug was given.
8352 if test "${enable_debug+set}" = set; then :
8353 enableval=$enable_debug; DEBUG=$enableval
8354 else
8355 DEBUG=no
8356 fi
8357
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8359 $as_echo "$DEBUG" >&6; }
8360
8361 if test x$DEBUG = xyes; then
8362 COPTIMISE_FLAG=
8363 else
8364 CSCOPE_CMD=
8365 fi
8366
8367 ################################################################################
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8369 $as_echo_n "checking for C optimisation flag... " >&6; }
8370
8371 # Check whether --with-optimisation was given.
8372 if test "${with_optimisation+set}" = set; then :
8373 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8374 fi
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8377 $as_echo "$COPTIMISE_FLAG" >&6; }
8378
8379 ################################################################################
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8381 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8382 # Check whether --enable-profiling was given.
8383 if test "${enable_profiling+set}" = set; then :
8384 enableval=$enable_profiling; PROFILING=$enableval
8385 else
8386 PROFILING=no
8387 fi
8388
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8390 $as_echo "$PROFILING" >&6; }
8391
8392 if test "x$PROFILING" = xyes; then
8393 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8394 # Extract the first word of "lcov", so it can be a program name with args.
8395 set dummy lcov; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_path_LCOV+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 case $LCOV in
8402 [\\/]* | ?:[\\/]*)
8403 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8404 ;;
8405 *)
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409 IFS=$as_save_IFS
8410 test -z "$as_dir" && as_dir=.
8411 for ac_exec_ext in '' $ac_executable_extensions; do
8412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8413 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415 break 2
8416 fi
8417 done
8418 done
8419 IFS=$as_save_IFS
8420
8421 ;;
8422 esac
8423 fi
8424 LCOV=$ac_cv_path_LCOV
8425 if test -n "$LCOV"; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8427 $as_echo "$LCOV" >&6; }
8428 else
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8430 $as_echo "no" >&6; }
8431 fi
8432
8433
8434 # Extract the first word of "genhtml", so it can be a program name with args.
8435 set dummy genhtml; ac_word=$2
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8437 $as_echo_n "checking for $ac_word... " >&6; }
8438 if test "${ac_cv_path_GENHTML+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 case $GENHTML in
8442 [\\/]* | ?:[\\/]*)
8443 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8444 ;;
8445 *)
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449 IFS=$as_save_IFS
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8453 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 break 2
8456 fi
8457 done
8458 done
8459 IFS=$as_save_IFS
8460
8461 ;;
8462 esac
8463 fi
8464 GENHTML=$ac_cv_path_GENHTML
8465 if test -n "$GENHTML"; then
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8467 $as_echo "$GENHTML" >&6; }
8468 else
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473
8474 if test -z "$LCOV" -o -z "$GENHTML"; then
8475 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8476 fi
8477 # Extract the first word of "genpng", so it can be a program name with args.
8478 set dummy genpng; ac_word=$2
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480 $as_echo_n "checking for $ac_word... " >&6; }
8481 if test "${ac_cv_path_GENPNG+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484 case $GENPNG in
8485 [\\/]* | ?:[\\/]*)
8486 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8487 ;;
8488 *)
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8491 do
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8498 break 2
8499 fi
8500 done
8501 done
8502 IFS=$as_save_IFS
8503
8504 ;;
8505 esac
8506 fi
8507 GENPNG=$ac_cv_path_GENPNG
8508 if test -n "$GENPNG"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8510 $as_echo "$GENPNG" >&6; }
8511 else
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8514 fi
8515
8516
8517 if test -n "$GENPNG"; then
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8519 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8520 if $GENPNG --help > /dev/null 2>&1 ; then
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8522 $as_echo "ok" >&6; }
8523 GENHTML="$GENHTML --frames"
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8526 $as_echo "not supported" >&6; }
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8528 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8529 GENPNG=
8530 fi
8531 fi
8532 fi
8533
8534 ################################################################################
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8536 $as_echo_n "checking whether to enable unit testing... " >&6; }
8537 # Check whether --enable-testing was given.
8538 if test "${enable_testing+set}" = set; then :
8539 enableval=$enable_testing; TESTING=$enableval
8540 else
8541 TESTING=no
8542 fi
8543
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8545 $as_echo "$TESTING" >&6; }
8546
8547 if test "$TESTING" = yes; then
8548
8549 pkg_failed=no
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8551 $as_echo_n "checking for CUNIT... " >&6; }
8552
8553 if test -n "$CUNIT_CFLAGS"; then
8554 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8555 elif test -n "$PKG_CONFIG"; then
8556 if test -n "$PKG_CONFIG" && \
8557 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8558 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8559 ac_status=$?
8560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8561 test $ac_status = 0; }; then
8562 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8563 else
8564 pkg_failed=yes
8565 fi
8566 else
8567 pkg_failed=untried
8568 fi
8569 if test -n "$CUNIT_LIBS"; then
8570 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8571 elif test -n "$PKG_CONFIG"; then
8572 if test -n "$PKG_CONFIG" && \
8573 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8574 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8575 ac_status=$?
8576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8577 test $ac_status = 0; }; then
8578 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
8579 else
8580 pkg_failed=yes
8581 fi
8582 else
8583 pkg_failed=untried
8584 fi
8585
8586
8587
8588 if test $pkg_failed = yes; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590 $as_echo "no" >&6; }
8591
8592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8593 _pkg_short_errors_supported=yes
8594 else
8595 _pkg_short_errors_supported=no
8596 fi
8597 if test $_pkg_short_errors_supported = yes; then
8598 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8599 else
8600 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8601 fi
8602 # Put the nasty error message in config.log where it belongs
8603 echo "$CUNIT_PKG_ERRORS" >&5
8604
8605 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8606
8607 $CUNIT_PKG_ERRORS
8608
8609 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8610 installed software in a non-standard prefix.
8611
8612 Alternatively, you may set the environment variables CUNIT_CFLAGS
8613 and CUNIT_LIBS to avoid the need to call pkg-config.
8614 See the pkg-config man page for more details." "$LINENO" 5
8615
8616 elif test $pkg_failed = untried; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8621 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8622 is in your PATH or set the PKG_CONFIG environment variable to the full
8623 path to pkg-config.
8624
8625 Alternatively, you may set the environment variables CUNIT_CFLAGS
8626 and CUNIT_LIBS to avoid the need to call pkg-config.
8627 See the pkg-config man page for more details.
8628
8629 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8630 See \`config.log' for more details" "$LINENO" 5; }
8631
8632 else
8633 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8634 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8636 $as_echo "yes" >&6; }
8637
8638 fi
8639 fi
8640
8641 ################################################################################
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8643 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8644 # Check whether --enable-valgrind_pool was given.
8645 if test "${enable_valgrind_pool+set}" = set; then :
8646 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8647 else
8648 VALGRIND_POOL=no
8649 fi
8650
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8652 $as_echo "$VALGRIND_POOL" >&6; }
8653
8654 if test "$VALGRIND_POOL" = yes; then
8655 for ac_header in valgrind/memcheck.h
8656 do :
8657 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8658 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8659 cat >>confdefs.h <<_ACEOF
8660 #define HAVE_VALGRIND_MEMCHECK_H 1
8661 _ACEOF
8662
8663 else
8664 as_fn_error $? "bailing out" "$LINENO" 5
8665 fi
8666
8667 done
8668
8669
8670 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8671
8672 fi
8673
8674 ################################################################################
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8676 $as_echo_n "checking whether to use device-mapper... " >&6; }
8677 # Check whether --enable-devmapper was given.
8678 if test "${enable_devmapper+set}" = set; then :
8679 enableval=$enable_devmapper; DEVMAPPER=$enableval
8680 fi
8681
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8683 $as_echo "$DEVMAPPER" >&6; }
8684
8685 if test x$DEVMAPPER = xyes; then
8686
8687 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8688
8689 fi
8690
8691 ################################################################################
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8693 $as_echo_n "checking whether to build LVMetaD... " >&6; }
8694 # Check whether --enable-lvmetad was given.
8695 if test "${enable_lvmetad+set}" = set; then :
8696 enableval=$enable_lvmetad; LVMETAD=$enableval
8697 fi
8698
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8700 $as_echo "$LVMETAD" >&6; }
8701
8702 BUILD_LVMETAD=$LVMETAD
8703
8704 ################################################################################
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8706 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8707 # Check whether --enable-udev_sync was given.
8708 if test "${enable_udev_sync+set}" = set; then :
8709 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8710 else
8711 UDEV_SYNC=no
8712 fi
8713
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8715 $as_echo "$UDEV_SYNC" >&6; }
8716
8717 if test x$UDEV_SYNC = xyes; then
8718 if test x$PKGCONFIG_INIT != x1; then
8719 pkg_config_init
8720 fi
8721
8722 pkg_failed=no
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8724 $as_echo_n "checking for UDEV... " >&6; }
8725
8726 if test -n "$UDEV_CFLAGS"; then
8727 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8728 elif test -n "$PKG_CONFIG"; then
8729 if test -n "$PKG_CONFIG" && \
8730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8731 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8732 ac_status=$?
8733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8734 test $ac_status = 0; }; then
8735 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8736 else
8737 pkg_failed=yes
8738 fi
8739 else
8740 pkg_failed=untried
8741 fi
8742 if test -n "$UDEV_LIBS"; then
8743 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8744 elif test -n "$PKG_CONFIG"; then
8745 if test -n "$PKG_CONFIG" && \
8746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8747 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8748 ac_status=$?
8749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8750 test $ac_status = 0; }; then
8751 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8752 else
8753 pkg_failed=yes
8754 fi
8755 else
8756 pkg_failed=untried
8757 fi
8758
8759
8760
8761 if test $pkg_failed = yes; then
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764
8765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8766 _pkg_short_errors_supported=yes
8767 else
8768 _pkg_short_errors_supported=no
8769 fi
8770 if test $_pkg_short_errors_supported = yes; then
8771 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8772 else
8773 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8774 fi
8775 # Put the nasty error message in config.log where it belongs
8776 echo "$UDEV_PKG_ERRORS" >&5
8777
8778 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8779
8780 $UDEV_PKG_ERRORS
8781
8782 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8783 installed software in a non-standard prefix.
8784
8785 Alternatively, you may set the environment variables UDEV_CFLAGS
8786 and UDEV_LIBS to avoid the need to call pkg-config.
8787 See the pkg-config man page for more details." "$LINENO" 5
8788
8789 elif test $pkg_failed = untried; then
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8792 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8794 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8795 is in your PATH or set the PKG_CONFIG environment variable to the full
8796 path to pkg-config.
8797
8798 Alternatively, you may set the environment variables UDEV_CFLAGS
8799 and UDEV_LIBS to avoid the need to call pkg-config.
8800 See the pkg-config man page for more details.
8801
8802 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8803 See \`config.log' for more details" "$LINENO" 5; }
8804
8805 else
8806 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8807 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8809 $as_echo "yes" >&6; }
8810 UDEV_PC="libudev"
8811 fi
8812
8813 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8814
8815 fi
8816
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8818 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8819 # Check whether --enable-udev_rules was given.
8820 if test "${enable_udev_rules+set}" = set; then :
8821 enableval=$enable_udev_rules; UDEV_RULES=$enableval
8822 else
8823 UDEV_RULES=$UDEV_SYNC
8824 fi
8825
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8827 $as_echo "$UDEV_RULES" >&6; }
8828
8829 ################################################################################
8830 # Check whether --enable-compat was given.
8831 if test "${enable_compat+set}" = set; then :
8832 enableval=$enable_compat; DM_COMPAT=$enableval
8833 else
8834 DM_COMPAT=no
8835 fi
8836
8837
8838 if test x$DM_COMPAT = xyes; then
8839 as_fn_error $? "--enable-compat is not currently supported.
8840 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8841 ioctl protocol is supported.
8842 " "$LINENO" 5
8843 fi
8844
8845 ################################################################################
8846 # Check whether --enable-units-compat was given.
8847 if test "${enable_units_compat+set}" = set; then :
8848 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
8849 else
8850 UNITS_COMPAT=no
8851 fi
8852
8853
8854 if test x$UNITS_COMPAT = xyes; then
8855
8856 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8857
8858 fi
8859
8860 ################################################################################
8861 # Check whether --enable-ioctl was given.
8862 if test "${enable_ioctl+set}" = set; then :
8863 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8864 fi
8865
8866
8867 ################################################################################
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8869 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8870 # Check whether --enable-o_direct was given.
8871 if test "${enable_o_direct+set}" = set; then :
8872 enableval=$enable_o_direct; ODIRECT=$enableval
8873 fi
8874
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8876 $as_echo "$ODIRECT" >&6; }
8877
8878 if test x$ODIRECT = xyes; then
8879
8880 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8881
8882 fi
8883
8884 ################################################################################
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8886 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8887 # Check whether --enable-applib was given.
8888 if test "${enable_applib+set}" = set; then :
8889 enableval=$enable_applib; APPLIB=$enableval
8890 else
8891 APPLIB=no
8892 fi
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8895 $as_echo "$APPLIB" >&6; }
8896
8897 test x$APPLIB = xyes \
8898 && LVM2APP_LIB=-llvm2app \
8899 || LVM2APP_LIB=
8900
8901 ################################################################################
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8903 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8904 # Check whether --enable-cmdlib was given.
8905 if test "${enable_cmdlib+set}" = set; then :
8906 enableval=$enable_cmdlib; CMDLIB=$enableval
8907 else
8908 CMDLIB=no
8909 fi
8910
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8912 $as_echo "$CMDLIB" >&6; }
8913
8914 test x$CMDLIB = xyes \
8915 && LVM2CMD_LIB=-llvm2cmd \
8916 || LVM2CMD_LIB=
8917
8918 ################################################################################
8919 # Check whether --enable-pkgconfig was given.
8920 if test "${enable_pkgconfig+set}" = set; then :
8921 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8922 else
8923 PKGCONFIG=no
8924 fi
8925
8926
8927 ################################################################################
8928 # Check whether --enable-write_install was given.
8929 if test "${enable_write_install+set}" = set; then :
8930 enableval=$enable_write_install; WRITE_INSTALL=$enableval
8931 else
8932 WRITE_INSTALL=no
8933 fi
8934
8935
8936 ################################################################################
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8938 $as_echo_n "checking whether to install fsadm... " >&6; }
8939 # Check whether --enable-fsadm was given.
8940 if test "${enable_fsadm+set}" = set; then :
8941 enableval=$enable_fsadm; FSADM=$enableval
8942 fi
8943
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8945 $as_echo "$FSADM" >&6; }
8946
8947 ################################################################################
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8949 $as_echo_n "checking whether to use dmeventd... " >&6; }
8950 # Check whether --enable-dmeventd was given.
8951 if test "${enable_dmeventd+set}" = set; then :
8952 enableval=$enable_dmeventd; DMEVENTD=$enableval
8953 fi
8954
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8956 $as_echo "$DMEVENTD" >&6; }
8957
8958 BUILD_DMEVENTD=$DMEVENTD
8959
8960 if test x$DMEVENTD = xyes; then
8961 if test x$MIRRORS != xinternal; then
8962 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8963 " "$LINENO" 5
8964 fi
8965 if test x$CMDLIB = xno; then
8966 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8967 " "$LINENO" 5
8968 fi
8969 fi
8970
8971 if test x$DMEVENTD = xyes; then
8972
8973 $as_echo "#define DMEVENTD 1" >>confdefs.h
8974
8975 fi
8976
8977 ################################################################################
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8980 $as_echo_n "checking for getline in -lc... " >&6; }
8981 if test "${ac_cv_lib_c_getline+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 ac_check_lib_save_LIBS=$LIBS
8985 LIBS="-lc $LIBS"
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988
8989 /* Override any GCC internal prototype to avoid an error.
8990 Use char because int might match the return type of a GCC
8991 builtin and then its argument prototype would still apply. */
8992 #ifdef __cplusplus
8993 extern "C"
8994 #endif
8995 char getline ();
8996 int
8997 main ()
8998 {
8999 return getline ();
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_link "$LINENO"; then :
9005 ac_cv_lib_c_getline=yes
9006 else
9007 ac_cv_lib_c_getline=no
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9014 $as_echo "$ac_cv_lib_c_getline" >&6; }
9015 if test "x$ac_cv_lib_c_getline" = x""yes; then :
9016
9017 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9018
9019 fi
9020
9021
9022 ################################################################################
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9025 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9026 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9027 $as_echo_n "(cached) " >&6
9028 else
9029 ac_check_lib_save_LIBS=$LIBS
9030 LIBS="-lc $LIBS"
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9033
9034 /* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 char canonicalize_file_name ();
9041 int
9042 main ()
9043 {
9044 return canonicalize_file_name ();
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 ac_cv_lib_c_canonicalize_file_name=yes
9051 else
9052 ac_cv_lib_c_canonicalize_file_name=no
9053 fi
9054 rm -f core conftest.err conftest.$ac_objext \
9055 conftest$ac_exeext conftest.$ac_ext
9056 LIBS=$ac_check_lib_save_LIBS
9057 fi
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9059 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9060 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9061
9062 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9063
9064 fi
9065
9066
9067 ################################################################################
9068 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9069 then exec_prefix="";
9070 fi;
9071
9072 ################################################################################
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9074 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9075 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
9077 else
9078 ac_check_lib_save_LIBS=$LIBS
9079 LIBS="-ldl $LIBS"
9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9081 /* end confdefs.h. */
9082
9083 /* Override any GCC internal prototype to avoid an error.
9084 Use char because int might match the return type of a GCC
9085 builtin and then its argument prototype would still apply. */
9086 #ifdef __cplusplus
9087 extern "C"
9088 #endif
9089 char dlopen ();
9090 int
9091 main ()
9092 {
9093 return dlopen ();
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 ac_cv_lib_dl_dlopen=yes
9100 else
9101 ac_cv_lib_dl_dlopen=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 LIBS=$ac_check_lib_save_LIBS
9106 fi
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9108 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9109 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9110
9111
9112 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9113
9114 DL_LIBS="-ldl"
9115 HAVE_LIBDL=yes
9116 else
9117
9118 DL_LIBS=
9119 HAVE_LIBDL=no
9120 fi
9121
9122
9123 ################################################################################
9124 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9125 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9126 -o "x$RAID" = xshared \
9127 \) -a "x$STATIC_LINK" = xyes ];
9128 then as_fn_error $? "Features cannot be 'shared' when building statically
9129 " "$LINENO" 5
9130 fi
9131
9132 ################################################################################
9133 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9135 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9136 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 ac_check_lib_save_LIBS=$LIBS
9140 LIBS="-lpthread $LIBS"
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9143
9144 /* Override any GCC internal prototype to avoid an error.
9145 Use char because int might match the return type of a GCC
9146 builtin and then its argument prototype would still apply. */
9147 #ifdef __cplusplus
9148 extern "C"
9149 #endif
9150 char pthread_mutex_lock ();
9151 int
9152 main ()
9153 {
9154 return pthread_mutex_lock ();
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_link "$LINENO"; then :
9160 ac_cv_lib_pthread_pthread_mutex_lock=yes
9161 else
9162 ac_cv_lib_pthread_pthread_mutex_lock=no
9163 fi
9164 rm -f core conftest.err conftest.$ac_objext \
9165 conftest$ac_exeext conftest.$ac_ext
9166 LIBS=$ac_check_lib_save_LIBS
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9169 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9170 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9171 PTHREAD_LIBS="-lpthread"
9172 else
9173 hard_bailout
9174 fi
9175
9176 fi
9177
9178 ################################################################################
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9180 $as_echo_n "checking whether to enable selinux support... " >&6; }
9181 # Check whether --enable-selinux was given.
9182 if test "${enable_selinux+set}" = set; then :
9183 enableval=$enable_selinux; SELINUX=$enableval
9184 fi
9185
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9187 $as_echo "$SELINUX" >&6; }
9188
9189 ################################################################################
9190 if test x$SELINUX = xyes; then
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9192 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9193 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-lsepol $LIBS"
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char sepol_check_context ();
9208 int
9209 main ()
9210 {
9211 return sepol_check_context ();
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 ac_cv_lib_sepol_sepol_check_context=yes
9218 else
9219 ac_cv_lib_sepol_sepol_check_context=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 LIBS=$ac_check_lib_save_LIBS
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9226 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9227 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9228
9229
9230 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9231
9232 SELINUX_LIBS="-lsepol"
9233 fi
9234
9235
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9237 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9238 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9239 $as_echo_n "(cached) " >&6
9240 else
9241 ac_check_lib_save_LIBS=$LIBS
9242 LIBS="-lselinux $LIBS"
9243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244 /* end confdefs.h. */
9245
9246 /* Override any GCC internal prototype to avoid an error.
9247 Use char because int might match the return type of a GCC
9248 builtin and then its argument prototype would still apply. */
9249 #ifdef __cplusplus
9250 extern "C"
9251 #endif
9252 char is_selinux_enabled ();
9253 int
9254 main ()
9255 {
9256 return is_selinux_enabled ();
9257 ;
9258 return 0;
9259 }
9260 _ACEOF
9261 if ac_fn_c_try_link "$LINENO"; then :
9262 ac_cv_lib_selinux_is_selinux_enabled=yes
9263 else
9264 ac_cv_lib_selinux_is_selinux_enabled=no
9265 fi
9266 rm -f core conftest.err conftest.$ac_objext \
9267 conftest$ac_exeext conftest.$ac_ext
9268 LIBS=$ac_check_lib_save_LIBS
9269 fi
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9271 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9272 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9273
9274 for ac_header in selinux/selinux.h
9275 do :
9276 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9277 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9278 cat >>confdefs.h <<_ACEOF
9279 #define HAVE_SELINUX_SELINUX_H 1
9280 _ACEOF
9281
9282 else
9283 hard_bailout
9284 fi
9285
9286 done
9287
9288 for ac_header in selinux/label.h
9289 do :
9290 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9291 if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9292 cat >>confdefs.h <<_ACEOF
9293 #define HAVE_SELINUX_LABEL_H 1
9294 _ACEOF
9295
9296 fi
9297
9298 done
9299
9300
9301 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9302
9303 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9304 SELINUX_PC="libselinux"
9305 HAVE_SELINUX=yes
9306 else
9307
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9309 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9310 SELINUX_LIBS=
9311 SELINUX_PC=
9312 HAVE_SELINUX=no
9313 fi
9314
9315 fi
9316
9317 ################################################################################
9318 if test x$REALTIME = xyes; then
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9320 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9321 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 ac_check_lib_save_LIBS=$LIBS
9325 LIBS="-lrt $LIBS"
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328
9329 /* Override any GCC internal prototype to avoid an error.
9330 Use char because int might match the return type of a GCC
9331 builtin and then its argument prototype would still apply. */
9332 #ifdef __cplusplus
9333 extern "C"
9334 #endif
9335 char clock_gettime ();
9336 int
9337 main ()
9338 {
9339 return clock_gettime ();
9340 ;
9341 return 0;
9342 }
9343 _ACEOF
9344 if ac_fn_c_try_link "$LINENO"; then :
9345 ac_cv_lib_rt_clock_gettime=yes
9346 else
9347 ac_cv_lib_rt_clock_gettime=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351 LIBS=$ac_check_lib_save_LIBS
9352 fi
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9354 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9355 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9356 HAVE_REALTIME=yes
9357 else
9358 HAVE_REALTIME=no
9359 fi
9360
9361
9362 if test x$HAVE_REALTIME = xyes; then
9363
9364 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9365
9366 LIBS="-lrt $LIBS"
9367 else
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9369 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9370 fi
9371 fi
9372
9373 ################################################################################
9374 for ac_header in getopt.h
9375 do :
9376 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9377 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9378 cat >>confdefs.h <<_ACEOF
9379 #define HAVE_GETOPT_H 1
9380 _ACEOF
9381
9382 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9383
9384 fi
9385
9386 done
9387
9388
9389 ################################################################################
9390 if test x$READLINE != xno; then
9391 lvm_saved_libs=$LIBS
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9393 $as_echo_n "checking for library containing tgetent... " >&6; }
9394 if test "${ac_cv_search_tgetent+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 ac_func_search_save_LIBS=$LIBS
9398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h. */
9400
9401 /* Override any GCC internal prototype to avoid an error.
9402 Use char because int might match the return type of a GCC
9403 builtin and then its argument prototype would still apply. */
9404 #ifdef __cplusplus
9405 extern "C"
9406 #endif
9407 char tgetent ();
9408 int
9409 main ()
9410 {
9411 return tgetent ();
9412 ;
9413 return 0;
9414 }
9415 _ACEOF
9416 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9417 if test -z "$ac_lib"; then
9418 ac_res="none required"
9419 else
9420 ac_res=-l$ac_lib
9421 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9422 fi
9423 if ac_fn_c_try_link "$LINENO"; then :
9424 ac_cv_search_tgetent=$ac_res
9425 fi
9426 rm -f core conftest.err conftest.$ac_objext \
9427 conftest$ac_exeext
9428 if test "${ac_cv_search_tgetent+set}" = set; then :
9429 break
9430 fi
9431 done
9432 if test "${ac_cv_search_tgetent+set}" = set; then :
9433
9434 else
9435 ac_cv_search_tgetent=no
9436 fi
9437 rm conftest.$ac_ext
9438 LIBS=$ac_func_search_save_LIBS
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9441 $as_echo "$ac_cv_search_tgetent" >&6; }
9442 ac_res=$ac_cv_search_tgetent
9443 if test "$ac_res" != no; then :
9444 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9445 READLINE_LIBS=$ac_cv_search_tgetent
9446 else
9447
9448 if test "$READLINE" = yes; then
9449 as_fn_error $? "termcap could not be found which is required for the
9450 --enable-readline option (which is enabled by default). Either disable readline
9451 support with --disable-readline or download and install termcap from:
9452 ftp.gnu.org/gnu/termcap
9453 Note: if you are using precompiled packages you will also need the development
9454 package as well (which may be called termcap-devel or something similar).
9455 Note: (n)curses also seems to work as a substitute for termcap. This was
9456 not found either - but you could try installing that as well." "$LINENO" 5
9457 fi
9458 fi
9459
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9461 $as_echo_n "checking for readline in -lreadline... " >&6; }
9462 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 ac_check_lib_save_LIBS=$LIBS
9466 LIBS="-lreadline $LIBS"
9467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9468 /* end confdefs.h. */
9469
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9473 #ifdef __cplusplus
9474 extern "C"
9475 #endif
9476 char readline ();
9477 int
9478 main ()
9479 {
9480 return readline ();
9481 ;
9482 return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_link "$LINENO"; then :
9486 ac_cv_lib_readline_readline=yes
9487 else
9488 ac_cv_lib_readline_readline=no
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 LIBS=$ac_check_lib_save_LIBS
9493 fi
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9495 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9496 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9497
9498
9499 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9500
9501 LIBS=$lvm_saved_libs
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9503 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9504 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507 ac_check_lib_save_LIBS=$LIBS
9508 LIBS="-lreadline $LIBS"
9509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511
9512 /* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515 #ifdef __cplusplus
9516 extern "C"
9517 #endif
9518 char rl_line_buffer ();
9519 int
9520 main ()
9521 {
9522 return rl_line_buffer ();
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"; then :
9528 ac_cv_lib_readline_rl_line_buffer=yes
9529 else
9530 ac_cv_lib_readline_rl_line_buffer=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9534 LIBS=$ac_check_lib_save_LIBS
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9537 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9538 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9539 READLINE_LIBS="-lreadline"
9540 else
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9543 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9544 READLINE_LIBS="-lreadline $READLINE_LIBS"
9545
9546 fi
9547
9548 else
9549
9550 READLINE_LIBS=
9551 if test "$READLINE" = yes; then
9552 as_fn_error $? "GNU Readline could not be found which is required for the
9553 --enable-readline option (which is enabled by default). Either disable readline
9554 support with --disable-readline or download and install readline from:
9555 ftp.gnu.org/gnu/readline
9556 Note: if you are using precompiled packages you will also need the development
9557 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9558 fi
9559 fi
9560
9561 LIBS="$READLINE_LIBS $lvm_saved_libs"
9562 for ac_func in rl_completion_matches
9563 do :
9564 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9565 if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9566 cat >>confdefs.h <<_ACEOF
9567 #define HAVE_RL_COMPLETION_MATCHES 1
9568 _ACEOF
9569
9570 fi
9571 done
9572
9573 LIBS=$lvm_saved_libs
9574 fi
9575
9576 ################################################################################
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9578 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9579 # Check whether --enable-nls was given.
9580 if test "${enable_nls+set}" = set; then :
9581 enableval=$enable_nls; INTL=$enableval
9582 else
9583 INTL=no
9584 fi
9585
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9587 $as_echo "$INTL" >&6; }
9588
9589 if test x$INTL = xyes; then
9590 # FIXME - Move this - can be device-mapper too
9591 INTL_PACKAGE="lvm2"
9592 # Extract the first word of "msgfmt", so it can be a program name with args.
9593 set dummy msgfmt; ac_word=$2
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9595 $as_echo_n "checking for $ac_word... " >&6; }
9596 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9598 else
9599 case $MSGFMT in
9600 [\\/]* | ?:[\\/]*)
9601 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9602 ;;
9603 *)
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605 for as_dir in $PATH
9606 do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 break 2
9614 fi
9615 done
9616 done
9617 IFS=$as_save_IFS
9618
9619 ;;
9620 esac
9621 fi
9622 MSGFMT=$ac_cv_path_MSGFMT
9623 if test -n "$MSGFMT"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9625 $as_echo "$MSGFMT" >&6; }
9626 else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628 $as_echo "no" >&6; }
9629 fi
9630
9631
9632 if [ "x$MSGFMT" == x ];
9633 then as_fn_error $? "msgfmt not found in path $PATH
9634 " "$LINENO" 5
9635 fi;
9636
9637
9638 # Check whether --with-localedir was given.
9639 if test "${with_localedir+set}" = set; then :
9640 withval=$with_localedir; LOCALEDIR=$withval
9641 else
9642 LOCALEDIR='${prefix}/share/locale'
9643 fi
9644
9645 fi
9646
9647 ################################################################################
9648
9649 # Check whether --with-confdir was given.
9650 if test "${with_confdir+set}" = set; then :
9651 withval=$with_confdir; CONFDIR=$withval
9652 else
9653 CONFDIR="/etc"
9654 fi
9655
9656
9657
9658 # Check whether --with-staticdir was given.
9659 if test "${with_staticdir+set}" = set; then :
9660 withval=$with_staticdir; STATICDIR=$withval
9661 else
9662 STATICDIR='${exec_prefix}/sbin'
9663 fi
9664
9665
9666
9667 # Check whether --with-usrlibdir was given.
9668 if test "${with_usrlibdir+set}" = set; then :
9669 withval=$with_usrlibdir; usrlibdir=$withval
9670 else
9671 usrlibdir='${prefix}/lib'
9672 fi
9673
9674
9675
9676 # Check whether --with-usrsbindir was given.
9677 if test "${with_usrsbindir+set}" = set; then :
9678 withval=$with_usrsbindir; usrsbindir=$withval
9679 else
9680 usrsbindir='${prefix}/sbin'
9681 fi
9682
9683
9684 ################################################################################
9685
9686 # Check whether --with-udev_prefix was given.
9687 if test "${with_udev_prefix+set}" = set; then :
9688 withval=$with_udev_prefix; udev_prefix=$withval
9689 else
9690 udev_prefix='${exec_prefix}'
9691 fi
9692
9693
9694
9695 # Check whether --with-udevdir was given.
9696 if test "${with_udevdir+set}" = set; then :
9697 withval=$with_udevdir; udevdir=$withval
9698 else
9699 udevdir='${udev_prefix}/lib/udev/rules.d'
9700 fi
9701
9702
9703 ################################################################################
9704 if test x$READLINE = xyes; then
9705 for ac_header in readline/readline.h readline/history.h
9706 do :
9707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9710 cat >>confdefs.h <<_ACEOF
9711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9712 _ACEOF
9713
9714 else
9715 as_fn_error $? "bailing out" "$LINENO" 5
9716 fi
9717
9718 done
9719
9720 fi
9721
9722 if test x$CLVMD != xnone; then
9723 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
9724 do :
9725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9726 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9727 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9728 cat >>confdefs.h <<_ACEOF
9729 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9730 _ACEOF
9731
9732 else
9733 as_fn_error $? "bailing out" "$LINENO" 5
9734 fi
9735
9736 done
9737
9738 for ac_func in dup2 getmntent memmove select socket
9739 do :
9740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9741 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9742 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9743 cat >>confdefs.h <<_ACEOF
9744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9745 _ACEOF
9746
9747 else
9748 as_fn_error $? "bailing out" "$LINENO" 5
9749 fi
9750 done
9751
9752 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9753 # -lseq on Dynix/PTX, -lgen on Unixware.
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9755 $as_echo_n "checking for library containing getmntent... " >&6; }
9756 if test "${ac_cv_search_getmntent+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 ac_func_search_save_LIBS=$LIBS
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762
9763 /* Override any GCC internal prototype to avoid an error.
9764 Use char because int might match the return type of a GCC
9765 builtin and then its argument prototype would still apply. */
9766 #ifdef __cplusplus
9767 extern "C"
9768 #endif
9769 char getmntent ();
9770 int
9771 main ()
9772 {
9773 return getmntent ();
9774 ;
9775 return 0;
9776 }
9777 _ACEOF
9778 for ac_lib in '' sun seq gen; do
9779 if test -z "$ac_lib"; then
9780 ac_res="none required"
9781 else
9782 ac_res=-l$ac_lib
9783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9784 fi
9785 if ac_fn_c_try_link "$LINENO"; then :
9786 ac_cv_search_getmntent=$ac_res
9787 fi
9788 rm -f core conftest.err conftest.$ac_objext \
9789 conftest$ac_exeext
9790 if test "${ac_cv_search_getmntent+set}" = set; then :
9791 break
9792 fi
9793 done
9794 if test "${ac_cv_search_getmntent+set}" = set; then :
9795
9796 else
9797 ac_cv_search_getmntent=no
9798 fi
9799 rm conftest.$ac_ext
9800 LIBS=$ac_func_search_save_LIBS
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9803 $as_echo "$ac_cv_search_getmntent" >&6; }
9804 ac_res=$ac_cv_search_getmntent
9805 if test "$ac_res" != no; then :
9806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9807 ac_cv_func_getmntent=yes
9808
9809 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9810
9811 else
9812 ac_cv_func_getmntent=no
9813 fi
9814
9815
9816 for ac_header in sys/select.h sys/socket.h
9817 do :
9818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9819 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9821 cat >>confdefs.h <<_ACEOF
9822 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9823 _ACEOF
9824
9825 fi
9826
9827 done
9828
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9830 $as_echo_n "checking types of arguments for select... " >&6; }
9831 if test "${ac_cv_func_select_args+set}" = set; then :
9832 $as_echo_n "(cached) " >&6
9833 else
9834 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9835 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9836 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9839 $ac_includes_default
9840 #ifdef HAVE_SYS_SELECT_H
9841 # include <sys/select.h>
9842 #endif
9843 #ifdef HAVE_SYS_SOCKET_H
9844 # include <sys/socket.h>
9845 #endif
9846
9847 int
9848 main ()
9849 {
9850 extern int select ($ac_arg1,
9851 $ac_arg234, $ac_arg234, $ac_arg234,
9852 $ac_arg5);
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_compile "$LINENO"; then :
9858 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 done
9862 done
9863 done
9864 # Provide a safe default value.
9865 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9866
9867 fi
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9869 $as_echo "$ac_cv_func_select_args" >&6; }
9870 ac_save_IFS=$IFS; IFS=','
9871 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9872 IFS=$ac_save_IFS
9873 shift
9874
9875 cat >>confdefs.h <<_ACEOF
9876 #define SELECT_TYPE_ARG1 $1
9877 _ACEOF
9878
9879
9880 cat >>confdefs.h <<_ACEOF
9881 #define SELECT_TYPE_ARG234 ($2)
9882 _ACEOF
9883
9884
9885 cat >>confdefs.h <<_ACEOF
9886 #define SELECT_TYPE_ARG5 ($3)
9887 _ACEOF
9888
9889 rm -f conftest*
9890
9891 fi
9892
9893 if test x$CLUSTER != xnone; then
9894 for ac_header in sys/socket.h sys/un.h
9895 do :
9896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9899 cat >>confdefs.h <<_ACEOF
9900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9901 _ACEOF
9902
9903 else
9904 as_fn_error $? "bailing out" "$LINENO" 5
9905 fi
9906
9907 done
9908
9909 for ac_func in socket
9910 do :
9911 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9912 if test "x$ac_cv_func_socket" = x""yes; then :
9913 cat >>confdefs.h <<_ACEOF
9914 #define HAVE_SOCKET 1
9915 _ACEOF
9916
9917 else
9918 as_fn_error $? "bailing out" "$LINENO" 5
9919 fi
9920 done
9921
9922 fi
9923
9924 if test x$DMEVENTD = xyes; then
9925 for ac_header in arpa/inet.h
9926 do :
9927 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9928 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
9929 cat >>confdefs.h <<_ACEOF
9930 #define HAVE_ARPA_INET_H 1
9931 _ACEOF
9932
9933 else
9934 as_fn_error $? "bailing out" "$LINENO" 5
9935 fi
9936
9937 done
9938
9939 fi
9940
9941 if test x$HAVE_LIBDL = xyes; then
9942 for ac_header in dlfcn.h
9943 do :
9944 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9945 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9946 cat >>confdefs.h <<_ACEOF
9947 #define HAVE_DLFCN_H 1
9948 _ACEOF
9949
9950 else
9951 as_fn_error $? "bailing out" "$LINENO" 5
9952 fi
9953
9954 done
9955
9956 fi
9957
9958 if test x$INTL = xyes; then
9959 for ac_header in libintl.h
9960 do :
9961 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9962 if test "x$ac_cv_header_libintl_h" = x""yes; then :
9963 cat >>confdefs.h <<_ACEOF
9964 #define HAVE_LIBINTL_H 1
9965 _ACEOF
9966
9967 else
9968 as_fn_error $? "bailing out" "$LINENO" 5
9969 fi
9970
9971 done
9972
9973 fi
9974
9975 if test x$UDEV_SYNC = xyes; then
9976 for ac_header in sys/ipc.h sys/sem.h
9977 do :
9978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9981 cat >>confdefs.h <<_ACEOF
9982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9983 _ACEOF
9984
9985 else
9986 as_fn_error $? "bailing out" "$LINENO" 5
9987 fi
9988
9989 done
9990
9991 fi
9992
9993 ################################################################################
9994 # Extract the first word of "modprobe", so it can be a program name with args.
9995 set dummy modprobe; ac_word=$2
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9997 $as_echo_n "checking for $ac_word... " >&6; }
9998 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
9999 $as_echo_n "(cached) " >&6
10000 else
10001 case $MODPROBE_CMD in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10004 ;;
10005 *)
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in $PATH
10008 do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10016 fi
10017 done
10018 done
10019 IFS=$as_save_IFS
10020
10021 ;;
10022 esac
10023 fi
10024 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10025 if test -n "$MODPROBE_CMD"; then
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10027 $as_echo "$MODPROBE_CMD" >&6; }
10028 else
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030 $as_echo "no" >&6; }
10031 fi
10032
10033
10034
10035 if test x$MODPROBE_CMD != x; then
10036
10037 cat >>confdefs.h <<_ACEOF
10038 #define MODPROBE_CMD "$MODPROBE_CMD"
10039 _ACEOF
10040
10041 fi
10042
10043
10044 lvm_exec_prefix=$exec_prefix
10045 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10046 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10047 LVM_PATH="$lvm_exec_prefix/sbin/lvm"
10048
10049 cat >>confdefs.h <<_ACEOF
10050 #define LVM_PATH "$LVM_PATH"
10051 _ACEOF
10052
10053
10054 if test "$CLVMD" != none; then
10055 clvmd_prefix=$ac_default_prefix
10056 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
10057 test "$prefix" != NONE && clvmd_prefix=$prefix
10058
10059 cat >>confdefs.h <<_ACEOF
10060 #define CLVMD_PATH "$CLVMD_PATH"
10061 _ACEOF
10062
10063 fi
10064
10065 ################################################################################
10066 if test "$BUILD_DMEVENTD" = yes; then
10067
10068 # Check whether --with-dmeventd-pidfile was given.
10069 if test "${with_dmeventd_pidfile+set}" = set; then :
10070 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
10071 else
10072 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
10073 fi
10074
10075
10076 cat >>confdefs.h <<_ACEOF
10077 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10078 _ACEOF
10079
10080 fi
10081
10082 if test "$BUILD_DMEVENTD" = yes; then
10083
10084 # Check whether --with-dmeventd-path was given.
10085 if test "${with_dmeventd_path+set}" = set; then :
10086 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
10087 else
10088 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
10089 fi
10090
10091
10092 cat >>confdefs.h <<_ACEOF
10093 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10094 _ACEOF
10095
10096 fi
10097
10098
10099
10100 # Check whether --with-default-run-dir was given.
10101 if test "${with_default_run_dir+set}" = set; then :
10102 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10103 else
10104 DEFAULT_RUN_DIR="/var/run/lvm"
10105 fi
10106
10107 cat >>confdefs.h <<_ACEOF
10108 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10109 _ACEOF
10110
10111
10112 ################################################################################
10113
10114 # Check whether --with-default-system-dir was given.
10115 if test "${with_default_system_dir+set}" = set; then :
10116 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
10117 else
10118 DEFAULT_SYS_DIR="/etc/lvm"
10119 fi
10120
10121
10122 cat >>confdefs.h <<_ACEOF
10123 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10124 _ACEOF
10125
10126
10127
10128 # Check whether --with-default-archive-subdir was given.
10129 if test "${with_default_archive_subdir+set}" = set; then :
10130 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
10131 else
10132 DEFAULT_ARCHIVE_SUBDIR=archive
10133 fi
10134
10135
10136 cat >>confdefs.h <<_ACEOF
10137 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10138 _ACEOF
10139
10140
10141
10142 # Check whether --with-default-backup-subdir was given.
10143 if test "${with_default_backup_subdir+set}" = set; then :
10144 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
10145 else
10146 DEFAULT_BACKUP_SUBDIR=backup
10147 fi
10148
10149
10150 cat >>confdefs.h <<_ACEOF
10151 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10152 _ACEOF
10153
10154
10155
10156 # Check whether --with-default-cache-subdir was given.
10157 if test "${with_default_cache_subdir+set}" = set; then :
10158 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
10159 else
10160 DEFAULT_CACHE_SUBDIR=cache
10161 fi
10162
10163
10164 cat >>confdefs.h <<_ACEOF
10165 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10166 _ACEOF
10167
10168
10169
10170 # Check whether --with-default-locking-dir was given.
10171 if test "${with_default_locking_dir+set}" = set; then :
10172 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
10173 else
10174 DEFAULT_LOCK_DIR="/var/lock/lvm"
10175 fi
10176
10177
10178 cat >>confdefs.h <<_ACEOF
10179 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10180 _ACEOF
10181
10182
10183 ################################################################################
10184
10185 # Check whether --with-default-data-alignment was given.
10186 if test "${with_default_data_alignment+set}" = set; then :
10187 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10188 else
10189 DEFAULT_DATA_ALIGNMENT=1
10190 fi
10191
10192
10193 cat >>confdefs.h <<_ACEOF
10194 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10195 _ACEOF
10196
10197
10198 ################################################################################
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10200 $as_echo_n "checking for kernel interface choice... " >&6; }
10201
10202 # Check whether --with-interface was given.
10203 if test "${with_interface+set}" = set; then :
10204 withval=$with_interface; interface=$withval
10205 else
10206 interface=ioctl
10207 fi
10208
10209 if [ "x$interface" != xioctl ];
10210 then
10211 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10214 $as_echo "$interface" >&6; }
10215
10216 ################################################################################
10217 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10218
10219 cat >>confdefs.h <<_ACEOF
10220 #define DM_LIB_VERSION $DM_LIB_VERSION
10221 _ACEOF
10222
10223
10224 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10225
10226 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10227
10228 VER=`cat "$srcdir"/VERSION`
10229 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10230 VER=`echo "$VER" | $AWK '{print $1}'`
10231 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10232 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10233 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10234 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10235 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10236 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10237
10238 ################################################################################
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 ################################################################################
10349 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10350
10351 cat >confcache <<\_ACEOF
10352 # This file is a shell script that caches the results of configure
10353 # tests run on this system so they can be shared between configure
10354 # scripts and configure runs, see configure's option --config-cache.
10355 # It is not useful on other systems. If it contains results you don't
10356 # want to keep, you may remove or edit it.
10357 #
10358 # config.status only pays attention to the cache file if you give it
10359 # the --recheck option to rerun configure.
10360 #
10361 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10362 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10363 # following values.
10364
10365 _ACEOF
10366
10367 # The following way of writing the cache mishandles newlines in values,
10368 # but we know of no workaround that is simple, portable, and efficient.
10369 # So, we kill variables containing newlines.
10370 # Ultrix sh set writes to stderr and can't be redirected directly,
10371 # and sets the high bit in the cache file unless we assign to the vars.
10372 (
10373 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10374 eval ac_val=\$$ac_var
10375 case $ac_val in #(
10376 *${as_nl}*)
10377 case $ac_var in #(
10378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10380 esac
10381 case $ac_var in #(
10382 _ | IFS | as_nl) ;; #(
10383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10384 *) { eval $ac_var=; unset $ac_var;} ;;
10385 esac ;;
10386 esac
10387 done
10388
10389 (set) 2>&1 |
10390 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10391 *${as_nl}ac_space=\ *)
10392 # `set' does not quote correctly, so add quotes: double-quote
10393 # substitution turns \\\\ into \\, and sed turns \\ into \.
10394 sed -n \
10395 "s/'/'\\\\''/g;
10396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10397 ;; #(
10398 *)
10399 # `set' quotes correctly as required by POSIX, so do not add quotes.
10400 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10401 ;;
10402 esac |
10403 sort
10404 ) |
10405 sed '
10406 /^ac_cv_env_/b end
10407 t clear
10408 :clear
10409 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10410 t end
10411 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10412 :end' >>confcache
10413 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10414 if test -w "$cache_file"; then
10415 test "x$cache_file" != "x/dev/null" &&
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10417 $as_echo "$as_me: updating cache $cache_file" >&6;}
10418 cat confcache >$cache_file
10419 else
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10421 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10422 fi
10423 fi
10424 rm -f confcache
10425
10426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10427 # Let make expand exec_prefix.
10428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10429
10430 DEFS=-DHAVE_CONFIG_H
10431
10432 ac_libobjs=
10433 ac_ltlibobjs=
10434 U=
10435 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10436 # 1. Remove the extension, and $U if already installed.
10437 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10438 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10439 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10440 # will be set to the directory where LIBOBJS objects are built.
10441 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10442 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10443 done
10444 LIBOBJS=$ac_libobjs
10445
10446 LTLIBOBJS=$ac_ltlibobjs
10447
10448
10449
10450 : ${CONFIG_STATUS=./config.status}
10451 ac_write_fail=0
10452 ac_clean_files_save=$ac_clean_files
10453 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10455 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10456 as_write_fail=0
10457 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10458 #! $SHELL
10459 # Generated by $as_me.
10460 # Run this file to recreate the current configuration.
10461 # Compiler output produced by configure, useful for debugging
10462 # configure, is in config.log if it exists.
10463
10464 debug=false
10465 ac_cs_recheck=false
10466 ac_cs_silent=false
10467
10468 SHELL=\${CONFIG_SHELL-$SHELL}
10469 export SHELL
10470 _ASEOF
10471 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10472 ## -------------------- ##
10473 ## M4sh Initialization. ##
10474 ## -------------------- ##
10475
10476 # Be more Bourne compatible
10477 DUALCASE=1; export DUALCASE # for MKS sh
10478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10479 emulate sh
10480 NULLCMD=:
10481 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10482 # is contrary to our usage. Disable this feature.
10483 alias -g '${1+"$@"}'='"$@"'
10484 setopt NO_GLOB_SUBST
10485 else
10486 case `(set -o) 2>/dev/null` in #(
10487 *posix*) :
10488 set -o posix ;; #(
10489 *) :
10490 ;;
10491 esac
10492 fi
10493
10494
10495 as_nl='
10496 '
10497 export as_nl
10498 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10499 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10500 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10501 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10502 # Prefer a ksh shell builtin over an external printf program on Solaris,
10503 # but without wasting forks for bash or zsh.
10504 if test -z "$BASH_VERSION$ZSH_VERSION" \
10505 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10506 as_echo='print -r --'
10507 as_echo_n='print -rn --'
10508 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10509 as_echo='printf %s\n'
10510 as_echo_n='printf %s'
10511 else
10512 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10513 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10514 as_echo_n='/usr/ucb/echo -n'
10515 else
10516 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10517 as_echo_n_body='eval
10518 arg=$1;
10519 case $arg in #(
10520 *"$as_nl"*)
10521 expr "X$arg" : "X\\(.*\\)$as_nl";
10522 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10523 esac;
10524 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10525 '
10526 export as_echo_n_body
10527 as_echo_n='sh -c $as_echo_n_body as_echo'
10528 fi
10529 export as_echo_body
10530 as_echo='sh -c $as_echo_body as_echo'
10531 fi
10532
10533 # The user is always right.
10534 if test "${PATH_SEPARATOR+set}" != set; then
10535 PATH_SEPARATOR=:
10536 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10537 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10538 PATH_SEPARATOR=';'
10539 }
10540 fi
10541
10542
10543 # IFS
10544 # We need space, tab and new line, in precisely that order. Quoting is
10545 # there to prevent editors from complaining about space-tab.
10546 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10547 # splitting by setting IFS to empty value.)
10548 IFS=" "" $as_nl"
10549
10550 # Find who we are. Look in the path if we contain no directory separator.
10551 case $0 in #((
10552 *[\\/]* ) as_myself=$0 ;;
10553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554 for as_dir in $PATH
10555 do
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10559 done
10560 IFS=$as_save_IFS
10561
10562 ;;
10563 esac
10564 # We did not find ourselves, most probably we were run as `sh COMMAND'
10565 # in which case we are not to be found in the path.
10566 if test "x$as_myself" = x; then
10567 as_myself=$0
10568 fi
10569 if test ! -f "$as_myself"; then
10570 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10571 exit 1
10572 fi
10573
10574 # Unset variables that we do not need and which cause bugs (e.g. in
10575 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10576 # suppresses any "Segmentation fault" message there. '((' could
10577 # trigger a bug in pdksh 5.2.14.
10578 for as_var in BASH_ENV ENV MAIL MAILPATH
10579 do eval test x\${$as_var+set} = xset \
10580 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10581 done
10582 PS1='$ '
10583 PS2='> '
10584 PS4='+ '
10585
10586 # NLS nuisances.
10587 LC_ALL=C
10588 export LC_ALL
10589 LANGUAGE=C
10590 export LANGUAGE
10591
10592 # CDPATH.
10593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10594
10595
10596 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10597 # ----------------------------------------
10598 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10599 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10600 # script with STATUS, using 1 if that was 0.
10601 as_fn_error ()
10602 {
10603 as_status=$1; test $as_status -eq 0 && as_status=1
10604 if test "$4"; then
10605 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10606 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10607 fi
10608 $as_echo "$as_me: error: $2" >&2
10609 as_fn_exit $as_status
10610 } # as_fn_error
10611
10612
10613 # as_fn_set_status STATUS
10614 # -----------------------
10615 # Set $? to STATUS, without forking.
10616 as_fn_set_status ()
10617 {
10618 return $1
10619 } # as_fn_set_status
10620
10621 # as_fn_exit STATUS
10622 # -----------------
10623 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10624 as_fn_exit ()
10625 {
10626 set +e
10627 as_fn_set_status $1
10628 exit $1
10629 } # as_fn_exit
10630
10631 # as_fn_unset VAR
10632 # ---------------
10633 # Portably unset VAR.
10634 as_fn_unset ()
10635 {
10636 { eval $1=; unset $1;}
10637 }
10638 as_unset=as_fn_unset
10639 # as_fn_append VAR VALUE
10640 # ----------------------
10641 # Append the text in VALUE to the end of the definition contained in VAR. Take
10642 # advantage of any shell optimizations that allow amortized linear growth over
10643 # repeated appends, instead of the typical quadratic growth present in naive
10644 # implementations.
10645 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10646 eval 'as_fn_append ()
10647 {
10648 eval $1+=\$2
10649 }'
10650 else
10651 as_fn_append ()
10652 {
10653 eval $1=\$$1\$2
10654 }
10655 fi # as_fn_append
10656
10657 # as_fn_arith ARG...
10658 # ------------------
10659 # Perform arithmetic evaluation on the ARGs, and store the result in the
10660 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10661 # must be portable across $(()) and expr.
10662 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10663 eval 'as_fn_arith ()
10664 {
10665 as_val=$(( $* ))
10666 }'
10667 else
10668 as_fn_arith ()
10669 {
10670 as_val=`expr "$@" || test $? -eq 1`
10671 }
10672 fi # as_fn_arith
10673
10674
10675 if expr a : '\(a\)' >/dev/null 2>&1 &&
10676 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10677 as_expr=expr
10678 else
10679 as_expr=false
10680 fi
10681
10682 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10683 as_basename=basename
10684 else
10685 as_basename=false
10686 fi
10687
10688 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10689 as_dirname=dirname
10690 else
10691 as_dirname=false
10692 fi
10693
10694 as_me=`$as_basename -- "$0" ||
10695 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10696 X"$0" : 'X\(//\)$' \| \
10697 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10698 $as_echo X/"$0" |
10699 sed '/^.*\/\([^/][^/]*\)\/*$/{
10700 s//\1/
10701 q
10702 }
10703 /^X\/\(\/\/\)$/{
10704 s//\1/
10705 q
10706 }
10707 /^X\/\(\/\).*/{
10708 s//\1/
10709 q
10710 }
10711 s/.*/./; q'`
10712
10713 # Avoid depending upon Character Ranges.
10714 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10715 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10716 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10717 as_cr_digits='0123456789'
10718 as_cr_alnum=$as_cr_Letters$as_cr_digits
10719
10720 ECHO_C= ECHO_N= ECHO_T=
10721 case `echo -n x` in #(((((
10722 -n*)
10723 case `echo 'xy\c'` in
10724 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10725 xy) ECHO_C='\c';;
10726 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10727 ECHO_T=' ';;
10728 esac;;
10729 *)
10730 ECHO_N='-n';;
10731 esac
10732
10733 rm -f conf$$ conf$$.exe conf$$.file
10734 if test -d conf$$.dir; then
10735 rm -f conf$$.dir/conf$$.file
10736 else
10737 rm -f conf$$.dir
10738 mkdir conf$$.dir 2>/dev/null
10739 fi
10740 if (echo >conf$$.file) 2>/dev/null; then
10741 if ln -s conf$$.file conf$$ 2>/dev/null; then
10742 as_ln_s='ln -s'
10743 # ... but there are two gotchas:
10744 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10745 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10746 # In both cases, we have to default to `cp -p'.
10747 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10748 as_ln_s='cp -p'
10749 elif ln conf$$.file conf$$ 2>/dev/null; then
10750 as_ln_s=ln
10751 else
10752 as_ln_s='cp -p'
10753 fi
10754 else
10755 as_ln_s='cp -p'
10756 fi
10757 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10758 rmdir conf$$.dir 2>/dev/null
10759
10760
10761 # as_fn_mkdir_p
10762 # -------------
10763 # Create "$as_dir" as a directory, including parents if necessary.
10764 as_fn_mkdir_p ()
10765 {
10766
10767 case $as_dir in #(
10768 -*) as_dir=./$as_dir;;
10769 esac
10770 test -d "$as_dir" || eval $as_mkdir_p || {
10771 as_dirs=
10772 while :; do
10773 case $as_dir in #(
10774 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10775 *) as_qdir=$as_dir;;
10776 esac
10777 as_dirs="'$as_qdir' $as_dirs"
10778 as_dir=`$as_dirname -- "$as_dir" ||
10779 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10780 X"$as_dir" : 'X\(//\)[^/]' \| \
10781 X"$as_dir" : 'X\(//\)$' \| \
10782 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10783 $as_echo X"$as_dir" |
10784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10785 s//\1/
10786 q
10787 }
10788 /^X\(\/\/\)[^/].*/{
10789 s//\1/
10790 q
10791 }
10792 /^X\(\/\/\)$/{
10793 s//\1/
10794 q
10795 }
10796 /^X\(\/\).*/{
10797 s//\1/
10798 q
10799 }
10800 s/.*/./; q'`
10801 test -d "$as_dir" && break
10802 done
10803 test -z "$as_dirs" || eval "mkdir $as_dirs"
10804 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10805
10806
10807 } # as_fn_mkdir_p
10808 if mkdir -p . 2>/dev/null; then
10809 as_mkdir_p='mkdir -p "$as_dir"'
10810 else
10811 test -d ./-p && rmdir ./-p
10812 as_mkdir_p=false
10813 fi
10814
10815 if test -x / >/dev/null 2>&1; then
10816 as_test_x='test -x'
10817 else
10818 if ls -dL / >/dev/null 2>&1; then
10819 as_ls_L_option=L
10820 else
10821 as_ls_L_option=
10822 fi
10823 as_test_x='
10824 eval sh -c '\''
10825 if test -d "$1"; then
10826 test -d "$1/.";
10827 else
10828 case $1 in #(
10829 -*)set "./$1";;
10830 esac;
10831 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10832 ???[sx]*):;;*)false;;esac;fi
10833 '\'' sh
10834 '
10835 fi
10836 as_executable_p=$as_test_x
10837
10838 # Sed expression to map a string onto a valid CPP name.
10839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10840
10841 # Sed expression to map a string onto a valid variable name.
10842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10843
10844
10845 exec 6>&1
10846 ## ----------------------------------- ##
10847 ## Main body of $CONFIG_STATUS script. ##
10848 ## ----------------------------------- ##
10849 _ASEOF
10850 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10851
10852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10853 # Save the log message, to keep $0 and so on meaningful, and to
10854 # report actual input values of CONFIG_FILES etc. instead of their
10855 # values after options handling.
10856 ac_log="
10857 This file was extended by $as_me, which was
10858 generated by GNU Autoconf 2.66. Invocation command line was
10859
10860 CONFIG_FILES = $CONFIG_FILES
10861 CONFIG_HEADERS = $CONFIG_HEADERS
10862 CONFIG_LINKS = $CONFIG_LINKS
10863 CONFIG_COMMANDS = $CONFIG_COMMANDS
10864 $ $0 $@
10865
10866 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10867 "
10868
10869 _ACEOF
10870
10871 case $ac_config_files in *"
10872 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10873 esac
10874
10875 case $ac_config_headers in *"
10876 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10877 esac
10878
10879
10880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10881 # Files that config.status was made for.
10882 config_files="$ac_config_files"
10883 config_headers="$ac_config_headers"
10884
10885 _ACEOF
10886
10887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10888 ac_cs_usage="\
10889 \`$as_me' instantiates files and other configuration actions
10890 from templates according to the current configuration. Unless the files
10891 and actions are specified as TAGs, all are instantiated by default.
10892
10893 Usage: $0 [OPTION]... [TAG]...
10894
10895 -h, --help print this help, then exit
10896 -V, --version print version number and configuration settings, then exit
10897 --config print configuration, then exit
10898 -q, --quiet, --silent
10899 do not print progress messages
10900 -d, --debug don't remove temporary files
10901 --recheck update $as_me by reconfiguring in the same conditions
10902 --file=FILE[:TEMPLATE]
10903 instantiate the configuration file FILE
10904 --header=FILE[:TEMPLATE]
10905 instantiate the configuration header FILE
10906
10907 Configuration files:
10908 $config_files
10909
10910 Configuration headers:
10911 $config_headers
10912
10913 Report bugs to the package provider."
10914
10915 _ACEOF
10916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10917 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10918 ac_cs_version="\\
10919 config.status
10920 configured by $0, generated by GNU Autoconf 2.66,
10921 with options \\"\$ac_cs_config\\"
10922
10923 Copyright (C) 2010 Free Software Foundation, Inc.
10924 This config.status script is free software; the Free Software Foundation
10925 gives unlimited permission to copy, distribute and modify it."
10926
10927 ac_pwd='$ac_pwd'
10928 srcdir='$srcdir'
10929 INSTALL='$INSTALL'
10930 MKDIR_P='$MKDIR_P'
10931 AWK='$AWK'
10932 test -n "\$AWK" || AWK=awk
10933 _ACEOF
10934
10935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10936 # The default lists apply if the user does not specify any file.
10937 ac_need_defaults=:
10938 while test $# != 0
10939 do
10940 case $1 in
10941 --*=*)
10942 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10943 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10944 ac_shift=:
10945 ;;
10946 *)
10947 ac_option=$1
10948 ac_optarg=$2
10949 ac_shift=shift
10950 ;;
10951 esac
10952
10953 case $ac_option in
10954 # Handling of the options.
10955 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10956 ac_cs_recheck=: ;;
10957 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10958 $as_echo "$ac_cs_version"; exit ;;
10959 --config | --confi | --conf | --con | --co | --c )
10960 $as_echo "$ac_cs_config"; exit ;;
10961 --debug | --debu | --deb | --de | --d | -d )
10962 debug=: ;;
10963 --file | --fil | --fi | --f )
10964 $ac_shift
10965 case $ac_optarg in
10966 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10967 esac
10968 as_fn_append CONFIG_FILES " '$ac_optarg'"
10969 ac_need_defaults=false;;
10970 --header | --heade | --head | --hea )
10971 $ac_shift
10972 case $ac_optarg in
10973 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10974 esac
10975 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10976 ac_need_defaults=false;;
10977 --he | --h)
10978 # Conflict between --help and --header
10979 as_fn_error $? "ambiguous option: \`$1'
10980 Try \`$0 --help' for more information.";;
10981 --help | --hel | -h )
10982 $as_echo "$ac_cs_usage"; exit ;;
10983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10984 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10985 ac_cs_silent=: ;;
10986
10987 # This is an error.
10988 -*) as_fn_error $? "unrecognized option: \`$1'
10989 Try \`$0 --help' for more information." ;;
10990
10991 *) as_fn_append ac_config_targets " $1"
10992 ac_need_defaults=false ;;
10993
10994 esac
10995 shift
10996 done
10997
10998 ac_configure_extra_args=
10999
11000 if $ac_cs_silent; then
11001 exec 6>/dev/null
11002 ac_configure_extra_args="$ac_configure_extra_args --silent"
11003 fi
11004
11005 _ACEOF
11006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11007 if \$ac_cs_recheck; then
11008 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11009 shift
11010 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11011 CONFIG_SHELL='$SHELL'
11012 export CONFIG_SHELL
11013 exec "\$@"
11014 fi
11015
11016 _ACEOF
11017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11018 exec 5>>config.log
11019 {
11020 echo
11021 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11022 ## Running $as_me. ##
11023 _ASBOX
11024 $as_echo "$ac_log"
11025 } >&5
11026
11027 _ACEOF
11028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11029 _ACEOF
11030
11031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11032
11033 # Handling of arguments.
11034 for ac_config_target in $ac_config_targets
11035 do
11036 case $ac_config_target in
11037 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11038 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11039 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11040 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11041 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11042 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11043 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
11044 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11045 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11046 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11047 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11048 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
11049 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11050 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11051 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
11052 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
11053 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11054 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
11055 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
11056 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11057 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11058 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11059 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11060 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11061 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11062 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
11063 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11064 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
11065 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11066 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
11067 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11068 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11069 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
11070 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11071 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11072 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11073 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11074 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11075 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11076 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11077 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11078 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11079 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11080 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
11081 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
11082 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11083 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
11084 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11085 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11086 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11087
11088 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11089 esac
11090 done
11091
11092
11093 # If the user did not use the arguments to specify the items to instantiate,
11094 # then the envvar interface is used. Set only those that are not.
11095 # We use the long form for the default assignment because of an extremely
11096 # bizarre bug on SunOS 4.1.3.
11097 if $ac_need_defaults; then
11098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11100 fi
11101
11102 # Have a temporary directory for convenience. Make it in the build tree
11103 # simply because there is no reason against having it here, and in addition,
11104 # creating and moving files from /tmp can sometimes cause problems.
11105 # Hook for its removal unless debugging.
11106 # Note that there is a small window in which the directory will not be cleaned:
11107 # after its creation but before its name has been assigned to `$tmp'.
11108 $debug ||
11109 {
11110 tmp=
11111 trap 'exit_status=$?
11112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11113 ' 0
11114 trap 'as_fn_exit 1' 1 2 13 15
11115 }
11116 # Create a (secure) tmp directory for tmp files.
11117
11118 {
11119 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11120 test -n "$tmp" && test -d "$tmp"
11121 } ||
11122 {
11123 tmp=./conf$$-$RANDOM
11124 (umask 077 && mkdir "$tmp")
11125 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11126
11127 # Set up the scripts for CONFIG_FILES section.
11128 # No need to generate them if there are no CONFIG_FILES.
11129 # This happens for instance with `./config.status config.h'.
11130 if test -n "$CONFIG_FILES"; then
11131
11132
11133 ac_cr=`echo X | tr X '\015'`
11134 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11135 # But we know of no other shell where ac_cr would be empty at this
11136 # point, so we can use a bashism as a fallback.
11137 if test "x$ac_cr" = x; then
11138 eval ac_cr=\$\'\\r\'
11139 fi
11140 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11141 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11142 ac_cs_awk_cr='\\r'
11143 else
11144 ac_cs_awk_cr=$ac_cr
11145 fi
11146
11147 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11148 _ACEOF
11149
11150
11151 {
11152 echo "cat >conf$$subs.awk <<_ACEOF" &&
11153 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11154 echo "_ACEOF"
11155 } >conf$$subs.sh ||
11156 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11157 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11158 ac_delim='%!_!# '
11159 for ac_last_try in false false false false false :; do
11160 . ./conf$$subs.sh ||
11161 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11162
11163 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11164 if test $ac_delim_n = $ac_delim_num; then
11165 break
11166 elif $ac_last_try; then
11167 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11168 else
11169 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11170 fi
11171 done
11172 rm -f conf$$subs.sh
11173
11174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11175 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11176 _ACEOF
11177 sed -n '
11178 h
11179 s/^/S["/; s/!.*/"]=/
11180 p
11181 g
11182 s/^[^!]*!//
11183 :repl
11184 t repl
11185 s/'"$ac_delim"'$//
11186 t delim
11187 :nl
11188 h
11189 s/\(.\{148\}\)..*/\1/
11190 t more1
11191 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11192 p
11193 n
11194 b repl
11195 :more1
11196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11197 p
11198 g
11199 s/.\{148\}//
11200 t nl
11201 :delim
11202 h
11203 s/\(.\{148\}\)..*/\1/
11204 t more2
11205 s/["\\]/\\&/g; s/^/"/; s/$/"/
11206 p
11207 b
11208 :more2
11209 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11210 p
11211 g
11212 s/.\{148\}//
11213 t delim
11214 ' <conf$$subs.awk | sed '
11215 /^[^""]/{
11216 N
11217 s/\n//
11218 }
11219 ' >>$CONFIG_STATUS || ac_write_fail=1
11220 rm -f conf$$subs.awk
11221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11222 _ACAWK
11223 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11224 for (key in S) S_is_set[key] = 1
11225 FS = "\a"
11226
11227 }
11228 {
11229 line = $ 0
11230 nfields = split(line, field, "@")
11231 substed = 0
11232 len = length(field[1])
11233 for (i = 2; i < nfields; i++) {
11234 key = field[i]
11235 keylen = length(key)
11236 if (S_is_set[key]) {
11237 value = S[key]
11238 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11239 len += length(value) + length(field[++i])
11240 substed = 1
11241 } else
11242 len += 1 + keylen
11243 }
11244
11245 print line
11246 }
11247
11248 _ACAWK
11249 _ACEOF
11250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11251 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11252 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11253 else
11254 cat
11255 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11256 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11257 _ACEOF
11258
11259 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11260 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11261 # trailing colons and then remove the whole line if VPATH becomes empty
11262 # (actually we leave an empty line to preserve line numbers).
11263 if test "x$srcdir" = x.; then
11264 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11265 h
11266 s///
11267 s/^/:/
11268 s/[ ]*$/:/
11269 s/:\$(srcdir):/:/g
11270 s/:\${srcdir}:/:/g
11271 s/:@srcdir@:/:/g
11272 s/^:*//
11273 s/:*$//
11274 x
11275 s/\(=[ ]*\).*/\1/
11276 G
11277 s/\n//
11278 s/^[^=]*=[ ]*$//
11279 }'
11280 fi
11281
11282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11283 fi # test -n "$CONFIG_FILES"
11284
11285 # Set up the scripts for CONFIG_HEADERS section.
11286 # No need to generate them if there are no CONFIG_HEADERS.
11287 # This happens for instance with `./config.status Makefile'.
11288 if test -n "$CONFIG_HEADERS"; then
11289 cat >"$tmp/defines.awk" <<\_ACAWK ||
11290 BEGIN {
11291 _ACEOF
11292
11293 # Transform confdefs.h into an awk script `defines.awk', embedded as
11294 # here-document in config.status, that substitutes the proper values into
11295 # config.h.in to produce config.h.
11296
11297 # Create a delimiter string that does not exist in confdefs.h, to ease
11298 # handling of long lines.
11299 ac_delim='%!_!# '
11300 for ac_last_try in false false :; do
11301 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11302 if test -z "$ac_t"; then
11303 break
11304 elif $ac_last_try; then
11305 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11306 else
11307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11308 fi
11309 done
11310
11311 # For the awk script, D is an array of macro values keyed by name,
11312 # likewise P contains macro parameters if any. Preserve backslash
11313 # newline sequences.
11314
11315 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11316 sed -n '
11317 s/.\{148\}/&'"$ac_delim"'/g
11318 t rset
11319 :rset
11320 s/^[ ]*#[ ]*define[ ][ ]*/ /
11321 t def
11322 d
11323 :def
11324 s/\\$//
11325 t bsnl
11326 s/["\\]/\\&/g
11327 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11328 D["\1"]=" \3"/p
11329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11330 d
11331 :bsnl
11332 s/["\\]/\\&/g
11333 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11334 D["\1"]=" \3\\\\\\n"\\/p
11335 t cont
11336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11337 t cont
11338 d
11339 :cont
11340 n
11341 s/.\{148\}/&'"$ac_delim"'/g
11342 t clear
11343 :clear
11344 s/\\$//
11345 t bsnlc
11346 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11347 d
11348 :bsnlc
11349 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11350 b cont
11351 ' <confdefs.h | sed '
11352 s/'"$ac_delim"'/"\\\
11353 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11354
11355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11356 for (key in D) D_is_set[key] = 1
11357 FS = "\a"
11358 }
11359 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11360 line = \$ 0
11361 split(line, arg, " ")
11362 if (arg[1] == "#") {
11363 defundef = arg[2]
11364 mac1 = arg[3]
11365 } else {
11366 defundef = substr(arg[1], 2)
11367 mac1 = arg[2]
11368 }
11369 split(mac1, mac2, "(") #)
11370 macro = mac2[1]
11371 prefix = substr(line, 1, index(line, defundef) - 1)
11372 if (D_is_set[macro]) {
11373 # Preserve the white space surrounding the "#".
11374 print prefix "define", macro P[macro] D[macro]
11375 next
11376 } else {
11377 # Replace #undef with comments. This is necessary, for example,
11378 # in the case of _POSIX_SOURCE, which is predefined and required
11379 # on some systems where configure will not decide to define it.
11380 if (defundef == "undef") {
11381 print "/*", prefix defundef, macro, "*/"
11382 next
11383 }
11384 }
11385 }
11386 { print }
11387 _ACAWK
11388 _ACEOF
11389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11390 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11391 fi # test -n "$CONFIG_HEADERS"
11392
11393
11394 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11395 shift
11396 for ac_tag
11397 do
11398 case $ac_tag in
11399 :[FHLC]) ac_mode=$ac_tag; continue;;
11400 esac
11401 case $ac_mode$ac_tag in
11402 :[FHL]*:*);;
11403 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11404 :[FH]-) ac_tag=-:-;;
11405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11406 esac
11407 ac_save_IFS=$IFS
11408 IFS=:
11409 set x $ac_tag
11410 IFS=$ac_save_IFS
11411 shift
11412 ac_file=$1
11413 shift
11414
11415 case $ac_mode in
11416 :L) ac_source=$1;;
11417 :[FH])
11418 ac_file_inputs=
11419 for ac_f
11420 do
11421 case $ac_f in
11422 -) ac_f="$tmp/stdin";;
11423 *) # Look for the file first in the build tree, then in the source tree
11424 # (if the path is not absolute). The absolute path cannot be DOS-style,
11425 # because $ac_f cannot contain `:'.
11426 test -f "$ac_f" ||
11427 case $ac_f in
11428 [\\/$]*) false;;
11429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11430 esac ||
11431 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11432 esac
11433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11434 as_fn_append ac_file_inputs " '$ac_f'"
11435 done
11436
11437 # Let's still pretend it is `configure' which instantiates (i.e., don't
11438 # use $as_me), people would be surprised to read:
11439 # /* config.h. Generated by config.status. */
11440 configure_input='Generated from '`
11441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11442 `' by configure.'
11443 if test x"$ac_file" != x-; then
11444 configure_input="$ac_file. $configure_input"
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11446 $as_echo "$as_me: creating $ac_file" >&6;}
11447 fi
11448 # Neutralize special characters interpreted by sed in replacement strings.
11449 case $configure_input in #(
11450 *\&* | *\|* | *\\* )
11451 ac_sed_conf_input=`$as_echo "$configure_input" |
11452 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11453 *) ac_sed_conf_input=$configure_input;;
11454 esac
11455
11456 case $ac_tag in
11457 *:-:* | *:-) cat >"$tmp/stdin" \
11458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11459 esac
11460 ;;
11461 esac
11462
11463 ac_dir=`$as_dirname -- "$ac_file" ||
11464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11465 X"$ac_file" : 'X\(//\)[^/]' \| \
11466 X"$ac_file" : 'X\(//\)$' \| \
11467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11468 $as_echo X"$ac_file" |
11469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11470 s//\1/
11471 q
11472 }
11473 /^X\(\/\/\)[^/].*/{
11474 s//\1/
11475 q
11476 }
11477 /^X\(\/\/\)$/{
11478 s//\1/
11479 q
11480 }
11481 /^X\(\/\).*/{
11482 s//\1/
11483 q
11484 }
11485 s/.*/./; q'`
11486 as_dir="$ac_dir"; as_fn_mkdir_p
11487 ac_builddir=.
11488
11489 case "$ac_dir" in
11490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11491 *)
11492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11493 # A ".." for each directory in $ac_dir_suffix.
11494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11495 case $ac_top_builddir_sub in
11496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11498 esac ;;
11499 esac
11500 ac_abs_top_builddir=$ac_pwd
11501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11502 # for backward compatibility:
11503 ac_top_builddir=$ac_top_build_prefix
11504
11505 case $srcdir in
11506 .) # We are building in place.
11507 ac_srcdir=.
11508 ac_top_srcdir=$ac_top_builddir_sub
11509 ac_abs_top_srcdir=$ac_pwd ;;
11510 [\\/]* | ?:[\\/]* ) # Absolute name.
11511 ac_srcdir=$srcdir$ac_dir_suffix;
11512 ac_top_srcdir=$srcdir
11513 ac_abs_top_srcdir=$srcdir ;;
11514 *) # Relative name.
11515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11516 ac_top_srcdir=$ac_top_build_prefix$srcdir
11517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11518 esac
11519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11520
11521
11522 case $ac_mode in
11523 :F)
11524 #
11525 # CONFIG_FILE
11526 #
11527
11528 case $INSTALL in
11529 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11530 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11531 esac
11532 ac_MKDIR_P=$MKDIR_P
11533 case $MKDIR_P in
11534 [\\/$]* | ?:[\\/]* ) ;;
11535 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11536 esac
11537 _ACEOF
11538
11539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11540 # If the template does not know about datarootdir, expand it.
11541 # FIXME: This hack should be removed a few years after 2.60.
11542 ac_datarootdir_hack=; ac_datarootdir_seen=
11543 ac_sed_dataroot='
11544 /datarootdir/ {
11545 p
11546 q
11547 }
11548 /@datadir@/p
11549 /@docdir@/p
11550 /@infodir@/p
11551 /@localedir@/p
11552 /@mandir@/p'
11553 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11554 *datarootdir*) ac_datarootdir_seen=yes;;
11555 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11557 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11558 _ACEOF
11559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11560 ac_datarootdir_hack='
11561 s&@datadir@&$datadir&g
11562 s&@docdir@&$docdir&g
11563 s&@infodir@&$infodir&g
11564 s&@localedir@&$localedir&g
11565 s&@mandir@&$mandir&g
11566 s&\\\${datarootdir}&$datarootdir&g' ;;
11567 esac
11568 _ACEOF
11569
11570 # Neutralize VPATH when `$srcdir' = `.'.
11571 # Shell code in configure.ac might set extrasub.
11572 # FIXME: do we really want to maintain this feature?
11573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11574 ac_sed_extra="$ac_vpsub
11575 $extrasub
11576 _ACEOF
11577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11578 :t
11579 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11580 s|@configure_input@|$ac_sed_conf_input|;t t
11581 s&@top_builddir@&$ac_top_builddir_sub&;t t
11582 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11583 s&@srcdir@&$ac_srcdir&;t t
11584 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11585 s&@top_srcdir@&$ac_top_srcdir&;t t
11586 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11587 s&@builddir@&$ac_builddir&;t t
11588 s&@abs_builddir@&$ac_abs_builddir&;t t
11589 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11590 s&@INSTALL@&$ac_INSTALL&;t t
11591 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11592 $ac_datarootdir_hack
11593 "
11594 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11596
11597 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11598 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11599 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11601 which seems to be undefined. Please make sure it is defined" >&5
11602 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11603 which seems to be undefined. Please make sure it is defined" >&2;}
11604
11605 rm -f "$tmp/stdin"
11606 case $ac_file in
11607 -) cat "$tmp/out" && rm -f "$tmp/out";;
11608 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11609 esac \
11610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11611 ;;
11612 :H)
11613 #
11614 # CONFIG_HEADER
11615 #
11616 if test x"$ac_file" != x-; then
11617 {
11618 $as_echo "/* $configure_input */" \
11619 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11620 } >"$tmp/config.h" \
11621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11622 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11624 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11625 else
11626 rm -f "$ac_file"
11627 mv "$tmp/config.h" "$ac_file" \
11628 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11629 fi
11630 else
11631 $as_echo "/* $configure_input */" \
11632 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11633 || as_fn_error $? "could not create -" "$LINENO" 5
11634 fi
11635 ;;
11636
11637
11638 esac
11639
11640 done # for ac_tag
11641
11642
11643 as_fn_exit 0
11644 _ACEOF
11645 ac_clean_files=$ac_clean_files_save
11646
11647 test $ac_write_fail = 0 ||
11648 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11649
11650
11651 # configure is writing to config.log, and then calls config.status.
11652 # config.status does its own redirection, appending to config.log.
11653 # Unfortunately, on DOS this fails, as config.log is still kept open
11654 # by configure, so config.status won't be able to write to it; its
11655 # output is simply discarded. So we exec the FD to /dev/null,
11656 # effectively closing config.log, so it can be properly (re)opened and
11657 # appended to by config.status. When coming back to configure, we
11658 # need to make the FD available again.
11659 if test "$no_create" != yes; then
11660 ac_cs_success=:
11661 ac_config_status_args=
11662 test "$silent" = yes &&
11663 ac_config_status_args="$ac_config_status_args --quiet"
11664 exec 5>/dev/null
11665 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11666 exec 5>>config.log
11667 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11668 # would make configure fail if this is the last instruction.
11669 $ac_cs_success || as_fn_exit 1
11670 fi
11671 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11673 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11674 fi
11675
11676
11677 if test x$ODIRECT != xyes; then
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11679 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11680 fi
This page took 0.63492 seconds and 6 git commands to generate.