]> sourceware.org Git - lvm2.git/blob - configure
autoreconf
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="lib/device/dev-cache.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_default_prefix=/usr
596 ac_subst_vars='LTLIBOBJS
597 usrsbindir
598 usrlibdir
599 udevdir
600 udev_prefix
601 tmpdir
602 kernelvsn
603 missingkernel
604 kerneldir
605 interface
606 DMEVENTD_PIDFILE
607 WRITE_INSTALL
608 UDEV_SYNC
609 UDEV_RULES
610 UDEV_PC
611 TESTING
612 STATIC_LINK
613 STATICDIR
614 SNAPSHOTS
615 SELINUX_PC
616 SELINUX_LIBS
617 REPLICATORS
618 READLINE_LIBS
619 RAID
620 PTHREAD_LIBS
621 POOL
622 PKGCONFIG
623 OCFDIR
624 OCF
625 MIRRORS
626 LVM_RELEASE_DATE
627 LVM_RELEASE
628 LVM_PATCHLEVEL
629 LVM_MINOR
630 LVM_MAJOR
631 LVM_LIBAPI
632 LVM_VERSION
633 LVM1_FALLBACK
634 LVM1
635 LOCALEDIR
636 LIB_SUFFIX
637 LDDEPS
638 JOBS
639 INTL_PACKAGE
640 INTL
641 HAVE_REALTIME
642 HAVE_LIBDL
643 FSADM
644 DM_LIB_PATCHLEVEL
645 DM_LIB_VERSION
646 DM_IOCTLS
647 DM_DEVICE_UID
648 DM_DEVICE_MODE
649 DM_DEVICE_GID
650 DM_COMPAT
651 DMEVENTD_PATH
652 DMEVENTD
653 DL_LIBS
654 DEVMAPPER
655 DEFAULT_RUN_DIR
656 DEFAULT_LOCK_DIR
657 DEFAULT_DATA_ALIGNMENT
658 DEFAULT_CACHE_SUBDIR
659 DEFAULT_BACKUP_SUBDIR
660 DEFAULT_ARCHIVE_SUBDIR
661 DEFAULT_SYS_DIR
662 DEBUG
663 COPTIMISE_FLAG
664 CONFDIR
665 CMDLIB
666 CLVMD_CMANAGERS
667 CLVMD
668 CLUSTER
669 CLDWHOLEARCHIVE
670 CLDNOWHOLEARCHIVE
671 CLDFLAGS
672 CCS_LIBS
673 CCS_CFLAGS
674 BUILD_DMEVENTD
675 BUILD_CMIRRORD
676 APPLIB
677 MODPROBE_CMD
678 MSGFMT
679 LVM2CMD_LIB
680 LVM2APP_LIB
681 UDEV_LIBS
682 UDEV_CFLAGS
683 VALGRIND
684 RUBY19
685 GENPNG
686 GENHTML
687 LCOV
688 SACKPT_LIBS
689 SACKPT_CFLAGS
690 DLM_LIBS
691 DLM_CFLAGS
692 CPG_LIBS
693 CPG_CFLAGS
694 CONFDB_LIBS
695 CONFDB_CFLAGS
696 SALCK_LIBS
697 SALCK_CFLAGS
698 QUORUM_LIBS
699 QUORUM_CFLAGS
700 COROSYNC_LIBS
701 COROSYNC_CFLAGS
702 CMAN_LIBS
703 CMAN_CFLAGS
704 PKGCONFIGINIT_LIBS
705 PKGCONFIGINIT_CFLAGS
706 PKG_CONFIG_LIBDIR
707 PKG_CONFIG_PATH
708 PKG_CONFIG
709 POW_LIB
710 LIBOBJS
711 ALLOCA
712 CSCOPE_CMD
713 CFLOW_CMD
714 RANLIB
715 MKDIR_P
716 SET_MAKE
717 LN_S
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 EGREP
722 GREP
723 CPP
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 AWK
732 SED
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 target_alias
746 host_alias
747 build_alias
748 LIBS
749 ECHO_T
750 ECHO_N
751 ECHO_C
752 DEFS
753 mandir
754 localedir
755 libdir
756 psdir
757 pdfdir
758 dvidir
759 htmldir
760 infodir
761 docdir
762 oldincludedir
763 includedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL'
783 ac_subst_files=''
784 ac_user_opts='
785 enable_option_checking
786 enable_static_link
787 with_user
788 with_group
789 with_device_uid
790 with_device_gid
791 with_device_mode
792 with_device_nodes_on
793 enable_lvm1_fallback
794 with_lvm1
795 with_pool
796 with_cluster
797 with_snapshots
798 with_mirrors
799 with_raid
800 with_replicators
801 enable_readline
802 enable_realtime
803 enable_ocf
804 with_ocfdir
805 with_clvmd
806 with_clvmd_pidfile
807 enable_cmirrord
808 with_cmirrord_pidfile
809 enable_debug
810 with_optimisation
811 enable_profiling
812 enable_testing
813 enable_valgrind_pool
814 enable_devmapper
815 enable_udev_sync
816 enable_udev_rules
817 enable_compat
818 enable_units_compat
819 enable_ioctl
820 enable_o_direct
821 enable_applib
822 enable_cmdlib
823 enable_pkgconfig
824 enable_write_install
825 enable_fsadm
826 enable_dmeventd
827 enable_selinux
828 enable_nls
829 with_localedir
830 with_confdir
831 with_staticdir
832 with_usrlibdir
833 with_usrsbindir
834 with_udev_prefix
835 with_udevdir
836 with_dmeventd_pidfile
837 with_dmeventd_path
838 with_default_run_dir
839 with_default_system_dir
840 with_default_archive_subdir
841 with_default_backup_subdir
842 with_default_cache_subdir
843 with_default_locking_dir
844 with_default_data_alignment
845 with_interface
846 '
847 ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CPP
856 PKG_CONFIG
857 PKG_CONFIG_PATH
858 PKG_CONFIG_LIBDIR
859 PKGCONFIGINIT_CFLAGS
860 PKGCONFIGINIT_LIBS
861 CMAN_CFLAGS
862 CMAN_LIBS
863 COROSYNC_CFLAGS
864 COROSYNC_LIBS
865 QUORUM_CFLAGS
866 QUORUM_LIBS
867 SALCK_CFLAGS
868 SALCK_LIBS
869 CONFDB_CFLAGS
870 CONFDB_LIBS
871 CPG_CFLAGS
872 CPG_LIBS
873 DLM_CFLAGS
874 DLM_LIBS
875 SACKPT_CFLAGS
876 SACKPT_LIBS
877 UDEV_CFLAGS
878 UDEV_LIBS'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *) ac_optarg=yes ;;
943 esac
944
945 # Accept the important Cygnus configure options, so we can diagnose typos.
946
947 case $ac_dashdash$ac_option in
948 --)
949 ac_dashdash=yes ;;
950
951 -bindir | --bindir | --bindi | --bind | --bin | --bi)
952 ac_prev=bindir ;;
953 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 bindir=$ac_optarg ;;
955
956 -build | --build | --buil | --bui | --bu)
957 ac_prev=build_alias ;;
958 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959 build_alias=$ac_optarg ;;
960
961 -cache-file | --cache-file | --cache-fil | --cache-fi \
962 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963 ac_prev=cache_file ;;
964 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966 cache_file=$ac_optarg ;;
967
968 --config-cache | -C)
969 cache_file=config.cache ;;
970
971 -datadir | --datadir | --datadi | --datad)
972 ac_prev=datadir ;;
973 -datadir=* | --datadir=* | --datadi=* | --datad=*)
974 datadir=$ac_optarg ;;
975
976 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977 | --dataroo | --dataro | --datar)
978 ac_prev=datarootdir ;;
979 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981 datarootdir=$ac_optarg ;;
982
983 -disable-* | --disable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 as_fn_error $? "invalid feature name: $ac_useropt"
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
991 *"
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
998
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1003
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1008
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 as_fn_error $? "invalid feature name: $ac_useropt"
1014 ac_useropt_orig=$ac_useropt
1015 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1017 *"
1018 "enable_$ac_useropt"
1019 "*) ;;
1020 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep=', ';;
1022 esac
1023 eval enable_$ac_useropt=\$ac_optarg ;;
1024
1025 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1026 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1027 | --exec | --exe | --ex)
1028 ac_prev=exec_prefix ;;
1029 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1030 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1031 | --exec=* | --exe=* | --ex=*)
1032 exec_prefix=$ac_optarg ;;
1033
1034 -gas | --gas | --ga | --g)
1035 # Obsolete; use --with-gas.
1036 with_gas=yes ;;
1037
1038 -help | --help | --hel | --he | -h)
1039 ac_init_help=long ;;
1040 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1041 ac_init_help=recursive ;;
1042 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1043 ac_init_help=short ;;
1044
1045 -host | --host | --hos | --ho)
1046 ac_prev=host_alias ;;
1047 -host=* | --host=* | --hos=* | --ho=*)
1048 host_alias=$ac_optarg ;;
1049
1050 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1051 ac_prev=htmldir ;;
1052 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1053 | --ht=*)
1054 htmldir=$ac_optarg ;;
1055
1056 -includedir | --includedir | --includedi | --included | --include \
1057 | --includ | --inclu | --incl | --inc)
1058 ac_prev=includedir ;;
1059 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1060 | --includ=* | --inclu=* | --incl=* | --inc=*)
1061 includedir=$ac_optarg ;;
1062
1063 -infodir | --infodir | --infodi | --infod | --info | --inf)
1064 ac_prev=infodir ;;
1065 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1066 infodir=$ac_optarg ;;
1067
1068 -libdir | --libdir | --libdi | --libd)
1069 ac_prev=libdir ;;
1070 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1071 libdir=$ac_optarg ;;
1072
1073 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1074 | --libexe | --libex | --libe)
1075 ac_prev=libexecdir ;;
1076 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1077 | --libexe=* | --libex=* | --libe=*)
1078 libexecdir=$ac_optarg ;;
1079
1080 -localedir | --localedir | --localedi | --localed | --locale)
1081 ac_prev=localedir ;;
1082 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1083 localedir=$ac_optarg ;;
1084
1085 -localstatedir | --localstatedir | --localstatedi | --localstated \
1086 | --localstate | --localstat | --localsta | --localst | --locals)
1087 ac_prev=localstatedir ;;
1088 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1089 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1090 localstatedir=$ac_optarg ;;
1091
1092 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1093 ac_prev=mandir ;;
1094 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1095 mandir=$ac_optarg ;;
1096
1097 -nfp | --nfp | --nf)
1098 # Obsolete; use --without-fp.
1099 with_fp=no ;;
1100
1101 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1102 | --no-cr | --no-c | -n)
1103 no_create=yes ;;
1104
1105 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1106 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1107 no_recursion=yes ;;
1108
1109 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1110 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1111 | --oldin | --oldi | --old | --ol | --o)
1112 ac_prev=oldincludedir ;;
1113 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1114 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1115 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1116 oldincludedir=$ac_optarg ;;
1117
1118 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1119 ac_prev=prefix ;;
1120 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1121 prefix=$ac_optarg ;;
1122
1123 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1124 | --program-pre | --program-pr | --program-p)
1125 ac_prev=program_prefix ;;
1126 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1127 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1128 program_prefix=$ac_optarg ;;
1129
1130 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1131 | --program-suf | --program-su | --program-s)
1132 ac_prev=program_suffix ;;
1133 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1134 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1135 program_suffix=$ac_optarg ;;
1136
1137 -program-transform-name | --program-transform-name \
1138 | --program-transform-nam | --program-transform-na \
1139 | --program-transform-n | --program-transform- \
1140 | --program-transform | --program-transfor \
1141 | --program-transfo | --program-transf \
1142 | --program-trans | --program-tran \
1143 | --progr-tra | --program-tr | --program-t)
1144 ac_prev=program_transform_name ;;
1145 -program-transform-name=* | --program-transform-name=* \
1146 | --program-transform-nam=* | --program-transform-na=* \
1147 | --program-transform-n=* | --program-transform-=* \
1148 | --program-transform=* | --program-transfor=* \
1149 | --program-transfo=* | --program-transf=* \
1150 | --program-trans=* | --program-tran=* \
1151 | --progr-tra=* | --program-tr=* | --program-t=*)
1152 program_transform_name=$ac_optarg ;;
1153
1154 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1155 ac_prev=pdfdir ;;
1156 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1157 pdfdir=$ac_optarg ;;
1158
1159 -psdir | --psdir | --psdi | --psd | --ps)
1160 ac_prev=psdir ;;
1161 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1162 psdir=$ac_optarg ;;
1163
1164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1165 | -silent | --silent | --silen | --sile | --sil)
1166 silent=yes ;;
1167
1168 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1169 ac_prev=sbindir ;;
1170 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1171 | --sbi=* | --sb=*)
1172 sbindir=$ac_optarg ;;
1173
1174 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1175 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1176 | --sharedst | --shareds | --shared | --share | --shar \
1177 | --sha | --sh)
1178 ac_prev=sharedstatedir ;;
1179 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1180 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1181 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1182 | --sha=* | --sh=*)
1183 sharedstatedir=$ac_optarg ;;
1184
1185 -site | --site | --sit)
1186 ac_prev=site ;;
1187 -site=* | --site=* | --sit=*)
1188 site=$ac_optarg ;;
1189
1190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1191 ac_prev=srcdir ;;
1192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1193 srcdir=$ac_optarg ;;
1194
1195 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1196 | --syscon | --sysco | --sysc | --sys | --sy)
1197 ac_prev=sysconfdir ;;
1198 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1199 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1200 sysconfdir=$ac_optarg ;;
1201
1202 -target | --target | --targe | --targ | --tar | --ta | --t)
1203 ac_prev=target_alias ;;
1204 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1205 target_alias=$ac_optarg ;;
1206
1207 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1208 verbose=yes ;;
1209
1210 -version | --version | --versio | --versi | --vers | -V)
1211 ac_init_version=: ;;
1212
1213 -with-* | --with-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: $ac_useropt"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=\$ac_optarg ;;
1228
1229 -without-* | --without-*)
1230 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1233 as_fn_error $? "invalid package name: $ac_useropt"
1234 ac_useropt_orig=$ac_useropt
1235 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1237 *"
1238 "with_$ac_useropt"
1239 "*) ;;
1240 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep=', ';;
1242 esac
1243 eval with_$ac_useropt=no ;;
1244
1245 --x)
1246 # Obsolete; use --with-x.
1247 with_x=yes ;;
1248
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1255
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1262
1263 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1265 ;;
1266
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' | [0-9]* | *[!_$as_cr_alnum]* )
1272 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1273 esac
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1276
1277 *)
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283 ;;
1284
1285 esac
1286 done
1287
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $? "missing argument to $ac_option"
1291 fi
1292
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1295 no) ;;
1296 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1298 esac
1299 fi
1300
1301 # Check all directory arguments for consistency.
1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1306 do
1307 eval ac_val=\$$ac_var
1308 # Remove trailing slashes.
1309 case $ac_val in
1310 */ )
1311 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\$ac_val;;
1313 esac
1314 # Be sure to have absolute directory names.
1315 case $ac_val in
1316 [\\/$]* | ?:[\\/]* ) continue;;
1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1318 esac
1319 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used" >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $? "working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $? "pwd does not report name of working directory"
1352
1353
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)[^/].*/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)$/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\).*/{
1377 s//\1/
1378 q
1379 }
1380 s/.*/./; q'`
1381 srcdir=$ac_confdir
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 srcdir=..
1384 fi
1385 else
1386 ac_srcdir_defaulted=no
1387 fi
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391 fi
1392 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393 ac_abs_confdir=`(
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395 pwd)`
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1398 srcdir=.
1399 fi
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1403 case $srcdir in
1404 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405 esac
1406 for ac_var in $ac_precious_vars; do
1407 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_${ac_var}_value=\$${ac_var}
1409 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 done
1412
1413 #
1414 # Report the --help message.
1415 #
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1419 cat <<_ACEOF
1420 \`configure' configures this package to adapt to many kinds of systems.
1421
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1426
1427 Defaults for the options are specified in brackets.
1428
1429 Configuration:
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print \`checking ...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1444 [PREFIX]
1445
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1450
1451 For better control, use the options below.
1452
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1473 _ACEOF
1474
1475 cat <<\_ACEOF
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 --target=TARGET configure for building compilers for TARGET [HOST]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485
1486 cat <<\_ACEOF
1487
1488 Optional Features:
1489 --disable-option-checking ignore unrecognized --enable/--with options
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --enable-static_link use this to link the tools to their libraries
1493 statically (default is dynamic linking
1494 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1495 device-mapper is missing from the kernel
1496 --disable-readline disable readline support
1497 --enable-realtime enable realtime clock support
1498 --enable-ocf enable Open Cluster Framework (OCF) compliant
1499 resource agents
1500 --enable-cmirrord enable the cluster mirror log daemon
1501 --enable-debug enable debugging
1502 --enable-profiling gather gcov profiling data
1503 --enable-testing enable testing targets in the makefile
1504 --enable-valgrind-pool enable valgrind awareness of pools
1505 --disable-devmapper disable LVM2 device-mapper interaction
1506 --enable-udev_sync enable synchronisation with udev processing
1507 --enable-udev_rules install rule files needed for udev synchronisation
1508 --enable-compat enable support for old device-mapper versions
1509 --enable-units-compat enable output compatibility with old versions that
1510 that do not use KiB-style unit suffixes
1511 --disable-driver disable calls to device-mapper in the kernel
1512 --disable-o_direct disable O_DIRECT
1513 --enable-applib build application library
1514 --enable-cmdlib build shared command library
1515 --enable-pkgconfig install pkgconfig support
1516 --enable-write_install install user writable files
1517 --disable-fsadm disable fsadm
1518 --enable-dmeventd enable the device-mapper event daemon
1519 --disable-selinux disable selinux support
1520 --enable-nls enable Native Language Support
1521
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-user=USER set the owner of installed files [[USER=]]
1526 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1527 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1528 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1529 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1530 --with-device-nodes-on=ON
1531 create nodes on resume or create [[ON=resume]]
1532 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1533 [[TYPE=internal]]
1534 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1535 [[TYPE=internal]]
1536 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1537 [[TYPE=internal]]
1538 --with-snapshots=TYPE snapshot support: internal/shared/none
1539 [[TYPE=internal]]
1540 --with-mirrors=TYPE mirror support: internal/shared/none
1541 [[TYPE=internal]]
1542 --with-raid=TYPE mirror support: internal/shared/none
1543 [[TYPE=internal]]
1544 --with-replicators=TYPE replicator support: internal/shared/none
1545 [[TYPE=none]]
1546 --with-ocfdir=DIR install OCF files in DIR
1547 [[PREFIX/lib/ocf/resource.d/lvm2]]
1548 --with-clvmd=TYPE build cluster LVM Daemon
1549 The following cluster manager combinations are valid:
1550 * cman (RHEL5 or equivalent)
1551 * cman,corosync,openais (or selection of them)
1552 * singlenode (localhost only)
1553 * all (autodetect)
1554 * none (disable build)
1555 [TYPE=none]
1556 --with-clvmd-pidfile=PATH
1557 clvmd pidfile [[/var/run/clvmd.pid]]
1558 --with-cmirrord-pidfile=PATH
1559 cmirrord pidfile [[/var/run/cmirrord.pid]]
1560 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1561 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1562 --with-confdir=DIR configuration files in DIR [[/etc]]
1563 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1564 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1565 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1566 --with-udev-prefix=UPREFIX
1567 install udev rule files in UPREFIX [[EPREFIX]]
1568 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1569 --with-dmeventd-pidfile=PATH
1570 dmeventd pidfile [[/var/run/dmeventd.pid]]
1571 --with-dmeventd-path=PATH
1572 dmeventd path [[EPREFIX/sbin/dmeventd]]
1573 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1574 --with-default-system-dir=DIR
1575 default LVM system directory [[/etc/lvm]]
1576 --with-default-archive-subdir=SUBDIR
1577 default metadata archive subdir [[archive]]
1578 --with-default-backup-subdir=SUBDIR
1579 default metadata backup subdir [[backup]]
1580 --with-default-cache-subdir=SUBDIR
1581 default metadata cache subdir [[cache]]
1582 --with-default-locking-dir=DIR
1583 default locking directory [[/var/lock/lvm]]
1584 --with-default-data-alignment=NUM
1585 set the default data alignment in MiB [[1]]
1586 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1587
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CPP C preprocessor
1597 PKG_CONFIG path to pkg-config utility
1598 PKG_CONFIG_PATH
1599 directories to add to pkg-config's search path
1600 PKG_CONFIG_LIBDIR
1601 path overriding pkg-config's built-in search path
1602 PKGCONFIGINIT_CFLAGS
1603 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1604 PKGCONFIGINIT_LIBS
1605 linker flags for PKGCONFIGINIT, overriding pkg-config
1606 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1607 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1608 COROSYNC_CFLAGS
1609 C compiler flags for COROSYNC, overriding pkg-config
1610 COROSYNC_LIBS
1611 linker flags for COROSYNC, overriding pkg-config
1612 QUORUM_CFLAGS
1613 C compiler flags for QUORUM, overriding pkg-config
1614 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1615 SALCK_CFLAGS
1616 C compiler flags for SALCK, overriding pkg-config
1617 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1618 CONFDB_CFLAGS
1619 C compiler flags for CONFDB, overriding pkg-config
1620 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1621 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1622 CPG_LIBS linker flags for CPG, overriding pkg-config
1623 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1624 DLM_LIBS linker flags for DLM, overriding pkg-config
1625 SACKPT_CFLAGS
1626 C compiler flags for SACKPT, overriding pkg-config
1627 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1628 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1629 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1630
1631 Use these variables to override the choices made by `configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1633
1634 Report bugs to the package provider.
1635 _ACEOF
1636 ac_status=$?
1637 fi
1638
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
1645 ac_builddir=.
1646
1647 case "$ac_dir" in
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649 *)
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657 esac
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1662
1663 case $srcdir in
1664 .) # We are building in place.
1665 ac_srcdir=.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1676 esac
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1687 else
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1691 done
1692 fi
1693
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1696 cat <<\_ACEOF
1697 configure
1698 generated by GNU Autoconf 2.66
1699
1700 Copyright (C) 2010 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1703 _ACEOF
1704 exit
1705 fi
1706
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1710
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743 fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_compile
1748
1749 # ac_fn_c_try_cpp LINENO
1750 # ----------------------
1751 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_cpp ()
1753 {
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_cpp conftest.$ac_ext"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } >/dev/null && {
1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 ac_retval=1
1780 fi
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 as_fn_set_status $ac_retval
1783
1784 } # ac_fn_c_try_cpp
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821 fi
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 as_fn_set_status $ac_retval
1829
1830 } # ac_fn_c_try_link
1831
1832 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835 # the include files in INCLUDES and setting the cache variable VAR
1836 # accordingly.
1837 ac_fn_c_check_header_mongrel ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 if eval "test \"\${$3+set}\"" = set; then :
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval "test \"\${$3+set}\"" = set; then :
1844 $as_echo_n "(cached) " >&6
1845 fi
1846 eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1849 else
1850 # Is the header compilable?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852 $as_echo_n "checking $2 usability... " >&6; }
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1855 $4
1856 #include <$2>
1857 _ACEOF
1858 if ac_fn_c_try_compile "$LINENO"; then :
1859 ac_header_compiler=yes
1860 else
1861 ac_header_compiler=no
1862 fi
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865 $as_echo "$ac_header_compiler" >&6; }
1866
1867 # Is the header present?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869 $as_echo_n "checking $2 presence... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 #include <$2>
1873 _ACEOF
1874 if ac_fn_c_try_cpp "$LINENO"; then :
1875 ac_header_preproc=yes
1876 else
1877 ac_header_preproc=no
1878 fi
1879 rm -f conftest.err conftest.$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881 $as_echo "$ac_header_preproc" >&6; }
1882
1883 # So? What about this header?
1884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1885 yes:no: )
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1890 ;;
1891 no:yes:* )
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1895 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1899 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902 ;;
1903 esac
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval "test \"\${$3+set}\"" = set; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 eval "$3=\$ac_header_compiler"
1910 fi
1911 eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1914 fi
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1916
1917 } # ac_fn_c_check_header_mongrel
1918
1919 # ac_fn_c_try_run LINENO
1920 # ----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1922 # that executables *can* be run.
1923 ac_fn_c_try_run ()
1924 {
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>&5
1934 ac_status=$?
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937 { { case "(($ac_try" in
1938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939 *) ac_try_echo=$ac_try;;
1940 esac
1941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_try") 2>&5
1944 ac_status=$?
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; }; }; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: program exited with status $ac_status" >&5
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_retval=$ac_status
1954 fi
1955 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957 as_fn_set_status $ac_retval
1958
1959 } # ac_fn_c_try_run
1960
1961 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1962 # -------------------------------------------------------
1963 # Tests whether HEADER exists and can be compiled using the include files in
1964 # INCLUDES, setting the cache variable VAR accordingly.
1965 ac_fn_c_check_header_compile ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval "test \"\${$3+set}\"" = set; then :
1971 $as_echo_n "(cached) " >&6
1972 else
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 #include <$2>
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 eval "$3=yes"
1980 else
1981 eval "$3=no"
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 fi
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989
1990 } # ac_fn_c_check_header_compile
1991
1992 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993 # ----------------------------------------------------
1994 # Tries to find if the field MEMBER exists in type AGGR, after including
1995 # INCLUDES, setting cache variable VAR accordingly.
1996 ac_fn_c_check_member ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000 $as_echo_n "checking for $2.$3... " >&6; }
2001 if eval "test \"\${$4+set}\"" = set; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $5
2007 int
2008 main ()
2009 {
2010 static $2 ac_aggr;
2011 if (ac_aggr.$3)
2012 return 0;
2013 ;
2014 return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 eval "$4=yes"
2019 else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2022 $5
2023 int
2024 main ()
2025 {
2026 static $2 ac_aggr;
2027 if (sizeof ac_aggr.$3)
2028 return 0;
2029 ;
2030 return 0;
2031 }
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$4=yes"
2035 else
2036 eval "$4=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 eval ac_res=\$$4
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046
2047 } # ac_fn_c_check_member
2048
2049 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2050 # -------------------------------------------
2051 # Tests whether TYPE exists after having included INCLUDES, setting cache
2052 # variable VAR accordingly.
2053 ac_fn_c_check_type ()
2054 {
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval "test \"\${$3+set}\"" = set; then :
2059 $as_echo_n "(cached) " >&6
2060 else
2061 eval "$3=no"
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 int
2066 main ()
2067 {
2068 if (sizeof ($2))
2069 return 0;
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2077 $4
2078 int
2079 main ()
2080 {
2081 if (sizeof (($2)))
2082 return 0;
2083 ;
2084 return 0;
2085 }
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088
2089 else
2090 eval "$3=yes"
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 fi
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2100
2101 } # ac_fn_c_check_type
2102
2103 # ac_fn_c_find_intX_t LINENO BITS VAR
2104 # -----------------------------------
2105 # Finds a signed integer type with width BITS, setting cache variable VAR
2106 # accordingly.
2107 ac_fn_c_find_intX_t ()
2108 {
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2111 $as_echo_n "checking for int$2_t... " >&6; }
2112 if eval "test \"\${$3+set}\"" = set; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 eval "$3=no"
2116 # Order is important - never check a type that is potentially smaller
2117 # than half of the expected target width.
2118 for ac_type in int$2_t 'int' 'long int' \
2119 'long long int' 'short int' 'signed char'; do
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $ac_includes_default
2123 enum { N = $2 / 2 - 1 };
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2128 test_array [0] = 0
2129
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_compile "$LINENO"; then :
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $ac_includes_default
2138 enum { N = $2 / 2 - 1 };
2139 int
2140 main ()
2141 {
2142 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2143 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2144 test_array [0] = 0
2145
2146 ;
2147 return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151
2152 else
2153 case $ac_type in #(
2154 int$2_t) :
2155 eval "$3=yes" ;; #(
2156 *) :
2157 eval "$3=\$ac_type" ;;
2158 esac
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 if eval test \"x\$"$3"\" = x"no"; then :
2164
2165 else
2166 break
2167 fi
2168 done
2169 fi
2170 eval ac_res=\$$3
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174
2175 } # ac_fn_c_find_intX_t
2176
2177 # ac_fn_c_find_uintX_t LINENO BITS VAR
2178 # ------------------------------------
2179 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2180 # accordingly.
2181 ac_fn_c_find_uintX_t ()
2182 {
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2185 $as_echo_n "checking for uint$2_t... " >&6; }
2186 if eval "test \"\${$3+set}\"" = set; then :
2187 $as_echo_n "(cached) " >&6
2188 else
2189 eval "$3=no"
2190 # Order is important - never check a type that is potentially smaller
2191 # than half of the expected target width.
2192 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2193 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $ac_includes_default
2197 int
2198 main ()
2199 {
2200 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2201 test_array [0] = 0
2202
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 if ac_fn_c_try_compile "$LINENO"; then :
2208 case $ac_type in #(
2209 uint$2_t) :
2210 eval "$3=yes" ;; #(
2211 *) :
2212 eval "$3=\$ac_type" ;;
2213 esac
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 if eval test \"x\$"$3"\" = x"no"; then :
2217
2218 else
2219 break
2220 fi
2221 done
2222 fi
2223 eval ac_res=\$$3
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2227
2228 } # ac_fn_c_find_uintX_t
2229
2230 # ac_fn_c_check_func LINENO FUNC VAR
2231 # ----------------------------------
2232 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2233 ac_fn_c_check_func ()
2234 {
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval "test \"\${$3+set}\"" = set; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2245 #define $2 innocuous_$2
2246
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $2 (); below.
2249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2250 <limits.h> exists even on freestanding compilers. */
2251
2252 #ifdef __STDC__
2253 # include <limits.h>
2254 #else
2255 # include <assert.h>
2256 #endif
2257
2258 #undef $2
2259
2260 /* Override any GCC internal prototype to avoid an error.
2261 Use char because int might match the return type of a GCC
2262 builtin and then its argument prototype would still apply. */
2263 #ifdef __cplusplus
2264 extern "C"
2265 #endif
2266 char $2 ();
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined __stub_$2 || defined __stub___$2
2271 choke me
2272 #endif
2273
2274 int
2275 main ()
2276 {
2277 return $2 ();
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_link "$LINENO"; then :
2283 eval "$3=yes"
2284 else
2285 eval "$3=no"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext \
2288 conftest$ac_exeext conftest.$ac_ext
2289 fi
2290 eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2294
2295 } # ac_fn_c_check_func
2296 cat >config.log <<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2299
2300 It was created by $as_me, which was
2301 generated by GNU Autoconf 2.66. Invocation command line was
2302
2303 $ $0 $@
2304
2305 _ACEOF
2306 exec 5>>config.log
2307 {
2308 cat <<_ASUNAME
2309 ## --------- ##
2310 ## Platform. ##
2311 ## --------- ##
2312
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2318
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2321
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2329
2330 _ASUNAME
2331
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 $as_echo "PATH: $as_dir"
2338 done
2339 IFS=$as_save_IFS
2340
2341 } >&5
2342
2343 cat >&5 <<_ACEOF
2344
2345
2346 ## ----------- ##
2347 ## Core tests. ##
2348 ## ----------- ##
2349
2350 _ACEOF
2351
2352
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2358 ac_configure_args=
2359 ac_configure_args0=
2360 ac_configure_args1=
2361 ac_must_keep_next=false
2362 for ac_pass in 1 2
2363 do
2364 for ac_arg
2365 do
2366 case $ac_arg in
2367 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2368 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2369 | -silent | --silent | --silen | --sile | --sil)
2370 continue ;;
2371 *\'*)
2372 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2373 esac
2374 case $ac_pass in
2375 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2376 2)
2377 as_fn_append ac_configure_args1 " '$ac_arg'"
2378 if test $ac_must_keep_next = true; then
2379 ac_must_keep_next=false # Got value, back to normal.
2380 else
2381 case $ac_arg in
2382 *=* | --config-cache | -C | -disable-* | --disable-* \
2383 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2384 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2385 | -with-* | --with-* | -without-* | --without-* | --x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2388 esac
2389 ;;
2390 -* ) ac_must_keep_next=true ;;
2391 esac
2392 fi
2393 as_fn_append ac_configure_args " '$ac_arg'"
2394 ;;
2395 esac
2396 done
2397 done
2398 { ac_configure_args0=; unset ac_configure_args0;}
2399 { ac_configure_args1=; unset ac_configure_args1;}
2400
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2408 {
2409 echo
2410
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2414 echo
2415 # The following way of writing the cache mishandles newlines in values,
2416 (
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2419 case $ac_val in #(
2420 *${as_nl}*)
2421 case $ac_var in #(
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2424 esac
2425 case $ac_var in #(
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2429 esac ;;
2430 esac
2431 done
2432 (set) 2>&1 |
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2435 sed -n \
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2438 ;; #(
2439 *)
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2441 ;;
2442 esac |
2443 sort
2444 )
2445 echo
2446
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2450 echo
2451 for ac_var in $ac_subst_vars
2452 do
2453 eval ac_val=\$$ac_var
2454 case $ac_val in
2455 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2456 esac
2457 $as_echo "$ac_var='\''$ac_val'\''"
2458 done | sort
2459 echo
2460
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2465 echo
2466 for ac_var in $ac_subst_files
2467 do
2468 eval ac_val=\$$ac_var
2469 case $ac_val in
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2471 esac
2472 $as_echo "$ac_var='\''$ac_val'\''"
2473 done | sort
2474 echo
2475 fi
2476
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2479 ## confdefs.h. ##
2480 ## ----------- ##"
2481 echo
2482 cat confdefs.h
2483 echo
2484 fi
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2488 } >&5
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2491 exit $exit_status
2492 ' 0
2493 for ac_signal in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2495 done
2496 ac_signal=0
2497
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest* confdefs.h
2500
2501 $as_echo "/* confdefs.h */" > confdefs.h
2502
2503 # Predefined preprocessor variables.
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2527 _ACEOF
2528
2529
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2532 ac_site_file1=NONE
2533 ac_site_file2=NONE
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1=./$CONFIG_SITE;;
2538 */*) ac_site_file1=$CONFIG_SITE;;
2539 *) ac_site_file1=./$CONFIG_SITE;;
2540 esac
2541 elif test "x$prefix" != xNONE; then
2542 ac_site_file1=$prefix/share/config.site
2543 ac_site_file2=$prefix/etc/config.site
2544 else
2545 ac_site_file1=$ac_default_prefix/share/config.site
2546 ac_site_file2=$ac_default_prefix/etc/config.site
2547 fi
2548 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2549 do
2550 test "x$ac_site_file" = xNONE && continue
2551 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2555 . "$ac_site_file" \
2556 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $? "failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2560 fi
2561 done
2562
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2569 case $cache_file in
2570 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2571 *) . "./$cache_file";;
2572 esac
2573 fi
2574 else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2577 >$cache_file
2578 fi
2579
2580 as_fn_append ac_header_list " stdlib.h"
2581 as_fn_append ac_header_list " unistd.h"
2582 as_fn_append ac_header_list " sys/param.h"
2583 # Check that the precious variables saved in the cache have kept the same
2584 # value.
2585 ac_cache_corrupted=false
2586 for ac_var in $ac_precious_vars; do
2587 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2588 eval ac_new_set=\$ac_env_${ac_var}_set
2589 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2590 eval ac_new_val=\$ac_env_${ac_var}_value
2591 case $ac_old_set,$ac_new_set in
2592 set,)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2594 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,set)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2599 ac_cache_corrupted=: ;;
2600 ,);;
2601 *)
2602 if test "x$ac_old_val" != "x$ac_new_val"; then
2603 # differences in whitespace do not lead to failure.
2604 ac_old_val_w=`echo x $ac_old_val`
2605 ac_new_val_w=`echo x $ac_new_val`
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2608 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted=:
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2612 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\$ac_old_val
2614 fi
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2616 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2618 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2619 fi;;
2620 esac
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2623 case $ac_new_val in
2624 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg=$ac_var=$ac_new_val ;;
2626 esac
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630 esac
2631 fi
2632 done
2633 if $ac_cache_corrupted; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2639 fi
2640 ## -------------------- ##
2641 ## Main body of script. ##
2642 ## -------------------- ##
2643
2644 ac_ext=c
2645 ac_cpp='$CPP $CPPFLAGS'
2646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649
2650
2651
2652 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2653
2654
2655 ################################################################################
2656 ac_aux_dir=
2657 for ac_dir in autoconf "$srcdir"/autoconf; do
2658 if test -f "$ac_dir/install-sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install-sh -c"
2661 break
2662 elif test -f "$ac_dir/install.sh"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/install.sh -c"
2665 break
2666 elif test -f "$ac_dir/shtool"; then
2667 ac_aux_dir=$ac_dir
2668 ac_install_sh="$ac_aux_dir/shtool install -c"
2669 break
2670 fi
2671 done
2672 if test -z "$ac_aux_dir"; then
2673 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2674 fi
2675
2676 # These three variables are undocumented and unsupported,
2677 # and are intended to be withdrawn in a future Autoconf release.
2678 # They can cause serious problems if a builder's source tree is in a directory
2679 # whose full name contains unusual characters.
2680 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2681 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2682 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2683
2684
2685
2686 ################################################################################
2687 # Make sure we can run config.sub.
2688 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2689 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2690
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2692 $as_echo_n "checking build system type... " >&6; }
2693 if test "${ac_cv_build+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2695 else
2696 ac_build_alias=$build_alias
2697 test "x$ac_build_alias" = x &&
2698 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2699 test "x$ac_build_alias" = x &&
2700 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2701 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2702 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2703
2704 fi
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2706 $as_echo "$ac_cv_build" >&6; }
2707 case $ac_cv_build in
2708 *-*-*) ;;
2709 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2710 esac
2711 build=$ac_cv_build
2712 ac_save_IFS=$IFS; IFS='-'
2713 set x $ac_cv_build
2714 shift
2715 build_cpu=$1
2716 build_vendor=$2
2717 shift; shift
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2720 build_os=$*
2721 IFS=$ac_save_IFS
2722 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2723
2724
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2726 $as_echo_n "checking host system type... " >&6; }
2727 if test "${ac_cv_host+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test "x$host_alias" = x; then
2731 ac_cv_host=$ac_cv_build
2732 else
2733 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2735 fi
2736
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2739 $as_echo "$ac_cv_host" >&6; }
2740 case $ac_cv_host in
2741 *-*-*) ;;
2742 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2743 esac
2744 host=$ac_cv_host
2745 ac_save_IFS=$IFS; IFS='-'
2746 set x $ac_cv_host
2747 shift
2748 host_cpu=$1
2749 host_vendor=$2
2750 shift; shift
2751 # Remember, the first character of IFS is used to create $*,
2752 # except with old shells:
2753 host_os=$*
2754 IFS=$ac_save_IFS
2755 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2756
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2759 $as_echo_n "checking target system type... " >&6; }
2760 if test "${ac_cv_target+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 if test "x$target_alias" = x; then
2764 ac_cv_target=$ac_cv_host
2765 else
2766 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2767 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2768 fi
2769
2770 fi
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2772 $as_echo "$ac_cv_target" >&6; }
2773 case $ac_cv_target in
2774 *-*-*) ;;
2775 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2776 esac
2777 target=$ac_cv_target
2778 ac_save_IFS=$IFS; IFS='-'
2779 set x $ac_cv_target
2780 shift
2781 target_cpu=$1
2782 target_vendor=$2
2783 shift; shift
2784 # Remember, the first character of IFS is used to create $*,
2785 # except with old shells:
2786 target_os=$*
2787 IFS=$ac_save_IFS
2788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2789
2790
2791 # The aliases save the names the user supplied, while $host etc.
2792 # will get canonicalized.
2793 test -n "$target_alias" &&
2794 test "$program_prefix$program_suffix$program_transform_name" = \
2795 NONENONEs,x,x, &&
2796 program_prefix=${target_alias}-
2797
2798 case "$host_os" in
2799 linux*)
2800 CFLAGS="$CFLAGS"
2801 COPTIMISE_FLAG="-O2"
2802 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2803 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2804 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2805 LDDEPS="$LDDEPS .export.sym"
2806 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2807 LIB_SUFFIX=so
2808 DEVMAPPER=yes
2809 ODIRECT=yes
2810 DM_IOCTLS=yes
2811 SELINUX=yes
2812 CLUSTER=internal
2813 FSADM=yes
2814 ;;
2815 darwin*)
2816 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2817 COPTIMISE_FLAG="-O2"
2818 CLDFLAGS="$CLDFLAGS"
2819 CLDWHOLEARCHIVE="-all_load"
2820 CLDNOWHOLEARCHIVE=
2821 LIB_SUFFIX=dylib
2822 DEVMAPPER=yes
2823 ODIRECT=no
2824 DM_IOCTLS=no
2825 SELINUX=no
2826 CLUSTER=none
2827 FSADM=no
2828 ;;
2829 esac
2830
2831 ################################################################################
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2833 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2834 if test "${ac_cv_path_SED+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2838 for ac_i in 1 2 3 4 5 6 7; do
2839 ac_script="$ac_script$as_nl$ac_script"
2840 done
2841 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2842 { ac_script=; unset ac_script;}
2843 if test -z "$SED"; then
2844 ac_path_SED_found=false
2845 # Loop through the user's path and test for each of PROGNAME-LIST
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_prog in sed gsed; do
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2854 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2855 # Check for GNU ac_path_SED and select it if it is found.
2856 # Check for GNU $ac_path_SED
2857 case `"$ac_path_SED" --version 2>&1` in
2858 *GNU*)
2859 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2860 *)
2861 ac_count=0
2862 $as_echo_n 0123456789 >"conftest.in"
2863 while :
2864 do
2865 cat "conftest.in" "conftest.in" >"conftest.tmp"
2866 mv "conftest.tmp" "conftest.in"
2867 cp "conftest.in" "conftest.nl"
2868 $as_echo '' >> "conftest.nl"
2869 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2871 as_fn_arith $ac_count + 1 && ac_count=$as_val
2872 if test $ac_count -gt ${ac_path_SED_max-0}; then
2873 # Best one so far, save it but keep looking for a better one
2874 ac_cv_path_SED="$ac_path_SED"
2875 ac_path_SED_max=$ac_count
2876 fi
2877 # 10*(2^10) chars as input seems more than enough
2878 test $ac_count -gt 10 && break
2879 done
2880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2881 esac
2882
2883 $ac_path_SED_found && break 3
2884 done
2885 done
2886 done
2887 IFS=$as_save_IFS
2888 if test -z "$ac_cv_path_SED"; then
2889 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2890 fi
2891 else
2892 ac_cv_path_SED=$SED
2893 fi
2894
2895 fi
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2897 $as_echo "$ac_cv_path_SED" >&6; }
2898 SED="$ac_cv_path_SED"
2899 rm -f conftest.sed
2900
2901 for ac_prog in gawk mawk nawk awk
2902 do
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_AWK+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909 else
2910 if test -n "$AWK"; then
2911 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_AWK="$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 AWK=$ac_cv_prog_AWK
2931 if test -n "$AWK"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933 $as_echo "$AWK" >&6; }
2934 else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 test -n "$AWK" && break
2941 done
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034 CC=$ac_ct_CC
3035 fi
3036 else
3037 CC="$ac_cv_prog_CC"
3038 fi
3039
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}cc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="${ac_tool_prefix}cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 fi
3081 if test -z "$CC"; then
3082 # Extract the first word of "cc", so it can be a program name with args.
3083 set dummy cc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 ac_prog_rejected=no
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3101 ac_prog_rejected=yes
3102 continue
3103 fi
3104 ac_cv_prog_CC="cc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 if test $ac_prog_rejected = yes; then
3113 # We found a bogon in the path, so make sure we never use it.
3114 set dummy $ac_cv_prog_CC
3115 shift
3116 if test $# != 0; then
3117 # We chose a different compiler from the bogus one.
3118 # However, it has the same basename, so the bogon will be chosen
3119 # first if we set CC to just the basename; use the full file name.
3120 shift
3121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 fi
3123 fi
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136 fi
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 for ac_prog in cl.exe
3140 do
3141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if test "${ac_cv_prog_CC+set}" = set; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 test -n "$CC" && break
3179 done
3180 fi
3181 if test -z "$CC"; then
3182 ac_ct_CC=$CC
3183 for ac_prog in cl.exe
3184 do
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_ac_ct_CC="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 test -n "$ac_ct_CC" && break
3223 done
3224
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3235 fi
3236 fi
3237
3238 fi
3239
3240
3241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details" "$LINENO" 5; }
3245
3246 # Provide some information about the compiler.
3247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3248 set X $ac_compile
3249 ac_compiler=$2
3250 for ac_option in --version -v -V -qversion; do
3251 { { ac_try="$ac_compiler $ac_option >&5"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3259 ac_status=$?
3260 if test -s conftest.err; then
3261 sed '10a\
3262 ... rest of stderr output deleted ...
3263 10q' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3265 fi
3266 rm -f conftest.er1 conftest.err
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 done
3270
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3273
3274 int
3275 main ()
3276 {
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 ac_clean_files_save=$ac_clean_files
3283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3284 # Try to create an executable without -o first, disregard a.out.
3285 # It will help us diagnose broken compilers, and finding out an intuition
3286 # of exeext.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3288 $as_echo_n "checking whether the C compiler works... " >&6; }
3289 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290
3291 # The possible output files:
3292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293
3294 ac_rmfiles=
3295 for ac_file in $ac_files
3296 do
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 esac
3301 done
3302 rm -f $ac_rmfiles
3303
3304 if { { ac_try="$ac_link_default"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link_default") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3318 # so that the user can short-circuit this test for compilers unknown to
3319 # Autoconf.
3320 for ac_file in $ac_files ''
3321 do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 ;;
3326 [ab].out )
3327 # We found the default executable, but exeext='' is most
3328 # certainly right.
3329 break;;
3330 *.* )
3331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3332 then :; else
3333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 fi
3335 # We set ac_cv_exeext here because the later test for it is not
3336 # safe: cross compilers may not add the suffix if given an `-o'
3337 # argument, so we may need to know it at that point already.
3338 # Even if this section looks crufty: it has the advantage of
3339 # actually working.
3340 break;;
3341 * )
3342 break;;
3343 esac
3344 done
3345 test "$ac_cv_exeext" = no && ac_cv_exeext=
3346
3347 else
3348 ac_file=''
3349 fi
3350 if test -z "$ac_file"; then :
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error 77 "C compiler cannot create executables
3359 See \`config.log' for more details" "$LINENO" 5; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3365 $as_echo_n "checking for C compiler default output file name... " >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 ac_exeext=$ac_cv_exeext
3369
3370 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3373 $as_echo_n "checking for suffix of executables... " >&6; }
3374 if { { ac_try="$ac_link"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3386 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3387 # work properly (i.e., refer to `conftest.exe'), while it won't with
3388 # `rm'.
3389 for ac_file in conftest.exe conftest conftest.*; do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 break;;
3395 * ) break;;
3396 esac
3397 done
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3402 See \`config.log' for more details" "$LINENO" 5; }
3403 fi
3404 rm -f conftest conftest$ac_cv_exeext
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3406 $as_echo "$ac_cv_exeext" >&6; }
3407
3408 rm -f conftest.$ac_ext
3409 EXEEXT=$ac_cv_exeext
3410 ac_exeext=$EXEEXT
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413 #include <stdio.h>
3414 int
3415 main ()
3416 {
3417 FILE *f = fopen ("conftest.out", "w");
3418 return ferror (f) || fclose (f) != 0;
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 ac_clean_files="$ac_clean_files conftest.out"
3425 # Check that the compiler produces executables we can run. If not, either
3426 # the compiler is broken, or we cross compile.
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3428 $as_echo_n "checking whether we are cross compiling... " >&6; }
3429 if test "$cross_compiling" != yes; then
3430 { { ac_try="$ac_link"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3441 if { ac_try='./conftest$ac_cv_exeext'
3442 { { case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_try") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; }; then
3452 cross_compiling=no
3453 else
3454 if test "$cross_compiling" = maybe; then
3455 cross_compiling=yes
3456 else
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "cannot run C compiled programs.
3460 If you meant to cross compile, use \`--host'.
3461 See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 fi
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3466 $as_echo "$cross_compiling" >&6; }
3467
3468 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3469 ac_clean_files=$ac_clean_files_save
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3471 $as_echo_n "checking for suffix of object files... " >&6; }
3472 if test "${ac_cv_objext+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477
3478 int
3479 main ()
3480 {
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.o conftest.obj
3487 if { { ac_try="$ac_compile"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compile") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 for ac_file in conftest.o conftest.obj conftest.*; do
3499 test -f "$ac_file" || continue;
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3503 break;;
3504 esac
3505 done
3506 else
3507 $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details" "$LINENO" 5; }
3514 fi
3515 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3518 $as_echo "$ac_cv_objext" >&6; }
3519 OBJEXT=$ac_cv_objext
3520 ac_objext=$OBJEXT
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3522 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3523 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528
3529 int
3530 main ()
3531 {
3532 #ifndef __GNUC__
3533 choke me
3534 #endif
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_compiler_gnu=yes
3542 else
3543 ac_compiler_gnu=no
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3550 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3551 if test $ac_compiler_gnu = yes; then
3552 GCC=yes
3553 else
3554 GCC=
3555 fi
3556 ac_test_CFLAGS=${CFLAGS+set}
3557 ac_save_CFLAGS=$CFLAGS
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3559 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3560 if test "${ac_cv_prog_cc_g+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 ac_save_c_werror_flag=$ac_c_werror_flag
3564 ac_c_werror_flag=yes
3565 ac_cv_prog_cc_g=no
3566 CFLAGS="-g"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_g=yes
3580 else
3581 CFLAGS=""
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594
3595 else
3596 ac_c_werror_flag=$ac_save_c_werror_flag
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 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3620 $as_echo "$ac_cv_prog_cc_g" >&6; }
3621 if test "$ac_test_CFLAGS" = set; then
3622 CFLAGS=$ac_save_CFLAGS
3623 elif test $ac_cv_prog_cc_g = yes; then
3624 if test "$GCC" = yes; then
3625 CFLAGS="-g -O2"
3626 else
3627 CFLAGS="-g"
3628 fi
3629 else
3630 if test "$GCC" = yes; then
3631 CFLAGS="-O2"
3632 else
3633 CFLAGS=
3634 fi
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3637 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3638 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 ac_cv_prog_cc_c89=no
3642 ac_save_CC=$CC
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #include <stdarg.h>
3646 #include <stdio.h>
3647 #include <sys/types.h>
3648 #include <sys/stat.h>
3649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3650 struct buf { int x; };
3651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3652 static char *e (p, i)
3653 char **p;
3654 int i;
3655 {
3656 return p[i];
3657 }
3658 static char *f (char * (*g) (char **, int), char **p, ...)
3659 {
3660 char *s;
3661 va_list v;
3662 va_start (v,p);
3663 s = g (p, va_arg (v,int));
3664 va_end (v);
3665 return s;
3666 }
3667
3668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3669 function prototypes and stuff, but not '\xHH' hex character constants.
3670 These don't provoke an error unfortunately, instead are silently treated
3671 as 'x'. The following induces an error, until -std is added to get
3672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3673 array size at least. It's necessary to write '\x00'==0 to get something
3674 that's true only with -std. */
3675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3676
3677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3678 inside strings and character constants. */
3679 #define FOO(x) 'x'
3680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3681
3682 int test (int i, double x);
3683 struct s1 {int (*f) (int a);};
3684 struct s2 {int (*f) (double a);};
3685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3686 int argc;
3687 char **argv;
3688 int
3689 main ()
3690 {
3691 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3692 ;
3693 return 0;
3694 }
3695 _ACEOF
3696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3698 do
3699 CC="$ac_save_CC $ac_arg"
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_c89=$ac_arg
3702 fi
3703 rm -f core conftest.err conftest.$ac_objext
3704 test "x$ac_cv_prog_cc_c89" != "xno" && break
3705 done
3706 rm -f conftest.$ac_ext
3707 CC=$ac_save_CC
3708
3709 fi
3710 # AC_CACHE_VAL
3711 case "x$ac_cv_prog_cc_c89" in
3712 x)
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714 $as_echo "none needed" >&6; } ;;
3715 xno)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3717 $as_echo "unsupported" >&6; } ;;
3718 *)
3719 CC="$CC $ac_cv_prog_cc_c89"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3721 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3722 esac
3723 if test "x$ac_cv_prog_cc_c89" != xno; then :
3724
3725 fi
3726
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732
3733
3734
3735 ac_ext=c
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3741 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3742 # On Suns, sometimes $CPP names a directory.
3743 if test -n "$CPP" && test -d "$CPP"; then
3744 CPP=
3745 fi
3746 if test -z "$CPP"; then
3747 if test "${ac_cv_prog_CPP+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 # Double quotes because CPP needs to be expanded
3751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3752 do
3753 ac_preproc_ok=false
3754 for ac_c_preproc_warn_flag in '' yes
3755 do
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769 Syntax error
3770 _ACEOF
3771 if ac_fn_c_try_cpp "$LINENO"; then :
3772
3773 else
3774 # Broken: fails on valid input.
3775 continue
3776 fi
3777 rm -f conftest.err conftest.$ac_ext
3778
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <ac_nonexistent.h>
3784 _ACEOF
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3786 # Broken: success on invalid input.
3787 continue
3788 else
3789 # Passes both tests.
3790 ac_preproc_ok=:
3791 break
3792 fi
3793 rm -f conftest.err conftest.$ac_ext
3794
3795 done
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.err conftest.$ac_ext
3798 if $ac_preproc_ok; then :
3799 break
3800 fi
3801
3802 done
3803 ac_cv_prog_CPP=$CPP
3804
3805 fi
3806 CPP=$ac_cv_prog_CPP
3807 else
3808 ac_cv_prog_CPP=$CPP
3809 fi
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3811 $as_echo "$CPP" >&6; }
3812 ac_preproc_ok=false
3813 for ac_c_preproc_warn_flag in '' yes
3814 do
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #ifdef __STDC__
3824 # include <limits.h>
3825 #else
3826 # include <assert.h>
3827 #endif
3828 Syntax error
3829 _ACEOF
3830 if ac_fn_c_try_cpp "$LINENO"; then :
3831
3832 else
3833 # Broken: fails on valid input.
3834 continue
3835 fi
3836 rm -f conftest.err conftest.$ac_ext
3837
3838 # OK, works on sane cases. Now check whether nonexistent headers
3839 # can be detected and how.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3843 _ACEOF
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3845 # Broken: success on invalid input.
3846 continue
3847 else
3848 # Passes both tests.
3849 ac_preproc_ok=:
3850 break
3851 fi
3852 rm -f conftest.err conftest.$ac_ext
3853
3854 done
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.err conftest.$ac_ext
3857 if $ac_preproc_ok; then :
3858
3859 else
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3863 See \`config.log' for more details" "$LINENO" 5; }
3864 fi
3865
3866 ac_ext=c
3867 ac_cpp='$CPP $CPPFLAGS'
3868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3871
3872
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3874 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3875 if test "${ac_cv_path_GREP+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3877 else
3878 if test -z "$GREP"; then
3879 ac_path_GREP_found=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3883 do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_prog in grep ggrep; do
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3890 # Check for GNU ac_path_GREP and select it if it is found.
3891 # Check for GNU $ac_path_GREP
3892 case `"$ac_path_GREP" --version 2>&1` in
3893 *GNU*)
3894 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3895 *)
3896 ac_count=0
3897 $as_echo_n 0123456789 >"conftest.in"
3898 while :
3899 do
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 $as_echo 'GREP' >> "conftest.nl"
3904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3906 as_fn_arith $ac_count + 1 && ac_count=$as_val
3907 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_GREP="$ac_path_GREP"
3910 ac_path_GREP_max=$ac_count
3911 fi
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3914 done
3915 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3916 esac
3917
3918 $ac_path_GREP_found && break 3
3919 done
3920 done
3921 done
3922 IFS=$as_save_IFS
3923 if test -z "$ac_cv_path_GREP"; then
3924 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3925 fi
3926 else
3927 ac_cv_path_GREP=$GREP
3928 fi
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3932 $as_echo "$ac_cv_path_GREP" >&6; }
3933 GREP="$ac_cv_path_GREP"
3934
3935
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3937 $as_echo_n "checking for egrep... " >&6; }
3938 if test "${ac_cv_path_EGREP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3942 then ac_cv_path_EGREP="$GREP -E"
3943 else
3944 if test -z "$EGREP"; then
3945 ac_path_EGREP_found=false
3946 # Loop through the user's path and test for each of PROGNAME-LIST
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3948 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3949 do
3950 IFS=$as_save_IFS
3951 test -z "$as_dir" && as_dir=.
3952 for ac_prog in egrep; do
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3955 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3956 # Check for GNU ac_path_EGREP and select it if it is found.
3957 # Check for GNU $ac_path_EGREP
3958 case `"$ac_path_EGREP" --version 2>&1` in
3959 *GNU*)
3960 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3961 *)
3962 ac_count=0
3963 $as_echo_n 0123456789 >"conftest.in"
3964 while :
3965 do
3966 cat "conftest.in" "conftest.in" >"conftest.tmp"
3967 mv "conftest.tmp" "conftest.in"
3968 cp "conftest.in" "conftest.nl"
3969 $as_echo 'EGREP' >> "conftest.nl"
3970 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3972 as_fn_arith $ac_count + 1 && ac_count=$as_val
3973 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3974 # Best one so far, save it but keep looking for a better one
3975 ac_cv_path_EGREP="$ac_path_EGREP"
3976 ac_path_EGREP_max=$ac_count
3977 fi
3978 # 10*(2^10) chars as input seems more than enough
3979 test $ac_count -gt 10 && break
3980 done
3981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 esac
3983
3984 $ac_path_EGREP_found && break 3
3985 done
3986 done
3987 done
3988 IFS=$as_save_IFS
3989 if test -z "$ac_cv_path_EGREP"; then
3990 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3991 fi
3992 else
3993 ac_cv_path_EGREP=$EGREP
3994 fi
3995
3996 fi
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3999 $as_echo "$ac_cv_path_EGREP" >&6; }
4000 EGREP="$ac_cv_path_EGREP"
4001
4002
4003 if test $ac_cv_c_compiler_gnu = yes; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4005 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4006 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 ac_pattern="Autoconf.*'x'"
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <sgtty.h>
4013 Autoconf TIOCGETP
4014 _ACEOF
4015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4017 ac_cv_prog_gcc_traditional=yes
4018 else
4019 ac_cv_prog_gcc_traditional=no
4020 fi
4021 rm -f conftest*
4022
4023
4024 if test $ac_cv_prog_gcc_traditional = no; then
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4027 #include <termio.h>
4028 Autoconf TCGETA
4029 _ACEOF
4030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4032 ac_cv_prog_gcc_traditional=yes
4033 fi
4034 rm -f conftest*
4035
4036 fi
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4039 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4040 if test $ac_cv_prog_gcc_traditional = yes; then
4041 CC="$CC -traditional"
4042 fi
4043 fi
4044
4045 # Find a good install program. We prefer a C program (faster),
4046 # so one script is as good as another. But avoid the broken or
4047 # incompatible versions:
4048 # SysV /etc/install, /usr/sbin/install
4049 # SunOS /usr/etc/install
4050 # IRIX /sbin/install
4051 # AIX /bin/install
4052 # AmigaOS /C/install, which installs bootblocks on floppy discs
4053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4056 # OS/2's system install, which has a completely different semantic
4057 # ./install, which can be erroneously created by make from ./install.sh.
4058 # Reject install programs that cannot install multiple files.
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4060 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4061 if test -z "$INSTALL"; then
4062 if test "${ac_cv_path_install+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 # Account for people who put trailing slashes in PATH elements.
4071 case $as_dir/ in #((
4072 ./ | .// | /[cC]/* | \
4073 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4074 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4075 /usr/ucb/* ) ;;
4076 *)
4077 # OSF1 and SCO ODT 3.0 have their own names for install.
4078 # Don't use installbsd from OSF since it installs stuff as root
4079 # by default.
4080 for ac_prog in ginstall scoinst install; do
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4083 if test $ac_prog = install &&
4084 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4085 # AIX install. It has an incompatible calling convention.
4086 :
4087 elif test $ac_prog = install &&
4088 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4089 # program-specific install script used by HP pwplus--don't use.
4090 :
4091 else
4092 rm -rf conftest.one conftest.two conftest.dir
4093 echo one > conftest.one
4094 echo two > conftest.two
4095 mkdir conftest.dir
4096 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4097 test -s conftest.one && test -s conftest.two &&
4098 test -s conftest.dir/conftest.one &&
4099 test -s conftest.dir/conftest.two
4100 then
4101 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4102 break 3
4103 fi
4104 fi
4105 fi
4106 done
4107 done
4108 ;;
4109 esac
4110
4111 done
4112 IFS=$as_save_IFS
4113
4114 rm -rf conftest.one conftest.two conftest.dir
4115
4116 fi
4117 if test "${ac_cv_path_install+set}" = set; then
4118 INSTALL=$ac_cv_path_install
4119 else
4120 # As a last resort, use the slow shell script. Don't cache a
4121 # value for INSTALL within a source directory, because that will
4122 # break other packages using the cache if that directory is
4123 # removed, or if the value is a relative name.
4124 INSTALL=$ac_install_sh
4125 fi
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4128 $as_echo "$INSTALL" >&6; }
4129
4130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4131 # It thinks the first close brace ends the variable substitution.
4132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4133
4134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4135
4136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4139 $as_echo_n "checking whether ln -s works... " >&6; }
4140 LN_S=$as_ln_s
4141 if test "$LN_S" = "ln -s"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143 $as_echo "yes" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4146 $as_echo "no, using $LN_S" >&6; }
4147 fi
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4150 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4151 set x ${MAKE-make}
4152 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4153 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 cat >conftest.make <<\_ACEOF
4157 SHELL = /bin/sh
4158 all:
4159 @echo '@@@%%%=$(MAKE)=@@@%%%'
4160 _ACEOF
4161 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4163 *@@@%%%=?*=@@@%%%*)
4164 eval ac_cv_prog_make_${ac_make}_set=yes;;
4165 *)
4166 eval ac_cv_prog_make_${ac_make}_set=no;;
4167 esac
4168 rm -f conftest.make
4169 fi
4170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172 $as_echo "yes" >&6; }
4173 SET_MAKE=
4174 else
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 SET_MAKE="MAKE=${MAKE-make}"
4178 fi
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4182 if test -z "$MKDIR_P"; then
4183 if test "${ac_cv_path_mkdir+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4188 do
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in mkdir gmkdir; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4195 'mkdir (GNU coreutils) '* | \
4196 'mkdir (coreutils) '* | \
4197 'mkdir (fileutils) '4.1*)
4198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4199 break 3;;
4200 esac
4201 done
4202 done
4203 done
4204 IFS=$as_save_IFS
4205
4206 fi
4207
4208 test -d ./--version && rmdir ./--version
4209 if test "${ac_cv_path_mkdir+set}" = set; then
4210 MKDIR_P="$ac_cv_path_mkdir -p"
4211 else
4212 # As a last resort, use the slow shell script. Don't cache a
4213 # value for MKDIR_P within a source directory, because that will
4214 # break other packages using the cache if that directory is
4215 # removed, or if the value is a relative name.
4216 MKDIR_P="$ac_install_sh -d"
4217 fi
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4220 $as_echo "$MKDIR_P" >&6; }
4221
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4224 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$RANLIB"; then
4231 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4243 fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 RANLIB=$ac_cv_prog_RANLIB
4251 if test -n "$RANLIB"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4253 $as_echo "$RANLIB" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4257 fi
4258
4259
4260 fi
4261 if test -z "$ac_cv_prog_RANLIB"; then
4262 ac_ct_RANLIB=$RANLIB
4263 # Extract the first word of "ranlib", so it can be a program name with args.
4264 set dummy ranlib; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$ac_ct_RANLIB"; then
4271 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_ac_ct_RANLIB="ranlib"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4291 if test -n "$ac_ct_RANLIB"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4293 $as_echo "$ac_ct_RANLIB" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299 if test "x$ac_ct_RANLIB" = x; then
4300 RANLIB=":"
4301 else
4302 case $cross_compiling:$ac_tool_warned in
4303 yes:)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4307 esac
4308 RANLIB=$ac_ct_RANLIB
4309 fi
4310 else
4311 RANLIB="$ac_cv_prog_RANLIB"
4312 fi
4313
4314 # Extract the first word of "cflow", so it can be a program name with args.
4315 set dummy cflow; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 case $CFLOW_CMD in
4322 [\\/]* | ?:[\\/]*)
4323 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4324 ;;
4325 *)
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337 done
4338 done
4339 IFS=$as_save_IFS
4340
4341 ;;
4342 esac
4343 fi
4344 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4345 if test -n "$CFLOW_CMD"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4347 $as_echo "$CFLOW_CMD" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352
4353
4354 # Extract the first word of "cscope", so it can be a program name with args.
4355 set dummy cscope; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 case $CSCOPE_CMD in
4362 [\\/]* | ?:[\\/]*)
4363 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4364 ;;
4365 *)
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4376 fi
4377 done
4378 done
4379 IFS=$as_save_IFS
4380
4381 ;;
4382 esac
4383 fi
4384 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4385 if test -n "$CSCOPE_CMD"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4387 $as_echo "$CSCOPE_CMD" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394
4395 ################################################################################
4396 ac_header_dirent=no
4397 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4398 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4400 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4401 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <sys/types.h>
4407 #include <$ac_hdr>
4408
4409 int
4410 main ()
4411 {
4412 if ((DIR *) 0)
4413 return 0;
4414 ;
4415 return 0;
4416 }
4417 _ACEOF
4418 if ac_fn_c_try_compile "$LINENO"; then :
4419 eval "$as_ac_Header=yes"
4420 else
4421 eval "$as_ac_Header=no"
4422 fi
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 fi
4425 eval ac_res=\$$as_ac_Header
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4427 $as_echo "$ac_res" >&6; }
4428 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4429 cat >>confdefs.h <<_ACEOF
4430 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4431 _ACEOF
4432
4433 ac_header_dirent=$ac_hdr; break
4434 fi
4435
4436 done
4437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4438 if test $ac_header_dirent = dirent.h; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4440 $as_echo_n "checking for library containing opendir... " >&6; }
4441 if test "${ac_cv_search_opendir+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4443 else
4444 ac_func_search_save_LIBS=$LIBS
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4447
4448 /* Override any GCC internal prototype to avoid an error.
4449 Use char because int might match the return type of a GCC
4450 builtin and then its argument prototype would still apply. */
4451 #ifdef __cplusplus
4452 extern "C"
4453 #endif
4454 char opendir ();
4455 int
4456 main ()
4457 {
4458 return opendir ();
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 for ac_lib in '' dir; do
4464 if test -z "$ac_lib"; then
4465 ac_res="none required"
4466 else
4467 ac_res=-l$ac_lib
4468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4469 fi
4470 if ac_fn_c_try_link "$LINENO"; then :
4471 ac_cv_search_opendir=$ac_res
4472 fi
4473 rm -f core conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext
4475 if test "${ac_cv_search_opendir+set}" = set; then :
4476 break
4477 fi
4478 done
4479 if test "${ac_cv_search_opendir+set}" = set; then :
4480
4481 else
4482 ac_cv_search_opendir=no
4483 fi
4484 rm conftest.$ac_ext
4485 LIBS=$ac_func_search_save_LIBS
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4488 $as_echo "$ac_cv_search_opendir" >&6; }
4489 ac_res=$ac_cv_search_opendir
4490 if test "$ac_res" != no; then :
4491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4492
4493 fi
4494
4495 else
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4497 $as_echo_n "checking for library containing opendir... " >&6; }
4498 if test "${ac_cv_search_opendir+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 ac_func_search_save_LIBS=$LIBS
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504
4505 /* Override any GCC internal prototype to avoid an error.
4506 Use char because int might match the return type of a GCC
4507 builtin and then its argument prototype would still apply. */
4508 #ifdef __cplusplus
4509 extern "C"
4510 #endif
4511 char opendir ();
4512 int
4513 main ()
4514 {
4515 return opendir ();
4516 ;
4517 return 0;
4518 }
4519 _ACEOF
4520 for ac_lib in '' x; do
4521 if test -z "$ac_lib"; then
4522 ac_res="none required"
4523 else
4524 ac_res=-l$ac_lib
4525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4526 fi
4527 if ac_fn_c_try_link "$LINENO"; then :
4528 ac_cv_search_opendir=$ac_res
4529 fi
4530 rm -f core conftest.err conftest.$ac_objext \
4531 conftest$ac_exeext
4532 if test "${ac_cv_search_opendir+set}" = set; then :
4533 break
4534 fi
4535 done
4536 if test "${ac_cv_search_opendir+set}" = set; then :
4537
4538 else
4539 ac_cv_search_opendir=no
4540 fi
4541 rm conftest.$ac_ext
4542 LIBS=$ac_func_search_save_LIBS
4543 fi
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4545 $as_echo "$ac_cv_search_opendir" >&6; }
4546 ac_res=$ac_cv_search_opendir
4547 if test "$ac_res" != no; then :
4548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4549
4550 fi
4551
4552 fi
4553
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4555 $as_echo_n "checking for ANSI C header files... " >&6; }
4556 if test "${ac_cv_header_stdc+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4558 else
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 #include <stdlib.h>
4562 #include <stdarg.h>
4563 #include <string.h>
4564 #include <float.h>
4565
4566 int
4567 main ()
4568 {
4569
4570 ;
4571 return 0;
4572 }
4573 _ACEOF
4574 if ac_fn_c_try_compile "$LINENO"; then :
4575 ac_cv_header_stdc=yes
4576 else
4577 ac_cv_header_stdc=no
4578 fi
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580
4581 if test $ac_cv_header_stdc = yes; then
4582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4585 #include <string.h>
4586
4587 _ACEOF
4588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4589 $EGREP "memchr" >/dev/null 2>&1; then :
4590
4591 else
4592 ac_cv_header_stdc=no
4593 fi
4594 rm -f conftest*
4595
4596 fi
4597
4598 if test $ac_cv_header_stdc = yes; then
4599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4602 #include <stdlib.h>
4603
4604 _ACEOF
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "free" >/dev/null 2>&1; then :
4607
4608 else
4609 ac_cv_header_stdc=no
4610 fi
4611 rm -f conftest*
4612
4613 fi
4614
4615 if test $ac_cv_header_stdc = yes; then
4616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4617 if test "$cross_compiling" = yes; then :
4618 :
4619 else
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4622 #include <ctype.h>
4623 #include <stdlib.h>
4624 #if ((' ' & 0x0FF) == 0x020)
4625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4627 #else
4628 # define ISLOWER(c) \
4629 (('a' <= (c) && (c) <= 'i') \
4630 || ('j' <= (c) && (c) <= 'r') \
4631 || ('s' <= (c) && (c) <= 'z'))
4632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4633 #endif
4634
4635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4636 int
4637 main ()
4638 {
4639 int i;
4640 for (i = 0; i < 256; i++)
4641 if (XOR (islower (i), ISLOWER (i))
4642 || toupper (i) != TOUPPER (i))
4643 return 2;
4644 return 0;
4645 }
4646 _ACEOF
4647 if ac_fn_c_try_run "$LINENO"; then :
4648
4649 else
4650 ac_cv_header_stdc=no
4651 fi
4652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4653 conftest.$ac_objext conftest.beam conftest.$ac_ext
4654 fi
4655
4656 fi
4657 fi
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4659 $as_echo "$ac_cv_header_stdc" >&6; }
4660 if test $ac_cv_header_stdc = yes; then
4661
4662 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4663
4664 fi
4665
4666 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4667 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4668 inttypes.h stdint.h unistd.h
4669 do :
4670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4672 "
4673 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4674 cat >>confdefs.h <<_ACEOF
4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676 _ACEOF
4677
4678 fi
4679
4680 done
4681
4682
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4684 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4685 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <sys/types.h>
4691 int
4692 main ()
4693 {
4694 return makedev(0, 0);
4695 ;
4696 return 0;
4697 }
4698 _ACEOF
4699 if ac_fn_c_try_link "$LINENO"; then :
4700 ac_cv_header_sys_types_h_makedev=yes
4701 else
4702 ac_cv_header_sys_types_h_makedev=no
4703 fi
4704 rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4706
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4709 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4710
4711 if test $ac_cv_header_sys_types_h_makedev = no; then
4712 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4713 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4714
4715 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4716
4717 fi
4718
4719
4720
4721 if test $ac_cv_header_sys_mkdev_h = no; then
4722 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4723 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4724
4725 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4726
4727 fi
4728
4729
4730 fi
4731 fi
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4734 $as_echo_n "checking for ANSI C header files... " >&6; }
4735 if test "${ac_cv_header_stdc+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 #include <stdlib.h>
4741 #include <stdarg.h>
4742 #include <string.h>
4743 #include <float.h>
4744
4745 int
4746 main ()
4747 {
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 if ac_fn_c_try_compile "$LINENO"; then :
4754 ac_cv_header_stdc=yes
4755 else
4756 ac_cv_header_stdc=no
4757 fi
4758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759
4760 if test $ac_cv_header_stdc = yes; then
4761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4764 #include <string.h>
4765
4766 _ACEOF
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "memchr" >/dev/null 2>&1; then :
4769
4770 else
4771 ac_cv_header_stdc=no
4772 fi
4773 rm -f conftest*
4774
4775 fi
4776
4777 if test $ac_cv_header_stdc = yes; then
4778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #include <stdlib.h>
4782
4783 _ACEOF
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785 $EGREP "free" >/dev/null 2>&1; then :
4786
4787 else
4788 ac_cv_header_stdc=no
4789 fi
4790 rm -f conftest*
4791
4792 fi
4793
4794 if test $ac_cv_header_stdc = yes; then
4795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4796 if test "$cross_compiling" = yes; then :
4797 :
4798 else
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801 #include <ctype.h>
4802 #include <stdlib.h>
4803 #if ((' ' & 0x0FF) == 0x020)
4804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4806 #else
4807 # define ISLOWER(c) \
4808 (('a' <= (c) && (c) <= 'i') \
4809 || ('j' <= (c) && (c) <= 'r') \
4810 || ('s' <= (c) && (c) <= 'z'))
4811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4812 #endif
4813
4814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4815 int
4816 main ()
4817 {
4818 int i;
4819 for (i = 0; i < 256; i++)
4820 if (XOR (islower (i), ISLOWER (i))
4821 || toupper (i) != TOUPPER (i))
4822 return 2;
4823 return 0;
4824 }
4825 _ACEOF
4826 if ac_fn_c_try_run "$LINENO"; then :
4827
4828 else
4829 ac_cv_header_stdc=no
4830 fi
4831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4832 conftest.$ac_objext conftest.beam conftest.$ac_ext
4833 fi
4834
4835 fi
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4838 $as_echo "$ac_cv_header_stdc" >&6; }
4839 if test $ac_cv_header_stdc = yes; then
4840
4841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4842
4843 fi
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4846 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4847 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852 #include <sys/types.h>
4853 #include <sys/wait.h>
4854 #ifndef WEXITSTATUS
4855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4856 #endif
4857 #ifndef WIFEXITED
4858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4859 #endif
4860
4861 int
4862 main ()
4863 {
4864 int s;
4865 wait (&s);
4866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_c_try_compile "$LINENO"; then :
4872 ac_cv_header_sys_wait_h=yes
4873 else
4874 ac_cv_header_sys_wait_h=no
4875 fi
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4879 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4880 if test $ac_cv_header_sys_wait_h = yes; then
4881
4882 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4883
4884 fi
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4888 if test "${ac_cv_header_time+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <sys/types.h>
4894 #include <sys/time.h>
4895 #include <time.h>
4896
4897 int
4898 main ()
4899 {
4900 if ((struct tm *) 0)
4901 return 0;
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 ac_cv_header_time=yes
4908 else
4909 ac_cv_header_time=no
4910 fi
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 fi
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4914 $as_echo "$ac_cv_header_time" >&6; }
4915 if test $ac_cv_header_time = yes; then
4916
4917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4918
4919 fi
4920
4921
4922 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4923 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4924 sys/wait.h time.h
4925 do :
4926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4929 cat >>confdefs.h <<_ACEOF
4930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4931 _ACEOF
4932
4933 else
4934 as_fn_error $? "bailing out" "$LINENO" 5
4935 fi
4936
4937 done
4938
4939
4940 case "$host_os" in
4941 linux*)
4942 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4943 do :
4944 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4945 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4946 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4947 cat >>confdefs.h <<_ACEOF
4948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4949 _ACEOF
4950
4951 else
4952 as_fn_error $? "bailing out" "$LINENO" 5
4953 fi
4954
4955 done
4956 ;;
4957 darwin*)
4958 for ac_header in machine/endian.h sys/disk.h
4959 do :
4960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4963 cat >>confdefs.h <<_ACEOF
4964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4965 _ACEOF
4966
4967 else
4968 as_fn_error $? "bailing out" "$LINENO" 5
4969 fi
4970
4971 done
4972 ;;
4973 esac
4974
4975 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4976 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4977 sys/types.h unistd.h
4978 do :
4979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4982 cat >>confdefs.h <<_ACEOF
4983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984 _ACEOF
4985
4986 else
4987 as_fn_error $? "bailing out" "$LINENO" 5
4988 fi
4989
4990 done
4991
4992 for ac_header in termios.h sys/statvfs.h
4993 do :
4994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4996 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4997 cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4999 _ACEOF
5000
5001 fi
5002
5003 done
5004
5005
5006 ################################################################################
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5008 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5009 if test "${ac_cv_c_const+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011 else
5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5014
5015 int
5016 main ()
5017 {
5018 /* FIXME: Include the comments suggested by Paul. */
5019 #ifndef __cplusplus
5020 /* Ultrix mips cc rejects this. */
5021 typedef int charset[2];
5022 const charset cs;
5023 /* SunOS 4.1.1 cc rejects this. */
5024 char const *const *pcpcc;
5025 char **ppc;
5026 /* NEC SVR4.0.2 mips cc rejects this. */
5027 struct point {int x, y;};
5028 static struct point const zero = {0,0};
5029 /* AIX XL C 1.02.0.0 rejects this.
5030 It does not let you subtract one const X* pointer from another in
5031 an arm of an if-expression whose if-part is not a constant
5032 expression */
5033 const char *g = "string";
5034 pcpcc = &g + (g ? g-g : 0);
5035 /* HPUX 7.0 cc rejects these. */
5036 ++pcpcc;
5037 ppc = (char**) pcpcc;
5038 pcpcc = (char const *const *) ppc;
5039 { /* SCO 3.2v4 cc rejects this. */
5040 char *t;
5041 char const *s = 0 ? (char *) 0 : (char const *) 0;
5042
5043 *t++ = 0;
5044 if (s) return 0;
5045 }
5046 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5047 int x[] = {25, 17};
5048 const int *foo = &x[0];
5049 ++foo;
5050 }
5051 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5052 typedef const int *iptr;
5053 iptr p = 0;
5054 ++p;
5055 }
5056 { /* AIX XL C 1.02.0.0 rejects this saying
5057 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5058 struct s { int j; const int *ap[3]; };
5059 struct s *b; b->j = 5;
5060 }
5061 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5062 const int foo = 10;
5063 if (!foo) return 0;
5064 }
5065 return !cs[0] && !zero.x;
5066 #endif
5067
5068 ;
5069 return 0;
5070 }
5071 _ACEOF
5072 if ac_fn_c_try_compile "$LINENO"; then :
5073 ac_cv_c_const=yes
5074 else
5075 ac_cv_c_const=no
5076 fi
5077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5080 $as_echo "$ac_cv_c_const" >&6; }
5081 if test $ac_cv_c_const = no; then
5082
5083 $as_echo "#define const /**/" >>confdefs.h
5084
5085 fi
5086
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5088 $as_echo_n "checking for inline... " >&6; }
5089 if test "${ac_cv_c_inline+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 ac_cv_c_inline=no
5093 for ac_kw in inline __inline__ __inline; do
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 #ifndef __cplusplus
5097 typedef int foo_t;
5098 static $ac_kw foo_t static_foo () {return 0; }
5099 $ac_kw foo_t foo () {return 0; }
5100 #endif
5101
5102 _ACEOF
5103 if ac_fn_c_try_compile "$LINENO"; then :
5104 ac_cv_c_inline=$ac_kw
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 test "$ac_cv_c_inline" != no && break
5108 done
5109
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5112 $as_echo "$ac_cv_c_inline" >&6; }
5113
5114 case $ac_cv_c_inline in
5115 inline | yes) ;;
5116 *)
5117 case $ac_cv_c_inline in
5118 no) ac_val=;;
5119 *) ac_val=$ac_cv_c_inline;;
5120 esac
5121 cat >>confdefs.h <<_ACEOF
5122 #ifndef __cplusplus
5123 #define inline $ac_val
5124 #endif
5125 _ACEOF
5126 ;;
5127 esac
5128
5129 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5130 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5131
5132 cat >>confdefs.h <<_ACEOF
5133 #define HAVE_STRUCT_STAT_ST_RDEV 1
5134 _ACEOF
5135
5136
5137 fi
5138
5139 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5140 if test "x$ac_cv_type_off_t" = x""yes; then :
5141
5142 else
5143
5144 cat >>confdefs.h <<_ACEOF
5145 #define off_t long int
5146 _ACEOF
5147
5148 fi
5149
5150 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5151 if test "x$ac_cv_type_pid_t" = x""yes; then :
5152
5153 else
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define pid_t int
5157 _ACEOF
5158
5159 fi
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5162 $as_echo_n "checking return type of signal handlers... " >&6; }
5163 if test "${ac_cv_type_signal+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <sys/types.h>
5169 #include <signal.h>
5170
5171 int
5172 main ()
5173 {
5174 return *(signal (0, 0)) (0) == 1;
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 ac_cv_type_signal=int
5181 else
5182 ac_cv_type_signal=void
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5187 $as_echo "$ac_cv_type_signal" >&6; }
5188
5189 cat >>confdefs.h <<_ACEOF
5190 #define RETSIGTYPE $ac_cv_type_signal
5191 _ACEOF
5192
5193
5194 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5195 if test "x$ac_cv_type_size_t" = x""yes; then :
5196
5197 else
5198
5199 cat >>confdefs.h <<_ACEOF
5200 #define size_t unsigned int
5201 _ACEOF
5202
5203 fi
5204
5205 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5206 if test "x$ac_cv_type_mode_t" = x""yes; then :
5207
5208 else
5209
5210 cat >>confdefs.h <<_ACEOF
5211 #define mode_t int
5212 _ACEOF
5213
5214 fi
5215
5216 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5217 case $ac_cv_c_int8_t in #(
5218 no|yes) ;; #(
5219 *)
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define int8_t $ac_cv_c_int8_t
5223 _ACEOF
5224 ;;
5225 esac
5226
5227 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5228 case $ac_cv_c_int16_t in #(
5229 no|yes) ;; #(
5230 *)
5231
5232 cat >>confdefs.h <<_ACEOF
5233 #define int16_t $ac_cv_c_int16_t
5234 _ACEOF
5235 ;;
5236 esac
5237
5238 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5239 case $ac_cv_c_int32_t in #(
5240 no|yes) ;; #(
5241 *)
5242
5243 cat >>confdefs.h <<_ACEOF
5244 #define int32_t $ac_cv_c_int32_t
5245 _ACEOF
5246 ;;
5247 esac
5248
5249 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5250 case $ac_cv_c_int64_t in #(
5251 no|yes) ;; #(
5252 *)
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define int64_t $ac_cv_c_int64_t
5256 _ACEOF
5257 ;;
5258 esac
5259
5260 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5261 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5262
5263 else
5264
5265 cat >>confdefs.h <<_ACEOF
5266 #define ssize_t int
5267 _ACEOF
5268
5269 fi
5270
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5272 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5273 if test "${ac_cv_type_uid_t+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <sys/types.h>
5279
5280 _ACEOF
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "uid_t" >/dev/null 2>&1; then :
5283 ac_cv_type_uid_t=yes
5284 else
5285 ac_cv_type_uid_t=no
5286 fi
5287 rm -f conftest*
5288
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5291 $as_echo "$ac_cv_type_uid_t" >&6; }
5292 if test $ac_cv_type_uid_t = no; then
5293
5294 $as_echo "#define uid_t int" >>confdefs.h
5295
5296
5297 $as_echo "#define gid_t int" >>confdefs.h
5298
5299 fi
5300
5301 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5302 case $ac_cv_c_uint8_t in #(
5303 no|yes) ;; #(
5304 *)
5305
5306 $as_echo "#define _UINT8_T 1" >>confdefs.h
5307
5308
5309 cat >>confdefs.h <<_ACEOF
5310 #define uint8_t $ac_cv_c_uint8_t
5311 _ACEOF
5312 ;;
5313 esac
5314
5315 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5316 case $ac_cv_c_uint16_t in #(
5317 no|yes) ;; #(
5318 *)
5319
5320
5321 cat >>confdefs.h <<_ACEOF
5322 #define uint16_t $ac_cv_c_uint16_t
5323 _ACEOF
5324 ;;
5325 esac
5326
5327 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5328 case $ac_cv_c_uint32_t in #(
5329 no|yes) ;; #(
5330 *)
5331
5332 $as_echo "#define _UINT32_T 1" >>confdefs.h
5333
5334
5335 cat >>confdefs.h <<_ACEOF
5336 #define uint32_t $ac_cv_c_uint32_t
5337 _ACEOF
5338 ;;
5339 esac
5340
5341 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5342 case $ac_cv_c_uint64_t in #(
5343 no|yes) ;; #(
5344 *)
5345
5346 $as_echo "#define _UINT64_T 1" >>confdefs.h
5347
5348
5349 cat >>confdefs.h <<_ACEOF
5350 #define uint64_t $ac_cv_c_uint64_t
5351 _ACEOF
5352 ;;
5353 esac
5354
5355 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5356 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5357
5358 cat >>confdefs.h <<_ACEOF
5359 #define HAVE_STRUCT_STAT_ST_RDEV 1
5360 _ACEOF
5361
5362
5363 fi
5364
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5366 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5367 if test "${ac_cv_struct_tm+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 #include <sys/types.h>
5373 #include <time.h>
5374
5375 int
5376 main ()
5377 {
5378 struct tm tm;
5379 int *p = &tm.tm_sec;
5380 return !p;
5381 ;
5382 return 0;
5383 }
5384 _ACEOF
5385 if ac_fn_c_try_compile "$LINENO"; then :
5386 ac_cv_struct_tm=time.h
5387 else
5388 ac_cv_struct_tm=sys/time.h
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5393 $as_echo "$ac_cv_struct_tm" >&6; }
5394 if test $ac_cv_struct_tm = sys/time.h; then
5395
5396 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5397
5398 fi
5399
5400
5401 ################################################################################
5402 for ac_func in ftruncate gethostname getpagesize \
5403 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5404 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5405 strstr strtol strtoul uname
5406 do :
5407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5412 _ACEOF
5413
5414 else
5415 as_fn_error $? "bailing out" "$LINENO" 5
5416 fi
5417 done
5418
5419 for ac_func in siginterrupt
5420 do :
5421 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5422 if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5423 cat >>confdefs.h <<_ACEOF
5424 #define HAVE_SIGINTERRUPT 1
5425 _ACEOF
5426
5427 fi
5428 done
5429
5430 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5431 # for constant arguments. Useless!
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5433 $as_echo_n "checking for working alloca.h... " >&6; }
5434 if test "${ac_cv_working_alloca_h+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 #include <alloca.h>
5440 int
5441 main ()
5442 {
5443 char *p = (char *) alloca (2 * sizeof (int));
5444 if (p) return 0;
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 if ac_fn_c_try_link "$LINENO"; then :
5450 ac_cv_working_alloca_h=yes
5451 else
5452 ac_cv_working_alloca_h=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5458 $as_echo "$ac_cv_working_alloca_h" >&6; }
5459 if test $ac_cv_working_alloca_h = yes; then
5460
5461 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5462
5463 fi
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5466 $as_echo_n "checking for alloca... " >&6; }
5467 if test "${ac_cv_func_alloca_works+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #ifdef __GNUC__
5473 # define alloca __builtin_alloca
5474 #else
5475 # ifdef _MSC_VER
5476 # include <malloc.h>
5477 # define alloca _alloca
5478 # else
5479 # ifdef HAVE_ALLOCA_H
5480 # include <alloca.h>
5481 # else
5482 # ifdef _AIX
5483 #pragma alloca
5484 # else
5485 # ifndef alloca /* predefined by HP cc +Olibcalls */
5486 char *alloca ();
5487 # endif
5488 # endif
5489 # endif
5490 # endif
5491 #endif
5492
5493 int
5494 main ()
5495 {
5496 char *p = (char *) alloca (1);
5497 if (p) return 0;
5498 ;
5499 return 0;
5500 }
5501 _ACEOF
5502 if ac_fn_c_try_link "$LINENO"; then :
5503 ac_cv_func_alloca_works=yes
5504 else
5505 ac_cv_func_alloca_works=no
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext conftest.$ac_ext
5509 fi
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5511 $as_echo "$ac_cv_func_alloca_works" >&6; }
5512
5513 if test $ac_cv_func_alloca_works = yes; then
5514
5515 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5516
5517 else
5518 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5519 # that cause trouble. Some versions do not even contain alloca or
5520 # contain a buggy version. If you still want to use their alloca,
5521 # use ar to extract alloca.o from them instead of compiling alloca.c.
5522
5523 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5524
5525 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5526
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5529 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5530 if test "${ac_cv_os_cray+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #if defined CRAY && ! defined CRAY2
5536 webecray
5537 #else
5538 wenotbecray
5539 #endif
5540
5541 _ACEOF
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "webecray" >/dev/null 2>&1; then :
5544 ac_cv_os_cray=yes
5545 else
5546 ac_cv_os_cray=no
5547 fi
5548 rm -f conftest*
5549
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5552 $as_echo "$ac_cv_os_cray" >&6; }
5553 if test $ac_cv_os_cray = yes; then
5554 for ac_func in _getb67 GETB67 getb67; do
5555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5556 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5557 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5558
5559 cat >>confdefs.h <<_ACEOF
5560 #define CRAY_STACKSEG_END $ac_func
5561 _ACEOF
5562
5563 break
5564 fi
5565
5566 done
5567 fi
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5570 $as_echo_n "checking stack direction for C alloca... " >&6; }
5571 if test "${ac_cv_c_stack_direction+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test "$cross_compiling" = yes; then :
5575 ac_cv_c_stack_direction=0
5576 else
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 $ac_includes_default
5580 int
5581 find_stack_direction ()
5582 {
5583 static char *addr = 0;
5584 auto char dummy;
5585 if (addr == 0)
5586 {
5587 addr = &dummy;
5588 return find_stack_direction ();
5589 }
5590 else
5591 return (&dummy > addr) ? 1 : -1;
5592 }
5593
5594 int
5595 main ()
5596 {
5597 return find_stack_direction () < 0;
5598 }
5599 _ACEOF
5600 if ac_fn_c_try_run "$LINENO"; then :
5601 ac_cv_c_stack_direction=1
5602 else
5603 ac_cv_c_stack_direction=-1
5604 fi
5605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5606 conftest.$ac_objext conftest.beam conftest.$ac_ext
5607 fi
5608
5609 fi
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5611 $as_echo "$ac_cv_c_stack_direction" >&6; }
5612 cat >>confdefs.h <<_ACEOF
5613 #define STACK_DIRECTION $ac_cv_c_stack_direction
5614 _ACEOF
5615
5616
5617 fi
5618
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5620 $as_echo_n "checking whether closedir returns void... " >&6; }
5621 if test "${ac_cv_func_closedir_void+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 if test "$cross_compiling" = yes; then :
5625 ac_cv_func_closedir_void=yes
5626 else
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 $ac_includes_default
5630 #include <$ac_header_dirent>
5631 #ifndef __cplusplus
5632 int closedir ();
5633 #endif
5634
5635 int
5636 main ()
5637 {
5638 return closedir (opendir (".")) != 0;
5639 ;
5640 return 0;
5641 }
5642 _ACEOF
5643 if ac_fn_c_try_run "$LINENO"; then :
5644 ac_cv_func_closedir_void=no
5645 else
5646 ac_cv_func_closedir_void=yes
5647 fi
5648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5649 conftest.$ac_objext conftest.beam conftest.$ac_ext
5650 fi
5651
5652 fi
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5654 $as_echo "$ac_cv_func_closedir_void" >&6; }
5655 if test $ac_cv_func_closedir_void = yes; then
5656
5657 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5658
5659 fi
5660
5661 for ac_header in unistd.h
5662 do :
5663 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5664 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5665 cat >>confdefs.h <<_ACEOF
5666 #define HAVE_UNISTD_H 1
5667 _ACEOF
5668
5669 fi
5670
5671 done
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5674 $as_echo_n "checking for working chown... " >&6; }
5675 if test "${ac_cv_func_chown_works+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test "$cross_compiling" = yes; then :
5679 ac_cv_func_chown_works=no
5680 else
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 $ac_includes_default
5684 #include <fcntl.h>
5685
5686 int
5687 main ()
5688 {
5689 char *f = "conftest.chown";
5690 struct stat before, after;
5691
5692 if (creat (f, 0600) < 0)
5693 return 1;
5694 if (stat (f, &before) < 0)
5695 return 1;
5696 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5697 return 1;
5698 if (stat (f, &after) < 0)
5699 return 1;
5700 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5701
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_run "$LINENO"; then :
5707 ac_cv_func_chown_works=yes
5708 else
5709 ac_cv_func_chown_works=no
5710 fi
5711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
5713 fi
5714
5715 rm -f conftest.chown
5716
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5719 $as_echo "$ac_cv_func_chown_works" >&6; }
5720 if test $ac_cv_func_chown_works = yes; then
5721
5722 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5723
5724 fi
5725
5726 for ac_header in vfork.h
5727 do :
5728 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5729 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5730 cat >>confdefs.h <<_ACEOF
5731 #define HAVE_VFORK_H 1
5732 _ACEOF
5733
5734 fi
5735
5736 done
5737
5738 for ac_func in fork vfork
5739 do :
5740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5741 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5742 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5743 cat >>confdefs.h <<_ACEOF
5744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5745 _ACEOF
5746
5747 fi
5748 done
5749
5750 if test "x$ac_cv_func_fork" = xyes; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5752 $as_echo_n "checking for working fork... " >&6; }
5753 if test "${ac_cv_func_fork_works+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 if test "$cross_compiling" = yes; then :
5757 ac_cv_func_fork_works=cross
5758 else
5759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 $ac_includes_default
5762 int
5763 main ()
5764 {
5765
5766 /* By Ruediger Kuhlmann. */
5767 return fork () < 0;
5768
5769 ;
5770 return 0;
5771 }
5772 _ACEOF
5773 if ac_fn_c_try_run "$LINENO"; then :
5774 ac_cv_func_fork_works=yes
5775 else
5776 ac_cv_func_fork_works=no
5777 fi
5778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5779 conftest.$ac_objext conftest.beam conftest.$ac_ext
5780 fi
5781
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5784 $as_echo "$ac_cv_func_fork_works" >&6; }
5785
5786 else
5787 ac_cv_func_fork_works=$ac_cv_func_fork
5788 fi
5789 if test "x$ac_cv_func_fork_works" = xcross; then
5790 case $host in
5791 *-*-amigaos* | *-*-msdosdjgpp*)
5792 # Override, as these systems have only a dummy fork() stub
5793 ac_cv_func_fork_works=no
5794 ;;
5795 *)
5796 ac_cv_func_fork_works=yes
5797 ;;
5798 esac
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5800 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5801 fi
5802 ac_cv_func_vfork_works=$ac_cv_func_vfork
5803 if test "x$ac_cv_func_vfork" = xyes; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5805 $as_echo_n "checking for working vfork... " >&6; }
5806 if test "${ac_cv_func_vfork_works+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test "$cross_compiling" = yes; then :
5810 ac_cv_func_vfork_works=cross
5811 else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 /* Thanks to Paul Eggert for this test. */
5815 $ac_includes_default
5816 #include <sys/wait.h>
5817 #ifdef HAVE_VFORK_H
5818 # include <vfork.h>
5819 #endif
5820 /* On some sparc systems, changes by the child to local and incoming
5821 argument registers are propagated back to the parent. The compiler
5822 is told about this with #include <vfork.h>, but some compilers
5823 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5824 static variable whose address is put into a register that is
5825 clobbered by the vfork. */
5826 static void
5827 #ifdef __cplusplus
5828 sparc_address_test (int arg)
5829 # else
5830 sparc_address_test (arg) int arg;
5831 #endif
5832 {
5833 static pid_t child;
5834 if (!child) {
5835 child = vfork ();
5836 if (child < 0) {
5837 perror ("vfork");
5838 _exit(2);
5839 }
5840 if (!child) {
5841 arg = getpid();
5842 write(-1, "", 0);
5843 _exit (arg);
5844 }
5845 }
5846 }
5847
5848 int
5849 main ()
5850 {
5851 pid_t parent = getpid ();
5852 pid_t child;
5853
5854 sparc_address_test (0);
5855
5856 child = vfork ();
5857
5858 if (child == 0) {
5859 /* Here is another test for sparc vfork register problems. This
5860 test uses lots of local variables, at least as many local
5861 variables as main has allocated so far including compiler
5862 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5863 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5864 reuse the register of parent for one of the local variables,
5865 since it will think that parent can't possibly be used any more
5866 in this routine. Assigning to the local variable will thus
5867 munge parent in the parent process. */
5868 pid_t
5869 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5870 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5871 /* Convince the compiler that p..p7 are live; otherwise, it might
5872 use the same hardware register for all 8 local variables. */
5873 if (p != p1 || p != p2 || p != p3 || p != p4
5874 || p != p5 || p != p6 || p != p7)
5875 _exit(1);
5876
5877 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5878 from child file descriptors. If the child closes a descriptor
5879 before it execs or exits, this munges the parent's descriptor
5880 as well. Test for this by closing stdout in the child. */
5881 _exit(close(fileno(stdout)) != 0);
5882 } else {
5883 int status;
5884 struct stat st;
5885
5886 while (wait(&status) != child)
5887 ;
5888 return (
5889 /* Was there some problem with vforking? */
5890 child < 0
5891
5892 /* Did the child fail? (This shouldn't happen.) */
5893 || status
5894
5895 /* Did the vfork/compiler bug occur? */
5896 || parent != getpid()
5897
5898 /* Did the file descriptor bug occur? */
5899 || fstat(fileno(stdout), &st) != 0
5900 );
5901 }
5902 }
5903 _ACEOF
5904 if ac_fn_c_try_run "$LINENO"; then :
5905 ac_cv_func_vfork_works=yes
5906 else
5907 ac_cv_func_vfork_works=no
5908 fi
5909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5910 conftest.$ac_objext conftest.beam conftest.$ac_ext
5911 fi
5912
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5915 $as_echo "$ac_cv_func_vfork_works" >&6; }
5916
5917 fi;
5918 if test "x$ac_cv_func_fork_works" = xcross; then
5919 ac_cv_func_vfork_works=$ac_cv_func_vfork
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5921 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5922 fi
5923
5924 if test "x$ac_cv_func_vfork_works" = xyes; then
5925
5926 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5927
5928 else
5929
5930 $as_echo "#define vfork fork" >>confdefs.h
5931
5932 fi
5933 if test "x$ac_cv_func_fork_works" = xyes; then
5934
5935 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5936
5937 fi
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5940 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5941 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 rm -f conftest.sym conftest.file
5945 echo >conftest.file
5946 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5947 if test "$cross_compiling" = yes; then :
5948 ac_cv_func_lstat_dereferences_slashed_symlink=no
5949 else
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 $ac_includes_default
5953 int
5954 main ()
5955 {
5956 struct stat sbuf;
5957 /* Linux will dereference the symlink and fail, as required by POSIX.
5958 That is better in the sense that it means we will not
5959 have to compile and use the lstat wrapper. */
5960 return lstat ("conftest.sym/", &sbuf) == 0;
5961 ;
5962 return 0;
5963 }
5964 _ACEOF
5965 if ac_fn_c_try_run "$LINENO"; then :
5966 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5967 else
5968 ac_cv_func_lstat_dereferences_slashed_symlink=no
5969 fi
5970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5971 conftest.$ac_objext conftest.beam conftest.$ac_ext
5972 fi
5973
5974 else
5975 # If the `ln -s' command failed, then we probably don't even
5976 # have an lstat function.
5977 ac_cv_func_lstat_dereferences_slashed_symlink=no
5978 fi
5979 rm -f conftest.sym conftest.file
5980
5981 fi
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5983 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5984
5985 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5986
5987 cat >>confdefs.h <<_ACEOF
5988 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5989 _ACEOF
5990
5991
5992 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5993 case " $LIBOBJS " in
5994 *" lstat.$ac_objext "* ) ;;
5995 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5996 ;;
5997 esac
5998
5999 fi
6000
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6002 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6003 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test "$cross_compiling" = yes; then :
6007 ac_cv_func_lstat_empty_string_bug=yes
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 $ac_includes_default
6012 int
6013 main ()
6014 {
6015 struct stat sbuf;
6016 return lstat ("", &sbuf) == 0;
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_c_try_run "$LINENO"; then :
6022 ac_cv_func_lstat_empty_string_bug=no
6023 else
6024 ac_cv_func_lstat_empty_string_bug=yes
6025 fi
6026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6027 conftest.$ac_objext conftest.beam conftest.$ac_ext
6028 fi
6029
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6032 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6033 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6034 case " $LIBOBJS " in
6035 *" lstat.$ac_objext "* ) ;;
6036 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6037 ;;
6038 esac
6039
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6043 _ACEOF
6044
6045 fi
6046
6047 for ac_header in stdlib.h
6048 do :
6049 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6050 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6051 cat >>confdefs.h <<_ACEOF
6052 #define HAVE_STDLIB_H 1
6053 _ACEOF
6054
6055 fi
6056
6057 done
6058
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6060 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6061 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6063 else
6064 if test "$cross_compiling" = yes; then :
6065 ac_cv_func_malloc_0_nonnull=no
6066 else
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6070 # include <stdlib.h>
6071 #else
6072 char *malloc ();
6073 #endif
6074
6075 int
6076 main ()
6077 {
6078 return ! malloc (0);
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_run "$LINENO"; then :
6084 ac_cv_func_malloc_0_nonnull=yes
6085 else
6086 ac_cv_func_malloc_0_nonnull=no
6087 fi
6088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6089 conftest.$ac_objext conftest.beam conftest.$ac_ext
6090 fi
6091
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6094 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6095 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6096
6097 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6098
6099 else
6100 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6101
6102 case " $LIBOBJS " in
6103 *" malloc.$ac_objext "* ) ;;
6104 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6105 ;;
6106 esac
6107
6108
6109 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6110
6111 fi
6112
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6115 $as_echo_n "checking for working memcmp... " >&6; }
6116 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 if test "$cross_compiling" = yes; then :
6120 ac_cv_func_memcmp_working=no
6121 else
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 $ac_includes_default
6125 int
6126 main ()
6127 {
6128
6129 /* Some versions of memcmp are not 8-bit clean. */
6130 char c0 = '\100', c1 = '\200', c2 = '\201';
6131 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6132 return 1;
6133
6134 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6135 or more and with at least one buffer not starting on a 4-byte boundary.
6136 William Lewis provided this test program. */
6137 {
6138 char foo[21];
6139 char bar[21];
6140 int i;
6141 for (i = 0; i < 4; i++)
6142 {
6143 char *a = foo + i;
6144 char *b = bar + i;
6145 strcpy (a, "--------01111111");
6146 strcpy (b, "--------10000000");
6147 if (memcmp (a, b, 16) >= 0)
6148 return 1;
6149 }
6150 return 0;
6151 }
6152
6153 ;
6154 return 0;
6155 }
6156 _ACEOF
6157 if ac_fn_c_try_run "$LINENO"; then :
6158 ac_cv_func_memcmp_working=yes
6159 else
6160 ac_cv_func_memcmp_working=no
6161 fi
6162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6163 conftest.$ac_objext conftest.beam conftest.$ac_ext
6164 fi
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6168 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6169 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6170 *" memcmp.$ac_objext "* ) ;;
6171 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6172 ;;
6173 esac
6174
6175
6176
6177
6178
6179 for ac_header in $ac_header_list
6180 do :
6181 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6183 "
6184 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6185 cat >>confdefs.h <<_ACEOF
6186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6187 _ACEOF
6188
6189 fi
6190
6191 done
6192
6193
6194
6195
6196
6197
6198
6199
6200 for ac_func in getpagesize
6201 do :
6202 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6203 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6204 cat >>confdefs.h <<_ACEOF
6205 #define HAVE_GETPAGESIZE 1
6206 _ACEOF
6207
6208 fi
6209 done
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6212 $as_echo_n "checking for working mmap... " >&6; }
6213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test "$cross_compiling" = yes; then :
6217 ac_cv_func_mmap_fixed_mapped=no
6218 else
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 $ac_includes_default
6222 /* malloc might have been renamed as rpl_malloc. */
6223 #undef malloc
6224
6225 /* Thanks to Mike Haertel and Jim Avera for this test.
6226 Here is a matrix of mmap possibilities:
6227 mmap private not fixed
6228 mmap private fixed at somewhere currently unmapped
6229 mmap private fixed at somewhere already mapped
6230 mmap shared not fixed
6231 mmap shared fixed at somewhere currently unmapped
6232 mmap shared fixed at somewhere already mapped
6233 For private mappings, we should verify that changes cannot be read()
6234 back from the file, nor mmap's back from the file at a different
6235 address. (There have been systems where private was not correctly
6236 implemented like the infamous i386 svr4.0, and systems where the
6237 VM page cache was not coherent with the file system buffer cache
6238 like early versions of FreeBSD and possibly contemporary NetBSD.)
6239 For shared mappings, we should conversely verify that changes get
6240 propagated back to all the places they're supposed to be.
6241
6242 Grep wants private fixed already mapped.
6243 The main things grep needs to know about mmap are:
6244 * does it exist and is it safe to write into the mmap'd area
6245 * how to use it (BSD variants) */
6246
6247 #include <fcntl.h>
6248 #include <sys/mman.h>
6249
6250 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6251 char *malloc ();
6252 #endif
6253
6254 /* This mess was copied from the GNU getpagesize.h. */
6255 #ifndef HAVE_GETPAGESIZE
6256 # ifdef _SC_PAGESIZE
6257 # define getpagesize() sysconf(_SC_PAGESIZE)
6258 # else /* no _SC_PAGESIZE */
6259 # ifdef HAVE_SYS_PARAM_H
6260 # include <sys/param.h>
6261 # ifdef EXEC_PAGESIZE
6262 # define getpagesize() EXEC_PAGESIZE
6263 # else /* no EXEC_PAGESIZE */
6264 # ifdef NBPG
6265 # define getpagesize() NBPG * CLSIZE
6266 # ifndef CLSIZE
6267 # define CLSIZE 1
6268 # endif /* no CLSIZE */
6269 # else /* no NBPG */
6270 # ifdef NBPC
6271 # define getpagesize() NBPC
6272 # else /* no NBPC */
6273 # ifdef PAGESIZE
6274 # define getpagesize() PAGESIZE
6275 # endif /* PAGESIZE */
6276 # endif /* no NBPC */
6277 # endif /* no NBPG */
6278 # endif /* no EXEC_PAGESIZE */
6279 # else /* no HAVE_SYS_PARAM_H */
6280 # define getpagesize() 8192 /* punt totally */
6281 # endif /* no HAVE_SYS_PARAM_H */
6282 # endif /* no _SC_PAGESIZE */
6283
6284 #endif /* no HAVE_GETPAGESIZE */
6285
6286 int
6287 main ()
6288 {
6289 char *data, *data2, *data3;
6290 const char *cdata2;
6291 int i, pagesize;
6292 int fd, fd2;
6293
6294 pagesize = getpagesize ();
6295
6296 /* First, make a file with some known garbage in it. */
6297 data = (char *) malloc (pagesize);
6298 if (!data)
6299 return 1;
6300 for (i = 0; i < pagesize; ++i)
6301 *(data + i) = rand ();
6302 umask (0);
6303 fd = creat ("conftest.mmap", 0600);
6304 if (fd < 0)
6305 return 2;
6306 if (write (fd, data, pagesize) != pagesize)
6307 return 3;
6308 close (fd);
6309
6310 /* Next, check that the tail of a page is zero-filled. File must have
6311 non-zero length, otherwise we risk SIGBUS for entire page. */
6312 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6313 if (fd2 < 0)
6314 return 4;
6315 cdata2 = "";
6316 if (write (fd2, cdata2, 1) != 1)
6317 return 5;
6318 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6319 if (data2 == MAP_FAILED)
6320 return 6;
6321 for (i = 0; i < pagesize; ++i)
6322 if (*(data2 + i))
6323 return 7;
6324 close (fd2);
6325 if (munmap (data2, pagesize))
6326 return 8;
6327
6328 /* Next, try to mmap the file at a fixed address which already has
6329 something else allocated at it. If we can, also make sure that
6330 we see the same garbage. */
6331 fd = open ("conftest.mmap", O_RDWR);
6332 if (fd < 0)
6333 return 9;
6334 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6335 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6336 return 10;
6337 for (i = 0; i < pagesize; ++i)
6338 if (*(data + i) != *(data2 + i))
6339 return 11;
6340
6341 /* Finally, make sure that changes to the mapped area do not
6342 percolate back to the file as seen by read(). (This is a bug on
6343 some variants of i386 svr4.0.) */
6344 for (i = 0; i < pagesize; ++i)
6345 *(data2 + i) = *(data2 + i) + 1;
6346 data3 = (char *) malloc (pagesize);
6347 if (!data3)
6348 return 12;
6349 if (read (fd, data3, pagesize) != pagesize)
6350 return 13;
6351 for (i = 0; i < pagesize; ++i)
6352 if (*(data + i) != *(data3 + i))
6353 return 14;
6354 close (fd);
6355 return 0;
6356 }
6357 _ACEOF
6358 if ac_fn_c_try_run "$LINENO"; then :
6359 ac_cv_func_mmap_fixed_mapped=yes
6360 else
6361 ac_cv_func_mmap_fixed_mapped=no
6362 fi
6363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6364 conftest.$ac_objext conftest.beam conftest.$ac_ext
6365 fi
6366
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6369 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6370 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6371
6372 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6373
6374 fi
6375 rm -f conftest.mmap conftest.txt
6376
6377 for ac_header in stdlib.h
6378 do :
6379 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6380 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6381 cat >>confdefs.h <<_ACEOF
6382 #define HAVE_STDLIB_H 1
6383 _ACEOF
6384
6385 fi
6386
6387 done
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6390 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6391 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test "$cross_compiling" = yes; then :
6395 ac_cv_func_realloc_0_nonnull=no
6396 else
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6400 # include <stdlib.h>
6401 #else
6402 char *realloc ();
6403 #endif
6404
6405 int
6406 main ()
6407 {
6408 return ! realloc (0, 0);
6409 ;
6410 return 0;
6411 }
6412 _ACEOF
6413 if ac_fn_c_try_run "$LINENO"; then :
6414 ac_cv_func_realloc_0_nonnull=yes
6415 else
6416 ac_cv_func_realloc_0_nonnull=no
6417 fi
6418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6419 conftest.$ac_objext conftest.beam conftest.$ac_ext
6420 fi
6421
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6424 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6425 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6426
6427 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6428
6429 else
6430 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6431
6432 case " $LIBOBJS " in
6433 *" realloc.$ac_objext "* ) ;;
6434 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6435 ;;
6436 esac
6437
6438
6439 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6440
6441 fi
6442
6443
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6445 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6446 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6448 else
6449 if test "$cross_compiling" = yes; then :
6450 ac_cv_func_stat_empty_string_bug=yes
6451 else
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 $ac_includes_default
6455 int
6456 main ()
6457 {
6458 struct stat sbuf;
6459 return stat ("", &sbuf) == 0;
6460 ;
6461 return 0;
6462 }
6463 _ACEOF
6464 if ac_fn_c_try_run "$LINENO"; then :
6465 ac_cv_func_stat_empty_string_bug=no
6466 else
6467 ac_cv_func_stat_empty_string_bug=yes
6468 fi
6469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6470 conftest.$ac_objext conftest.beam conftest.$ac_ext
6471 fi
6472
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6475 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6476 if test $ac_cv_func_stat_empty_string_bug = yes; then
6477 case " $LIBOBJS " in
6478 *" stat.$ac_objext "* ) ;;
6479 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6480 ;;
6481 esac
6482
6483
6484 cat >>confdefs.h <<_ACEOF
6485 #define HAVE_STAT_EMPTY_STRING_BUG 1
6486 _ACEOF
6487
6488 fi
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6491 $as_echo_n "checking for working strtod... " >&6; }
6492 if test "${ac_cv_func_strtod+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test "$cross_compiling" = yes; then :
6496 ac_cv_func_strtod=no
6497 else
6498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6500
6501 $ac_includes_default
6502 #ifndef strtod
6503 double strtod ();
6504 #endif
6505 int
6506 main()
6507 {
6508 {
6509 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6510 char *string = " +69";
6511 char *term;
6512 double value;
6513 value = strtod (string, &term);
6514 if (value != 69 || term != (string + 4))
6515 return 1;
6516 }
6517
6518 {
6519 /* Under Solaris 2.4, strtod returns the wrong value for the
6520 terminating character under some conditions. */
6521 char *string = "NaN";
6522 char *term;
6523 strtod (string, &term);
6524 if (term != string && *(term - 1) == 0)
6525 return 1;
6526 }
6527 return 0;
6528 }
6529
6530 _ACEOF
6531 if ac_fn_c_try_run "$LINENO"; then :
6532 ac_cv_func_strtod=yes
6533 else
6534 ac_cv_func_strtod=no
6535 fi
6536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6537 conftest.$ac_objext conftest.beam conftest.$ac_ext
6538 fi
6539
6540 fi
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6542 $as_echo "$ac_cv_func_strtod" >&6; }
6543 if test $ac_cv_func_strtod = no; then
6544 case " $LIBOBJS " in
6545 *" strtod.$ac_objext "* ) ;;
6546 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6547 ;;
6548 esac
6549
6550 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6551 if test "x$ac_cv_func_pow" = x""yes; then :
6552
6553 fi
6554
6555 if test $ac_cv_func_pow = no; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6557 $as_echo_n "checking for pow in -lm... " >&6; }
6558 if test "${ac_cv_lib_m_pow+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6560 else
6561 ac_check_lib_save_LIBS=$LIBS
6562 LIBS="-lm $LIBS"
6563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6565
6566 /* Override any GCC internal prototype to avoid an error.
6567 Use char because int might match the return type of a GCC
6568 builtin and then its argument prototype would still apply. */
6569 #ifdef __cplusplus
6570 extern "C"
6571 #endif
6572 char pow ();
6573 int
6574 main ()
6575 {
6576 return pow ();
6577 ;
6578 return 0;
6579 }
6580 _ACEOF
6581 if ac_fn_c_try_link "$LINENO"; then :
6582 ac_cv_lib_m_pow=yes
6583 else
6584 ac_cv_lib_m_pow=no
6585 fi
6586 rm -f core conftest.err conftest.$ac_objext \
6587 conftest$ac_exeext conftest.$ac_ext
6588 LIBS=$ac_check_lib_save_LIBS
6589 fi
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6591 $as_echo "$ac_cv_lib_m_pow" >&6; }
6592 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6593 POW_LIB=-lm
6594 else
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6596 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6597 fi
6598
6599 fi
6600
6601 fi
6602
6603 for ac_func in vprintf
6604 do :
6605 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6606 if test "x$ac_cv_func_vprintf" = x""yes; then :
6607 cat >>confdefs.h <<_ACEOF
6608 #define HAVE_VPRINTF 1
6609 _ACEOF
6610
6611 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6612 if test "x$ac_cv_func__doprnt" = x""yes; then :
6613
6614 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6615
6616 fi
6617
6618 fi
6619 done
6620
6621
6622
6623 ################################################################################
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6625 $as_echo_n "checking whether to use static linking... " >&6; }
6626 # Check whether --enable-static_link was given.
6627 if test "${enable_static_link+set}" = set; then :
6628 enableval=$enable_static_link; STATIC_LINK=$enableval
6629 else
6630 STATIC_LINK=no
6631 fi
6632
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6634 $as_echo "$STATIC_LINK" >&6; }
6635
6636 ################################################################################
6637
6638
6639 ################################################################################
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6641 $as_echo_n "checking file owner... " >&6; }
6642
6643 # Check whether --with-user was given.
6644 if test "${with_user+set}" = set; then :
6645 withval=$with_user; OWNER=$withval
6646 fi
6647
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6649 $as_echo "$OWNER" >&6; }
6650
6651 if test x$OWNER != x; then
6652 INSTALL="$INSTALL -o $OWNER"
6653 fi
6654
6655 ################################################################################
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6657 $as_echo_n "checking group owner... " >&6; }
6658
6659 # Check whether --with-group was given.
6660 if test "${with_group+set}" = set; then :
6661 withval=$with_group; GROUP=$withval
6662 fi
6663
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6665 $as_echo "$GROUP" >&6; }
6666
6667 if test x$GROUP != x; then
6668 INSTALL="$INSTALL -g $GROUP"
6669 fi
6670
6671 ################################################################################
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6673 $as_echo_n "checking device node uid... " >&6; }
6674
6675
6676 # Check whether --with-device-uid was given.
6677 if test "${with_device_uid+set}" = set; then :
6678 withval=$with_device_uid; DM_DEVICE_UID=$withval
6679 else
6680 DM_DEVICE_UID=0
6681 fi
6682
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6684 $as_echo "$DM_DEVICE_UID" >&6; }
6685
6686 ################################################################################
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6688 $as_echo_n "checking device node gid... " >&6; }
6689
6690
6691 # Check whether --with-device-gid was given.
6692 if test "${with_device_gid+set}" = set; then :
6693 withval=$with_device_gid; DM_DEVICE_GID=$withval
6694 else
6695 DM_DEVICE_GID=0
6696 fi
6697
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6699 $as_echo "$DM_DEVICE_GID" >&6; }
6700
6701 ################################################################################
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6703 $as_echo_n "checking device node mode... " >&6; }
6704
6705
6706 # Check whether --with-device-mode was given.
6707 if test "${with_device_mode+set}" = set; then :
6708 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6709 else
6710 DM_DEVICE_MODE=0600
6711 fi
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6714 $as_echo "$DM_DEVICE_MODE" >&6; }
6715
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6717 $as_echo_n "checking when to create device nodes... " >&6; }
6718
6719 # Check whether --with-device-nodes-on was given.
6720 if test "${with_device_nodes_on+set}" = set; then :
6721 withval=$with_device_nodes_on; ADD_NODE=$withval
6722 else
6723 ADD_NODE=resume
6724 fi
6725
6726 case "$ADD_NODE" in
6727 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6728 create) add_on=DM_ADD_NODE_ON_CREATE;;
6729 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6730 esac
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6732 $as_echo "on $ADD_NODE" >&6; }
6733
6734 cat >>confdefs.h <<_ACEOF
6735 #define DEFAULT_DM_ADD_NODE $add_on
6736 _ACEOF
6737
6738
6739 ################################################################################
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6741 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6742 # Check whether --enable-lvm1_fallback was given.
6743 if test "${enable_lvm1_fallback+set}" = set; then :
6744 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6745 else
6746 LVM1_FALLBACK=no
6747 fi
6748
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6750 $as_echo "$LVM1_FALLBACK" >&6; }
6751
6752 if test x$LVM1_FALLBACK = xyes; then
6753
6754 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6755
6756 fi
6757
6758 ################################################################################
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6760 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6761
6762 # Check whether --with-lvm1 was given.
6763 if test "${with_lvm1+set}" = set; then :
6764 withval=$with_lvm1; LVM1=$withval
6765 else
6766 LVM1=internal
6767 fi
6768
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6770 $as_echo "$LVM1" >&6; }
6771
6772 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6773 then as_fn_error $? "--with-lvm1 parameter invalid
6774 " "$LINENO" 5
6775 fi;
6776
6777 if test x$LVM1 = xinternal; then
6778
6779 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6780
6781 fi
6782
6783 ################################################################################
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6785 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6786
6787 # Check whether --with-pool was given.
6788 if test "${with_pool+set}" = set; then :
6789 withval=$with_pool; POOL=$withval
6790 else
6791 POOL=internal
6792 fi
6793
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6795 $as_echo "$POOL" >&6; }
6796
6797 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6798 then as_fn_error $? "--with-pool parameter invalid
6799 " "$LINENO" 5
6800 fi;
6801
6802 if test x$POOL = xinternal; then
6803
6804 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6805
6806 fi
6807
6808 ################################################################################
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6810 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6811
6812 # Check whether --with-cluster was given.
6813 if test "${with_cluster+set}" = set; then :
6814 withval=$with_cluster; CLUSTER=$withval
6815 fi
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6818 $as_echo "$CLUSTER" >&6; }
6819
6820 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6821 then as_fn_error $? "--with-cluster parameter invalid
6822 " "$LINENO" 5
6823 fi;
6824
6825 if test x$CLUSTER = xinternal; then
6826
6827 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6828
6829 fi
6830
6831 ################################################################################
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6833 $as_echo_n "checking whether to include snapshots... " >&6; }
6834
6835 # Check whether --with-snapshots was given.
6836 if test "${with_snapshots+set}" = set; then :
6837 withval=$with_snapshots; SNAPSHOTS=$withval
6838 else
6839 SNAPSHOTS=internal
6840 fi
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6843 $as_echo "$SNAPSHOTS" >&6; }
6844
6845 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6846 then as_fn_error $? "--with-snapshots parameter invalid
6847 " "$LINENO" 5
6848 fi;
6849
6850 if test x$SNAPSHOTS = xinternal; then
6851
6852 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6853
6854 fi
6855
6856 ################################################################################
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6858 $as_echo_n "checking whether to include mirrors... " >&6; }
6859
6860 # Check whether --with-mirrors was given.
6861 if test "${with_mirrors+set}" = set; then :
6862 withval=$with_mirrors; MIRRORS=$withval
6863 else
6864 MIRRORS=internal
6865 fi
6866
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6868 $as_echo "$MIRRORS" >&6; }
6869
6870 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6871 then as_fn_error $? "--with-mirrors parameter invalid
6872 " "$LINENO" 5
6873 fi;
6874
6875 if test x$MIRRORS = xinternal; then
6876
6877 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6878
6879 fi
6880
6881 ################################################################################
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6883 $as_echo_n "checking whether to include raid... " >&6; }
6884
6885 # Check whether --with-raid was given.
6886 if test "${with_raid+set}" = set; then :
6887 withval=$with_raid; RAID=$withval
6888 else
6889 RAID=internal
6890 fi
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6893 $as_echo "$RAID" >&6; }
6894
6895 if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6896 then as_fn_error $? "--with-raid parameter invalid
6897 " "$LINENO" 5
6898 fi;
6899
6900 if test x$RAID = xinternal; then
6901
6902 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6903
6904 fi
6905
6906 ################################################################################
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6908 $as_echo_n "checking whether to include replicators... " >&6; }
6909
6910 # Check whether --with-replicators was given.
6911 if test "${with_replicators+set}" = set; then :
6912 withval=$with_replicators; REPLICATORS=$withval
6913 else
6914 REPLICATORS=none
6915 fi
6916
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6918 $as_echo "$REPLICATORS" >&6; }
6919
6920 case "$REPLICATORS" in
6921 none|shared) ;;
6922 internal)
6923 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6924 ;;
6925 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6926 esac
6927
6928 ################################################################################
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6930 $as_echo_n "checking whether to enable readline... " >&6; }
6931 # Check whether --enable-readline was given.
6932 if test "${enable_readline+set}" = set; then :
6933 enableval=$enable_readline; READLINE=$enableval
6934 else
6935 READLINE=maybe
6936 fi
6937
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6939 $as_echo "$READLINE" >&6; }
6940
6941 ################################################################################
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6943 $as_echo_n "checking whether to enable realtime support... " >&6; }
6944 # Check whether --enable-realtime was given.
6945 if test "${enable_realtime+set}" = set; then :
6946 enableval=$enable_realtime; REALTIME=$enableval
6947 fi
6948
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6950 $as_echo "$REALTIME" >&6; }
6951
6952 ################################################################################
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6954 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6955 # Check whether --enable-ocf was given.
6956 if test "${enable_ocf+set}" = set; then :
6957 enableval=$enable_ocf; OCF=$enableval
6958 else
6959 OCF=no
6960 fi
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6963 $as_echo "$OCF" >&6; }
6964
6965 # Check whether --with-ocfdir was given.
6966 if test "${with_ocfdir+set}" = set; then :
6967 withval=$with_ocfdir; OCFDIR=$withval
6968 else
6969 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6970 fi
6971
6972
6973 ################################################################################
6974 pkg_config_init() {
6975
6976
6977
6978
6979
6980
6981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6984 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6989 else
6990 case $PKG_CONFIG in
6991 [\\/]* | ?:[\\/]*)
6992 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6993 ;;
6994 *)
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 for as_dir in $PATH
6997 do
6998 IFS=$as_save_IFS
6999 test -z "$as_dir" && as_dir=.
7000 for ac_exec_ext in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 break 2
7005 fi
7006 done
7007 done
7008 IFS=$as_save_IFS
7009
7010 ;;
7011 esac
7012 fi
7013 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7014 if test -n "$PKG_CONFIG"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7016 $as_echo "$PKG_CONFIG" >&6; }
7017 else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022
7023 fi
7024 if test -z "$ac_cv_path_PKG_CONFIG"; then
7025 ac_pt_PKG_CONFIG=$PKG_CONFIG
7026 # Extract the first word of "pkg-config", so it can be a program name with args.
7027 set dummy pkg-config; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 case $ac_pt_PKG_CONFIG in
7034 [\\/]* | ?:[\\/]*)
7035 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7036 ;;
7037 *)
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 ;;
7054 esac
7055 fi
7056 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7057 if test -n "$ac_pt_PKG_CONFIG"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7059 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065 if test "x$ac_pt_PKG_CONFIG" = x; then
7066 PKG_CONFIG=""
7067 else
7068 case $cross_compiling:$ac_tool_warned in
7069 yes:)
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074 PKG_CONFIG=$ac_pt_PKG_CONFIG
7075 fi
7076 else
7077 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7078 fi
7079
7080 fi
7081 if test -n "$PKG_CONFIG"; then
7082 _pkg_min_version=0.9.0
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7084 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7087 $as_echo "yes" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 PKG_CONFIG=""
7092 fi
7093 fi
7094
7095 pkg_failed=no
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7097 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7098
7099 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7100 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7101 elif test -n "$PKG_CONFIG"; then
7102 if test -n "$PKG_CONFIG" && \
7103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7104 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7109 else
7110 pkg_failed=yes
7111 fi
7112 else
7113 pkg_failed=untried
7114 fi
7115 if test -n "$PKGCONFIGINIT_LIBS"; then
7116 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7117 elif test -n "$PKG_CONFIG"; then
7118 if test -n "$PKG_CONFIG" && \
7119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7120 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7121 ac_status=$?
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; }; then
7124 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7125 else
7126 pkg_failed=yes
7127 fi
7128 else
7129 pkg_failed=untried
7130 fi
7131
7132
7133
7134 if test $pkg_failed = yes; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137
7138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7139 _pkg_short_errors_supported=yes
7140 else
7141 _pkg_short_errors_supported=no
7142 fi
7143 if test $_pkg_short_errors_supported = yes; then
7144 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7145 else
7146 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7147 fi
7148 # Put the nasty error message in config.log where it belongs
7149 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7152 $as_echo "pkg-config initialized" >&6; }
7153 elif test $pkg_failed = untried; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7157 $as_echo "pkg-config initialized" >&6; }
7158 else
7159 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7160 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7162 $as_echo "yes" >&6; }
7163
7164 fi
7165 PKGCONFIG_INIT=1
7166 }
7167
7168 ################################################################################
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7170 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7171
7172 # Check whether --with-clvmd was given.
7173 if test "${with_clvmd+set}" = set; then :
7174 withval=$with_clvmd; CLVMD=$withval
7175 else
7176 CLVMD=none
7177 fi
7178
7179 if test x$CLVMD = xyes; then
7180 CLVMD=all
7181 fi
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7183 $as_echo "$CLVMD" >&6; }
7184
7185 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7186 CLUSTER=internal
7187 fi
7188
7189 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7190 pkg_config_init
7191 fi
7192
7193 CLVMD_CMANAGERS=""
7194 CLVMD_NEEDS_QDISKD=no
7195
7196 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7197 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7198 fi
7199 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7200 BUILDCMAN=yes
7201 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7202 CLVMD_NEEDS_QDISKD=yes
7203 fi
7204 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7205 BUILDCOROSYNC=yes
7206 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7207 fi
7208 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7209 BUILDOPENAIS=yes
7210 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7211 fi
7212 if test x$CLVMD_NEEDS_QDISKD != xno; then
7213 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7214 fi
7215
7216 soft_bailout() {
7217 NOTFOUND=1
7218 }
7219
7220 hard_bailout() {
7221 as_fn_error $? "bailing out" "$LINENO" 5
7222 }
7223
7224 if test x$CLVMD = xall; then
7225 bailout=soft_bailout
7226 BUILDCMAN=yes
7227 BUILDCOROSYNC=yes
7228 BUILDOPENAIS=yes
7229 else
7230 bailout=hard_bailout
7231 fi
7232
7233 check_lib_no_libs() {
7234 lib_no_libs_arg1=$1
7235 shift
7236 lib_no_libs_arg2=$1
7237 shift
7238 lib_no_libs_args=$@
7239 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7241 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7242 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7249
7250 /* Override any GCC internal prototype to avoid an error.
7251 Use char because int might match the return type of a GCC
7252 builtin and then its argument prototype would still apply. */
7253 #ifdef __cplusplus
7254 extern "C"
7255 #endif
7256 char $lib_no_libs_arg2 ();
7257 int
7258 main ()
7259 {
7260 return $lib_no_libs_arg2 ();
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_c_try_link "$LINENO"; then :
7266 eval "$as_ac_Lib=yes"
7267 else
7268 eval "$as_ac_Lib=no"
7269 fi
7270 rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
7272 LIBS=$ac_check_lib_save_LIBS
7273 fi
7274 eval ac_res=\$$as_ac_Lib
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7276 $as_echo "$ac_res" >&6; }
7277 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7278 cat >>confdefs.h <<_ACEOF
7279 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7280 _ACEOF
7281
7282 LIBS="-l$lib_no_libs_arg1 $LIBS"
7283
7284 else
7285 $bailout
7286 fi
7287
7288 LIBS=$ac_check_lib_save_LIBS
7289 }
7290
7291 if test x$BUILDCMAN = xyes; then
7292
7293 pkg_failed=no
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7295 $as_echo_n "checking for CMAN... " >&6; }
7296
7297 if test -n "$CMAN_CFLAGS"; then
7298 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7299 elif test -n "$PKG_CONFIG"; then
7300 if test -n "$PKG_CONFIG" && \
7301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7302 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7303 ac_status=$?
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; }; then
7306 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7307 else
7308 pkg_failed=yes
7309 fi
7310 else
7311 pkg_failed=untried
7312 fi
7313 if test -n "$CMAN_LIBS"; then
7314 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7315 elif test -n "$PKG_CONFIG"; then
7316 if test -n "$PKG_CONFIG" && \
7317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7318 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7319 ac_status=$?
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; }; then
7322 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7323 else
7324 pkg_failed=yes
7325 fi
7326 else
7327 pkg_failed=untried
7328 fi
7329
7330
7331
7332 if test $pkg_failed = yes; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335
7336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7337 _pkg_short_errors_supported=yes
7338 else
7339 _pkg_short_errors_supported=no
7340 fi
7341 if test $_pkg_short_errors_supported = yes; then
7342 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7343 else
7344 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7345 fi
7346 # Put the nasty error message in config.log where it belongs
7347 echo "$CMAN_PKG_ERRORS" >&5
7348
7349 NOTFOUND=0
7350 for ac_header in libcman.h
7351 do :
7352 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7353 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7354 cat >>confdefs.h <<_ACEOF
7355 #define HAVE_LIBCMAN_H 1
7356 _ACEOF
7357
7358 else
7359 $bailout
7360 fi
7361
7362 done
7363
7364 check_lib_no_libs cman cman_init
7365 if test $NOTFOUND = 0; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7367 $as_echo "no pkg for libcman, using -lcman" >&6; }
7368 CMAN_LIBS="-lcman"
7369 HAVE_CMAN=yes
7370 fi
7371 elif test $pkg_failed = untried; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 NOTFOUND=0
7375 for ac_header in libcman.h
7376 do :
7377 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7378 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7379 cat >>confdefs.h <<_ACEOF
7380 #define HAVE_LIBCMAN_H 1
7381 _ACEOF
7382
7383 else
7384 $bailout
7385 fi
7386
7387 done
7388
7389 check_lib_no_libs cman cman_init
7390 if test $NOTFOUND = 0; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7392 $as_echo "no pkg for libcman, using -lcman" >&6; }
7393 CMAN_LIBS="-lcman"
7394 HAVE_CMAN=yes
7395 fi
7396 else
7397 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7398 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7400 $as_echo "yes" >&6; }
7401 HAVE_CMAN=yes
7402 fi
7403 CHECKCONFDB=yes
7404 CHECKDLM=yes
7405 fi
7406
7407 if test x$BUILDCOROSYNC = xyes || \
7408 test x$BUILDOPENAIS = xyes; then
7409
7410 pkg_failed=no
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7412 $as_echo_n "checking for COROSYNC... " >&6; }
7413
7414 if test -n "$COROSYNC_CFLAGS"; then
7415 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7416 elif test -n "$PKG_CONFIG"; then
7417 if test -n "$PKG_CONFIG" && \
7418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7419 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7420 ac_status=$?
7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; }; then
7423 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7424 else
7425 pkg_failed=yes
7426 fi
7427 else
7428 pkg_failed=untried
7429 fi
7430 if test -n "$COROSYNC_LIBS"; then
7431 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7432 elif test -n "$PKG_CONFIG"; then
7433 if test -n "$PKG_CONFIG" && \
7434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7435 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7436 ac_status=$?
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7440 else
7441 pkg_failed=yes
7442 fi
7443 else
7444 pkg_failed=untried
7445 fi
7446
7447
7448
7449 if test $pkg_failed = yes; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452
7453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7454 _pkg_short_errors_supported=yes
7455 else
7456 _pkg_short_errors_supported=no
7457 fi
7458 if test $_pkg_short_errors_supported = yes; then
7459 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7460 else
7461 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7462 fi
7463 # Put the nasty error message in config.log where it belongs
7464 echo "$COROSYNC_PKG_ERRORS" >&5
7465
7466 $bailout
7467 elif test $pkg_failed = untried; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 $bailout
7471 else
7472 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7473 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475 $as_echo "yes" >&6; }
7476 HAVE_COROSYNC=yes
7477 fi
7478 CHECKCONFDB=yes
7479 fi
7480
7481 if test x$BUILDCOROSYNC = xyes; then
7482
7483 pkg_failed=no
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7485 $as_echo_n "checking for QUORUM... " >&6; }
7486
7487 if test -n "$QUORUM_CFLAGS"; then
7488 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7489 elif test -n "$PKG_CONFIG"; then
7490 if test -n "$PKG_CONFIG" && \
7491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7492 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7493 ac_status=$?
7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; }; then
7496 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7497 else
7498 pkg_failed=yes
7499 fi
7500 else
7501 pkg_failed=untried
7502 fi
7503 if test -n "$QUORUM_LIBS"; then
7504 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7505 elif test -n "$PKG_CONFIG"; then
7506 if test -n "$PKG_CONFIG" && \
7507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7508 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7509 ac_status=$?
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7513 else
7514 pkg_failed=yes
7515 fi
7516 else
7517 pkg_failed=untried
7518 fi
7519
7520
7521
7522 if test $pkg_failed = yes; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7525
7526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7527 _pkg_short_errors_supported=yes
7528 else
7529 _pkg_short_errors_supported=no
7530 fi
7531 if test $_pkg_short_errors_supported = yes; then
7532 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7533 else
7534 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7535 fi
7536 # Put the nasty error message in config.log where it belongs
7537 echo "$QUORUM_PKG_ERRORS" >&5
7538
7539 $bailout
7540 elif test $pkg_failed = untried; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 $bailout
7544 else
7545 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7546 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 $as_echo "yes" >&6; }
7549 HAVE_QUORUM=yes
7550 fi
7551 CHECKCPG=yes
7552 CHECKDLM=yes
7553 fi
7554
7555 if test x$BUILDOPENAIS = xyes; then
7556
7557 pkg_failed=no
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7559 $as_echo_n "checking for SALCK... " >&6; }
7560
7561 if test -n "$SALCK_CFLAGS"; then
7562 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7563 elif test -n "$PKG_CONFIG"; then
7564 if test -n "$PKG_CONFIG" && \
7565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7566 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7567 ac_status=$?
7568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7569 test $ac_status = 0; }; then
7570 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7571 else
7572 pkg_failed=yes
7573 fi
7574 else
7575 pkg_failed=untried
7576 fi
7577 if test -n "$SALCK_LIBS"; then
7578 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7579 elif test -n "$PKG_CONFIG"; then
7580 if test -n "$PKG_CONFIG" && \
7581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7582 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7583 ac_status=$?
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7587 else
7588 pkg_failed=yes
7589 fi
7590 else
7591 pkg_failed=untried
7592 fi
7593
7594
7595
7596 if test $pkg_failed = yes; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599
7600 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7601 _pkg_short_errors_supported=yes
7602 else
7603 _pkg_short_errors_supported=no
7604 fi
7605 if test $_pkg_short_errors_supported = yes; then
7606 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7607 else
7608 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7609 fi
7610 # Put the nasty error message in config.log where it belongs
7611 echo "$SALCK_PKG_ERRORS" >&5
7612
7613 $bailout
7614 elif test $pkg_failed = untried; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7617 $bailout
7618 else
7619 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7620 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 $as_echo "yes" >&6; }
7623 HAVE_SALCK=yes
7624 fi
7625 CHECKCPG=yes
7626 fi
7627
7628
7629
7630 if test x$CHECKCONFDB = xyes; then
7631
7632 pkg_failed=no
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7634 $as_echo_n "checking for CONFDB... " >&6; }
7635
7636 if test -n "$CONFDB_CFLAGS"; then
7637 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7638 elif test -n "$PKG_CONFIG"; then
7639 if test -n "$PKG_CONFIG" && \
7640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7641 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }; then
7645 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7646 else
7647 pkg_failed=yes
7648 fi
7649 else
7650 pkg_failed=untried
7651 fi
7652 if test -n "$CONFDB_LIBS"; then
7653 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7654 elif test -n "$PKG_CONFIG"; then
7655 if test -n "$PKG_CONFIG" && \
7656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7657 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7662 else
7663 pkg_failed=yes
7664 fi
7665 else
7666 pkg_failed=untried
7667 fi
7668
7669
7670
7671 if test $pkg_failed = yes; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7674
7675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7676 _pkg_short_errors_supported=yes
7677 else
7678 _pkg_short_errors_supported=no
7679 fi
7680 if test $_pkg_short_errors_supported = yes; then
7681 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7682 else
7683 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7684 fi
7685 # Put the nasty error message in config.log where it belongs
7686 echo "$CONFDB_PKG_ERRORS" >&5
7687
7688 HAVE_CONFDB=no
7689 elif test $pkg_failed = untried; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 HAVE_CONFDB=no
7693 else
7694 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7695 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7697 $as_echo "yes" >&6; }
7698 HAVE_CONFDB=yes
7699 fi
7700
7701 for ac_header in corosync/confdb.h
7702 do :
7703 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7704 if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7705 cat >>confdefs.h <<_ACEOF
7706 #define HAVE_COROSYNC_CONFDB_H 1
7707 _ACEOF
7708 HAVE_CONFDB_H=yes
7709 else
7710 HAVE_CONFDB_H=no
7711 fi
7712
7713 done
7714
7715
7716 if test x$HAVE_CONFDB != xyes && \
7717 test x$HAVE_CONFDB_H = xyes; then
7718 check_lib_no_libs confdb confdb_initialize
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7720 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7721 CONFDB_LIBS="-lconfdb"
7722 HAVE_CONFDB=yes
7723 fi
7724
7725 if test x$BUILDCOROSYNC = xyes && \
7726 test x$HAVE_CONFDB != xyes &&
7727 test x$CLVMD != xall; then
7728 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7729 fi
7730 fi
7731
7732 if test x$CHECKCPG = xyes; then
7733
7734 pkg_failed=no
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7736 $as_echo_n "checking for CPG... " >&6; }
7737
7738 if test -n "$CPG_CFLAGS"; then
7739 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7740 elif test -n "$PKG_CONFIG"; then
7741 if test -n "$PKG_CONFIG" && \
7742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7743 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7744 ac_status=$?
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; }; then
7747 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7748 else
7749 pkg_failed=yes
7750 fi
7751 else
7752 pkg_failed=untried
7753 fi
7754 if test -n "$CPG_LIBS"; then
7755 pkg_cv_CPG_LIBS="$CPG_LIBS"
7756 elif test -n "$PKG_CONFIG"; then
7757 if test -n "$PKG_CONFIG" && \
7758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7759 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7760 ac_status=$?
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; }; then
7763 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7764 else
7765 pkg_failed=yes
7766 fi
7767 else
7768 pkg_failed=untried
7769 fi
7770
7771
7772
7773 if test $pkg_failed = yes; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7776
7777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7778 _pkg_short_errors_supported=yes
7779 else
7780 _pkg_short_errors_supported=no
7781 fi
7782 if test $_pkg_short_errors_supported = yes; then
7783 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7784 else
7785 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7786 fi
7787 # Put the nasty error message in config.log where it belongs
7788 echo "$CPG_PKG_ERRORS" >&5
7789
7790 $bailout
7791 elif test $pkg_failed = untried; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 $bailout
7795 else
7796 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7797 CPG_LIBS=$pkg_cv_CPG_LIBS
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7800 HAVE_CPG=yes
7801 fi
7802 fi
7803
7804 if test x$CHECKDLM = xyes; then
7805
7806 pkg_failed=no
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7808 $as_echo_n "checking for DLM... " >&6; }
7809
7810 if test -n "$DLM_CFLAGS"; then
7811 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7812 elif test -n "$PKG_CONFIG"; then
7813 if test -n "$PKG_CONFIG" && \
7814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7815 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7816 ac_status=$?
7817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7818 test $ac_status = 0; }; then
7819 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
7820 else
7821 pkg_failed=yes
7822 fi
7823 else
7824 pkg_failed=untried
7825 fi
7826 if test -n "$DLM_LIBS"; then
7827 pkg_cv_DLM_LIBS="$DLM_LIBS"
7828 elif test -n "$PKG_CONFIG"; then
7829 if test -n "$PKG_CONFIG" && \
7830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7831 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7832 ac_status=$?
7833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; }; then
7835 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7836 else
7837 pkg_failed=yes
7838 fi
7839 else
7840 pkg_failed=untried
7841 fi
7842
7843
7844
7845 if test $pkg_failed = yes; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848
7849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7850 _pkg_short_errors_supported=yes
7851 else
7852 _pkg_short_errors_supported=no
7853 fi
7854 if test $_pkg_short_errors_supported = yes; then
7855 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7856 else
7857 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7858 fi
7859 # Put the nasty error message in config.log where it belongs
7860 echo "$DLM_PKG_ERRORS" >&5
7861
7862 NOTFOUND=0
7863 for ac_header in libdlm.h
7864 do :
7865 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7866 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7867 cat >>confdefs.h <<_ACEOF
7868 #define HAVE_LIBDLM_H 1
7869 _ACEOF
7870
7871 else
7872 $bailout
7873 fi
7874
7875 done
7876
7877 check_lib_no_libs dlm dlm_lock -lpthread
7878 if test $NOTFOUND = 0; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7880 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
7881 DLM_LIBS="-ldlm -lpthread"
7882 HAVE_DLM=yes
7883 fi
7884 elif test $pkg_failed = untried; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 NOTFOUND=0
7888 for ac_header in libdlm.h
7889 do :
7890 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7891 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7892 cat >>confdefs.h <<_ACEOF
7893 #define HAVE_LIBDLM_H 1
7894 _ACEOF
7895
7896 else
7897 $bailout
7898 fi
7899
7900 done
7901
7902 check_lib_no_libs dlm dlm_lock -lpthread
7903 if test $NOTFOUND = 0; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7905 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
7906 DLM_LIBS="-ldlm -lpthread"
7907 HAVE_DLM=yes
7908 fi
7909 else
7910 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7911 DLM_LIBS=$pkg_cv_DLM_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7914 HAVE_DLM=yes
7915 fi
7916 fi
7917
7918 if test x$CLVMD = xall; then
7919 CLVMD=none
7920 CLVMD_CMANAGERS=""
7921 CLVMD_NEEDS_QDISKD=no
7922 if test x$HAVE_CMAN = xyes && \
7923 test x$HAVE_DLM = xyes; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7925 $as_echo "Enabling clvmd cman cluster manager" >&6; }
7926 CLVMD="$CLVMD,cman"
7927 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7928 CLVMD_NEEDS_QDISKD=yes
7929 fi
7930 if test x$HAVE_COROSYNC = xyes && \
7931 test x$HAVE_QUORUM = xyes && \
7932 test x$HAVE_CPG = xyes && \
7933 test x$HAVE_DLM = xyes && \
7934 test x$HAVE_CONFDB = xyes; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7936 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
7937 CLVMD="$CLVMD,corosync"
7938 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7939 fi
7940 if test x$HAVE_COROSYNC = xyes && \
7941 test x$HAVE_CPG = xyes && \
7942 test x$HAVE_SALCK = xyes; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7944 $as_echo "Enabling clvmd openais cluster manager" >&6; }
7945 CLVMD="$CLVMD,openais"
7946 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7947 fi
7948 if test x$CLVMD_NEEDS_QDISKD != xno; then
7949 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7950 fi
7951 if test x$CLVMD = xnone; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7953 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
7954 fi
7955 fi
7956
7957 ################################################################################
7958 if test "x$CLVMD" != xnone; then
7959
7960 # Check whether --with-clvmd-pidfile was given.
7961 if test "${with_clvmd_pidfile+set}" = set; then :
7962 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
7963 else
7964 CLVMD_PIDFILE="/var/run/clvmd.pid"
7965 fi
7966
7967
7968 cat >>confdefs.h <<_ACEOF
7969 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
7970 _ACEOF
7971
7972 fi
7973
7974 ################################################################################
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
7976 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
7977 # Check whether --enable-cmirrord was given.
7978 if test "${enable_cmirrord+set}" = set; then :
7979 enableval=$enable_cmirrord; CMIRRORD=$enableval
7980 else
7981 CMIRRORD=no
7982 fi
7983
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
7985 $as_echo "$CMIRRORD" >&6; }
7986
7987 BUILD_CMIRRORD=$CMIRRORD
7988
7989 ################################################################################
7990 if test "x$BUILD_CMIRRORD" = xyes; then
7991
7992 # Check whether --with-cmirrord-pidfile was given.
7993 if test "${with_cmirrord_pidfile+set}" = set; then :
7994 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
7995 else
7996 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
7997 fi
7998
7999
8000 cat >>confdefs.h <<_ACEOF
8001 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8002 _ACEOF
8003
8004 fi
8005
8006 ################################################################################
8007 if [ "x$BUILD_CMIRRORD" = xyes ]; then
8008 if test x$PKGCONFIG_INIT != x1; then
8009 pkg_config_init
8010 fi
8011
8012 pkg_failed=no
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8014 $as_echo_n "checking for SACKPT... " >&6; }
8015
8016 if test -n "$SACKPT_CFLAGS"; then
8017 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8018 elif test -n "$PKG_CONFIG"; then
8019 if test -n "$PKG_CONFIG" && \
8020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8021 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8022 ac_status=$?
8023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8024 test $ac_status = 0; }; then
8025 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8026 else
8027 pkg_failed=yes
8028 fi
8029 else
8030 pkg_failed=untried
8031 fi
8032 if test -n "$SACKPT_LIBS"; then
8033 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8034 elif test -n "$PKG_CONFIG"; then
8035 if test -n "$PKG_CONFIG" && \
8036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8037 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8038 ac_status=$?
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; }; then
8041 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8042 else
8043 pkg_failed=yes
8044 fi
8045 else
8046 pkg_failed=untried
8047 fi
8048
8049
8050
8051 if test $pkg_failed = yes; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054
8055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8056 _pkg_short_errors_supported=yes
8057 else
8058 _pkg_short_errors_supported=no
8059 fi
8060 if test $_pkg_short_errors_supported = yes; then
8061 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8062 else
8063 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8064 fi
8065 # Put the nasty error message in config.log where it belongs
8066 echo "$SACKPT_PKG_ERRORS" >&5
8067
8068 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8069
8070 $SACKPT_PKG_ERRORS
8071
8072 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8073 installed software in a non-standard prefix.
8074
8075 Alternatively, you may set the environment variables SACKPT_CFLAGS
8076 and SACKPT_LIBS to avoid the need to call pkg-config.
8077 See the pkg-config man page for more details." "$LINENO" 5
8078
8079 elif test $pkg_failed = untried; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8084 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8085 is in your PATH or set the PKG_CONFIG environment variable to the full
8086 path to pkg-config.
8087
8088 Alternatively, you may set the environment variables SACKPT_CFLAGS
8089 and SACKPT_LIBS to avoid the need to call pkg-config.
8090 See the pkg-config man page for more details.
8091
8092 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8093 See \`config.log' for more details" "$LINENO" 5; }
8094
8095 else
8096 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8097 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8099 $as_echo "yes" >&6; }
8100
8101 fi
8102 if test x$HAVE_CPG != xyes; then
8103
8104 pkg_failed=no
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8106 $as_echo_n "checking for CPG... " >&6; }
8107
8108 if test -n "$CPG_CFLAGS"; then
8109 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8110 elif test -n "$PKG_CONFIG"; then
8111 if test -n "$PKG_CONFIG" && \
8112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8113 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8114 ac_status=$?
8115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116 test $ac_status = 0; }; then
8117 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8118 else
8119 pkg_failed=yes
8120 fi
8121 else
8122 pkg_failed=untried
8123 fi
8124 if test -n "$CPG_LIBS"; then
8125 pkg_cv_CPG_LIBS="$CPG_LIBS"
8126 elif test -n "$PKG_CONFIG"; then
8127 if test -n "$PKG_CONFIG" && \
8128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8129 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8130 ac_status=$?
8131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8132 test $ac_status = 0; }; then
8133 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8134 else
8135 pkg_failed=yes
8136 fi
8137 else
8138 pkg_failed=untried
8139 fi
8140
8141
8142
8143 if test $pkg_failed = yes; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146
8147 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8148 _pkg_short_errors_supported=yes
8149 else
8150 _pkg_short_errors_supported=no
8151 fi
8152 if test $_pkg_short_errors_supported = yes; then
8153 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8154 else
8155 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8156 fi
8157 # Put the nasty error message in config.log where it belongs
8158 echo "$CPG_PKG_ERRORS" >&5
8159
8160 as_fn_error $? "Package requirements (libcpg) were not met:
8161
8162 $CPG_PKG_ERRORS
8163
8164 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8165 installed software in a non-standard prefix.
8166
8167 Alternatively, you may set the environment variables CPG_CFLAGS
8168 and CPG_LIBS to avoid the need to call pkg-config.
8169 See the pkg-config man page for more details." "$LINENO" 5
8170
8171 elif test $pkg_failed = untried; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8176 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8177 is in your PATH or set the PKG_CONFIG environment variable to the full
8178 path to pkg-config.
8179
8180 Alternatively, you may set the environment variables CPG_CFLAGS
8181 and CPG_LIBS to avoid the need to call pkg-config.
8182 See the pkg-config man page for more details.
8183
8184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8185 See \`config.log' for more details" "$LINENO" 5; }
8186
8187 else
8188 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8189 CPG_LIBS=$pkg_cv_CPG_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8192
8193 fi
8194 fi
8195 fi
8196
8197 ################################################################################
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8199 $as_echo_n "checking whether to enable debugging... " >&6; }
8200 # Check whether --enable-debug was given.
8201 if test "${enable_debug+set}" = set; then :
8202 enableval=$enable_debug; DEBUG=$enableval
8203 else
8204 DEBUG=no
8205 fi
8206
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8208 $as_echo "$DEBUG" >&6; }
8209
8210 if test x$DEBUG = xyes; then
8211 COPTIMISE_FLAG=
8212 else
8213 CSCOPE_CMD=
8214 fi
8215
8216 ################################################################################
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8218 $as_echo_n "checking for C optimisation flag... " >&6; }
8219
8220 # Check whether --with-optimisation was given.
8221 if test "${with_optimisation+set}" = set; then :
8222 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8223 fi
8224
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8226 $as_echo "$COPTIMISE_FLAG" >&6; }
8227
8228 ################################################################################
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8230 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8231 # Check whether --enable-profiling was given.
8232 if test "${enable_profiling+set}" = set; then :
8233 enableval=$enable_profiling; PROFILING=$enableval
8234 else
8235 PROFILING=no
8236 fi
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8239 $as_echo "$PROFILING" >&6; }
8240
8241 if test "x$PROFILING" = xyes; then
8242 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8243 # Extract the first word of "lcov", so it can be a program name with args.
8244 set dummy lcov; ac_word=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if test "${ac_cv_path_LCOV+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8249 else
8250 case $LCOV in
8251 [\\/]* | ?:[\\/]*)
8252 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8253 ;;
8254 *)
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8265 fi
8266 done
8267 done
8268 IFS=$as_save_IFS
8269
8270 ;;
8271 esac
8272 fi
8273 LCOV=$ac_cv_path_LCOV
8274 if test -n "$LCOV"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8276 $as_echo "$LCOV" >&6; }
8277 else
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282
8283 # Extract the first word of "genhtml", so it can be a program name with args.
8284 set dummy genhtml; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_path_GENHTML+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 case $GENHTML in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8293 ;;
8294 *)
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8305 fi
8306 done
8307 done
8308 IFS=$as_save_IFS
8309
8310 ;;
8311 esac
8312 fi
8313 GENHTML=$ac_cv_path_GENHTML
8314 if test -n "$GENHTML"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8316 $as_echo "$GENHTML" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8320 fi
8321
8322
8323 if test -z "$LCOV" -o -z "$GENHTML"; then
8324 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8325 fi
8326 # Extract the first word of "genpng", so it can be a program name with args.
8327 set dummy genpng; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if test "${ac_cv_path_GENPNG+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 case $GENPNG in
8334 [\\/]* | ?:[\\/]*)
8335 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8336 ;;
8337 *)
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8348 fi
8349 done
8350 done
8351 IFS=$as_save_IFS
8352
8353 ;;
8354 esac
8355 fi
8356 GENPNG=$ac_cv_path_GENPNG
8357 if test -n "$GENPNG"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8359 $as_echo "$GENPNG" >&6; }
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8363 fi
8364
8365
8366 if test -n "$GENPNG"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8368 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8369 if $GENPNG --help > /dev/null 2>&1 ; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8371 $as_echo "ok" >&6; }
8372 GENHTML="$GENHTML --frames"
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8375 $as_echo "not supported" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8377 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8378 GENPNG=
8379 fi
8380 fi
8381 fi
8382
8383 ################################################################################
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8385 $as_echo_n "checking whether to enable unit testing... " >&6; }
8386 # Check whether --enable-testing was given.
8387 if test "${enable_testing+set}" = set; then :
8388 enableval=$enable_testing; TESTING=$enableval
8389 else
8390 TESTING=no
8391 fi
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8394 $as_echo "$TESTING" >&6; }
8395
8396 if test "$TESTING" = yes; then
8397 # Extract the first word of "ruby1.9", so it can be a program name with args.
8398 set dummy ruby1.9; ac_word=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_path_RUBY19+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 case $RUBY19 in
8405 [\\/]* | ?:[\\/]*)
8406 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8407 ;;
8408 *)
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8411 do
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8419 fi
8420 done
8421 done
8422 IFS=$as_save_IFS
8423
8424 ;;
8425 esac
8426 fi
8427 RUBY19=$ac_cv_path_RUBY19
8428 if test -n "$RUBY19"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8430 $as_echo "$RUBY19" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8434 fi
8435
8436
8437 # Extract the first word of "valgrind", so it can be a program name with args.
8438 set dummy valgrind; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 case $VALGRIND in
8445 [\\/]* | ?:[\\/]*)
8446 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
8447 ;;
8448 *)
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 for as_dir in $PATH
8451 do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460 done
8461 done
8462 IFS=$as_save_IFS
8463
8464 ;;
8465 esac
8466 fi
8467 VALGRIND=$ac_cv_path_VALGRIND
8468 if test -n "$VALGRIND"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8470 $as_echo "$VALGRIND" >&6; }
8471 else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8474 fi
8475
8476
8477 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8478 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8479 fi
8480 fi
8481
8482 ################################################################################
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8484 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8485 # Check whether --enable-valgrind_pool was given.
8486 if test "${enable_valgrind_pool+set}" = set; then :
8487 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8488 else
8489 VALGRIND_POOL=no
8490 fi
8491
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8493 $as_echo "$VALGRIND_POOL" >&6; }
8494
8495 if test "$VALGRIND_POOL" = yes; then
8496 for ac_header in valgrind/memcheck.h
8497 do :
8498 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8499 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8500 cat >>confdefs.h <<_ACEOF
8501 #define HAVE_VALGRIND_MEMCHECK_H 1
8502 _ACEOF
8503
8504 else
8505 as_fn_error $? "bailing out" "$LINENO" 5
8506 fi
8507
8508 done
8509
8510
8511 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8512
8513 fi
8514
8515 ################################################################################
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8517 $as_echo_n "checking whether to use device-mapper... " >&6; }
8518 # Check whether --enable-devmapper was given.
8519 if test "${enable_devmapper+set}" = set; then :
8520 enableval=$enable_devmapper; DEVMAPPER=$enableval
8521 fi
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8524 $as_echo "$DEVMAPPER" >&6; }
8525
8526 if test x$DEVMAPPER = xyes; then
8527
8528 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8529
8530 fi
8531
8532 ################################################################################
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8534 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8535 # Check whether --enable-udev_sync was given.
8536 if test "${enable_udev_sync+set}" = set; then :
8537 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8538 else
8539 UDEV_SYNC=no
8540 fi
8541
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8543 $as_echo "$UDEV_SYNC" >&6; }
8544
8545 if test x$UDEV_SYNC = xyes; then
8546 if test x$PKGCONFIG_INIT != x1; then
8547 pkg_config_init
8548 fi
8549
8550 pkg_failed=no
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8552 $as_echo_n "checking for UDEV... " >&6; }
8553
8554 if test -n "$UDEV_CFLAGS"; then
8555 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8556 elif test -n "$PKG_CONFIG"; then
8557 if test -n "$PKG_CONFIG" && \
8558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8559 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8560 ac_status=$?
8561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562 test $ac_status = 0; }; then
8563 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8564 else
8565 pkg_failed=yes
8566 fi
8567 else
8568 pkg_failed=untried
8569 fi
8570 if test -n "$UDEV_LIBS"; then
8571 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8572 elif test -n "$PKG_CONFIG"; then
8573 if test -n "$PKG_CONFIG" && \
8574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8575 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8576 ac_status=$?
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; }; then
8579 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8580 else
8581 pkg_failed=yes
8582 fi
8583 else
8584 pkg_failed=untried
8585 fi
8586
8587
8588
8589 if test $pkg_failed = yes; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8592
8593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8594 _pkg_short_errors_supported=yes
8595 else
8596 _pkg_short_errors_supported=no
8597 fi
8598 if test $_pkg_short_errors_supported = yes; then
8599 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8600 else
8601 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8602 fi
8603 # Put the nasty error message in config.log where it belongs
8604 echo "$UDEV_PKG_ERRORS" >&5
8605
8606 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8607
8608 $UDEV_PKG_ERRORS
8609
8610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8611 installed software in a non-standard prefix.
8612
8613 Alternatively, you may set the environment variables UDEV_CFLAGS
8614 and UDEV_LIBS to avoid the need to call pkg-config.
8615 See the pkg-config man page for more details." "$LINENO" 5
8616
8617 elif test $pkg_failed = untried; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8622 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8623 is in your PATH or set the PKG_CONFIG environment variable to the full
8624 path to pkg-config.
8625
8626 Alternatively, you may set the environment variables UDEV_CFLAGS
8627 and UDEV_LIBS to avoid the need to call pkg-config.
8628 See the pkg-config man page for more details.
8629
8630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8631 See \`config.log' for more details" "$LINENO" 5; }
8632
8633 else
8634 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8635 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8637 $as_echo "yes" >&6; }
8638 UDEV_PC="libudev"
8639 fi
8640
8641 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8642
8643 fi
8644
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8646 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8647 # Check whether --enable-udev_rules was given.
8648 if test "${enable_udev_rules+set}" = set; then :
8649 enableval=$enable_udev_rules; UDEV_RULES=$enableval
8650 else
8651 UDEV_RULES=$UDEV_SYNC
8652 fi
8653
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8655 $as_echo "$UDEV_RULES" >&6; }
8656
8657 ################################################################################
8658 # Check whether --enable-compat was given.
8659 if test "${enable_compat+set}" = set; then :
8660 enableval=$enable_compat; DM_COMPAT=$enableval
8661 else
8662 DM_COMPAT=no
8663 fi
8664
8665
8666 if test x$DM_COMPAT = xyes; then
8667 as_fn_error $? "--enable-compat is not currently supported.
8668 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8669 ioctl protocol is supported.
8670 " "$LINENO" 5
8671 fi
8672
8673 ################################################################################
8674 # Check whether --enable-units-compat was given.
8675 if test "${enable_units_compat+set}" = set; then :
8676 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
8677 else
8678 UNITS_COMPAT=no
8679 fi
8680
8681
8682 if test x$UNITS_COMPAT = xyes; then
8683
8684 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8685
8686 fi
8687
8688 ################################################################################
8689 # Check whether --enable-ioctl was given.
8690 if test "${enable_ioctl+set}" = set; then :
8691 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8692 fi
8693
8694
8695 ################################################################################
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8697 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8698 # Check whether --enable-o_direct was given.
8699 if test "${enable_o_direct+set}" = set; then :
8700 enableval=$enable_o_direct; ODIRECT=$enableval
8701 fi
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8704 $as_echo "$ODIRECT" >&6; }
8705
8706 if test x$ODIRECT = xyes; then
8707
8708 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8709
8710 fi
8711
8712 ################################################################################
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8714 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8715 # Check whether --enable-applib was given.
8716 if test "${enable_applib+set}" = set; then :
8717 enableval=$enable_applib; APPLIB=$enableval
8718 else
8719 APPLIB=no
8720 fi
8721
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8723 $as_echo "$APPLIB" >&6; }
8724
8725 test x$APPLIB = xyes \
8726 && LVM2APP_LIB=-llvm2app \
8727 || LVM2APP_LIB=
8728
8729 ################################################################################
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8731 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8732 # Check whether --enable-cmdlib was given.
8733 if test "${enable_cmdlib+set}" = set; then :
8734 enableval=$enable_cmdlib; CMDLIB=$enableval
8735 else
8736 CMDLIB=no
8737 fi
8738
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8740 $as_echo "$CMDLIB" >&6; }
8741
8742 test x$CMDLIB = xyes \
8743 && LVM2CMD_LIB=-llvm2cmd \
8744 || LVM2CMD_LIB=
8745
8746 ################################################################################
8747 # Check whether --enable-pkgconfig was given.
8748 if test "${enable_pkgconfig+set}" = set; then :
8749 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
8750 else
8751 PKGCONFIG=no
8752 fi
8753
8754
8755 ################################################################################
8756 # Check whether --enable-write_install was given.
8757 if test "${enable_write_install+set}" = set; then :
8758 enableval=$enable_write_install; WRITE_INSTALL=$enableval
8759 else
8760 WRITE_INSTALL=no
8761 fi
8762
8763
8764 ################################################################################
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8766 $as_echo_n "checking whether to install fsadm... " >&6; }
8767 # Check whether --enable-fsadm was given.
8768 if test "${enable_fsadm+set}" = set; then :
8769 enableval=$enable_fsadm; FSADM=$enableval
8770 fi
8771
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8773 $as_echo "$FSADM" >&6; }
8774
8775 ################################################################################
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8777 $as_echo_n "checking whether to use dmeventd... " >&6; }
8778 # Check whether --enable-dmeventd was given.
8779 if test "${enable_dmeventd+set}" = set; then :
8780 enableval=$enable_dmeventd; DMEVENTD=$enableval
8781 fi
8782
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8784 $as_echo "$DMEVENTD" >&6; }
8785
8786 BUILD_DMEVENTD=$DMEVENTD
8787
8788 if test x$DMEVENTD = xyes; then
8789 if test x$MIRRORS != xinternal; then
8790 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8791 " "$LINENO" 5
8792 fi
8793 if test x$CMDLIB = xno; then
8794 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8795 " "$LINENO" 5
8796 fi
8797 fi
8798
8799 if test x$DMEVENTD = xyes; then
8800
8801 $as_echo "#define DMEVENTD 1" >>confdefs.h
8802
8803 fi
8804
8805 ################################################################################
8806
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8808 $as_echo_n "checking for getline in -lc... " >&6; }
8809 if test "${ac_cv_lib_c_getline+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812 ac_check_lib_save_LIBS=$LIBS
8813 LIBS="-lc $LIBS"
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816
8817 /* Override any GCC internal prototype to avoid an error.
8818 Use char because int might match the return type of a GCC
8819 builtin and then its argument prototype would still apply. */
8820 #ifdef __cplusplus
8821 extern "C"
8822 #endif
8823 char getline ();
8824 int
8825 main ()
8826 {
8827 return getline ();
8828 ;
8829 return 0;
8830 }
8831 _ACEOF
8832 if ac_fn_c_try_link "$LINENO"; then :
8833 ac_cv_lib_c_getline=yes
8834 else
8835 ac_cv_lib_c_getline=no
8836 fi
8837 rm -f core conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8840 fi
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8842 $as_echo "$ac_cv_lib_c_getline" >&6; }
8843 if test "x$ac_cv_lib_c_getline" = x""yes; then :
8844
8845 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
8846
8847 fi
8848
8849
8850 ################################################################################
8851
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8853 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8854 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 ac_check_lib_save_LIBS=$LIBS
8858 LIBS="-lc $LIBS"
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861
8862 /* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8865 #ifdef __cplusplus
8866 extern "C"
8867 #endif
8868 char canonicalize_file_name ();
8869 int
8870 main ()
8871 {
8872 return canonicalize_file_name ();
8873 ;
8874 return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_c_try_link "$LINENO"; then :
8878 ac_cv_lib_c_canonicalize_file_name=yes
8879 else
8880 ac_cv_lib_c_canonicalize_file_name=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext \
8883 conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8887 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8888 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8889
8890 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
8891
8892 fi
8893
8894
8895 ################################################################################
8896 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8897 then exec_prefix="";
8898 fi;
8899
8900 ################################################################################
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 ac_check_lib_save_LIBS=$LIBS
8907 LIBS="-ldl $LIBS"
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 char dlopen ();
8918 int
8919 main ()
8920 {
8921 return dlopen ();
8922 ;
8923 return 0;
8924 }
8925 _ACEOF
8926 if ac_fn_c_try_link "$LINENO"; then :
8927 ac_cv_lib_dl_dlopen=yes
8928 else
8929 ac_cv_lib_dl_dlopen=no
8930 fi
8931 rm -f core conftest.err conftest.$ac_objext \
8932 conftest$ac_exeext conftest.$ac_ext
8933 LIBS=$ac_check_lib_save_LIBS
8934 fi
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8937 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
8938
8939
8940 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
8941
8942 DL_LIBS="-ldl"
8943 HAVE_LIBDL=yes
8944 else
8945
8946 DL_LIBS=
8947 HAVE_LIBDL=no
8948 fi
8949
8950
8951 ################################################################################
8952 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8953 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
8954 -o "x$RAID" = xshared \
8955 \) -a "x$STATIC_LINK" = xyes ];
8956 then as_fn_error $? "Features cannot be 'shared' when building statically
8957 " "$LINENO" 5
8958 fi
8959
8960 ################################################################################
8961 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
8963 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
8964 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 ac_check_lib_save_LIBS=$LIBS
8968 LIBS="-lpthread $LIBS"
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971
8972 /* Override any GCC internal prototype to avoid an error.
8973 Use char because int might match the return type of a GCC
8974 builtin and then its argument prototype would still apply. */
8975 #ifdef __cplusplus
8976 extern "C"
8977 #endif
8978 char pthread_mutex_lock ();
8979 int
8980 main ()
8981 {
8982 return pthread_mutex_lock ();
8983 ;
8984 return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988 ac_cv_lib_pthread_pthread_mutex_lock=yes
8989 else
8990 ac_cv_lib_pthread_pthread_mutex_lock=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext \
8993 conftest$ac_exeext conftest.$ac_ext
8994 LIBS=$ac_check_lib_save_LIBS
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
8997 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
8998 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
8999 PTHREAD_LIBS="-lpthread"
9000 else
9001 hard_bailout
9002 fi
9003
9004 fi
9005
9006 ################################################################################
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9008 $as_echo_n "checking whether to enable selinux support... " >&6; }
9009 # Check whether --enable-selinux was given.
9010 if test "${enable_selinux+set}" = set; then :
9011 enableval=$enable_selinux; SELINUX=$enableval
9012 fi
9013
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9015 $as_echo "$SELINUX" >&6; }
9016
9017 ################################################################################
9018 if test x$SELINUX = xyes; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9020 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9021 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lsepol $LIBS"
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9028
9029 /* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
9032 #ifdef __cplusplus
9033 extern "C"
9034 #endif
9035 char sepol_check_context ();
9036 int
9037 main ()
9038 {
9039 return sepol_check_context ();
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_link "$LINENO"; then :
9045 ac_cv_lib_sepol_sepol_check_context=yes
9046 else
9047 ac_cv_lib_sepol_sepol_check_context=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
9051 LIBS=$ac_check_lib_save_LIBS
9052 fi
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9054 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9055 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9056
9057
9058 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9059
9060 SELINUX_LIBS="-lsepol"
9061 fi
9062
9063
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9065 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9066 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lselinux $LIBS"
9071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9073
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9077 #ifdef __cplusplus
9078 extern "C"
9079 #endif
9080 char is_selinux_enabled ();
9081 int
9082 main ()
9083 {
9084 return is_selinux_enabled ();
9085 ;
9086 return 0;
9087 }
9088 _ACEOF
9089 if ac_fn_c_try_link "$LINENO"; then :
9090 ac_cv_lib_selinux_is_selinux_enabled=yes
9091 else
9092 ac_cv_lib_selinux_is_selinux_enabled=no
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
9096 LIBS=$ac_check_lib_save_LIBS
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9099 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9100 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9101
9102 for ac_header in selinux/selinux.h
9103 do :
9104 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9105 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9106 cat >>confdefs.h <<_ACEOF
9107 #define HAVE_SELINUX_SELINUX_H 1
9108 _ACEOF
9109
9110 else
9111 hard_bailout
9112 fi
9113
9114 done
9115
9116 for ac_header in selinux/label.h
9117 do :
9118 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9119 if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9120 cat >>confdefs.h <<_ACEOF
9121 #define HAVE_SELINUX_LABEL_H 1
9122 _ACEOF
9123
9124 fi
9125
9126 done
9127
9128
9129 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9130
9131 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9132 SELINUX_PC="libselinux"
9133 HAVE_SELINUX=yes
9134 else
9135
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9137 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9138 SELINUX_LIBS=
9139 SELINUX_PC=
9140 HAVE_SELINUX=no
9141 fi
9142
9143 fi
9144
9145 ################################################################################
9146 if test x$REALTIME = xyes; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9148 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9149 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9151 else
9152 ac_check_lib_save_LIBS=$LIBS
9153 LIBS="-lrt $LIBS"
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 char clock_gettime ();
9164 int
9165 main ()
9166 {
9167 return clock_gettime ();
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9173 ac_cv_lib_rt_clock_gettime=yes
9174 else
9175 ac_cv_lib_rt_clock_gettime=no
9176 fi
9177 rm -f core conftest.err conftest.$ac_objext \
9178 conftest$ac_exeext conftest.$ac_ext
9179 LIBS=$ac_check_lib_save_LIBS
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9182 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9183 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9184 HAVE_REALTIME=yes
9185 else
9186 HAVE_REALTIME=no
9187 fi
9188
9189
9190 if test x$HAVE_REALTIME = xyes; then
9191
9192 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9193
9194 LIBS="-lrt $LIBS"
9195 else
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9197 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9198 fi
9199 fi
9200
9201 ################################################################################
9202 for ac_header in getopt.h
9203 do :
9204 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9205 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9206 cat >>confdefs.h <<_ACEOF
9207 #define HAVE_GETOPT_H 1
9208 _ACEOF
9209
9210 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9211
9212 fi
9213
9214 done
9215
9216
9217 ################################################################################
9218 if test x$READLINE != xno; then
9219 lvm_saved_libs=$LIBS
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9221 $as_echo_n "checking for library containing tgetent... " >&6; }
9222 if test "${ac_cv_search_tgetent+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9224 else
9225 ac_func_search_save_LIBS=$LIBS
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9228
9229 /* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9232 #ifdef __cplusplus
9233 extern "C"
9234 #endif
9235 char tgetent ();
9236 int
9237 main ()
9238 {
9239 return tgetent ();
9240 ;
9241 return 0;
9242 }
9243 _ACEOF
9244 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9245 if test -z "$ac_lib"; then
9246 ac_res="none required"
9247 else
9248 ac_res=-l$ac_lib
9249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9250 fi
9251 if ac_fn_c_try_link "$LINENO"; then :
9252 ac_cv_search_tgetent=$ac_res
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext \
9255 conftest$ac_exeext
9256 if test "${ac_cv_search_tgetent+set}" = set; then :
9257 break
9258 fi
9259 done
9260 if test "${ac_cv_search_tgetent+set}" = set; then :
9261
9262 else
9263 ac_cv_search_tgetent=no
9264 fi
9265 rm conftest.$ac_ext
9266 LIBS=$ac_func_search_save_LIBS
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9269 $as_echo "$ac_cv_search_tgetent" >&6; }
9270 ac_res=$ac_cv_search_tgetent
9271 if test "$ac_res" != no; then :
9272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9273 READLINE_LIBS=$ac_cv_search_tgetent
9274 else
9275
9276 if test "$READLINE" = yes; then
9277 as_fn_error $? "termcap could not be found which is required for the
9278 --enable-readline option (which is enabled by default). Either disable readline
9279 support with --disable-readline or download and install termcap from:
9280 ftp.gnu.org/gnu/termcap
9281 Note: if you are using precompiled packages you will also need the development
9282 package as well (which may be called termcap-devel or something similar).
9283 Note: (n)curses also seems to work as a substitute for termcap. This was
9284 not found either - but you could try installing that as well." "$LINENO" 5
9285 fi
9286 fi
9287
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9289 $as_echo_n "checking for readline in -lreadline... " >&6; }
9290 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9292 else
9293 ac_check_lib_save_LIBS=$LIBS
9294 LIBS="-lreadline $LIBS"
9295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9297
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9301 #ifdef __cplusplus
9302 extern "C"
9303 #endif
9304 char readline ();
9305 int
9306 main ()
9307 {
9308 return readline ();
9309 ;
9310 return 0;
9311 }
9312 _ACEOF
9313 if ac_fn_c_try_link "$LINENO"; then :
9314 ac_cv_lib_readline_readline=yes
9315 else
9316 ac_cv_lib_readline_readline=no
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
9320 LIBS=$ac_check_lib_save_LIBS
9321 fi
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9323 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9324 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9325
9326
9327 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9328
9329 LIBS=$lvm_saved_libs
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9331 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9332 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9334 else
9335 ac_check_lib_save_LIBS=$LIBS
9336 LIBS="-lreadline $LIBS"
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9339
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 char rl_line_buffer ();
9347 int
9348 main ()
9349 {
9350 return rl_line_buffer ();
9351 ;
9352 return 0;
9353 }
9354 _ACEOF
9355 if ac_fn_c_try_link "$LINENO"; then :
9356 ac_cv_lib_readline_rl_line_buffer=yes
9357 else
9358 ac_cv_lib_readline_rl_line_buffer=no
9359 fi
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 LIBS=$ac_check_lib_save_LIBS
9363 fi
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9365 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9366 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9367 READLINE_LIBS="-lreadline"
9368 else
9369
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9371 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9372 READLINE_LIBS="-lreadline $READLINE_LIBS"
9373
9374 fi
9375
9376 else
9377
9378 READLINE_LIBS=
9379 if test "$READLINE" = yes; then
9380 as_fn_error $? "GNU Readline could not be found which is required for the
9381 --enable-readline option (which is enabled by default). Either disable readline
9382 support with --disable-readline or download and install readline from:
9383 ftp.gnu.org/gnu/readline
9384 Note: if you are using precompiled packages you will also need the development
9385 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9386 fi
9387 fi
9388
9389 LIBS="$READLINE_LIBS $lvm_saved_libs"
9390 for ac_func in rl_completion_matches
9391 do :
9392 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9393 if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9394 cat >>confdefs.h <<_ACEOF
9395 #define HAVE_RL_COMPLETION_MATCHES 1
9396 _ACEOF
9397
9398 fi
9399 done
9400
9401 LIBS=$lvm_saved_libs
9402 fi
9403
9404 ################################################################################
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9406 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9407 # Check whether --enable-nls was given.
9408 if test "${enable_nls+set}" = set; then :
9409 enableval=$enable_nls; INTL=$enableval
9410 else
9411 INTL=no
9412 fi
9413
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9415 $as_echo "$INTL" >&6; }
9416
9417 if test x$INTL = xyes; then
9418 # FIXME - Move this - can be device-mapper too
9419 INTL_PACKAGE="lvm2"
9420 # Extract the first word of "msgfmt", so it can be a program name with args.
9421 set dummy msgfmt; ac_word=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9426 else
9427 case $MSGFMT in
9428 [\\/]* | ?:[\\/]*)
9429 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9430 ;;
9431 *)
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 ;;
9448 esac
9449 fi
9450 MSGFMT=$ac_cv_path_MSGFMT
9451 if test -n "$MSGFMT"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9453 $as_echo "$MSGFMT" >&6; }
9454 else
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9457 fi
9458
9459
9460 if [ "x$MSGFMT" == x ];
9461 then as_fn_error $? "msgfmt not found in path $PATH
9462 " "$LINENO" 5
9463 fi;
9464
9465
9466 # Check whether --with-localedir was given.
9467 if test "${with_localedir+set}" = set; then :
9468 withval=$with_localedir; LOCALEDIR=$withval
9469 else
9470 LOCALEDIR='${prefix}/share/locale'
9471 fi
9472
9473 fi
9474
9475 ################################################################################
9476
9477 # Check whether --with-confdir was given.
9478 if test "${with_confdir+set}" = set; then :
9479 withval=$with_confdir; CONFDIR=$withval
9480 else
9481 CONFDIR="/etc"
9482 fi
9483
9484
9485
9486 # Check whether --with-staticdir was given.
9487 if test "${with_staticdir+set}" = set; then :
9488 withval=$with_staticdir; STATICDIR=$withval
9489 else
9490 STATICDIR='${exec_prefix}/sbin'
9491 fi
9492
9493
9494
9495 # Check whether --with-usrlibdir was given.
9496 if test "${with_usrlibdir+set}" = set; then :
9497 withval=$with_usrlibdir; usrlibdir=$withval
9498 else
9499 usrlibdir='${prefix}/lib'
9500 fi
9501
9502
9503
9504 # Check whether --with-usrsbindir was given.
9505 if test "${with_usrsbindir+set}" = set; then :
9506 withval=$with_usrsbindir; usrsbindir=$withval
9507 else
9508 usrsbindir='${prefix}/sbin'
9509 fi
9510
9511
9512 ################################################################################
9513
9514 # Check whether --with-udev_prefix was given.
9515 if test "${with_udev_prefix+set}" = set; then :
9516 withval=$with_udev_prefix; udev_prefix=$withval
9517 else
9518 udev_prefix='${exec_prefix}'
9519 fi
9520
9521
9522
9523 # Check whether --with-udevdir was given.
9524 if test "${with_udevdir+set}" = set; then :
9525 withval=$with_udevdir; udevdir=$withval
9526 else
9527 udevdir='${udev_prefix}/lib/udev/rules.d'
9528 fi
9529
9530
9531 ################################################################################
9532 if test x$READLINE = xyes; then
9533 for ac_header in readline/readline.h readline/history.h
9534 do :
9535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9537 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9538 cat >>confdefs.h <<_ACEOF
9539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9540 _ACEOF
9541
9542 else
9543 as_fn_error $? "bailing out" "$LINENO" 5
9544 fi
9545
9546 done
9547
9548 fi
9549
9550 if test x$CLVMD != xnone; then
9551 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
9552 do :
9553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9556 cat >>confdefs.h <<_ACEOF
9557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9558 _ACEOF
9559
9560 else
9561 as_fn_error $? "bailing out" "$LINENO" 5
9562 fi
9563
9564 done
9565
9566 for ac_func in dup2 getmntent memmove select socket
9567 do :
9568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9569 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9570 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9571 cat >>confdefs.h <<_ACEOF
9572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9573 _ACEOF
9574
9575 else
9576 as_fn_error $? "bailing out" "$LINENO" 5
9577 fi
9578 done
9579
9580 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9581 # -lseq on Dynix/PTX, -lgen on Unixware.
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9583 $as_echo_n "checking for library containing getmntent... " >&6; }
9584 if test "${ac_cv_search_getmntent+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 ac_func_search_save_LIBS=$LIBS
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char getmntent ();
9598 int
9599 main ()
9600 {
9601 return getmntent ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 for ac_lib in '' sun seq gen; do
9607 if test -z "$ac_lib"; then
9608 ac_res="none required"
9609 else
9610 ac_res=-l$ac_lib
9611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9612 fi
9613 if ac_fn_c_try_link "$LINENO"; then :
9614 ac_cv_search_getmntent=$ac_res
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext
9618 if test "${ac_cv_search_getmntent+set}" = set; then :
9619 break
9620 fi
9621 done
9622 if test "${ac_cv_search_getmntent+set}" = set; then :
9623
9624 else
9625 ac_cv_search_getmntent=no
9626 fi
9627 rm conftest.$ac_ext
9628 LIBS=$ac_func_search_save_LIBS
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9631 $as_echo "$ac_cv_search_getmntent" >&6; }
9632 ac_res=$ac_cv_search_getmntent
9633 if test "$ac_res" != no; then :
9634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9635 ac_cv_func_getmntent=yes
9636
9637 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9638
9639 else
9640 ac_cv_func_getmntent=no
9641 fi
9642
9643
9644 for ac_header in sys/select.h sys/socket.h
9645 do :
9646 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9647 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9648 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9649 cat >>confdefs.h <<_ACEOF
9650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9651 _ACEOF
9652
9653 fi
9654
9655 done
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9658 $as_echo_n "checking types of arguments for select... " >&6; }
9659 if test "${ac_cv_func_select_args+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9661 else
9662 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9663 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9664 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 $ac_includes_default
9668 #ifdef HAVE_SYS_SELECT_H
9669 # include <sys/select.h>
9670 #endif
9671 #ifdef HAVE_SYS_SOCKET_H
9672 # include <sys/socket.h>
9673 #endif
9674
9675 int
9676 main ()
9677 {
9678 extern int select ($ac_arg1,
9679 $ac_arg234, $ac_arg234, $ac_arg234,
9680 $ac_arg5);
9681 ;
9682 return 0;
9683 }
9684 _ACEOF
9685 if ac_fn_c_try_compile "$LINENO"; then :
9686 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9689 done
9690 done
9691 done
9692 # Provide a safe default value.
9693 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9694
9695 fi
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9697 $as_echo "$ac_cv_func_select_args" >&6; }
9698 ac_save_IFS=$IFS; IFS=','
9699 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9700 IFS=$ac_save_IFS
9701 shift
9702
9703 cat >>confdefs.h <<_ACEOF
9704 #define SELECT_TYPE_ARG1 $1
9705 _ACEOF
9706
9707
9708 cat >>confdefs.h <<_ACEOF
9709 #define SELECT_TYPE_ARG234 ($2)
9710 _ACEOF
9711
9712
9713 cat >>confdefs.h <<_ACEOF
9714 #define SELECT_TYPE_ARG5 ($3)
9715 _ACEOF
9716
9717 rm -f conftest*
9718
9719 fi
9720
9721 if test x$CLUSTER != xnone; then
9722 for ac_header in sys/socket.h sys/un.h
9723 do :
9724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9725 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9726 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9727 cat >>confdefs.h <<_ACEOF
9728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9729 _ACEOF
9730
9731 else
9732 as_fn_error $? "bailing out" "$LINENO" 5
9733 fi
9734
9735 done
9736
9737 for ac_func in socket
9738 do :
9739 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9740 if test "x$ac_cv_func_socket" = x""yes; then :
9741 cat >>confdefs.h <<_ACEOF
9742 #define HAVE_SOCKET 1
9743 _ACEOF
9744
9745 else
9746 as_fn_error $? "bailing out" "$LINENO" 5
9747 fi
9748 done
9749
9750 fi
9751
9752 if test x$DMEVENTD = xyes; then
9753 for ac_header in arpa/inet.h
9754 do :
9755 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9756 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
9757 cat >>confdefs.h <<_ACEOF
9758 #define HAVE_ARPA_INET_H 1
9759 _ACEOF
9760
9761 else
9762 as_fn_error $? "bailing out" "$LINENO" 5
9763 fi
9764
9765 done
9766
9767 fi
9768
9769 if test x$HAVE_LIBDL = xyes; then
9770 for ac_header in dlfcn.h
9771 do :
9772 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9773 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9774 cat >>confdefs.h <<_ACEOF
9775 #define HAVE_DLFCN_H 1
9776 _ACEOF
9777
9778 else
9779 as_fn_error $? "bailing out" "$LINENO" 5
9780 fi
9781
9782 done
9783
9784 fi
9785
9786 if test x$INTL = xyes; then
9787 for ac_header in libintl.h
9788 do :
9789 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9790 if test "x$ac_cv_header_libintl_h" = x""yes; then :
9791 cat >>confdefs.h <<_ACEOF
9792 #define HAVE_LIBINTL_H 1
9793 _ACEOF
9794
9795 else
9796 as_fn_error $? "bailing out" "$LINENO" 5
9797 fi
9798
9799 done
9800
9801 fi
9802
9803 if test x$UDEV_SYNC = xyes; then
9804 for ac_header in sys/ipc.h sys/sem.h
9805 do :
9806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9807 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9808 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9809 cat >>confdefs.h <<_ACEOF
9810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9811 _ACEOF
9812
9813 else
9814 as_fn_error $? "bailing out" "$LINENO" 5
9815 fi
9816
9817 done
9818
9819 fi
9820
9821 ################################################################################
9822 # Extract the first word of "modprobe", so it can be a program name with args.
9823 set dummy modprobe; ac_word=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9828 else
9829 case $MODPROBE_CMD in
9830 [\\/]* | ?:[\\/]*)
9831 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9832 ;;
9833 *)
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835 for as_dir in $PATH
9836 do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9843 break 2
9844 fi
9845 done
9846 done
9847 IFS=$as_save_IFS
9848
9849 ;;
9850 esac
9851 fi
9852 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
9853 if test -n "$MODPROBE_CMD"; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
9855 $as_echo "$MODPROBE_CMD" >&6; }
9856 else
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9859 fi
9860
9861
9862
9863 if test x$MODPROBE_CMD != x; then
9864
9865 cat >>confdefs.h <<_ACEOF
9866 #define MODPROBE_CMD "$MODPROBE_CMD"
9867 _ACEOF
9868
9869 fi
9870
9871
9872 lvm_exec_prefix=$exec_prefix
9873 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9874 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
9875
9876 cat >>confdefs.h <<_ACEOF
9877 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
9878 _ACEOF
9879
9880
9881 if test "$CLVMD" != none; then
9882 clvmd_prefix=$ac_default_prefix
9883 test "$prefix" != NONE && clvmd_prefix=$prefix
9884
9885 cat >>confdefs.h <<_ACEOF
9886 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
9887 _ACEOF
9888
9889 fi
9890
9891 ################################################################################
9892 if test "$BUILD_DMEVENTD" = yes; then
9893
9894 # Check whether --with-dmeventd-pidfile was given.
9895 if test "${with_dmeventd_pidfile+set}" = set; then :
9896 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
9897 else
9898 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
9899 fi
9900
9901
9902 cat >>confdefs.h <<_ACEOF
9903 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9904 _ACEOF
9905
9906 fi
9907
9908 if test "$BUILD_DMEVENTD" = yes; then
9909
9910 # Check whether --with-dmeventd-path was given.
9911 if test "${with_dmeventd_path+set}" = set; then :
9912 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
9913 else
9914 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
9915 fi
9916
9917
9918 cat >>confdefs.h <<_ACEOF
9919 #define DMEVENTD_PATH "$DMEVENTD_PATH"
9920 _ACEOF
9921
9922 fi
9923
9924
9925
9926 # Check whether --with-default-run-dir was given.
9927 if test "${with_default_run_dir+set}" = set; then :
9928 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9929 else
9930 DEFAULT_RUN_DIR="/var/run/lvm"
9931 fi
9932
9933 cat >>confdefs.h <<_ACEOF
9934 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9935 _ACEOF
9936
9937
9938 ################################################################################
9939
9940 # Check whether --with-default-system-dir was given.
9941 if test "${with_default_system_dir+set}" = set; then :
9942 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
9943 else
9944 DEFAULT_SYS_DIR="/etc/lvm"
9945 fi
9946
9947
9948 cat >>confdefs.h <<_ACEOF
9949 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9950 _ACEOF
9951
9952
9953
9954 # Check whether --with-default-archive-subdir was given.
9955 if test "${with_default_archive_subdir+set}" = set; then :
9956 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
9957 else
9958 DEFAULT_ARCHIVE_SUBDIR=archive
9959 fi
9960
9961
9962 cat >>confdefs.h <<_ACEOF
9963 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
9964 _ACEOF
9965
9966
9967
9968 # Check whether --with-default-backup-subdir was given.
9969 if test "${with_default_backup_subdir+set}" = set; then :
9970 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
9971 else
9972 DEFAULT_BACKUP_SUBDIR=backup
9973 fi
9974
9975
9976 cat >>confdefs.h <<_ACEOF
9977 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
9978 _ACEOF
9979
9980
9981
9982 # Check whether --with-default-cache-subdir was given.
9983 if test "${with_default_cache_subdir+set}" = set; then :
9984 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
9985 else
9986 DEFAULT_CACHE_SUBDIR=cache
9987 fi
9988
9989
9990 cat >>confdefs.h <<_ACEOF
9991 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
9992 _ACEOF
9993
9994
9995
9996 # Check whether --with-default-locking-dir was given.
9997 if test "${with_default_locking_dir+set}" = set; then :
9998 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
9999 else
10000 DEFAULT_LOCK_DIR="/var/lock/lvm"
10001 fi
10002
10003
10004 cat >>confdefs.h <<_ACEOF
10005 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10006 _ACEOF
10007
10008
10009 ################################################################################
10010
10011 # Check whether --with-default-data-alignment was given.
10012 if test "${with_default_data_alignment+set}" = set; then :
10013 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10014 else
10015 DEFAULT_DATA_ALIGNMENT=1
10016 fi
10017
10018
10019 cat >>confdefs.h <<_ACEOF
10020 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10021 _ACEOF
10022
10023
10024 ################################################################################
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10026 $as_echo_n "checking for kernel interface choice... " >&6; }
10027
10028 # Check whether --with-interface was given.
10029 if test "${with_interface+set}" = set; then :
10030 withval=$with_interface; interface=$withval
10031 else
10032 interface=ioctl
10033 fi
10034
10035 if [ "x$interface" != xioctl ];
10036 then
10037 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10040 $as_echo "$interface" >&6; }
10041
10042 ################################################################################
10043 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10044
10045 cat >>confdefs.h <<_ACEOF
10046 #define DM_LIB_VERSION $DM_LIB_VERSION
10047 _ACEOF
10048
10049
10050 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10051
10052 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10053
10054 VER=`cat "$srcdir"/VERSION`
10055 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10056 VER=`echo "$VER" | $AWK '{print $1}'`
10057 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10058 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10059 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10060 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10061 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10062 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10063
10064 ################################################################################
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167 ################################################################################
10168 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10169
10170 cat >confcache <<\_ACEOF
10171 # This file is a shell script that caches the results of configure
10172 # tests run on this system so they can be shared between configure
10173 # scripts and configure runs, see configure's option --config-cache.
10174 # It is not useful on other systems. If it contains results you don't
10175 # want to keep, you may remove or edit it.
10176 #
10177 # config.status only pays attention to the cache file if you give it
10178 # the --recheck option to rerun configure.
10179 #
10180 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10181 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10182 # following values.
10183
10184 _ACEOF
10185
10186 # The following way of writing the cache mishandles newlines in values,
10187 # but we know of no workaround that is simple, portable, and efficient.
10188 # So, we kill variables containing newlines.
10189 # Ultrix sh set writes to stderr and can't be redirected directly,
10190 # and sets the high bit in the cache file unless we assign to the vars.
10191 (
10192 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10193 eval ac_val=\$$ac_var
10194 case $ac_val in #(
10195 *${as_nl}*)
10196 case $ac_var in #(
10197 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10198 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10199 esac
10200 case $ac_var in #(
10201 _ | IFS | as_nl) ;; #(
10202 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10203 *) { eval $ac_var=; unset $ac_var;} ;;
10204 esac ;;
10205 esac
10206 done
10207
10208 (set) 2>&1 |
10209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10210 *${as_nl}ac_space=\ *)
10211 # `set' does not quote correctly, so add quotes: double-quote
10212 # substitution turns \\\\ into \\, and sed turns \\ into \.
10213 sed -n \
10214 "s/'/'\\\\''/g;
10215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10216 ;; #(
10217 *)
10218 # `set' quotes correctly as required by POSIX, so do not add quotes.
10219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10220 ;;
10221 esac |
10222 sort
10223 ) |
10224 sed '
10225 /^ac_cv_env_/b end
10226 t clear
10227 :clear
10228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10229 t end
10230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10231 :end' >>confcache
10232 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10233 if test -w "$cache_file"; then
10234 test "x$cache_file" != "x/dev/null" &&
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10236 $as_echo "$as_me: updating cache $cache_file" >&6;}
10237 cat confcache >$cache_file
10238 else
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10240 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10241 fi
10242 fi
10243 rm -f confcache
10244
10245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10246 # Let make expand exec_prefix.
10247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10248
10249 DEFS=-DHAVE_CONFIG_H
10250
10251 ac_libobjs=
10252 ac_ltlibobjs=
10253 U=
10254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10255 # 1. Remove the extension, and $U if already installed.
10256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10257 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10259 # will be set to the directory where LIBOBJS objects are built.
10260 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10261 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10262 done
10263 LIBOBJS=$ac_libobjs
10264
10265 LTLIBOBJS=$ac_ltlibobjs
10266
10267
10268
10269 : ${CONFIG_STATUS=./config.status}
10270 ac_write_fail=0
10271 ac_clean_files_save=$ac_clean_files
10272 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10275 as_write_fail=0
10276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10277 #! $SHELL
10278 # Generated by $as_me.
10279 # Run this file to recreate the current configuration.
10280 # Compiler output produced by configure, useful for debugging
10281 # configure, is in config.log if it exists.
10282
10283 debug=false
10284 ac_cs_recheck=false
10285 ac_cs_silent=false
10286
10287 SHELL=\${CONFIG_SHELL-$SHELL}
10288 export SHELL
10289 _ASEOF
10290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10291 ## -------------------- ##
10292 ## M4sh Initialization. ##
10293 ## -------------------- ##
10294
10295 # Be more Bourne compatible
10296 DUALCASE=1; export DUALCASE # for MKS sh
10297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10298 emulate sh
10299 NULLCMD=:
10300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10301 # is contrary to our usage. Disable this feature.
10302 alias -g '${1+"$@"}'='"$@"'
10303 setopt NO_GLOB_SUBST
10304 else
10305 case `(set -o) 2>/dev/null` in #(
10306 *posix*) :
10307 set -o posix ;; #(
10308 *) :
10309 ;;
10310 esac
10311 fi
10312
10313
10314 as_nl='
10315 '
10316 export as_nl
10317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10318 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10321 # Prefer a ksh shell builtin over an external printf program on Solaris,
10322 # but without wasting forks for bash or zsh.
10323 if test -z "$BASH_VERSION$ZSH_VERSION" \
10324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10325 as_echo='print -r --'
10326 as_echo_n='print -rn --'
10327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10328 as_echo='printf %s\n'
10329 as_echo_n='printf %s'
10330 else
10331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10332 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10333 as_echo_n='/usr/ucb/echo -n'
10334 else
10335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10336 as_echo_n_body='eval
10337 arg=$1;
10338 case $arg in #(
10339 *"$as_nl"*)
10340 expr "X$arg" : "X\\(.*\\)$as_nl";
10341 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10342 esac;
10343 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10344 '
10345 export as_echo_n_body
10346 as_echo_n='sh -c $as_echo_n_body as_echo'
10347 fi
10348 export as_echo_body
10349 as_echo='sh -c $as_echo_body as_echo'
10350 fi
10351
10352 # The user is always right.
10353 if test "${PATH_SEPARATOR+set}" != set; then
10354 PATH_SEPARATOR=:
10355 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10356 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10357 PATH_SEPARATOR=';'
10358 }
10359 fi
10360
10361
10362 # IFS
10363 # We need space, tab and new line, in precisely that order. Quoting is
10364 # there to prevent editors from complaining about space-tab.
10365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10366 # splitting by setting IFS to empty value.)
10367 IFS=" "" $as_nl"
10368
10369 # Find who we are. Look in the path if we contain no directory separator.
10370 case $0 in #((
10371 *[\\/]* ) as_myself=$0 ;;
10372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10374 do
10375 IFS=$as_save_IFS
10376 test -z "$as_dir" && as_dir=.
10377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10378 done
10379 IFS=$as_save_IFS
10380
10381 ;;
10382 esac
10383 # We did not find ourselves, most probably we were run as `sh COMMAND'
10384 # in which case we are not to be found in the path.
10385 if test "x$as_myself" = x; then
10386 as_myself=$0
10387 fi
10388 if test ! -f "$as_myself"; then
10389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10390 exit 1
10391 fi
10392
10393 # Unset variables that we do not need and which cause bugs (e.g. in
10394 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10395 # suppresses any "Segmentation fault" message there. '((' could
10396 # trigger a bug in pdksh 5.2.14.
10397 for as_var in BASH_ENV ENV MAIL MAILPATH
10398 do eval test x\${$as_var+set} = xset \
10399 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10400 done
10401 PS1='$ '
10402 PS2='> '
10403 PS4='+ '
10404
10405 # NLS nuisances.
10406 LC_ALL=C
10407 export LC_ALL
10408 LANGUAGE=C
10409 export LANGUAGE
10410
10411 # CDPATH.
10412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10413
10414
10415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10416 # ----------------------------------------
10417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10419 # script with STATUS, using 1 if that was 0.
10420 as_fn_error ()
10421 {
10422 as_status=$1; test $as_status -eq 0 && as_status=1
10423 if test "$4"; then
10424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10426 fi
10427 $as_echo "$as_me: error: $2" >&2
10428 as_fn_exit $as_status
10429 } # as_fn_error
10430
10431
10432 # as_fn_set_status STATUS
10433 # -----------------------
10434 # Set $? to STATUS, without forking.
10435 as_fn_set_status ()
10436 {
10437 return $1
10438 } # as_fn_set_status
10439
10440 # as_fn_exit STATUS
10441 # -----------------
10442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10443 as_fn_exit ()
10444 {
10445 set +e
10446 as_fn_set_status $1
10447 exit $1
10448 } # as_fn_exit
10449
10450 # as_fn_unset VAR
10451 # ---------------
10452 # Portably unset VAR.
10453 as_fn_unset ()
10454 {
10455 { eval $1=; unset $1;}
10456 }
10457 as_unset=as_fn_unset
10458 # as_fn_append VAR VALUE
10459 # ----------------------
10460 # Append the text in VALUE to the end of the definition contained in VAR. Take
10461 # advantage of any shell optimizations that allow amortized linear growth over
10462 # repeated appends, instead of the typical quadratic growth present in naive
10463 # implementations.
10464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10465 eval 'as_fn_append ()
10466 {
10467 eval $1+=\$2
10468 }'
10469 else
10470 as_fn_append ()
10471 {
10472 eval $1=\$$1\$2
10473 }
10474 fi # as_fn_append
10475
10476 # as_fn_arith ARG...
10477 # ------------------
10478 # Perform arithmetic evaluation on the ARGs, and store the result in the
10479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10480 # must be portable across $(()) and expr.
10481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10482 eval 'as_fn_arith ()
10483 {
10484 as_val=$(( $* ))
10485 }'
10486 else
10487 as_fn_arith ()
10488 {
10489 as_val=`expr "$@" || test $? -eq 1`
10490 }
10491 fi # as_fn_arith
10492
10493
10494 if expr a : '\(a\)' >/dev/null 2>&1 &&
10495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10496 as_expr=expr
10497 else
10498 as_expr=false
10499 fi
10500
10501 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10502 as_basename=basename
10503 else
10504 as_basename=false
10505 fi
10506
10507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10508 as_dirname=dirname
10509 else
10510 as_dirname=false
10511 fi
10512
10513 as_me=`$as_basename -- "$0" ||
10514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10515 X"$0" : 'X\(//\)$' \| \
10516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10517 $as_echo X/"$0" |
10518 sed '/^.*\/\([^/][^/]*\)\/*$/{
10519 s//\1/
10520 q
10521 }
10522 /^X\/\(\/\/\)$/{
10523 s//\1/
10524 q
10525 }
10526 /^X\/\(\/\).*/{
10527 s//\1/
10528 q
10529 }
10530 s/.*/./; q'`
10531
10532 # Avoid depending upon Character Ranges.
10533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10536 as_cr_digits='0123456789'
10537 as_cr_alnum=$as_cr_Letters$as_cr_digits
10538
10539 ECHO_C= ECHO_N= ECHO_T=
10540 case `echo -n x` in #(((((
10541 -n*)
10542 case `echo 'xy\c'` in
10543 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10544 xy) ECHO_C='\c';;
10545 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10546 ECHO_T=' ';;
10547 esac;;
10548 *)
10549 ECHO_N='-n';;
10550 esac
10551
10552 rm -f conf$$ conf$$.exe conf$$.file
10553 if test -d conf$$.dir; then
10554 rm -f conf$$.dir/conf$$.file
10555 else
10556 rm -f conf$$.dir
10557 mkdir conf$$.dir 2>/dev/null
10558 fi
10559 if (echo >conf$$.file) 2>/dev/null; then
10560 if ln -s conf$$.file conf$$ 2>/dev/null; then
10561 as_ln_s='ln -s'
10562 # ... but there are two gotchas:
10563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10565 # In both cases, we have to default to `cp -p'.
10566 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10567 as_ln_s='cp -p'
10568 elif ln conf$$.file conf$$ 2>/dev/null; then
10569 as_ln_s=ln
10570 else
10571 as_ln_s='cp -p'
10572 fi
10573 else
10574 as_ln_s='cp -p'
10575 fi
10576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10577 rmdir conf$$.dir 2>/dev/null
10578
10579
10580 # as_fn_mkdir_p
10581 # -------------
10582 # Create "$as_dir" as a directory, including parents if necessary.
10583 as_fn_mkdir_p ()
10584 {
10585
10586 case $as_dir in #(
10587 -*) as_dir=./$as_dir;;
10588 esac
10589 test -d "$as_dir" || eval $as_mkdir_p || {
10590 as_dirs=
10591 while :; do
10592 case $as_dir in #(
10593 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10594 *) as_qdir=$as_dir;;
10595 esac
10596 as_dirs="'$as_qdir' $as_dirs"
10597 as_dir=`$as_dirname -- "$as_dir" ||
10598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10599 X"$as_dir" : 'X\(//\)[^/]' \| \
10600 X"$as_dir" : 'X\(//\)$' \| \
10601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10602 $as_echo X"$as_dir" |
10603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10604 s//\1/
10605 q
10606 }
10607 /^X\(\/\/\)[^/].*/{
10608 s//\1/
10609 q
10610 }
10611 /^X\(\/\/\)$/{
10612 s//\1/
10613 q
10614 }
10615 /^X\(\/\).*/{
10616 s//\1/
10617 q
10618 }
10619 s/.*/./; q'`
10620 test -d "$as_dir" && break
10621 done
10622 test -z "$as_dirs" || eval "mkdir $as_dirs"
10623 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10624
10625
10626 } # as_fn_mkdir_p
10627 if mkdir -p . 2>/dev/null; then
10628 as_mkdir_p='mkdir -p "$as_dir"'
10629 else
10630 test -d ./-p && rmdir ./-p
10631 as_mkdir_p=false
10632 fi
10633
10634 if test -x / >/dev/null 2>&1; then
10635 as_test_x='test -x'
10636 else
10637 if ls -dL / >/dev/null 2>&1; then
10638 as_ls_L_option=L
10639 else
10640 as_ls_L_option=
10641 fi
10642 as_test_x='
10643 eval sh -c '\''
10644 if test -d "$1"; then
10645 test -d "$1/.";
10646 else
10647 case $1 in #(
10648 -*)set "./$1";;
10649 esac;
10650 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10651 ???[sx]*):;;*)false;;esac;fi
10652 '\'' sh
10653 '
10654 fi
10655 as_executable_p=$as_test_x
10656
10657 # Sed expression to map a string onto a valid CPP name.
10658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10659
10660 # Sed expression to map a string onto a valid variable name.
10661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10662
10663
10664 exec 6>&1
10665 ## ----------------------------------- ##
10666 ## Main body of $CONFIG_STATUS script. ##
10667 ## ----------------------------------- ##
10668 _ASEOF
10669 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10670
10671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10672 # Save the log message, to keep $0 and so on meaningful, and to
10673 # report actual input values of CONFIG_FILES etc. instead of their
10674 # values after options handling.
10675 ac_log="
10676 This file was extended by $as_me, which was
10677 generated by GNU Autoconf 2.66. Invocation command line was
10678
10679 CONFIG_FILES = $CONFIG_FILES
10680 CONFIG_HEADERS = $CONFIG_HEADERS
10681 CONFIG_LINKS = $CONFIG_LINKS
10682 CONFIG_COMMANDS = $CONFIG_COMMANDS
10683 $ $0 $@
10684
10685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10686 "
10687
10688 _ACEOF
10689
10690 case $ac_config_files in *"
10691 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10692 esac
10693
10694 case $ac_config_headers in *"
10695 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10696 esac
10697
10698
10699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10700 # Files that config.status was made for.
10701 config_files="$ac_config_files"
10702 config_headers="$ac_config_headers"
10703
10704 _ACEOF
10705
10706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10707 ac_cs_usage="\
10708 \`$as_me' instantiates files and other configuration actions
10709 from templates according to the current configuration. Unless the files
10710 and actions are specified as TAGs, all are instantiated by default.
10711
10712 Usage: $0 [OPTION]... [TAG]...
10713
10714 -h, --help print this help, then exit
10715 -V, --version print version number and configuration settings, then exit
10716 --config print configuration, then exit
10717 -q, --quiet, --silent
10718 do not print progress messages
10719 -d, --debug don't remove temporary files
10720 --recheck update $as_me by reconfiguring in the same conditions
10721 --file=FILE[:TEMPLATE]
10722 instantiate the configuration file FILE
10723 --header=FILE[:TEMPLATE]
10724 instantiate the configuration header FILE
10725
10726 Configuration files:
10727 $config_files
10728
10729 Configuration headers:
10730 $config_headers
10731
10732 Report bugs to the package provider."
10733
10734 _ACEOF
10735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10736 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10737 ac_cs_version="\\
10738 config.status
10739 configured by $0, generated by GNU Autoconf 2.66,
10740 with options \\"\$ac_cs_config\\"
10741
10742 Copyright (C) 2010 Free Software Foundation, Inc.
10743 This config.status script is free software; the Free Software Foundation
10744 gives unlimited permission to copy, distribute and modify it."
10745
10746 ac_pwd='$ac_pwd'
10747 srcdir='$srcdir'
10748 INSTALL='$INSTALL'
10749 MKDIR_P='$MKDIR_P'
10750 AWK='$AWK'
10751 test -n "\$AWK" || AWK=awk
10752 _ACEOF
10753
10754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10755 # The default lists apply if the user does not specify any file.
10756 ac_need_defaults=:
10757 while test $# != 0
10758 do
10759 case $1 in
10760 --*=*)
10761 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10762 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10763 ac_shift=:
10764 ;;
10765 *)
10766 ac_option=$1
10767 ac_optarg=$2
10768 ac_shift=shift
10769 ;;
10770 esac
10771
10772 case $ac_option in
10773 # Handling of the options.
10774 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10775 ac_cs_recheck=: ;;
10776 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10777 $as_echo "$ac_cs_version"; exit ;;
10778 --config | --confi | --conf | --con | --co | --c )
10779 $as_echo "$ac_cs_config"; exit ;;
10780 --debug | --debu | --deb | --de | --d | -d )
10781 debug=: ;;
10782 --file | --fil | --fi | --f )
10783 $ac_shift
10784 case $ac_optarg in
10785 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10786 esac
10787 as_fn_append CONFIG_FILES " '$ac_optarg'"
10788 ac_need_defaults=false;;
10789 --header | --heade | --head | --hea )
10790 $ac_shift
10791 case $ac_optarg in
10792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10793 esac
10794 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10795 ac_need_defaults=false;;
10796 --he | --h)
10797 # Conflict between --help and --header
10798 as_fn_error $? "ambiguous option: \`$1'
10799 Try \`$0 --help' for more information.";;
10800 --help | --hel | -h )
10801 $as_echo "$ac_cs_usage"; exit ;;
10802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10804 ac_cs_silent=: ;;
10805
10806 # This is an error.
10807 -*) as_fn_error $? "unrecognized option: \`$1'
10808 Try \`$0 --help' for more information." ;;
10809
10810 *) as_fn_append ac_config_targets " $1"
10811 ac_need_defaults=false ;;
10812
10813 esac
10814 shift
10815 done
10816
10817 ac_configure_extra_args=
10818
10819 if $ac_cs_silent; then
10820 exec 6>/dev/null
10821 ac_configure_extra_args="$ac_configure_extra_args --silent"
10822 fi
10823
10824 _ACEOF
10825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10826 if \$ac_cs_recheck; then
10827 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10828 shift
10829 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10830 CONFIG_SHELL='$SHELL'
10831 export CONFIG_SHELL
10832 exec "\$@"
10833 fi
10834
10835 _ACEOF
10836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10837 exec 5>>config.log
10838 {
10839 echo
10840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10841 ## Running $as_me. ##
10842 _ASBOX
10843 $as_echo "$ac_log"
10844 } >&5
10845
10846 _ACEOF
10847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10848 _ACEOF
10849
10850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10851
10852 # Handling of arguments.
10853 for ac_config_target in $ac_config_targets
10854 do
10855 case $ac_config_target in
10856 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10857 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10858 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10859 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10860 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
10861 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
10862 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10863 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
10864 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
10865 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
10866 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10867 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
10868 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10869 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
10870 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
10871 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10872 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
10873 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10874 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10875 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10876 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
10877 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
10878 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
10879 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
10880 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10881 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
10882 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
10883 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
10884 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10885 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
10886 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
10887 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
10888 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
10889 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10890 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
10891 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10892 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
10893 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
10894 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10895 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
10896 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10897 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
10898 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
10899
10900 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10901 esac
10902 done
10903
10904
10905 # If the user did not use the arguments to specify the items to instantiate,
10906 # then the envvar interface is used. Set only those that are not.
10907 # We use the long form for the default assignment because of an extremely
10908 # bizarre bug on SunOS 4.1.3.
10909 if $ac_need_defaults; then
10910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10912 fi
10913
10914 # Have a temporary directory for convenience. Make it in the build tree
10915 # simply because there is no reason against having it here, and in addition,
10916 # creating and moving files from /tmp can sometimes cause problems.
10917 # Hook for its removal unless debugging.
10918 # Note that there is a small window in which the directory will not be cleaned:
10919 # after its creation but before its name has been assigned to `$tmp'.
10920 $debug ||
10921 {
10922 tmp=
10923 trap 'exit_status=$?
10924 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10925 ' 0
10926 trap 'as_fn_exit 1' 1 2 13 15
10927 }
10928 # Create a (secure) tmp directory for tmp files.
10929
10930 {
10931 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10932 test -n "$tmp" && test -d "$tmp"
10933 } ||
10934 {
10935 tmp=./conf$$-$RANDOM
10936 (umask 077 && mkdir "$tmp")
10937 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10938
10939 # Set up the scripts for CONFIG_FILES section.
10940 # No need to generate them if there are no CONFIG_FILES.
10941 # This happens for instance with `./config.status config.h'.
10942 if test -n "$CONFIG_FILES"; then
10943
10944
10945 ac_cr=`echo X | tr X '\015'`
10946 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10947 # But we know of no other shell where ac_cr would be empty at this
10948 # point, so we can use a bashism as a fallback.
10949 if test "x$ac_cr" = x; then
10950 eval ac_cr=\$\'\\r\'
10951 fi
10952 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10954 ac_cs_awk_cr='\\r'
10955 else
10956 ac_cs_awk_cr=$ac_cr
10957 fi
10958
10959 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10960 _ACEOF
10961
10962
10963 {
10964 echo "cat >conf$$subs.awk <<_ACEOF" &&
10965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10966 echo "_ACEOF"
10967 } >conf$$subs.sh ||
10968 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10969 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10970 ac_delim='%!_!# '
10971 for ac_last_try in false false false false false :; do
10972 . ./conf$$subs.sh ||
10973 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10974
10975 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10976 if test $ac_delim_n = $ac_delim_num; then
10977 break
10978 elif $ac_last_try; then
10979 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10980 else
10981 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10982 fi
10983 done
10984 rm -f conf$$subs.sh
10985
10986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10987 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10988 _ACEOF
10989 sed -n '
10990 h
10991 s/^/S["/; s/!.*/"]=/
10992 p
10993 g
10994 s/^[^!]*!//
10995 :repl
10996 t repl
10997 s/'"$ac_delim"'$//
10998 t delim
10999 :nl
11000 h
11001 s/\(.\{148\}\)..*/\1/
11002 t more1
11003 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11004 p
11005 n
11006 b repl
11007 :more1
11008 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11009 p
11010 g
11011 s/.\{148\}//
11012 t nl
11013 :delim
11014 h
11015 s/\(.\{148\}\)..*/\1/
11016 t more2
11017 s/["\\]/\\&/g; s/^/"/; s/$/"/
11018 p
11019 b
11020 :more2
11021 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11022 p
11023 g
11024 s/.\{148\}//
11025 t delim
11026 ' <conf$$subs.awk | sed '
11027 /^[^""]/{
11028 N
11029 s/\n//
11030 }
11031 ' >>$CONFIG_STATUS || ac_write_fail=1
11032 rm -f conf$$subs.awk
11033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11034 _ACAWK
11035 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11036 for (key in S) S_is_set[key] = 1
11037 FS = "\a"
11038
11039 }
11040 {
11041 line = $ 0
11042 nfields = split(line, field, "@")
11043 substed = 0
11044 len = length(field[1])
11045 for (i = 2; i < nfields; i++) {
11046 key = field[i]
11047 keylen = length(key)
11048 if (S_is_set[key]) {
11049 value = S[key]
11050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11051 len += length(value) + length(field[++i])
11052 substed = 1
11053 } else
11054 len += 1 + keylen
11055 }
11056
11057 print line
11058 }
11059
11060 _ACAWK
11061 _ACEOF
11062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11063 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11064 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11065 else
11066 cat
11067 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11068 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11069 _ACEOF
11070
11071 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11072 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11073 # trailing colons and then remove the whole line if VPATH becomes empty
11074 # (actually we leave an empty line to preserve line numbers).
11075 if test "x$srcdir" = x.; then
11076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11077 h
11078 s///
11079 s/^/:/
11080 s/[ ]*$/:/
11081 s/:\$(srcdir):/:/g
11082 s/:\${srcdir}:/:/g
11083 s/:@srcdir@:/:/g
11084 s/^:*//
11085 s/:*$//
11086 x
11087 s/\(=[ ]*\).*/\1/
11088 G
11089 s/\n//
11090 s/^[^=]*=[ ]*$//
11091 }'
11092 fi
11093
11094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11095 fi # test -n "$CONFIG_FILES"
11096
11097 # Set up the scripts for CONFIG_HEADERS section.
11098 # No need to generate them if there are no CONFIG_HEADERS.
11099 # This happens for instance with `./config.status Makefile'.
11100 if test -n "$CONFIG_HEADERS"; then
11101 cat >"$tmp/defines.awk" <<\_ACAWK ||
11102 BEGIN {
11103 _ACEOF
11104
11105 # Transform confdefs.h into an awk script `defines.awk', embedded as
11106 # here-document in config.status, that substitutes the proper values into
11107 # config.h.in to produce config.h.
11108
11109 # Create a delimiter string that does not exist in confdefs.h, to ease
11110 # handling of long lines.
11111 ac_delim='%!_!# '
11112 for ac_last_try in false false :; do
11113 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11114 if test -z "$ac_t"; then
11115 break
11116 elif $ac_last_try; then
11117 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11118 else
11119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11120 fi
11121 done
11122
11123 # For the awk script, D is an array of macro values keyed by name,
11124 # likewise P contains macro parameters if any. Preserve backslash
11125 # newline sequences.
11126
11127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11128 sed -n '
11129 s/.\{148\}/&'"$ac_delim"'/g
11130 t rset
11131 :rset
11132 s/^[ ]*#[ ]*define[ ][ ]*/ /
11133 t def
11134 d
11135 :def
11136 s/\\$//
11137 t bsnl
11138 s/["\\]/\\&/g
11139 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11140 D["\1"]=" \3"/p
11141 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11142 d
11143 :bsnl
11144 s/["\\]/\\&/g
11145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11146 D["\1"]=" \3\\\\\\n"\\/p
11147 t cont
11148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11149 t cont
11150 d
11151 :cont
11152 n
11153 s/.\{148\}/&'"$ac_delim"'/g
11154 t clear
11155 :clear
11156 s/\\$//
11157 t bsnlc
11158 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11159 d
11160 :bsnlc
11161 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11162 b cont
11163 ' <confdefs.h | sed '
11164 s/'"$ac_delim"'/"\\\
11165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11166
11167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11168 for (key in D) D_is_set[key] = 1
11169 FS = "\a"
11170 }
11171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11172 line = \$ 0
11173 split(line, arg, " ")
11174 if (arg[1] == "#") {
11175 defundef = arg[2]
11176 mac1 = arg[3]
11177 } else {
11178 defundef = substr(arg[1], 2)
11179 mac1 = arg[2]
11180 }
11181 split(mac1, mac2, "(") #)
11182 macro = mac2[1]
11183 prefix = substr(line, 1, index(line, defundef) - 1)
11184 if (D_is_set[macro]) {
11185 # Preserve the white space surrounding the "#".
11186 print prefix "define", macro P[macro] D[macro]
11187 next
11188 } else {
11189 # Replace #undef with comments. This is necessary, for example,
11190 # in the case of _POSIX_SOURCE, which is predefined and required
11191 # on some systems where configure will not decide to define it.
11192 if (defundef == "undef") {
11193 print "/*", prefix defundef, macro, "*/"
11194 next
11195 }
11196 }
11197 }
11198 { print }
11199 _ACAWK
11200 _ACEOF
11201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11202 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11203 fi # test -n "$CONFIG_HEADERS"
11204
11205
11206 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11207 shift
11208 for ac_tag
11209 do
11210 case $ac_tag in
11211 :[FHLC]) ac_mode=$ac_tag; continue;;
11212 esac
11213 case $ac_mode$ac_tag in
11214 :[FHL]*:*);;
11215 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11216 :[FH]-) ac_tag=-:-;;
11217 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11218 esac
11219 ac_save_IFS=$IFS
11220 IFS=:
11221 set x $ac_tag
11222 IFS=$ac_save_IFS
11223 shift
11224 ac_file=$1
11225 shift
11226
11227 case $ac_mode in
11228 :L) ac_source=$1;;
11229 :[FH])
11230 ac_file_inputs=
11231 for ac_f
11232 do
11233 case $ac_f in
11234 -) ac_f="$tmp/stdin";;
11235 *) # Look for the file first in the build tree, then in the source tree
11236 # (if the path is not absolute). The absolute path cannot be DOS-style,
11237 # because $ac_f cannot contain `:'.
11238 test -f "$ac_f" ||
11239 case $ac_f in
11240 [\\/$]*) false;;
11241 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11242 esac ||
11243 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11244 esac
11245 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11246 as_fn_append ac_file_inputs " '$ac_f'"
11247 done
11248
11249 # Let's still pretend it is `configure' which instantiates (i.e., don't
11250 # use $as_me), people would be surprised to read:
11251 # /* config.h. Generated by config.status. */
11252 configure_input='Generated from '`
11253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11254 `' by configure.'
11255 if test x"$ac_file" != x-; then
11256 configure_input="$ac_file. $configure_input"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11258 $as_echo "$as_me: creating $ac_file" >&6;}
11259 fi
11260 # Neutralize special characters interpreted by sed in replacement strings.
11261 case $configure_input in #(
11262 *\&* | *\|* | *\\* )
11263 ac_sed_conf_input=`$as_echo "$configure_input" |
11264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11265 *) ac_sed_conf_input=$configure_input;;
11266 esac
11267
11268 case $ac_tag in
11269 *:-:* | *:-) cat >"$tmp/stdin" \
11270 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11271 esac
11272 ;;
11273 esac
11274
11275 ac_dir=`$as_dirname -- "$ac_file" ||
11276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11277 X"$ac_file" : 'X\(//\)[^/]' \| \
11278 X"$ac_file" : 'X\(//\)$' \| \
11279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11280 $as_echo X"$ac_file" |
11281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11282 s//\1/
11283 q
11284 }
11285 /^X\(\/\/\)[^/].*/{
11286 s//\1/
11287 q
11288 }
11289 /^X\(\/\/\)$/{
11290 s//\1/
11291 q
11292 }
11293 /^X\(\/\).*/{
11294 s//\1/
11295 q
11296 }
11297 s/.*/./; q'`
11298 as_dir="$ac_dir"; as_fn_mkdir_p
11299 ac_builddir=.
11300
11301 case "$ac_dir" in
11302 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11303 *)
11304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11305 # A ".." for each directory in $ac_dir_suffix.
11306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11307 case $ac_top_builddir_sub in
11308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11310 esac ;;
11311 esac
11312 ac_abs_top_builddir=$ac_pwd
11313 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11314 # for backward compatibility:
11315 ac_top_builddir=$ac_top_build_prefix
11316
11317 case $srcdir in
11318 .) # We are building in place.
11319 ac_srcdir=.
11320 ac_top_srcdir=$ac_top_builddir_sub
11321 ac_abs_top_srcdir=$ac_pwd ;;
11322 [\\/]* | ?:[\\/]* ) # Absolute name.
11323 ac_srcdir=$srcdir$ac_dir_suffix;
11324 ac_top_srcdir=$srcdir
11325 ac_abs_top_srcdir=$srcdir ;;
11326 *) # Relative name.
11327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11328 ac_top_srcdir=$ac_top_build_prefix$srcdir
11329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11330 esac
11331 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11332
11333
11334 case $ac_mode in
11335 :F)
11336 #
11337 # CONFIG_FILE
11338 #
11339
11340 case $INSTALL in
11341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11343 esac
11344 ac_MKDIR_P=$MKDIR_P
11345 case $MKDIR_P in
11346 [\\/$]* | ?:[\\/]* ) ;;
11347 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11348 esac
11349 _ACEOF
11350
11351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11352 # If the template does not know about datarootdir, expand it.
11353 # FIXME: This hack should be removed a few years after 2.60.
11354 ac_datarootdir_hack=; ac_datarootdir_seen=
11355 ac_sed_dataroot='
11356 /datarootdir/ {
11357 p
11358 q
11359 }
11360 /@datadir@/p
11361 /@docdir@/p
11362 /@infodir@/p
11363 /@localedir@/p
11364 /@mandir@/p'
11365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11366 *datarootdir*) ac_datarootdir_seen=yes;;
11367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11370 _ACEOF
11371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11372 ac_datarootdir_hack='
11373 s&@datadir@&$datadir&g
11374 s&@docdir@&$docdir&g
11375 s&@infodir@&$infodir&g
11376 s&@localedir@&$localedir&g
11377 s&@mandir@&$mandir&g
11378 s&\\\${datarootdir}&$datarootdir&g' ;;
11379 esac
11380 _ACEOF
11381
11382 # Neutralize VPATH when `$srcdir' = `.'.
11383 # Shell code in configure.ac might set extrasub.
11384 # FIXME: do we really want to maintain this feature?
11385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 ac_sed_extra="$ac_vpsub
11387 $extrasub
11388 _ACEOF
11389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11390 :t
11391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11392 s|@configure_input@|$ac_sed_conf_input|;t t
11393 s&@top_builddir@&$ac_top_builddir_sub&;t t
11394 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11395 s&@srcdir@&$ac_srcdir&;t t
11396 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11397 s&@top_srcdir@&$ac_top_srcdir&;t t
11398 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11399 s&@builddir@&$ac_builddir&;t t
11400 s&@abs_builddir@&$ac_abs_builddir&;t t
11401 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11402 s&@INSTALL@&$ac_INSTALL&;t t
11403 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11404 $ac_datarootdir_hack
11405 "
11406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11407 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11408
11409 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11410 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11413 which seems to be undefined. Please make sure it is defined" >&5
11414 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11415 which seems to be undefined. Please make sure it is defined" >&2;}
11416
11417 rm -f "$tmp/stdin"
11418 case $ac_file in
11419 -) cat "$tmp/out" && rm -f "$tmp/out";;
11420 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11421 esac \
11422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11423 ;;
11424 :H)
11425 #
11426 # CONFIG_HEADER
11427 #
11428 if test x"$ac_file" != x-; then
11429 {
11430 $as_echo "/* $configure_input */" \
11431 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11432 } >"$tmp/config.h" \
11433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11434 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11436 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11437 else
11438 rm -f "$ac_file"
11439 mv "$tmp/config.h" "$ac_file" \
11440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11441 fi
11442 else
11443 $as_echo "/* $configure_input */" \
11444 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11445 || as_fn_error $? "could not create -" "$LINENO" 5
11446 fi
11447 ;;
11448
11449
11450 esac
11451
11452 done # for ac_tag
11453
11454
11455 as_fn_exit 0
11456 _ACEOF
11457 ac_clean_files=$ac_clean_files_save
11458
11459 test $ac_write_fail = 0 ||
11460 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11461
11462
11463 # configure is writing to config.log, and then calls config.status.
11464 # config.status does its own redirection, appending to config.log.
11465 # Unfortunately, on DOS this fails, as config.log is still kept open
11466 # by configure, so config.status won't be able to write to it; its
11467 # output is simply discarded. So we exec the FD to /dev/null,
11468 # effectively closing config.log, so it can be properly (re)opened and
11469 # appended to by config.status. When coming back to configure, we
11470 # need to make the FD available again.
11471 if test "$no_create" != yes; then
11472 ac_cs_success=:
11473 ac_config_status_args=
11474 test "$silent" = yes &&
11475 ac_config_status_args="$ac_config_status_args --quiet"
11476 exec 5>/dev/null
11477 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11478 exec 5>>config.log
11479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11480 # would make configure fail if this is the last instruction.
11481 $ac_cs_success || as_fn_exit 1
11482 fi
11483 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11485 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11486 fi
11487
11488
11489 if test x$ODIRECT != xyes; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11491 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11492 fi
This page took 0.638907 seconds and 6 git commands to generate.