]> sourceware.org Git - lvm2.git/blob - configure
Check whether udev supports built-in blkid.
[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 systemdsystemunitdir
600 udevdir
601 udev_prefix
602 tmpdir
603 kernelvsn
604 missingkernel
605 kerneldir
606 interface
607 DMEVENTD_PIDFILE
608 WRITE_INSTALL
609 UDEV_HAS_BUILTIN_BLKID
610 UDEV_SYNC
611 UDEV_RULES
612 UDEV_PC
613 THIN
614 TESTING
615 STATIC_LINK
616 STATICDIR
617 SNAPSHOTS
618 SELINUX_PC
619 SELINUX_LIBS
620 REPLICATORS
621 READLINE_LIBS
622 RAID
623 PTHREAD_LIBS
624 POOL
625 PKGCONFIG
626 OCFDIR
627 OCF
628 MIRRORS
629 LVM_RELEASE_DATE
630 LVM_RELEASE
631 LVM_PATH
632 LVM_PATCHLEVEL
633 LVM_MINOR
634 LVM_MAJOR
635 LVM_LIBAPI
636 LVM_VERSION
637 LVM1_FALLBACK
638 LVM1
639 LOCALEDIR
640 LIB_SUFFIX
641 LDDEPS
642 JOBS
643 INTL_PACKAGE
644 INTL
645 HAVE_REALTIME
646 HAVE_LIBDL
647 FSADM
648 ELDFLAGS
649 DM_LIB_PATCHLEVEL
650 DM_LIB_VERSION
651 DM_IOCTLS
652 DM_DEVICE_UID
653 DM_DEVICE_MODE
654 DM_DEVICE_GID
655 DM_COMPAT
656 DMEVENTD_PATH
657 DMEVENTD
658 DL_LIBS
659 DEVMAPPER
660 DEFAULT_RUN_DIR
661 DEFAULT_LOCK_DIR
662 DEFAULT_DATA_ALIGNMENT
663 DEFAULT_CACHE_SUBDIR
664 DEFAULT_BACKUP_SUBDIR
665 DEFAULT_ARCHIVE_SUBDIR
666 DEFAULT_SYS_DIR
667 DEBUG
668 COPTIMISE_FLAG
669 CONFDIR
670 CMDLIB
671 CLVMD_PATH
672 CLVMD_CMANAGERS
673 CLVMD
674 CLUSTER
675 CLDWHOLEARCHIVE
676 CLDNOWHOLEARCHIVE
677 CLDFLAGS
678 BUILD_LVMETAD
679 BUILD_DMEVENTD
680 BUILD_CMIRRORD
681 APPLIB
682 MODPROBE_CMD
683 MSGFMT
684 LVM2CMD_LIB
685 LVM2APP_LIB
686 UDEV_LIBS
687 UDEV_CFLAGS
688 CUNIT_LIBS
689 CUNIT_CFLAGS
690 GENPNG
691 GENHTML
692 LCOV
693 SACKPT_LIBS
694 SACKPT_CFLAGS
695 DLM_LIBS
696 DLM_CFLAGS
697 CPG_LIBS
698 CPG_CFLAGS
699 CMAP_LIBS
700 CMAP_CFLAGS
701 CONFDB_LIBS
702 CONFDB_CFLAGS
703 SALCK_LIBS
704 SALCK_CFLAGS
705 QUORUM_LIBS
706 QUORUM_CFLAGS
707 COROSYNC_LIBS
708 COROSYNC_CFLAGS
709 CMAN_LIBS
710 CMAN_CFLAGS
711 PKGCONFIGINIT_LIBS
712 PKGCONFIGINIT_CFLAGS
713 PKG_CONFIG_LIBDIR
714 PKG_CONFIG_PATH
715 PKG_CONFIG
716 POW_LIB
717 LIBOBJS
718 ALLOCA
719 CSCOPE_CMD
720 CFLOW_CMD
721 RANLIB
722 MKDIR_P
723 SET_MAKE
724 LN_S
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 EGREP
729 GREP
730 CPP
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 AWK
739 SED
740 target_os
741 target_vendor
742 target_cpu
743 target
744 host_os
745 host_vendor
746 host_cpu
747 host
748 build_os
749 build_vendor
750 build_cpu
751 build
752 target_alias
753 host_alias
754 build_alias
755 LIBS
756 ECHO_T
757 ECHO_N
758 ECHO_C
759 DEFS
760 mandir
761 localedir
762 libdir
763 psdir
764 pdfdir
765 dvidir
766 htmldir
767 infodir
768 docdir
769 oldincludedir
770 includedir
771 localstatedir
772 sharedstatedir
773 sysconfdir
774 datadir
775 datarootdir
776 libexecdir
777 sbindir
778 bindir
779 program_transform_name
780 prefix
781 exec_prefix
782 PACKAGE_URL
783 PACKAGE_BUGREPORT
784 PACKAGE_STRING
785 PACKAGE_VERSION
786 PACKAGE_TARNAME
787 PACKAGE_NAME
788 PATH_SEPARATOR
789 SHELL'
790 ac_subst_files=''
791 ac_user_opts='
792 enable_option_checking
793 enable_static_link
794 with_user
795 with_group
796 with_device_uid
797 with_device_gid
798 with_device_mode
799 with_device_nodes_on
800 with_default_name_mangling
801 enable_lvm1_fallback
802 with_lvm1
803 with_pool
804 with_cluster
805 with_snapshots
806 with_mirrors
807 with_raid
808 with_replicators
809 with_thin
810 enable_readline
811 enable_realtime
812 enable_ocf
813 with_ocfdir
814 with_clvmd
815 with_clvmd_pidfile
816 enable_cmirrord
817 with_cmirrord_pidfile
818 enable_debug
819 with_optimisation
820 enable_profiling
821 enable_testing
822 enable_valgrind_pool
823 enable_devmapper
824 enable_lvmetad
825 enable_udev_sync
826 enable_udev_rules
827 enable_compat
828 enable_units_compat
829 enable_ioctl
830 enable_o_direct
831 enable_applib
832 enable_cmdlib
833 enable_pkgconfig
834 enable_write_install
835 enable_fsadm
836 enable_dmeventd
837 enable_selinux
838 enable_nls
839 with_localedir
840 with_confdir
841 with_staticdir
842 with_usrlibdir
843 with_usrsbindir
844 with_udev_prefix
845 with_udevdir
846 with_systemdsystemunitdir
847 with_dmeventd_pidfile
848 with_dmeventd_path
849 with_default_run_dir
850 with_default_system_dir
851 with_default_archive_subdir
852 with_default_backup_subdir
853 with_default_cache_subdir
854 with_default_locking_dir
855 with_default_data_alignment
856 with_interface
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CPP
867 PKG_CONFIG
868 PKG_CONFIG_PATH
869 PKG_CONFIG_LIBDIR
870 PKGCONFIGINIT_CFLAGS
871 PKGCONFIGINIT_LIBS
872 CMAN_CFLAGS
873 CMAN_LIBS
874 COROSYNC_CFLAGS
875 COROSYNC_LIBS
876 QUORUM_CFLAGS
877 QUORUM_LIBS
878 SALCK_CFLAGS
879 SALCK_LIBS
880 CONFDB_CFLAGS
881 CONFDB_LIBS
882 CMAP_CFLAGS
883 CMAP_LIBS
884 CPG_CFLAGS
885 CPG_LIBS
886 DLM_CFLAGS
887 DLM_LIBS
888 SACKPT_CFLAGS
889 SACKPT_LIBS
890 CUNIT_CFLAGS
891 CUNIT_LIBS
892 UDEV_CFLAGS
893 UDEV_LIBS'
894
895
896 # Initialize some variables set by options.
897 ac_init_help=
898 ac_init_version=false
899 ac_unrecognized_opts=
900 ac_unrecognized_sep=
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
959
960 # Accept the important Cygnus configure options, so we can diagnose typos.
961
962 case $ac_dashdash$ac_option in
963 --)
964 ac_dashdash=yes ;;
965
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
970
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
975
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
982
983 --config-cache | -C)
984 cache_file=config.cache ;;
985
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
990
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
997
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=no ;;
1013
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1018
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1023
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1039
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1048
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1051 with_gas=yes ;;
1052
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1059
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1064
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 ac_prev=htmldir ;;
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 | --ht=*)
1069 htmldir=$ac_optarg ;;
1070
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1077
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 ac_prev=infodir ;;
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1082
1083 -libdir | --libdir | --libdi | --libd)
1084 ac_prev=libdir ;;
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1087
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1094
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1099
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1106
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 ac_prev=mandir ;;
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1111
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1114 with_fp=no ;;
1115
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1118 no_create=yes ;;
1119
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 no_recursion=yes ;;
1123
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1132
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 ac_prev=prefix ;;
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1137
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1144
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1151
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
1160 -program-transform-name=* | --program-transform-name=* \
1161 | --program-transform-nam=* | --program-transform-na=* \
1162 | --program-transform-n=* | --program-transform-=* \
1163 | --program-transform=* | --program-transfor=* \
1164 | --program-transfo=* | --program-transf=* \
1165 | --program-trans=* | --program-tran=* \
1166 | --progr-tra=* | --program-tr=* | --program-t=*)
1167 program_transform_name=$ac_optarg ;;
1168
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 ac_prev=pdfdir ;;
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1173
1174 -psdir | --psdir | --psdi | --psd | --ps)
1175 ac_prev=psdir ;;
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 psdir=$ac_optarg ;;
1178
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1181 silent=yes ;;
1182
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1188
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1199
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1204
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1209
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1216
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1221
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1224
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1227
1228 -with-* | --with-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=\$ac_optarg ;;
1243
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
1259
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1263
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1270
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1277
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1280 ;;
1281
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1291
1292 *)
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1298 ;;
1299
1300 esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1321 do
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used" >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1352 fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1381 q
1382 }
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)$/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\).*/{
1392 s//\1/
1393 q
1394 }
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1399 fi
1400 else
1401 ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures this package to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1489
1490 cat <<\_ACEOF
1491
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 --target=TARGET configure for building compilers for TARGET [HOST]
1496 _ACEOF
1497 fi
1498
1499 if test -n "$ac_init_help"; then
1500
1501 cat <<\_ACEOF
1502
1503 Optional Features:
1504 --disable-option-checking ignore unrecognized --enable/--with options
1505 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1506 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1507 --enable-static_link use this to link the tools to their libraries
1508 statically (default is dynamic linking
1509 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1510 device-mapper is missing from the kernel
1511 --disable-readline disable readline support
1512 --enable-realtime enable realtime clock support
1513 --enable-ocf enable Open Cluster Framework (OCF) compliant
1514 resource agents
1515 --enable-cmirrord enable the cluster mirror log daemon
1516 --enable-debug enable debugging
1517 --enable-profiling gather gcov profiling data
1518 --enable-testing enable testing targets in the makefile
1519 --enable-valgrind-pool enable valgrind awareness of pools
1520 --disable-devmapper disable LVM2 device-mapper interaction
1521 --enable-lvmetad enable the LVM Metadata Daemon
1522 --enable-udev_sync enable synchronisation with udev processing
1523 --enable-udev_rules install rule files needed for udev synchronisation
1524 --enable-compat enable support for old device-mapper versions
1525 --enable-units-compat enable output compatibility with old versions that
1526 that do not use KiB-style unit suffixes
1527 --disable-driver disable calls to device-mapper in the kernel
1528 --disable-o_direct disable O_DIRECT
1529 --enable-applib build application library
1530 --enable-cmdlib build shared command library
1531 --enable-pkgconfig install pkgconfig support
1532 --enable-write_install install user writable files
1533 --disable-fsadm disable fsadm
1534 --enable-dmeventd enable the device-mapper event daemon
1535 --disable-selinux disable selinux support
1536 --enable-nls enable Native Language Support
1537
1538 Optional Packages:
1539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1541 --with-user=USER set the owner of installed files [[USER=]]
1542 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1543 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1544 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1545 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1546 --with-device-nodes-on=ON
1547 create nodes on resume or create [[ON=resume]]
1548 --with-default-name-mangling=MANGLING
1549 default name mangling: auto/none/hex
1550 [[MANGLING=auto]]
1551 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1552 [[TYPE=internal]]
1553 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1554 [[TYPE=internal]]
1555 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1556 [[TYPE=internal]]
1557 --with-snapshots=TYPE snapshot support: internal/shared/none
1558 [[TYPE=internal]]
1559 --with-mirrors=TYPE mirror support: internal/shared/none
1560 [[TYPE=internal]]
1561 --with-raid=TYPE mirror support: internal/shared/none
1562 [[TYPE=internal]]
1563 --with-replicators=TYPE replicator support: internal/shared/none
1564 [[TYPE=none]]
1565 --with-thin=TYPE thin provisioning support: internal/shared/none
1566 [[TYPE=none]]
1567 --with-ocfdir=DIR install OCF files in DIR
1568 [[PREFIX/lib/ocf/resource.d/lvm2]]
1569 --with-clvmd=TYPE build cluster LVM Daemon
1570 The following cluster manager combinations are valid:
1571 * cman (RHEL5 or equivalent)
1572 * cman,corosync,openais (or selection of them)
1573 * singlenode (localhost only)
1574 * all (autodetect)
1575 * none (disable build)
1576 [TYPE=none]
1577 --with-clvmd-pidfile=PATH
1578 clvmd pidfile [[/var/run/clvmd.pid]]
1579 --with-cmirrord-pidfile=PATH
1580 cmirrord pidfile [[/var/run/cmirrord.pid]]
1581 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1582 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1583 --with-confdir=DIR configuration files in DIR [[/etc]]
1584 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1585 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1586 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1587 --with-udev-prefix=UPREFIX
1588 install udev rule files in UPREFIX [[EPREFIX]]
1589 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1590 --with-systemdsystemunitdir=DIR
1591 systemd service files in DIR
1592 --with-dmeventd-pidfile=PATH
1593 dmeventd pidfile [[/var/run/dmeventd.pid]]
1594 --with-dmeventd-path=PATH
1595 dmeventd path [[EPREFIX/sbin/dmeventd]]
1596 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1597 --with-default-system-dir=DIR
1598 default LVM system directory [[/etc/lvm]]
1599 --with-default-archive-subdir=SUBDIR
1600 default metadata archive subdir [[archive]]
1601 --with-default-backup-subdir=SUBDIR
1602 default metadata backup subdir [[backup]]
1603 --with-default-cache-subdir=SUBDIR
1604 default metadata cache subdir [[cache]]
1605 --with-default-locking-dir=DIR
1606 default locking directory [[/var/lock/lvm]]
1607 --with-default-data-alignment=NUM
1608 set the default data alignment in MiB [[1]]
1609 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1610
1611 Some influential environment variables:
1612 CC C compiler command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1615 nonstandard directory <lib dir>
1616 LIBS libraries to pass to the linker, e.g. -l<library>
1617 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1618 you have headers in a nonstandard directory <include dir>
1619 CPP C preprocessor
1620 PKG_CONFIG path to pkg-config utility
1621 PKG_CONFIG_PATH
1622 directories to add to pkg-config's search path
1623 PKG_CONFIG_LIBDIR
1624 path overriding pkg-config's built-in search path
1625 PKGCONFIGINIT_CFLAGS
1626 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1627 PKGCONFIGINIT_LIBS
1628 linker flags for PKGCONFIGINIT, overriding pkg-config
1629 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1630 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1631 COROSYNC_CFLAGS
1632 C compiler flags for COROSYNC, overriding pkg-config
1633 COROSYNC_LIBS
1634 linker flags for COROSYNC, overriding pkg-config
1635 QUORUM_CFLAGS
1636 C compiler flags for QUORUM, overriding pkg-config
1637 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1638 SALCK_CFLAGS
1639 C compiler flags for SALCK, overriding pkg-config
1640 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1641 CONFDB_CFLAGS
1642 C compiler flags for CONFDB, overriding pkg-config
1643 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1644 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1645 CMAP_LIBS linker flags for CMAP, overriding pkg-config
1646 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1647 CPG_LIBS linker flags for CPG, overriding pkg-config
1648 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1649 DLM_LIBS linker flags for DLM, overriding pkg-config
1650 SACKPT_CFLAGS
1651 C compiler flags for SACKPT, overriding pkg-config
1652 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1653 CUNIT_CFLAGS
1654 C compiler flags for CUNIT, overriding pkg-config
1655 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
1656 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1657 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1658
1659 Use these variables to override the choices made by `configure' or to help
1660 it to find libraries and programs with nonstandard names/locations.
1661
1662 Report bugs to the package provider.
1663 _ACEOF
1664 ac_status=$?
1665 fi
1666
1667 if test "$ac_init_help" = "recursive"; then
1668 # If there are subdirs, report their specific --help.
1669 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1670 test -d "$ac_dir" ||
1671 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1672 continue
1673 ac_builddir=.
1674
1675 case "$ac_dir" in
1676 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1677 *)
1678 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1679 # A ".." for each directory in $ac_dir_suffix.
1680 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1681 case $ac_top_builddir_sub in
1682 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1684 esac ;;
1685 esac
1686 ac_abs_top_builddir=$ac_pwd
1687 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1688 # for backward compatibility:
1689 ac_top_builddir=$ac_top_build_prefix
1690
1691 case $srcdir in
1692 .) # We are building in place.
1693 ac_srcdir=.
1694 ac_top_srcdir=$ac_top_builddir_sub
1695 ac_abs_top_srcdir=$ac_pwd ;;
1696 [\\/]* | ?:[\\/]* ) # Absolute name.
1697 ac_srcdir=$srcdir$ac_dir_suffix;
1698 ac_top_srcdir=$srcdir
1699 ac_abs_top_srcdir=$srcdir ;;
1700 *) # Relative name.
1701 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1702 ac_top_srcdir=$ac_top_build_prefix$srcdir
1703 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1704 esac
1705 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1706
1707 cd "$ac_dir" || { ac_status=$?; continue; }
1708 # Check for guested configure.
1709 if test -f "$ac_srcdir/configure.gnu"; then
1710 echo &&
1711 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1712 elif test -f "$ac_srcdir/configure"; then
1713 echo &&
1714 $SHELL "$ac_srcdir/configure" --help=recursive
1715 else
1716 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1717 fi || ac_status=$?
1718 cd "$ac_pwd" || { ac_status=$?; break; }
1719 done
1720 fi
1721
1722 test -n "$ac_init_help" && exit $ac_status
1723 if $ac_init_version; then
1724 cat <<\_ACEOF
1725 configure
1726 generated by GNU Autoconf 2.66
1727
1728 Copyright (C) 2010 Free Software Foundation, Inc.
1729 This configure script is free software; the Free Software Foundation
1730 gives unlimited permission to copy, distribute and modify it.
1731 _ACEOF
1732 exit
1733 fi
1734
1735 ## ------------------------ ##
1736 ## Autoconf initialization. ##
1737 ## ------------------------ ##
1738
1739 # ac_fn_c_try_compile LINENO
1740 # --------------------------
1741 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_compile ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 rm -f conftest.$ac_objext
1746 if { { ac_try="$ac_compile"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_compile") 2>conftest.err
1754 ac_status=$?
1755 if test -s conftest.err; then
1756 grep -v '^ *+' conftest.err >conftest.er1
1757 cat conftest.er1 >&5
1758 mv -f conftest.er1 conftest.err
1759 fi
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; } && {
1762 test -z "$ac_c_werror_flag" ||
1763 test ! -s conftest.err
1764 } && test -s conftest.$ac_objext; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_compile
1776
1777 # ac_fn_c_try_cpp LINENO
1778 # ----------------------
1779 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_cpp ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_cpp conftest.$ac_ext"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } >/dev/null && {
1799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_cpp
1813
1814 # ac_fn_c_try_link LINENO
1815 # -----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded.
1817 ac_fn_c_try_link ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext conftest$ac_exeext
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest$ac_exeext && {
1840 test "$cross_compiling" = yes ||
1841 $as_test_x conftest$ac_exeext
1842 }; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849 fi
1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852 # interfere with the next link command; also delete a directory that is
1853 # left behind by Apple's compiler. We do this before executing the actions.
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 as_fn_set_status $ac_retval
1857
1858 } # ac_fn_c_try_link
1859
1860 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1861 # -------------------------------------------------------
1862 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1863 # the include files in INCLUDES and setting the cache variable VAR
1864 # accordingly.
1865 ac_fn_c_check_header_mongrel ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if eval "test \"\${$3+set}\"" = set; then :
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval "test \"\${$3+set}\"" = set; then :
1872 $as_echo_n "(cached) " >&6
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 else
1878 # Is the header compilable?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1880 $as_echo_n "checking $2 usability... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 #include <$2>
1885 _ACEOF
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 ac_header_compiler=yes
1888 else
1889 ac_header_compiler=no
1890 fi
1891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1893 $as_echo "$ac_header_compiler" >&6; }
1894
1895 # Is the header present?
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1897 $as_echo_n "checking $2 presence... " >&6; }
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1900 #include <$2>
1901 _ACEOF
1902 if ac_fn_c_try_cpp "$LINENO"; then :
1903 ac_header_preproc=yes
1904 else
1905 ac_header_preproc=no
1906 fi
1907 rm -f conftest.err conftest.$ac_ext
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1909 $as_echo "$ac_header_preproc" >&6; }
1910
1911 # So? What about this header?
1912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1913 yes:no: )
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1915 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1917 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1918 ;;
1919 no:yes:* )
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1921 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1923 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1925 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1927 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 ;;
1931 esac
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval "test \"\${$3+set}\"" = set; then :
1935 $as_echo_n "(cached) " >&6
1936 else
1937 eval "$3=\$ac_header_compiler"
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 fi
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945 } # ac_fn_c_check_header_mongrel
1946
1947 # ac_fn_c_try_run LINENO
1948 # ----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1950 # that executables *can* be run.
1951 ac_fn_c_try_run ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_link") 2>&5
1962 ac_status=$?
1963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1965 { { case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968 esac
1969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970 $as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_try") 2>&5
1972 ac_status=$?
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; }; }; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: program exited with status $ac_status" >&5
1978 $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981 ac_retval=$ac_status
1982 fi
1983 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 as_fn_set_status $ac_retval
1986
1987 } # ac_fn_c_try_run
1988
1989 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1990 # -------------------------------------------------------
1991 # Tests whether HEADER exists and can be compiled using the include files in
1992 # INCLUDES, setting the cache variable VAR accordingly.
1993 ac_fn_c_check_header_compile ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval "test \"\${$3+set}\"" = set; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 eval "$3=yes"
2008 else
2009 eval "$3=no"
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 fi
2013 eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017
2018 } # ac_fn_c_check_header_compile
2019
2020 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021 # ----------------------------------------------------
2022 # Tries to find if the field MEMBER exists in type AGGR, after including
2023 # INCLUDES, setting cache variable VAR accordingly.
2024 ac_fn_c_check_member ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028 $as_echo_n "checking for $2.$3... " >&6; }
2029 if eval "test \"\${$4+set}\"" = set; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033 /* end confdefs.h. */
2034 $5
2035 int
2036 main ()
2037 {
2038 static $2 ac_aggr;
2039 if (ac_aggr.$3)
2040 return 0;
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 eval "$4=yes"
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $5
2051 int
2052 main ()
2053 {
2054 static $2 ac_aggr;
2055 if (sizeof ac_aggr.$3)
2056 return 0;
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$4=yes"
2063 else
2064 eval "$4=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069 fi
2070 eval ac_res=\$$4
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2074
2075 } # ac_fn_c_check_member
2076
2077 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2078 # -------------------------------------------
2079 # Tests whether TYPE exists after having included INCLUDES, setting cache
2080 # variable VAR accordingly.
2081 ac_fn_c_check_type ()
2082 {
2083 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2085 $as_echo_n "checking for $2... " >&6; }
2086 if eval "test \"\${$3+set}\"" = set; then :
2087 $as_echo_n "(cached) " >&6
2088 else
2089 eval "$3=no"
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof ($2))
2097 return 0;
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 if (sizeof (($2)))
2110 return 0;
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116
2117 else
2118 eval "$3=yes"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 fi
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128
2129 } # ac_fn_c_check_type
2130
2131 # ac_fn_c_find_intX_t LINENO BITS VAR
2132 # -----------------------------------
2133 # Finds a signed integer type with width BITS, setting cache variable VAR
2134 # accordingly.
2135 ac_fn_c_find_intX_t ()
2136 {
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2139 $as_echo_n "checking for int$2_t... " >&6; }
2140 if eval "test \"\${$3+set}\"" = set; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 eval "$3=no"
2144 # Order is important - never check a type that is potentially smaller
2145 # than half of the expected target width.
2146 for ac_type in int$2_t 'int' 'long int' \
2147 'long long int' 'short int' 'signed char'; do
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $ac_includes_default
2151 enum { N = $2 / 2 - 1 };
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2156 test_array [0] = 0
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 $ac_includes_default
2166 enum { N = $2 / 2 - 1 };
2167 int
2168 main ()
2169 {
2170 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2171 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2172 test_array [0] = 0
2173
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179
2180 else
2181 case $ac_type in #(
2182 int$2_t) :
2183 eval "$3=yes" ;; #(
2184 *) :
2185 eval "$3=\$ac_type" ;;
2186 esac
2187 fi
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191 if eval test \"x\$"$3"\" = x"no"; then :
2192
2193 else
2194 break
2195 fi
2196 done
2197 fi
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2202
2203 } # ac_fn_c_find_intX_t
2204
2205 # ac_fn_c_find_uintX_t LINENO BITS VAR
2206 # ------------------------------------
2207 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2208 # accordingly.
2209 ac_fn_c_find_uintX_t ()
2210 {
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2213 $as_echo_n "checking for uint$2_t... " >&6; }
2214 if eval "test \"\${$3+set}\"" = set; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 eval "$3=no"
2218 # Order is important - never check a type that is potentially smaller
2219 # than half of the expected target width.
2220 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2221 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2223 /* end confdefs.h. */
2224 $ac_includes_default
2225 int
2226 main ()
2227 {
2228 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2229 test_array [0] = 0
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 case $ac_type in #(
2237 uint$2_t) :
2238 eval "$3=yes" ;; #(
2239 *) :
2240 eval "$3=\$ac_type" ;;
2241 esac
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 if eval test \"x\$"$3"\" = x"no"; then :
2245
2246 else
2247 break
2248 fi
2249 done
2250 fi
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255
2256 } # ac_fn_c_find_uintX_t
2257
2258 # ac_fn_c_check_func LINENO FUNC VAR
2259 # ----------------------------------
2260 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2261 ac_fn_c_check_func ()
2262 {
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2265 $as_echo_n "checking for $2... " >&6; }
2266 if eval "test \"\${$3+set}\"" = set; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2271 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2273 #define $2 innocuous_$2
2274
2275 /* System header to define __stub macros and hopefully few prototypes,
2276 which can conflict with char $2 (); below.
2277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2278 <limits.h> exists even on freestanding compilers. */
2279
2280 #ifdef __STDC__
2281 # include <limits.h>
2282 #else
2283 # include <assert.h>
2284 #endif
2285
2286 #undef $2
2287
2288 /* Override any GCC internal prototype to avoid an error.
2289 Use char because int might match the return type of a GCC
2290 builtin and then its argument prototype would still apply. */
2291 #ifdef __cplusplus
2292 extern "C"
2293 #endif
2294 char $2 ();
2295 /* The GNU C library defines this for functions which it implements
2296 to always fail with ENOSYS. Some functions are actually named
2297 something starting with __ and the normal name is an alias. */
2298 #if defined __stub_$2 || defined __stub___$2
2299 choke me
2300 #endif
2301
2302 int
2303 main ()
2304 {
2305 return $2 ();
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_link "$LINENO"; then :
2311 eval "$3=yes"
2312 else
2313 eval "$3=no"
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext \
2316 conftest$ac_exeext conftest.$ac_ext
2317 fi
2318 eval ac_res=\$$3
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2320 $as_echo "$ac_res" >&6; }
2321 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322
2323 } # ac_fn_c_check_func
2324 cat >config.log <<_ACEOF
2325 This file contains any messages produced by compilers while
2326 running configure, to aid debugging if configure makes a mistake.
2327
2328 It was created by $as_me, which was
2329 generated by GNU Autoconf 2.66. Invocation command line was
2330
2331 $ $0 $@
2332
2333 _ACEOF
2334 exec 5>>config.log
2335 {
2336 cat <<_ASUNAME
2337 ## --------- ##
2338 ## Platform. ##
2339 ## --------- ##
2340
2341 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2342 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2343 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2344 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2345 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2346
2347 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2348 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2349
2350 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2351 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2352 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2353 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2354 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2355 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2356 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2357
2358 _ASUNAME
2359
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 $as_echo "PATH: $as_dir"
2366 done
2367 IFS=$as_save_IFS
2368
2369 } >&5
2370
2371 cat >&5 <<_ACEOF
2372
2373
2374 ## ----------- ##
2375 ## Core tests. ##
2376 ## ----------- ##
2377
2378 _ACEOF
2379
2380
2381 # Keep a trace of the command line.
2382 # Strip out --no-create and --no-recursion so they do not pile up.
2383 # Strip out --silent because we don't want to record it for future runs.
2384 # Also quote any args containing shell meta-characters.
2385 # Make two passes to allow for proper duplicate-argument suppression.
2386 ac_configure_args=
2387 ac_configure_args0=
2388 ac_configure_args1=
2389 ac_must_keep_next=false
2390 for ac_pass in 1 2
2391 do
2392 for ac_arg
2393 do
2394 case $ac_arg in
2395 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2396 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2397 | -silent | --silent | --silen | --sile | --sil)
2398 continue ;;
2399 *\'*)
2400 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2401 esac
2402 case $ac_pass in
2403 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2404 2)
2405 as_fn_append ac_configure_args1 " '$ac_arg'"
2406 if test $ac_must_keep_next = true; then
2407 ac_must_keep_next=false # Got value, back to normal.
2408 else
2409 case $ac_arg in
2410 *=* | --config-cache | -C | -disable-* | --disable-* \
2411 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2412 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2413 | -with-* | --with-* | -without-* | --without-* | --x)
2414 case "$ac_configure_args0 " in
2415 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2416 esac
2417 ;;
2418 -* ) ac_must_keep_next=true ;;
2419 esac
2420 fi
2421 as_fn_append ac_configure_args " '$ac_arg'"
2422 ;;
2423 esac
2424 done
2425 done
2426 { ac_configure_args0=; unset ac_configure_args0;}
2427 { ac_configure_args1=; unset ac_configure_args1;}
2428
2429 # When interrupted or exit'd, cleanup temporary files, and complete
2430 # config.log. We remove comments because anyway the quotes in there
2431 # would cause problems or look ugly.
2432 # WARNING: Use '\'' to represent an apostrophe within the trap.
2433 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2434 trap 'exit_status=$?
2435 # Save into config.log some information that might help in debugging.
2436 {
2437 echo
2438
2439 $as_echo "## ---------------- ##
2440 ## Cache variables. ##
2441 ## ---------------- ##"
2442 echo
2443 # The following way of writing the cache mishandles newlines in values,
2444 (
2445 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2446 eval ac_val=\$$ac_var
2447 case $ac_val in #(
2448 *${as_nl}*)
2449 case $ac_var in #(
2450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2451 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2452 esac
2453 case $ac_var in #(
2454 _ | IFS | as_nl) ;; #(
2455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2456 *) { eval $ac_var=; unset $ac_var;} ;;
2457 esac ;;
2458 esac
2459 done
2460 (set) 2>&1 |
2461 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2462 *${as_nl}ac_space=\ *)
2463 sed -n \
2464 "s/'\''/'\''\\\\'\'''\''/g;
2465 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2466 ;; #(
2467 *)
2468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469 ;;
2470 esac |
2471 sort
2472 )
2473 echo
2474
2475 $as_echo "## ----------------- ##
2476 ## Output variables. ##
2477 ## ----------------- ##"
2478 echo
2479 for ac_var in $ac_subst_vars
2480 do
2481 eval ac_val=\$$ac_var
2482 case $ac_val in
2483 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2484 esac
2485 $as_echo "$ac_var='\''$ac_val'\''"
2486 done | sort
2487 echo
2488
2489 if test -n "$ac_subst_files"; then
2490 $as_echo "## ------------------- ##
2491 ## File substitutions. ##
2492 ## ------------------- ##"
2493 echo
2494 for ac_var in $ac_subst_files
2495 do
2496 eval ac_val=\$$ac_var
2497 case $ac_val in
2498 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2499 esac
2500 $as_echo "$ac_var='\''$ac_val'\''"
2501 done | sort
2502 echo
2503 fi
2504
2505 if test -s confdefs.h; then
2506 $as_echo "## ----------- ##
2507 ## confdefs.h. ##
2508 ## ----------- ##"
2509 echo
2510 cat confdefs.h
2511 echo
2512 fi
2513 test "$ac_signal" != 0 &&
2514 $as_echo "$as_me: caught signal $ac_signal"
2515 $as_echo "$as_me: exit $exit_status"
2516 } >&5
2517 rm -f core *.core core.conftest.* &&
2518 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2519 exit $exit_status
2520 ' 0
2521 for ac_signal in 1 2 13 15; do
2522 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2523 done
2524 ac_signal=0
2525
2526 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2527 rm -f -r conftest* confdefs.h
2528
2529 $as_echo "/* confdefs.h */" > confdefs.h
2530
2531 # Predefined preprocessor variables.
2532
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_NAME "$PACKAGE_NAME"
2535 _ACEOF
2536
2537 cat >>confdefs.h <<_ACEOF
2538 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2539 _ACEOF
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_STRING "$PACKAGE_STRING"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_URL "$PACKAGE_URL"
2555 _ACEOF
2556
2557
2558 # Let the site file select an alternate cache file if it wants to.
2559 # Prefer an explicitly selected file to automatically selected ones.
2560 ac_site_file1=NONE
2561 ac_site_file2=NONE
2562 if test -n "$CONFIG_SITE"; then
2563 # We do not want a PATH search for config.site.
2564 case $CONFIG_SITE in #((
2565 -*) ac_site_file1=./$CONFIG_SITE;;
2566 */*) ac_site_file1=$CONFIG_SITE;;
2567 *) ac_site_file1=./$CONFIG_SITE;;
2568 esac
2569 elif test "x$prefix" != xNONE; then
2570 ac_site_file1=$prefix/share/config.site
2571 ac_site_file2=$prefix/etc/config.site
2572 else
2573 ac_site_file1=$ac_default_prefix/share/config.site
2574 ac_site_file2=$ac_default_prefix/etc/config.site
2575 fi
2576 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2577 do
2578 test "x$ac_site_file" = xNONE && continue
2579 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2581 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2582 sed 's/^/| /' "$ac_site_file" >&5
2583 . "$ac_site_file" \
2584 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 as_fn_error $? "failed to load site script $ac_site_file
2587 See \`config.log' for more details" "$LINENO" 5; }
2588 fi
2589 done
2590
2591 if test -r "$cache_file"; then
2592 # Some versions of bash will fail to source /dev/null (special files
2593 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2594 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2596 $as_echo "$as_me: loading cache $cache_file" >&6;}
2597 case $cache_file in
2598 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2599 *) . "./$cache_file";;
2600 esac
2601 fi
2602 else
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2604 $as_echo "$as_me: creating cache $cache_file" >&6;}
2605 >$cache_file
2606 fi
2607
2608 as_fn_append ac_header_list " stdlib.h"
2609 as_fn_append ac_header_list " unistd.h"
2610 as_fn_append ac_header_list " sys/param.h"
2611 # Check that the precious variables saved in the cache have kept the same
2612 # value.
2613 ac_cache_corrupted=false
2614 for ac_var in $ac_precious_vars; do
2615 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2616 eval ac_new_set=\$ac_env_${ac_var}_set
2617 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2618 eval ac_new_val=\$ac_env_${ac_var}_value
2619 case $ac_old_set,$ac_new_set in
2620 set,)
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2623 ac_cache_corrupted=: ;;
2624 ,set)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2627 ac_cache_corrupted=: ;;
2628 ,);;
2629 *)
2630 if test "x$ac_old_val" != "x$ac_new_val"; then
2631 # differences in whitespace do not lead to failure.
2632 ac_old_val_w=`echo x $ac_old_val`
2633 ac_new_val_w=`echo x $ac_new_val`
2634 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2636 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2637 ac_cache_corrupted=:
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2640 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2641 eval $ac_var=\$ac_old_val
2642 fi
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2644 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2646 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2647 fi;;
2648 esac
2649 # Pass precious variables to config.status.
2650 if test "$ac_new_set" = set; then
2651 case $ac_new_val in
2652 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 *) ac_arg=$ac_var=$ac_new_val ;;
2654 esac
2655 case " $ac_configure_args " in
2656 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2657 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2658 esac
2659 fi
2660 done
2661 if $ac_cache_corrupted; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2665 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2666 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2667 fi
2668 ## -------------------- ##
2669 ## Main body of script. ##
2670 ## -------------------- ##
2671
2672 ac_ext=c
2673 ac_cpp='$CPP $CPPFLAGS'
2674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2677
2678
2679
2680 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2681
2682
2683 ################################################################################
2684 ac_aux_dir=
2685 for ac_dir in autoconf "$srcdir"/autoconf; do
2686 if test -f "$ac_dir/install-sh"; then
2687 ac_aux_dir=$ac_dir
2688 ac_install_sh="$ac_aux_dir/install-sh -c"
2689 break
2690 elif test -f "$ac_dir/install.sh"; then
2691 ac_aux_dir=$ac_dir
2692 ac_install_sh="$ac_aux_dir/install.sh -c"
2693 break
2694 elif test -f "$ac_dir/shtool"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/shtool install -c"
2697 break
2698 fi
2699 done
2700 if test -z "$ac_aux_dir"; then
2701 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2702 fi
2703
2704 # These three variables are undocumented and unsupported,
2705 # and are intended to be withdrawn in a future Autoconf release.
2706 # They can cause serious problems if a builder's source tree is in a directory
2707 # whose full name contains unusual characters.
2708 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2709 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2710 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2711
2712
2713
2714 ################################################################################
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if test "${ac_cv_build+set}" = set; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 ac_build_alias=$build_alias
2725 test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x &&
2728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2731
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2738 esac
2739 build=$ac_cv_build
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_build
2742 shift
2743 build_cpu=$1
2744 build_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 build_os=$*
2749 IFS=$ac_save_IFS
2750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2751
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if test "${ac_cv_host+set}" = set; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
2760 else
2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2763 fi
2764
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2768 case $ac_cv_host in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2771 esac
2772 host=$ac_cv_host
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_host
2775 shift
2776 host_cpu=$1
2777 host_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 host_os=$*
2782 IFS=$ac_save_IFS
2783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2784
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2787 $as_echo_n "checking target system type... " >&6; }
2788 if test "${ac_cv_target+set}" = set; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test "x$target_alias" = x; then
2792 ac_cv_target=$ac_cv_host
2793 else
2794 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2796 fi
2797
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2800 $as_echo "$ac_cv_target" >&6; }
2801 case $ac_cv_target in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2804 esac
2805 target=$ac_cv_target
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_target
2808 shift
2809 target_cpu=$1
2810 target_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 target_os=$*
2815 IFS=$ac_save_IFS
2816 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2817
2818
2819 # The aliases save the names the user supplied, while $host etc.
2820 # will get canonicalized.
2821 test -n "$target_alias" &&
2822 test "$program_prefix$program_suffix$program_transform_name" = \
2823 NONENONEs,x,x, &&
2824 program_prefix=${target_alias}-
2825
2826 case "$host_os" in
2827 linux*)
2828 CFLAGS="$CFLAGS"
2829 COPTIMISE_FLAG="-O2"
2830 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2831 ELDFLAGS="-Wl,--export-dynamic"
2832 # FIXME Generate list and use --dynamic-list=.dlopen.sym
2833 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2834 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2835 LDDEPS="$LDDEPS .export.sym"
2836 LIB_SUFFIX=so
2837 DEVMAPPER=yes
2838 LVMETAD=no
2839 ODIRECT=yes
2840 DM_IOCTLS=yes
2841 SELINUX=yes
2842 CLUSTER=internal
2843 FSADM=yes
2844 ;;
2845 darwin*)
2846 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2847 COPTIMISE_FLAG="-O2"
2848 CLDFLAGS="$CLDFLAGS"
2849 ELDFLAGS=
2850 CLDWHOLEARCHIVE="-all_load"
2851 CLDNOWHOLEARCHIVE=
2852 LIB_SUFFIX=dylib
2853 DEVMAPPER=yes
2854 ODIRECT=no
2855 DM_IOCTLS=no
2856 SELINUX=no
2857 CLUSTER=none
2858 FSADM=no
2859 ;;
2860 esac
2861
2862 ################################################################################
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2864 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2865 if test "${ac_cv_path_SED+set}" = set; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2869 for ac_i in 1 2 3 4 5 6 7; do
2870 ac_script="$ac_script$as_nl$ac_script"
2871 done
2872 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2873 { ac_script=; unset ac_script;}
2874 if test -z "$SED"; then
2875 ac_path_SED_found=false
2876 # Loop through the user's path and test for each of PROGNAME-LIST
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_prog in sed gsed; do
2883 for ac_exec_ext in '' $ac_executable_extensions; do
2884 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2885 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2886 # Check for GNU ac_path_SED and select it if it is found.
2887 # Check for GNU $ac_path_SED
2888 case `"$ac_path_SED" --version 2>&1` in
2889 *GNU*)
2890 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2891 *)
2892 ac_count=0
2893 $as_echo_n 0123456789 >"conftest.in"
2894 while :
2895 do
2896 cat "conftest.in" "conftest.in" >"conftest.tmp"
2897 mv "conftest.tmp" "conftest.in"
2898 cp "conftest.in" "conftest.nl"
2899 $as_echo '' >> "conftest.nl"
2900 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2901 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2902 as_fn_arith $ac_count + 1 && ac_count=$as_val
2903 if test $ac_count -gt ${ac_path_SED_max-0}; then
2904 # Best one so far, save it but keep looking for a better one
2905 ac_cv_path_SED="$ac_path_SED"
2906 ac_path_SED_max=$ac_count
2907 fi
2908 # 10*(2^10) chars as input seems more than enough
2909 test $ac_count -gt 10 && break
2910 done
2911 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2912 esac
2913
2914 $ac_path_SED_found && break 3
2915 done
2916 done
2917 done
2918 IFS=$as_save_IFS
2919 if test -z "$ac_cv_path_SED"; then
2920 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2921 fi
2922 else
2923 ac_cv_path_SED=$SED
2924 fi
2925
2926 fi
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2928 $as_echo "$ac_cv_path_SED" >&6; }
2929 SED="$ac_cv_path_SED"
2930 rm -f conftest.sed
2931
2932 for ac_prog in gawk mawk nawk awk
2933 do
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy $ac_prog; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if test "${ac_cv_prog_AWK+set}" = set; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$AWK"; then
2942 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2946 do
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_AWK="$ac_prog"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 fi
2960 fi
2961 AWK=$ac_cv_prog_AWK
2962 if test -n "$AWK"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2964 $as_echo "$AWK" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2968 fi
2969
2970
2971 test -n "$AWK" && break
2972 done
2973
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2981 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983 $as_echo_n "checking for $ac_word... " >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 else
2990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991 for as_dir in $PATH
2992 do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001 done
3002 done
3003 IFS=$as_save_IFS
3004
3005 fi
3006 fi
3007 CC=$ac_cv_prog_CC
3008 if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010 $as_echo "$CC" >&6; }
3011 else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013 $as_echo "no" >&6; }
3014 fi
3015
3016
3017 fi
3018 if test -z "$ac_cv_prog_CC"; then
3019 ac_ct_CC=$CC
3020 # Extract the first word of "gcc", so it can be a program name with args.
3021 set dummy gcc; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$ac_ct_CC"; then
3028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_ac_ct_CC="gcc"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3048 if test -n "$ac_ct_CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3050 $as_echo "$ac_ct_CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056 if test "x$ac_ct_CC" = x; then
3057 CC=""
3058 else
3059 case $cross_compiling:$ac_tool_warned in
3060 yes:)
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3063 ac_tool_warned=yes ;;
3064 esac
3065 CC=$ac_ct_CC
3066 fi
3067 else
3068 CC="$ac_cv_prog_CC"
3069 fi
3070
3071 if test -z "$CC"; then
3072 if test -n "$ac_tool_prefix"; then
3073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3074 set dummy ${ac_tool_prefix}cc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if test "${ac_cv_prog_CC+set}" = set; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$CC"; then
3081 ac_cv_prog_CC="$CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_CC="${ac_tool_prefix}cc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 CC=$ac_cv_prog_CC
3101 if test -n "$CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3103 $as_echo "$CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109
3110 fi
3111 fi
3112 if test -z "$CC"; then
3113 # Extract the first word of "cc", so it can be a program name with args.
3114 set dummy cc; ac_word=$2
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116 $as_echo_n "checking for $ac_word... " >&6; }
3117 if test "${ac_cv_prog_CC+set}" = set; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 if test -n "$CC"; then
3121 ac_cv_prog_CC="$CC" # Let the user override the test.
3122 else
3123 ac_prog_rejected=no
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3132 ac_prog_rejected=yes
3133 continue
3134 fi
3135 ac_cv_prog_CC="cc"
3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 break 2
3138 fi
3139 done
3140 done
3141 IFS=$as_save_IFS
3142
3143 if test $ac_prog_rejected = yes; then
3144 # We found a bogon in the path, so make sure we never use it.
3145 set dummy $ac_cv_prog_CC
3146 shift
3147 if test $# != 0; then
3148 # We chose a different compiler from the bogus one.
3149 # However, it has the same basename, so the bogon will be chosen
3150 # first if we set CC to just the basename; use the full file name.
3151 shift
3152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3153 fi
3154 fi
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167 fi
3168 if test -z "$CC"; then
3169 if test -n "$ac_tool_prefix"; then
3170 for ac_prog in cl.exe
3171 do
3172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if test "${ac_cv_prog_CC+set}" = set; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3189 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193 done
3194 done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209 test -n "$CC" && break
3210 done
3211 fi
3212 if test -z "$CC"; then
3213 ac_ct_CC=$CC
3214 for ac_prog in cl.exe
3215 do
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$ac_ct_CC"; then
3224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_ac_ct_CC="$ac_prog"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3244 if test -n "$ac_ct_CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3246 $as_echo "$ac_ct_CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 test -n "$ac_ct_CC" && break
3254 done
3255
3256 if test "x$ac_ct_CC" = x; then
3257 CC=""
3258 else
3259 case $cross_compiling:$ac_tool_warned in
3260 yes:)
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 ac_tool_warned=yes ;;
3264 esac
3265 CC=$ac_ct_CC
3266 fi
3267 fi
3268
3269 fi
3270
3271
3272 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3274 as_fn_error $? "no acceptable C compiler found in \$PATH
3275 See \`config.log' for more details" "$LINENO" 5; }
3276
3277 # Provide some information about the compiler.
3278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3279 set X $ac_compile
3280 ac_compiler=$2
3281 for ac_option in --version -v -V -qversion; do
3282 { { ac_try="$ac_compiler $ac_option >&5"
3283 case "(($ac_try" in
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3286 esac
3287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3288 $as_echo "$ac_try_echo"; } >&5
3289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3290 ac_status=$?
3291 if test -s conftest.err; then
3292 sed '10a\
3293 ... rest of stderr output deleted ...
3294 10q' conftest.err >conftest.er1
3295 cat conftest.er1 >&5
3296 fi
3297 rm -f conftest.er1 conftest.err
3298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299 test $ac_status = 0; }
3300 done
3301
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3304
3305 int
3306 main ()
3307 {
3308
3309 ;
3310 return 0;
3311 }
3312 _ACEOF
3313 ac_clean_files_save=$ac_clean_files
3314 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3315 # Try to create an executable without -o first, disregard a.out.
3316 # It will help us diagnose broken compilers, and finding out an intuition
3317 # of exeext.
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3319 $as_echo_n "checking whether the C compiler works... " >&6; }
3320 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3321
3322 # The possible output files:
3323 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3324
3325 ac_rmfiles=
3326 for ac_file in $ac_files
3327 do
3328 case $ac_file in
3329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3330 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3331 esac
3332 done
3333 rm -f $ac_rmfiles
3334
3335 if { { ac_try="$ac_link_default"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_link_default") 2>&5
3343 ac_status=$?
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
3346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3348 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3349 # so that the user can short-circuit this test for compilers unknown to
3350 # Autoconf.
3351 for ac_file in $ac_files ''
3352 do
3353 test -f "$ac_file" || continue
3354 case $ac_file in
3355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3356 ;;
3357 [ab].out )
3358 # We found the default executable, but exeext='' is most
3359 # certainly right.
3360 break;;
3361 *.* )
3362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3363 then :; else
3364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3365 fi
3366 # We set ac_cv_exeext here because the later test for it is not
3367 # safe: cross compilers may not add the suffix if given an `-o'
3368 # argument, so we may need to know it at that point already.
3369 # Even if this section looks crufty: it has the advantage of
3370 # actually working.
3371 break;;
3372 * )
3373 break;;
3374 esac
3375 done
3376 test "$ac_cv_exeext" = no && ac_cv_exeext=
3377
3378 else
3379 ac_file=''
3380 fi
3381 if test -z "$ac_file"; then :
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 $as_echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3386
3387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3389 as_fn_error 77 "C compiler cannot create executables
3390 See \`config.log' for more details" "$LINENO" 5; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3393 $as_echo "yes" >&6; }
3394 fi
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3396 $as_echo_n "checking for C compiler default output file name... " >&6; }
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3398 $as_echo "$ac_file" >&6; }
3399 ac_exeext=$ac_cv_exeext
3400
3401 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3402 ac_clean_files=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3404 $as_echo_n "checking for suffix of executables... " >&6; }
3405 if { { ac_try="$ac_link"
3406 case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_link") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; then :
3416 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3417 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3418 # work properly (i.e., refer to `conftest.exe'), while it won't with
3419 # `rm'.
3420 for ac_file in conftest.exe conftest conftest.*; do
3421 test -f "$ac_file" || continue
3422 case $ac_file in
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425 break;;
3426 * ) break;;
3427 esac
3428 done
3429 else
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 fi
3435 rm -f conftest conftest$ac_cv_exeext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3437 $as_echo "$ac_cv_exeext" >&6; }
3438
3439 rm -f conftest.$ac_ext
3440 EXEEXT=$ac_cv_exeext
3441 ac_exeext=$EXEEXT
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444 #include <stdio.h>
3445 int
3446 main ()
3447 {
3448 FILE *f = fopen ("conftest.out", "w");
3449 return ferror (f) || fclose (f) != 0;
3450
3451 ;
3452 return 0;
3453 }
3454 _ACEOF
3455 ac_clean_files="$ac_clean_files conftest.out"
3456 # Check that the compiler produces executables we can run. If not, either
3457 # the compiler is broken, or we cross compile.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3459 $as_echo_n "checking whether we are cross compiling... " >&6; }
3460 if test "$cross_compiling" != yes; then
3461 { { ac_try="$ac_link"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3467 $as_echo "$ac_try_echo"; } >&5
3468 (eval "$ac_link") 2>&5
3469 ac_status=$?
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 if { ac_try='./conftest$ac_cv_exeext'
3473 { { case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3478 $as_echo "$ac_try_echo"; } >&5
3479 (eval "$ac_try") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }; }; then
3483 cross_compiling=no
3484 else
3485 if test "$cross_compiling" = maybe; then
3486 cross_compiling=yes
3487 else
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "cannot run C compiled programs.
3491 If you meant to cross compile, use \`--host'.
3492 See \`config.log' for more details" "$LINENO" 5; }
3493 fi
3494 fi
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3497 $as_echo "$cross_compiling" >&6; }
3498
3499 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3500 ac_clean_files=$ac_clean_files_save
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3502 $as_echo_n "checking for suffix of object files... " >&6; }
3503 if test "${ac_cv_objext+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3508
3509 int
3510 main ()
3511 {
3512
3513 ;
3514 return 0;
3515 }
3516 _ACEOF
3517 rm -f conftest.o conftest.obj
3518 if { { ac_try="$ac_compile"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compile") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 for ac_file in conftest.o conftest.obj conftest.*; do
3530 test -f "$ac_file" || continue;
3531 case $ac_file in
3532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3534 break;;
3535 esac
3536 done
3537 else
3538 $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot compute suffix of object files: cannot compile
3544 See \`config.log' for more details" "$LINENO" 5; }
3545 fi
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3547 fi
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3551 ac_objext=$OBJEXT
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3554 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563 #ifndef __GNUC__
3564 choke me
3565 #endif
3566
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 if ac_fn_c_try_compile "$LINENO"; then :
3572 ac_compiler_gnu=yes
3573 else
3574 ac_compiler_gnu=no
3575 fi
3576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3578
3579 fi
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3581 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3582 if test $ac_compiler_gnu = yes; then
3583 GCC=yes
3584 else
3585 GCC=
3586 fi
3587 ac_test_CFLAGS=${CFLAGS+set}
3588 ac_save_CFLAGS=$CFLAGS
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3590 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3591 if test "${ac_cv_prog_cc_g+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 ac_save_c_werror_flag=$ac_c_werror_flag
3595 ac_c_werror_flag=yes
3596 ac_cv_prog_cc_g=no
3597 CFLAGS="-g"
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600
3601 int
3602 main ()
3603 {
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_cv_prog_cc_g=yes
3611 else
3612 CFLAGS=""
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3615
3616 int
3617 main ()
3618 {
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625
3626 else
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3628 CFLAGS="-g"
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631
3632 int
3633 main ()
3634 {
3635
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_g=yes
3642 fi
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 fi
3647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 ac_c_werror_flag=$ac_save_c_werror_flag
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3651 $as_echo "$ac_cv_prog_cc_g" >&6; }
3652 if test "$ac_test_CFLAGS" = set; then
3653 CFLAGS=$ac_save_CFLAGS
3654 elif test $ac_cv_prog_cc_g = yes; then
3655 if test "$GCC" = yes; then
3656 CFLAGS="-g -O2"
3657 else
3658 CFLAGS="-g"
3659 fi
3660 else
3661 if test "$GCC" = yes; then
3662 CFLAGS="-O2"
3663 else
3664 CFLAGS=
3665 fi
3666 fi
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3668 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3669 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 ac_cv_prog_cc_c89=no
3673 ac_save_CC=$CC
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676 #include <stdarg.h>
3677 #include <stdio.h>
3678 #include <sys/types.h>
3679 #include <sys/stat.h>
3680 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3681 struct buf { int x; };
3682 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3683 static char *e (p, i)
3684 char **p;
3685 int i;
3686 {
3687 return p[i];
3688 }
3689 static char *f (char * (*g) (char **, int), char **p, ...)
3690 {
3691 char *s;
3692 va_list v;
3693 va_start (v,p);
3694 s = g (p, va_arg (v,int));
3695 va_end (v);
3696 return s;
3697 }
3698
3699 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3700 function prototypes and stuff, but not '\xHH' hex character constants.
3701 These don't provoke an error unfortunately, instead are silently treated
3702 as 'x'. The following induces an error, until -std is added to get
3703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3704 array size at least. It's necessary to write '\x00'==0 to get something
3705 that's true only with -std. */
3706 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3707
3708 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3709 inside strings and character constants. */
3710 #define FOO(x) 'x'
3711 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3712
3713 int test (int i, double x);
3714 struct s1 {int (*f) (int a);};
3715 struct s2 {int (*f) (double a);};
3716 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3717 int argc;
3718 char **argv;
3719 int
3720 main ()
3721 {
3722 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3723 ;
3724 return 0;
3725 }
3726 _ACEOF
3727 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3729 do
3730 CC="$ac_save_CC $ac_arg"
3731 if ac_fn_c_try_compile "$LINENO"; then :
3732 ac_cv_prog_cc_c89=$ac_arg
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext
3735 test "x$ac_cv_prog_cc_c89" != "xno" && break
3736 done
3737 rm -f conftest.$ac_ext
3738 CC=$ac_save_CC
3739
3740 fi
3741 # AC_CACHE_VAL
3742 case "x$ac_cv_prog_cc_c89" in
3743 x)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3745 $as_echo "none needed" >&6; } ;;
3746 xno)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3748 $as_echo "unsupported" >&6; } ;;
3749 *)
3750 CC="$CC $ac_cv_prog_cc_c89"
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3752 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3753 esac
3754 if test "x$ac_cv_prog_cc_c89" != xno; then :
3755
3756 fi
3757
3758 ac_ext=c
3759 ac_cpp='$CPP $CPPFLAGS'
3760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3763
3764
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3772 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3773 # On Suns, sometimes $CPP names a directory.
3774 if test -n "$CPP" && test -d "$CPP"; then
3775 CPP=
3776 fi
3777 if test -z "$CPP"; then
3778 if test "${ac_cv_prog_CPP+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 # Double quotes because CPP needs to be expanded
3782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3783 do
3784 ac_preproc_ok=false
3785 for ac_c_preproc_warn_flag in '' yes
3786 do
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
3789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
3791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #ifdef __STDC__
3796 # include <limits.h>
3797 #else
3798 # include <assert.h>
3799 #endif
3800 Syntax error
3801 _ACEOF
3802 if ac_fn_c_try_cpp "$LINENO"; then :
3803
3804 else
3805 # Broken: fails on valid input.
3806 continue
3807 fi
3808 rm -f conftest.err conftest.$ac_ext
3809
3810 # OK, works on sane cases. Now check whether nonexistent headers
3811 # can be detected and how.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814 #include <ac_nonexistent.h>
3815 _ACEOF
3816 if ac_fn_c_try_cpp "$LINENO"; then :
3817 # Broken: success on invalid input.
3818 continue
3819 else
3820 # Passes both tests.
3821 ac_preproc_ok=:
3822 break
3823 fi
3824 rm -f conftest.err conftest.$ac_ext
3825
3826 done
3827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3828 rm -f conftest.err conftest.$ac_ext
3829 if $ac_preproc_ok; then :
3830 break
3831 fi
3832
3833 done
3834 ac_cv_prog_CPP=$CPP
3835
3836 fi
3837 CPP=$ac_cv_prog_CPP
3838 else
3839 ac_cv_prog_CPP=$CPP
3840 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3842 $as_echo "$CPP" >&6; }
3843 ac_preproc_ok=false
3844 for ac_c_preproc_warn_flag in '' yes
3845 do
3846 # Use a header file that comes with gcc, so configuring glibc
3847 # with a fresh cross-compiler works.
3848 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3849 # <limits.h> exists even on freestanding compilers.
3850 # On the NeXT, cc -E runs the code through the compiler's parser,
3851 # not just through cpp. "Syntax error" is here to catch this case.
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #ifdef __STDC__
3855 # include <limits.h>
3856 #else
3857 # include <assert.h>
3858 #endif
3859 Syntax error
3860 _ACEOF
3861 if ac_fn_c_try_cpp "$LINENO"; then :
3862
3863 else
3864 # Broken: fails on valid input.
3865 continue
3866 fi
3867 rm -f conftest.err conftest.$ac_ext
3868
3869 # OK, works on sane cases. Now check whether nonexistent headers
3870 # can be detected and how.
3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3873 #include <ac_nonexistent.h>
3874 _ACEOF
3875 if ac_fn_c_try_cpp "$LINENO"; then :
3876 # Broken: success on invalid input.
3877 continue
3878 else
3879 # Passes both tests.
3880 ac_preproc_ok=:
3881 break
3882 fi
3883 rm -f conftest.err conftest.$ac_ext
3884
3885 done
3886 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3887 rm -f conftest.err conftest.$ac_ext
3888 if $ac_preproc_ok; then :
3889
3890 else
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3894 See \`config.log' for more details" "$LINENO" 5; }
3895 fi
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3905 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3906 if test "${ac_cv_path_GREP+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -z "$GREP"; then
3910 ac_path_GREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914 do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_prog in grep ggrep; do
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3920 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3921 # Check for GNU ac_path_GREP and select it if it is found.
3922 # Check for GNU $ac_path_GREP
3923 case `"$ac_path_GREP" --version 2>&1` in
3924 *GNU*)
3925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3926 *)
3927 ac_count=0
3928 $as_echo_n 0123456789 >"conftest.in"
3929 while :
3930 do
3931 cat "conftest.in" "conftest.in" >"conftest.tmp"
3932 mv "conftest.tmp" "conftest.in"
3933 cp "conftest.in" "conftest.nl"
3934 $as_echo 'GREP' >> "conftest.nl"
3935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937 as_fn_arith $ac_count + 1 && ac_count=$as_val
3938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939 # Best one so far, save it but keep looking for a better one
3940 ac_cv_path_GREP="$ac_path_GREP"
3941 ac_path_GREP_max=$ac_count
3942 fi
3943 # 10*(2^10) chars as input seems more than enough
3944 test $ac_count -gt 10 && break
3945 done
3946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947 esac
3948
3949 $ac_path_GREP_found && break 3
3950 done
3951 done
3952 done
3953 IFS=$as_save_IFS
3954 if test -z "$ac_cv_path_GREP"; then
3955 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3956 fi
3957 else
3958 ac_cv_path_GREP=$GREP
3959 fi
3960
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3963 $as_echo "$ac_cv_path_GREP" >&6; }
3964 GREP="$ac_cv_path_GREP"
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3968 $as_echo_n "checking for egrep... " >&6; }
3969 if test "${ac_cv_path_EGREP+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3973 then ac_cv_path_EGREP="$GREP -E"
3974 else
3975 if test -z "$EGREP"; then
3976 ac_path_EGREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_prog in egrep; do
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3986 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3987 # Check for GNU ac_path_EGREP and select it if it is found.
3988 # Check for GNU $ac_path_EGREP
3989 case `"$ac_path_EGREP" --version 2>&1` in
3990 *GNU*)
3991 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3992 *)
3993 ac_count=0
3994 $as_echo_n 0123456789 >"conftest.in"
3995 while :
3996 do
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 $as_echo 'EGREP' >> "conftest.nl"
4001 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003 as_fn_arith $ac_count + 1 && ac_count=$as_val
4004 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_EGREP="$ac_path_EGREP"
4007 ac_path_EGREP_max=$ac_count
4008 fi
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4011 done
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4013 esac
4014
4015 $ac_path_EGREP_found && break 3
4016 done
4017 done
4018 done
4019 IFS=$as_save_IFS
4020 if test -z "$ac_cv_path_EGREP"; then
4021 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022 fi
4023 else
4024 ac_cv_path_EGREP=$EGREP
4025 fi
4026
4027 fi
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4030 $as_echo "$ac_cv_path_EGREP" >&6; }
4031 EGREP="$ac_cv_path_EGREP"
4032
4033
4034 if test $ac_cv_c_compiler_gnu = yes; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4036 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4037 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 ac_pattern="Autoconf.*'x'"
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 #include <sgtty.h>
4044 Autoconf TIOCGETP
4045 _ACEOF
4046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4047 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4048 ac_cv_prog_gcc_traditional=yes
4049 else
4050 ac_cv_prog_gcc_traditional=no
4051 fi
4052 rm -f conftest*
4053
4054
4055 if test $ac_cv_prog_gcc_traditional = no; then
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4058 #include <termio.h>
4059 Autoconf TCGETA
4060 _ACEOF
4061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4063 ac_cv_prog_gcc_traditional=yes
4064 fi
4065 rm -f conftest*
4066
4067 fi
4068 fi
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4070 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4071 if test $ac_cv_prog_gcc_traditional = yes; then
4072 CC="$CC -traditional"
4073 fi
4074 fi
4075
4076 # Find a good install program. We prefer a C program (faster),
4077 # so one script is as good as another. But avoid the broken or
4078 # incompatible versions:
4079 # SysV /etc/install, /usr/sbin/install
4080 # SunOS /usr/etc/install
4081 # IRIX /sbin/install
4082 # AIX /bin/install
4083 # AmigaOS /C/install, which installs bootblocks on floppy discs
4084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4087 # OS/2's system install, which has a completely different semantic
4088 # ./install, which can be erroneously created by make from ./install.sh.
4089 # Reject install programs that cannot install multiple files.
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4091 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4092 if test -z "$INSTALL"; then
4093 if test "${ac_cv_path_install+set}" = set; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 for as_dir in $PATH
4098 do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 # Account for people who put trailing slashes in PATH elements.
4102 case $as_dir/ in #((
4103 ./ | .// | /[cC]/* | \
4104 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4105 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4106 /usr/ucb/* ) ;;
4107 *)
4108 # OSF1 and SCO ODT 3.0 have their own names for install.
4109 # Don't use installbsd from OSF since it installs stuff as root
4110 # by default.
4111 for ac_prog in ginstall scoinst install; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4114 if test $ac_prog = install &&
4115 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4116 # AIX install. It has an incompatible calling convention.
4117 :
4118 elif test $ac_prog = install &&
4119 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4120 # program-specific install script used by HP pwplus--don't use.
4121 :
4122 else
4123 rm -rf conftest.one conftest.two conftest.dir
4124 echo one > conftest.one
4125 echo two > conftest.two
4126 mkdir conftest.dir
4127 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4128 test -s conftest.one && test -s conftest.two &&
4129 test -s conftest.dir/conftest.one &&
4130 test -s conftest.dir/conftest.two
4131 then
4132 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4133 break 3
4134 fi
4135 fi
4136 fi
4137 done
4138 done
4139 ;;
4140 esac
4141
4142 done
4143 IFS=$as_save_IFS
4144
4145 rm -rf conftest.one conftest.two conftest.dir
4146
4147 fi
4148 if test "${ac_cv_path_install+set}" = set; then
4149 INSTALL=$ac_cv_path_install
4150 else
4151 # As a last resort, use the slow shell script. Don't cache a
4152 # value for INSTALL within a source directory, because that will
4153 # break other packages using the cache if that directory is
4154 # removed, or if the value is a relative name.
4155 INSTALL=$ac_install_sh
4156 fi
4157 fi
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4159 $as_echo "$INSTALL" >&6; }
4160
4161 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4162 # It thinks the first close brace ends the variable substitution.
4163 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4164
4165 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4166
4167 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4168
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4170 $as_echo_n "checking whether ln -s works... " >&6; }
4171 LN_S=$as_ln_s
4172 if test "$LN_S" = "ln -s"; then
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4174 $as_echo "yes" >&6; }
4175 else
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4177 $as_echo "no, using $LN_S" >&6; }
4178 fi
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4181 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4182 set x ${MAKE-make}
4183 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 cat >conftest.make <<\_ACEOF
4188 SHELL = /bin/sh
4189 all:
4190 @echo '@@@%%%=$(MAKE)=@@@%%%'
4191 _ACEOF
4192 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4193 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4194 *@@@%%%=?*=@@@%%%*)
4195 eval ac_cv_prog_make_${ac_make}_set=yes;;
4196 *)
4197 eval ac_cv_prog_make_${ac_make}_set=no;;
4198 esac
4199 rm -f conftest.make
4200 fi
4201 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4203 $as_echo "yes" >&6; }
4204 SET_MAKE=
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 SET_MAKE="MAKE=${MAKE-make}"
4209 fi
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4212 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4213 if test -z "$MKDIR_P"; then
4214 if test "${ac_cv_path_mkdir+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4219 do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_prog in mkdir gmkdir; do
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4226 'mkdir (GNU coreutils) '* | \
4227 'mkdir (coreutils) '* | \
4228 'mkdir (fileutils) '4.1*)
4229 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4230 break 3;;
4231 esac
4232 done
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237 fi
4238
4239 test -d ./--version && rmdir ./--version
4240 if test "${ac_cv_path_mkdir+set}" = set; then
4241 MKDIR_P="$ac_cv_path_mkdir -p"
4242 else
4243 # As a last resort, use the slow shell script. Don't cache a
4244 # value for MKDIR_P within a source directory, because that will
4245 # break other packages using the cache if that directory is
4246 # removed, or if the value is a relative name.
4247 MKDIR_P="$ac_install_sh -d"
4248 fi
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4251 $as_echo "$MKDIR_P" >&6; }
4252
4253 if test -n "$ac_tool_prefix"; then
4254 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4255 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -n "$RANLIB"; then
4262 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4263 else
4264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4265 for as_dir in $PATH
4266 do
4267 IFS=$as_save_IFS
4268 test -z "$as_dir" && as_dir=.
4269 for ac_exec_ext in '' $ac_executable_extensions; do
4270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4271 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275 done
4276 done
4277 IFS=$as_save_IFS
4278
4279 fi
4280 fi
4281 RANLIB=$ac_cv_prog_RANLIB
4282 if test -n "$RANLIB"; then
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4284 $as_echo "$RANLIB" >&6; }
4285 else
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4287 $as_echo "no" >&6; }
4288 fi
4289
4290
4291 fi
4292 if test -z "$ac_cv_prog_RANLIB"; then
4293 ac_ct_RANLIB=$RANLIB
4294 # Extract the first word of "ranlib", so it can be a program name with args.
4295 set dummy ranlib; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$ac_ct_RANLIB"; then
4302 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_ac_ct_RANLIB="ranlib"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319 fi
4320 fi
4321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4322 if test -n "$ac_ct_RANLIB"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4324 $as_echo "$ac_ct_RANLIB" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4328 fi
4329
4330 if test "x$ac_ct_RANLIB" = x; then
4331 RANLIB=":"
4332 else
4333 case $cross_compiling:$ac_tool_warned in
4334 yes:)
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4337 ac_tool_warned=yes ;;
4338 esac
4339 RANLIB=$ac_ct_RANLIB
4340 fi
4341 else
4342 RANLIB="$ac_cv_prog_RANLIB"
4343 fi
4344
4345 # Extract the first word of "cflow", so it can be a program name with args.
4346 set dummy cflow; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 case $CFLOW_CMD in
4353 [\\/]* | ?:[\\/]*)
4354 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4355 ;;
4356 *)
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4366 break 2
4367 fi
4368 done
4369 done
4370 IFS=$as_save_IFS
4371
4372 ;;
4373 esac
4374 fi
4375 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4376 if test -n "$CFLOW_CMD"; then
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4378 $as_echo "$CFLOW_CMD" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 fi
4383
4384
4385 # Extract the first word of "cscope", so it can be a program name with args.
4386 set dummy cscope; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 case $CSCOPE_CMD in
4393 [\\/]* | ?:[\\/]*)
4394 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4395 ;;
4396 *)
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 ;;
4413 esac
4414 fi
4415 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4416 if test -n "$CSCOPE_CMD"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4418 $as_echo "$CSCOPE_CMD" >&6; }
4419 else
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4422 fi
4423
4424
4425
4426 ################################################################################
4427 ac_header_dirent=no
4428 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4429 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4431 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4432 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4437 #include <sys/types.h>
4438 #include <$ac_hdr>
4439
4440 int
4441 main ()
4442 {
4443 if ((DIR *) 0)
4444 return 0;
4445 ;
4446 return 0;
4447 }
4448 _ACEOF
4449 if ac_fn_c_try_compile "$LINENO"; then :
4450 eval "$as_ac_Header=yes"
4451 else
4452 eval "$as_ac_Header=no"
4453 fi
4454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4455 fi
4456 eval ac_res=\$$as_ac_Header
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4458 $as_echo "$ac_res" >&6; }
4459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4460 cat >>confdefs.h <<_ACEOF
4461 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4462 _ACEOF
4463
4464 ac_header_dirent=$ac_hdr; break
4465 fi
4466
4467 done
4468 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4469 if test $ac_header_dirent = dirent.h; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4471 $as_echo_n "checking for library containing opendir... " >&6; }
4472 if test "${ac_cv_search_opendir+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 ac_func_search_save_LIBS=$LIBS
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4478
4479 /* Override any GCC internal prototype to avoid an error.
4480 Use char because int might match the return type of a GCC
4481 builtin and then its argument prototype would still apply. */
4482 #ifdef __cplusplus
4483 extern "C"
4484 #endif
4485 char opendir ();
4486 int
4487 main ()
4488 {
4489 return opendir ();
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 for ac_lib in '' dir; do
4495 if test -z "$ac_lib"; then
4496 ac_res="none required"
4497 else
4498 ac_res=-l$ac_lib
4499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4500 fi
4501 if ac_fn_c_try_link "$LINENO"; then :
4502 ac_cv_search_opendir=$ac_res
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext
4506 if test "${ac_cv_search_opendir+set}" = set; then :
4507 break
4508 fi
4509 done
4510 if test "${ac_cv_search_opendir+set}" = set; then :
4511
4512 else
4513 ac_cv_search_opendir=no
4514 fi
4515 rm conftest.$ac_ext
4516 LIBS=$ac_func_search_save_LIBS
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4519 $as_echo "$ac_cv_search_opendir" >&6; }
4520 ac_res=$ac_cv_search_opendir
4521 if test "$ac_res" != no; then :
4522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4523
4524 fi
4525
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4528 $as_echo_n "checking for library containing opendir... " >&6; }
4529 if test "${ac_cv_search_opendir+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 ac_func_search_save_LIBS=$LIBS
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535
4536 /* Override any GCC internal prototype to avoid an error.
4537 Use char because int might match the return type of a GCC
4538 builtin and then its argument prototype would still apply. */
4539 #ifdef __cplusplus
4540 extern "C"
4541 #endif
4542 char opendir ();
4543 int
4544 main ()
4545 {
4546 return opendir ();
4547 ;
4548 return 0;
4549 }
4550 _ACEOF
4551 for ac_lib in '' x; do
4552 if test -z "$ac_lib"; then
4553 ac_res="none required"
4554 else
4555 ac_res=-l$ac_lib
4556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4557 fi
4558 if ac_fn_c_try_link "$LINENO"; then :
4559 ac_cv_search_opendir=$ac_res
4560 fi
4561 rm -f core conftest.err conftest.$ac_objext \
4562 conftest$ac_exeext
4563 if test "${ac_cv_search_opendir+set}" = set; then :
4564 break
4565 fi
4566 done
4567 if test "${ac_cv_search_opendir+set}" = set; then :
4568
4569 else
4570 ac_cv_search_opendir=no
4571 fi
4572 rm conftest.$ac_ext
4573 LIBS=$ac_func_search_save_LIBS
4574 fi
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4576 $as_echo "$ac_cv_search_opendir" >&6; }
4577 ac_res=$ac_cv_search_opendir
4578 if test "$ac_res" != no; then :
4579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4580
4581 fi
4582
4583 fi
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4586 $as_echo_n "checking for ANSI C header files... " >&6; }
4587 if test "${ac_cv_header_stdc+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <stdlib.h>
4593 #include <stdarg.h>
4594 #include <string.h>
4595 #include <float.h>
4596
4597 int
4598 main ()
4599 {
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_c_try_compile "$LINENO"; then :
4606 ac_cv_header_stdc=yes
4607 else
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611
4612 if test $ac_cv_header_stdc = yes; then
4613 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616 #include <string.h>
4617
4618 _ACEOF
4619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4620 $EGREP "memchr" >/dev/null 2>&1; then :
4621
4622 else
4623 ac_cv_header_stdc=no
4624 fi
4625 rm -f conftest*
4626
4627 fi
4628
4629 if test $ac_cv_header_stdc = yes; then
4630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <stdlib.h>
4634
4635 _ACEOF
4636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4637 $EGREP "free" >/dev/null 2>&1; then :
4638
4639 else
4640 ac_cv_header_stdc=no
4641 fi
4642 rm -f conftest*
4643
4644 fi
4645
4646 if test $ac_cv_header_stdc = yes; then
4647 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4648 if test "$cross_compiling" = yes; then :
4649 :
4650 else
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4653 #include <ctype.h>
4654 #include <stdlib.h>
4655 #if ((' ' & 0x0FF) == 0x020)
4656 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4657 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4658 #else
4659 # define ISLOWER(c) \
4660 (('a' <= (c) && (c) <= 'i') \
4661 || ('j' <= (c) && (c) <= 'r') \
4662 || ('s' <= (c) && (c) <= 'z'))
4663 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4664 #endif
4665
4666 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4667 int
4668 main ()
4669 {
4670 int i;
4671 for (i = 0; i < 256; i++)
4672 if (XOR (islower (i), ISLOWER (i))
4673 || toupper (i) != TOUPPER (i))
4674 return 2;
4675 return 0;
4676 }
4677 _ACEOF
4678 if ac_fn_c_try_run "$LINENO"; then :
4679
4680 else
4681 ac_cv_header_stdc=no
4682 fi
4683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4684 conftest.$ac_objext conftest.beam conftest.$ac_ext
4685 fi
4686
4687 fi
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4690 $as_echo "$ac_cv_header_stdc" >&6; }
4691 if test $ac_cv_header_stdc = yes; then
4692
4693 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4694
4695 fi
4696
4697 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4698 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4699 inttypes.h stdint.h unistd.h
4700 do :
4701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4703 "
4704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4705 cat >>confdefs.h <<_ACEOF
4706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4707 _ACEOF
4708
4709 fi
4710
4711 done
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4715 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4716 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 #include <sys/types.h>
4722 int
4723 main ()
4724 {
4725 return makedev(0, 0);
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_link "$LINENO"; then :
4731 ac_cv_header_sys_types_h_makedev=yes
4732 else
4733 ac_cv_header_sys_types_h_makedev=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext \
4736 conftest$ac_exeext conftest.$ac_ext
4737
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4740 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4741
4742 if test $ac_cv_header_sys_types_h_makedev = no; then
4743 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4744 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4745
4746 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4747
4748 fi
4749
4750
4751
4752 if test $ac_cv_header_sys_mkdev_h = no; then
4753 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4754 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4755
4756 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4757
4758 fi
4759
4760
4761 fi
4762 fi
4763
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4765 $as_echo_n "checking for ANSI C header files... " >&6; }
4766 if test "${ac_cv_header_stdc+set}" = set; then :
4767 $as_echo_n "(cached) " >&6
4768 else
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 #include <stdlib.h>
4772 #include <stdarg.h>
4773 #include <string.h>
4774 #include <float.h>
4775
4776 int
4777 main ()
4778 {
4779
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 if ac_fn_c_try_compile "$LINENO"; then :
4785 ac_cv_header_stdc=yes
4786 else
4787 ac_cv_header_stdc=no
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790
4791 if test $ac_cv_header_stdc = yes; then
4792 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4795 #include <string.h>
4796
4797 _ACEOF
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "memchr" >/dev/null 2>&1; then :
4800
4801 else
4802 ac_cv_header_stdc=no
4803 fi
4804 rm -f conftest*
4805
4806 fi
4807
4808 if test $ac_cv_header_stdc = yes; then
4809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 #include <stdlib.h>
4813
4814 _ACEOF
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816 $EGREP "free" >/dev/null 2>&1; then :
4817
4818 else
4819 ac_cv_header_stdc=no
4820 fi
4821 rm -f conftest*
4822
4823 fi
4824
4825 if test $ac_cv_header_stdc = yes; then
4826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4827 if test "$cross_compiling" = yes; then :
4828 :
4829 else
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 #include <ctype.h>
4833 #include <stdlib.h>
4834 #if ((' ' & 0x0FF) == 0x020)
4835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4837 #else
4838 # define ISLOWER(c) \
4839 (('a' <= (c) && (c) <= 'i') \
4840 || ('j' <= (c) && (c) <= 'r') \
4841 || ('s' <= (c) && (c) <= 'z'))
4842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4843 #endif
4844
4845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4846 int
4847 main ()
4848 {
4849 int i;
4850 for (i = 0; i < 256; i++)
4851 if (XOR (islower (i), ISLOWER (i))
4852 || toupper (i) != TOUPPER (i))
4853 return 2;
4854 return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_run "$LINENO"; then :
4858
4859 else
4860 ac_cv_header_stdc=no
4861 fi
4862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4863 conftest.$ac_objext conftest.beam conftest.$ac_ext
4864 fi
4865
4866 fi
4867 fi
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4869 $as_echo "$ac_cv_header_stdc" >&6; }
4870 if test $ac_cv_header_stdc = yes; then
4871
4872 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4873
4874 fi
4875
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4877 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4878 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882 /* end confdefs.h. */
4883 #include <sys/types.h>
4884 #include <sys/wait.h>
4885 #ifndef WEXITSTATUS
4886 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4887 #endif
4888 #ifndef WIFEXITED
4889 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4890 #endif
4891
4892 int
4893 main ()
4894 {
4895 int s;
4896 wait (&s);
4897 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_header_sys_wait_h=yes
4904 else
4905 ac_cv_header_sys_wait_h=no
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4910 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4911 if test $ac_cv_header_sys_wait_h = yes; then
4912
4913 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4914
4915 fi
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4918 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4919 if test "${ac_cv_header_time+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 #include <sys/types.h>
4925 #include <sys/time.h>
4926 #include <time.h>
4927
4928 int
4929 main ()
4930 {
4931 if ((struct tm *) 0)
4932 return 0;
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 if ac_fn_c_try_compile "$LINENO"; then :
4938 ac_cv_header_time=yes
4939 else
4940 ac_cv_header_time=no
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4945 $as_echo "$ac_cv_header_time" >&6; }
4946 if test $ac_cv_header_time = yes; then
4947
4948 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4949
4950 fi
4951
4952
4953 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4954 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4955 sys/wait.h time.h
4956 do :
4957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4960 cat >>confdefs.h <<_ACEOF
4961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4962 _ACEOF
4963
4964 else
4965 as_fn_error $? "bailing out" "$LINENO" 5
4966 fi
4967
4968 done
4969
4970
4971 case "$host_os" in
4972 linux*)
4973 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4974 do :
4975 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4976 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4978 cat >>confdefs.h <<_ACEOF
4979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4980 _ACEOF
4981
4982 else
4983 as_fn_error $? "bailing out" "$LINENO" 5
4984 fi
4985
4986 done
4987 ;;
4988 darwin*)
4989 for ac_header in machine/endian.h sys/disk.h
4990 do :
4991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4992 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4993 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4994 cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4996 _ACEOF
4997
4998 else
4999 as_fn_error $? "bailing out" "$LINENO" 5
5000 fi
5001
5002 done
5003 ;;
5004 esac
5005
5006 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5007 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5008 sys/types.h unistd.h
5009 do :
5010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5011 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5012 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5013 cat >>confdefs.h <<_ACEOF
5014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5015 _ACEOF
5016
5017 else
5018 as_fn_error $? "bailing out" "$LINENO" 5
5019 fi
5020
5021 done
5022
5023 for ac_header in termios.h sys/statvfs.h
5024 do :
5025 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5026 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5027 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5028 cat >>confdefs.h <<_ACEOF
5029 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5030 _ACEOF
5031
5032 fi
5033
5034 done
5035
5036
5037 ################################################################################
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5039 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5040 if test "${ac_cv_c_const+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045
5046 int
5047 main ()
5048 {
5049 /* FIXME: Include the comments suggested by Paul. */
5050 #ifndef __cplusplus
5051 /* Ultrix mips cc rejects this. */
5052 typedef int charset[2];
5053 const charset cs;
5054 /* SunOS 4.1.1 cc rejects this. */
5055 char const *const *pcpcc;
5056 char **ppc;
5057 /* NEC SVR4.0.2 mips cc rejects this. */
5058 struct point {int x, y;};
5059 static struct point const zero = {0,0};
5060 /* AIX XL C 1.02.0.0 rejects this.
5061 It does not let you subtract one const X* pointer from another in
5062 an arm of an if-expression whose if-part is not a constant
5063 expression */
5064 const char *g = "string";
5065 pcpcc = &g + (g ? g-g : 0);
5066 /* HPUX 7.0 cc rejects these. */
5067 ++pcpcc;
5068 ppc = (char**) pcpcc;
5069 pcpcc = (char const *const *) ppc;
5070 { /* SCO 3.2v4 cc rejects this. */
5071 char *t;
5072 char const *s = 0 ? (char *) 0 : (char const *) 0;
5073
5074 *t++ = 0;
5075 if (s) return 0;
5076 }
5077 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5078 int x[] = {25, 17};
5079 const int *foo = &x[0];
5080 ++foo;
5081 }
5082 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5083 typedef const int *iptr;
5084 iptr p = 0;
5085 ++p;
5086 }
5087 { /* AIX XL C 1.02.0.0 rejects this saying
5088 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5089 struct s { int j; const int *ap[3]; };
5090 struct s *b; b->j = 5;
5091 }
5092 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5093 const int foo = 10;
5094 if (!foo) return 0;
5095 }
5096 return !cs[0] && !zero.x;
5097 #endif
5098
5099 ;
5100 return 0;
5101 }
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 ac_cv_c_const=yes
5105 else
5106 ac_cv_c_const=no
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 fi
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5111 $as_echo "$ac_cv_c_const" >&6; }
5112 if test $ac_cv_c_const = no; then
5113
5114 $as_echo "#define const /**/" >>confdefs.h
5115
5116 fi
5117
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5119 $as_echo_n "checking for inline... " >&6; }
5120 if test "${ac_cv_c_inline+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 ac_cv_c_inline=no
5124 for ac_kw in inline __inline__ __inline; do
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #ifndef __cplusplus
5128 typedef int foo_t;
5129 static $ac_kw foo_t static_foo () {return 0; }
5130 $ac_kw foo_t foo () {return 0; }
5131 #endif
5132
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_cv_c_inline=$ac_kw
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 test "$ac_cv_c_inline" != no && break
5139 done
5140
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5143 $as_echo "$ac_cv_c_inline" >&6; }
5144
5145 case $ac_cv_c_inline in
5146 inline | yes) ;;
5147 *)
5148 case $ac_cv_c_inline in
5149 no) ac_val=;;
5150 *) ac_val=$ac_cv_c_inline;;
5151 esac
5152 cat >>confdefs.h <<_ACEOF
5153 #ifndef __cplusplus
5154 #define inline $ac_val
5155 #endif
5156 _ACEOF
5157 ;;
5158 esac
5159
5160 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5161 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5162
5163 cat >>confdefs.h <<_ACEOF
5164 #define HAVE_STRUCT_STAT_ST_RDEV 1
5165 _ACEOF
5166
5167
5168 fi
5169
5170 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5171 if test "x$ac_cv_type_off_t" = x""yes; then :
5172
5173 else
5174
5175 cat >>confdefs.h <<_ACEOF
5176 #define off_t long int
5177 _ACEOF
5178
5179 fi
5180
5181 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5182 if test "x$ac_cv_type_pid_t" = x""yes; then :
5183
5184 else
5185
5186 cat >>confdefs.h <<_ACEOF
5187 #define pid_t int
5188 _ACEOF
5189
5190 fi
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5193 $as_echo_n "checking return type of signal handlers... " >&6; }
5194 if test "${ac_cv_type_signal+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 #include <sys/types.h>
5200 #include <signal.h>
5201
5202 int
5203 main ()
5204 {
5205 return *(signal (0, 0)) (0) == 1;
5206 ;
5207 return 0;
5208 }
5209 _ACEOF
5210 if ac_fn_c_try_compile "$LINENO"; then :
5211 ac_cv_type_signal=int
5212 else
5213 ac_cv_type_signal=void
5214 fi
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5216 fi
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5218 $as_echo "$ac_cv_type_signal" >&6; }
5219
5220 cat >>confdefs.h <<_ACEOF
5221 #define RETSIGTYPE $ac_cv_type_signal
5222 _ACEOF
5223
5224
5225 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5226 if test "x$ac_cv_type_size_t" = x""yes; then :
5227
5228 else
5229
5230 cat >>confdefs.h <<_ACEOF
5231 #define size_t unsigned int
5232 _ACEOF
5233
5234 fi
5235
5236 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5237 if test "x$ac_cv_type_mode_t" = x""yes; then :
5238
5239 else
5240
5241 cat >>confdefs.h <<_ACEOF
5242 #define mode_t int
5243 _ACEOF
5244
5245 fi
5246
5247 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5248 case $ac_cv_c_int8_t in #(
5249 no|yes) ;; #(
5250 *)
5251
5252 cat >>confdefs.h <<_ACEOF
5253 #define int8_t $ac_cv_c_int8_t
5254 _ACEOF
5255 ;;
5256 esac
5257
5258 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5259 case $ac_cv_c_int16_t in #(
5260 no|yes) ;; #(
5261 *)
5262
5263 cat >>confdefs.h <<_ACEOF
5264 #define int16_t $ac_cv_c_int16_t
5265 _ACEOF
5266 ;;
5267 esac
5268
5269 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5270 case $ac_cv_c_int32_t in #(
5271 no|yes) ;; #(
5272 *)
5273
5274 cat >>confdefs.h <<_ACEOF
5275 #define int32_t $ac_cv_c_int32_t
5276 _ACEOF
5277 ;;
5278 esac
5279
5280 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5281 case $ac_cv_c_int64_t in #(
5282 no|yes) ;; #(
5283 *)
5284
5285 cat >>confdefs.h <<_ACEOF
5286 #define int64_t $ac_cv_c_int64_t
5287 _ACEOF
5288 ;;
5289 esac
5290
5291 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5292 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5293
5294 else
5295
5296 cat >>confdefs.h <<_ACEOF
5297 #define ssize_t int
5298 _ACEOF
5299
5300 fi
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5303 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5304 if test "${ac_cv_type_uid_t+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <sys/types.h>
5310
5311 _ACEOF
5312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5313 $EGREP "uid_t" >/dev/null 2>&1; then :
5314 ac_cv_type_uid_t=yes
5315 else
5316 ac_cv_type_uid_t=no
5317 fi
5318 rm -f conftest*
5319
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5322 $as_echo "$ac_cv_type_uid_t" >&6; }
5323 if test $ac_cv_type_uid_t = no; then
5324
5325 $as_echo "#define uid_t int" >>confdefs.h
5326
5327
5328 $as_echo "#define gid_t int" >>confdefs.h
5329
5330 fi
5331
5332 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5333 case $ac_cv_c_uint8_t in #(
5334 no|yes) ;; #(
5335 *)
5336
5337 $as_echo "#define _UINT8_T 1" >>confdefs.h
5338
5339
5340 cat >>confdefs.h <<_ACEOF
5341 #define uint8_t $ac_cv_c_uint8_t
5342 _ACEOF
5343 ;;
5344 esac
5345
5346 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5347 case $ac_cv_c_uint16_t in #(
5348 no|yes) ;; #(
5349 *)
5350
5351
5352 cat >>confdefs.h <<_ACEOF
5353 #define uint16_t $ac_cv_c_uint16_t
5354 _ACEOF
5355 ;;
5356 esac
5357
5358 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5359 case $ac_cv_c_uint32_t in #(
5360 no|yes) ;; #(
5361 *)
5362
5363 $as_echo "#define _UINT32_T 1" >>confdefs.h
5364
5365
5366 cat >>confdefs.h <<_ACEOF
5367 #define uint32_t $ac_cv_c_uint32_t
5368 _ACEOF
5369 ;;
5370 esac
5371
5372 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5373 case $ac_cv_c_uint64_t in #(
5374 no|yes) ;; #(
5375 *)
5376
5377 $as_echo "#define _UINT64_T 1" >>confdefs.h
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define uint64_t $ac_cv_c_uint64_t
5382 _ACEOF
5383 ;;
5384 esac
5385
5386 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5387 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5388
5389 cat >>confdefs.h <<_ACEOF
5390 #define HAVE_STRUCT_STAT_ST_RDEV 1
5391 _ACEOF
5392
5393
5394 fi
5395
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5397 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5398 if test "${ac_cv_struct_tm+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5403 #include <sys/types.h>
5404 #include <time.h>
5405
5406 int
5407 main ()
5408 {
5409 struct tm tm;
5410 int *p = &tm.tm_sec;
5411 return !p;
5412 ;
5413 return 0;
5414 }
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 ac_cv_struct_tm=time.h
5418 else
5419 ac_cv_struct_tm=sys/time.h
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5424 $as_echo "$ac_cv_struct_tm" >&6; }
5425 if test $ac_cv_struct_tm = sys/time.h; then
5426
5427 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5428
5429 fi
5430
5431
5432 ################################################################################
5433 for ac_func in ftruncate gethostname getpagesize \
5434 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5435 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5436 strstr strtol strtoul uname
5437 do :
5438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5441 cat >>confdefs.h <<_ACEOF
5442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5443 _ACEOF
5444
5445 else
5446 as_fn_error $? "bailing out" "$LINENO" 5
5447 fi
5448 done
5449
5450 for ac_func in siginterrupt
5451 do :
5452 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5453 if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5454 cat >>confdefs.h <<_ACEOF
5455 #define HAVE_SIGINTERRUPT 1
5456 _ACEOF
5457
5458 fi
5459 done
5460
5461 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5462 # for constant arguments. Useless!
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5464 $as_echo_n "checking for working alloca.h... " >&6; }
5465 if test "${ac_cv_working_alloca_h+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470 #include <alloca.h>
5471 int
5472 main ()
5473 {
5474 char *p = (char *) alloca (2 * sizeof (int));
5475 if (p) return 0;
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 if ac_fn_c_try_link "$LINENO"; then :
5481 ac_cv_working_alloca_h=yes
5482 else
5483 ac_cv_working_alloca_h=no
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 fi
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5489 $as_echo "$ac_cv_working_alloca_h" >&6; }
5490 if test $ac_cv_working_alloca_h = yes; then
5491
5492 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5493
5494 fi
5495
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5497 $as_echo_n "checking for alloca... " >&6; }
5498 if test "${ac_cv_func_alloca_works+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5503 #ifdef __GNUC__
5504 # define alloca __builtin_alloca
5505 #else
5506 # ifdef _MSC_VER
5507 # include <malloc.h>
5508 # define alloca _alloca
5509 # else
5510 # ifdef HAVE_ALLOCA_H
5511 # include <alloca.h>
5512 # else
5513 # ifdef _AIX
5514 #pragma alloca
5515 # else
5516 # ifndef alloca /* predefined by HP cc +Olibcalls */
5517 char *alloca ();
5518 # endif
5519 # endif
5520 # endif
5521 # endif
5522 #endif
5523
5524 int
5525 main ()
5526 {
5527 char *p = (char *) alloca (1);
5528 if (p) return 0;
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 if ac_fn_c_try_link "$LINENO"; then :
5534 ac_cv_func_alloca_works=yes
5535 else
5536 ac_cv_func_alloca_works=no
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext \
5539 conftest$ac_exeext conftest.$ac_ext
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5542 $as_echo "$ac_cv_func_alloca_works" >&6; }
5543
5544 if test $ac_cv_func_alloca_works = yes; then
5545
5546 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5547
5548 else
5549 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5550 # that cause trouble. Some versions do not even contain alloca or
5551 # contain a buggy version. If you still want to use their alloca,
5552 # use ar to extract alloca.o from them instead of compiling alloca.c.
5553
5554 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5555
5556 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5557
5558
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5560 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5561 if test "${ac_cv_os_cray+set}" = set; then :
5562 $as_echo_n "(cached) " >&6
5563 else
5564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5565 /* end confdefs.h. */
5566 #if defined CRAY && ! defined CRAY2
5567 webecray
5568 #else
5569 wenotbecray
5570 #endif
5571
5572 _ACEOF
5573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5574 $EGREP "webecray" >/dev/null 2>&1; then :
5575 ac_cv_os_cray=yes
5576 else
5577 ac_cv_os_cray=no
5578 fi
5579 rm -f conftest*
5580
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5583 $as_echo "$ac_cv_os_cray" >&6; }
5584 if test $ac_cv_os_cray = yes; then
5585 for ac_func in _getb67 GETB67 getb67; do
5586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5589
5590 cat >>confdefs.h <<_ACEOF
5591 #define CRAY_STACKSEG_END $ac_func
5592 _ACEOF
5593
5594 break
5595 fi
5596
5597 done
5598 fi
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5601 $as_echo_n "checking stack direction for C alloca... " >&6; }
5602 if test "${ac_cv_c_stack_direction+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5604 else
5605 if test "$cross_compiling" = yes; then :
5606 ac_cv_c_stack_direction=0
5607 else
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 $ac_includes_default
5611 int
5612 find_stack_direction ()
5613 {
5614 static char *addr = 0;
5615 auto char dummy;
5616 if (addr == 0)
5617 {
5618 addr = &dummy;
5619 return find_stack_direction ();
5620 }
5621 else
5622 return (&dummy > addr) ? 1 : -1;
5623 }
5624
5625 int
5626 main ()
5627 {
5628 return find_stack_direction () < 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_run "$LINENO"; then :
5632 ac_cv_c_stack_direction=1
5633 else
5634 ac_cv_c_stack_direction=-1
5635 fi
5636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5637 conftest.$ac_objext conftest.beam conftest.$ac_ext
5638 fi
5639
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5642 $as_echo "$ac_cv_c_stack_direction" >&6; }
5643 cat >>confdefs.h <<_ACEOF
5644 #define STACK_DIRECTION $ac_cv_c_stack_direction
5645 _ACEOF
5646
5647
5648 fi
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5651 $as_echo_n "checking whether closedir returns void... " >&6; }
5652 if test "${ac_cv_func_closedir_void+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test "$cross_compiling" = yes; then :
5656 ac_cv_func_closedir_void=yes
5657 else
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5660 $ac_includes_default
5661 #include <$ac_header_dirent>
5662 #ifndef __cplusplus
5663 int closedir ();
5664 #endif
5665
5666 int
5667 main ()
5668 {
5669 return closedir (opendir (".")) != 0;
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 if ac_fn_c_try_run "$LINENO"; then :
5675 ac_cv_func_closedir_void=no
5676 else
5677 ac_cv_func_closedir_void=yes
5678 fi
5679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5680 conftest.$ac_objext conftest.beam conftest.$ac_ext
5681 fi
5682
5683 fi
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5685 $as_echo "$ac_cv_func_closedir_void" >&6; }
5686 if test $ac_cv_func_closedir_void = yes; then
5687
5688 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5689
5690 fi
5691
5692 for ac_header in unistd.h
5693 do :
5694 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5695 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5696 cat >>confdefs.h <<_ACEOF
5697 #define HAVE_UNISTD_H 1
5698 _ACEOF
5699
5700 fi
5701
5702 done
5703
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5705 $as_echo_n "checking for working chown... " >&6; }
5706 if test "${ac_cv_func_chown_works+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test "$cross_compiling" = yes; then :
5710 ac_cv_func_chown_works=no
5711 else
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 $ac_includes_default
5715 #include <fcntl.h>
5716
5717 int
5718 main ()
5719 {
5720 char *f = "conftest.chown";
5721 struct stat before, after;
5722
5723 if (creat (f, 0600) < 0)
5724 return 1;
5725 if (stat (f, &before) < 0)
5726 return 1;
5727 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5728 return 1;
5729 if (stat (f, &after) < 0)
5730 return 1;
5731 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5732
5733 ;
5734 return 0;
5735 }
5736 _ACEOF
5737 if ac_fn_c_try_run "$LINENO"; then :
5738 ac_cv_func_chown_works=yes
5739 else
5740 ac_cv_func_chown_works=no
5741 fi
5742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5743 conftest.$ac_objext conftest.beam conftest.$ac_ext
5744 fi
5745
5746 rm -f conftest.chown
5747
5748 fi
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5750 $as_echo "$ac_cv_func_chown_works" >&6; }
5751 if test $ac_cv_func_chown_works = yes; then
5752
5753 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5754
5755 fi
5756
5757 for ac_header in vfork.h
5758 do :
5759 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5760 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5761 cat >>confdefs.h <<_ACEOF
5762 #define HAVE_VFORK_H 1
5763 _ACEOF
5764
5765 fi
5766
5767 done
5768
5769 for ac_func in fork vfork
5770 do :
5771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5772 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5773 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5774 cat >>confdefs.h <<_ACEOF
5775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5776 _ACEOF
5777
5778 fi
5779 done
5780
5781 if test "x$ac_cv_func_fork" = xyes; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5783 $as_echo_n "checking for working fork... " >&6; }
5784 if test "${ac_cv_func_fork_works+set}" = set; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 if test "$cross_compiling" = yes; then :
5788 ac_cv_func_fork_works=cross
5789 else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792 $ac_includes_default
5793 int
5794 main ()
5795 {
5796
5797 /* By Ruediger Kuhlmann. */
5798 return fork () < 0;
5799
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_c_try_run "$LINENO"; then :
5805 ac_cv_func_fork_works=yes
5806 else
5807 ac_cv_func_fork_works=no
5808 fi
5809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5810 conftest.$ac_objext conftest.beam conftest.$ac_ext
5811 fi
5812
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5815 $as_echo "$ac_cv_func_fork_works" >&6; }
5816
5817 else
5818 ac_cv_func_fork_works=$ac_cv_func_fork
5819 fi
5820 if test "x$ac_cv_func_fork_works" = xcross; then
5821 case $host in
5822 *-*-amigaos* | *-*-msdosdjgpp*)
5823 # Override, as these systems have only a dummy fork() stub
5824 ac_cv_func_fork_works=no
5825 ;;
5826 *)
5827 ac_cv_func_fork_works=yes
5828 ;;
5829 esac
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5831 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5832 fi
5833 ac_cv_func_vfork_works=$ac_cv_func_vfork
5834 if test "x$ac_cv_func_vfork" = xyes; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5836 $as_echo_n "checking for working vfork... " >&6; }
5837 if test "${ac_cv_func_vfork_works+set}" = set; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 if test "$cross_compiling" = yes; then :
5841 ac_cv_func_vfork_works=cross
5842 else
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5845 /* Thanks to Paul Eggert for this test. */
5846 $ac_includes_default
5847 #include <sys/wait.h>
5848 #ifdef HAVE_VFORK_H
5849 # include <vfork.h>
5850 #endif
5851 /* On some sparc systems, changes by the child to local and incoming
5852 argument registers are propagated back to the parent. The compiler
5853 is told about this with #include <vfork.h>, but some compilers
5854 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5855 static variable whose address is put into a register that is
5856 clobbered by the vfork. */
5857 static void
5858 #ifdef __cplusplus
5859 sparc_address_test (int arg)
5860 # else
5861 sparc_address_test (arg) int arg;
5862 #endif
5863 {
5864 static pid_t child;
5865 if (!child) {
5866 child = vfork ();
5867 if (child < 0) {
5868 perror ("vfork");
5869 _exit(2);
5870 }
5871 if (!child) {
5872 arg = getpid();
5873 write(-1, "", 0);
5874 _exit (arg);
5875 }
5876 }
5877 }
5878
5879 int
5880 main ()
5881 {
5882 pid_t parent = getpid ();
5883 pid_t child;
5884
5885 sparc_address_test (0);
5886
5887 child = vfork ();
5888
5889 if (child == 0) {
5890 /* Here is another test for sparc vfork register problems. This
5891 test uses lots of local variables, at least as many local
5892 variables as main has allocated so far including compiler
5893 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5894 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5895 reuse the register of parent for one of the local variables,
5896 since it will think that parent can't possibly be used any more
5897 in this routine. Assigning to the local variable will thus
5898 munge parent in the parent process. */
5899 pid_t
5900 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5901 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5902 /* Convince the compiler that p..p7 are live; otherwise, it might
5903 use the same hardware register for all 8 local variables. */
5904 if (p != p1 || p != p2 || p != p3 || p != p4
5905 || p != p5 || p != p6 || p != p7)
5906 _exit(1);
5907
5908 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5909 from child file descriptors. If the child closes a descriptor
5910 before it execs or exits, this munges the parent's descriptor
5911 as well. Test for this by closing stdout in the child. */
5912 _exit(close(fileno(stdout)) != 0);
5913 } else {
5914 int status;
5915 struct stat st;
5916
5917 while (wait(&status) != child)
5918 ;
5919 return (
5920 /* Was there some problem with vforking? */
5921 child < 0
5922
5923 /* Did the child fail? (This shouldn't happen.) */
5924 || status
5925
5926 /* Did the vfork/compiler bug occur? */
5927 || parent != getpid()
5928
5929 /* Did the file descriptor bug occur? */
5930 || fstat(fileno(stdout), &st) != 0
5931 );
5932 }
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_run "$LINENO"; then :
5936 ac_cv_func_vfork_works=yes
5937 else
5938 ac_cv_func_vfork_works=no
5939 fi
5940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5941 conftest.$ac_objext conftest.beam conftest.$ac_ext
5942 fi
5943
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5946 $as_echo "$ac_cv_func_vfork_works" >&6; }
5947
5948 fi;
5949 if test "x$ac_cv_func_fork_works" = xcross; then
5950 ac_cv_func_vfork_works=$ac_cv_func_vfork
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5952 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5953 fi
5954
5955 if test "x$ac_cv_func_vfork_works" = xyes; then
5956
5957 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5958
5959 else
5960
5961 $as_echo "#define vfork fork" >>confdefs.h
5962
5963 fi
5964 if test "x$ac_cv_func_fork_works" = xyes; then
5965
5966 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5967
5968 fi
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5971 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5972 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 rm -f conftest.sym conftest.file
5976 echo >conftest.file
5977 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5978 if test "$cross_compiling" = yes; then :
5979 ac_cv_func_lstat_dereferences_slashed_symlink=no
5980 else
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5983 $ac_includes_default
5984 int
5985 main ()
5986 {
5987 struct stat sbuf;
5988 /* Linux will dereference the symlink and fail, as required by POSIX.
5989 That is better in the sense that it means we will not
5990 have to compile and use the lstat wrapper. */
5991 return lstat ("conftest.sym/", &sbuf) == 0;
5992 ;
5993 return 0;
5994 }
5995 _ACEOF
5996 if ac_fn_c_try_run "$LINENO"; then :
5997 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5998 else
5999 ac_cv_func_lstat_dereferences_slashed_symlink=no
6000 fi
6001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6002 conftest.$ac_objext conftest.beam conftest.$ac_ext
6003 fi
6004
6005 else
6006 # If the `ln -s' command failed, then we probably don't even
6007 # have an lstat function.
6008 ac_cv_func_lstat_dereferences_slashed_symlink=no
6009 fi
6010 rm -f conftest.sym conftest.file
6011
6012 fi
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6014 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6015
6016 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6017
6018 cat >>confdefs.h <<_ACEOF
6019 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6020 _ACEOF
6021
6022
6023 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6024 case " $LIBOBJS " in
6025 *" lstat.$ac_objext "* ) ;;
6026 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6027 ;;
6028 esac
6029
6030 fi
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6033 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6034 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6036 else
6037 if test "$cross_compiling" = yes; then :
6038 ac_cv_func_lstat_empty_string_bug=yes
6039 else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 int
6044 main ()
6045 {
6046 struct stat sbuf;
6047 return lstat ("", &sbuf) == 0;
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 if ac_fn_c_try_run "$LINENO"; then :
6053 ac_cv_func_lstat_empty_string_bug=no
6054 else
6055 ac_cv_func_lstat_empty_string_bug=yes
6056 fi
6057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6058 conftest.$ac_objext conftest.beam conftest.$ac_ext
6059 fi
6060
6061 fi
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6063 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6064 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6065 case " $LIBOBJS " in
6066 *" lstat.$ac_objext "* ) ;;
6067 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6068 ;;
6069 esac
6070
6071
6072 cat >>confdefs.h <<_ACEOF
6073 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6074 _ACEOF
6075
6076 fi
6077
6078 for ac_header in stdlib.h
6079 do :
6080 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6081 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6082 cat >>confdefs.h <<_ACEOF
6083 #define HAVE_STDLIB_H 1
6084 _ACEOF
6085
6086 fi
6087
6088 done
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6091 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6092 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6093 $as_echo_n "(cached) " >&6
6094 else
6095 if test "$cross_compiling" = yes; then :
6096 ac_cv_func_malloc_0_nonnull=no
6097 else
6098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099 /* end confdefs.h. */
6100 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6101 # include <stdlib.h>
6102 #else
6103 char *malloc ();
6104 #endif
6105
6106 int
6107 main ()
6108 {
6109 return ! malloc (0);
6110 ;
6111 return 0;
6112 }
6113 _ACEOF
6114 if ac_fn_c_try_run "$LINENO"; then :
6115 ac_cv_func_malloc_0_nonnull=yes
6116 else
6117 ac_cv_func_malloc_0_nonnull=no
6118 fi
6119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6120 conftest.$ac_objext conftest.beam conftest.$ac_ext
6121 fi
6122
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6125 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6126 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6127
6128 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6129
6130 else
6131 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6132
6133 case " $LIBOBJS " in
6134 *" malloc.$ac_objext "* ) ;;
6135 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6136 ;;
6137 esac
6138
6139
6140 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6141
6142 fi
6143
6144
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6146 $as_echo_n "checking for working memcmp... " >&6; }
6147 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6149 else
6150 if test "$cross_compiling" = yes; then :
6151 ac_cv_func_memcmp_working=no
6152 else
6153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6154 /* end confdefs.h. */
6155 $ac_includes_default
6156 int
6157 main ()
6158 {
6159
6160 /* Some versions of memcmp are not 8-bit clean. */
6161 char c0 = '\100', c1 = '\200', c2 = '\201';
6162 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6163 return 1;
6164
6165 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6166 or more and with at least one buffer not starting on a 4-byte boundary.
6167 William Lewis provided this test program. */
6168 {
6169 char foo[21];
6170 char bar[21];
6171 int i;
6172 for (i = 0; i < 4; i++)
6173 {
6174 char *a = foo + i;
6175 char *b = bar + i;
6176 strcpy (a, "--------01111111");
6177 strcpy (b, "--------10000000");
6178 if (memcmp (a, b, 16) >= 0)
6179 return 1;
6180 }
6181 return 0;
6182 }
6183
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 if ac_fn_c_try_run "$LINENO"; then :
6189 ac_cv_func_memcmp_working=yes
6190 else
6191 ac_cv_func_memcmp_working=no
6192 fi
6193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6194 conftest.$ac_objext conftest.beam conftest.$ac_ext
6195 fi
6196
6197 fi
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6199 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6200 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6201 *" memcmp.$ac_objext "* ) ;;
6202 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6203 ;;
6204 esac
6205
6206
6207
6208
6209
6210 for ac_header in $ac_header_list
6211 do :
6212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6214 "
6215 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6216 cat >>confdefs.h <<_ACEOF
6217 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6218 _ACEOF
6219
6220 fi
6221
6222 done
6223
6224
6225
6226
6227
6228
6229
6230
6231 for ac_func in getpagesize
6232 do :
6233 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6234 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_GETPAGESIZE 1
6237 _ACEOF
6238
6239 fi
6240 done
6241
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6243 $as_echo_n "checking for working mmap... " >&6; }
6244 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test "$cross_compiling" = yes; then :
6248 ac_cv_func_mmap_fixed_mapped=no
6249 else
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 $ac_includes_default
6253 /* malloc might have been renamed as rpl_malloc. */
6254 #undef malloc
6255
6256 /* Thanks to Mike Haertel and Jim Avera for this test.
6257 Here is a matrix of mmap possibilities:
6258 mmap private not fixed
6259 mmap private fixed at somewhere currently unmapped
6260 mmap private fixed at somewhere already mapped
6261 mmap shared not fixed
6262 mmap shared fixed at somewhere currently unmapped
6263 mmap shared fixed at somewhere already mapped
6264 For private mappings, we should verify that changes cannot be read()
6265 back from the file, nor mmap's back from the file at a different
6266 address. (There have been systems where private was not correctly
6267 implemented like the infamous i386 svr4.0, and systems where the
6268 VM page cache was not coherent with the file system buffer cache
6269 like early versions of FreeBSD and possibly contemporary NetBSD.)
6270 For shared mappings, we should conversely verify that changes get
6271 propagated back to all the places they're supposed to be.
6272
6273 Grep wants private fixed already mapped.
6274 The main things grep needs to know about mmap are:
6275 * does it exist and is it safe to write into the mmap'd area
6276 * how to use it (BSD variants) */
6277
6278 #include <fcntl.h>
6279 #include <sys/mman.h>
6280
6281 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6282 char *malloc ();
6283 #endif
6284
6285 /* This mess was copied from the GNU getpagesize.h. */
6286 #ifndef HAVE_GETPAGESIZE
6287 # ifdef _SC_PAGESIZE
6288 # define getpagesize() sysconf(_SC_PAGESIZE)
6289 # else /* no _SC_PAGESIZE */
6290 # ifdef HAVE_SYS_PARAM_H
6291 # include <sys/param.h>
6292 # ifdef EXEC_PAGESIZE
6293 # define getpagesize() EXEC_PAGESIZE
6294 # else /* no EXEC_PAGESIZE */
6295 # ifdef NBPG
6296 # define getpagesize() NBPG * CLSIZE
6297 # ifndef CLSIZE
6298 # define CLSIZE 1
6299 # endif /* no CLSIZE */
6300 # else /* no NBPG */
6301 # ifdef NBPC
6302 # define getpagesize() NBPC
6303 # else /* no NBPC */
6304 # ifdef PAGESIZE
6305 # define getpagesize() PAGESIZE
6306 # endif /* PAGESIZE */
6307 # endif /* no NBPC */
6308 # endif /* no NBPG */
6309 # endif /* no EXEC_PAGESIZE */
6310 # else /* no HAVE_SYS_PARAM_H */
6311 # define getpagesize() 8192 /* punt totally */
6312 # endif /* no HAVE_SYS_PARAM_H */
6313 # endif /* no _SC_PAGESIZE */
6314
6315 #endif /* no HAVE_GETPAGESIZE */
6316
6317 int
6318 main ()
6319 {
6320 char *data, *data2, *data3;
6321 const char *cdata2;
6322 int i, pagesize;
6323 int fd, fd2;
6324
6325 pagesize = getpagesize ();
6326
6327 /* First, make a file with some known garbage in it. */
6328 data = (char *) malloc (pagesize);
6329 if (!data)
6330 return 1;
6331 for (i = 0; i < pagesize; ++i)
6332 *(data + i) = rand ();
6333 umask (0);
6334 fd = creat ("conftest.mmap", 0600);
6335 if (fd < 0)
6336 return 2;
6337 if (write (fd, data, pagesize) != pagesize)
6338 return 3;
6339 close (fd);
6340
6341 /* Next, check that the tail of a page is zero-filled. File must have
6342 non-zero length, otherwise we risk SIGBUS for entire page. */
6343 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6344 if (fd2 < 0)
6345 return 4;
6346 cdata2 = "";
6347 if (write (fd2, cdata2, 1) != 1)
6348 return 5;
6349 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6350 if (data2 == MAP_FAILED)
6351 return 6;
6352 for (i = 0; i < pagesize; ++i)
6353 if (*(data2 + i))
6354 return 7;
6355 close (fd2);
6356 if (munmap (data2, pagesize))
6357 return 8;
6358
6359 /* Next, try to mmap the file at a fixed address which already has
6360 something else allocated at it. If we can, also make sure that
6361 we see the same garbage. */
6362 fd = open ("conftest.mmap", O_RDWR);
6363 if (fd < 0)
6364 return 9;
6365 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6366 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6367 return 10;
6368 for (i = 0; i < pagesize; ++i)
6369 if (*(data + i) != *(data2 + i))
6370 return 11;
6371
6372 /* Finally, make sure that changes to the mapped area do not
6373 percolate back to the file as seen by read(). (This is a bug on
6374 some variants of i386 svr4.0.) */
6375 for (i = 0; i < pagesize; ++i)
6376 *(data2 + i) = *(data2 + i) + 1;
6377 data3 = (char *) malloc (pagesize);
6378 if (!data3)
6379 return 12;
6380 if (read (fd, data3, pagesize) != pagesize)
6381 return 13;
6382 for (i = 0; i < pagesize; ++i)
6383 if (*(data + i) != *(data3 + i))
6384 return 14;
6385 close (fd);
6386 return 0;
6387 }
6388 _ACEOF
6389 if ac_fn_c_try_run "$LINENO"; then :
6390 ac_cv_func_mmap_fixed_mapped=yes
6391 else
6392 ac_cv_func_mmap_fixed_mapped=no
6393 fi
6394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6395 conftest.$ac_objext conftest.beam conftest.$ac_ext
6396 fi
6397
6398 fi
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6400 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6401 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6402
6403 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6404
6405 fi
6406 rm -f conftest.mmap conftest.txt
6407
6408 for ac_header in stdlib.h
6409 do :
6410 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6411 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6412 cat >>confdefs.h <<_ACEOF
6413 #define HAVE_STDLIB_H 1
6414 _ACEOF
6415
6416 fi
6417
6418 done
6419
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6421 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6422 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6424 else
6425 if test "$cross_compiling" = yes; then :
6426 ac_cv_func_realloc_0_nonnull=no
6427 else
6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h. */
6430 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6431 # include <stdlib.h>
6432 #else
6433 char *realloc ();
6434 #endif
6435
6436 int
6437 main ()
6438 {
6439 return ! realloc (0, 0);
6440 ;
6441 return 0;
6442 }
6443 _ACEOF
6444 if ac_fn_c_try_run "$LINENO"; then :
6445 ac_cv_func_realloc_0_nonnull=yes
6446 else
6447 ac_cv_func_realloc_0_nonnull=no
6448 fi
6449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6450 conftest.$ac_objext conftest.beam conftest.$ac_ext
6451 fi
6452
6453 fi
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6455 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6456 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6457
6458 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6459
6460 else
6461 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6462
6463 case " $LIBOBJS " in
6464 *" realloc.$ac_objext "* ) ;;
6465 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6466 ;;
6467 esac
6468
6469
6470 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6471
6472 fi
6473
6474
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6476 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6477 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 if test "$cross_compiling" = yes; then :
6481 ac_cv_func_stat_empty_string_bug=yes
6482 else
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485 $ac_includes_default
6486 int
6487 main ()
6488 {
6489 struct stat sbuf;
6490 return stat ("", &sbuf) == 0;
6491 ;
6492 return 0;
6493 }
6494 _ACEOF
6495 if ac_fn_c_try_run "$LINENO"; then :
6496 ac_cv_func_stat_empty_string_bug=no
6497 else
6498 ac_cv_func_stat_empty_string_bug=yes
6499 fi
6500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6501 conftest.$ac_objext conftest.beam conftest.$ac_ext
6502 fi
6503
6504 fi
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6506 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6507 if test $ac_cv_func_stat_empty_string_bug = yes; then
6508 case " $LIBOBJS " in
6509 *" stat.$ac_objext "* ) ;;
6510 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6511 ;;
6512 esac
6513
6514
6515 cat >>confdefs.h <<_ACEOF
6516 #define HAVE_STAT_EMPTY_STRING_BUG 1
6517 _ACEOF
6518
6519 fi
6520
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6522 $as_echo_n "checking for working strtod... " >&6; }
6523 if test "${ac_cv_func_strtod+set}" = set; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 if test "$cross_compiling" = yes; then :
6527 ac_cv_func_strtod=no
6528 else
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531
6532 $ac_includes_default
6533 #ifndef strtod
6534 double strtod ();
6535 #endif
6536 int
6537 main()
6538 {
6539 {
6540 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6541 char *string = " +69";
6542 char *term;
6543 double value;
6544 value = strtod (string, &term);
6545 if (value != 69 || term != (string + 4))
6546 return 1;
6547 }
6548
6549 {
6550 /* Under Solaris 2.4, strtod returns the wrong value for the
6551 terminating character under some conditions. */
6552 char *string = "NaN";
6553 char *term;
6554 strtod (string, &term);
6555 if (term != string && *(term - 1) == 0)
6556 return 1;
6557 }
6558 return 0;
6559 }
6560
6561 _ACEOF
6562 if ac_fn_c_try_run "$LINENO"; then :
6563 ac_cv_func_strtod=yes
6564 else
6565 ac_cv_func_strtod=no
6566 fi
6567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6568 conftest.$ac_objext conftest.beam conftest.$ac_ext
6569 fi
6570
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6573 $as_echo "$ac_cv_func_strtod" >&6; }
6574 if test $ac_cv_func_strtod = no; then
6575 case " $LIBOBJS " in
6576 *" strtod.$ac_objext "* ) ;;
6577 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6578 ;;
6579 esac
6580
6581 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6582 if test "x$ac_cv_func_pow" = x""yes; then :
6583
6584 fi
6585
6586 if test $ac_cv_func_pow = no; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6588 $as_echo_n "checking for pow in -lm... " >&6; }
6589 if test "${ac_cv_lib_m_pow+set}" = set; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 ac_check_lib_save_LIBS=$LIBS
6593 LIBS="-lm $LIBS"
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6596
6597 /* Override any GCC internal prototype to avoid an error.
6598 Use char because int might match the return type of a GCC
6599 builtin and then its argument prototype would still apply. */
6600 #ifdef __cplusplus
6601 extern "C"
6602 #endif
6603 char pow ();
6604 int
6605 main ()
6606 {
6607 return pow ();
6608 ;
6609 return 0;
6610 }
6611 _ACEOF
6612 if ac_fn_c_try_link "$LINENO"; then :
6613 ac_cv_lib_m_pow=yes
6614 else
6615 ac_cv_lib_m_pow=no
6616 fi
6617 rm -f core conftest.err conftest.$ac_objext \
6618 conftest$ac_exeext conftest.$ac_ext
6619 LIBS=$ac_check_lib_save_LIBS
6620 fi
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6622 $as_echo "$ac_cv_lib_m_pow" >&6; }
6623 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6624 POW_LIB=-lm
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6627 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6628 fi
6629
6630 fi
6631
6632 fi
6633
6634 for ac_func in vprintf
6635 do :
6636 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6637 if test "x$ac_cv_func_vprintf" = x""yes; then :
6638 cat >>confdefs.h <<_ACEOF
6639 #define HAVE_VPRINTF 1
6640 _ACEOF
6641
6642 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6643 if test "x$ac_cv_func__doprnt" = x""yes; then :
6644
6645 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6646
6647 fi
6648
6649 fi
6650 done
6651
6652
6653
6654 ################################################################################
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6656 $as_echo_n "checking whether to use static linking... " >&6; }
6657 # Check whether --enable-static_link was given.
6658 if test "${enable_static_link+set}" = set; then :
6659 enableval=$enable_static_link; STATIC_LINK=$enableval
6660 else
6661 STATIC_LINK=no
6662 fi
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6665 $as_echo "$STATIC_LINK" >&6; }
6666
6667 ################################################################################
6668
6669
6670 ################################################################################
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6672 $as_echo_n "checking file owner... " >&6; }
6673
6674 # Check whether --with-user was given.
6675 if test "${with_user+set}" = set; then :
6676 withval=$with_user; OWNER=$withval
6677 fi
6678
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6680 $as_echo "$OWNER" >&6; }
6681
6682 if test x$OWNER != x; then
6683 INSTALL="$INSTALL -o $OWNER"
6684 fi
6685
6686 ################################################################################
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6688 $as_echo_n "checking group owner... " >&6; }
6689
6690 # Check whether --with-group was given.
6691 if test "${with_group+set}" = set; then :
6692 withval=$with_group; GROUP=$withval
6693 fi
6694
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6696 $as_echo "$GROUP" >&6; }
6697
6698 if test x$GROUP != x; then
6699 INSTALL="$INSTALL -g $GROUP"
6700 fi
6701
6702 ################################################################################
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6704 $as_echo_n "checking device node uid... " >&6; }
6705
6706
6707 # Check whether --with-device-uid was given.
6708 if test "${with_device_uid+set}" = set; then :
6709 withval=$with_device_uid; DM_DEVICE_UID=$withval
6710 else
6711 DM_DEVICE_UID=0
6712 fi
6713
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6715 $as_echo "$DM_DEVICE_UID" >&6; }
6716
6717 ################################################################################
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6719 $as_echo_n "checking device node gid... " >&6; }
6720
6721
6722 # Check whether --with-device-gid was given.
6723 if test "${with_device_gid+set}" = set; then :
6724 withval=$with_device_gid; DM_DEVICE_GID=$withval
6725 else
6726 DM_DEVICE_GID=0
6727 fi
6728
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6730 $as_echo "$DM_DEVICE_GID" >&6; }
6731
6732 ################################################################################
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6734 $as_echo_n "checking device node mode... " >&6; }
6735
6736
6737 # Check whether --with-device-mode was given.
6738 if test "${with_device_mode+set}" = set; then :
6739 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6740 else
6741 DM_DEVICE_MODE=0600
6742 fi
6743
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6745 $as_echo "$DM_DEVICE_MODE" >&6; }
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6748 $as_echo_n "checking when to create device nodes... " >&6; }
6749
6750 # Check whether --with-device-nodes-on was given.
6751 if test "${with_device_nodes_on+set}" = set; then :
6752 withval=$with_device_nodes_on; ADD_NODE=$withval
6753 else
6754 ADD_NODE=resume
6755 fi
6756
6757 case "$ADD_NODE" in
6758 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6759 create) add_on=DM_ADD_NODE_ON_CREATE;;
6760 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6761 esac
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6763 $as_echo "on $ADD_NODE" >&6; }
6764
6765 cat >>confdefs.h <<_ACEOF
6766 #define DEFAULT_DM_ADD_NODE $add_on
6767 _ACEOF
6768
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6771 $as_echo_n "checking default name mangling... " >&6; }
6772
6773 # Check whether --with-default-name-mangling was given.
6774 if test "${with_default_name_mangling+set}" = set; then :
6775 withval=$with_default_name_mangling; MANGLING=$withval
6776 else
6777 MANGLING=auto
6778 fi
6779
6780 case "$MANGLING" in
6781 auto) mangling=DM_STRING_MANGLING_AUTO;;
6782 disabled) mangling=DM_STRING_MANGLING_NONE;;
6783 hex) mangling=DM_STRING_MANGLING_HEX;;
6784 *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6785 esac
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6787 $as_echo "$MANGLING" >&6; }
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define DEFAULT_DM_NAME_MANGLING $mangling
6791 _ACEOF
6792
6793
6794 ################################################################################
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6796 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6797 # Check whether --enable-lvm1_fallback was given.
6798 if test "${enable_lvm1_fallback+set}" = set; then :
6799 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6800 else
6801 LVM1_FALLBACK=no
6802 fi
6803
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6805 $as_echo "$LVM1_FALLBACK" >&6; }
6806
6807 if test x$LVM1_FALLBACK = xyes; then
6808
6809 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6810
6811 fi
6812
6813 ################################################################################
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6815 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6816
6817 # Check whether --with-lvm1 was given.
6818 if test "${with_lvm1+set}" = set; then :
6819 withval=$with_lvm1; LVM1=$withval
6820 else
6821 LVM1=internal
6822 fi
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6825 $as_echo "$LVM1" >&6; }
6826
6827 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6828 then as_fn_error $? "--with-lvm1 parameter invalid
6829 " "$LINENO" 5
6830 fi;
6831
6832 if test x$LVM1 = xinternal; then
6833
6834 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6835
6836 fi
6837
6838 ################################################################################
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6840 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6841
6842 # Check whether --with-pool was given.
6843 if test "${with_pool+set}" = set; then :
6844 withval=$with_pool; POOL=$withval
6845 else
6846 POOL=internal
6847 fi
6848
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6850 $as_echo "$POOL" >&6; }
6851
6852 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6853 then as_fn_error $? "--with-pool parameter invalid
6854 " "$LINENO" 5
6855 fi;
6856
6857 if test x$POOL = xinternal; then
6858
6859 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6860
6861 fi
6862
6863 ################################################################################
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6865 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6866
6867 # Check whether --with-cluster was given.
6868 if test "${with_cluster+set}" = set; then :
6869 withval=$with_cluster; CLUSTER=$withval
6870 fi
6871
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6873 $as_echo "$CLUSTER" >&6; }
6874
6875 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6876 then as_fn_error $? "--with-cluster parameter invalid
6877 " "$LINENO" 5
6878 fi;
6879
6880 if test x$CLUSTER = xinternal; then
6881
6882 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6883
6884 fi
6885
6886 ################################################################################
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6888 $as_echo_n "checking whether to include snapshots... " >&6; }
6889
6890 # Check whether --with-snapshots was given.
6891 if test "${with_snapshots+set}" = set; then :
6892 withval=$with_snapshots; SNAPSHOTS=$withval
6893 else
6894 SNAPSHOTS=internal
6895 fi
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6898 $as_echo "$SNAPSHOTS" >&6; }
6899
6900 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6901 then as_fn_error $? "--with-snapshots parameter invalid
6902 " "$LINENO" 5
6903 fi;
6904
6905 if test x$SNAPSHOTS = xinternal; then
6906
6907 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6908
6909 fi
6910
6911 ################################################################################
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6913 $as_echo_n "checking whether to include mirrors... " >&6; }
6914
6915 # Check whether --with-mirrors was given.
6916 if test "${with_mirrors+set}" = set; then :
6917 withval=$with_mirrors; MIRRORS=$withval
6918 else
6919 MIRRORS=internal
6920 fi
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6923 $as_echo "$MIRRORS" >&6; }
6924
6925 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6926 then as_fn_error $? "--with-mirrors parameter invalid
6927 " "$LINENO" 5
6928 fi;
6929
6930 if test x$MIRRORS = xinternal; then
6931
6932 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6933
6934 fi
6935
6936 ################################################################################
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6938 $as_echo_n "checking whether to include raid... " >&6; }
6939
6940 # Check whether --with-raid was given.
6941 if test "${with_raid+set}" = set; then :
6942 withval=$with_raid; RAID=$withval
6943 else
6944 RAID=internal
6945 fi
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6948 $as_echo "$RAID" >&6; }
6949
6950 if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6951 then as_fn_error $? "--with-raid parameter invalid
6952 " "$LINENO" 5
6953 fi;
6954
6955 if test x$RAID = xinternal; then
6956
6957 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6958
6959 fi
6960
6961 ################################################################################
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6963 $as_echo_n "checking whether to include replicators... " >&6; }
6964
6965 # Check whether --with-replicators was given.
6966 if test "${with_replicators+set}" = set; then :
6967 withval=$with_replicators; REPLICATORS=$withval
6968 else
6969 REPLICATORS=none
6970 fi
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6973 $as_echo "$REPLICATORS" >&6; }
6974
6975 case "$REPLICATORS" in
6976 none|shared) ;;
6977 internal)
6978 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6979 ;;
6980 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6981 esac
6982
6983 ################################################################################
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6985 $as_echo_n "checking whether to include thin provisioning... " >&6; }
6986
6987 # Check whether --with-thin was given.
6988 if test "${with_thin+set}" = set; then :
6989 withval=$with_thin; THIN=$withval
6990 else
6991 THIN=none
6992 fi
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6995 $as_echo "$THIN" >&6; }
6996
6997 case "$THIN" in
6998 none|shared) ;;
6999 internal)
7000 $as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7001 ;;
7002 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7003 esac
7004
7005 ################################################################################
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7007 $as_echo_n "checking whether to enable readline... " >&6; }
7008 # Check whether --enable-readline was given.
7009 if test "${enable_readline+set}" = set; then :
7010 enableval=$enable_readline; READLINE=$enableval
7011 else
7012 READLINE=maybe
7013 fi
7014
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7016 $as_echo "$READLINE" >&6; }
7017
7018 ################################################################################
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7020 $as_echo_n "checking whether to enable realtime support... " >&6; }
7021 # Check whether --enable-realtime was given.
7022 if test "${enable_realtime+set}" = set; then :
7023 enableval=$enable_realtime; REALTIME=$enableval
7024 fi
7025
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7027 $as_echo "$REALTIME" >&6; }
7028
7029 ################################################################################
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7031 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7032 # Check whether --enable-ocf was given.
7033 if test "${enable_ocf+set}" = set; then :
7034 enableval=$enable_ocf; OCF=$enableval
7035 else
7036 OCF=no
7037 fi
7038
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7040 $as_echo "$OCF" >&6; }
7041
7042 # Check whether --with-ocfdir was given.
7043 if test "${with_ocfdir+set}" = set; then :
7044 withval=$with_ocfdir; OCFDIR=$withval
7045 else
7046 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7047 fi
7048
7049
7050 ################################################################################
7051 pkg_config_init() {
7052
7053
7054
7055
7056
7057
7058 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7059 if test -n "$ac_tool_prefix"; then
7060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7061 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 case $PKG_CONFIG in
7068 [\\/]* | ?:[\\/]*)
7069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7070 ;;
7071 *)
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7082 fi
7083 done
7084 done
7085 IFS=$as_save_IFS
7086
7087 ;;
7088 esac
7089 fi
7090 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7091 if test -n "$PKG_CONFIG"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7093 $as_echo "$PKG_CONFIG" >&6; }
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_path_PKG_CONFIG"; then
7102 ac_pt_PKG_CONFIG=$PKG_CONFIG
7103 # Extract the first word of "pkg-config", so it can be a program name with args.
7104 set dummy pkg-config; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7109 else
7110 case $ac_pt_PKG_CONFIG in
7111 [\\/]* | ?:[\\/]*)
7112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7113 ;;
7114 *)
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130 ;;
7131 esac
7132 fi
7133 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7134 if test -n "$ac_pt_PKG_CONFIG"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7136 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142 if test "x$ac_pt_PKG_CONFIG" = x; then
7143 PKG_CONFIG=""
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 PKG_CONFIG=$ac_pt_PKG_CONFIG
7152 fi
7153 else
7154 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7155 fi
7156
7157 fi
7158 if test -n "$PKG_CONFIG"; then
7159 _pkg_min_version=0.9.0
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7161 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7162 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164 $as_echo "yes" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 PKG_CONFIG=""
7169 fi
7170 fi
7171
7172 pkg_failed=no
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7174 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7175
7176 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7177 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7178 elif test -n "$PKG_CONFIG"; then
7179 if test -n "$PKG_CONFIG" && \
7180 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7181 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7182 ac_status=$?
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; }; then
7185 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7186 else
7187 pkg_failed=yes
7188 fi
7189 else
7190 pkg_failed=untried
7191 fi
7192 if test -n "$PKGCONFIGINIT_LIBS"; then
7193 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7194 elif test -n "$PKG_CONFIG"; then
7195 if test -n "$PKG_CONFIG" && \
7196 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7197 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7198 ac_status=$?
7199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; }; then
7201 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7202 else
7203 pkg_failed=yes
7204 fi
7205 else
7206 pkg_failed=untried
7207 fi
7208
7209
7210
7211 if test $pkg_failed = yes; then
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214
7215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7216 _pkg_short_errors_supported=yes
7217 else
7218 _pkg_short_errors_supported=no
7219 fi
7220 if test $_pkg_short_errors_supported = yes; then
7221 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7222 else
7223 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7224 fi
7225 # Put the nasty error message in config.log where it belongs
7226 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7227
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7229 $as_echo "pkg-config initialized" >&6; }
7230 elif test $pkg_failed = untried; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7234 $as_echo "pkg-config initialized" >&6; }
7235 else
7236 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7237 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7239 $as_echo "yes" >&6; }
7240
7241 fi
7242 PKGCONFIG_INIT=1
7243 }
7244
7245 ################################################################################
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7247 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7248
7249 # Check whether --with-clvmd was given.
7250 if test "${with_clvmd+set}" = set; then :
7251 withval=$with_clvmd; CLVMD=$withval
7252 else
7253 CLVMD=none
7254 fi
7255
7256 if test x$CLVMD = xyes; then
7257 CLVMD=all
7258 fi
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7260 $as_echo "$CLVMD" >&6; }
7261
7262 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7263 CLUSTER=internal
7264 fi
7265
7266 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7267 pkg_config_init
7268 fi
7269
7270 CLVMD_CMANAGERS=""
7271 CLVMD_NEEDS_QDISKD=no
7272
7273 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7274 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7275 fi
7276 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7277 BUILDCMAN=yes
7278 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7279 CLVMD_NEEDS_QDISKD=yes
7280 fi
7281 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7282 BUILDCOROSYNC=yes
7283 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7284 fi
7285 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7286 BUILDOPENAIS=yes
7287 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7288 fi
7289 if test x$CLVMD_NEEDS_QDISKD != xno; then
7290 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7291 fi
7292
7293 soft_bailout() {
7294 NOTFOUND=1
7295 }
7296
7297 hard_bailout() {
7298 as_fn_error $? "bailing out" "$LINENO" 5
7299 }
7300
7301 if test x$CLVMD = xall; then
7302 bailout=soft_bailout
7303 BUILDCMAN=yes
7304 BUILDCOROSYNC=yes
7305 BUILDOPENAIS=yes
7306 else
7307 bailout=hard_bailout
7308 fi
7309
7310 check_lib_no_libs() {
7311 lib_no_libs_arg1=$1
7312 shift
7313 lib_no_libs_arg2=$1
7314 shift
7315 lib_no_libs_args=$@
7316 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7318 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7319 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7320 $as_echo_n "(cached) " >&6
7321 else
7322 ac_check_lib_save_LIBS=$LIBS
7323 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326
7327 /* Override any GCC internal prototype to avoid an error.
7328 Use char because int might match the return type of a GCC
7329 builtin and then its argument prototype would still apply. */
7330 #ifdef __cplusplus
7331 extern "C"
7332 #endif
7333 char $lib_no_libs_arg2 ();
7334 int
7335 main ()
7336 {
7337 return $lib_no_libs_arg2 ();
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 if ac_fn_c_try_link "$LINENO"; then :
7343 eval "$as_ac_Lib=yes"
7344 else
7345 eval "$as_ac_Lib=no"
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext \
7348 conftest$ac_exeext conftest.$ac_ext
7349 LIBS=$ac_check_lib_save_LIBS
7350 fi
7351 eval ac_res=\$$as_ac_Lib
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7353 $as_echo "$ac_res" >&6; }
7354 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7355 cat >>confdefs.h <<_ACEOF
7356 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7357 _ACEOF
7358
7359 LIBS="-l$lib_no_libs_arg1 $LIBS"
7360
7361 else
7362 $bailout
7363 fi
7364
7365 LIBS=$ac_check_lib_save_LIBS
7366 }
7367
7368 if test x$BUILDCMAN = xyes; then
7369
7370 pkg_failed=no
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7372 $as_echo_n "checking for CMAN... " >&6; }
7373
7374 if test -n "$CMAN_CFLAGS"; then
7375 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7376 elif test -n "$PKG_CONFIG"; then
7377 if test -n "$PKG_CONFIG" && \
7378 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7379 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7380 ac_status=$?
7381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7382 test $ac_status = 0; }; then
7383 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7384 else
7385 pkg_failed=yes
7386 fi
7387 else
7388 pkg_failed=untried
7389 fi
7390 if test -n "$CMAN_LIBS"; then
7391 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7392 elif test -n "$PKG_CONFIG"; then
7393 if test -n "$PKG_CONFIG" && \
7394 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7395 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7396 ac_status=$?
7397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398 test $ac_status = 0; }; then
7399 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7400 else
7401 pkg_failed=yes
7402 fi
7403 else
7404 pkg_failed=untried
7405 fi
7406
7407
7408
7409 if test $pkg_failed = yes; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411 $as_echo "no" >&6; }
7412
7413 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7414 _pkg_short_errors_supported=yes
7415 else
7416 _pkg_short_errors_supported=no
7417 fi
7418 if test $_pkg_short_errors_supported = yes; then
7419 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7420 else
7421 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7422 fi
7423 # Put the nasty error message in config.log where it belongs
7424 echo "$CMAN_PKG_ERRORS" >&5
7425
7426 NOTFOUND=0
7427 for ac_header in libcman.h
7428 do :
7429 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7430 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7431 cat >>confdefs.h <<_ACEOF
7432 #define HAVE_LIBCMAN_H 1
7433 _ACEOF
7434
7435 else
7436 $bailout
7437 fi
7438
7439 done
7440
7441 check_lib_no_libs cman cman_init
7442 if test $NOTFOUND = 0; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7444 $as_echo "no pkg for libcman, using -lcman" >&6; }
7445 CMAN_LIBS="-lcman"
7446 HAVE_CMAN=yes
7447 fi
7448 elif test $pkg_failed = untried; then
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 NOTFOUND=0
7452 for ac_header in libcman.h
7453 do :
7454 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7455 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7456 cat >>confdefs.h <<_ACEOF
7457 #define HAVE_LIBCMAN_H 1
7458 _ACEOF
7459
7460 else
7461 $bailout
7462 fi
7463
7464 done
7465
7466 check_lib_no_libs cman cman_init
7467 if test $NOTFOUND = 0; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7469 $as_echo "no pkg for libcman, using -lcman" >&6; }
7470 CMAN_LIBS="-lcman"
7471 HAVE_CMAN=yes
7472 fi
7473 else
7474 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7475 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7477 $as_echo "yes" >&6; }
7478 HAVE_CMAN=yes
7479 fi
7480 CHECKCONFDB=yes
7481 CHECKDLM=yes
7482 fi
7483
7484 if test x$BUILDCOROSYNC = xyes || \
7485 test x$BUILDOPENAIS = xyes; then
7486
7487 pkg_failed=no
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7489 $as_echo_n "checking for COROSYNC... " >&6; }
7490
7491 if test -n "$COROSYNC_CFLAGS"; then
7492 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7493 elif test -n "$PKG_CONFIG"; then
7494 if test -n "$PKG_CONFIG" && \
7495 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7496 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7497 ac_status=$?
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; }; then
7500 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7501 else
7502 pkg_failed=yes
7503 fi
7504 else
7505 pkg_failed=untried
7506 fi
7507 if test -n "$COROSYNC_LIBS"; then
7508 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7509 elif test -n "$PKG_CONFIG"; then
7510 if test -n "$PKG_CONFIG" && \
7511 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7512 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7517 else
7518 pkg_failed=yes
7519 fi
7520 else
7521 pkg_failed=untried
7522 fi
7523
7524
7525
7526 if test $pkg_failed = yes; then
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529
7530 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7531 _pkg_short_errors_supported=yes
7532 else
7533 _pkg_short_errors_supported=no
7534 fi
7535 if test $_pkg_short_errors_supported = yes; then
7536 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7537 else
7538 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7539 fi
7540 # Put the nasty error message in config.log where it belongs
7541 echo "$COROSYNC_PKG_ERRORS" >&5
7542
7543 $bailout
7544 elif test $pkg_failed = untried; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547 $bailout
7548 else
7549 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7550 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7552 $as_echo "yes" >&6; }
7553 HAVE_COROSYNC=yes
7554 fi
7555 CHECKCONFDB=yes
7556 CHECKCMAP=yes
7557 fi
7558
7559 if test x$BUILDCOROSYNC = xyes; then
7560
7561 pkg_failed=no
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7563 $as_echo_n "checking for QUORUM... " >&6; }
7564
7565 if test -n "$QUORUM_CFLAGS"; then
7566 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7567 elif test -n "$PKG_CONFIG"; then
7568 if test -n "$PKG_CONFIG" && \
7569 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7570 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7571 ac_status=$?
7572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7573 test $ac_status = 0; }; then
7574 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7575 else
7576 pkg_failed=yes
7577 fi
7578 else
7579 pkg_failed=untried
7580 fi
7581 if test -n "$QUORUM_LIBS"; then
7582 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7583 elif test -n "$PKG_CONFIG"; then
7584 if test -n "$PKG_CONFIG" && \
7585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7586 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7587 ac_status=$?
7588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589 test $ac_status = 0; }; then
7590 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7591 else
7592 pkg_failed=yes
7593 fi
7594 else
7595 pkg_failed=untried
7596 fi
7597
7598
7599
7600 if test $pkg_failed = yes; then
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603
7604 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7605 _pkg_short_errors_supported=yes
7606 else
7607 _pkg_short_errors_supported=no
7608 fi
7609 if test $_pkg_short_errors_supported = yes; then
7610 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7611 else
7612 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7613 fi
7614 # Put the nasty error message in config.log where it belongs
7615 echo "$QUORUM_PKG_ERRORS" >&5
7616
7617 $bailout
7618 elif test $pkg_failed = untried; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 $bailout
7622 else
7623 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7624 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7626 $as_echo "yes" >&6; }
7627 HAVE_QUORUM=yes
7628 fi
7629 CHECKCPG=yes
7630 CHECKDLM=yes
7631 fi
7632
7633 if test x$BUILDOPENAIS = xyes; then
7634
7635 pkg_failed=no
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7637 $as_echo_n "checking for SALCK... " >&6; }
7638
7639 if test -n "$SALCK_CFLAGS"; then
7640 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7641 elif test -n "$PKG_CONFIG"; then
7642 if test -n "$PKG_CONFIG" && \
7643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7644 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7645 ac_status=$?
7646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647 test $ac_status = 0; }; then
7648 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7649 else
7650 pkg_failed=yes
7651 fi
7652 else
7653 pkg_failed=untried
7654 fi
7655 if test -n "$SALCK_LIBS"; then
7656 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7657 elif test -n "$PKG_CONFIG"; then
7658 if test -n "$PKG_CONFIG" && \
7659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7660 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7661 ac_status=$?
7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7663 test $ac_status = 0; }; then
7664 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7665 else
7666 pkg_failed=yes
7667 fi
7668 else
7669 pkg_failed=untried
7670 fi
7671
7672
7673
7674 if test $pkg_failed = yes; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677
7678 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7679 _pkg_short_errors_supported=yes
7680 else
7681 _pkg_short_errors_supported=no
7682 fi
7683 if test $_pkg_short_errors_supported = yes; then
7684 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7685 else
7686 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7687 fi
7688 # Put the nasty error message in config.log where it belongs
7689 echo "$SALCK_PKG_ERRORS" >&5
7690
7691 $bailout
7692 elif test $pkg_failed = untried; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 $bailout
7696 else
7697 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7698 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700 $as_echo "yes" >&6; }
7701 HAVE_SALCK=yes
7702 fi
7703 CHECKCPG=yes
7704 fi
7705
7706
7707
7708 if test x$CHECKCONFDB = xyes; then
7709
7710 pkg_failed=no
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7712 $as_echo_n "checking for CONFDB... " >&6; }
7713
7714 if test -n "$CONFDB_CFLAGS"; then
7715 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7716 elif test -n "$PKG_CONFIG"; then
7717 if test -n "$PKG_CONFIG" && \
7718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7719 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7720 ac_status=$?
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }; then
7723 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7724 else
7725 pkg_failed=yes
7726 fi
7727 else
7728 pkg_failed=untried
7729 fi
7730 if test -n "$CONFDB_LIBS"; then
7731 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7732 elif test -n "$PKG_CONFIG"; then
7733 if test -n "$PKG_CONFIG" && \
7734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7735 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7736 ac_status=$?
7737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7738 test $ac_status = 0; }; then
7739 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7740 else
7741 pkg_failed=yes
7742 fi
7743 else
7744 pkg_failed=untried
7745 fi
7746
7747
7748
7749 if test $pkg_failed = yes; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7752
7753 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7754 _pkg_short_errors_supported=yes
7755 else
7756 _pkg_short_errors_supported=no
7757 fi
7758 if test $_pkg_short_errors_supported = yes; then
7759 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7760 else
7761 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7762 fi
7763 # Put the nasty error message in config.log where it belongs
7764 echo "$CONFDB_PKG_ERRORS" >&5
7765
7766 HAVE_CONFDB=no
7767 elif test $pkg_failed = untried; then
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769 $as_echo "no" >&6; }
7770 HAVE_CONFDB=no
7771 else
7772 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7773 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7775 $as_echo "yes" >&6; }
7776 HAVE_CONFDB=yes
7777 fi
7778
7779 for ac_header in corosync/confdb.h
7780 do :
7781 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7782 if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7783 cat >>confdefs.h <<_ACEOF
7784 #define HAVE_COROSYNC_CONFDB_H 1
7785 _ACEOF
7786 HAVE_CONFDB_H=yes
7787 else
7788 HAVE_CONFDB_H=no
7789 fi
7790
7791 done
7792
7793
7794 if test x$HAVE_CONFDB != xyes && \
7795 test x$HAVE_CONFDB_H = xyes; then
7796 check_lib_no_libs confdb confdb_initialize
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7798 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7799 CONFDB_LIBS="-lconfdb"
7800 HAVE_CONFDB=yes
7801 fi
7802 fi
7803
7804
7805 if test x$CHECKCMAP = xyes; then
7806
7807 pkg_failed=no
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7809 $as_echo_n "checking for CMAP... " >&6; }
7810
7811 if test -n "$CMAP_CFLAGS"; then
7812 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7813 elif test -n "$PKG_CONFIG"; then
7814 if test -n "$PKG_CONFIG" && \
7815 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7816 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7817 ac_status=$?
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; }; then
7820 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7821 else
7822 pkg_failed=yes
7823 fi
7824 else
7825 pkg_failed=untried
7826 fi
7827 if test -n "$CMAP_LIBS"; then
7828 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7829 elif test -n "$PKG_CONFIG"; then
7830 if test -n "$PKG_CONFIG" && \
7831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7832 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7833 ac_status=$?
7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7835 test $ac_status = 0; }; then
7836 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7837 else
7838 pkg_failed=yes
7839 fi
7840 else
7841 pkg_failed=untried
7842 fi
7843
7844
7845
7846 if test $pkg_failed = yes; then
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848 $as_echo "no" >&6; }
7849
7850 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7851 _pkg_short_errors_supported=yes
7852 else
7853 _pkg_short_errors_supported=no
7854 fi
7855 if test $_pkg_short_errors_supported = yes; then
7856 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7857 else
7858 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7859 fi
7860 # Put the nasty error message in config.log where it belongs
7861 echo "$CMAP_PKG_ERRORS" >&5
7862
7863 HAVE_CMAP=no
7864 elif test $pkg_failed = untried; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 HAVE_CMAP=no
7868 else
7869 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
7870 CMAP_LIBS=$pkg_cv_CMAP_LIBS
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7873 HAVE_CMAP=yes
7874 fi
7875
7876 for ac_header in corosync/cmap.h
7877 do :
7878 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
7879 if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
7880 cat >>confdefs.h <<_ACEOF
7881 #define HAVE_COROSYNC_CMAP_H 1
7882 _ACEOF
7883 HAVE_CMAP_H=yes
7884 else
7885 HAVE_CMAP_H=no
7886 fi
7887
7888 done
7889
7890
7891 if test x$HAVE_CMAP != xyes && \
7892 test x$HAVE_CMAP_H = xyes; then
7893 check_lib_no_libs cmap cmap_initialize
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
7895 $as_echo "no pkg for cmap, using -lcmap" >&6; }
7896 CMAP_LIBS="-lcmap"
7897 HAVE_CMAP=yes
7898 fi
7899 fi
7900
7901 if test x$BUILDCOROSYNC = xyes; then
7902 if test x$HAVE_CMAP != xyes && \
7903 test x$HAVE_CONFDB != xyes && \
7904 test x$CLVMD != xall; then
7905 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
7906 fi
7907 fi
7908
7909 if test x$CHECKCPG = xyes; then
7910
7911 pkg_failed=no
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7913 $as_echo_n "checking for CPG... " >&6; }
7914
7915 if test -n "$CPG_CFLAGS"; then
7916 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7917 elif test -n "$PKG_CONFIG"; then
7918 if test -n "$PKG_CONFIG" && \
7919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7920 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7921 ac_status=$?
7922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7923 test $ac_status = 0; }; then
7924 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7925 else
7926 pkg_failed=yes
7927 fi
7928 else
7929 pkg_failed=untried
7930 fi
7931 if test -n "$CPG_LIBS"; then
7932 pkg_cv_CPG_LIBS="$CPG_LIBS"
7933 elif test -n "$PKG_CONFIG"; then
7934 if test -n "$PKG_CONFIG" && \
7935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7936 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7937 ac_status=$?
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7941 else
7942 pkg_failed=yes
7943 fi
7944 else
7945 pkg_failed=untried
7946 fi
7947
7948
7949
7950 if test $pkg_failed = yes; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953
7954 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7955 _pkg_short_errors_supported=yes
7956 else
7957 _pkg_short_errors_supported=no
7958 fi
7959 if test $_pkg_short_errors_supported = yes; then
7960 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7961 else
7962 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7963 fi
7964 # Put the nasty error message in config.log where it belongs
7965 echo "$CPG_PKG_ERRORS" >&5
7966
7967 $bailout
7968 elif test $pkg_failed = untried; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970 $as_echo "no" >&6; }
7971 $bailout
7972 else
7973 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7974 CPG_LIBS=$pkg_cv_CPG_LIBS
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7976 $as_echo "yes" >&6; }
7977 HAVE_CPG=yes
7978 fi
7979 fi
7980
7981 if test x$CHECKDLM = xyes; then
7982
7983 pkg_failed=no
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7985 $as_echo_n "checking for DLM... " >&6; }
7986
7987 if test -n "$DLM_CFLAGS"; then
7988 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7989 elif test -n "$PKG_CONFIG"; then
7990 if test -n "$PKG_CONFIG" && \
7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7992 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7993 ac_status=$?
7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995 test $ac_status = 0; }; then
7996 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
7997 else
7998 pkg_failed=yes
7999 fi
8000 else
8001 pkg_failed=untried
8002 fi
8003 if test -n "$DLM_LIBS"; then
8004 pkg_cv_DLM_LIBS="$DLM_LIBS"
8005 elif test -n "$PKG_CONFIG"; then
8006 if test -n "$PKG_CONFIG" && \
8007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8008 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8009 ac_status=$?
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8013 else
8014 pkg_failed=yes
8015 fi
8016 else
8017 pkg_failed=untried
8018 fi
8019
8020
8021
8022 if test $pkg_failed = yes; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025
8026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8027 _pkg_short_errors_supported=yes
8028 else
8029 _pkg_short_errors_supported=no
8030 fi
8031 if test $_pkg_short_errors_supported = yes; then
8032 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8033 else
8034 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8035 fi
8036 # Put the nasty error message in config.log where it belongs
8037 echo "$DLM_PKG_ERRORS" >&5
8038
8039 NOTFOUND=0
8040 for ac_header in libdlm.h
8041 do :
8042 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8043 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8044 cat >>confdefs.h <<_ACEOF
8045 #define HAVE_LIBDLM_H 1
8046 _ACEOF
8047
8048 else
8049 $bailout
8050 fi
8051
8052 done
8053
8054 check_lib_no_libs dlm dlm_lock -lpthread
8055 if test $NOTFOUND = 0; then
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8057 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8058 DLM_LIBS="-ldlm -lpthread"
8059 HAVE_DLM=yes
8060 fi
8061 elif test $pkg_failed = untried; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8063 $as_echo "no" >&6; }
8064 NOTFOUND=0
8065 for ac_header in libdlm.h
8066 do :
8067 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8068 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8069 cat >>confdefs.h <<_ACEOF
8070 #define HAVE_LIBDLM_H 1
8071 _ACEOF
8072
8073 else
8074 $bailout
8075 fi
8076
8077 done
8078
8079 check_lib_no_libs dlm dlm_lock -lpthread
8080 if test $NOTFOUND = 0; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8082 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8083 DLM_LIBS="-ldlm -lpthread"
8084 HAVE_DLM=yes
8085 fi
8086 else
8087 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8088 DLM_LIBS=$pkg_cv_DLM_LIBS
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8090 $as_echo "yes" >&6; }
8091 HAVE_DLM=yes
8092 fi
8093 fi
8094
8095 if test x$CLVMD = xall; then
8096 CLVMD=none
8097 CLVMD_CMANAGERS=""
8098 CLVMD_NEEDS_QDISKD=no
8099 if test x$HAVE_CMAN = xyes && \
8100 test x$HAVE_DLM = xyes; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8102 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8103 CLVMD="$CLVMD,cman"
8104 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8105 CLVMD_NEEDS_QDISKD=yes
8106 fi
8107 if test x$HAVE_COROSYNC = xyes && \
8108 test x$HAVE_QUORUM = xyes && \
8109 test x$HAVE_CPG = xyes && \
8110 test x$HAVE_DLM = xyes; then
8111 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8113 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8114 CLVMD="$CLVMD,corosync"
8115 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8116 fi
8117 fi
8118 if test x$HAVE_COROSYNC = xyes && \
8119 test x$HAVE_CPG = xyes && \
8120 test x$HAVE_SALCK = xyes; then
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8122 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8123 CLVMD="$CLVMD,openais"
8124 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8125 fi
8126 if test x$CLVMD_NEEDS_QDISKD != xno; then
8127 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8128 fi
8129 if test x$CLVMD = xnone; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8131 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8132 fi
8133 fi
8134
8135 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8136 if test x$HAVE_CMAP = xyes; then
8137 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8138 fi
8139 fi
8140
8141 ################################################################################
8142 if test "x$CLVMD" != xnone; then
8143
8144 # Check whether --with-clvmd-pidfile was given.
8145 if test "${with_clvmd_pidfile+set}" = set; then :
8146 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
8147 else
8148 CLVMD_PIDFILE="/var/run/clvmd.pid"
8149 fi
8150
8151
8152 cat >>confdefs.h <<_ACEOF
8153 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8154 _ACEOF
8155
8156 fi
8157
8158 ################################################################################
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8160 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8161 # Check whether --enable-cmirrord was given.
8162 if test "${enable_cmirrord+set}" = set; then :
8163 enableval=$enable_cmirrord; CMIRRORD=$enableval
8164 else
8165 CMIRRORD=no
8166 fi
8167
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8169 $as_echo "$CMIRRORD" >&6; }
8170
8171 BUILD_CMIRRORD=$CMIRRORD
8172
8173 ################################################################################
8174 if test "x$BUILD_CMIRRORD" = xyes; then
8175
8176 # Check whether --with-cmirrord-pidfile was given.
8177 if test "${with_cmirrord_pidfile+set}" = set; then :
8178 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
8179 else
8180 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
8181 fi
8182
8183
8184 cat >>confdefs.h <<_ACEOF
8185 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8186 _ACEOF
8187
8188 fi
8189
8190 ################################################################################
8191 if [ "x$BUILD_CMIRRORD" = xyes ]; then
8192 if test x$PKGCONFIG_INIT != x1; then
8193 pkg_config_init
8194 fi
8195
8196 pkg_failed=no
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8198 $as_echo_n "checking for SACKPT... " >&6; }
8199
8200 if test -n "$SACKPT_CFLAGS"; then
8201 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8202 elif test -n "$PKG_CONFIG"; then
8203 if test -n "$PKG_CONFIG" && \
8204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8205 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8206 ac_status=$?
8207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8208 test $ac_status = 0; }; then
8209 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8210 else
8211 pkg_failed=yes
8212 fi
8213 else
8214 pkg_failed=untried
8215 fi
8216 if test -n "$SACKPT_LIBS"; then
8217 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8218 elif test -n "$PKG_CONFIG"; then
8219 if test -n "$PKG_CONFIG" && \
8220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8221 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8222 ac_status=$?
8223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8224 test $ac_status = 0; }; then
8225 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8226 else
8227 pkg_failed=yes
8228 fi
8229 else
8230 pkg_failed=untried
8231 fi
8232
8233
8234
8235 if test $pkg_failed = yes; then
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238
8239 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8240 _pkg_short_errors_supported=yes
8241 else
8242 _pkg_short_errors_supported=no
8243 fi
8244 if test $_pkg_short_errors_supported = yes; then
8245 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8246 else
8247 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8248 fi
8249 # Put the nasty error message in config.log where it belongs
8250 echo "$SACKPT_PKG_ERRORS" >&5
8251
8252 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8253
8254 $SACKPT_PKG_ERRORS
8255
8256 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8257 installed software in a non-standard prefix.
8258
8259 Alternatively, you may set the environment variables SACKPT_CFLAGS
8260 and SACKPT_LIBS to avoid the need to call pkg-config.
8261 See the pkg-config man page for more details." "$LINENO" 5
8262
8263 elif test $pkg_failed = untried; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8268 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8269 is in your PATH or set the PKG_CONFIG environment variable to the full
8270 path to pkg-config.
8271
8272 Alternatively, you may set the environment variables SACKPT_CFLAGS
8273 and SACKPT_LIBS to avoid the need to call pkg-config.
8274 See the pkg-config man page for more details.
8275
8276 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8277 See \`config.log' for more details" "$LINENO" 5; }
8278
8279 else
8280 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8281 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8283 $as_echo "yes" >&6; }
8284
8285 fi
8286 if test x$HAVE_CPG != xyes; then
8287
8288 pkg_failed=no
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8290 $as_echo_n "checking for CPG... " >&6; }
8291
8292 if test -n "$CPG_CFLAGS"; then
8293 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8294 elif test -n "$PKG_CONFIG"; then
8295 if test -n "$PKG_CONFIG" && \
8296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8297 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8298 ac_status=$?
8299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8300 test $ac_status = 0; }; then
8301 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8302 else
8303 pkg_failed=yes
8304 fi
8305 else
8306 pkg_failed=untried
8307 fi
8308 if test -n "$CPG_LIBS"; then
8309 pkg_cv_CPG_LIBS="$CPG_LIBS"
8310 elif test -n "$PKG_CONFIG"; then
8311 if test -n "$PKG_CONFIG" && \
8312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8313 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8314 ac_status=$?
8315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8316 test $ac_status = 0; }; then
8317 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8318 else
8319 pkg_failed=yes
8320 fi
8321 else
8322 pkg_failed=untried
8323 fi
8324
8325
8326
8327 if test $pkg_failed = yes; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330
8331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8332 _pkg_short_errors_supported=yes
8333 else
8334 _pkg_short_errors_supported=no
8335 fi
8336 if test $_pkg_short_errors_supported = yes; then
8337 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8338 else
8339 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8340 fi
8341 # Put the nasty error message in config.log where it belongs
8342 echo "$CPG_PKG_ERRORS" >&5
8343
8344 as_fn_error $? "Package requirements (libcpg) were not met:
8345
8346 $CPG_PKG_ERRORS
8347
8348 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8349 installed software in a non-standard prefix.
8350
8351 Alternatively, you may set the environment variables CPG_CFLAGS
8352 and CPG_LIBS to avoid the need to call pkg-config.
8353 See the pkg-config man page for more details." "$LINENO" 5
8354
8355 elif test $pkg_failed = untried; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }
8358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8360 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8361 is in your PATH or set the PKG_CONFIG environment variable to the full
8362 path to pkg-config.
8363
8364 Alternatively, you may set the environment variables CPG_CFLAGS
8365 and CPG_LIBS to avoid the need to call pkg-config.
8366 See the pkg-config man page for more details.
8367
8368 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8369 See \`config.log' for more details" "$LINENO" 5; }
8370
8371 else
8372 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8373 CPG_LIBS=$pkg_cv_CPG_LIBS
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8375 $as_echo "yes" >&6; }
8376
8377 fi
8378 fi
8379 fi
8380
8381 ################################################################################
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8383 $as_echo_n "checking whether to enable debugging... " >&6; }
8384 # Check whether --enable-debug was given.
8385 if test "${enable_debug+set}" = set; then :
8386 enableval=$enable_debug; DEBUG=$enableval
8387 else
8388 DEBUG=no
8389 fi
8390
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8392 $as_echo "$DEBUG" >&6; }
8393
8394 if test x$DEBUG = xyes; then
8395 COPTIMISE_FLAG=
8396 else
8397 CSCOPE_CMD=
8398 fi
8399
8400 ################################################################################
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8402 $as_echo_n "checking for C optimisation flag... " >&6; }
8403
8404 # Check whether --with-optimisation was given.
8405 if test "${with_optimisation+set}" = set; then :
8406 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8407 fi
8408
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8410 $as_echo "$COPTIMISE_FLAG" >&6; }
8411
8412 ################################################################################
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8414 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8415 # Check whether --enable-profiling was given.
8416 if test "${enable_profiling+set}" = set; then :
8417 enableval=$enable_profiling; PROFILING=$enableval
8418 else
8419 PROFILING=no
8420 fi
8421
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8423 $as_echo "$PROFILING" >&6; }
8424
8425 if test "x$PROFILING" = xyes; then
8426 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8427 # Extract the first word of "lcov", so it can be a program name with args.
8428 set dummy lcov; ac_word=$2
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430 $as_echo_n "checking for $ac_word... " >&6; }
8431 if test "${ac_cv_path_LCOV+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433 else
8434 case $LCOV in
8435 [\\/]* | ?:[\\/]*)
8436 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8437 ;;
8438 *)
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 for as_dir in $PATH
8441 do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
8450 done
8451 done
8452 IFS=$as_save_IFS
8453
8454 ;;
8455 esac
8456 fi
8457 LCOV=$ac_cv_path_LCOV
8458 if test -n "$LCOV"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8460 $as_echo "$LCOV" >&6; }
8461 else
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463 $as_echo "no" >&6; }
8464 fi
8465
8466
8467 # Extract the first word of "genhtml", so it can be a program name with args.
8468 set dummy genhtml; ac_word=$2
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8470 $as_echo_n "checking for $ac_word... " >&6; }
8471 if test "${ac_cv_path_GENHTML+set}" = set; then :
8472 $as_echo_n "(cached) " >&6
8473 else
8474 case $GENHTML in
8475 [\\/]* | ?:[\\/]*)
8476 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8477 ;;
8478 *)
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 break 2
8489 fi
8490 done
8491 done
8492 IFS=$as_save_IFS
8493
8494 ;;
8495 esac
8496 fi
8497 GENHTML=$ac_cv_path_GENHTML
8498 if test -n "$GENHTML"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8500 $as_echo "$GENHTML" >&6; }
8501 else
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8503 $as_echo "no" >&6; }
8504 fi
8505
8506
8507 if test -z "$LCOV" -o -z "$GENHTML"; then
8508 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8509 fi
8510 # Extract the first word of "genpng", so it can be a program name with args.
8511 set dummy genpng; ac_word=$2
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 $as_echo_n "checking for $ac_word... " >&6; }
8514 if test "${ac_cv_path_GENPNG+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
8516 else
8517 case $GENPNG in
8518 [\\/]* | ?:[\\/]*)
8519 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8520 ;;
8521 *)
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 ;;
8538 esac
8539 fi
8540 GENPNG=$ac_cv_path_GENPNG
8541 if test -n "$GENPNG"; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8543 $as_echo "$GENPNG" >&6; }
8544 else
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550 if test -n "$GENPNG"; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8552 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8553 if $GENPNG --help > /dev/null 2>&1 ; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8555 $as_echo "ok" >&6; }
8556 GENHTML="$GENHTML --frames"
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8559 $as_echo "not supported" >&6; }
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8561 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8562 GENPNG=
8563 fi
8564 fi
8565 fi
8566
8567 ################################################################################
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8569 $as_echo_n "checking whether to enable unit testing... " >&6; }
8570 # Check whether --enable-testing was given.
8571 if test "${enable_testing+set}" = set; then :
8572 enableval=$enable_testing; TESTING=$enableval
8573 else
8574 TESTING=no
8575 fi
8576
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8578 $as_echo "$TESTING" >&6; }
8579
8580 if test "$TESTING" = yes; then
8581
8582 pkg_failed=no
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8584 $as_echo_n "checking for CUNIT... " >&6; }
8585
8586 if test -n "$CUNIT_CFLAGS"; then
8587 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8588 elif test -n "$PKG_CONFIG"; then
8589 if test -n "$PKG_CONFIG" && \
8590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8591 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8592 ac_status=$?
8593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8594 test $ac_status = 0; }; then
8595 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8596 else
8597 pkg_failed=yes
8598 fi
8599 else
8600 pkg_failed=untried
8601 fi
8602 if test -n "$CUNIT_LIBS"; then
8603 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8604 elif test -n "$PKG_CONFIG"; then
8605 if test -n "$PKG_CONFIG" && \
8606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8607 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8608 ac_status=$?
8609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8610 test $ac_status = 0; }; then
8611 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
8612 else
8613 pkg_failed=yes
8614 fi
8615 else
8616 pkg_failed=untried
8617 fi
8618
8619
8620
8621 if test $pkg_failed = yes; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624
8625 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8626 _pkg_short_errors_supported=yes
8627 else
8628 _pkg_short_errors_supported=no
8629 fi
8630 if test $_pkg_short_errors_supported = yes; then
8631 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8632 else
8633 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8634 fi
8635 # Put the nasty error message in config.log where it belongs
8636 echo "$CUNIT_PKG_ERRORS" >&5
8637
8638 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8639
8640 $CUNIT_PKG_ERRORS
8641
8642 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8643 installed software in a non-standard prefix.
8644
8645 Alternatively, you may set the environment variables CUNIT_CFLAGS
8646 and CUNIT_LIBS to avoid the need to call pkg-config.
8647 See the pkg-config man page for more details." "$LINENO" 5
8648
8649 elif test $pkg_failed = untried; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651 $as_echo "no" >&6; }
8652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8654 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8655 is in your PATH or set the PKG_CONFIG environment variable to the full
8656 path to pkg-config.
8657
8658 Alternatively, you may set the environment variables CUNIT_CFLAGS
8659 and CUNIT_LIBS to avoid the need to call pkg-config.
8660 See the pkg-config man page for more details.
8661
8662 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8663 See \`config.log' for more details" "$LINENO" 5; }
8664
8665 else
8666 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8667 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8669 $as_echo "yes" >&6; }
8670
8671 fi
8672 fi
8673
8674 ################################################################################
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8676 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8677 # Check whether --enable-valgrind_pool was given.
8678 if test "${enable_valgrind_pool+set}" = set; then :
8679 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8680 else
8681 VALGRIND_POOL=no
8682 fi
8683
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8685 $as_echo "$VALGRIND_POOL" >&6; }
8686
8687 if test "$VALGRIND_POOL" = yes; then
8688 for ac_header in valgrind/memcheck.h
8689 do :
8690 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8691 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8692 cat >>confdefs.h <<_ACEOF
8693 #define HAVE_VALGRIND_MEMCHECK_H 1
8694 _ACEOF
8695
8696 else
8697 as_fn_error $? "bailing out" "$LINENO" 5
8698 fi
8699
8700 done
8701
8702
8703 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8704
8705 fi
8706
8707 ################################################################################
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8709 $as_echo_n "checking whether to use device-mapper... " >&6; }
8710 # Check whether --enable-devmapper was given.
8711 if test "${enable_devmapper+set}" = set; then :
8712 enableval=$enable_devmapper; DEVMAPPER=$enableval
8713 fi
8714
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8716 $as_echo "$DEVMAPPER" >&6; }
8717
8718 if test x$DEVMAPPER = xyes; then
8719
8720 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8721
8722 fi
8723
8724 ################################################################################
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8726 $as_echo_n "checking whether to build LVMetaD... " >&6; }
8727 # Check whether --enable-lvmetad was given.
8728 if test "${enable_lvmetad+set}" = set; then :
8729 enableval=$enable_lvmetad; LVMETAD=$enableval
8730 fi
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8733 $as_echo "$LVMETAD" >&6; }
8734
8735 BUILD_LVMETAD=$LVMETAD
8736
8737 ################################################################################
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8739 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8740 # Check whether --enable-udev_sync was given.
8741 if test "${enable_udev_sync+set}" = set; then :
8742 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8743 else
8744 UDEV_SYNC=no
8745 fi
8746
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8748 $as_echo "$UDEV_SYNC" >&6; }
8749
8750 if test x$UDEV_SYNC = xyes; then
8751 if test x$PKGCONFIG_INIT != x1; then
8752 pkg_config_init
8753 fi
8754
8755 pkg_failed=no
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8757 $as_echo_n "checking for UDEV... " >&6; }
8758
8759 if test -n "$UDEV_CFLAGS"; then
8760 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8761 elif test -n "$PKG_CONFIG"; then
8762 if test -n "$PKG_CONFIG" && \
8763 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8764 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8765 ac_status=$?
8766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8767 test $ac_status = 0; }; then
8768 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8769 else
8770 pkg_failed=yes
8771 fi
8772 else
8773 pkg_failed=untried
8774 fi
8775 if test -n "$UDEV_LIBS"; then
8776 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8777 elif test -n "$PKG_CONFIG"; then
8778 if test -n "$PKG_CONFIG" && \
8779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8780 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8781 ac_status=$?
8782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8783 test $ac_status = 0; }; then
8784 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8785 else
8786 pkg_failed=yes
8787 fi
8788 else
8789 pkg_failed=untried
8790 fi
8791
8792
8793
8794 if test $pkg_failed = yes; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797
8798 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8799 _pkg_short_errors_supported=yes
8800 else
8801 _pkg_short_errors_supported=no
8802 fi
8803 if test $_pkg_short_errors_supported = yes; then
8804 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8805 else
8806 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8807 fi
8808 # Put the nasty error message in config.log where it belongs
8809 echo "$UDEV_PKG_ERRORS" >&5
8810
8811 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8812
8813 $UDEV_PKG_ERRORS
8814
8815 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8816 installed software in a non-standard prefix.
8817
8818 Alternatively, you may set the environment variables UDEV_CFLAGS
8819 and UDEV_LIBS to avoid the need to call pkg-config.
8820 See the pkg-config man page for more details." "$LINENO" 5
8821
8822 elif test $pkg_failed = untried; then
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8827 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8828 is in your PATH or set the PKG_CONFIG environment variable to the full
8829 path to pkg-config.
8830
8831 Alternatively, you may set the environment variables UDEV_CFLAGS
8832 and UDEV_LIBS to avoid the need to call pkg-config.
8833 See the pkg-config man page for more details.
8834
8835 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8836 See \`config.log' for more details" "$LINENO" 5; }
8837
8838 else
8839 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8840 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8842 $as_echo "yes" >&6; }
8843 UDEV_PC="libudev"
8844 fi
8845
8846 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8847
8848 fi
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8851 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8852 # Check whether --enable-udev_rules was given.
8853 if test "${enable_udev_rules+set}" = set; then :
8854 enableval=$enable_udev_rules; UDEV_RULES=$enableval
8855 else
8856 UDEV_RULES=$UDEV_SYNC
8857 fi
8858
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8860 $as_echo "$UDEV_RULES" >&6; }
8861
8862 if test x$UDEV_RULES = xyes; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports builtin blkid" >&5
8864 $as_echo_n "checking whether udev supports builtin blkid... " >&6; }
8865 udev_version=$(udevadm info --version 2>/dev/null)
8866 if test -n "$udev_version" && test "$udev_version" -ge 176; then
8867 UDEV_HAS_BUILTIN_BLKID=yes
8868 else
8869 UDEV_HAS_BUILTIN_BLKID=no
8870 fi
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
8872 $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
8873 fi
8874
8875 ################################################################################
8876 # Check whether --enable-compat was given.
8877 if test "${enable_compat+set}" = set; then :
8878 enableval=$enable_compat; DM_COMPAT=$enableval
8879 else
8880 DM_COMPAT=no
8881 fi
8882
8883
8884 if test x$DM_COMPAT = xyes; then
8885 as_fn_error $? "--enable-compat is not currently supported.
8886 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8887 ioctl protocol is supported.
8888 " "$LINENO" 5
8889 fi
8890
8891 ################################################################################
8892 # Check whether --enable-units-compat was given.
8893 if test "${enable_units_compat+set}" = set; then :
8894 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
8895 else
8896 UNITS_COMPAT=no
8897 fi
8898
8899
8900 if test x$UNITS_COMPAT = xyes; then
8901
8902 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8903
8904 fi
8905
8906 ################################################################################
8907 # Check whether --enable-ioctl was given.
8908 if test "${enable_ioctl+set}" = set; then :
8909 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8910 fi
8911
8912
8913 ################################################################################
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8915 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8916 # Check whether --enable-o_direct was given.
8917 if test "${enable_o_direct+set}" = set; then :
8918 enableval=$enable_o_direct; ODIRECT=$enableval
8919 fi
8920
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8922 $as_echo "$ODIRECT" >&6; }
8923
8924 if test x$ODIRECT = xyes; then
8925
8926 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8927
8928 fi
8929
8930 ################################################################################
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8932 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8933 # Check whether --enable-applib was given.
8934 if test "${enable_applib+set}" = set; then :
8935 enableval=$enable_applib; APPLIB=$enableval
8936 else
8937 APPLIB=no
8938 fi
8939
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8941 $as_echo "$APPLIB" >&6; }
8942
8943 test x$APPLIB = xyes \
8944 && LVM2APP_LIB=-llvm2app \
8945 || LVM2APP_LIB=
8946
8947 ################################################################################
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8949 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8950 # Check whether --enable-cmdlib was given.
8951 if test "${enable_cmdlib+set}" = set; then :
8952 enableval=$enable_cmdlib; CMDLIB=$enableval
8953 else
8954 CMDLIB=no
8955 fi
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8958 $as_echo "$CMDLIB" >&6; }
8959
8960 test x$CMDLIB = xyes \
8961 && LVM2CMD_LIB=-llvm2cmd \
8962 || LVM2CMD_LIB=
8963
8964 ################################################################################
8965 # Check whether --enable-pkgconfig was given.
8966 if test "${enable_pkgconfig+set}" = set; then :
8967 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8968 else
8969 PKGCONFIG=no
8970 fi
8971
8972
8973 ################################################################################
8974 # Check whether --enable-write_install was given.
8975 if test "${enable_write_install+set}" = set; then :
8976 enableval=$enable_write_install; WRITE_INSTALL=$enableval
8977 else
8978 WRITE_INSTALL=no
8979 fi
8980
8981
8982 ################################################################################
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8984 $as_echo_n "checking whether to install fsadm... " >&6; }
8985 # Check whether --enable-fsadm was given.
8986 if test "${enable_fsadm+set}" = set; then :
8987 enableval=$enable_fsadm; FSADM=$enableval
8988 fi
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8991 $as_echo "$FSADM" >&6; }
8992
8993 ################################################################################
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8995 $as_echo_n "checking whether to use dmeventd... " >&6; }
8996 # Check whether --enable-dmeventd was given.
8997 if test "${enable_dmeventd+set}" = set; then :
8998 enableval=$enable_dmeventd; DMEVENTD=$enableval
8999 fi
9000
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9002 $as_echo "$DMEVENTD" >&6; }
9003
9004 BUILD_DMEVENTD=$DMEVENTD
9005
9006 if test x$DMEVENTD = xyes; then
9007 if test x$MIRRORS != xinternal; then
9008 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9009 " "$LINENO" 5
9010 fi
9011 if test x$CMDLIB = xno; then
9012 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9013 " "$LINENO" 5
9014 fi
9015 fi
9016
9017 if test x$DMEVENTD = xyes; then
9018
9019 $as_echo "#define DMEVENTD 1" >>confdefs.h
9020
9021 fi
9022
9023 ################################################################################
9024
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9026 $as_echo_n "checking for getline in -lc... " >&6; }
9027 if test "${ac_cv_lib_c_getline+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 ac_check_lib_save_LIBS=$LIBS
9031 LIBS="-lc $LIBS"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9034
9035 /* Override any GCC internal prototype to avoid an error.
9036 Use char because int might match the return type of a GCC
9037 builtin and then its argument prototype would still apply. */
9038 #ifdef __cplusplus
9039 extern "C"
9040 #endif
9041 char getline ();
9042 int
9043 main ()
9044 {
9045 return getline ();
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 if ac_fn_c_try_link "$LINENO"; then :
9051 ac_cv_lib_c_getline=yes
9052 else
9053 ac_cv_lib_c_getline=no
9054 fi
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9057 LIBS=$ac_check_lib_save_LIBS
9058 fi
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9060 $as_echo "$ac_cv_lib_c_getline" >&6; }
9061 if test "x$ac_cv_lib_c_getline" = x""yes; then :
9062
9063 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9064
9065 fi
9066
9067
9068 ################################################################################
9069
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9071 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9072 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
9074 else
9075 ac_check_lib_save_LIBS=$LIBS
9076 LIBS="-lc $LIBS"
9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079
9080 /* Override any GCC internal prototype to avoid an error.
9081 Use char because int might match the return type of a GCC
9082 builtin and then its argument prototype would still apply. */
9083 #ifdef __cplusplus
9084 extern "C"
9085 #endif
9086 char canonicalize_file_name ();
9087 int
9088 main ()
9089 {
9090 return canonicalize_file_name ();
9091 ;
9092 return 0;
9093 }
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096 ac_cv_lib_c_canonicalize_file_name=yes
9097 else
9098 ac_cv_lib_c_canonicalize_file_name=no
9099 fi
9100 rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9103 fi
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9105 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9106 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9107
9108 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9109
9110 fi
9111
9112
9113 ################################################################################
9114 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9115 then exec_prefix="";
9116 fi;
9117
9118 ################################################################################
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9120 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9121 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 ac_check_lib_save_LIBS=$LIBS
9125 LIBS="-ldl $LIBS"
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h. */
9128
9129 /* Override any GCC internal prototype to avoid an error.
9130 Use char because int might match the return type of a GCC
9131 builtin and then its argument prototype would still apply. */
9132 #ifdef __cplusplus
9133 extern "C"
9134 #endif
9135 char dlopen ();
9136 int
9137 main ()
9138 {
9139 return dlopen ();
9140 ;
9141 return 0;
9142 }
9143 _ACEOF
9144 if ac_fn_c_try_link "$LINENO"; then :
9145 ac_cv_lib_dl_dlopen=yes
9146 else
9147 ac_cv_lib_dl_dlopen=no
9148 fi
9149 rm -f core conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151 LIBS=$ac_check_lib_save_LIBS
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9154 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9155 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9156
9157
9158 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9159
9160 DL_LIBS="-ldl"
9161 HAVE_LIBDL=yes
9162 else
9163
9164 DL_LIBS=
9165 HAVE_LIBDL=no
9166 fi
9167
9168
9169 ################################################################################
9170 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9171 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9172 -o "x$RAID" = xshared \
9173 \) -a "x$STATIC_LINK" = xyes ];
9174 then as_fn_error $? "Features cannot be 'shared' when building statically
9175 " "$LINENO" 5
9176 fi
9177
9178 ################################################################################
9179 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9181 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9182 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9183 $as_echo_n "(cached) " >&6
9184 else
9185 ac_check_lib_save_LIBS=$LIBS
9186 LIBS="-lpthread $LIBS"
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189
9190 /* Override any GCC internal prototype to avoid an error.
9191 Use char because int might match the return type of a GCC
9192 builtin and then its argument prototype would still apply. */
9193 #ifdef __cplusplus
9194 extern "C"
9195 #endif
9196 char pthread_mutex_lock ();
9197 int
9198 main ()
9199 {
9200 return pthread_mutex_lock ();
9201 ;
9202 return 0;
9203 }
9204 _ACEOF
9205 if ac_fn_c_try_link "$LINENO"; then :
9206 ac_cv_lib_pthread_pthread_mutex_lock=yes
9207 else
9208 ac_cv_lib_pthread_pthread_mutex_lock=no
9209 fi
9210 rm -f core conftest.err conftest.$ac_objext \
9211 conftest$ac_exeext conftest.$ac_ext
9212 LIBS=$ac_check_lib_save_LIBS
9213 fi
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9215 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9216 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9217 PTHREAD_LIBS="-lpthread"
9218 else
9219 hard_bailout
9220 fi
9221
9222 fi
9223
9224 ################################################################################
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9226 $as_echo_n "checking whether to enable selinux support... " >&6; }
9227 # Check whether --enable-selinux was given.
9228 if test "${enable_selinux+set}" = set; then :
9229 enableval=$enable_selinux; SELINUX=$enableval
9230 fi
9231
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9233 $as_echo "$SELINUX" >&6; }
9234
9235 ################################################################################
9236 if test x$SELINUX = xyes; then
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9238 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9239 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 ac_check_lib_save_LIBS=$LIBS
9243 LIBS="-lsepol $LIBS"
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246
9247 /* Override any GCC internal prototype to avoid an error.
9248 Use char because int might match the return type of a GCC
9249 builtin and then its argument prototype would still apply. */
9250 #ifdef __cplusplus
9251 extern "C"
9252 #endif
9253 char sepol_check_context ();
9254 int
9255 main ()
9256 {
9257 return sepol_check_context ();
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 if ac_fn_c_try_link "$LINENO"; then :
9263 ac_cv_lib_sepol_sepol_check_context=yes
9264 else
9265 ac_cv_lib_sepol_sepol_check_context=no
9266 fi
9267 rm -f core conftest.err conftest.$ac_objext \
9268 conftest$ac_exeext conftest.$ac_ext
9269 LIBS=$ac_check_lib_save_LIBS
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9272 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9273 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9274
9275
9276 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9277
9278 SELINUX_LIBS="-lsepol"
9279 fi
9280
9281
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9283 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9284 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 ac_check_lib_save_LIBS=$LIBS
9288 LIBS="-lselinux $LIBS"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291
9292 /* Override any GCC internal prototype to avoid an error.
9293 Use char because int might match the return type of a GCC
9294 builtin and then its argument prototype would still apply. */
9295 #ifdef __cplusplus
9296 extern "C"
9297 #endif
9298 char is_selinux_enabled ();
9299 int
9300 main ()
9301 {
9302 return is_selinux_enabled ();
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 ac_cv_lib_selinux_is_selinux_enabled=yes
9309 else
9310 ac_cv_lib_selinux_is_selinux_enabled=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext \
9313 conftest$ac_exeext conftest.$ac_ext
9314 LIBS=$ac_check_lib_save_LIBS
9315 fi
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9317 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9318 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9319
9320 for ac_header in selinux/selinux.h
9321 do :
9322 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9323 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9324 cat >>confdefs.h <<_ACEOF
9325 #define HAVE_SELINUX_SELINUX_H 1
9326 _ACEOF
9327
9328 else
9329 hard_bailout
9330 fi
9331
9332 done
9333
9334 for ac_header in selinux/label.h
9335 do :
9336 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9337 if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_SELINUX_LABEL_H 1
9340 _ACEOF
9341
9342 fi
9343
9344 done
9345
9346
9347 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9348
9349 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9350 SELINUX_PC="libselinux"
9351 HAVE_SELINUX=yes
9352 else
9353
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9355 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9356 SELINUX_LIBS=
9357 SELINUX_PC=
9358 HAVE_SELINUX=no
9359 fi
9360
9361 fi
9362
9363 ################################################################################
9364 if test x$REALTIME = xyes; then
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9366 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9367 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 ac_check_lib_save_LIBS=$LIBS
9371 LIBS="-lrt $LIBS"
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374
9375 /* Override any GCC internal prototype to avoid an error.
9376 Use char because int might match the return type of a GCC
9377 builtin and then its argument prototype would still apply. */
9378 #ifdef __cplusplus
9379 extern "C"
9380 #endif
9381 char clock_gettime ();
9382 int
9383 main ()
9384 {
9385 return clock_gettime ();
9386 ;
9387 return 0;
9388 }
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"; then :
9391 ac_cv_lib_rt_clock_gettime=yes
9392 else
9393 ac_cv_lib_rt_clock_gettime=no
9394 fi
9395 rm -f core conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 LIBS=$ac_check_lib_save_LIBS
9398 fi
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9400 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9401 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9402 HAVE_REALTIME=yes
9403 else
9404 HAVE_REALTIME=no
9405 fi
9406
9407
9408 if test x$HAVE_REALTIME = xyes; then
9409
9410 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9411
9412 LIBS="-lrt $LIBS"
9413 else
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9415 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9416 fi
9417 fi
9418
9419 ################################################################################
9420 for ac_header in getopt.h
9421 do :
9422 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9423 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9424 cat >>confdefs.h <<_ACEOF
9425 #define HAVE_GETOPT_H 1
9426 _ACEOF
9427
9428 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9429
9430 fi
9431
9432 done
9433
9434
9435 ################################################################################
9436 if test x$READLINE != xno; then
9437 lvm_saved_libs=$LIBS
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9439 $as_echo_n "checking for library containing tgetent... " >&6; }
9440 if test "${ac_cv_search_tgetent+set}" = set; then :
9441 $as_echo_n "(cached) " >&6
9442 else
9443 ac_func_search_save_LIBS=$LIBS
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9446
9447 /* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 char tgetent ();
9454 int
9455 main ()
9456 {
9457 return tgetent ();
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9463 if test -z "$ac_lib"; then
9464 ac_res="none required"
9465 else
9466 ac_res=-l$ac_lib
9467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9468 fi
9469 if ac_fn_c_try_link "$LINENO"; then :
9470 ac_cv_search_tgetent=$ac_res
9471 fi
9472 rm -f core conftest.err conftest.$ac_objext \
9473 conftest$ac_exeext
9474 if test "${ac_cv_search_tgetent+set}" = set; then :
9475 break
9476 fi
9477 done
9478 if test "${ac_cv_search_tgetent+set}" = set; then :
9479
9480 else
9481 ac_cv_search_tgetent=no
9482 fi
9483 rm conftest.$ac_ext
9484 LIBS=$ac_func_search_save_LIBS
9485 fi
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9487 $as_echo "$ac_cv_search_tgetent" >&6; }
9488 ac_res=$ac_cv_search_tgetent
9489 if test "$ac_res" != no; then :
9490 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9491 READLINE_LIBS=$ac_cv_search_tgetent
9492 else
9493
9494 if test "$READLINE" = yes; then
9495 as_fn_error $? "termcap could not be found which is required for the
9496 --enable-readline option (which is enabled by default). Either disable readline
9497 support with --disable-readline or download and install termcap from:
9498 ftp.gnu.org/gnu/termcap
9499 Note: if you are using precompiled packages you will also need the development
9500 package as well (which may be called termcap-devel or something similar).
9501 Note: (n)curses also seems to work as a substitute for termcap. This was
9502 not found either - but you could try installing that as well." "$LINENO" 5
9503 fi
9504 fi
9505
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9507 $as_echo_n "checking for readline in -lreadline... " >&6; }
9508 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 ac_check_lib_save_LIBS=$LIBS
9512 LIBS="-lreadline $LIBS"
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515
9516 /* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 char readline ();
9523 int
9524 main ()
9525 {
9526 return readline ();
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532 ac_cv_lib_readline_readline=yes
9533 else
9534 ac_cv_lib_readline_readline=no
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 LIBS=$ac_check_lib_save_LIBS
9539 fi
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9541 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9542 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9543
9544
9545 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9546
9547 LIBS=$lvm_saved_libs
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9549 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9550 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9551 $as_echo_n "(cached) " >&6
9552 else
9553 ac_check_lib_save_LIBS=$LIBS
9554 LIBS="-lreadline $LIBS"
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9561 #ifdef __cplusplus
9562 extern "C"
9563 #endif
9564 char rl_line_buffer ();
9565 int
9566 main ()
9567 {
9568 return rl_line_buffer ();
9569 ;
9570 return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_link "$LINENO"; then :
9574 ac_cv_lib_readline_rl_line_buffer=yes
9575 else
9576 ac_cv_lib_readline_rl_line_buffer=no
9577 fi
9578 rm -f core conftest.err conftest.$ac_objext \
9579 conftest$ac_exeext conftest.$ac_ext
9580 LIBS=$ac_check_lib_save_LIBS
9581 fi
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9583 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9584 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9585 READLINE_LIBS="-lreadline"
9586 else
9587
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9589 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9590 READLINE_LIBS="-lreadline $READLINE_LIBS"
9591
9592 fi
9593
9594 else
9595
9596 READLINE_LIBS=
9597 if test "$READLINE" = yes; then
9598 as_fn_error $? "GNU Readline could not be found which is required for the
9599 --enable-readline option (which is enabled by default). Either disable readline
9600 support with --disable-readline or download and install readline from:
9601 ftp.gnu.org/gnu/readline
9602 Note: if you are using precompiled packages you will also need the development
9603 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9604 fi
9605 fi
9606
9607 LIBS="$READLINE_LIBS $lvm_saved_libs"
9608 for ac_func in rl_completion_matches
9609 do :
9610 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9611 if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9612 cat >>confdefs.h <<_ACEOF
9613 #define HAVE_RL_COMPLETION_MATCHES 1
9614 _ACEOF
9615
9616 fi
9617 done
9618
9619 LIBS=$lvm_saved_libs
9620 fi
9621
9622 ################################################################################
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9624 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9625 # Check whether --enable-nls was given.
9626 if test "${enable_nls+set}" = set; then :
9627 enableval=$enable_nls; INTL=$enableval
9628 else
9629 INTL=no
9630 fi
9631
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9633 $as_echo "$INTL" >&6; }
9634
9635 if test x$INTL = xyes; then
9636 # FIXME - Move this - can be device-mapper too
9637 INTL_PACKAGE="lvm2"
9638 # Extract the first word of "msgfmt", so it can be a program name with args.
9639 set dummy msgfmt; ac_word=$2
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9641 $as_echo_n "checking for $ac_word... " >&6; }
9642 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 case $MSGFMT in
9646 [\\/]* | ?:[\\/]*)
9647 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9648 ;;
9649 *)
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in $PATH
9652 do
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 break 2
9660 fi
9661 done
9662 done
9663 IFS=$as_save_IFS
9664
9665 ;;
9666 esac
9667 fi
9668 MSGFMT=$ac_cv_path_MSGFMT
9669 if test -n "$MSGFMT"; then
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9671 $as_echo "$MSGFMT" >&6; }
9672 else
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674 $as_echo "no" >&6; }
9675 fi
9676
9677
9678 if [ "x$MSGFMT" == x ];
9679 then as_fn_error $? "msgfmt not found in path $PATH
9680 " "$LINENO" 5
9681 fi;
9682
9683
9684 # Check whether --with-localedir was given.
9685 if test "${with_localedir+set}" = set; then :
9686 withval=$with_localedir; LOCALEDIR=$withval
9687 else
9688 LOCALEDIR='${prefix}/share/locale'
9689 fi
9690
9691 fi
9692
9693 ################################################################################
9694
9695 # Check whether --with-confdir was given.
9696 if test "${with_confdir+set}" = set; then :
9697 withval=$with_confdir; CONFDIR=$withval
9698 else
9699 CONFDIR="/etc"
9700 fi
9701
9702
9703
9704 # Check whether --with-staticdir was given.
9705 if test "${with_staticdir+set}" = set; then :
9706 withval=$with_staticdir; STATICDIR=$withval
9707 else
9708 STATICDIR='${exec_prefix}/sbin'
9709 fi
9710
9711
9712
9713 # Check whether --with-usrlibdir was given.
9714 if test "${with_usrlibdir+set}" = set; then :
9715 withval=$with_usrlibdir; usrlibdir=$withval
9716 else
9717 usrlibdir='${prefix}/lib'
9718 fi
9719
9720
9721
9722 # Check whether --with-usrsbindir was given.
9723 if test "${with_usrsbindir+set}" = set; then :
9724 withval=$with_usrsbindir; usrsbindir=$withval
9725 else
9726 usrsbindir='${prefix}/sbin'
9727 fi
9728
9729
9730 ################################################################################
9731
9732 # Check whether --with-udev_prefix was given.
9733 if test "${with_udev_prefix+set}" = set; then :
9734 withval=$with_udev_prefix; udev_prefix=$withval
9735 else
9736 udev_prefix='${exec_prefix}'
9737 fi
9738
9739
9740
9741 # Check whether --with-udevdir was given.
9742 if test "${with_udevdir+set}" = set; then :
9743 withval=$with_udevdir; udevdir=$withval
9744 else
9745 udevdir='${udev_prefix}/lib/udev/rules.d'
9746 fi
9747
9748
9749 ################################################################################
9750
9751 # Check whether --with-systemdsystemunitdir was given.
9752 if test "${with_systemdsystemunitdir+set}" = set; then :
9753 withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
9754 else
9755 pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
9756 fi
9757
9758
9759 if test -n "$pkg_systemdsystemunitdir"; then
9760 systemdsystemunitdir=$pkg_systemdsystemunitdir;
9761 fi
9762
9763 if test -z "$systemdsystemunitdir"; then
9764 systemdsystemunitdir='/lib/systemd/system';
9765 fi
9766 ################################################################################
9767 if test x$READLINE = xyes; then
9768 for ac_header in readline/readline.h readline/history.h
9769 do :
9770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9772 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9773 cat >>confdefs.h <<_ACEOF
9774 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9775 _ACEOF
9776
9777 else
9778 as_fn_error $? "bailing out" "$LINENO" 5
9779 fi
9780
9781 done
9782
9783 fi
9784
9785 if test x$CLVMD != xnone; then
9786 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
9787 do :
9788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9789 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9790 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9791 cat >>confdefs.h <<_ACEOF
9792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9793 _ACEOF
9794
9795 else
9796 as_fn_error $? "bailing out" "$LINENO" 5
9797 fi
9798
9799 done
9800
9801 for ac_func in dup2 getmntent memmove select socket
9802 do :
9803 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9804 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9805 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9806 cat >>confdefs.h <<_ACEOF
9807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9808 _ACEOF
9809
9810 else
9811 as_fn_error $? "bailing out" "$LINENO" 5
9812 fi
9813 done
9814
9815 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9816 # -lseq on Dynix/PTX, -lgen on Unixware.
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9818 $as_echo_n "checking for library containing getmntent... " >&6; }
9819 if test "${ac_cv_search_getmntent+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
9821 else
9822 ac_func_search_save_LIBS=$LIBS
9823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9824 /* end confdefs.h. */
9825
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 char getmntent ();
9833 int
9834 main ()
9835 {
9836 return getmntent ();
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 for ac_lib in '' sun seq gen; do
9842 if test -z "$ac_lib"; then
9843 ac_res="none required"
9844 else
9845 ac_res=-l$ac_lib
9846 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9847 fi
9848 if ac_fn_c_try_link "$LINENO"; then :
9849 ac_cv_search_getmntent=$ac_res
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext \
9852 conftest$ac_exeext
9853 if test "${ac_cv_search_getmntent+set}" = set; then :
9854 break
9855 fi
9856 done
9857 if test "${ac_cv_search_getmntent+set}" = set; then :
9858
9859 else
9860 ac_cv_search_getmntent=no
9861 fi
9862 rm conftest.$ac_ext
9863 LIBS=$ac_func_search_save_LIBS
9864 fi
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9866 $as_echo "$ac_cv_search_getmntent" >&6; }
9867 ac_res=$ac_cv_search_getmntent
9868 if test "$ac_res" != no; then :
9869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9870 ac_cv_func_getmntent=yes
9871
9872 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9873
9874 else
9875 ac_cv_func_getmntent=no
9876 fi
9877
9878
9879 for ac_header in sys/select.h sys/socket.h
9880 do :
9881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9882 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9883 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9884 cat >>confdefs.h <<_ACEOF
9885 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9886 _ACEOF
9887
9888 fi
9889
9890 done
9891
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9893 $as_echo_n "checking types of arguments for select... " >&6; }
9894 if test "${ac_cv_func_select_args+set}" = set; then :
9895 $as_echo_n "(cached) " >&6
9896 else
9897 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9898 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9899 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 #ifdef HAVE_SYS_SELECT_H
9904 # include <sys/select.h>
9905 #endif
9906 #ifdef HAVE_SYS_SOCKET_H
9907 # include <sys/socket.h>
9908 #endif
9909
9910 int
9911 main ()
9912 {
9913 extern int select ($ac_arg1,
9914 $ac_arg234, $ac_arg234, $ac_arg234,
9915 $ac_arg5);
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 done
9925 done
9926 done
9927 # Provide a safe default value.
9928 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9929
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9932 $as_echo "$ac_cv_func_select_args" >&6; }
9933 ac_save_IFS=$IFS; IFS=','
9934 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9935 IFS=$ac_save_IFS
9936 shift
9937
9938 cat >>confdefs.h <<_ACEOF
9939 #define SELECT_TYPE_ARG1 $1
9940 _ACEOF
9941
9942
9943 cat >>confdefs.h <<_ACEOF
9944 #define SELECT_TYPE_ARG234 ($2)
9945 _ACEOF
9946
9947
9948 cat >>confdefs.h <<_ACEOF
9949 #define SELECT_TYPE_ARG5 ($3)
9950 _ACEOF
9951
9952 rm -f conftest*
9953
9954 fi
9955
9956 if test x$CLUSTER != xnone; then
9957 for ac_header in sys/socket.h sys/un.h
9958 do :
9959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9960 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9961 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9962 cat >>confdefs.h <<_ACEOF
9963 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9964 _ACEOF
9965
9966 else
9967 as_fn_error $? "bailing out" "$LINENO" 5
9968 fi
9969
9970 done
9971
9972 for ac_func in socket
9973 do :
9974 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9975 if test "x$ac_cv_func_socket" = x""yes; then :
9976 cat >>confdefs.h <<_ACEOF
9977 #define HAVE_SOCKET 1
9978 _ACEOF
9979
9980 else
9981 as_fn_error $? "bailing out" "$LINENO" 5
9982 fi
9983 done
9984
9985 fi
9986
9987 if test x$DMEVENTD = xyes; then
9988 for ac_header in arpa/inet.h
9989 do :
9990 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9991 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
9992 cat >>confdefs.h <<_ACEOF
9993 #define HAVE_ARPA_INET_H 1
9994 _ACEOF
9995
9996 else
9997 as_fn_error $? "bailing out" "$LINENO" 5
9998 fi
9999
10000 done
10001
10002 fi
10003
10004 if test x$HAVE_LIBDL = xyes; then
10005 for ac_header in dlfcn.h
10006 do :
10007 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10008 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10009 cat >>confdefs.h <<_ACEOF
10010 #define HAVE_DLFCN_H 1
10011 _ACEOF
10012
10013 else
10014 as_fn_error $? "bailing out" "$LINENO" 5
10015 fi
10016
10017 done
10018
10019 fi
10020
10021 if test x$INTL = xyes; then
10022 for ac_header in libintl.h
10023 do :
10024 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10025 if test "x$ac_cv_header_libintl_h" = x""yes; then :
10026 cat >>confdefs.h <<_ACEOF
10027 #define HAVE_LIBINTL_H 1
10028 _ACEOF
10029
10030 else
10031 as_fn_error $? "bailing out" "$LINENO" 5
10032 fi
10033
10034 done
10035
10036 fi
10037
10038 if test x$UDEV_SYNC = xyes; then
10039 for ac_header in sys/ipc.h sys/sem.h
10040 do :
10041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10043 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10044 cat >>confdefs.h <<_ACEOF
10045 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10046 _ACEOF
10047
10048 else
10049 as_fn_error $? "bailing out" "$LINENO" 5
10050 fi
10051
10052 done
10053
10054 fi
10055
10056 ################################################################################
10057 # Extract the first word of "modprobe", so it can be a program name with args.
10058 set dummy modprobe; ac_word=$2
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10060 $as_echo_n "checking for $ac_word... " >&6; }
10061 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10062 $as_echo_n "(cached) " >&6
10063 else
10064 case $MODPROBE_CMD in
10065 [\\/]* | ?:[\\/]*)
10066 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10067 ;;
10068 *)
10069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070 for as_dir in $PATH
10071 do
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10076 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10078 break 2
10079 fi
10080 done
10081 done
10082 IFS=$as_save_IFS
10083
10084 ;;
10085 esac
10086 fi
10087 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10088 if test -n "$MODPROBE_CMD"; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10090 $as_echo "$MODPROBE_CMD" >&6; }
10091 else
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10094 fi
10095
10096
10097
10098 if test x$MODPROBE_CMD != x; then
10099
10100 cat >>confdefs.h <<_ACEOF
10101 #define MODPROBE_CMD "$MODPROBE_CMD"
10102 _ACEOF
10103
10104 fi
10105
10106
10107 lvm_exec_prefix=$exec_prefix
10108 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10109 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10110 LVM_PATH="$lvm_exec_prefix/sbin/lvm"
10111
10112 cat >>confdefs.h <<_ACEOF
10113 #define LVM_PATH "$LVM_PATH"
10114 _ACEOF
10115
10116
10117 if test "$CLVMD" != none; then
10118 clvmd_prefix=$ac_default_prefix
10119 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
10120 test "$prefix" != NONE && clvmd_prefix=$prefix
10121
10122 cat >>confdefs.h <<_ACEOF
10123 #define CLVMD_PATH "$CLVMD_PATH"
10124 _ACEOF
10125
10126 fi
10127
10128 ################################################################################
10129 if test "$BUILD_DMEVENTD" = yes; then
10130
10131 # Check whether --with-dmeventd-pidfile was given.
10132 if test "${with_dmeventd_pidfile+set}" = set; then :
10133 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
10134 else
10135 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
10136 fi
10137
10138
10139 cat >>confdefs.h <<_ACEOF
10140 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10141 _ACEOF
10142
10143 fi
10144
10145 if test "$BUILD_DMEVENTD" = yes; then
10146
10147 # Check whether --with-dmeventd-path was given.
10148 if test "${with_dmeventd_path+set}" = set; then :
10149 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
10150 else
10151 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
10152 fi
10153
10154
10155 cat >>confdefs.h <<_ACEOF
10156 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10157 _ACEOF
10158
10159 fi
10160
10161
10162
10163 # Check whether --with-default-run-dir was given.
10164 if test "${with_default_run_dir+set}" = set; then :
10165 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10166 else
10167 DEFAULT_RUN_DIR="/var/run/lvm"
10168 fi
10169
10170 cat >>confdefs.h <<_ACEOF
10171 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10172 _ACEOF
10173
10174
10175 ################################################################################
10176
10177 # Check whether --with-default-system-dir was given.
10178 if test "${with_default_system_dir+set}" = set; then :
10179 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
10180 else
10181 DEFAULT_SYS_DIR="/etc/lvm"
10182 fi
10183
10184
10185 cat >>confdefs.h <<_ACEOF
10186 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10187 _ACEOF
10188
10189
10190
10191 # Check whether --with-default-archive-subdir was given.
10192 if test "${with_default_archive_subdir+set}" = set; then :
10193 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
10194 else
10195 DEFAULT_ARCHIVE_SUBDIR=archive
10196 fi
10197
10198
10199 cat >>confdefs.h <<_ACEOF
10200 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10201 _ACEOF
10202
10203
10204
10205 # Check whether --with-default-backup-subdir was given.
10206 if test "${with_default_backup_subdir+set}" = set; then :
10207 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
10208 else
10209 DEFAULT_BACKUP_SUBDIR=backup
10210 fi
10211
10212
10213 cat >>confdefs.h <<_ACEOF
10214 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10215 _ACEOF
10216
10217
10218
10219 # Check whether --with-default-cache-subdir was given.
10220 if test "${with_default_cache_subdir+set}" = set; then :
10221 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
10222 else
10223 DEFAULT_CACHE_SUBDIR=cache
10224 fi
10225
10226
10227 cat >>confdefs.h <<_ACEOF
10228 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10229 _ACEOF
10230
10231
10232
10233 # Check whether --with-default-locking-dir was given.
10234 if test "${with_default_locking_dir+set}" = set; then :
10235 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
10236 else
10237 DEFAULT_LOCK_DIR="/var/lock/lvm"
10238 fi
10239
10240
10241 cat >>confdefs.h <<_ACEOF
10242 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10243 _ACEOF
10244
10245
10246 ################################################################################
10247
10248 # Check whether --with-default-data-alignment was given.
10249 if test "${with_default_data_alignment+set}" = set; then :
10250 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10251 else
10252 DEFAULT_DATA_ALIGNMENT=1
10253 fi
10254
10255
10256 cat >>confdefs.h <<_ACEOF
10257 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10258 _ACEOF
10259
10260
10261 ################################################################################
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10263 $as_echo_n "checking for kernel interface choice... " >&6; }
10264
10265 # Check whether --with-interface was given.
10266 if test "${with_interface+set}" = set; then :
10267 withval=$with_interface; interface=$withval
10268 else
10269 interface=ioctl
10270 fi
10271
10272 if [ "x$interface" != xioctl ];
10273 then
10274 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10277 $as_echo "$interface" >&6; }
10278
10279 ################################################################################
10280 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10281
10282 cat >>confdefs.h <<_ACEOF
10283 #define DM_LIB_VERSION $DM_LIB_VERSION
10284 _ACEOF
10285
10286
10287 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10288
10289 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10290
10291 VER=`cat "$srcdir"/VERSION`
10292 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10293 VER=`echo "$VER" | $AWK '{print $1}'`
10294 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10295 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10296 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10297 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10298 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10299 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
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
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413 ################################################################################
10414 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"
10415
10416 cat >confcache <<\_ACEOF
10417 # This file is a shell script that caches the results of configure
10418 # tests run on this system so they can be shared between configure
10419 # scripts and configure runs, see configure's option --config-cache.
10420 # It is not useful on other systems. If it contains results you don't
10421 # want to keep, you may remove or edit it.
10422 #
10423 # config.status only pays attention to the cache file if you give it
10424 # the --recheck option to rerun configure.
10425 #
10426 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10427 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10428 # following values.
10429
10430 _ACEOF
10431
10432 # The following way of writing the cache mishandles newlines in values,
10433 # but we know of no workaround that is simple, portable, and efficient.
10434 # So, we kill variables containing newlines.
10435 # Ultrix sh set writes to stderr and can't be redirected directly,
10436 # and sets the high bit in the cache file unless we assign to the vars.
10437 (
10438 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10439 eval ac_val=\$$ac_var
10440 case $ac_val in #(
10441 *${as_nl}*)
10442 case $ac_var in #(
10443 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10444 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10445 esac
10446 case $ac_var in #(
10447 _ | IFS | as_nl) ;; #(
10448 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10449 *) { eval $ac_var=; unset $ac_var;} ;;
10450 esac ;;
10451 esac
10452 done
10453
10454 (set) 2>&1 |
10455 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10456 *${as_nl}ac_space=\ *)
10457 # `set' does not quote correctly, so add quotes: double-quote
10458 # substitution turns \\\\ into \\, and sed turns \\ into \.
10459 sed -n \
10460 "s/'/'\\\\''/g;
10461 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10462 ;; #(
10463 *)
10464 # `set' quotes correctly as required by POSIX, so do not add quotes.
10465 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10466 ;;
10467 esac |
10468 sort
10469 ) |
10470 sed '
10471 /^ac_cv_env_/b end
10472 t clear
10473 :clear
10474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10475 t end
10476 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10477 :end' >>confcache
10478 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10479 if test -w "$cache_file"; then
10480 test "x$cache_file" != "x/dev/null" &&
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10482 $as_echo "$as_me: updating cache $cache_file" >&6;}
10483 cat confcache >$cache_file
10484 else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10486 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10487 fi
10488 fi
10489 rm -f confcache
10490
10491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10492 # Let make expand exec_prefix.
10493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10494
10495 DEFS=-DHAVE_CONFIG_H
10496
10497 ac_libobjs=
10498 ac_ltlibobjs=
10499 U=
10500 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10501 # 1. Remove the extension, and $U if already installed.
10502 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10503 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10504 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10505 # will be set to the directory where LIBOBJS objects are built.
10506 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10507 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10508 done
10509 LIBOBJS=$ac_libobjs
10510
10511 LTLIBOBJS=$ac_ltlibobjs
10512
10513
10514
10515 : ${CONFIG_STATUS=./config.status}
10516 ac_write_fail=0
10517 ac_clean_files_save=$ac_clean_files
10518 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10520 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10521 as_write_fail=0
10522 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10523 #! $SHELL
10524 # Generated by $as_me.
10525 # Run this file to recreate the current configuration.
10526 # Compiler output produced by configure, useful for debugging
10527 # configure, is in config.log if it exists.
10528
10529 debug=false
10530 ac_cs_recheck=false
10531 ac_cs_silent=false
10532
10533 SHELL=\${CONFIG_SHELL-$SHELL}
10534 export SHELL
10535 _ASEOF
10536 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10537 ## -------------------- ##
10538 ## M4sh Initialization. ##
10539 ## -------------------- ##
10540
10541 # Be more Bourne compatible
10542 DUALCASE=1; export DUALCASE # for MKS sh
10543 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10544 emulate sh
10545 NULLCMD=:
10546 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10547 # is contrary to our usage. Disable this feature.
10548 alias -g '${1+"$@"}'='"$@"'
10549 setopt NO_GLOB_SUBST
10550 else
10551 case `(set -o) 2>/dev/null` in #(
10552 *posix*) :
10553 set -o posix ;; #(
10554 *) :
10555 ;;
10556 esac
10557 fi
10558
10559
10560 as_nl='
10561 '
10562 export as_nl
10563 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10564 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10565 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10567 # Prefer a ksh shell builtin over an external printf program on Solaris,
10568 # but without wasting forks for bash or zsh.
10569 if test -z "$BASH_VERSION$ZSH_VERSION" \
10570 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10571 as_echo='print -r --'
10572 as_echo_n='print -rn --'
10573 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10574 as_echo='printf %s\n'
10575 as_echo_n='printf %s'
10576 else
10577 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10578 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10579 as_echo_n='/usr/ucb/echo -n'
10580 else
10581 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10582 as_echo_n_body='eval
10583 arg=$1;
10584 case $arg in #(
10585 *"$as_nl"*)
10586 expr "X$arg" : "X\\(.*\\)$as_nl";
10587 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10588 esac;
10589 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10590 '
10591 export as_echo_n_body
10592 as_echo_n='sh -c $as_echo_n_body as_echo'
10593 fi
10594 export as_echo_body
10595 as_echo='sh -c $as_echo_body as_echo'
10596 fi
10597
10598 # The user is always right.
10599 if test "${PATH_SEPARATOR+set}" != set; then
10600 PATH_SEPARATOR=:
10601 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10602 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10603 PATH_SEPARATOR=';'
10604 }
10605 fi
10606
10607
10608 # IFS
10609 # We need space, tab and new line, in precisely that order. Quoting is
10610 # there to prevent editors from complaining about space-tab.
10611 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10612 # splitting by setting IFS to empty value.)
10613 IFS=" "" $as_nl"
10614
10615 # Find who we are. Look in the path if we contain no directory separator.
10616 case $0 in #((
10617 *[\\/]* ) as_myself=$0 ;;
10618 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10624 done
10625 IFS=$as_save_IFS
10626
10627 ;;
10628 esac
10629 # We did not find ourselves, most probably we were run as `sh COMMAND'
10630 # in which case we are not to be found in the path.
10631 if test "x$as_myself" = x; then
10632 as_myself=$0
10633 fi
10634 if test ! -f "$as_myself"; then
10635 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10636 exit 1
10637 fi
10638
10639 # Unset variables that we do not need and which cause bugs (e.g. in
10640 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10641 # suppresses any "Segmentation fault" message there. '((' could
10642 # trigger a bug in pdksh 5.2.14.
10643 for as_var in BASH_ENV ENV MAIL MAILPATH
10644 do eval test x\${$as_var+set} = xset \
10645 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10646 done
10647 PS1='$ '
10648 PS2='> '
10649 PS4='+ '
10650
10651 # NLS nuisances.
10652 LC_ALL=C
10653 export LC_ALL
10654 LANGUAGE=C
10655 export LANGUAGE
10656
10657 # CDPATH.
10658 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10659
10660
10661 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10662 # ----------------------------------------
10663 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10664 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10665 # script with STATUS, using 1 if that was 0.
10666 as_fn_error ()
10667 {
10668 as_status=$1; test $as_status -eq 0 && as_status=1
10669 if test "$4"; then
10670 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10671 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10672 fi
10673 $as_echo "$as_me: error: $2" >&2
10674 as_fn_exit $as_status
10675 } # as_fn_error
10676
10677
10678 # as_fn_set_status STATUS
10679 # -----------------------
10680 # Set $? to STATUS, without forking.
10681 as_fn_set_status ()
10682 {
10683 return $1
10684 } # as_fn_set_status
10685
10686 # as_fn_exit STATUS
10687 # -----------------
10688 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10689 as_fn_exit ()
10690 {
10691 set +e
10692 as_fn_set_status $1
10693 exit $1
10694 } # as_fn_exit
10695
10696 # as_fn_unset VAR
10697 # ---------------
10698 # Portably unset VAR.
10699 as_fn_unset ()
10700 {
10701 { eval $1=; unset $1;}
10702 }
10703 as_unset=as_fn_unset
10704 # as_fn_append VAR VALUE
10705 # ----------------------
10706 # Append the text in VALUE to the end of the definition contained in VAR. Take
10707 # advantage of any shell optimizations that allow amortized linear growth over
10708 # repeated appends, instead of the typical quadratic growth present in naive
10709 # implementations.
10710 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10711 eval 'as_fn_append ()
10712 {
10713 eval $1+=\$2
10714 }'
10715 else
10716 as_fn_append ()
10717 {
10718 eval $1=\$$1\$2
10719 }
10720 fi # as_fn_append
10721
10722 # as_fn_arith ARG...
10723 # ------------------
10724 # Perform arithmetic evaluation on the ARGs, and store the result in the
10725 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10726 # must be portable across $(()) and expr.
10727 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10728 eval 'as_fn_arith ()
10729 {
10730 as_val=$(( $* ))
10731 }'
10732 else
10733 as_fn_arith ()
10734 {
10735 as_val=`expr "$@" || test $? -eq 1`
10736 }
10737 fi # as_fn_arith
10738
10739
10740 if expr a : '\(a\)' >/dev/null 2>&1 &&
10741 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10742 as_expr=expr
10743 else
10744 as_expr=false
10745 fi
10746
10747 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10748 as_basename=basename
10749 else
10750 as_basename=false
10751 fi
10752
10753 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10754 as_dirname=dirname
10755 else
10756 as_dirname=false
10757 fi
10758
10759 as_me=`$as_basename -- "$0" ||
10760 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10761 X"$0" : 'X\(//\)$' \| \
10762 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10763 $as_echo X/"$0" |
10764 sed '/^.*\/\([^/][^/]*\)\/*$/{
10765 s//\1/
10766 q
10767 }
10768 /^X\/\(\/\/\)$/{
10769 s//\1/
10770 q
10771 }
10772 /^X\/\(\/\).*/{
10773 s//\1/
10774 q
10775 }
10776 s/.*/./; q'`
10777
10778 # Avoid depending upon Character Ranges.
10779 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10780 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10781 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10782 as_cr_digits='0123456789'
10783 as_cr_alnum=$as_cr_Letters$as_cr_digits
10784
10785 ECHO_C= ECHO_N= ECHO_T=
10786 case `echo -n x` in #(((((
10787 -n*)
10788 case `echo 'xy\c'` in
10789 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10790 xy) ECHO_C='\c';;
10791 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10792 ECHO_T=' ';;
10793 esac;;
10794 *)
10795 ECHO_N='-n';;
10796 esac
10797
10798 rm -f conf$$ conf$$.exe conf$$.file
10799 if test -d conf$$.dir; then
10800 rm -f conf$$.dir/conf$$.file
10801 else
10802 rm -f conf$$.dir
10803 mkdir conf$$.dir 2>/dev/null
10804 fi
10805 if (echo >conf$$.file) 2>/dev/null; then
10806 if ln -s conf$$.file conf$$ 2>/dev/null; then
10807 as_ln_s='ln -s'
10808 # ... but there are two gotchas:
10809 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10810 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10811 # In both cases, we have to default to `cp -p'.
10812 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10813 as_ln_s='cp -p'
10814 elif ln conf$$.file conf$$ 2>/dev/null; then
10815 as_ln_s=ln
10816 else
10817 as_ln_s='cp -p'
10818 fi
10819 else
10820 as_ln_s='cp -p'
10821 fi
10822 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10823 rmdir conf$$.dir 2>/dev/null
10824
10825
10826 # as_fn_mkdir_p
10827 # -------------
10828 # Create "$as_dir" as a directory, including parents if necessary.
10829 as_fn_mkdir_p ()
10830 {
10831
10832 case $as_dir in #(
10833 -*) as_dir=./$as_dir;;
10834 esac
10835 test -d "$as_dir" || eval $as_mkdir_p || {
10836 as_dirs=
10837 while :; do
10838 case $as_dir in #(
10839 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10840 *) as_qdir=$as_dir;;
10841 esac
10842 as_dirs="'$as_qdir' $as_dirs"
10843 as_dir=`$as_dirname -- "$as_dir" ||
10844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10845 X"$as_dir" : 'X\(//\)[^/]' \| \
10846 X"$as_dir" : 'X\(//\)$' \| \
10847 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10848 $as_echo X"$as_dir" |
10849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10850 s//\1/
10851 q
10852 }
10853 /^X\(\/\/\)[^/].*/{
10854 s//\1/
10855 q
10856 }
10857 /^X\(\/\/\)$/{
10858 s//\1/
10859 q
10860 }
10861 /^X\(\/\).*/{
10862 s//\1/
10863 q
10864 }
10865 s/.*/./; q'`
10866 test -d "$as_dir" && break
10867 done
10868 test -z "$as_dirs" || eval "mkdir $as_dirs"
10869 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10870
10871
10872 } # as_fn_mkdir_p
10873 if mkdir -p . 2>/dev/null; then
10874 as_mkdir_p='mkdir -p "$as_dir"'
10875 else
10876 test -d ./-p && rmdir ./-p
10877 as_mkdir_p=false
10878 fi
10879
10880 if test -x / >/dev/null 2>&1; then
10881 as_test_x='test -x'
10882 else
10883 if ls -dL / >/dev/null 2>&1; then
10884 as_ls_L_option=L
10885 else
10886 as_ls_L_option=
10887 fi
10888 as_test_x='
10889 eval sh -c '\''
10890 if test -d "$1"; then
10891 test -d "$1/.";
10892 else
10893 case $1 in #(
10894 -*)set "./$1";;
10895 esac;
10896 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10897 ???[sx]*):;;*)false;;esac;fi
10898 '\'' sh
10899 '
10900 fi
10901 as_executable_p=$as_test_x
10902
10903 # Sed expression to map a string onto a valid CPP name.
10904 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10905
10906 # Sed expression to map a string onto a valid variable name.
10907 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10908
10909
10910 exec 6>&1
10911 ## ----------------------------------- ##
10912 ## Main body of $CONFIG_STATUS script. ##
10913 ## ----------------------------------- ##
10914 _ASEOF
10915 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10916
10917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10918 # Save the log message, to keep $0 and so on meaningful, and to
10919 # report actual input values of CONFIG_FILES etc. instead of their
10920 # values after options handling.
10921 ac_log="
10922 This file was extended by $as_me, which was
10923 generated by GNU Autoconf 2.66. Invocation command line was
10924
10925 CONFIG_FILES = $CONFIG_FILES
10926 CONFIG_HEADERS = $CONFIG_HEADERS
10927 CONFIG_LINKS = $CONFIG_LINKS
10928 CONFIG_COMMANDS = $CONFIG_COMMANDS
10929 $ $0 $@
10930
10931 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10932 "
10933
10934 _ACEOF
10935
10936 case $ac_config_files in *"
10937 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10938 esac
10939
10940 case $ac_config_headers in *"
10941 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10942 esac
10943
10944
10945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10946 # Files that config.status was made for.
10947 config_files="$ac_config_files"
10948 config_headers="$ac_config_headers"
10949
10950 _ACEOF
10951
10952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10953 ac_cs_usage="\
10954 \`$as_me' instantiates files and other configuration actions
10955 from templates according to the current configuration. Unless the files
10956 and actions are specified as TAGs, all are instantiated by default.
10957
10958 Usage: $0 [OPTION]... [TAG]...
10959
10960 -h, --help print this help, then exit
10961 -V, --version print version number and configuration settings, then exit
10962 --config print configuration, then exit
10963 -q, --quiet, --silent
10964 do not print progress messages
10965 -d, --debug don't remove temporary files
10966 --recheck update $as_me by reconfiguring in the same conditions
10967 --file=FILE[:TEMPLATE]
10968 instantiate the configuration file FILE
10969 --header=FILE[:TEMPLATE]
10970 instantiate the configuration header FILE
10971
10972 Configuration files:
10973 $config_files
10974
10975 Configuration headers:
10976 $config_headers
10977
10978 Report bugs to the package provider."
10979
10980 _ACEOF
10981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10982 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10983 ac_cs_version="\\
10984 config.status
10985 configured by $0, generated by GNU Autoconf 2.66,
10986 with options \\"\$ac_cs_config\\"
10987
10988 Copyright (C) 2010 Free Software Foundation, Inc.
10989 This config.status script is free software; the Free Software Foundation
10990 gives unlimited permission to copy, distribute and modify it."
10991
10992 ac_pwd='$ac_pwd'
10993 srcdir='$srcdir'
10994 INSTALL='$INSTALL'
10995 MKDIR_P='$MKDIR_P'
10996 AWK='$AWK'
10997 test -n "\$AWK" || AWK=awk
10998 _ACEOF
10999
11000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11001 # The default lists apply if the user does not specify any file.
11002 ac_need_defaults=:
11003 while test $# != 0
11004 do
11005 case $1 in
11006 --*=*)
11007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11009 ac_shift=:
11010 ;;
11011 *)
11012 ac_option=$1
11013 ac_optarg=$2
11014 ac_shift=shift
11015 ;;
11016 esac
11017
11018 case $ac_option in
11019 # Handling of the options.
11020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11021 ac_cs_recheck=: ;;
11022 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11023 $as_echo "$ac_cs_version"; exit ;;
11024 --config | --confi | --conf | --con | --co | --c )
11025 $as_echo "$ac_cs_config"; exit ;;
11026 --debug | --debu | --deb | --de | --d | -d )
11027 debug=: ;;
11028 --file | --fil | --fi | --f )
11029 $ac_shift
11030 case $ac_optarg in
11031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11032 esac
11033 as_fn_append CONFIG_FILES " '$ac_optarg'"
11034 ac_need_defaults=false;;
11035 --header | --heade | --head | --hea )
11036 $ac_shift
11037 case $ac_optarg in
11038 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11039 esac
11040 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11041 ac_need_defaults=false;;
11042 --he | --h)
11043 # Conflict between --help and --header
11044 as_fn_error $? "ambiguous option: \`$1'
11045 Try \`$0 --help' for more information.";;
11046 --help | --hel | -h )
11047 $as_echo "$ac_cs_usage"; exit ;;
11048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11049 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11050 ac_cs_silent=: ;;
11051
11052 # This is an error.
11053 -*) as_fn_error $? "unrecognized option: \`$1'
11054 Try \`$0 --help' for more information." ;;
11055
11056 *) as_fn_append ac_config_targets " $1"
11057 ac_need_defaults=false ;;
11058
11059 esac
11060 shift
11061 done
11062
11063 ac_configure_extra_args=
11064
11065 if $ac_cs_silent; then
11066 exec 6>/dev/null
11067 ac_configure_extra_args="$ac_configure_extra_args --silent"
11068 fi
11069
11070 _ACEOF
11071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11072 if \$ac_cs_recheck; then
11073 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11074 shift
11075 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11076 CONFIG_SHELL='$SHELL'
11077 export CONFIG_SHELL
11078 exec "\$@"
11079 fi
11080
11081 _ACEOF
11082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11083 exec 5>>config.log
11084 {
11085 echo
11086 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11087 ## Running $as_me. ##
11088 _ASBOX
11089 $as_echo "$ac_log"
11090 } >&5
11091
11092 _ACEOF
11093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11094 _ACEOF
11095
11096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11097
11098 # Handling of arguments.
11099 for ac_config_target in $ac_config_targets
11100 do
11101 case $ac_config_target in
11102 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11103 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11104 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11105 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11106 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11107 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11108 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
11109 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11110 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11111 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11112 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11113 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
11114 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11115 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11116 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
11117 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
11118 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11119 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
11120 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
11121 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11122 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11123 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11124 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11125 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11126 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11127 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
11128 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11129 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
11130 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11131 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
11132 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11133 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11134 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
11135 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11136 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11137 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11138 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11139 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11140 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11141 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11142 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11143 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11144 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11145 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
11146 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
11147 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11148 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
11149 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11150 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11151 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11152
11153 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11154 esac
11155 done
11156
11157
11158 # If the user did not use the arguments to specify the items to instantiate,
11159 # then the envvar interface is used. Set only those that are not.
11160 # We use the long form for the default assignment because of an extremely
11161 # bizarre bug on SunOS 4.1.3.
11162 if $ac_need_defaults; then
11163 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11164 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11165 fi
11166
11167 # Have a temporary directory for convenience. Make it in the build tree
11168 # simply because there is no reason against having it here, and in addition,
11169 # creating and moving files from /tmp can sometimes cause problems.
11170 # Hook for its removal unless debugging.
11171 # Note that there is a small window in which the directory will not be cleaned:
11172 # after its creation but before its name has been assigned to `$tmp'.
11173 $debug ||
11174 {
11175 tmp=
11176 trap 'exit_status=$?
11177 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11178 ' 0
11179 trap 'as_fn_exit 1' 1 2 13 15
11180 }
11181 # Create a (secure) tmp directory for tmp files.
11182
11183 {
11184 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11185 test -n "$tmp" && test -d "$tmp"
11186 } ||
11187 {
11188 tmp=./conf$$-$RANDOM
11189 (umask 077 && mkdir "$tmp")
11190 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11191
11192 # Set up the scripts for CONFIG_FILES section.
11193 # No need to generate them if there are no CONFIG_FILES.
11194 # This happens for instance with `./config.status config.h'.
11195 if test -n "$CONFIG_FILES"; then
11196
11197
11198 ac_cr=`echo X | tr X '\015'`
11199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11200 # But we know of no other shell where ac_cr would be empty at this
11201 # point, so we can use a bashism as a fallback.
11202 if test "x$ac_cr" = x; then
11203 eval ac_cr=\$\'\\r\'
11204 fi
11205 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11207 ac_cs_awk_cr='\\r'
11208 else
11209 ac_cs_awk_cr=$ac_cr
11210 fi
11211
11212 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11213 _ACEOF
11214
11215
11216 {
11217 echo "cat >conf$$subs.awk <<_ACEOF" &&
11218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11219 echo "_ACEOF"
11220 } >conf$$subs.sh ||
11221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11223 ac_delim='%!_!# '
11224 for ac_last_try in false false false false false :; do
11225 . ./conf$$subs.sh ||
11226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11227
11228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11229 if test $ac_delim_n = $ac_delim_num; then
11230 break
11231 elif $ac_last_try; then
11232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11233 else
11234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11235 fi
11236 done
11237 rm -f conf$$subs.sh
11238
11239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11240 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11241 _ACEOF
11242 sed -n '
11243 h
11244 s/^/S["/; s/!.*/"]=/
11245 p
11246 g
11247 s/^[^!]*!//
11248 :repl
11249 t repl
11250 s/'"$ac_delim"'$//
11251 t delim
11252 :nl
11253 h
11254 s/\(.\{148\}\)..*/\1/
11255 t more1
11256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11257 p
11258 n
11259 b repl
11260 :more1
11261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11262 p
11263 g
11264 s/.\{148\}//
11265 t nl
11266 :delim
11267 h
11268 s/\(.\{148\}\)..*/\1/
11269 t more2
11270 s/["\\]/\\&/g; s/^/"/; s/$/"/
11271 p
11272 b
11273 :more2
11274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11275 p
11276 g
11277 s/.\{148\}//
11278 t delim
11279 ' <conf$$subs.awk | sed '
11280 /^[^""]/{
11281 N
11282 s/\n//
11283 }
11284 ' >>$CONFIG_STATUS || ac_write_fail=1
11285 rm -f conf$$subs.awk
11286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11287 _ACAWK
11288 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11289 for (key in S) S_is_set[key] = 1
11290 FS = "\a"
11291
11292 }
11293 {
11294 line = $ 0
11295 nfields = split(line, field, "@")
11296 substed = 0
11297 len = length(field[1])
11298 for (i = 2; i < nfields; i++) {
11299 key = field[i]
11300 keylen = length(key)
11301 if (S_is_set[key]) {
11302 value = S[key]
11303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11304 len += length(value) + length(field[++i])
11305 substed = 1
11306 } else
11307 len += 1 + keylen
11308 }
11309
11310 print line
11311 }
11312
11313 _ACAWK
11314 _ACEOF
11315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11318 else
11319 cat
11320 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11321 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11322 _ACEOF
11323
11324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11326 # trailing colons and then remove the whole line if VPATH becomes empty
11327 # (actually we leave an empty line to preserve line numbers).
11328 if test "x$srcdir" = x.; then
11329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11330 h
11331 s///
11332 s/^/:/
11333 s/[ ]*$/:/
11334 s/:\$(srcdir):/:/g
11335 s/:\${srcdir}:/:/g
11336 s/:@srcdir@:/:/g
11337 s/^:*//
11338 s/:*$//
11339 x
11340 s/\(=[ ]*\).*/\1/
11341 G
11342 s/\n//
11343 s/^[^=]*=[ ]*$//
11344 }'
11345 fi
11346
11347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11348 fi # test -n "$CONFIG_FILES"
11349
11350 # Set up the scripts for CONFIG_HEADERS section.
11351 # No need to generate them if there are no CONFIG_HEADERS.
11352 # This happens for instance with `./config.status Makefile'.
11353 if test -n "$CONFIG_HEADERS"; then
11354 cat >"$tmp/defines.awk" <<\_ACAWK ||
11355 BEGIN {
11356 _ACEOF
11357
11358 # Transform confdefs.h into an awk script `defines.awk', embedded as
11359 # here-document in config.status, that substitutes the proper values into
11360 # config.h.in to produce config.h.
11361
11362 # Create a delimiter string that does not exist in confdefs.h, to ease
11363 # handling of long lines.
11364 ac_delim='%!_!# '
11365 for ac_last_try in false false :; do
11366 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11367 if test -z "$ac_t"; then
11368 break
11369 elif $ac_last_try; then
11370 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11371 else
11372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11373 fi
11374 done
11375
11376 # For the awk script, D is an array of macro values keyed by name,
11377 # likewise P contains macro parameters if any. Preserve backslash
11378 # newline sequences.
11379
11380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11381 sed -n '
11382 s/.\{148\}/&'"$ac_delim"'/g
11383 t rset
11384 :rset
11385 s/^[ ]*#[ ]*define[ ][ ]*/ /
11386 t def
11387 d
11388 :def
11389 s/\\$//
11390 t bsnl
11391 s/["\\]/\\&/g
11392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11393 D["\1"]=" \3"/p
11394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11395 d
11396 :bsnl
11397 s/["\\]/\\&/g
11398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11399 D["\1"]=" \3\\\\\\n"\\/p
11400 t cont
11401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11402 t cont
11403 d
11404 :cont
11405 n
11406 s/.\{148\}/&'"$ac_delim"'/g
11407 t clear
11408 :clear
11409 s/\\$//
11410 t bsnlc
11411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11412 d
11413 :bsnlc
11414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11415 b cont
11416 ' <confdefs.h | sed '
11417 s/'"$ac_delim"'/"\\\
11418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11419
11420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11421 for (key in D) D_is_set[key] = 1
11422 FS = "\a"
11423 }
11424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11425 line = \$ 0
11426 split(line, arg, " ")
11427 if (arg[1] == "#") {
11428 defundef = arg[2]
11429 mac1 = arg[3]
11430 } else {
11431 defundef = substr(arg[1], 2)
11432 mac1 = arg[2]
11433 }
11434 split(mac1, mac2, "(") #)
11435 macro = mac2[1]
11436 prefix = substr(line, 1, index(line, defundef) - 1)
11437 if (D_is_set[macro]) {
11438 # Preserve the white space surrounding the "#".
11439 print prefix "define", macro P[macro] D[macro]
11440 next
11441 } else {
11442 # Replace #undef with comments. This is necessary, for example,
11443 # in the case of _POSIX_SOURCE, which is predefined and required
11444 # on some systems where configure will not decide to define it.
11445 if (defundef == "undef") {
11446 print "/*", prefix defundef, macro, "*/"
11447 next
11448 }
11449 }
11450 }
11451 { print }
11452 _ACAWK
11453 _ACEOF
11454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11455 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11456 fi # test -n "$CONFIG_HEADERS"
11457
11458
11459 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11460 shift
11461 for ac_tag
11462 do
11463 case $ac_tag in
11464 :[FHLC]) ac_mode=$ac_tag; continue;;
11465 esac
11466 case $ac_mode$ac_tag in
11467 :[FHL]*:*);;
11468 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11469 :[FH]-) ac_tag=-:-;;
11470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11471 esac
11472 ac_save_IFS=$IFS
11473 IFS=:
11474 set x $ac_tag
11475 IFS=$ac_save_IFS
11476 shift
11477 ac_file=$1
11478 shift
11479
11480 case $ac_mode in
11481 :L) ac_source=$1;;
11482 :[FH])
11483 ac_file_inputs=
11484 for ac_f
11485 do
11486 case $ac_f in
11487 -) ac_f="$tmp/stdin";;
11488 *) # Look for the file first in the build tree, then in the source tree
11489 # (if the path is not absolute). The absolute path cannot be DOS-style,
11490 # because $ac_f cannot contain `:'.
11491 test -f "$ac_f" ||
11492 case $ac_f in
11493 [\\/$]*) false;;
11494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11495 esac ||
11496 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11497 esac
11498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11499 as_fn_append ac_file_inputs " '$ac_f'"
11500 done
11501
11502 # Let's still pretend it is `configure' which instantiates (i.e., don't
11503 # use $as_me), people would be surprised to read:
11504 # /* config.h. Generated by config.status. */
11505 configure_input='Generated from '`
11506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11507 `' by configure.'
11508 if test x"$ac_file" != x-; then
11509 configure_input="$ac_file. $configure_input"
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11511 $as_echo "$as_me: creating $ac_file" >&6;}
11512 fi
11513 # Neutralize special characters interpreted by sed in replacement strings.
11514 case $configure_input in #(
11515 *\&* | *\|* | *\\* )
11516 ac_sed_conf_input=`$as_echo "$configure_input" |
11517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11518 *) ac_sed_conf_input=$configure_input;;
11519 esac
11520
11521 case $ac_tag in
11522 *:-:* | *:-) cat >"$tmp/stdin" \
11523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11524 esac
11525 ;;
11526 esac
11527
11528 ac_dir=`$as_dirname -- "$ac_file" ||
11529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11530 X"$ac_file" : 'X\(//\)[^/]' \| \
11531 X"$ac_file" : 'X\(//\)$' \| \
11532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11533 $as_echo X"$ac_file" |
11534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11535 s//\1/
11536 q
11537 }
11538 /^X\(\/\/\)[^/].*/{
11539 s//\1/
11540 q
11541 }
11542 /^X\(\/\/\)$/{
11543 s//\1/
11544 q
11545 }
11546 /^X\(\/\).*/{
11547 s//\1/
11548 q
11549 }
11550 s/.*/./; q'`
11551 as_dir="$ac_dir"; as_fn_mkdir_p
11552 ac_builddir=.
11553
11554 case "$ac_dir" in
11555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11556 *)
11557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11558 # A ".." for each directory in $ac_dir_suffix.
11559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11560 case $ac_top_builddir_sub in
11561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11563 esac ;;
11564 esac
11565 ac_abs_top_builddir=$ac_pwd
11566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11567 # for backward compatibility:
11568 ac_top_builddir=$ac_top_build_prefix
11569
11570 case $srcdir in
11571 .) # We are building in place.
11572 ac_srcdir=.
11573 ac_top_srcdir=$ac_top_builddir_sub
11574 ac_abs_top_srcdir=$ac_pwd ;;
11575 [\\/]* | ?:[\\/]* ) # Absolute name.
11576 ac_srcdir=$srcdir$ac_dir_suffix;
11577 ac_top_srcdir=$srcdir
11578 ac_abs_top_srcdir=$srcdir ;;
11579 *) # Relative name.
11580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11581 ac_top_srcdir=$ac_top_build_prefix$srcdir
11582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11583 esac
11584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11585
11586
11587 case $ac_mode in
11588 :F)
11589 #
11590 # CONFIG_FILE
11591 #
11592
11593 case $INSTALL in
11594 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11595 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11596 esac
11597 ac_MKDIR_P=$MKDIR_P
11598 case $MKDIR_P in
11599 [\\/$]* | ?:[\\/]* ) ;;
11600 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11601 esac
11602 _ACEOF
11603
11604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11605 # If the template does not know about datarootdir, expand it.
11606 # FIXME: This hack should be removed a few years after 2.60.
11607 ac_datarootdir_hack=; ac_datarootdir_seen=
11608 ac_sed_dataroot='
11609 /datarootdir/ {
11610 p
11611 q
11612 }
11613 /@datadir@/p
11614 /@docdir@/p
11615 /@infodir@/p
11616 /@localedir@/p
11617 /@mandir@/p'
11618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11619 *datarootdir*) ac_datarootdir_seen=yes;;
11620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11623 _ACEOF
11624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11625 ac_datarootdir_hack='
11626 s&@datadir@&$datadir&g
11627 s&@docdir@&$docdir&g
11628 s&@infodir@&$infodir&g
11629 s&@localedir@&$localedir&g
11630 s&@mandir@&$mandir&g
11631 s&\\\${datarootdir}&$datarootdir&g' ;;
11632 esac
11633 _ACEOF
11634
11635 # Neutralize VPATH when `$srcdir' = `.'.
11636 # Shell code in configure.ac might set extrasub.
11637 # FIXME: do we really want to maintain this feature?
11638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11639 ac_sed_extra="$ac_vpsub
11640 $extrasub
11641 _ACEOF
11642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11643 :t
11644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11645 s|@configure_input@|$ac_sed_conf_input|;t t
11646 s&@top_builddir@&$ac_top_builddir_sub&;t t
11647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11648 s&@srcdir@&$ac_srcdir&;t t
11649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11650 s&@top_srcdir@&$ac_top_srcdir&;t t
11651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11652 s&@builddir@&$ac_builddir&;t t
11653 s&@abs_builddir@&$ac_abs_builddir&;t t
11654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11655 s&@INSTALL@&$ac_INSTALL&;t t
11656 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11657 $ac_datarootdir_hack
11658 "
11659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11661
11662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11663 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11664 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11666 which seems to be undefined. Please make sure it is defined" >&5
11667 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11668 which seems to be undefined. Please make sure it is defined" >&2;}
11669
11670 rm -f "$tmp/stdin"
11671 case $ac_file in
11672 -) cat "$tmp/out" && rm -f "$tmp/out";;
11673 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11674 esac \
11675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11676 ;;
11677 :H)
11678 #
11679 # CONFIG_HEADER
11680 #
11681 if test x"$ac_file" != x-; then
11682 {
11683 $as_echo "/* $configure_input */" \
11684 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11685 } >"$tmp/config.h" \
11686 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11687 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11689 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11690 else
11691 rm -f "$ac_file"
11692 mv "$tmp/config.h" "$ac_file" \
11693 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11694 fi
11695 else
11696 $as_echo "/* $configure_input */" \
11697 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11698 || as_fn_error $? "could not create -" "$LINENO" 5
11699 fi
11700 ;;
11701
11702
11703 esac
11704
11705 done # for ac_tag
11706
11707
11708 as_fn_exit 0
11709 _ACEOF
11710 ac_clean_files=$ac_clean_files_save
11711
11712 test $ac_write_fail = 0 ||
11713 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11714
11715
11716 # configure is writing to config.log, and then calls config.status.
11717 # config.status does its own redirection, appending to config.log.
11718 # Unfortunately, on DOS this fails, as config.log is still kept open
11719 # by configure, so config.status won't be able to write to it; its
11720 # output is simply discarded. So we exec the FD to /dev/null,
11721 # effectively closing config.log, so it can be properly (re)opened and
11722 # appended to by config.status. When coming back to configure, we
11723 # need to make the FD available again.
11724 if test "$no_create" != yes; then
11725 ac_cs_success=:
11726 ac_config_status_args=
11727 test "$silent" = yes &&
11728 ac_config_status_args="$ac_config_status_args --quiet"
11729 exec 5>/dev/null
11730 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11731 exec 5>>config.log
11732 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11733 # would make configure fail if this is the last instruction.
11734 $ac_cs_success || as_fn_exit 1
11735 fi
11736 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11738 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11739 fi
11740
11741
11742 if test x$ODIRECT != xyes; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11744 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11745 fi
This page took 0.698229 seconds and 6 git commands to generate.