]> sourceware.org Git - lvm2.git/blob - configure
veritysetup: Remove code as now in cryptsetup.
[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 tmpfilesdir
600 systemdsystemunitdir
601 udevdir
602 udev_prefix
603 tmpdir
604 kernelvsn
605 missingkernel
606 kerneldir
607 interface
608 DMEVENTD_PIDFILE
609 WRITE_INSTALL
610 UDEV_HAS_BUILTIN_BLKID
611 UDEV_SYNC
612 UDEV_RULES
613 UDEV_PC
614 THIN
615 TESTING
616 STATIC_LINK
617 STATICDIR
618 SNAPSHOTS
619 SELINUX_PC
620 SELINUX_LIBS
621 REPLICATORS
622 READLINE_LIBS
623 RAID
624 PTHREAD_LIBS
625 POOL
626 PKGCONFIG
627 OCFDIR
628 OCF
629 MIRRORS
630 LVM_RELEASE_DATE
631 LVM_RELEASE
632 LVM_PATH
633 LVM_PATCHLEVEL
634 LVM_MINOR
635 LVM_MAJOR
636 LVM_LIBAPI
637 LVM_VERSION
638 LVM1_FALLBACK
639 LVM1
640 LOCALEDIR
641 LIB_SUFFIX
642 LDDEPS
643 JOBS
644 INTL_PACKAGE
645 INTL
646 HAVE_REALTIME
647 HAVE_LIBDL
648 FSADM
649 ELDFLAGS
650 DM_LIB_PATCHLEVEL
651 DM_LIB_VERSION
652 DM_IOCTLS
653 DM_DEVICE_UID
654 DM_DEVICE_MODE
655 DM_DEVICE_GID
656 DM_COMPAT
657 DMEVENTD_PATH
658 DMEVENTD
659 DL_LIBS
660 DEVMAPPER
661 DEFAULT_RUN_DIR
662 DEFAULT_LOCK_DIR
663 DEFAULT_DATA_ALIGNMENT
664 DEFAULT_CACHE_SUBDIR
665 DEFAULT_BACKUP_SUBDIR
666 DEFAULT_ARCHIVE_SUBDIR
667 DEFAULT_SYS_DIR
668 DEBUG
669 COPTIMISE_FLAG
670 CONFDIR
671 CMDLIB
672 CLVMD_PATH
673 CLVMD_CMANAGERS
674 CLVMD
675 CLUSTER
676 CLDWHOLEARCHIVE
677 CLDNOWHOLEARCHIVE
678 CLDFLAGS
679 BUILD_LVMETAD
680 BUILD_DMEVENTD
681 BUILD_CMIRRORD
682 APPLIB
683 MODPROBE_CMD
684 MSGFMT
685 LVM2CMD_LIB
686 LVM2APP_LIB
687 UDEV_LIBS
688 UDEV_CFLAGS
689 CUNIT_LIBS
690 CUNIT_CFLAGS
691 GENPNG
692 GENHTML
693 LCOV
694 SACKPT_LIBS
695 SACKPT_CFLAGS
696 DLM_LIBS
697 DLM_CFLAGS
698 CPG_LIBS
699 CPG_CFLAGS
700 CMAP_LIBS
701 CMAP_CFLAGS
702 CONFDB_LIBS
703 CONFDB_CFLAGS
704 SALCK_LIBS
705 SALCK_CFLAGS
706 QUORUM_LIBS
707 QUORUM_CFLAGS
708 COROSYNC_LIBS
709 COROSYNC_CFLAGS
710 CMAN_LIBS
711 CMAN_CFLAGS
712 PKGCONFIGINIT_LIBS
713 PKGCONFIGINIT_CFLAGS
714 PKG_CONFIG_LIBDIR
715 PKG_CONFIG_PATH
716 PKG_CONFIG
717 THIN_CHECK_CMD
718 POW_LIB
719 LIBOBJS
720 ALLOCA
721 CSCOPE_CMD
722 CFLOW_CMD
723 RANLIB
724 MKDIR_P
725 SET_MAKE
726 LN_S
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 EGREP
731 GREP
732 CPP
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 AWK
741 SED
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_static_link
796 with_user
797 with_group
798 with_device_uid
799 with_device_gid
800 with_device_mode
801 with_device_nodes_on
802 with_default_name_mangling
803 enable_lvm1_fallback
804 with_lvm1
805 with_pool
806 with_cluster
807 with_snapshots
808 with_mirrors
809 with_raid
810 with_replicators
811 with_thin
812 with_thin_check
813 enable_readline
814 enable_realtime
815 enable_ocf
816 with_ocfdir
817 with_clvmd
818 with_clvmd_pidfile
819 enable_cmirrord
820 with_cmirrord_pidfile
821 enable_debug
822 with_optimisation
823 enable_profiling
824 enable_testing
825 enable_valgrind_pool
826 enable_devmapper
827 enable_lvmetad
828 enable_udev_sync
829 enable_udev_rules
830 enable_compat
831 enable_units_compat
832 enable_ioctl
833 enable_o_direct
834 enable_applib
835 enable_cmdlib
836 enable_pkgconfig
837 enable_write_install
838 enable_fsadm
839 enable_dmeventd
840 enable_selinux
841 enable_nls
842 with_localedir
843 with_confdir
844 with_staticdir
845 with_usrlibdir
846 with_usrsbindir
847 with_udev_prefix
848 with_udevdir
849 with_systemdsystemunitdir
850 with_tmpfilesdir
851 with_dmeventd_pidfile
852 with_dmeventd_path
853 with_default_run_dir
854 with_default_system_dir
855 with_default_archive_subdir
856 with_default_backup_subdir
857 with_default_cache_subdir
858 with_default_locking_dir
859 with_default_data_alignment
860 with_interface
861 '
862 ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 LIBS
869 CPPFLAGS
870 CPP
871 PKG_CONFIG
872 PKG_CONFIG_PATH
873 PKG_CONFIG_LIBDIR
874 PKGCONFIGINIT_CFLAGS
875 PKGCONFIGINIT_LIBS
876 CMAN_CFLAGS
877 CMAN_LIBS
878 COROSYNC_CFLAGS
879 COROSYNC_LIBS
880 QUORUM_CFLAGS
881 QUORUM_LIBS
882 SALCK_CFLAGS
883 SALCK_LIBS
884 CONFDB_CFLAGS
885 CONFDB_LIBS
886 CMAP_CFLAGS
887 CMAP_LIBS
888 CPG_CFLAGS
889 CPG_LIBS
890 DLM_CFLAGS
891 DLM_LIBS
892 SACKPT_CFLAGS
893 SACKPT_LIBS
894 CUNIT_CFLAGS
895 CUNIT_LIBS
896 UDEV_CFLAGS
897 UDEV_LIBS'
898
899
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
921
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
947
948 ac_prev=
949 ac_dashdash=
950 for ac_option
951 do
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
957 fi
958
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
963
964 # Accept the important Cygnus configure options, so we can diagnose typos.
965
966 case $ac_dashdash$ac_option in
967 --)
968 ac_dashdash=yes ;;
969
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
974
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
979
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
986
987 --config-cache | -C)
988 cache_file=config.cache ;;
989
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
994
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1001
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1010 *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1017
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1022
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1027
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1052
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1056
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1063
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1068
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1074
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1081
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1086
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1091
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1098
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1103
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1110
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1115
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1119
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1123
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1127
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1136
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1141
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1148
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1155
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1172
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1177
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1182
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1186
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1192
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1203
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1208
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1213
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1220
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1225
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1228
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1231
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1240 *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1247
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error $? "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1256 *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1263
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1267
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1274
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1281
1282 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1284 ;;
1285
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1295
1296 *)
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1302 ;;
1303
1304 esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1325 do
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1353 If a cross compiler is detected then cross compile mode will be used" >&2
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357 fi
1358
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362 test "$silent" = yes && exec 6>/dev/null
1363
1364
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1371
1372
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1403 fi
1404 else
1405 ac_srcdir_defaulted=no
1406 fi
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1410 fi
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418 fi
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1431
1432 #
1433 # Report the --help message.
1434 #
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures this package to adapt to many kinds of systems.
1440
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446 Defaults for the options are specified in brackets.
1447
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking ...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1464
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1469
1470 For better control, use the options below.
1471
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1493
1494 cat <<\_ACEOF
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 --target=TARGET configure for building compilers for TARGET [HOST]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504
1505 cat <<\_ACEOF
1506
1507 Optional Features:
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-static_link use this to link the tools to their libraries
1512 statically (default is dynamic linking
1513 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1514 device-mapper is missing from the kernel
1515 --disable-readline disable readline support
1516 --enable-realtime enable realtime clock support
1517 --enable-ocf enable Open Cluster Framework (OCF) compliant
1518 resource agents
1519 --enable-cmirrord enable the cluster mirror log daemon
1520 --enable-debug enable debugging
1521 --enable-profiling gather gcov profiling data
1522 --enable-testing enable testing targets in the makefile
1523 --enable-valgrind-pool enable valgrind awareness of pools
1524 --disable-devmapper disable LVM2 device-mapper interaction
1525 --enable-lvmetad enable the LVM Metadata Daemon
1526 --enable-udev_sync enable synchronisation with udev processing
1527 --enable-udev_rules install rule files needed for udev synchronisation
1528 --enable-compat enable support for old device-mapper versions
1529 --enable-units-compat enable output compatibility with old versions that
1530 that do not use KiB-style unit suffixes
1531 --disable-driver disable calls to device-mapper in the kernel
1532 --disable-o_direct disable O_DIRECT
1533 --enable-applib build application library
1534 --enable-cmdlib build shared command library
1535 --enable-pkgconfig install pkgconfig support
1536 --enable-write_install install user writable files
1537 --disable-fsadm disable fsadm
1538 --enable-dmeventd enable the device-mapper event daemon
1539 --disable-selinux disable selinux support
1540 --enable-nls enable Native Language Support
1541
1542 Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1545 --with-user=USER set the owner of installed files [[USER=]]
1546 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1547 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1548 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1549 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1550 --with-device-nodes-on=ON
1551 create nodes on resume or create [[ON=resume]]
1552 --with-default-name-mangling=MANGLING
1553 default name mangling: auto/none/hex
1554 [[MANGLING=auto]]
1555 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1556 [[TYPE=internal]]
1557 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1558 [[TYPE=internal]]
1559 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1560 [[TYPE=internal]]
1561 --with-snapshots=TYPE snapshot support: internal/shared/none
1562 [[TYPE=internal]]
1563 --with-mirrors=TYPE mirror support: internal/shared/none
1564 [[TYPE=internal]]
1565 --with-raid=TYPE mirror support: internal/shared/none
1566 [[TYPE=internal]]
1567 --with-replicators=TYPE replicator support: internal/shared/none
1568 [[TYPE=none]]
1569 --with-thin=TYPE thin provisioning support: internal/shared/none
1570 [[TYPE=none]]
1571 --with-thin-check=PATH thin_check tool: [[autodetect]]
1572 --with-ocfdir=DIR install OCF files in DIR
1573 [[PREFIX/lib/ocf/resource.d/lvm2]]
1574 --with-clvmd=TYPE build cluster LVM Daemon
1575 The following cluster manager combinations are valid:
1576 * cman (RHEL5 or equivalent)
1577 * cman,corosync,openais (or selection of them)
1578 * singlenode (localhost only)
1579 * all (autodetect)
1580 * none (disable build)
1581 [TYPE=none]
1582 --with-clvmd-pidfile=PATH
1583 clvmd pidfile [[/var/run/clvmd.pid]]
1584 --with-cmirrord-pidfile=PATH
1585 cmirrord pidfile [[/var/run/cmirrord.pid]]
1586 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1587 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1588 --with-confdir=DIR configuration files in DIR [[/etc]]
1589 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1590 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1591 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1592 --with-udev-prefix=UPREFIX
1593 install udev rule files in UPREFIX [[EPREFIX]]
1594 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1595 --with-systemdsystemunitdir=DIR
1596 systemd service files in DIR
1597 --with-tmpfilesdir=DIR install configuration files for management of
1598 volatile files and directories in DIR
1599 [[SYSCONFDIR/tmpfiles.d]]
1600 --with-dmeventd-pidfile=PATH
1601 dmeventd pidfile [[/var/run/dmeventd.pid]]
1602 --with-dmeventd-path=PATH
1603 dmeventd path [[EPREFIX/sbin/dmeventd]]
1604 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1605 --with-default-system-dir=DIR
1606 default LVM system directory [[/etc/lvm]]
1607 --with-default-archive-subdir=SUBDIR
1608 default metadata archive subdir [[archive]]
1609 --with-default-backup-subdir=SUBDIR
1610 default metadata backup subdir [[backup]]
1611 --with-default-cache-subdir=SUBDIR
1612 default metadata cache subdir [[cache]]
1613 --with-default-locking-dir=DIR
1614 default locking directory [[/var/lock/lvm]]
1615 --with-default-data-alignment=NUM
1616 set the default data alignment in MiB [[1]]
1617 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1618
1619 Some influential environment variables:
1620 CC C compiler command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1623 nonstandard directory <lib dir>
1624 LIBS libraries to pass to the linker, e.g. -l<library>
1625 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1626 you have headers in a nonstandard directory <include dir>
1627 CPP C preprocessor
1628 PKG_CONFIG path to pkg-config utility
1629 PKG_CONFIG_PATH
1630 directories to add to pkg-config's search path
1631 PKG_CONFIG_LIBDIR
1632 path overriding pkg-config's built-in search path
1633 PKGCONFIGINIT_CFLAGS
1634 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1635 PKGCONFIGINIT_LIBS
1636 linker flags for PKGCONFIGINIT, overriding pkg-config
1637 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1638 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1639 COROSYNC_CFLAGS
1640 C compiler flags for COROSYNC, overriding pkg-config
1641 COROSYNC_LIBS
1642 linker flags for COROSYNC, overriding pkg-config
1643 QUORUM_CFLAGS
1644 C compiler flags for QUORUM, overriding pkg-config
1645 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1646 SALCK_CFLAGS
1647 C compiler flags for SALCK, overriding pkg-config
1648 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1649 CONFDB_CFLAGS
1650 C compiler flags for CONFDB, overriding pkg-config
1651 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1652 CMAP_CFLAGS C compiler flags for CMAP, overriding pkg-config
1653 CMAP_LIBS linker flags for CMAP, overriding pkg-config
1654 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1655 CPG_LIBS linker flags for CPG, overriding pkg-config
1656 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1657 DLM_LIBS linker flags for DLM, overriding pkg-config
1658 SACKPT_CFLAGS
1659 C compiler flags for SACKPT, overriding pkg-config
1660 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1661 CUNIT_CFLAGS
1662 C compiler flags for CUNIT, overriding pkg-config
1663 CUNIT_LIBS linker flags for CUNIT, overriding pkg-config
1664 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1665 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1666
1667 Use these variables to override the choices made by `configure' or to help
1668 it to find libraries and programs with nonstandard names/locations.
1669
1670 Report bugs to the package provider.
1671 _ACEOF
1672 ac_status=$?
1673 fi
1674
1675 if test "$ac_init_help" = "recursive"; then
1676 # If there are subdirs, report their specific --help.
1677 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1678 test -d "$ac_dir" ||
1679 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1680 continue
1681 ac_builddir=.
1682
1683 case "$ac_dir" in
1684 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685 *)
1686 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1687 # A ".." for each directory in $ac_dir_suffix.
1688 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1689 case $ac_top_builddir_sub in
1690 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692 esac ;;
1693 esac
1694 ac_abs_top_builddir=$ac_pwd
1695 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696 # for backward compatibility:
1697 ac_top_builddir=$ac_top_build_prefix
1698
1699 case $srcdir in
1700 .) # We are building in place.
1701 ac_srcdir=.
1702 ac_top_srcdir=$ac_top_builddir_sub
1703 ac_abs_top_srcdir=$ac_pwd ;;
1704 [\\/]* | ?:[\\/]* ) # Absolute name.
1705 ac_srcdir=$srcdir$ac_dir_suffix;
1706 ac_top_srcdir=$srcdir
1707 ac_abs_top_srcdir=$srcdir ;;
1708 *) # Relative name.
1709 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710 ac_top_srcdir=$ac_top_build_prefix$srcdir
1711 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1712 esac
1713 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1714
1715 cd "$ac_dir" || { ac_status=$?; continue; }
1716 # Check for guested configure.
1717 if test -f "$ac_srcdir/configure.gnu"; then
1718 echo &&
1719 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720 elif test -f "$ac_srcdir/configure"; then
1721 echo &&
1722 $SHELL "$ac_srcdir/configure" --help=recursive
1723 else
1724 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725 fi || ac_status=$?
1726 cd "$ac_pwd" || { ac_status=$?; break; }
1727 done
1728 fi
1729
1730 test -n "$ac_init_help" && exit $ac_status
1731 if $ac_init_version; then
1732 cat <<\_ACEOF
1733 configure
1734 generated by GNU Autoconf 2.66
1735
1736 Copyright (C) 2010 Free Software Foundation, Inc.
1737 This configure script is free software; the Free Software Foundation
1738 gives unlimited permission to copy, distribute and modify it.
1739 _ACEOF
1740 exit
1741 fi
1742
1743 ## ------------------------ ##
1744 ## Autoconf initialization. ##
1745 ## ------------------------ ##
1746
1747 # ac_fn_c_try_compile LINENO
1748 # --------------------------
1749 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_compile ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext
1754 if { { ac_try="$ac_compile"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_compile") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest.$ac_objext; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_compile
1784
1785 # ac_fn_c_try_cpp LINENO
1786 # ----------------------
1787 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_cpp ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_cpp conftest.$ac_ext"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 ac_status=$?
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1804 fi
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } >/dev/null && {
1807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=1
1816 fi
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 as_fn_set_status $ac_retval
1819
1820 } # ac_fn_c_try_cpp
1821
1822 # ac_fn_c_try_link LINENO
1823 # -----------------------
1824 # Try to link conftest.$ac_ext, and return whether this succeeded.
1825 ac_fn_c_try_link ()
1826 {
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 rm -f conftest.$ac_objext conftest$ac_exeext
1829 if { { ac_try="$ac_link"
1830 case "(($ac_try" in
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832 *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836 (eval "$ac_link") 2>conftest.err
1837 ac_status=$?
1838 if test -s conftest.err; then
1839 grep -v '^ *+' conftest.err >conftest.er1
1840 cat conftest.er1 >&5
1841 mv -f conftest.er1 conftest.err
1842 fi
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && {
1845 test -z "$ac_c_werror_flag" ||
1846 test ! -s conftest.err
1847 } && test -s conftest$ac_exeext && {
1848 test "$cross_compiling" = yes ||
1849 $as_test_x conftest$ac_exeext
1850 }; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856 ac_retval=1
1857 fi
1858 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1859 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1860 # interfere with the next link command; also delete a directory that is
1861 # left behind by Apple's compiler. We do this before executing the actions.
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864 as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_link
1867
1868 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1869 # -------------------------------------------------------
1870 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1871 # the include files in INCLUDES and setting the cache variable VAR
1872 # accordingly.
1873 ac_fn_c_check_header_mongrel ()
1874 {
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 if eval "test \"\${$3+set}\"" = set; then :
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if eval "test \"\${$3+set}\"" = set; then :
1880 $as_echo_n "(cached) " >&6
1881 fi
1882 eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 else
1886 # Is the header compilable?
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1888 $as_echo_n "checking $2 usability... " >&6; }
1889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h. */
1891 $4
1892 #include <$2>
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895 ac_header_compiler=yes
1896 else
1897 ac_header_compiler=no
1898 fi
1899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1901 $as_echo "$ac_header_compiler" >&6; }
1902
1903 # Is the header present?
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1905 $as_echo_n "checking $2 presence... " >&6; }
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 #include <$2>
1909 _ACEOF
1910 if ac_fn_c_try_cpp "$LINENO"; then :
1911 ac_header_preproc=yes
1912 else
1913 ac_header_preproc=no
1914 fi
1915 rm -f conftest.err conftest.$ac_ext
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1917 $as_echo "$ac_header_preproc" >&6; }
1918
1919 # So? What about this header?
1920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1921 yes:no: )
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1923 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 ;;
1927 no:yes:* )
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1929 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1931 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1933 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1935 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1937 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1938 ;;
1939 esac
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval "test \"\${$3+set}\"" = set; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 eval "$3=\$ac_header_compiler"
1946 fi
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 fi
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953 } # ac_fn_c_check_header_mongrel
1954
1955 # ac_fn_c_try_run LINENO
1956 # ----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1958 # that executables *can* be run.
1959 ac_fn_c_try_run ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_link") 2>&5
1970 ac_status=$?
1971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1972 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1973 { { case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_try") 2>&5
1980 ac_status=$?
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; }; }; then :
1983 ac_retval=0
1984 else
1985 $as_echo "$as_me: program exited with status $ac_status" >&5
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=$ac_status
1990 fi
1991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 as_fn_set_status $ac_retval
1994
1995 } # ac_fn_c_try_run
1996
1997 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1998 # -------------------------------------------------------
1999 # Tests whether HEADER exists and can be compiled using the include files in
2000 # INCLUDES, setting the cache variable VAR accordingly.
2001 ac_fn_c_check_header_compile ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005 $as_echo_n "checking for $2... " >&6; }
2006 if eval "test \"\${$3+set}\"" = set; then :
2007 $as_echo_n "(cached) " >&6
2008 else
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 $4
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 eval "$3=yes"
2016 else
2017 eval "$3=no"
2018 fi
2019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 fi
2021 eval ac_res=\$$3
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023 $as_echo "$ac_res" >&6; }
2024 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025
2026 } # ac_fn_c_check_header_compile
2027
2028 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2029 # ----------------------------------------------------
2030 # Tries to find if the field MEMBER exists in type AGGR, after including
2031 # INCLUDES, setting cache variable VAR accordingly.
2032 ac_fn_c_check_member ()
2033 {
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2036 $as_echo_n "checking for $2.$3... " >&6; }
2037 if eval "test \"\${$4+set}\"" = set; then :
2038 $as_echo_n "(cached) " >&6
2039 else
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $5
2043 int
2044 main ()
2045 {
2046 static $2 ac_aggr;
2047 if (ac_aggr.$3)
2048 return 0;
2049 ;
2050 return 0;
2051 }
2052 _ACEOF
2053 if ac_fn_c_try_compile "$LINENO"; then :
2054 eval "$4=yes"
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $5
2059 int
2060 main ()
2061 {
2062 static $2 ac_aggr;
2063 if (sizeof ac_aggr.$3)
2064 return 0;
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 eval "$4=yes"
2071 else
2072 eval "$4=no"
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 fi
2078 eval ac_res=\$$4
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 $as_echo "$ac_res" >&6; }
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082
2083 } # ac_fn_c_check_member
2084
2085 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2086 # -------------------------------------------
2087 # Tests whether TYPE exists after having included INCLUDES, setting cache
2088 # variable VAR accordingly.
2089 ac_fn_c_check_type ()
2090 {
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2093 $as_echo_n "checking for $2... " >&6; }
2094 if eval "test \"\${$3+set}\"" = set; then :
2095 $as_echo_n "(cached) " >&6
2096 else
2097 eval "$3=no"
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 if (sizeof ($2))
2105 return 0;
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 $4
2114 int
2115 main ()
2116 {
2117 if (sizeof (($2)))
2118 return 0;
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124
2125 else
2126 eval "$3=yes"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2131 fi
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2136
2137 } # ac_fn_c_check_type
2138
2139 # ac_fn_c_find_intX_t LINENO BITS VAR
2140 # -----------------------------------
2141 # Finds a signed integer type with width BITS, setting cache variable VAR
2142 # accordingly.
2143 ac_fn_c_find_intX_t ()
2144 {
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2147 $as_echo_n "checking for int$2_t... " >&6; }
2148 if eval "test \"\${$3+set}\"" = set; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 eval "$3=no"
2152 # Order is important - never check a type that is potentially smaller
2153 # than half of the expected target width.
2154 for ac_type in int$2_t 'int' 'long int' \
2155 'long long int' 'short int' 'signed char'; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2158 $ac_includes_default
2159 enum { N = $2 / 2 - 1 };
2160 int
2161 main ()
2162 {
2163 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2164 test_array [0] = 0
2165
2166 ;
2167 return 0;
2168 }
2169 _ACEOF
2170 if ac_fn_c_try_compile "$LINENO"; then :
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $ac_includes_default
2174 enum { N = $2 / 2 - 1 };
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2179 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2180 test_array [0] = 0
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187
2188 else
2189 case $ac_type in #(
2190 int$2_t) :
2191 eval "$3=yes" ;; #(
2192 *) :
2193 eval "$3=\$ac_type" ;;
2194 esac
2195 fi
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 fi
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 if eval test \"x\$"$3"\" = x"no"; then :
2200
2201 else
2202 break
2203 fi
2204 done
2205 fi
2206 eval ac_res=\$$3
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2209 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2210
2211 } # ac_fn_c_find_intX_t
2212
2213 # ac_fn_c_find_uintX_t LINENO BITS VAR
2214 # ------------------------------------
2215 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2216 # accordingly.
2217 ac_fn_c_find_uintX_t ()
2218 {
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2221 $as_echo_n "checking for uint$2_t... " >&6; }
2222 if eval "test \"\${$3+set}\"" = set; then :
2223 $as_echo_n "(cached) " >&6
2224 else
2225 eval "$3=no"
2226 # Order is important - never check a type that is potentially smaller
2227 # than half of the expected target width.
2228 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2229 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231 /* end confdefs.h. */
2232 $ac_includes_default
2233 int
2234 main ()
2235 {
2236 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2237 test_array [0] = 0
2238
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_compile "$LINENO"; then :
2244 case $ac_type in #(
2245 uint$2_t) :
2246 eval "$3=yes" ;; #(
2247 *) :
2248 eval "$3=\$ac_type" ;;
2249 esac
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 if eval test \"x\$"$3"\" = x"no"; then :
2253
2254 else
2255 break
2256 fi
2257 done
2258 fi
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263
2264 } # ac_fn_c_find_uintX_t
2265
2266 # ac_fn_c_check_func LINENO FUNC VAR
2267 # ----------------------------------
2268 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2269 ac_fn_c_check_func ()
2270 {
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2273 $as_echo_n "checking for $2... " >&6; }
2274 if eval "test \"\${$3+set}\"" = set; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2281 #define $2 innocuous_$2
2282
2283 /* System header to define __stub macros and hopefully few prototypes,
2284 which can conflict with char $2 (); below.
2285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2286 <limits.h> exists even on freestanding compilers. */
2287
2288 #ifdef __STDC__
2289 # include <limits.h>
2290 #else
2291 # include <assert.h>
2292 #endif
2293
2294 #undef $2
2295
2296 /* Override any GCC internal prototype to avoid an error.
2297 Use char because int might match the return type of a GCC
2298 builtin and then its argument prototype would still apply. */
2299 #ifdef __cplusplus
2300 extern "C"
2301 #endif
2302 char $2 ();
2303 /* The GNU C library defines this for functions which it implements
2304 to always fail with ENOSYS. Some functions are actually named
2305 something starting with __ and the normal name is an alias. */
2306 #if defined __stub_$2 || defined __stub___$2
2307 choke me
2308 #endif
2309
2310 int
2311 main ()
2312 {
2313 return $2 ();
2314 ;
2315 return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_link "$LINENO"; then :
2319 eval "$3=yes"
2320 else
2321 eval "$3=no"
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext \
2324 conftest$ac_exeext conftest.$ac_ext
2325 fi
2326 eval ac_res=\$$3
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328 $as_echo "$ac_res" >&6; }
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2330
2331 } # ac_fn_c_check_func
2332 cat >config.log <<_ACEOF
2333 This file contains any messages produced by compilers while
2334 running configure, to aid debugging if configure makes a mistake.
2335
2336 It was created by $as_me, which was
2337 generated by GNU Autoconf 2.66. Invocation command line was
2338
2339 $ $0 $@
2340
2341 _ACEOF
2342 exec 5>>config.log
2343 {
2344 cat <<_ASUNAME
2345 ## --------- ##
2346 ## Platform. ##
2347 ## --------- ##
2348
2349 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2354
2355 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2357
2358 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2359 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2360 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2362 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2363 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2364 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2365
2366 _ASUNAME
2367
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 for as_dir in $PATH
2370 do
2371 IFS=$as_save_IFS
2372 test -z "$as_dir" && as_dir=.
2373 $as_echo "PATH: $as_dir"
2374 done
2375 IFS=$as_save_IFS
2376
2377 } >&5
2378
2379 cat >&5 <<_ACEOF
2380
2381
2382 ## ----------- ##
2383 ## Core tests. ##
2384 ## ----------- ##
2385
2386 _ACEOF
2387
2388
2389 # Keep a trace of the command line.
2390 # Strip out --no-create and --no-recursion so they do not pile up.
2391 # Strip out --silent because we don't want to record it for future runs.
2392 # Also quote any args containing shell meta-characters.
2393 # Make two passes to allow for proper duplicate-argument suppression.
2394 ac_configure_args=
2395 ac_configure_args0=
2396 ac_configure_args1=
2397 ac_must_keep_next=false
2398 for ac_pass in 1 2
2399 do
2400 for ac_arg
2401 do
2402 case $ac_arg in
2403 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405 | -silent | --silent | --silen | --sile | --sil)
2406 continue ;;
2407 *\'*)
2408 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 esac
2410 case $ac_pass in
2411 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412 2)
2413 as_fn_append ac_configure_args1 " '$ac_arg'"
2414 if test $ac_must_keep_next = true; then
2415 ac_must_keep_next=false # Got value, back to normal.
2416 else
2417 case $ac_arg in
2418 *=* | --config-cache | -C | -disable-* | --disable-* \
2419 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421 | -with-* | --with-* | -without-* | --without-* | --x)
2422 case "$ac_configure_args0 " in
2423 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424 esac
2425 ;;
2426 -* ) ac_must_keep_next=true ;;
2427 esac
2428 fi
2429 as_fn_append ac_configure_args " '$ac_arg'"
2430 ;;
2431 esac
2432 done
2433 done
2434 { ac_configure_args0=; unset ac_configure_args0;}
2435 { ac_configure_args1=; unset ac_configure_args1;}
2436
2437 # When interrupted or exit'd, cleanup temporary files, and complete
2438 # config.log. We remove comments because anyway the quotes in there
2439 # would cause problems or look ugly.
2440 # WARNING: Use '\'' to represent an apostrophe within the trap.
2441 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442 trap 'exit_status=$?
2443 # Save into config.log some information that might help in debugging.
2444 {
2445 echo
2446
2447 $as_echo "## ---------------- ##
2448 ## Cache variables. ##
2449 ## ---------------- ##"
2450 echo
2451 # The following way of writing the cache mishandles newlines in values,
2452 (
2453 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in #(
2456 *${as_nl}*)
2457 case $ac_var in #(
2458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2460 esac
2461 case $ac_var in #(
2462 _ | IFS | as_nl) ;; #(
2463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464 *) { eval $ac_var=; unset $ac_var;} ;;
2465 esac ;;
2466 esac
2467 done
2468 (set) 2>&1 |
2469 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470 *${as_nl}ac_space=\ *)
2471 sed -n \
2472 "s/'\''/'\''\\\\'\'''\''/g;
2473 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2474 ;; #(
2475 *)
2476 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477 ;;
2478 esac |
2479 sort
2480 )
2481 echo
2482
2483 $as_echo "## ----------------- ##
2484 ## Output variables. ##
2485 ## ----------------- ##"
2486 echo
2487 for ac_var in $ac_subst_vars
2488 do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 esac
2493 $as_echo "$ac_var='\''$ac_val'\''"
2494 done | sort
2495 echo
2496
2497 if test -n "$ac_subst_files"; then
2498 $as_echo "## ------------------- ##
2499 ## File substitutions. ##
2500 ## ------------------- ##"
2501 echo
2502 for ac_var in $ac_subst_files
2503 do
2504 eval ac_val=\$$ac_var
2505 case $ac_val in
2506 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507 esac
2508 $as_echo "$ac_var='\''$ac_val'\''"
2509 done | sort
2510 echo
2511 fi
2512
2513 if test -s confdefs.h; then
2514 $as_echo "## ----------- ##
2515 ## confdefs.h. ##
2516 ## ----------- ##"
2517 echo
2518 cat confdefs.h
2519 echo
2520 fi
2521 test "$ac_signal" != 0 &&
2522 $as_echo "$as_me: caught signal $ac_signal"
2523 $as_echo "$as_me: exit $exit_status"
2524 } >&5
2525 rm -f core *.core core.conftest.* &&
2526 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527 exit $exit_status
2528 ' 0
2529 for ac_signal in 1 2 13 15; do
2530 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531 done
2532 ac_signal=0
2533
2534 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2535 rm -f -r conftest* confdefs.h
2536
2537 $as_echo "/* confdefs.h */" > confdefs.h
2538
2539 # Predefined preprocessor variables.
2540
2541 cat >>confdefs.h <<_ACEOF
2542 #define PACKAGE_NAME "$PACKAGE_NAME"
2543 _ACEOF
2544
2545 cat >>confdefs.h <<_ACEOF
2546 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547 _ACEOF
2548
2549 cat >>confdefs.h <<_ACEOF
2550 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2551 _ACEOF
2552
2553 cat >>confdefs.h <<_ACEOF
2554 #define PACKAGE_STRING "$PACKAGE_STRING"
2555 _ACEOF
2556
2557 cat >>confdefs.h <<_ACEOF
2558 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559 _ACEOF
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define PACKAGE_URL "$PACKAGE_URL"
2563 _ACEOF
2564
2565
2566 # Let the site file select an alternate cache file if it wants to.
2567 # Prefer an explicitly selected file to automatically selected ones.
2568 ac_site_file1=NONE
2569 ac_site_file2=NONE
2570 if test -n "$CONFIG_SITE"; then
2571 # We do not want a PATH search for config.site.
2572 case $CONFIG_SITE in #((
2573 -*) ac_site_file1=./$CONFIG_SITE;;
2574 */*) ac_site_file1=$CONFIG_SITE;;
2575 *) ac_site_file1=./$CONFIG_SITE;;
2576 esac
2577 elif test "x$prefix" != xNONE; then
2578 ac_site_file1=$prefix/share/config.site
2579 ac_site_file2=$prefix/etc/config.site
2580 else
2581 ac_site_file1=$ac_default_prefix/share/config.site
2582 ac_site_file2=$ac_default_prefix/etc/config.site
2583 fi
2584 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585 do
2586 test "x$ac_site_file" = xNONE && continue
2587 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2590 sed 's/^/| /' "$ac_site_file" >&5
2591 . "$ac_site_file" \
2592 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594 as_fn_error $? "failed to load site script $ac_site_file
2595 See \`config.log' for more details" "$LINENO" 5; }
2596 fi
2597 done
2598
2599 if test -r "$cache_file"; then
2600 # Some versions of bash will fail to source /dev/null (special files
2601 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2602 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604 $as_echo "$as_me: loading cache $cache_file" >&6;}
2605 case $cache_file in
2606 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607 *) . "./$cache_file";;
2608 esac
2609 fi
2610 else
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612 $as_echo "$as_me: creating cache $cache_file" >&6;}
2613 >$cache_file
2614 fi
2615
2616 as_fn_append ac_header_list " stdlib.h"
2617 as_fn_append ac_header_list " unistd.h"
2618 as_fn_append ac_header_list " sys/param.h"
2619 # Check that the precious variables saved in the cache have kept the same
2620 # value.
2621 ac_cache_corrupted=false
2622 for ac_var in $ac_precious_vars; do
2623 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624 eval ac_new_set=\$ac_env_${ac_var}_set
2625 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626 eval ac_new_val=\$ac_env_${ac_var}_value
2627 case $ac_old_set,$ac_new_set in
2628 set,)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,set)
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635 ac_cache_corrupted=: ;;
2636 ,);;
2637 *)
2638 if test "x$ac_old_val" != "x$ac_new_val"; then
2639 # differences in whitespace do not lead to failure.
2640 ac_old_val_w=`echo x $ac_old_val`
2641 ac_new_val_w=`echo x $ac_new_val`
2642 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645 ac_cache_corrupted=:
2646 else
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649 eval $ac_var=\$ac_old_val
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2652 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2654 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2655 fi;;
2656 esac
2657 # Pass precious variables to config.status.
2658 if test "$ac_new_set" = set; then
2659 case $ac_new_val in
2660 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661 *) ac_arg=$ac_var=$ac_new_val ;;
2662 esac
2663 case " $ac_configure_args " in
2664 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2665 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666 esac
2667 fi
2668 done
2669 if $ac_cache_corrupted; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675 fi
2676 ## -------------------- ##
2677 ## Main body of script. ##
2678 ## -------------------- ##
2679
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685
2686
2687
2688 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2689
2690
2691 ################################################################################
2692 ac_aux_dir=
2693 for ac_dir in autoconf "$srcdir"/autoconf; do
2694 if test -f "$ac_dir/install-sh"; then
2695 ac_aux_dir=$ac_dir
2696 ac_install_sh="$ac_aux_dir/install-sh -c"
2697 break
2698 elif test -f "$ac_dir/install.sh"; then
2699 ac_aux_dir=$ac_dir
2700 ac_install_sh="$ac_aux_dir/install.sh -c"
2701 break
2702 elif test -f "$ac_dir/shtool"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/shtool install -c"
2705 break
2706 fi
2707 done
2708 if test -z "$ac_aux_dir"; then
2709 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2710 fi
2711
2712 # These three variables are undocumented and unsupported,
2713 # and are intended to be withdrawn in a future Autoconf release.
2714 # They can cause serious problems if a builder's source tree is in a directory
2715 # whose full name contains unusual characters.
2716 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2717 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2718 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2719
2720
2721
2722 ################################################################################
2723 # Make sure we can run config.sub.
2724 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2725 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2728 $as_echo_n "checking build system type... " >&6; }
2729 if test "${ac_cv_build+set}" = set; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 ac_build_alias=$build_alias
2733 test "x$ac_build_alias" = x &&
2734 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2735 test "x$ac_build_alias" = x &&
2736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2737 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2738 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2739
2740 fi
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2742 $as_echo "$ac_cv_build" >&6; }
2743 case $ac_cv_build in
2744 *-*-*) ;;
2745 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2746 esac
2747 build=$ac_cv_build
2748 ac_save_IFS=$IFS; IFS='-'
2749 set x $ac_cv_build
2750 shift
2751 build_cpu=$1
2752 build_vendor=$2
2753 shift; shift
2754 # Remember, the first character of IFS is used to create $*,
2755 # except with old shells:
2756 build_os=$*
2757 IFS=$ac_save_IFS
2758 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2759
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2762 $as_echo_n "checking host system type... " >&6; }
2763 if test "${ac_cv_host+set}" = set; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test "x$host_alias" = x; then
2767 ac_cv_host=$ac_cv_build
2768 else
2769 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2770 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2771 fi
2772
2773 fi
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2775 $as_echo "$ac_cv_host" >&6; }
2776 case $ac_cv_host in
2777 *-*-*) ;;
2778 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2779 esac
2780 host=$ac_cv_host
2781 ac_save_IFS=$IFS; IFS='-'
2782 set x $ac_cv_host
2783 shift
2784 host_cpu=$1
2785 host_vendor=$2
2786 shift; shift
2787 # Remember, the first character of IFS is used to create $*,
2788 # except with old shells:
2789 host_os=$*
2790 IFS=$ac_save_IFS
2791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2792
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2795 $as_echo_n "checking target system type... " >&6; }
2796 if test "${ac_cv_target+set}" = set; then :
2797 $as_echo_n "(cached) " >&6
2798 else
2799 if test "x$target_alias" = x; then
2800 ac_cv_target=$ac_cv_host
2801 else
2802 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2803 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2804 fi
2805
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2808 $as_echo "$ac_cv_target" >&6; }
2809 case $ac_cv_target in
2810 *-*-*) ;;
2811 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2812 esac
2813 target=$ac_cv_target
2814 ac_save_IFS=$IFS; IFS='-'
2815 set x $ac_cv_target
2816 shift
2817 target_cpu=$1
2818 target_vendor=$2
2819 shift; shift
2820 # Remember, the first character of IFS is used to create $*,
2821 # except with old shells:
2822 target_os=$*
2823 IFS=$ac_save_IFS
2824 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2825
2826
2827 # The aliases save the names the user supplied, while $host etc.
2828 # will get canonicalized.
2829 test -n "$target_alias" &&
2830 test "$program_prefix$program_suffix$program_transform_name" = \
2831 NONENONEs,x,x, &&
2832 program_prefix=${target_alias}-
2833
2834 case "$host_os" in
2835 linux*)
2836 CFLAGS="$CFLAGS"
2837 COPTIMISE_FLAG="-O2"
2838 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2839 ELDFLAGS="-Wl,--export-dynamic"
2840 # FIXME Generate list and use --dynamic-list=.dlopen.sym
2841 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2842 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2843 LDDEPS="$LDDEPS .export.sym"
2844 LIB_SUFFIX=so
2845 DEVMAPPER=yes
2846 LVMETAD=no
2847 ODIRECT=yes
2848 DM_IOCTLS=yes
2849 SELINUX=yes
2850 CLUSTER=internal
2851 FSADM=yes
2852 ;;
2853 darwin*)
2854 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2855 COPTIMISE_FLAG="-O2"
2856 CLDFLAGS="$CLDFLAGS"
2857 ELDFLAGS=
2858 CLDWHOLEARCHIVE="-all_load"
2859 CLDNOWHOLEARCHIVE=
2860 LIB_SUFFIX=dylib
2861 DEVMAPPER=yes
2862 ODIRECT=no
2863 DM_IOCTLS=no
2864 SELINUX=no
2865 CLUSTER=none
2866 FSADM=no
2867 ;;
2868 esac
2869
2870 ################################################################################
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2872 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2873 if test "${ac_cv_path_SED+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2877 for ac_i in 1 2 3 4 5 6 7; do
2878 ac_script="$ac_script$as_nl$ac_script"
2879 done
2880 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2881 { ac_script=; unset ac_script;}
2882 if test -z "$SED"; then
2883 ac_path_SED_found=false
2884 # Loop through the user's path and test for each of PROGNAME-LIST
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_prog in sed gsed; do
2891 for ac_exec_ext in '' $ac_executable_extensions; do
2892 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2893 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2894 # Check for GNU ac_path_SED and select it if it is found.
2895 # Check for GNU $ac_path_SED
2896 case `"$ac_path_SED" --version 2>&1` in
2897 *GNU*)
2898 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2899 *)
2900 ac_count=0
2901 $as_echo_n 0123456789 >"conftest.in"
2902 while :
2903 do
2904 cat "conftest.in" "conftest.in" >"conftest.tmp"
2905 mv "conftest.tmp" "conftest.in"
2906 cp "conftest.in" "conftest.nl"
2907 $as_echo '' >> "conftest.nl"
2908 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2909 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2910 as_fn_arith $ac_count + 1 && ac_count=$as_val
2911 if test $ac_count -gt ${ac_path_SED_max-0}; then
2912 # Best one so far, save it but keep looking for a better one
2913 ac_cv_path_SED="$ac_path_SED"
2914 ac_path_SED_max=$ac_count
2915 fi
2916 # 10*(2^10) chars as input seems more than enough
2917 test $ac_count -gt 10 && break
2918 done
2919 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2920 esac
2921
2922 $ac_path_SED_found && break 3
2923 done
2924 done
2925 done
2926 IFS=$as_save_IFS
2927 if test -z "$ac_cv_path_SED"; then
2928 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2929 fi
2930 else
2931 ac_cv_path_SED=$SED
2932 fi
2933
2934 fi
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2936 $as_echo "$ac_cv_path_SED" >&6; }
2937 SED="$ac_cv_path_SED"
2938 rm -f conftest.sed
2939
2940 for ac_prog in gawk mawk nawk awk
2941 do
2942 # Extract the first word of "$ac_prog", so it can be a program name with args.
2943 set dummy $ac_prog; ac_word=$2
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 $as_echo_n "checking for $ac_word... " >&6; }
2946 if test "${ac_cv_prog_AWK+set}" = set; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 if test -n "$AWK"; then
2950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959 ac_cv_prog_AWK="$ac_prog"
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 break 2
2962 fi
2963 done
2964 done
2965 IFS=$as_save_IFS
2966
2967 fi
2968 fi
2969 AWK=$ac_cv_prog_AWK
2970 if test -n "$AWK"; then
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972 $as_echo "$AWK" >&6; }
2973 else
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 $as_echo "no" >&6; }
2976 fi
2977
2978
2979 test -n "$AWK" && break
2980 done
2981
2982 ac_ext=c
2983 ac_cpp='$CPP $CPPFLAGS'
2984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987 if test -n "$ac_tool_prefix"; then
2988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if test "${ac_cv_prog_CC+set}" = set; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009 done
3010 done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025 fi
3026 if test -z "$ac_cv_prog_CC"; then
3027 ac_ct_CC=$CC
3028 # Extract the first word of "gcc", so it can be a program name with args.
3029 set dummy gcc; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3033 $as_echo_n "(cached) " >&6
3034 else
3035 if test -n "$ac_ct_CC"; then
3036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045 ac_cv_prog_ac_ct_CC="gcc"
3046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3056 if test -n "$ac_ct_CC"; then
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3058 $as_echo "$ac_ct_CC" >&6; }
3059 else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064 if test "x$ac_ct_CC" = x; then
3065 CC=""
3066 else
3067 case $cross_compiling:$ac_tool_warned in
3068 yes:)
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3071 ac_tool_warned=yes ;;
3072 esac
3073 CC=$ac_ct_CC
3074 fi
3075 else
3076 CC="$ac_cv_prog_CC"
3077 fi
3078
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}cc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_CC+set}" = set; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098 ac_cv_prog_CC="${ac_tool_prefix}cc"
3099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 fi
3120 if test -z "$CC"; then
3121 # Extract the first word of "cc", so it can be a program name with args.
3122 set dummy cc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if test "${ac_cv_prog_CC+set}" = set; then :
3126 $as_echo_n "(cached) " >&6
3127 else
3128 if test -n "$CC"; then
3129 ac_cv_prog_CC="$CC" # Let the user override the test.
3130 else
3131 ac_prog_rejected=no
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3140 ac_prog_rejected=yes
3141 continue
3142 fi
3143 ac_cv_prog_CC="cc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 if test $ac_prog_rejected = yes; then
3152 # We found a bogon in the path, so make sure we never use it.
3153 set dummy $ac_cv_prog_CC
3154 shift
3155 if test $# != 0; then
3156 # We chose a different compiler from the bogus one.
3157 # However, it has the same basename, so the bogon will be chosen
3158 # first if we set CC to just the basename; use the full file name.
3159 shift
3160 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3161 fi
3162 fi
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175 fi
3176 if test -z "$CC"; then
3177 if test -n "$ac_tool_prefix"; then
3178 for ac_prog in cl.exe
3179 do
3180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_CC+set}" = set; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 if test -n "$CC"; then
3188 ac_cv_prog_CC="$CC" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193 IFS=$as_save_IFS
3194 test -z "$as_dir" && as_dir=.
3195 for ac_exec_ext in '' $ac_executable_extensions; do
3196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 break 2
3200 fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 CC=$ac_cv_prog_CC
3208 if test -n "$CC"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 $as_echo "$CC" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217 test -n "$CC" && break
3218 done
3219 fi
3220 if test -z "$CC"; then
3221 ac_ct_CC=$CC
3222 for ac_prog in cl.exe
3223 do
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$ac_ct_CC"; then
3232 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241 ac_cv_prog_ac_ct_CC="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245 done
3246 done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252 if test -n "$ac_ct_CC"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3254 $as_echo "$ac_ct_CC" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 test -n "$ac_ct_CC" && break
3262 done
3263
3264 if test "x$ac_ct_CC" = x; then
3265 CC=""
3266 else
3267 case $cross_compiling:$ac_tool_warned in
3268 yes:)
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3271 ac_tool_warned=yes ;;
3272 esac
3273 CC=$ac_ct_CC
3274 fi
3275 fi
3276
3277 fi
3278
3279
3280 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3282 as_fn_error $? "no acceptable C compiler found in \$PATH
3283 See \`config.log' for more details" "$LINENO" 5; }
3284
3285 # Provide some information about the compiler.
3286 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3287 set X $ac_compile
3288 ac_compiler=$2
3289 for ac_option in --version -v -V -qversion; do
3290 { { ac_try="$ac_compiler $ac_option >&5"
3291 case "(($ac_try" in
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3294 esac
3295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3296 $as_echo "$ac_try_echo"; } >&5
3297 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3298 ac_status=$?
3299 if test -s conftest.err; then
3300 sed '10a\
3301 ... rest of stderr output deleted ...
3302 10q' conftest.err >conftest.er1
3303 cat conftest.er1 >&5
3304 fi
3305 rm -f conftest.er1 conftest.err
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }
3308 done
3309
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 ac_clean_files_save=$ac_clean_files
3322 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3323 # Try to create an executable without -o first, disregard a.out.
3324 # It will help us diagnose broken compilers, and finding out an intuition
3325 # of exeext.
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3327 $as_echo_n "checking whether the C compiler works... " >&6; }
3328 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3329
3330 # The possible output files:
3331 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3332
3333 ac_rmfiles=
3334 for ac_file in $ac_files
3335 do
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3339 esac
3340 done
3341 rm -f $ac_rmfiles
3342
3343 if { { ac_try="$ac_link_default"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_link_default") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; then :
3354 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3355 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3356 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3357 # so that the user can short-circuit this test for compilers unknown to
3358 # Autoconf.
3359 for ac_file in $ac_files ''
3360 do
3361 test -f "$ac_file" || continue
3362 case $ac_file in
3363 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3364 ;;
3365 [ab].out )
3366 # We found the default executable, but exeext='' is most
3367 # certainly right.
3368 break;;
3369 *.* )
3370 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3371 then :; else
3372 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3373 fi
3374 # We set ac_cv_exeext here because the later test for it is not
3375 # safe: cross compilers may not add the suffix if given an `-o'
3376 # argument, so we may need to know it at that point already.
3377 # Even if this section looks crufty: it has the advantage of
3378 # actually working.
3379 break;;
3380 * )
3381 break;;
3382 esac
3383 done
3384 test "$ac_cv_exeext" = no && ac_cv_exeext=
3385
3386 else
3387 ac_file=''
3388 fi
3389 if test -z "$ac_file"; then :
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3391 $as_echo "no" >&6; }
3392 $as_echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3397 as_fn_error 77 "C compiler cannot create executables
3398 See \`config.log' for more details" "$LINENO" 5; }
3399 else
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3404 $as_echo_n "checking for C compiler default output file name... " >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3406 $as_echo "$ac_file" >&6; }
3407 ac_exeext=$ac_cv_exeext
3408
3409 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3410 ac_clean_files=$ac_clean_files_save
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3412 $as_echo_n "checking for suffix of executables... " >&6; }
3413 if { { ac_try="$ac_link"
3414 case "(($ac_try" in
3415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3416 *) ac_try_echo=$ac_try;;
3417 esac
3418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3419 $as_echo "$ac_try_echo"; } >&5
3420 (eval "$ac_link") 2>&5
3421 ac_status=$?
3422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3423 test $ac_status = 0; }; then :
3424 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3425 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3426 # work properly (i.e., refer to `conftest.exe'), while it won't with
3427 # `rm'.
3428 for ac_file in conftest.exe conftest conftest.*; do
3429 test -f "$ac_file" || continue
3430 case $ac_file in
3431 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3432 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 break;;
3434 * ) break;;
3435 esac
3436 done
3437 else
3438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3440 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3441 See \`config.log' for more details" "$LINENO" 5; }
3442 fi
3443 rm -f conftest conftest$ac_cv_exeext
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3445 $as_echo "$ac_cv_exeext" >&6; }
3446
3447 rm -f conftest.$ac_ext
3448 EXEEXT=$ac_cv_exeext
3449 ac_exeext=$EXEEXT
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452 #include <stdio.h>
3453 int
3454 main ()
3455 {
3456 FILE *f = fopen ("conftest.out", "w");
3457 return ferror (f) || fclose (f) != 0;
3458
3459 ;
3460 return 0;
3461 }
3462 _ACEOF
3463 ac_clean_files="$ac_clean_files conftest.out"
3464 # Check that the compiler produces executables we can run. If not, either
3465 # the compiler is broken, or we cross compile.
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3467 $as_echo_n "checking whether we are cross compiling... " >&6; }
3468 if test "$cross_compiling" != yes; then
3469 { { ac_try="$ac_link"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3475 $as_echo "$ac_try_echo"; } >&5
3476 (eval "$ac_link") 2>&5
3477 ac_status=$?
3478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3479 test $ac_status = 0; }
3480 if { ac_try='./conftest$ac_cv_exeext'
3481 { { case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3486 $as_echo "$ac_try_echo"; } >&5
3487 (eval "$ac_try") 2>&5
3488 ac_status=$?
3489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3490 test $ac_status = 0; }; }; then
3491 cross_compiling=no
3492 else
3493 if test "$cross_compiling" = maybe; then
3494 cross_compiling=yes
3495 else
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $? "cannot run C compiled programs.
3499 If you meant to cross compile, use \`--host'.
3500 See \`config.log' for more details" "$LINENO" 5; }
3501 fi
3502 fi
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3505 $as_echo "$cross_compiling" >&6; }
3506
3507 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3508 ac_clean_files=$ac_clean_files_save
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3510 $as_echo_n "checking for suffix of object files... " >&6; }
3511 if test "${ac_cv_objext+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3516
3517 int
3518 main ()
3519 {
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 rm -f conftest.o conftest.obj
3526 if { { ac_try="$ac_compile"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533 (eval "$ac_compile") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536 test $ac_status = 0; }; then :
3537 for ac_file in conftest.o conftest.obj conftest.*; do
3538 test -f "$ac_file" || continue;
3539 case $ac_file in
3540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3541 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3542 break;;
3543 esac
3544 done
3545 else
3546 $as_echo "$as_me: failed program was:" >&5
3547 sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "cannot compute suffix of object files: cannot compile
3552 See \`config.log' for more details" "$LINENO" 5; }
3553 fi
3554 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3557 $as_echo "$ac_cv_objext" >&6; }
3558 OBJEXT=$ac_cv_objext
3559 ac_objext=$OBJEXT
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3561 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3562 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3563 $as_echo_n "(cached) " >&6
3564 else
3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3566 /* end confdefs.h. */
3567
3568 int
3569 main ()
3570 {
3571 #ifndef __GNUC__
3572 choke me
3573 #endif
3574
3575 ;
3576 return 0;
3577 }
3578 _ACEOF
3579 if ac_fn_c_try_compile "$LINENO"; then :
3580 ac_compiler_gnu=yes
3581 else
3582 ac_compiler_gnu=no
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3586
3587 fi
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3589 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3590 if test $ac_compiler_gnu = yes; then
3591 GCC=yes
3592 else
3593 GCC=
3594 fi
3595 ac_test_CFLAGS=${CFLAGS+set}
3596 ac_save_CFLAGS=$CFLAGS
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3598 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3599 if test "${ac_cv_prog_cc_g+set}" = set; then :
3600 $as_echo_n "(cached) " >&6
3601 else
3602 ac_save_c_werror_flag=$ac_c_werror_flag
3603 ac_c_werror_flag=yes
3604 ac_cv_prog_cc_g=no
3605 CFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3608
3609 int
3610 main ()
3611 {
3612
3613 ;
3614 return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_prog_cc_g=yes
3619 else
3620 CFLAGS=""
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3623
3624 int
3625 main ()
3626 {
3627
3628 ;
3629 return 0;
3630 }
3631 _ACEOF
3632 if ac_fn_c_try_compile "$LINENO"; then :
3633
3634 else
3635 ac_c_werror_flag=$ac_save_c_werror_flag
3636 CFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3639
3640 int
3641 main ()
3642 {
3643
3644 ;
3645 return 0;
3646 }
3647 _ACEOF
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_g=yes
3650 fi
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 fi
3653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 fi
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3659 $as_echo "$ac_cv_prog_cc_g" >&6; }
3660 if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662 elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3664 CFLAGS="-g -O2"
3665 else
3666 CFLAGS="-g"
3667 fi
3668 else
3669 if test "$GCC" = yes; then
3670 CFLAGS="-O2"
3671 else
3672 CFLAGS=
3673 fi
3674 fi
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3676 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3677 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 ac_cv_prog_cc_c89=no
3681 ac_save_CC=$CC
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684 #include <stdarg.h>
3685 #include <stdio.h>
3686 #include <sys/types.h>
3687 #include <sys/stat.h>
3688 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3689 struct buf { int x; };
3690 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3691 static char *e (p, i)
3692 char **p;
3693 int i;
3694 {
3695 return p[i];
3696 }
3697 static char *f (char * (*g) (char **, int), char **p, ...)
3698 {
3699 char *s;
3700 va_list v;
3701 va_start (v,p);
3702 s = g (p, va_arg (v,int));
3703 va_end (v);
3704 return s;
3705 }
3706
3707 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3708 function prototypes and stuff, but not '\xHH' hex character constants.
3709 These don't provoke an error unfortunately, instead are silently treated
3710 as 'x'. The following induces an error, until -std is added to get
3711 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3712 array size at least. It's necessary to write '\x00'==0 to get something
3713 that's true only with -std. */
3714 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3715
3716 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3717 inside strings and character constants. */
3718 #define FOO(x) 'x'
3719 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3720
3721 int test (int i, double x);
3722 struct s1 {int (*f) (int a);};
3723 struct s2 {int (*f) (double a);};
3724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3725 int argc;
3726 char **argv;
3727 int
3728 main ()
3729 {
3730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3736 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3737 do
3738 CC="$ac_save_CC $ac_arg"
3739 if ac_fn_c_try_compile "$LINENO"; then :
3740 ac_cv_prog_cc_c89=$ac_arg
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext
3743 test "x$ac_cv_prog_cc_c89" != "xno" && break
3744 done
3745 rm -f conftest.$ac_ext
3746 CC=$ac_save_CC
3747
3748 fi
3749 # AC_CACHE_VAL
3750 case "x$ac_cv_prog_cc_c89" in
3751 x)
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3753 $as_echo "none needed" >&6; } ;;
3754 xno)
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3756 $as_echo "unsupported" >&6; } ;;
3757 *)
3758 CC="$CC $ac_cv_prog_cc_c89"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3760 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3761 esac
3762 if test "x$ac_cv_prog_cc_c89" != xno; then :
3763
3764 fi
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772
3773
3774 ac_ext=c
3775 ac_cpp='$CPP $CPPFLAGS'
3776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3780 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3781 # On Suns, sometimes $CPP names a directory.
3782 if test -n "$CPP" && test -d "$CPP"; then
3783 CPP=
3784 fi
3785 if test -z "$CPP"; then
3786 if test "${ac_cv_prog_CPP+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 # Double quotes because CPP needs to be expanded
3790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3791 do
3792 ac_preproc_ok=false
3793 for ac_c_preproc_warn_flag in '' yes
3794 do
3795 # Use a header file that comes with gcc, so configuring glibc
3796 # with a fresh cross-compiler works.
3797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 # <limits.h> exists even on freestanding compilers.
3799 # On the NeXT, cc -E runs the code through the compiler's parser,
3800 # not just through cpp. "Syntax error" is here to catch this case.
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3803 #ifdef __STDC__
3804 # include <limits.h>
3805 #else
3806 # include <assert.h>
3807 #endif
3808 Syntax error
3809 _ACEOF
3810 if ac_fn_c_try_cpp "$LINENO"; then :
3811
3812 else
3813 # Broken: fails on valid input.
3814 continue
3815 fi
3816 rm -f conftest.err conftest.$ac_ext
3817
3818 # OK, works on sane cases. Now check whether nonexistent headers
3819 # can be detected and how.
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821 /* end confdefs.h. */
3822 #include <ac_nonexistent.h>
3823 _ACEOF
3824 if ac_fn_c_try_cpp "$LINENO"; then :
3825 # Broken: success on invalid input.
3826 continue
3827 else
3828 # Passes both tests.
3829 ac_preproc_ok=:
3830 break
3831 fi
3832 rm -f conftest.err conftest.$ac_ext
3833
3834 done
3835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836 rm -f conftest.err conftest.$ac_ext
3837 if $ac_preproc_ok; then :
3838 break
3839 fi
3840
3841 done
3842 ac_cv_prog_CPP=$CPP
3843
3844 fi
3845 CPP=$ac_cv_prog_CPP
3846 else
3847 ac_cv_prog_CPP=$CPP
3848 fi
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3850 $as_echo "$CPP" >&6; }
3851 ac_preproc_ok=false
3852 for ac_c_preproc_warn_flag in '' yes
3853 do
3854 # Use a header file that comes with gcc, so configuring glibc
3855 # with a fresh cross-compiler works.
3856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857 # <limits.h> exists even on freestanding compilers.
3858 # On the NeXT, cc -E runs the code through the compiler's parser,
3859 # not just through cpp. "Syntax error" is here to catch this case.
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3862 #ifdef __STDC__
3863 # include <limits.h>
3864 #else
3865 # include <assert.h>
3866 #endif
3867 Syntax error
3868 _ACEOF
3869 if ac_fn_c_try_cpp "$LINENO"; then :
3870
3871 else
3872 # Broken: fails on valid input.
3873 continue
3874 fi
3875 rm -f conftest.err conftest.$ac_ext
3876
3877 # OK, works on sane cases. Now check whether nonexistent headers
3878 # can be detected and how.
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3881 #include <ac_nonexistent.h>
3882 _ACEOF
3883 if ac_fn_c_try_cpp "$LINENO"; then :
3884 # Broken: success on invalid input.
3885 continue
3886 else
3887 # Passes both tests.
3888 ac_preproc_ok=:
3889 break
3890 fi
3891 rm -f conftest.err conftest.$ac_ext
3892
3893 done
3894 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3895 rm -f conftest.err conftest.$ac_ext
3896 if $ac_preproc_ok; then :
3897
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3902 See \`config.log' for more details" "$LINENO" 5; }
3903 fi
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910
3911
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3913 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3914 if test "${ac_cv_path_GREP+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
3916 else
3917 if test -z "$GREP"; then
3918 ac_path_GREP_found=false
3919 # Loop through the user's path and test for each of PROGNAME-LIST
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922 do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_prog in grep ggrep; do
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3928 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3929 # Check for GNU ac_path_GREP and select it if it is found.
3930 # Check for GNU $ac_path_GREP
3931 case `"$ac_path_GREP" --version 2>&1` in
3932 *GNU*)
3933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3934 *)
3935 ac_count=0
3936 $as_echo_n 0123456789 >"conftest.in"
3937 while :
3938 do
3939 cat "conftest.in" "conftest.in" >"conftest.tmp"
3940 mv "conftest.tmp" "conftest.in"
3941 cp "conftest.in" "conftest.nl"
3942 $as_echo 'GREP' >> "conftest.nl"
3943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945 as_fn_arith $ac_count + 1 && ac_count=$as_val
3946 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3947 # Best one so far, save it but keep looking for a better one
3948 ac_cv_path_GREP="$ac_path_GREP"
3949 ac_path_GREP_max=$ac_count
3950 fi
3951 # 10*(2^10) chars as input seems more than enough
3952 test $ac_count -gt 10 && break
3953 done
3954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955 esac
3956
3957 $ac_path_GREP_found && break 3
3958 done
3959 done
3960 done
3961 IFS=$as_save_IFS
3962 if test -z "$ac_cv_path_GREP"; then
3963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3964 fi
3965 else
3966 ac_cv_path_GREP=$GREP
3967 fi
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3971 $as_echo "$ac_cv_path_GREP" >&6; }
3972 GREP="$ac_cv_path_GREP"
3973
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3976 $as_echo_n "checking for egrep... " >&6; }
3977 if test "${ac_cv_path_EGREP+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3981 then ac_cv_path_EGREP="$GREP -E"
3982 else
3983 if test -z "$EGREP"; then
3984 ac_path_EGREP_found=false
3985 # Loop through the user's path and test for each of PROGNAME-LIST
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in egrep; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3994 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3995 # Check for GNU ac_path_EGREP and select it if it is found.
3996 # Check for GNU $ac_path_EGREP
3997 case `"$ac_path_EGREP" --version 2>&1` in
3998 *GNU*)
3999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4000 *)
4001 ac_count=0
4002 $as_echo_n 0123456789 >"conftest.in"
4003 while :
4004 do
4005 cat "conftest.in" "conftest.in" >"conftest.tmp"
4006 mv "conftest.tmp" "conftest.in"
4007 cp "conftest.in" "conftest.nl"
4008 $as_echo 'EGREP' >> "conftest.nl"
4009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4011 as_fn_arith $ac_count + 1 && ac_count=$as_val
4012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4013 # Best one so far, save it but keep looking for a better one
4014 ac_cv_path_EGREP="$ac_path_EGREP"
4015 ac_path_EGREP_max=$ac_count
4016 fi
4017 # 10*(2^10) chars as input seems more than enough
4018 test $ac_count -gt 10 && break
4019 done
4020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4021 esac
4022
4023 $ac_path_EGREP_found && break 3
4024 done
4025 done
4026 done
4027 IFS=$as_save_IFS
4028 if test -z "$ac_cv_path_EGREP"; then
4029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4030 fi
4031 else
4032 ac_cv_path_EGREP=$EGREP
4033 fi
4034
4035 fi
4036 fi
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4038 $as_echo "$ac_cv_path_EGREP" >&6; }
4039 EGREP="$ac_cv_path_EGREP"
4040
4041
4042 if test $ac_cv_c_compiler_gnu = yes; then
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4044 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4045 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 ac_pattern="Autoconf.*'x'"
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 #include <sgtty.h>
4052 Autoconf TIOCGETP
4053 _ACEOF
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4056 ac_cv_prog_gcc_traditional=yes
4057 else
4058 ac_cv_prog_gcc_traditional=no
4059 fi
4060 rm -f conftest*
4061
4062
4063 if test $ac_cv_prog_gcc_traditional = no; then
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <termio.h>
4067 Autoconf TCGETA
4068 _ACEOF
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4071 ac_cv_prog_gcc_traditional=yes
4072 fi
4073 rm -f conftest*
4074
4075 fi
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4078 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4079 if test $ac_cv_prog_gcc_traditional = yes; then
4080 CC="$CC -traditional"
4081 fi
4082 fi
4083
4084 # Find a good install program. We prefer a C program (faster),
4085 # so one script is as good as another. But avoid the broken or
4086 # incompatible versions:
4087 # SysV /etc/install, /usr/sbin/install
4088 # SunOS /usr/etc/install
4089 # IRIX /sbin/install
4090 # AIX /bin/install
4091 # AmigaOS /C/install, which installs bootblocks on floppy discs
4092 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4093 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4094 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4095 # OS/2's system install, which has a completely different semantic
4096 # ./install, which can be erroneously created by make from ./install.sh.
4097 # Reject install programs that cannot install multiple files.
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4099 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4100 if test -z "$INSTALL"; then
4101 if test "${ac_cv_path_install+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107 IFS=$as_save_IFS
4108 test -z "$as_dir" && as_dir=.
4109 # Account for people who put trailing slashes in PATH elements.
4110 case $as_dir/ in #((
4111 ./ | .// | /[cC]/* | \
4112 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4113 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4114 /usr/ucb/* ) ;;
4115 *)
4116 # OSF1 and SCO ODT 3.0 have their own names for install.
4117 # Don't use installbsd from OSF since it installs stuff as root
4118 # by default.
4119 for ac_prog in ginstall scoinst install; do
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4122 if test $ac_prog = install &&
4123 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4124 # AIX install. It has an incompatible calling convention.
4125 :
4126 elif test $ac_prog = install &&
4127 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4128 # program-specific install script used by HP pwplus--don't use.
4129 :
4130 else
4131 rm -rf conftest.one conftest.two conftest.dir
4132 echo one > conftest.one
4133 echo two > conftest.two
4134 mkdir conftest.dir
4135 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4136 test -s conftest.one && test -s conftest.two &&
4137 test -s conftest.dir/conftest.one &&
4138 test -s conftest.dir/conftest.two
4139 then
4140 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4141 break 3
4142 fi
4143 fi
4144 fi
4145 done
4146 done
4147 ;;
4148 esac
4149
4150 done
4151 IFS=$as_save_IFS
4152
4153 rm -rf conftest.one conftest.two conftest.dir
4154
4155 fi
4156 if test "${ac_cv_path_install+set}" = set; then
4157 INSTALL=$ac_cv_path_install
4158 else
4159 # As a last resort, use the slow shell script. Don't cache a
4160 # value for INSTALL within a source directory, because that will
4161 # break other packages using the cache if that directory is
4162 # removed, or if the value is a relative name.
4163 INSTALL=$ac_install_sh
4164 fi
4165 fi
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4167 $as_echo "$INSTALL" >&6; }
4168
4169 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4170 # It thinks the first close brace ends the variable substitution.
4171 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4172
4173 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4174
4175 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4176
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4178 $as_echo_n "checking whether ln -s works... " >&6; }
4179 LN_S=$as_ln_s
4180 if test "$LN_S" = "ln -s"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4182 $as_echo "yes" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4185 $as_echo "no, using $LN_S" >&6; }
4186 fi
4187
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4190 set x ${MAKE-make}
4191 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4192 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 cat >conftest.make <<\_ACEOF
4196 SHELL = /bin/sh
4197 all:
4198 @echo '@@@%%%=$(MAKE)=@@@%%%'
4199 _ACEOF
4200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4202 *@@@%%%=?*=@@@%%%*)
4203 eval ac_cv_prog_make_${ac_make}_set=yes;;
4204 *)
4205 eval ac_cv_prog_make_${ac_make}_set=no;;
4206 esac
4207 rm -f conftest.make
4208 fi
4209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4211 $as_echo "yes" >&6; }
4212 SET_MAKE=
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 SET_MAKE="MAKE=${MAKE-make}"
4217 fi
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4220 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4221 if test -z "$MKDIR_P"; then
4222 if test "${ac_cv_path_mkdir+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4227 do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_prog in mkdir gmkdir; do
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4233 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4234 'mkdir (GNU coreutils) '* | \
4235 'mkdir (coreutils) '* | \
4236 'mkdir (fileutils) '4.1*)
4237 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4238 break 3;;
4239 esac
4240 done
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245 fi
4246
4247 test -d ./--version && rmdir ./--version
4248 if test "${ac_cv_path_mkdir+set}" = set; then
4249 MKDIR_P="$ac_cv_path_mkdir -p"
4250 else
4251 # As a last resort, use the slow shell script. Don't cache a
4252 # value for MKDIR_P within a source directory, because that will
4253 # break other packages using the cache if that directory is
4254 # removed, or if the value is a relative name.
4255 MKDIR_P="$ac_install_sh -d"
4256 fi
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4259 $as_echo "$MKDIR_P" >&6; }
4260
4261 if test -n "$ac_tool_prefix"; then
4262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265 $as_echo_n "checking for $ac_word... " >&6; }
4266 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
4268 else
4269 if test -n "$RANLIB"; then
4270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4271 else
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH
4274 do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4281 break 2
4282 fi
4283 done
4284 done
4285 IFS=$as_save_IFS
4286
4287 fi
4288 fi
4289 RANLIB=$ac_cv_prog_RANLIB
4290 if test -n "$RANLIB"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4292 $as_echo "$RANLIB" >&6; }
4293 else
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299 fi
4300 if test -z "$ac_cv_prog_RANLIB"; then
4301 ac_ct_RANLIB=$RANLIB
4302 # Extract the first word of "ranlib", so it can be a program name with args.
4303 set dummy ranlib; ac_word=$2
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$ac_ct_RANLIB"; then
4310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_ac_ct_RANLIB="ranlib"
4320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4322 fi
4323 done
4324 done
4325 IFS=$as_save_IFS
4326
4327 fi
4328 fi
4329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4330 if test -n "$ac_ct_RANLIB"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4332 $as_echo "$ac_ct_RANLIB" >&6; }
4333 else
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 fi
4337
4338 if test "x$ac_ct_RANLIB" = x; then
4339 RANLIB=":"
4340 else
4341 case $cross_compiling:$ac_tool_warned in
4342 yes:)
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4345 ac_tool_warned=yes ;;
4346 esac
4347 RANLIB=$ac_ct_RANLIB
4348 fi
4349 else
4350 RANLIB="$ac_cv_prog_RANLIB"
4351 fi
4352
4353 # Extract the first word of "cflow", so it can be a program name with args.
4354 set dummy cflow; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 case $CFLOW_CMD in
4361 [\\/]* | ?:[\\/]*)
4362 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4363 ;;
4364 *)
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 ;;
4381 esac
4382 fi
4383 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4384 if test -n "$CFLOW_CMD"; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4386 $as_echo "$CFLOW_CMD" >&6; }
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 fi
4391
4392
4393 # Extract the first word of "cscope", so it can be a program name with args.
4394 set dummy cscope; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 case $CSCOPE_CMD in
4401 [\\/]* | ?:[\\/]*)
4402 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4403 ;;
4404 *)
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 ;;
4421 esac
4422 fi
4423 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4424 if test -n "$CSCOPE_CMD"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4426 $as_echo "$CSCOPE_CMD" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4430 fi
4431
4432
4433
4434 ################################################################################
4435 ac_header_dirent=no
4436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4437 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4439 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4440 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <sys/types.h>
4446 #include <$ac_hdr>
4447
4448 int
4449 main ()
4450 {
4451 if ((DIR *) 0)
4452 return 0;
4453 ;
4454 return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458 eval "$as_ac_Header=yes"
4459 else
4460 eval "$as_ac_Header=no"
4461 fi
4462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 fi
4464 eval ac_res=\$$as_ac_Header
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4466 $as_echo "$ac_res" >&6; }
4467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4468 cat >>confdefs.h <<_ACEOF
4469 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4470 _ACEOF
4471
4472 ac_header_dirent=$ac_hdr; break
4473 fi
4474
4475 done
4476 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4477 if test $ac_header_dirent = dirent.h; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4479 $as_echo_n "checking for library containing opendir... " >&6; }
4480 if test "${ac_cv_search_opendir+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 ac_func_search_save_LIBS=$LIBS
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4486
4487 /* Override any GCC internal prototype to avoid an error.
4488 Use char because int might match the return type of a GCC
4489 builtin and then its argument prototype would still apply. */
4490 #ifdef __cplusplus
4491 extern "C"
4492 #endif
4493 char opendir ();
4494 int
4495 main ()
4496 {
4497 return opendir ();
4498 ;
4499 return 0;
4500 }
4501 _ACEOF
4502 for ac_lib in '' dir; do
4503 if test -z "$ac_lib"; then
4504 ac_res="none required"
4505 else
4506 ac_res=-l$ac_lib
4507 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4508 fi
4509 if ac_fn_c_try_link "$LINENO"; then :
4510 ac_cv_search_opendir=$ac_res
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext \
4513 conftest$ac_exeext
4514 if test "${ac_cv_search_opendir+set}" = set; then :
4515 break
4516 fi
4517 done
4518 if test "${ac_cv_search_opendir+set}" = set; then :
4519
4520 else
4521 ac_cv_search_opendir=no
4522 fi
4523 rm conftest.$ac_ext
4524 LIBS=$ac_func_search_save_LIBS
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4527 $as_echo "$ac_cv_search_opendir" >&6; }
4528 ac_res=$ac_cv_search_opendir
4529 if test "$ac_res" != no; then :
4530 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4531
4532 fi
4533
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4536 $as_echo_n "checking for library containing opendir... " >&6; }
4537 if test "${ac_cv_search_opendir+set}" = set; then :
4538 $as_echo_n "(cached) " >&6
4539 else
4540 ac_func_search_save_LIBS=$LIBS
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543
4544 /* Override any GCC internal prototype to avoid an error.
4545 Use char because int might match the return type of a GCC
4546 builtin and then its argument prototype would still apply. */
4547 #ifdef __cplusplus
4548 extern "C"
4549 #endif
4550 char opendir ();
4551 int
4552 main ()
4553 {
4554 return opendir ();
4555 ;
4556 return 0;
4557 }
4558 _ACEOF
4559 for ac_lib in '' x; do
4560 if test -z "$ac_lib"; then
4561 ac_res="none required"
4562 else
4563 ac_res=-l$ac_lib
4564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4565 fi
4566 if ac_fn_c_try_link "$LINENO"; then :
4567 ac_cv_search_opendir=$ac_res
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext \
4570 conftest$ac_exeext
4571 if test "${ac_cv_search_opendir+set}" = set; then :
4572 break
4573 fi
4574 done
4575 if test "${ac_cv_search_opendir+set}" = set; then :
4576
4577 else
4578 ac_cv_search_opendir=no
4579 fi
4580 rm conftest.$ac_ext
4581 LIBS=$ac_func_search_save_LIBS
4582 fi
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4584 $as_echo "$ac_cv_search_opendir" >&6; }
4585 ac_res=$ac_cv_search_opendir
4586 if test "$ac_res" != no; then :
4587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4588
4589 fi
4590
4591 fi
4592
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4594 $as_echo_n "checking for ANSI C header files... " >&6; }
4595 if test "${ac_cv_header_stdc+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4597 else
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #include <stdlib.h>
4601 #include <stdarg.h>
4602 #include <string.h>
4603 #include <float.h>
4604
4605 int
4606 main ()
4607 {
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 if ac_fn_c_try_compile "$LINENO"; then :
4614 ac_cv_header_stdc=yes
4615 else
4616 ac_cv_header_stdc=no
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619
4620 if test $ac_cv_header_stdc = yes; then
4621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <string.h>
4625
4626 _ACEOF
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "memchr" >/dev/null 2>&1; then :
4629
4630 else
4631 ac_cv_header_stdc=no
4632 fi
4633 rm -f conftest*
4634
4635 fi
4636
4637 if test $ac_cv_header_stdc = yes; then
4638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h. */
4641 #include <stdlib.h>
4642
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645 $EGREP "free" >/dev/null 2>&1; then :
4646
4647 else
4648 ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest*
4651
4652 fi
4653
4654 if test $ac_cv_header_stdc = yes; then
4655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4656 if test "$cross_compiling" = yes; then :
4657 :
4658 else
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #include <ctype.h>
4662 #include <stdlib.h>
4663 #if ((' ' & 0x0FF) == 0x020)
4664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4666 #else
4667 # define ISLOWER(c) \
4668 (('a' <= (c) && (c) <= 'i') \
4669 || ('j' <= (c) && (c) <= 'r') \
4670 || ('s' <= (c) && (c) <= 'z'))
4671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4672 #endif
4673
4674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4675 int
4676 main ()
4677 {
4678 int i;
4679 for (i = 0; i < 256; i++)
4680 if (XOR (islower (i), ISLOWER (i))
4681 || toupper (i) != TOUPPER (i))
4682 return 2;
4683 return 0;
4684 }
4685 _ACEOF
4686 if ac_fn_c_try_run "$LINENO"; then :
4687
4688 else
4689 ac_cv_header_stdc=no
4690 fi
4691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4692 conftest.$ac_objext conftest.beam conftest.$ac_ext
4693 fi
4694
4695 fi
4696 fi
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4698 $as_echo "$ac_cv_header_stdc" >&6; }
4699 if test $ac_cv_header_stdc = yes; then
4700
4701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4702
4703 fi
4704
4705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4706 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4707 inttypes.h stdint.h unistd.h
4708 do :
4709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4711 "
4712 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4713 cat >>confdefs.h <<_ACEOF
4714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4715 _ACEOF
4716
4717 fi
4718
4719 done
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4723 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4724 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4725 $as_echo_n "(cached) " >&6
4726 else
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 #include <sys/types.h>
4730 int
4731 main ()
4732 {
4733 return makedev(0, 0);
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_link "$LINENO"; then :
4739 ac_cv_header_sys_types_h_makedev=yes
4740 else
4741 ac_cv_header_sys_types_h_makedev=no
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext \
4744 conftest$ac_exeext conftest.$ac_ext
4745
4746 fi
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4748 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4749
4750 if test $ac_cv_header_sys_types_h_makedev = no; then
4751 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4752 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4753
4754 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4755
4756 fi
4757
4758
4759
4760 if test $ac_cv_header_sys_mkdev_h = no; then
4761 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4762 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4763
4764 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4765
4766 fi
4767
4768
4769 fi
4770 fi
4771
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4773 $as_echo_n "checking for ANSI C header files... " >&6; }
4774 if test "${ac_cv_header_stdc+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 #include <stdlib.h>
4780 #include <stdarg.h>
4781 #include <string.h>
4782 #include <float.h>
4783
4784 int
4785 main ()
4786 {
4787
4788 ;
4789 return 0;
4790 }
4791 _ACEOF
4792 if ac_fn_c_try_compile "$LINENO"; then :
4793 ac_cv_header_stdc=yes
4794 else
4795 ac_cv_header_stdc=no
4796 fi
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798
4799 if test $ac_cv_header_stdc = yes; then
4800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 #include <string.h>
4804
4805 _ACEOF
4806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807 $EGREP "memchr" >/dev/null 2>&1; then :
4808
4809 else
4810 ac_cv_header_stdc=no
4811 fi
4812 rm -f conftest*
4813
4814 fi
4815
4816 if test $ac_cv_header_stdc = yes; then
4817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 #include <stdlib.h>
4821
4822 _ACEOF
4823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4824 $EGREP "free" >/dev/null 2>&1; then :
4825
4826 else
4827 ac_cv_header_stdc=no
4828 fi
4829 rm -f conftest*
4830
4831 fi
4832
4833 if test $ac_cv_header_stdc = yes; then
4834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4835 if test "$cross_compiling" = yes; then :
4836 :
4837 else
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4840 #include <ctype.h>
4841 #include <stdlib.h>
4842 #if ((' ' & 0x0FF) == 0x020)
4843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4845 #else
4846 # define ISLOWER(c) \
4847 (('a' <= (c) && (c) <= 'i') \
4848 || ('j' <= (c) && (c) <= 'r') \
4849 || ('s' <= (c) && (c) <= 'z'))
4850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4851 #endif
4852
4853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4854 int
4855 main ()
4856 {
4857 int i;
4858 for (i = 0; i < 256; i++)
4859 if (XOR (islower (i), ISLOWER (i))
4860 || toupper (i) != TOUPPER (i))
4861 return 2;
4862 return 0;
4863 }
4864 _ACEOF
4865 if ac_fn_c_try_run "$LINENO"; then :
4866
4867 else
4868 ac_cv_header_stdc=no
4869 fi
4870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4871 conftest.$ac_objext conftest.beam conftest.$ac_ext
4872 fi
4873
4874 fi
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4877 $as_echo "$ac_cv_header_stdc" >&6; }
4878 if test $ac_cv_header_stdc = yes; then
4879
4880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4881
4882 fi
4883
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4885 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4886 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 #include <sys/types.h>
4892 #include <sys/wait.h>
4893 #ifndef WEXITSTATUS
4894 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4895 #endif
4896 #ifndef WIFEXITED
4897 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4898 #endif
4899
4900 int
4901 main ()
4902 {
4903 int s;
4904 wait (&s);
4905 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4906 ;
4907 return 0;
4908 }
4909 _ACEOF
4910 if ac_fn_c_try_compile "$LINENO"; then :
4911 ac_cv_header_sys_wait_h=yes
4912 else
4913 ac_cv_header_sys_wait_h=no
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4918 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4919 if test $ac_cv_header_sys_wait_h = yes; then
4920
4921 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4922
4923 fi
4924
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4926 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4927 if test "${ac_cv_header_time+set}" = set; then :
4928 $as_echo_n "(cached) " >&6
4929 else
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 #include <sys/time.h>
4934 #include <time.h>
4935
4936 int
4937 main ()
4938 {
4939 if ((struct tm *) 0)
4940 return 0;
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_header_time=yes
4947 else
4948 ac_cv_header_time=no
4949 fi
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 fi
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4953 $as_echo "$ac_cv_header_time" >&6; }
4954 if test $ac_cv_header_time = yes; then
4955
4956 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4957
4958 fi
4959
4960
4961 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4962 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4963 sys/wait.h time.h
4964 do :
4965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4966 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4967 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4968 cat >>confdefs.h <<_ACEOF
4969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4970 _ACEOF
4971
4972 else
4973 as_fn_error $? "bailing out" "$LINENO" 5
4974 fi
4975
4976 done
4977
4978
4979 case "$host_os" in
4980 linux*)
4981 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4982 do :
4983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4984 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4986 cat >>confdefs.h <<_ACEOF
4987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 _ACEOF
4989
4990 else
4991 as_fn_error $? "bailing out" "$LINENO" 5
4992 fi
4993
4994 done
4995 ;;
4996 darwin*)
4997 for ac_header in machine/endian.h sys/disk.h
4998 do :
4999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5000 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5001 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5002 cat >>confdefs.h <<_ACEOF
5003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5004 _ACEOF
5005
5006 else
5007 as_fn_error $? "bailing out" "$LINENO" 5
5008 fi
5009
5010 done
5011 ;;
5012 esac
5013
5014 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5015 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5016 sys/types.h unistd.h
5017 do :
5018 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5019 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5021 cat >>confdefs.h <<_ACEOF
5022 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5023 _ACEOF
5024
5025 else
5026 as_fn_error $? "bailing out" "$LINENO" 5
5027 fi
5028
5029 done
5030
5031 for ac_header in termios.h sys/statvfs.h
5032 do :
5033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5034 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5036 cat >>confdefs.h <<_ACEOF
5037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5038 _ACEOF
5039
5040 fi
5041
5042 done
5043
5044
5045 ################################################################################
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5047 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5048 if test "${ac_cv_c_const+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* end confdefs.h. */
5053
5054 int
5055 main ()
5056 {
5057 /* FIXME: Include the comments suggested by Paul. */
5058 #ifndef __cplusplus
5059 /* Ultrix mips cc rejects this. */
5060 typedef int charset[2];
5061 const charset cs;
5062 /* SunOS 4.1.1 cc rejects this. */
5063 char const *const *pcpcc;
5064 char **ppc;
5065 /* NEC SVR4.0.2 mips cc rejects this. */
5066 struct point {int x, y;};
5067 static struct point const zero = {0,0};
5068 /* AIX XL C 1.02.0.0 rejects this.
5069 It does not let you subtract one const X* pointer from another in
5070 an arm of an if-expression whose if-part is not a constant
5071 expression */
5072 const char *g = "string";
5073 pcpcc = &g + (g ? g-g : 0);
5074 /* HPUX 7.0 cc rejects these. */
5075 ++pcpcc;
5076 ppc = (char**) pcpcc;
5077 pcpcc = (char const *const *) ppc;
5078 { /* SCO 3.2v4 cc rejects this. */
5079 char *t;
5080 char const *s = 0 ? (char *) 0 : (char const *) 0;
5081
5082 *t++ = 0;
5083 if (s) return 0;
5084 }
5085 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5086 int x[] = {25, 17};
5087 const int *foo = &x[0];
5088 ++foo;
5089 }
5090 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5091 typedef const int *iptr;
5092 iptr p = 0;
5093 ++p;
5094 }
5095 { /* AIX XL C 1.02.0.0 rejects this saying
5096 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5097 struct s { int j; const int *ap[3]; };
5098 struct s *b; b->j = 5;
5099 }
5100 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5101 const int foo = 10;
5102 if (!foo) return 0;
5103 }
5104 return !cs[0] && !zero.x;
5105 #endif
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_c_const=yes
5113 else
5114 ac_cv_c_const=no
5115 fi
5116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5119 $as_echo "$ac_cv_c_const" >&6; }
5120 if test $ac_cv_c_const = no; then
5121
5122 $as_echo "#define const /**/" >>confdefs.h
5123
5124 fi
5125
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5127 $as_echo_n "checking for inline... " >&6; }
5128 if test "${ac_cv_c_inline+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 ac_cv_c_inline=no
5132 for ac_kw in inline __inline__ __inline; do
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #ifndef __cplusplus
5136 typedef int foo_t;
5137 static $ac_kw foo_t static_foo () {return 0; }
5138 $ac_kw foo_t foo () {return 0; }
5139 #endif
5140
5141 _ACEOF
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_c_inline=$ac_kw
5144 fi
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146 test "$ac_cv_c_inline" != no && break
5147 done
5148
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5151 $as_echo "$ac_cv_c_inline" >&6; }
5152
5153 case $ac_cv_c_inline in
5154 inline | yes) ;;
5155 *)
5156 case $ac_cv_c_inline in
5157 no) ac_val=;;
5158 *) ac_val=$ac_cv_c_inline;;
5159 esac
5160 cat >>confdefs.h <<_ACEOF
5161 #ifndef __cplusplus
5162 #define inline $ac_val
5163 #endif
5164 _ACEOF
5165 ;;
5166 esac
5167
5168 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5169 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5170
5171 cat >>confdefs.h <<_ACEOF
5172 #define HAVE_STRUCT_STAT_ST_RDEV 1
5173 _ACEOF
5174
5175
5176 fi
5177
5178 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5179 if test "x$ac_cv_type_off_t" = x""yes; then :
5180
5181 else
5182
5183 cat >>confdefs.h <<_ACEOF
5184 #define off_t long int
5185 _ACEOF
5186
5187 fi
5188
5189 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5190 if test "x$ac_cv_type_pid_t" = x""yes; then :
5191
5192 else
5193
5194 cat >>confdefs.h <<_ACEOF
5195 #define pid_t int
5196 _ACEOF
5197
5198 fi
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5201 $as_echo_n "checking return type of signal handlers... " >&6; }
5202 if test "${ac_cv_type_signal+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 #include <sys/types.h>
5208 #include <signal.h>
5209
5210 int
5211 main ()
5212 {
5213 return *(signal (0, 0)) (0) == 1;
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"; then :
5219 ac_cv_type_signal=int
5220 else
5221 ac_cv_type_signal=void
5222 fi
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5224 fi
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5226 $as_echo "$ac_cv_type_signal" >&6; }
5227
5228 cat >>confdefs.h <<_ACEOF
5229 #define RETSIGTYPE $ac_cv_type_signal
5230 _ACEOF
5231
5232
5233 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5234 if test "x$ac_cv_type_size_t" = x""yes; then :
5235
5236 else
5237
5238 cat >>confdefs.h <<_ACEOF
5239 #define size_t unsigned int
5240 _ACEOF
5241
5242 fi
5243
5244 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5245 if test "x$ac_cv_type_mode_t" = x""yes; then :
5246
5247 else
5248
5249 cat >>confdefs.h <<_ACEOF
5250 #define mode_t int
5251 _ACEOF
5252
5253 fi
5254
5255 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5256 case $ac_cv_c_int8_t in #(
5257 no|yes) ;; #(
5258 *)
5259
5260 cat >>confdefs.h <<_ACEOF
5261 #define int8_t $ac_cv_c_int8_t
5262 _ACEOF
5263 ;;
5264 esac
5265
5266 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5267 case $ac_cv_c_int16_t in #(
5268 no|yes) ;; #(
5269 *)
5270
5271 cat >>confdefs.h <<_ACEOF
5272 #define int16_t $ac_cv_c_int16_t
5273 _ACEOF
5274 ;;
5275 esac
5276
5277 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5278 case $ac_cv_c_int32_t in #(
5279 no|yes) ;; #(
5280 *)
5281
5282 cat >>confdefs.h <<_ACEOF
5283 #define int32_t $ac_cv_c_int32_t
5284 _ACEOF
5285 ;;
5286 esac
5287
5288 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5289 case $ac_cv_c_int64_t in #(
5290 no|yes) ;; #(
5291 *)
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define int64_t $ac_cv_c_int64_t
5295 _ACEOF
5296 ;;
5297 esac
5298
5299 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5300 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5301
5302 else
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define ssize_t int
5306 _ACEOF
5307
5308 fi
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5311 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5312 if test "${ac_cv_type_uid_t+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 #include <sys/types.h>
5318
5319 _ACEOF
5320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5321 $EGREP "uid_t" >/dev/null 2>&1; then :
5322 ac_cv_type_uid_t=yes
5323 else
5324 ac_cv_type_uid_t=no
5325 fi
5326 rm -f conftest*
5327
5328 fi
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5330 $as_echo "$ac_cv_type_uid_t" >&6; }
5331 if test $ac_cv_type_uid_t = no; then
5332
5333 $as_echo "#define uid_t int" >>confdefs.h
5334
5335
5336 $as_echo "#define gid_t int" >>confdefs.h
5337
5338 fi
5339
5340 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5341 case $ac_cv_c_uint8_t in #(
5342 no|yes) ;; #(
5343 *)
5344
5345 $as_echo "#define _UINT8_T 1" >>confdefs.h
5346
5347
5348 cat >>confdefs.h <<_ACEOF
5349 #define uint8_t $ac_cv_c_uint8_t
5350 _ACEOF
5351 ;;
5352 esac
5353
5354 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5355 case $ac_cv_c_uint16_t in #(
5356 no|yes) ;; #(
5357 *)
5358
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define uint16_t $ac_cv_c_uint16_t
5362 _ACEOF
5363 ;;
5364 esac
5365
5366 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5367 case $ac_cv_c_uint32_t in #(
5368 no|yes) ;; #(
5369 *)
5370
5371 $as_echo "#define _UINT32_T 1" >>confdefs.h
5372
5373
5374 cat >>confdefs.h <<_ACEOF
5375 #define uint32_t $ac_cv_c_uint32_t
5376 _ACEOF
5377 ;;
5378 esac
5379
5380 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5381 case $ac_cv_c_uint64_t in #(
5382 no|yes) ;; #(
5383 *)
5384
5385 $as_echo "#define _UINT64_T 1" >>confdefs.h
5386
5387
5388 cat >>confdefs.h <<_ACEOF
5389 #define uint64_t $ac_cv_c_uint64_t
5390 _ACEOF
5391 ;;
5392 esac
5393
5394 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5395 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5396
5397 cat >>confdefs.h <<_ACEOF
5398 #define HAVE_STRUCT_STAT_ST_RDEV 1
5399 _ACEOF
5400
5401
5402 fi
5403
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5405 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5406 if test "${ac_cv_struct_tm+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5411 #include <sys/types.h>
5412 #include <time.h>
5413
5414 int
5415 main ()
5416 {
5417 struct tm tm;
5418 int *p = &tm.tm_sec;
5419 return !p;
5420 ;
5421 return 0;
5422 }
5423 _ACEOF
5424 if ac_fn_c_try_compile "$LINENO"; then :
5425 ac_cv_struct_tm=time.h
5426 else
5427 ac_cv_struct_tm=sys/time.h
5428 fi
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5432 $as_echo "$ac_cv_struct_tm" >&6; }
5433 if test $ac_cv_struct_tm = sys/time.h; then
5434
5435 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5436
5437 fi
5438
5439
5440 ################################################################################
5441 for ac_func in ftruncate gethostname getpagesize \
5442 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5443 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5444 strstr strtol strtoul uname
5445 do :
5446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5447 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5448 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5449 cat >>confdefs.h <<_ACEOF
5450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5451 _ACEOF
5452
5453 else
5454 as_fn_error $? "bailing out" "$LINENO" 5
5455 fi
5456 done
5457
5458 for ac_func in siginterrupt
5459 do :
5460 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5461 if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5462 cat >>confdefs.h <<_ACEOF
5463 #define HAVE_SIGINTERRUPT 1
5464 _ACEOF
5465
5466 fi
5467 done
5468
5469 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5470 # for constant arguments. Useless!
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5472 $as_echo_n "checking for working alloca.h... " >&6; }
5473 if test "${ac_cv_working_alloca_h+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #include <alloca.h>
5479 int
5480 main ()
5481 {
5482 char *p = (char *) alloca (2 * sizeof (int));
5483 if (p) return 0;
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_link "$LINENO"; then :
5489 ac_cv_working_alloca_h=yes
5490 else
5491 ac_cv_working_alloca_h=no
5492 fi
5493 rm -f core conftest.err conftest.$ac_objext \
5494 conftest$ac_exeext conftest.$ac_ext
5495 fi
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5497 $as_echo "$ac_cv_working_alloca_h" >&6; }
5498 if test $ac_cv_working_alloca_h = yes; then
5499
5500 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5501
5502 fi
5503
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5505 $as_echo_n "checking for alloca... " >&6; }
5506 if test "${ac_cv_func_alloca_works+set}" = set; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5511 #ifdef __GNUC__
5512 # define alloca __builtin_alloca
5513 #else
5514 # ifdef _MSC_VER
5515 # include <malloc.h>
5516 # define alloca _alloca
5517 # else
5518 # ifdef HAVE_ALLOCA_H
5519 # include <alloca.h>
5520 # else
5521 # ifdef _AIX
5522 #pragma alloca
5523 # else
5524 # ifndef alloca /* predefined by HP cc +Olibcalls */
5525 char *alloca ();
5526 # endif
5527 # endif
5528 # endif
5529 # endif
5530 #endif
5531
5532 int
5533 main ()
5534 {
5535 char *p = (char *) alloca (1);
5536 if (p) return 0;
5537 ;
5538 return 0;
5539 }
5540 _ACEOF
5541 if ac_fn_c_try_link "$LINENO"; then :
5542 ac_cv_func_alloca_works=yes
5543 else
5544 ac_cv_func_alloca_works=no
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext \
5547 conftest$ac_exeext conftest.$ac_ext
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5550 $as_echo "$ac_cv_func_alloca_works" >&6; }
5551
5552 if test $ac_cv_func_alloca_works = yes; then
5553
5554 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5555
5556 else
5557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5558 # that cause trouble. Some versions do not even contain alloca or
5559 # contain a buggy version. If you still want to use their alloca,
5560 # use ar to extract alloca.o from them instead of compiling alloca.c.
5561
5562 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5563
5564 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5568 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5569 if test "${ac_cv_os_cray+set}" = set; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #if defined CRAY && ! defined CRAY2
5575 webecray
5576 #else
5577 wenotbecray
5578 #endif
5579
5580 _ACEOF
5581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5582 $EGREP "webecray" >/dev/null 2>&1; then :
5583 ac_cv_os_cray=yes
5584 else
5585 ac_cv_os_cray=no
5586 fi
5587 rm -f conftest*
5588
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5591 $as_echo "$ac_cv_os_cray" >&6; }
5592 if test $ac_cv_os_cray = yes; then
5593 for ac_func in _getb67 GETB67 getb67; do
5594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5595 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5596 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5597
5598 cat >>confdefs.h <<_ACEOF
5599 #define CRAY_STACKSEG_END $ac_func
5600 _ACEOF
5601
5602 break
5603 fi
5604
5605 done
5606 fi
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5609 $as_echo_n "checking stack direction for C alloca... " >&6; }
5610 if test "${ac_cv_c_stack_direction+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if test "$cross_compiling" = yes; then :
5614 ac_cv_c_stack_direction=0
5615 else
5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 int
5620 find_stack_direction ()
5621 {
5622 static char *addr = 0;
5623 auto char dummy;
5624 if (addr == 0)
5625 {
5626 addr = &dummy;
5627 return find_stack_direction ();
5628 }
5629 else
5630 return (&dummy > addr) ? 1 : -1;
5631 }
5632
5633 int
5634 main ()
5635 {
5636 return find_stack_direction () < 0;
5637 }
5638 _ACEOF
5639 if ac_fn_c_try_run "$LINENO"; then :
5640 ac_cv_c_stack_direction=1
5641 else
5642 ac_cv_c_stack_direction=-1
5643 fi
5644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5645 conftest.$ac_objext conftest.beam conftest.$ac_ext
5646 fi
5647
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5650 $as_echo "$ac_cv_c_stack_direction" >&6; }
5651 cat >>confdefs.h <<_ACEOF
5652 #define STACK_DIRECTION $ac_cv_c_stack_direction
5653 _ACEOF
5654
5655
5656 fi
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5659 $as_echo_n "checking whether closedir returns void... " >&6; }
5660 if test "${ac_cv_func_closedir_void+set}" = set; then :
5661 $as_echo_n "(cached) " >&6
5662 else
5663 if test "$cross_compiling" = yes; then :
5664 ac_cv_func_closedir_void=yes
5665 else
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 $ac_includes_default
5669 #include <$ac_header_dirent>
5670 #ifndef __cplusplus
5671 int closedir ();
5672 #endif
5673
5674 int
5675 main ()
5676 {
5677 return closedir (opendir (".")) != 0;
5678 ;
5679 return 0;
5680 }
5681 _ACEOF
5682 if ac_fn_c_try_run "$LINENO"; then :
5683 ac_cv_func_closedir_void=no
5684 else
5685 ac_cv_func_closedir_void=yes
5686 fi
5687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5688 conftest.$ac_objext conftest.beam conftest.$ac_ext
5689 fi
5690
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5693 $as_echo "$ac_cv_func_closedir_void" >&6; }
5694 if test $ac_cv_func_closedir_void = yes; then
5695
5696 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5697
5698 fi
5699
5700 for ac_header in unistd.h
5701 do :
5702 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5703 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5704 cat >>confdefs.h <<_ACEOF
5705 #define HAVE_UNISTD_H 1
5706 _ACEOF
5707
5708 fi
5709
5710 done
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5713 $as_echo_n "checking for working chown... " >&6; }
5714 if test "${ac_cv_func_chown_works+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test "$cross_compiling" = yes; then :
5718 ac_cv_func_chown_works=no
5719 else
5720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5721 /* end confdefs.h. */
5722 $ac_includes_default
5723 #include <fcntl.h>
5724
5725 int
5726 main ()
5727 {
5728 char *f = "conftest.chown";
5729 struct stat before, after;
5730
5731 if (creat (f, 0600) < 0)
5732 return 1;
5733 if (stat (f, &before) < 0)
5734 return 1;
5735 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5736 return 1;
5737 if (stat (f, &after) < 0)
5738 return 1;
5739 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 if ac_fn_c_try_run "$LINENO"; then :
5746 ac_cv_func_chown_works=yes
5747 else
5748 ac_cv_func_chown_works=no
5749 fi
5750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5751 conftest.$ac_objext conftest.beam conftest.$ac_ext
5752 fi
5753
5754 rm -f conftest.chown
5755
5756 fi
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5758 $as_echo "$ac_cv_func_chown_works" >&6; }
5759 if test $ac_cv_func_chown_works = yes; then
5760
5761 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5762
5763 fi
5764
5765 for ac_header in vfork.h
5766 do :
5767 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5768 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5769 cat >>confdefs.h <<_ACEOF
5770 #define HAVE_VFORK_H 1
5771 _ACEOF
5772
5773 fi
5774
5775 done
5776
5777 for ac_func in fork vfork
5778 do :
5779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5780 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5781 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5782 cat >>confdefs.h <<_ACEOF
5783 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5784 _ACEOF
5785
5786 fi
5787 done
5788
5789 if test "x$ac_cv_func_fork" = xyes; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5791 $as_echo_n "checking for working fork... " >&6; }
5792 if test "${ac_cv_func_fork_works+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 if test "$cross_compiling" = yes; then :
5796 ac_cv_func_fork_works=cross
5797 else
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 $ac_includes_default
5801 int
5802 main ()
5803 {
5804
5805 /* By Ruediger Kuhlmann. */
5806 return fork () < 0;
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_run "$LINENO"; then :
5813 ac_cv_func_fork_works=yes
5814 else
5815 ac_cv_func_fork_works=no
5816 fi
5817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5818 conftest.$ac_objext conftest.beam conftest.$ac_ext
5819 fi
5820
5821 fi
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5823 $as_echo "$ac_cv_func_fork_works" >&6; }
5824
5825 else
5826 ac_cv_func_fork_works=$ac_cv_func_fork
5827 fi
5828 if test "x$ac_cv_func_fork_works" = xcross; then
5829 case $host in
5830 *-*-amigaos* | *-*-msdosdjgpp*)
5831 # Override, as these systems have only a dummy fork() stub
5832 ac_cv_func_fork_works=no
5833 ;;
5834 *)
5835 ac_cv_func_fork_works=yes
5836 ;;
5837 esac
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5839 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5840 fi
5841 ac_cv_func_vfork_works=$ac_cv_func_vfork
5842 if test "x$ac_cv_func_vfork" = xyes; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5844 $as_echo_n "checking for working vfork... " >&6; }
5845 if test "${ac_cv_func_vfork_works+set}" = set; then :
5846 $as_echo_n "(cached) " >&6
5847 else
5848 if test "$cross_compiling" = yes; then :
5849 ac_cv_func_vfork_works=cross
5850 else
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5853 /* Thanks to Paul Eggert for this test. */
5854 $ac_includes_default
5855 #include <sys/wait.h>
5856 #ifdef HAVE_VFORK_H
5857 # include <vfork.h>
5858 #endif
5859 /* On some sparc systems, changes by the child to local and incoming
5860 argument registers are propagated back to the parent. The compiler
5861 is told about this with #include <vfork.h>, but some compilers
5862 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5863 static variable whose address is put into a register that is
5864 clobbered by the vfork. */
5865 static void
5866 #ifdef __cplusplus
5867 sparc_address_test (int arg)
5868 # else
5869 sparc_address_test (arg) int arg;
5870 #endif
5871 {
5872 static pid_t child;
5873 if (!child) {
5874 child = vfork ();
5875 if (child < 0) {
5876 perror ("vfork");
5877 _exit(2);
5878 }
5879 if (!child) {
5880 arg = getpid();
5881 write(-1, "", 0);
5882 _exit (arg);
5883 }
5884 }
5885 }
5886
5887 int
5888 main ()
5889 {
5890 pid_t parent = getpid ();
5891 pid_t child;
5892
5893 sparc_address_test (0);
5894
5895 child = vfork ();
5896
5897 if (child == 0) {
5898 /* Here is another test for sparc vfork register problems. This
5899 test uses lots of local variables, at least as many local
5900 variables as main has allocated so far including compiler
5901 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5902 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5903 reuse the register of parent for one of the local variables,
5904 since it will think that parent can't possibly be used any more
5905 in this routine. Assigning to the local variable will thus
5906 munge parent in the parent process. */
5907 pid_t
5908 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5909 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5910 /* Convince the compiler that p..p7 are live; otherwise, it might
5911 use the same hardware register for all 8 local variables. */
5912 if (p != p1 || p != p2 || p != p3 || p != p4
5913 || p != p5 || p != p6 || p != p7)
5914 _exit(1);
5915
5916 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5917 from child file descriptors. If the child closes a descriptor
5918 before it execs or exits, this munges the parent's descriptor
5919 as well. Test for this by closing stdout in the child. */
5920 _exit(close(fileno(stdout)) != 0);
5921 } else {
5922 int status;
5923 struct stat st;
5924
5925 while (wait(&status) != child)
5926 ;
5927 return (
5928 /* Was there some problem with vforking? */
5929 child < 0
5930
5931 /* Did the child fail? (This shouldn't happen.) */
5932 || status
5933
5934 /* Did the vfork/compiler bug occur? */
5935 || parent != getpid()
5936
5937 /* Did the file descriptor bug occur? */
5938 || fstat(fileno(stdout), &st) != 0
5939 );
5940 }
5941 }
5942 _ACEOF
5943 if ac_fn_c_try_run "$LINENO"; then :
5944 ac_cv_func_vfork_works=yes
5945 else
5946 ac_cv_func_vfork_works=no
5947 fi
5948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5949 conftest.$ac_objext conftest.beam conftest.$ac_ext
5950 fi
5951
5952 fi
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5954 $as_echo "$ac_cv_func_vfork_works" >&6; }
5955
5956 fi;
5957 if test "x$ac_cv_func_fork_works" = xcross; then
5958 ac_cv_func_vfork_works=$ac_cv_func_vfork
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5960 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5961 fi
5962
5963 if test "x$ac_cv_func_vfork_works" = xyes; then
5964
5965 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5966
5967 else
5968
5969 $as_echo "#define vfork fork" >>confdefs.h
5970
5971 fi
5972 if test "x$ac_cv_func_fork_works" = xyes; then
5973
5974 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5975
5976 fi
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5979 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5980 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 rm -f conftest.sym conftest.file
5984 echo >conftest.file
5985 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5986 if test "$cross_compiling" = yes; then :
5987 ac_cv_func_lstat_dereferences_slashed_symlink=no
5988 else
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5991 $ac_includes_default
5992 int
5993 main ()
5994 {
5995 struct stat sbuf;
5996 /* Linux will dereference the symlink and fail, as required by POSIX.
5997 That is better in the sense that it means we will not
5998 have to compile and use the lstat wrapper. */
5999 return lstat ("conftest.sym/", &sbuf) == 0;
6000 ;
6001 return 0;
6002 }
6003 _ACEOF
6004 if ac_fn_c_try_run "$LINENO"; then :
6005 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6006 else
6007 ac_cv_func_lstat_dereferences_slashed_symlink=no
6008 fi
6009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6010 conftest.$ac_objext conftest.beam conftest.$ac_ext
6011 fi
6012
6013 else
6014 # If the `ln -s' command failed, then we probably don't even
6015 # have an lstat function.
6016 ac_cv_func_lstat_dereferences_slashed_symlink=no
6017 fi
6018 rm -f conftest.sym conftest.file
6019
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6022 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6023
6024 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6025
6026 cat >>confdefs.h <<_ACEOF
6027 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6028 _ACEOF
6029
6030
6031 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6032 case " $LIBOBJS " in
6033 *" lstat.$ac_objext "* ) ;;
6034 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6035 ;;
6036 esac
6037
6038 fi
6039
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6041 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6042 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test "$cross_compiling" = yes; then :
6046 ac_cv_func_lstat_empty_string_bug=yes
6047 else
6048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049 /* end confdefs.h. */
6050 $ac_includes_default
6051 int
6052 main ()
6053 {
6054 struct stat sbuf;
6055 return lstat ("", &sbuf) == 0;
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 if ac_fn_c_try_run "$LINENO"; then :
6061 ac_cv_func_lstat_empty_string_bug=no
6062 else
6063 ac_cv_func_lstat_empty_string_bug=yes
6064 fi
6065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6066 conftest.$ac_objext conftest.beam conftest.$ac_ext
6067 fi
6068
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6071 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6072 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6073 case " $LIBOBJS " in
6074 *" lstat.$ac_objext "* ) ;;
6075 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6076 ;;
6077 esac
6078
6079
6080 cat >>confdefs.h <<_ACEOF
6081 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6082 _ACEOF
6083
6084 fi
6085
6086 for ac_header in stdlib.h
6087 do :
6088 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6089 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6090 cat >>confdefs.h <<_ACEOF
6091 #define HAVE_STDLIB_H 1
6092 _ACEOF
6093
6094 fi
6095
6096 done
6097
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6099 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6100 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6101 $as_echo_n "(cached) " >&6
6102 else
6103 if test "$cross_compiling" = yes; then :
6104 ac_cv_func_malloc_0_nonnull=no
6105 else
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6109 # include <stdlib.h>
6110 #else
6111 char *malloc ();
6112 #endif
6113
6114 int
6115 main ()
6116 {
6117 return ! malloc (0);
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 if ac_fn_c_try_run "$LINENO"; then :
6123 ac_cv_func_malloc_0_nonnull=yes
6124 else
6125 ac_cv_func_malloc_0_nonnull=no
6126 fi
6127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6128 conftest.$ac_objext conftest.beam conftest.$ac_ext
6129 fi
6130
6131 fi
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6133 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6134 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6135
6136 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6137
6138 else
6139 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6140
6141 case " $LIBOBJS " in
6142 *" malloc.$ac_objext "* ) ;;
6143 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6144 ;;
6145 esac
6146
6147
6148 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6149
6150 fi
6151
6152
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6154 $as_echo_n "checking for working memcmp... " >&6; }
6155 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test "$cross_compiling" = yes; then :
6159 ac_cv_func_memcmp_working=no
6160 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 $ac_includes_default
6164 int
6165 main ()
6166 {
6167
6168 /* Some versions of memcmp are not 8-bit clean. */
6169 char c0 = '\100', c1 = '\200', c2 = '\201';
6170 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6171 return 1;
6172
6173 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6174 or more and with at least one buffer not starting on a 4-byte boundary.
6175 William Lewis provided this test program. */
6176 {
6177 char foo[21];
6178 char bar[21];
6179 int i;
6180 for (i = 0; i < 4; i++)
6181 {
6182 char *a = foo + i;
6183 char *b = bar + i;
6184 strcpy (a, "--------01111111");
6185 strcpy (b, "--------10000000");
6186 if (memcmp (a, b, 16) >= 0)
6187 return 1;
6188 }
6189 return 0;
6190 }
6191
6192 ;
6193 return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_run "$LINENO"; then :
6197 ac_cv_func_memcmp_working=yes
6198 else
6199 ac_cv_func_memcmp_working=no
6200 fi
6201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6202 conftest.$ac_objext conftest.beam conftest.$ac_ext
6203 fi
6204
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6207 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6208 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6209 *" memcmp.$ac_objext "* ) ;;
6210 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6211 ;;
6212 esac
6213
6214
6215
6216
6217
6218 for ac_header in $ac_header_list
6219 do :
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6222 "
6223 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6224 cat >>confdefs.h <<_ACEOF
6225 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6226 _ACEOF
6227
6228 fi
6229
6230 done
6231
6232
6233
6234
6235
6236
6237
6238
6239 for ac_func in getpagesize
6240 do :
6241 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6242 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6243 cat >>confdefs.h <<_ACEOF
6244 #define HAVE_GETPAGESIZE 1
6245 _ACEOF
6246
6247 fi
6248 done
6249
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6251 $as_echo_n "checking for working mmap... " >&6; }
6252 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test "$cross_compiling" = yes; then :
6256 ac_cv_func_mmap_fixed_mapped=no
6257 else
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260 $ac_includes_default
6261 /* malloc might have been renamed as rpl_malloc. */
6262 #undef malloc
6263
6264 /* Thanks to Mike Haertel and Jim Avera for this test.
6265 Here is a matrix of mmap possibilities:
6266 mmap private not fixed
6267 mmap private fixed at somewhere currently unmapped
6268 mmap private fixed at somewhere already mapped
6269 mmap shared not fixed
6270 mmap shared fixed at somewhere currently unmapped
6271 mmap shared fixed at somewhere already mapped
6272 For private mappings, we should verify that changes cannot be read()
6273 back from the file, nor mmap's back from the file at a different
6274 address. (There have been systems where private was not correctly
6275 implemented like the infamous i386 svr4.0, and systems where the
6276 VM page cache was not coherent with the file system buffer cache
6277 like early versions of FreeBSD and possibly contemporary NetBSD.)
6278 For shared mappings, we should conversely verify that changes get
6279 propagated back to all the places they're supposed to be.
6280
6281 Grep wants private fixed already mapped.
6282 The main things grep needs to know about mmap are:
6283 * does it exist and is it safe to write into the mmap'd area
6284 * how to use it (BSD variants) */
6285
6286 #include <fcntl.h>
6287 #include <sys/mman.h>
6288
6289 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6290 char *malloc ();
6291 #endif
6292
6293 /* This mess was copied from the GNU getpagesize.h. */
6294 #ifndef HAVE_GETPAGESIZE
6295 # ifdef _SC_PAGESIZE
6296 # define getpagesize() sysconf(_SC_PAGESIZE)
6297 # else /* no _SC_PAGESIZE */
6298 # ifdef HAVE_SYS_PARAM_H
6299 # include <sys/param.h>
6300 # ifdef EXEC_PAGESIZE
6301 # define getpagesize() EXEC_PAGESIZE
6302 # else /* no EXEC_PAGESIZE */
6303 # ifdef NBPG
6304 # define getpagesize() NBPG * CLSIZE
6305 # ifndef CLSIZE
6306 # define CLSIZE 1
6307 # endif /* no CLSIZE */
6308 # else /* no NBPG */
6309 # ifdef NBPC
6310 # define getpagesize() NBPC
6311 # else /* no NBPC */
6312 # ifdef PAGESIZE
6313 # define getpagesize() PAGESIZE
6314 # endif /* PAGESIZE */
6315 # endif /* no NBPC */
6316 # endif /* no NBPG */
6317 # endif /* no EXEC_PAGESIZE */
6318 # else /* no HAVE_SYS_PARAM_H */
6319 # define getpagesize() 8192 /* punt totally */
6320 # endif /* no HAVE_SYS_PARAM_H */
6321 # endif /* no _SC_PAGESIZE */
6322
6323 #endif /* no HAVE_GETPAGESIZE */
6324
6325 int
6326 main ()
6327 {
6328 char *data, *data2, *data3;
6329 const char *cdata2;
6330 int i, pagesize;
6331 int fd, fd2;
6332
6333 pagesize = getpagesize ();
6334
6335 /* First, make a file with some known garbage in it. */
6336 data = (char *) malloc (pagesize);
6337 if (!data)
6338 return 1;
6339 for (i = 0; i < pagesize; ++i)
6340 *(data + i) = rand ();
6341 umask (0);
6342 fd = creat ("conftest.mmap", 0600);
6343 if (fd < 0)
6344 return 2;
6345 if (write (fd, data, pagesize) != pagesize)
6346 return 3;
6347 close (fd);
6348
6349 /* Next, check that the tail of a page is zero-filled. File must have
6350 non-zero length, otherwise we risk SIGBUS for entire page. */
6351 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6352 if (fd2 < 0)
6353 return 4;
6354 cdata2 = "";
6355 if (write (fd2, cdata2, 1) != 1)
6356 return 5;
6357 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6358 if (data2 == MAP_FAILED)
6359 return 6;
6360 for (i = 0; i < pagesize; ++i)
6361 if (*(data2 + i))
6362 return 7;
6363 close (fd2);
6364 if (munmap (data2, pagesize))
6365 return 8;
6366
6367 /* Next, try to mmap the file at a fixed address which already has
6368 something else allocated at it. If we can, also make sure that
6369 we see the same garbage. */
6370 fd = open ("conftest.mmap", O_RDWR);
6371 if (fd < 0)
6372 return 9;
6373 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6374 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6375 return 10;
6376 for (i = 0; i < pagesize; ++i)
6377 if (*(data + i) != *(data2 + i))
6378 return 11;
6379
6380 /* Finally, make sure that changes to the mapped area do not
6381 percolate back to the file as seen by read(). (This is a bug on
6382 some variants of i386 svr4.0.) */
6383 for (i = 0; i < pagesize; ++i)
6384 *(data2 + i) = *(data2 + i) + 1;
6385 data3 = (char *) malloc (pagesize);
6386 if (!data3)
6387 return 12;
6388 if (read (fd, data3, pagesize) != pagesize)
6389 return 13;
6390 for (i = 0; i < pagesize; ++i)
6391 if (*(data + i) != *(data3 + i))
6392 return 14;
6393 close (fd);
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_run "$LINENO"; then :
6398 ac_cv_func_mmap_fixed_mapped=yes
6399 else
6400 ac_cv_func_mmap_fixed_mapped=no
6401 fi
6402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6403 conftest.$ac_objext conftest.beam conftest.$ac_ext
6404 fi
6405
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6408 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6409 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6410
6411 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6412
6413 fi
6414 rm -f conftest.mmap conftest.txt
6415
6416 for ac_header in stdlib.h
6417 do :
6418 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6419 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define HAVE_STDLIB_H 1
6422 _ACEOF
6423
6424 fi
6425
6426 done
6427
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6429 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6430 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6431 $as_echo_n "(cached) " >&6
6432 else
6433 if test "$cross_compiling" = yes; then :
6434 ac_cv_func_realloc_0_nonnull=no
6435 else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6439 # include <stdlib.h>
6440 #else
6441 char *realloc ();
6442 #endif
6443
6444 int
6445 main ()
6446 {
6447 return ! realloc (0, 0);
6448 ;
6449 return 0;
6450 }
6451 _ACEOF
6452 if ac_fn_c_try_run "$LINENO"; then :
6453 ac_cv_func_realloc_0_nonnull=yes
6454 else
6455 ac_cv_func_realloc_0_nonnull=no
6456 fi
6457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6458 conftest.$ac_objext conftest.beam conftest.$ac_ext
6459 fi
6460
6461 fi
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6463 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6464 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6465
6466 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6467
6468 else
6469 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6470
6471 case " $LIBOBJS " in
6472 *" realloc.$ac_objext "* ) ;;
6473 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6474 ;;
6475 esac
6476
6477
6478 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6479
6480 fi
6481
6482
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6484 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6485 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test "$cross_compiling" = yes; then :
6489 ac_cv_func_stat_empty_string_bug=yes
6490 else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 $ac_includes_default
6494 int
6495 main ()
6496 {
6497 struct stat sbuf;
6498 return stat ("", &sbuf) == 0;
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_c_try_run "$LINENO"; then :
6504 ac_cv_func_stat_empty_string_bug=no
6505 else
6506 ac_cv_func_stat_empty_string_bug=yes
6507 fi
6508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6509 conftest.$ac_objext conftest.beam conftest.$ac_ext
6510 fi
6511
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6514 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6515 if test $ac_cv_func_stat_empty_string_bug = yes; then
6516 case " $LIBOBJS " in
6517 *" stat.$ac_objext "* ) ;;
6518 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6519 ;;
6520 esac
6521
6522
6523 cat >>confdefs.h <<_ACEOF
6524 #define HAVE_STAT_EMPTY_STRING_BUG 1
6525 _ACEOF
6526
6527 fi
6528
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6530 $as_echo_n "checking for working strtod... " >&6; }
6531 if test "${ac_cv_func_strtod+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
6533 else
6534 if test "$cross_compiling" = yes; then :
6535 ac_cv_func_strtod=no
6536 else
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539
6540 $ac_includes_default
6541 #ifndef strtod
6542 double strtod ();
6543 #endif
6544 int
6545 main()
6546 {
6547 {
6548 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6549 char *string = " +69";
6550 char *term;
6551 double value;
6552 value = strtod (string, &term);
6553 if (value != 69 || term != (string + 4))
6554 return 1;
6555 }
6556
6557 {
6558 /* Under Solaris 2.4, strtod returns the wrong value for the
6559 terminating character under some conditions. */
6560 char *string = "NaN";
6561 char *term;
6562 strtod (string, &term);
6563 if (term != string && *(term - 1) == 0)
6564 return 1;
6565 }
6566 return 0;
6567 }
6568
6569 _ACEOF
6570 if ac_fn_c_try_run "$LINENO"; then :
6571 ac_cv_func_strtod=yes
6572 else
6573 ac_cv_func_strtod=no
6574 fi
6575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6576 conftest.$ac_objext conftest.beam conftest.$ac_ext
6577 fi
6578
6579 fi
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6581 $as_echo "$ac_cv_func_strtod" >&6; }
6582 if test $ac_cv_func_strtod = no; then
6583 case " $LIBOBJS " in
6584 *" strtod.$ac_objext "* ) ;;
6585 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6586 ;;
6587 esac
6588
6589 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6590 if test "x$ac_cv_func_pow" = x""yes; then :
6591
6592 fi
6593
6594 if test $ac_cv_func_pow = no; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6596 $as_echo_n "checking for pow in -lm... " >&6; }
6597 if test "${ac_cv_lib_m_pow+set}" = set; then :
6598 $as_echo_n "(cached) " >&6
6599 else
6600 ac_check_lib_save_LIBS=$LIBS
6601 LIBS="-lm $LIBS"
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6604
6605 /* Override any GCC internal prototype to avoid an error.
6606 Use char because int might match the return type of a GCC
6607 builtin and then its argument prototype would still apply. */
6608 #ifdef __cplusplus
6609 extern "C"
6610 #endif
6611 char pow ();
6612 int
6613 main ()
6614 {
6615 return pow ();
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_c_try_link "$LINENO"; then :
6621 ac_cv_lib_m_pow=yes
6622 else
6623 ac_cv_lib_m_pow=no
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627 LIBS=$ac_check_lib_save_LIBS
6628 fi
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6630 $as_echo "$ac_cv_lib_m_pow" >&6; }
6631 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6632 POW_LIB=-lm
6633 else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6635 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6636 fi
6637
6638 fi
6639
6640 fi
6641
6642 for ac_func in vprintf
6643 do :
6644 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6645 if test "x$ac_cv_func_vprintf" = x""yes; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_VPRINTF 1
6648 _ACEOF
6649
6650 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6651 if test "x$ac_cv_func__doprnt" = x""yes; then :
6652
6653 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6654
6655 fi
6656
6657 fi
6658 done
6659
6660
6661
6662 ################################################################################
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6664 $as_echo_n "checking whether to use static linking... " >&6; }
6665 # Check whether --enable-static_link was given.
6666 if test "${enable_static_link+set}" = set; then :
6667 enableval=$enable_static_link; STATIC_LINK=$enableval
6668 else
6669 STATIC_LINK=no
6670 fi
6671
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6673 $as_echo "$STATIC_LINK" >&6; }
6674
6675 ################################################################################
6676
6677
6678 ################################################################################
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6680 $as_echo_n "checking file owner... " >&6; }
6681
6682 # Check whether --with-user was given.
6683 if test "${with_user+set}" = set; then :
6684 withval=$with_user; OWNER=$withval
6685 fi
6686
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6688 $as_echo "$OWNER" >&6; }
6689
6690 if test x$OWNER != x; then
6691 INSTALL="$INSTALL -o $OWNER"
6692 fi
6693
6694 ################################################################################
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6696 $as_echo_n "checking group owner... " >&6; }
6697
6698 # Check whether --with-group was given.
6699 if test "${with_group+set}" = set; then :
6700 withval=$with_group; GROUP=$withval
6701 fi
6702
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6704 $as_echo "$GROUP" >&6; }
6705
6706 if test x$GROUP != x; then
6707 INSTALL="$INSTALL -g $GROUP"
6708 fi
6709
6710 ################################################################################
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6712 $as_echo_n "checking device node uid... " >&6; }
6713
6714
6715 # Check whether --with-device-uid was given.
6716 if test "${with_device_uid+set}" = set; then :
6717 withval=$with_device_uid; DM_DEVICE_UID=$withval
6718 else
6719 DM_DEVICE_UID=0
6720 fi
6721
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6723 $as_echo "$DM_DEVICE_UID" >&6; }
6724
6725 ################################################################################
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6727 $as_echo_n "checking device node gid... " >&6; }
6728
6729
6730 # Check whether --with-device-gid was given.
6731 if test "${with_device_gid+set}" = set; then :
6732 withval=$with_device_gid; DM_DEVICE_GID=$withval
6733 else
6734 DM_DEVICE_GID=0
6735 fi
6736
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6738 $as_echo "$DM_DEVICE_GID" >&6; }
6739
6740 ################################################################################
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6742 $as_echo_n "checking device node mode... " >&6; }
6743
6744
6745 # Check whether --with-device-mode was given.
6746 if test "${with_device_mode+set}" = set; then :
6747 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6748 else
6749 DM_DEVICE_MODE=0600
6750 fi
6751
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6753 $as_echo "$DM_DEVICE_MODE" >&6; }
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6756 $as_echo_n "checking when to create device nodes... " >&6; }
6757
6758 # Check whether --with-device-nodes-on was given.
6759 if test "${with_device_nodes_on+set}" = set; then :
6760 withval=$with_device_nodes_on; ADD_NODE=$withval
6761 else
6762 ADD_NODE=resume
6763 fi
6764
6765 case "$ADD_NODE" in
6766 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6767 create) add_on=DM_ADD_NODE_ON_CREATE;;
6768 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6769 esac
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6771 $as_echo "on $ADD_NODE" >&6; }
6772
6773 cat >>confdefs.h <<_ACEOF
6774 #define DEFAULT_DM_ADD_NODE $add_on
6775 _ACEOF
6776
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
6779 $as_echo_n "checking default name mangling... " >&6; }
6780
6781 # Check whether --with-default-name-mangling was given.
6782 if test "${with_default_name_mangling+set}" = set; then :
6783 withval=$with_default_name_mangling; MANGLING=$withval
6784 else
6785 MANGLING=auto
6786 fi
6787
6788 case "$MANGLING" in
6789 auto) mangling=DM_STRING_MANGLING_AUTO;;
6790 disabled) mangling=DM_STRING_MANGLING_NONE;;
6791 hex) mangling=DM_STRING_MANGLING_HEX;;
6792 *) as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5;;
6793 esac
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
6795 $as_echo "$MANGLING" >&6; }
6796
6797 cat >>confdefs.h <<_ACEOF
6798 #define DEFAULT_DM_NAME_MANGLING $mangling
6799 _ACEOF
6800
6801
6802 ################################################################################
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6804 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6805 # Check whether --enable-lvm1_fallback was given.
6806 if test "${enable_lvm1_fallback+set}" = set; then :
6807 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6808 else
6809 LVM1_FALLBACK=no
6810 fi
6811
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6813 $as_echo "$LVM1_FALLBACK" >&6; }
6814
6815 if test x$LVM1_FALLBACK = xyes; then
6816
6817 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6818
6819 fi
6820
6821 ################################################################################
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6823 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6824
6825 # Check whether --with-lvm1 was given.
6826 if test "${with_lvm1+set}" = set; then :
6827 withval=$with_lvm1; LVM1=$withval
6828 else
6829 LVM1=internal
6830 fi
6831
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6833 $as_echo "$LVM1" >&6; }
6834
6835 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6836 then as_fn_error $? "--with-lvm1 parameter invalid
6837 " "$LINENO" 5
6838 fi;
6839
6840 if test x$LVM1 = xinternal; then
6841
6842 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6843
6844 fi
6845
6846 ################################################################################
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6848 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6849
6850 # Check whether --with-pool was given.
6851 if test "${with_pool+set}" = set; then :
6852 withval=$with_pool; POOL=$withval
6853 else
6854 POOL=internal
6855 fi
6856
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6858 $as_echo "$POOL" >&6; }
6859
6860 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6861 then as_fn_error $? "--with-pool parameter invalid
6862 " "$LINENO" 5
6863 fi;
6864
6865 if test x$POOL = xinternal; then
6866
6867 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6868
6869 fi
6870
6871 ################################################################################
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6873 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6874
6875 # Check whether --with-cluster was given.
6876 if test "${with_cluster+set}" = set; then :
6877 withval=$with_cluster; CLUSTER=$withval
6878 fi
6879
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6881 $as_echo "$CLUSTER" >&6; }
6882
6883 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6884 then as_fn_error $? "--with-cluster parameter invalid
6885 " "$LINENO" 5
6886 fi;
6887
6888 if test x$CLUSTER = xinternal; then
6889
6890 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6891
6892 fi
6893
6894 ################################################################################
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6896 $as_echo_n "checking whether to include snapshots... " >&6; }
6897
6898 # Check whether --with-snapshots was given.
6899 if test "${with_snapshots+set}" = set; then :
6900 withval=$with_snapshots; SNAPSHOTS=$withval
6901 else
6902 SNAPSHOTS=internal
6903 fi
6904
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6906 $as_echo "$SNAPSHOTS" >&6; }
6907
6908 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6909 then as_fn_error $? "--with-snapshots parameter invalid
6910 " "$LINENO" 5
6911 fi;
6912
6913 if test x$SNAPSHOTS = xinternal; then
6914
6915 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6916
6917 fi
6918
6919 ################################################################################
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6921 $as_echo_n "checking whether to include mirrors... " >&6; }
6922
6923 # Check whether --with-mirrors was given.
6924 if test "${with_mirrors+set}" = set; then :
6925 withval=$with_mirrors; MIRRORS=$withval
6926 else
6927 MIRRORS=internal
6928 fi
6929
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6931 $as_echo "$MIRRORS" >&6; }
6932
6933 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6934 then as_fn_error $? "--with-mirrors parameter invalid
6935 " "$LINENO" 5
6936 fi;
6937
6938 if test x$MIRRORS = xinternal; then
6939
6940 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6941
6942 fi
6943
6944 ################################################################################
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6946 $as_echo_n "checking whether to include raid... " >&6; }
6947
6948 # Check whether --with-raid was given.
6949 if test "${with_raid+set}" = set; then :
6950 withval=$with_raid; RAID=$withval
6951 else
6952 RAID=internal
6953 fi
6954
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6956 $as_echo "$RAID" >&6; }
6957
6958 if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6959 then as_fn_error $? "--with-raid parameter invalid
6960 " "$LINENO" 5
6961 fi;
6962
6963 if test x$RAID = xinternal; then
6964
6965 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6966
6967 fi
6968
6969 ################################################################################
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6971 $as_echo_n "checking whether to include replicators... " >&6; }
6972
6973 # Check whether --with-replicators was given.
6974 if test "${with_replicators+set}" = set; then :
6975 withval=$with_replicators; REPLICATORS=$withval
6976 else
6977 REPLICATORS=none
6978 fi
6979
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6981 $as_echo "$REPLICATORS" >&6; }
6982
6983 case "$REPLICATORS" in
6984 none|shared) ;;
6985 internal)
6986 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6987 ;;
6988 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6989 esac
6990
6991 ################################################################################
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6993 $as_echo_n "checking whether to include thin provisioning... " >&6; }
6994
6995 # Check whether --with-thin was given.
6996 if test "${with_thin+set}" = set; then :
6997 withval=$with_thin; THIN=$withval
6998 else
6999 THIN=none
7000 fi
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
7003 $as_echo "$THIN" >&6; }
7004
7005 case "$THIN" in
7006 none|shared) ;;
7007 internal)
7008 $as_echo "#define THIN_INTERNAL 1" >>confdefs.h
7009 ;;
7010 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
7011 esac
7012
7013 case "$THIN" in
7014 internal|shared)
7015
7016 # Check whether --with-thin-check was given.
7017 if test "${with_thin_check+set}" = set; then :
7018 withval=$with_thin_check; THIN_CHECK_CMD=$withval
7019 else
7020 THIN_CHECK_CMD="autodetect"
7021 fi
7022
7023 # Empty means a config way to ignore thin checking
7024 if test "$THIN_CHECK_CMD" = "autodetect"; then
7025 # Extract the first word of "thin_check", so it can be a program name with args.
7026 set dummy thin_check; ac_word=$2
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7028 $as_echo_n "checking for $ac_word... " >&6; }
7029 if test "${ac_cv_path_THIN_CHECK_CMD+set}" = set; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 case $THIN_CHECK_CMD in
7033 [\\/]* | ?:[\\/]*)
7034 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
7035 ;;
7036 *)
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7044 ac_cv_path_THIN_CHECK_CMD="$as_dir/$ac_word$ac_exec_ext"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7047 fi
7048 done
7049 done
7050 IFS=$as_save_IFS
7051
7052 ;;
7053 esac
7054 fi
7055 THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
7056 if test -n "$THIN_CHECK_CMD"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
7058 $as_echo "$THIN_CHECK_CMD" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 test -z "$THIN_CHECK_CMD" && as_fn_error $? "thin_check not found in path $PATH" "$LINENO" 5
7066 fi
7067 ;;
7068 esac
7069
7070
7071 cat >>confdefs.h <<_ACEOF
7072 #define THIN_CHECK_CMD "$THIN_CHECK_CMD"
7073 _ACEOF
7074
7075
7076
7077 ################################################################################
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
7079 $as_echo_n "checking whether to enable readline... " >&6; }
7080 # Check whether --enable-readline was given.
7081 if test "${enable_readline+set}" = set; then :
7082 enableval=$enable_readline; READLINE=$enableval
7083 else
7084 READLINE=maybe
7085 fi
7086
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
7088 $as_echo "$READLINE" >&6; }
7089
7090 ################################################################################
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
7092 $as_echo_n "checking whether to enable realtime support... " >&6; }
7093 # Check whether --enable-realtime was given.
7094 if test "${enable_realtime+set}" = set; then :
7095 enableval=$enable_realtime; REALTIME=$enableval
7096 fi
7097
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
7099 $as_echo "$REALTIME" >&6; }
7100
7101 ################################################################################
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
7103 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
7104 # Check whether --enable-ocf was given.
7105 if test "${enable_ocf+set}" = set; then :
7106 enableval=$enable_ocf; OCF=$enableval
7107 else
7108 OCF=no
7109 fi
7110
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
7112 $as_echo "$OCF" >&6; }
7113
7114 # Check whether --with-ocfdir was given.
7115 if test "${with_ocfdir+set}" = set; then :
7116 withval=$with_ocfdir; OCFDIR=$withval
7117 else
7118 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7119 fi
7120
7121
7122 ################################################################################
7123 pkg_config_init() {
7124
7125
7126
7127
7128
7129
7130 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7131 if test -n "$ac_tool_prefix"; then
7132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7133 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 case $PKG_CONFIG in
7140 [\\/]* | ?:[\\/]*)
7141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7142 ;;
7143 *)
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 ;;
7160 esac
7161 fi
7162 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7163 if test -n "$PKG_CONFIG"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7165 $as_echo "$PKG_CONFIG" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if test -z "$ac_cv_path_PKG_CONFIG"; then
7174 ac_pt_PKG_CONFIG=$PKG_CONFIG
7175 # Extract the first word of "pkg-config", so it can be a program name with args.
7176 set dummy pkg-config; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7181 else
7182 case $ac_pt_PKG_CONFIG in
7183 [\\/]* | ?:[\\/]*)
7184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7185 ;;
7186 *)
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7189 do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7197 fi
7198 done
7199 done
7200 IFS=$as_save_IFS
7201
7202 ;;
7203 esac
7204 fi
7205 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7206 if test -n "$ac_pt_PKG_CONFIG"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7208 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7212 fi
7213
7214 if test "x$ac_pt_PKG_CONFIG" = x; then
7215 PKG_CONFIG=""
7216 else
7217 case $cross_compiling:$ac_tool_warned in
7218 yes:)
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7221 ac_tool_warned=yes ;;
7222 esac
7223 PKG_CONFIG=$ac_pt_PKG_CONFIG
7224 fi
7225 else
7226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7227 fi
7228
7229 fi
7230 if test -n "$PKG_CONFIG"; then
7231 _pkg_min_version=0.9.0
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7233 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7236 $as_echo "yes" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 PKG_CONFIG=""
7241 fi
7242 fi
7243
7244 pkg_failed=no
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7246 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7247
7248 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7249 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7250 elif test -n "$PKG_CONFIG"; then
7251 if test -n "$PKG_CONFIG" && \
7252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7253 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7254 ac_status=$?
7255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7256 test $ac_status = 0; }; then
7257 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7258 else
7259 pkg_failed=yes
7260 fi
7261 else
7262 pkg_failed=untried
7263 fi
7264 if test -n "$PKGCONFIGINIT_LIBS"; then
7265 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7266 elif test -n "$PKG_CONFIG"; then
7267 if test -n "$PKG_CONFIG" && \
7268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7269 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7270 ac_status=$?
7271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7272 test $ac_status = 0; }; then
7273 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7274 else
7275 pkg_failed=yes
7276 fi
7277 else
7278 pkg_failed=untried
7279 fi
7280
7281
7282
7283 if test $pkg_failed = yes; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286
7287 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7288 _pkg_short_errors_supported=yes
7289 else
7290 _pkg_short_errors_supported=no
7291 fi
7292 if test $_pkg_short_errors_supported = yes; then
7293 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7294 else
7295 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7296 fi
7297 # Put the nasty error message in config.log where it belongs
7298 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7299
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7301 $as_echo "pkg-config initialized" >&6; }
7302 elif test $pkg_failed = untried; then
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7306 $as_echo "pkg-config initialized" >&6; }
7307 else
7308 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7309 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7311 $as_echo "yes" >&6; }
7312
7313 fi
7314 PKGCONFIG_INIT=1
7315 }
7316
7317 ################################################################################
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7319 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7320
7321 # Check whether --with-clvmd was given.
7322 if test "${with_clvmd+set}" = set; then :
7323 withval=$with_clvmd; CLVMD=$withval
7324 else
7325 CLVMD=none
7326 fi
7327
7328 if test x$CLVMD = xyes; then
7329 CLVMD=all
7330 fi
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7332 $as_echo "$CLVMD" >&6; }
7333
7334 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7335 CLUSTER=internal
7336 fi
7337
7338 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7339 pkg_config_init
7340 fi
7341
7342 CLVMD_CMANAGERS=""
7343 CLVMD_NEEDS_QDISKD=no
7344
7345 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7346 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7347 fi
7348 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7349 BUILDCMAN=yes
7350 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7351 CLVMD_NEEDS_QDISKD=yes
7352 fi
7353 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7354 BUILDCOROSYNC=yes
7355 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7356 fi
7357 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7358 BUILDOPENAIS=yes
7359 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7360 fi
7361 if test x$CLVMD_NEEDS_QDISKD != xno; then
7362 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7363 fi
7364
7365 soft_bailout() {
7366 NOTFOUND=1
7367 }
7368
7369 hard_bailout() {
7370 as_fn_error $? "bailing out" "$LINENO" 5
7371 }
7372
7373 if test x$CLVMD = xall; then
7374 bailout=soft_bailout
7375 BUILDCMAN=yes
7376 BUILDCOROSYNC=yes
7377 BUILDOPENAIS=yes
7378 else
7379 bailout=hard_bailout
7380 fi
7381
7382 check_lib_no_libs() {
7383 lib_no_libs_arg1=$1
7384 shift
7385 lib_no_libs_arg2=$1
7386 shift
7387 lib_no_libs_args=$@
7388 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7390 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7391 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 ac_check_lib_save_LIBS=$LIBS
7395 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398
7399 /* Override any GCC internal prototype to avoid an error.
7400 Use char because int might match the return type of a GCC
7401 builtin and then its argument prototype would still apply. */
7402 #ifdef __cplusplus
7403 extern "C"
7404 #endif
7405 char $lib_no_libs_arg2 ();
7406 int
7407 main ()
7408 {
7409 return $lib_no_libs_arg2 ();
7410 ;
7411 return 0;
7412 }
7413 _ACEOF
7414 if ac_fn_c_try_link "$LINENO"; then :
7415 eval "$as_ac_Lib=yes"
7416 else
7417 eval "$as_ac_Lib=no"
7418 fi
7419 rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
7421 LIBS=$ac_check_lib_save_LIBS
7422 fi
7423 eval ac_res=\$$as_ac_Lib
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7425 $as_echo "$ac_res" >&6; }
7426 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7427 cat >>confdefs.h <<_ACEOF
7428 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7429 _ACEOF
7430
7431 LIBS="-l$lib_no_libs_arg1 $LIBS"
7432
7433 else
7434 $bailout
7435 fi
7436
7437 LIBS=$ac_check_lib_save_LIBS
7438 }
7439
7440 if test x$BUILDCMAN = xyes; then
7441
7442 pkg_failed=no
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7444 $as_echo_n "checking for CMAN... " >&6; }
7445
7446 if test -n "$CMAN_CFLAGS"; then
7447 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7448 elif test -n "$PKG_CONFIG"; then
7449 if test -n "$PKG_CONFIG" && \
7450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7451 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7452 ac_status=$?
7453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7454 test $ac_status = 0; }; then
7455 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7456 else
7457 pkg_failed=yes
7458 fi
7459 else
7460 pkg_failed=untried
7461 fi
7462 if test -n "$CMAN_LIBS"; then
7463 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7464 elif test -n "$PKG_CONFIG"; then
7465 if test -n "$PKG_CONFIG" && \
7466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7467 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7468 ac_status=$?
7469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7470 test $ac_status = 0; }; then
7471 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7472 else
7473 pkg_failed=yes
7474 fi
7475 else
7476 pkg_failed=untried
7477 fi
7478
7479
7480
7481 if test $pkg_failed = yes; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484
7485 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7486 _pkg_short_errors_supported=yes
7487 else
7488 _pkg_short_errors_supported=no
7489 fi
7490 if test $_pkg_short_errors_supported = yes; then
7491 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7492 else
7493 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7494 fi
7495 # Put the nasty error message in config.log where it belongs
7496 echo "$CMAN_PKG_ERRORS" >&5
7497
7498 NOTFOUND=0
7499 for ac_header in libcman.h
7500 do :
7501 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7502 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7503 cat >>confdefs.h <<_ACEOF
7504 #define HAVE_LIBCMAN_H 1
7505 _ACEOF
7506
7507 else
7508 $bailout
7509 fi
7510
7511 done
7512
7513 check_lib_no_libs cman cman_init
7514 if test $NOTFOUND = 0; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7516 $as_echo "no pkg for libcman, using -lcman" >&6; }
7517 CMAN_LIBS="-lcman"
7518 HAVE_CMAN=yes
7519 fi
7520 elif test $pkg_failed = untried; then
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522 $as_echo "no" >&6; }
7523 NOTFOUND=0
7524 for ac_header in libcman.h
7525 do :
7526 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7527 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7528 cat >>confdefs.h <<_ACEOF
7529 #define HAVE_LIBCMAN_H 1
7530 _ACEOF
7531
7532 else
7533 $bailout
7534 fi
7535
7536 done
7537
7538 check_lib_no_libs cman cman_init
7539 if test $NOTFOUND = 0; then
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7541 $as_echo "no pkg for libcman, using -lcman" >&6; }
7542 CMAN_LIBS="-lcman"
7543 HAVE_CMAN=yes
7544 fi
7545 else
7546 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7547 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7549 $as_echo "yes" >&6; }
7550 HAVE_CMAN=yes
7551 fi
7552 CHECKCONFDB=yes
7553 CHECKDLM=yes
7554 fi
7555
7556 if test x$BUILDCOROSYNC = xyes || \
7557 test x$BUILDOPENAIS = xyes; then
7558
7559 pkg_failed=no
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7561 $as_echo_n "checking for COROSYNC... " >&6; }
7562
7563 if test -n "$COROSYNC_CFLAGS"; then
7564 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7565 elif test -n "$PKG_CONFIG"; then
7566 if test -n "$PKG_CONFIG" && \
7567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7568 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7569 ac_status=$?
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }; then
7572 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7573 else
7574 pkg_failed=yes
7575 fi
7576 else
7577 pkg_failed=untried
7578 fi
7579 if test -n "$COROSYNC_LIBS"; then
7580 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7581 elif test -n "$PKG_CONFIG"; then
7582 if test -n "$PKG_CONFIG" && \
7583 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7584 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }; then
7588 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7589 else
7590 pkg_failed=yes
7591 fi
7592 else
7593 pkg_failed=untried
7594 fi
7595
7596
7597
7598 if test $pkg_failed = yes; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601
7602 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7603 _pkg_short_errors_supported=yes
7604 else
7605 _pkg_short_errors_supported=no
7606 fi
7607 if test $_pkg_short_errors_supported = yes; then
7608 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7609 else
7610 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7611 fi
7612 # Put the nasty error message in config.log where it belongs
7613 echo "$COROSYNC_PKG_ERRORS" >&5
7614
7615 $bailout
7616 elif test $pkg_failed = untried; then
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 $bailout
7620 else
7621 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7622 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7624 $as_echo "yes" >&6; }
7625 HAVE_COROSYNC=yes
7626 fi
7627 CHECKCONFDB=yes
7628 CHECKCMAP=yes
7629 fi
7630
7631 if test x$BUILDCOROSYNC = xyes; then
7632
7633 pkg_failed=no
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7635 $as_echo_n "checking for QUORUM... " >&6; }
7636
7637 if test -n "$QUORUM_CFLAGS"; then
7638 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7639 elif test -n "$PKG_CONFIG"; then
7640 if test -n "$PKG_CONFIG" && \
7641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7642 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7643 ac_status=$?
7644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; }; then
7646 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7647 else
7648 pkg_failed=yes
7649 fi
7650 else
7651 pkg_failed=untried
7652 fi
7653 if test -n "$QUORUM_LIBS"; then
7654 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7655 elif test -n "$PKG_CONFIG"; then
7656 if test -n "$PKG_CONFIG" && \
7657 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7658 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7659 ac_status=$?
7660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; }; then
7662 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7663 else
7664 pkg_failed=yes
7665 fi
7666 else
7667 pkg_failed=untried
7668 fi
7669
7670
7671
7672 if test $pkg_failed = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674 $as_echo "no" >&6; }
7675
7676 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7677 _pkg_short_errors_supported=yes
7678 else
7679 _pkg_short_errors_supported=no
7680 fi
7681 if test $_pkg_short_errors_supported = yes; then
7682 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7683 else
7684 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7685 fi
7686 # Put the nasty error message in config.log where it belongs
7687 echo "$QUORUM_PKG_ERRORS" >&5
7688
7689 $bailout
7690 elif test $pkg_failed = untried; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 $bailout
7694 else
7695 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7696 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7698 $as_echo "yes" >&6; }
7699 HAVE_QUORUM=yes
7700 fi
7701 CHECKCPG=yes
7702 CHECKDLM=yes
7703 fi
7704
7705 if test x$BUILDOPENAIS = xyes; then
7706
7707 pkg_failed=no
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7709 $as_echo_n "checking for SALCK... " >&6; }
7710
7711 if test -n "$SALCK_CFLAGS"; then
7712 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7713 elif test -n "$PKG_CONFIG"; then
7714 if test -n "$PKG_CONFIG" && \
7715 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7716 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7717 ac_status=$?
7718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7719 test $ac_status = 0; }; then
7720 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7721 else
7722 pkg_failed=yes
7723 fi
7724 else
7725 pkg_failed=untried
7726 fi
7727 if test -n "$SALCK_LIBS"; then
7728 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7729 elif test -n "$PKG_CONFIG"; then
7730 if test -n "$PKG_CONFIG" && \
7731 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7732 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7733 ac_status=$?
7734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735 test $ac_status = 0; }; then
7736 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7737 else
7738 pkg_failed=yes
7739 fi
7740 else
7741 pkg_failed=untried
7742 fi
7743
7744
7745
7746 if test $pkg_failed = yes; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749
7750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7751 _pkg_short_errors_supported=yes
7752 else
7753 _pkg_short_errors_supported=no
7754 fi
7755 if test $_pkg_short_errors_supported = yes; then
7756 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7757 else
7758 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7759 fi
7760 # Put the nasty error message in config.log where it belongs
7761 echo "$SALCK_PKG_ERRORS" >&5
7762
7763 $bailout
7764 elif test $pkg_failed = untried; then
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 $bailout
7768 else
7769 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7770 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7772 $as_echo "yes" >&6; }
7773 HAVE_SALCK=yes
7774 fi
7775 CHECKCPG=yes
7776 fi
7777
7778
7779
7780 if test x$CHECKCONFDB = xyes; then
7781
7782 pkg_failed=no
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7784 $as_echo_n "checking for CONFDB... " >&6; }
7785
7786 if test -n "$CONFDB_CFLAGS"; then
7787 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7788 elif test -n "$PKG_CONFIG"; then
7789 if test -n "$PKG_CONFIG" && \
7790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7791 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7792 ac_status=$?
7793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7794 test $ac_status = 0; }; then
7795 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7796 else
7797 pkg_failed=yes
7798 fi
7799 else
7800 pkg_failed=untried
7801 fi
7802 if test -n "$CONFDB_LIBS"; then
7803 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7804 elif test -n "$PKG_CONFIG"; then
7805 if test -n "$PKG_CONFIG" && \
7806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7807 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7808 ac_status=$?
7809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810 test $ac_status = 0; }; then
7811 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7812 else
7813 pkg_failed=yes
7814 fi
7815 else
7816 pkg_failed=untried
7817 fi
7818
7819
7820
7821 if test $pkg_failed = yes; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7824
7825 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7826 _pkg_short_errors_supported=yes
7827 else
7828 _pkg_short_errors_supported=no
7829 fi
7830 if test $_pkg_short_errors_supported = yes; then
7831 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7832 else
7833 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7834 fi
7835 # Put the nasty error message in config.log where it belongs
7836 echo "$CONFDB_PKG_ERRORS" >&5
7837
7838 HAVE_CONFDB=no
7839 elif test $pkg_failed = untried; then
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 HAVE_CONFDB=no
7843 else
7844 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7845 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7847 $as_echo "yes" >&6; }
7848 HAVE_CONFDB=yes
7849 fi
7850
7851 for ac_header in corosync/confdb.h
7852 do :
7853 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7854 if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7855 cat >>confdefs.h <<_ACEOF
7856 #define HAVE_COROSYNC_CONFDB_H 1
7857 _ACEOF
7858 HAVE_CONFDB_H=yes
7859 else
7860 HAVE_CONFDB_H=no
7861 fi
7862
7863 done
7864
7865
7866 if test x$HAVE_CONFDB != xyes && \
7867 test x$HAVE_CONFDB_H = xyes; then
7868 check_lib_no_libs confdb confdb_initialize
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7870 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7871 CONFDB_LIBS="-lconfdb"
7872 HAVE_CONFDB=yes
7873 fi
7874 fi
7875
7876
7877 if test x$CHECKCMAP = xyes; then
7878
7879 pkg_failed=no
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAP" >&5
7881 $as_echo_n "checking for CMAP... " >&6; }
7882
7883 if test -n "$CMAP_CFLAGS"; then
7884 pkg_cv_CMAP_CFLAGS="$CMAP_CFLAGS"
7885 elif test -n "$PKG_CONFIG"; then
7886 if test -n "$PKG_CONFIG" && \
7887 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7888 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7889 ac_status=$?
7890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7891 test $ac_status = 0; }; then
7892 pkg_cv_CMAP_CFLAGS=`$PKG_CONFIG --cflags "libcmap" 2>/dev/null`
7893 else
7894 pkg_failed=yes
7895 fi
7896 else
7897 pkg_failed=untried
7898 fi
7899 if test -n "$CMAP_LIBS"; then
7900 pkg_cv_CMAP_LIBS="$CMAP_LIBS"
7901 elif test -n "$PKG_CONFIG"; then
7902 if test -n "$PKG_CONFIG" && \
7903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcmap\""; } >&5
7904 ($PKG_CONFIG --exists --print-errors "libcmap") 2>&5
7905 ac_status=$?
7906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7907 test $ac_status = 0; }; then
7908 pkg_cv_CMAP_LIBS=`$PKG_CONFIG --libs "libcmap" 2>/dev/null`
7909 else
7910 pkg_failed=yes
7911 fi
7912 else
7913 pkg_failed=untried
7914 fi
7915
7916
7917
7918 if test $pkg_failed = yes; then
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921
7922 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7923 _pkg_short_errors_supported=yes
7924 else
7925 _pkg_short_errors_supported=no
7926 fi
7927 if test $_pkg_short_errors_supported = yes; then
7928 CMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcmap" 2>&1`
7929 else
7930 CMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcmap" 2>&1`
7931 fi
7932 # Put the nasty error message in config.log where it belongs
7933 echo "$CMAP_PKG_ERRORS" >&5
7934
7935 HAVE_CMAP=no
7936 elif test $pkg_failed = untried; then
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 HAVE_CMAP=no
7940 else
7941 CMAP_CFLAGS=$pkg_cv_CMAP_CFLAGS
7942 CMAP_LIBS=$pkg_cv_CMAP_LIBS
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7944 $as_echo "yes" >&6; }
7945 HAVE_CMAP=yes
7946 fi
7947
7948 for ac_header in corosync/cmap.h
7949 do :
7950 ac_fn_c_check_header_mongrel "$LINENO" "corosync/cmap.h" "ac_cv_header_corosync_cmap_h" "$ac_includes_default"
7951 if test "x$ac_cv_header_corosync_cmap_h" = x""yes; then :
7952 cat >>confdefs.h <<_ACEOF
7953 #define HAVE_COROSYNC_CMAP_H 1
7954 _ACEOF
7955 HAVE_CMAP_H=yes
7956 else
7957 HAVE_CMAP_H=no
7958 fi
7959
7960 done
7961
7962
7963 if test x$HAVE_CMAP != xyes && \
7964 test x$HAVE_CMAP_H = xyes; then
7965 check_lib_no_libs cmap cmap_initialize
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for cmap, using -lcmap" >&5
7967 $as_echo "no pkg for cmap, using -lcmap" >&6; }
7968 CMAP_LIBS="-lcmap"
7969 HAVE_CMAP=yes
7970 fi
7971 fi
7972
7973 if test x$BUILDCOROSYNC = xyes; then
7974 if test x$HAVE_CMAP != xyes && \
7975 test x$HAVE_CONFDB != xyes && \
7976 test x$CLVMD != xall; then
7977 as_fn_error $? "bailing out... cmap (corosync >= 2.0) or confdb (corosync < 2.0) library is required" "$LINENO" 5
7978 fi
7979 fi
7980
7981 if test x$CHECKCPG = xyes; then
7982
7983 pkg_failed=no
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7985 $as_echo_n "checking for CPG... " >&6; }
7986
7987 if test -n "$CPG_CFLAGS"; then
7988 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7989 elif test -n "$PKG_CONFIG"; then
7990 if test -n "$PKG_CONFIG" && \
7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7992 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7993 ac_status=$?
7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7995 test $ac_status = 0; }; then
7996 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7997 else
7998 pkg_failed=yes
7999 fi
8000 else
8001 pkg_failed=untried
8002 fi
8003 if test -n "$CPG_LIBS"; then
8004 pkg_cv_CPG_LIBS="$CPG_LIBS"
8005 elif test -n "$PKG_CONFIG"; then
8006 if test -n "$PKG_CONFIG" && \
8007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8008 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8009 ac_status=$?
8010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8011 test $ac_status = 0; }; then
8012 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8013 else
8014 pkg_failed=yes
8015 fi
8016 else
8017 pkg_failed=untried
8018 fi
8019
8020
8021
8022 if test $pkg_failed = yes; then
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8025
8026 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8027 _pkg_short_errors_supported=yes
8028 else
8029 _pkg_short_errors_supported=no
8030 fi
8031 if test $_pkg_short_errors_supported = yes; then
8032 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8033 else
8034 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8035 fi
8036 # Put the nasty error message in config.log where it belongs
8037 echo "$CPG_PKG_ERRORS" >&5
8038
8039 $bailout
8040 elif test $pkg_failed = untried; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042 $as_echo "no" >&6; }
8043 $bailout
8044 else
8045 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8046 CPG_LIBS=$pkg_cv_CPG_LIBS
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8048 $as_echo "yes" >&6; }
8049 HAVE_CPG=yes
8050 fi
8051 fi
8052
8053 if test x$CHECKDLM = xyes; then
8054
8055 pkg_failed=no
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8057 $as_echo_n "checking for DLM... " >&6; }
8058
8059 if test -n "$DLM_CFLAGS"; then
8060 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8061 elif test -n "$PKG_CONFIG"; then
8062 if test -n "$PKG_CONFIG" && \
8063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8064 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8065 ac_status=$?
8066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8067 test $ac_status = 0; }; then
8068 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8069 else
8070 pkg_failed=yes
8071 fi
8072 else
8073 pkg_failed=untried
8074 fi
8075 if test -n "$DLM_LIBS"; then
8076 pkg_cv_DLM_LIBS="$DLM_LIBS"
8077 elif test -n "$PKG_CONFIG"; then
8078 if test -n "$PKG_CONFIG" && \
8079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8080 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8085 else
8086 pkg_failed=yes
8087 fi
8088 else
8089 pkg_failed=untried
8090 fi
8091
8092
8093
8094 if test $pkg_failed = yes; then
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097
8098 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8099 _pkg_short_errors_supported=yes
8100 else
8101 _pkg_short_errors_supported=no
8102 fi
8103 if test $_pkg_short_errors_supported = yes; then
8104 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8105 else
8106 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8107 fi
8108 # Put the nasty error message in config.log where it belongs
8109 echo "$DLM_PKG_ERRORS" >&5
8110
8111 NOTFOUND=0
8112 for ac_header in libdlm.h
8113 do :
8114 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8115 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8116 cat >>confdefs.h <<_ACEOF
8117 #define HAVE_LIBDLM_H 1
8118 _ACEOF
8119
8120 else
8121 $bailout
8122 fi
8123
8124 done
8125
8126 check_lib_no_libs dlm dlm_lock -lpthread
8127 if test $NOTFOUND = 0; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8129 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8130 DLM_LIBS="-ldlm -lpthread"
8131 HAVE_DLM=yes
8132 fi
8133 elif test $pkg_failed = untried; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8135 $as_echo "no" >&6; }
8136 NOTFOUND=0
8137 for ac_header in libdlm.h
8138 do :
8139 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8140 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8141 cat >>confdefs.h <<_ACEOF
8142 #define HAVE_LIBDLM_H 1
8143 _ACEOF
8144
8145 else
8146 $bailout
8147 fi
8148
8149 done
8150
8151 check_lib_no_libs dlm dlm_lock -lpthread
8152 if test $NOTFOUND = 0; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8154 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8155 DLM_LIBS="-ldlm -lpthread"
8156 HAVE_DLM=yes
8157 fi
8158 else
8159 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8160 DLM_LIBS=$pkg_cv_DLM_LIBS
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8162 $as_echo "yes" >&6; }
8163 HAVE_DLM=yes
8164 fi
8165 fi
8166
8167 if test x$CLVMD = xall; then
8168 CLVMD=none
8169 CLVMD_CMANAGERS=""
8170 CLVMD_NEEDS_QDISKD=no
8171 if test x$HAVE_CMAN = xyes && \
8172 test x$HAVE_DLM = xyes; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8174 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8175 CLVMD="$CLVMD,cman"
8176 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8177 CLVMD_NEEDS_QDISKD=yes
8178 fi
8179 if test x$HAVE_COROSYNC = xyes && \
8180 test x$HAVE_QUORUM = xyes && \
8181 test x$HAVE_CPG = xyes && \
8182 test x$HAVE_DLM = xyes; then
8183 if test x$HAVE_CONFDB = xyes || test x$HAVE_CMAP = xyes; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8185 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8186 CLVMD="$CLVMD,corosync"
8187 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8188 fi
8189 fi
8190 if test x$HAVE_COROSYNC = xyes && \
8191 test x$HAVE_CPG = xyes && \
8192 test x$HAVE_SALCK = xyes; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8194 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8195 CLVMD="$CLVMD,openais"
8196 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8197 fi
8198 if test x$CLVMD_NEEDS_QDISKD != xno; then
8199 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8200 fi
8201 if test x$CLVMD = xnone; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8203 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8204 fi
8205 fi
8206
8207 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
8208 if test x$HAVE_CMAP = xyes; then
8209 CLVMD_CMANAGERS="$CLVMD_CMANAGERS dlm"
8210 fi
8211 fi
8212
8213 ################################################################################
8214 if test "x$CLVMD" != xnone; then
8215
8216 # Check whether --with-clvmd-pidfile was given.
8217 if test "${with_clvmd_pidfile+set}" = set; then :
8218 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
8219 else
8220 CLVMD_PIDFILE="/var/run/clvmd.pid"
8221 fi
8222
8223
8224 cat >>confdefs.h <<_ACEOF
8225 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8226 _ACEOF
8227
8228 fi
8229
8230 ################################################################################
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8232 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8233 # Check whether --enable-cmirrord was given.
8234 if test "${enable_cmirrord+set}" = set; then :
8235 enableval=$enable_cmirrord; CMIRRORD=$enableval
8236 else
8237 CMIRRORD=no
8238 fi
8239
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8241 $as_echo "$CMIRRORD" >&6; }
8242
8243 BUILD_CMIRRORD=$CMIRRORD
8244
8245 ################################################################################
8246 if test "x$BUILD_CMIRRORD" = xyes; then
8247
8248 # Check whether --with-cmirrord-pidfile was given.
8249 if test "${with_cmirrord_pidfile+set}" = set; then :
8250 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
8251 else
8252 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
8253 fi
8254
8255
8256 cat >>confdefs.h <<_ACEOF
8257 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8258 _ACEOF
8259
8260 fi
8261
8262 ################################################################################
8263 if [ "x$BUILD_CMIRRORD" = xyes ]; then
8264 if test x$PKGCONFIG_INIT != x1; then
8265 pkg_config_init
8266 fi
8267
8268
8269 $as_echo "#define CMIRROR_HAS_CHECKPOINT 1" >>confdefs.h
8270
8271
8272 pkg_failed=no
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8274 $as_echo_n "checking for SACKPT... " >&6; }
8275
8276 if test -n "$SACKPT_CFLAGS"; then
8277 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8278 elif test -n "$PKG_CONFIG"; then
8279 if test -n "$PKG_CONFIG" && \
8280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8281 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8282 ac_status=$?
8283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8284 test $ac_status = 0; }; then
8285 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8286 else
8287 pkg_failed=yes
8288 fi
8289 else
8290 pkg_failed=untried
8291 fi
8292 if test -n "$SACKPT_LIBS"; then
8293 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8294 elif test -n "$PKG_CONFIG"; then
8295 if test -n "$PKG_CONFIG" && \
8296 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8297 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8298 ac_status=$?
8299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8300 test $ac_status = 0; }; then
8301 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8302 else
8303 pkg_failed=yes
8304 fi
8305 else
8306 pkg_failed=untried
8307 fi
8308
8309
8310
8311 if test $pkg_failed = yes; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313 $as_echo "no" >&6; }
8314
8315 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8316 _pkg_short_errors_supported=yes
8317 else
8318 _pkg_short_errors_supported=no
8319 fi
8320 if test $_pkg_short_errors_supported = yes; then
8321 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8322 else
8323 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8324 fi
8325 # Put the nasty error message in config.log where it belongs
8326 echo "$SACKPT_PKG_ERRORS" >&5
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8329 $as_echo "no libSaCkpt, compiling without it" >&6; }
8330
8331 $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
8332
8333 elif test $pkg_failed = untried; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no libSaCkpt, compiling without it" >&5
8337 $as_echo "no libSaCkpt, compiling without it" >&6; }
8338
8339 $as_echo "#define CMIRROR_HAS_CHECKPOINT 0" >>confdefs.h
8340
8341 else
8342 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8343 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8345 $as_echo "yes" >&6; }
8346 HAVE_SACKPT=yes
8347 fi
8348
8349 if test x$HAVE_CPG != xyes; then
8350
8351 pkg_failed=no
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8353 $as_echo_n "checking for CPG... " >&6; }
8354
8355 if test -n "$CPG_CFLAGS"; then
8356 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8357 elif test -n "$PKG_CONFIG"; then
8358 if test -n "$PKG_CONFIG" && \
8359 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8360 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8361 ac_status=$?
8362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8363 test $ac_status = 0; }; then
8364 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8365 else
8366 pkg_failed=yes
8367 fi
8368 else
8369 pkg_failed=untried
8370 fi
8371 if test -n "$CPG_LIBS"; then
8372 pkg_cv_CPG_LIBS="$CPG_LIBS"
8373 elif test -n "$PKG_CONFIG"; then
8374 if test -n "$PKG_CONFIG" && \
8375 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8376 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8377 ac_status=$?
8378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8379 test $ac_status = 0; }; then
8380 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8381 else
8382 pkg_failed=yes
8383 fi
8384 else
8385 pkg_failed=untried
8386 fi
8387
8388
8389
8390 if test $pkg_failed = yes; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393
8394 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8395 _pkg_short_errors_supported=yes
8396 else
8397 _pkg_short_errors_supported=no
8398 fi
8399 if test $_pkg_short_errors_supported = yes; then
8400 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8401 else
8402 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8403 fi
8404 # Put the nasty error message in config.log where it belongs
8405 echo "$CPG_PKG_ERRORS" >&5
8406
8407 as_fn_error $? "Package requirements (libcpg) were not met:
8408
8409 $CPG_PKG_ERRORS
8410
8411 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8412 installed software in a non-standard prefix.
8413
8414 Alternatively, you may set the environment variables CPG_CFLAGS
8415 and CPG_LIBS to avoid the need to call pkg-config.
8416 See the pkg-config man page for more details." "$LINENO" 5
8417
8418 elif test $pkg_failed = untried; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8420 $as_echo "no" >&6; }
8421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8423 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8424 is in your PATH or set the PKG_CONFIG environment variable to the full
8425 path to pkg-config.
8426
8427 Alternatively, you may set the environment variables CPG_CFLAGS
8428 and CPG_LIBS to avoid the need to call pkg-config.
8429 See the pkg-config man page for more details.
8430
8431 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8432 See \`config.log' for more details" "$LINENO" 5; }
8433
8434 else
8435 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8436 CPG_LIBS=$pkg_cv_CPG_LIBS
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8438 $as_echo "yes" >&6; }
8439
8440 fi
8441 fi
8442 fi
8443
8444 ################################################################################
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8446 $as_echo_n "checking whether to enable debugging... " >&6; }
8447 # Check whether --enable-debug was given.
8448 if test "${enable_debug+set}" = set; then :
8449 enableval=$enable_debug; DEBUG=$enableval
8450 else
8451 DEBUG=no
8452 fi
8453
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8455 $as_echo "$DEBUG" >&6; }
8456
8457 if test x$DEBUG = xyes; then
8458 COPTIMISE_FLAG=
8459 else
8460 CSCOPE_CMD=
8461 fi
8462
8463 ################################################################################
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8465 $as_echo_n "checking for C optimisation flag... " >&6; }
8466
8467 # Check whether --with-optimisation was given.
8468 if test "${with_optimisation+set}" = set; then :
8469 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8470 fi
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8473 $as_echo "$COPTIMISE_FLAG" >&6; }
8474
8475 ################################################################################
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8477 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8478 # Check whether --enable-profiling was given.
8479 if test "${enable_profiling+set}" = set; then :
8480 enableval=$enable_profiling; PROFILING=$enableval
8481 else
8482 PROFILING=no
8483 fi
8484
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8486 $as_echo "$PROFILING" >&6; }
8487
8488 if test "x$PROFILING" = xyes; then
8489 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8490 # Extract the first word of "lcov", so it can be a program name with args.
8491 set dummy lcov; ac_word=$2
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8493 $as_echo_n "checking for $ac_word... " >&6; }
8494 if test "${ac_cv_path_LCOV+set}" = set; then :
8495 $as_echo_n "(cached) " >&6
8496 else
8497 case $LCOV in
8498 [\\/]* | ?:[\\/]*)
8499 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8500 ;;
8501 *)
8502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 for as_dir in $PATH
8504 do
8505 IFS=$as_save_IFS
8506 test -z "$as_dir" && as_dir=.
8507 for ac_exec_ext in '' $ac_executable_extensions; do
8508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8509 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8511 break 2
8512 fi
8513 done
8514 done
8515 IFS=$as_save_IFS
8516
8517 ;;
8518 esac
8519 fi
8520 LCOV=$ac_cv_path_LCOV
8521 if test -n "$LCOV"; then
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8523 $as_echo "$LCOV" >&6; }
8524 else
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8527 fi
8528
8529
8530 # Extract the first word of "genhtml", so it can be a program name with args.
8531 set dummy genhtml; ac_word=$2
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8533 $as_echo_n "checking for $ac_word... " >&6; }
8534 if test "${ac_cv_path_GENHTML+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8536 else
8537 case $GENHTML in
8538 [\\/]* | ?:[\\/]*)
8539 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8540 ;;
8541 *)
8542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543 for as_dir in $PATH
8544 do
8545 IFS=$as_save_IFS
8546 test -z "$as_dir" && as_dir=.
8547 for ac_exec_ext in '' $ac_executable_extensions; do
8548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8551 break 2
8552 fi
8553 done
8554 done
8555 IFS=$as_save_IFS
8556
8557 ;;
8558 esac
8559 fi
8560 GENHTML=$ac_cv_path_GENHTML
8561 if test -n "$GENHTML"; then
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8563 $as_echo "$GENHTML" >&6; }
8564 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8566 $as_echo "no" >&6; }
8567 fi
8568
8569
8570 if test -z "$LCOV" -o -z "$GENHTML"; then
8571 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8572 fi
8573 # Extract the first word of "genpng", so it can be a program name with args.
8574 set dummy genpng; ac_word=$2
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8576 $as_echo_n "checking for $ac_word... " >&6; }
8577 if test "${ac_cv_path_GENPNG+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 case $GENPNG in
8581 [\\/]* | ?:[\\/]*)
8582 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8583 ;;
8584 *)
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8587 do
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8595 fi
8596 done
8597 done
8598 IFS=$as_save_IFS
8599
8600 ;;
8601 esac
8602 fi
8603 GENPNG=$ac_cv_path_GENPNG
8604 if test -n "$GENPNG"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8606 $as_echo "$GENPNG" >&6; }
8607 else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609 $as_echo "no" >&6; }
8610 fi
8611
8612
8613 if test -n "$GENPNG"; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8615 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8616 if $GENPNG --help > /dev/null 2>&1 ; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8618 $as_echo "ok" >&6; }
8619 GENHTML="$GENHTML --frames"
8620 else
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8622 $as_echo "not supported" >&6; }
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8624 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8625 GENPNG=
8626 fi
8627 fi
8628 fi
8629
8630 ################################################################################
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8632 $as_echo_n "checking whether to enable unit testing... " >&6; }
8633 # Check whether --enable-testing was given.
8634 if test "${enable_testing+set}" = set; then :
8635 enableval=$enable_testing; TESTING=$enableval
8636 else
8637 TESTING=no
8638 fi
8639
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8641 $as_echo "$TESTING" >&6; }
8642
8643 if test "$TESTING" = yes; then
8644
8645 pkg_failed=no
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUNIT" >&5
8647 $as_echo_n "checking for CUNIT... " >&6; }
8648
8649 if test -n "$CUNIT_CFLAGS"; then
8650 pkg_cv_CUNIT_CFLAGS="$CUNIT_CFLAGS"
8651 elif test -n "$PKG_CONFIG"; then
8652 if test -n "$PKG_CONFIG" && \
8653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8654 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8655 ac_status=$?
8656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8657 test $ac_status = 0; }; then
8658 pkg_cv_CUNIT_CFLAGS=`$PKG_CONFIG --cflags "cunit >= 2.0" 2>/dev/null`
8659 else
8660 pkg_failed=yes
8661 fi
8662 else
8663 pkg_failed=untried
8664 fi
8665 if test -n "$CUNIT_LIBS"; then
8666 pkg_cv_CUNIT_LIBS="$CUNIT_LIBS"
8667 elif test -n "$PKG_CONFIG"; then
8668 if test -n "$PKG_CONFIG" && \
8669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cunit >= 2.0\""; } >&5
8670 ($PKG_CONFIG --exists --print-errors "cunit >= 2.0") 2>&5
8671 ac_status=$?
8672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673 test $ac_status = 0; }; then
8674 pkg_cv_CUNIT_LIBS=`$PKG_CONFIG --libs "cunit >= 2.0" 2>/dev/null`
8675 else
8676 pkg_failed=yes
8677 fi
8678 else
8679 pkg_failed=untried
8680 fi
8681
8682
8683
8684 if test $pkg_failed = yes; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686 $as_echo "no" >&6; }
8687
8688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8689 _pkg_short_errors_supported=yes
8690 else
8691 _pkg_short_errors_supported=no
8692 fi
8693 if test $_pkg_short_errors_supported = yes; then
8694 CUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cunit >= 2.0" 2>&1`
8695 else
8696 CUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "cunit >= 2.0" 2>&1`
8697 fi
8698 # Put the nasty error message in config.log where it belongs
8699 echo "$CUNIT_PKG_ERRORS" >&5
8700
8701 as_fn_error $? "Package requirements (cunit >= 2.0) were not met:
8702
8703 $CUNIT_PKG_ERRORS
8704
8705 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8706 installed software in a non-standard prefix.
8707
8708 Alternatively, you may set the environment variables CUNIT_CFLAGS
8709 and CUNIT_LIBS to avoid the need to call pkg-config.
8710 See the pkg-config man page for more details." "$LINENO" 5
8711
8712 elif test $pkg_failed = untried; then
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8717 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8718 is in your PATH or set the PKG_CONFIG environment variable to the full
8719 path to pkg-config.
8720
8721 Alternatively, you may set the environment variables CUNIT_CFLAGS
8722 and CUNIT_LIBS to avoid the need to call pkg-config.
8723 See the pkg-config man page for more details.
8724
8725 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8726 See \`config.log' for more details" "$LINENO" 5; }
8727
8728 else
8729 CUNIT_CFLAGS=$pkg_cv_CUNIT_CFLAGS
8730 CUNIT_LIBS=$pkg_cv_CUNIT_LIBS
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8732 $as_echo "yes" >&6; }
8733
8734 fi
8735 fi
8736
8737 ################################################################################
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8739 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8740 # Check whether --enable-valgrind_pool was given.
8741 if test "${enable_valgrind_pool+set}" = set; then :
8742 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8743 else
8744 VALGRIND_POOL=no
8745 fi
8746
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8748 $as_echo "$VALGRIND_POOL" >&6; }
8749
8750 if test "$VALGRIND_POOL" = yes; then
8751 for ac_header in valgrind/memcheck.h
8752 do :
8753 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8754 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8755 cat >>confdefs.h <<_ACEOF
8756 #define HAVE_VALGRIND_MEMCHECK_H 1
8757 _ACEOF
8758
8759 else
8760 as_fn_error $? "bailing out" "$LINENO" 5
8761 fi
8762
8763 done
8764
8765
8766 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8767
8768 fi
8769
8770 ################################################################################
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8772 $as_echo_n "checking whether to use device-mapper... " >&6; }
8773 # Check whether --enable-devmapper was given.
8774 if test "${enable_devmapper+set}" = set; then :
8775 enableval=$enable_devmapper; DEVMAPPER=$enableval
8776 fi
8777
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8779 $as_echo "$DEVMAPPER" >&6; }
8780
8781 if test x$DEVMAPPER = xyes; then
8782
8783 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8784
8785 fi
8786
8787 ################################################################################
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8789 $as_echo_n "checking whether to build LVMetaD... " >&6; }
8790 # Check whether --enable-lvmetad was given.
8791 if test "${enable_lvmetad+set}" = set; then :
8792 enableval=$enable_lvmetad; LVMETAD=$enableval
8793 fi
8794
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8796 $as_echo "$LVMETAD" >&6; }
8797
8798 BUILD_LVMETAD=$LVMETAD
8799
8800 if test x$BUILD_LVMETAD = xyes; then
8801
8802 $as_echo "#define LVMETAD_SUPPORT 1" >>confdefs.h
8803
8804 fi
8805
8806 ################################################################################
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8808 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8809 # Check whether --enable-udev_sync was given.
8810 if test "${enable_udev_sync+set}" = set; then :
8811 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8812 else
8813 UDEV_SYNC=no
8814 fi
8815
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8817 $as_echo "$UDEV_SYNC" >&6; }
8818
8819 if test x$UDEV_SYNC = xyes; then
8820 if test x$PKGCONFIG_INIT != x1; then
8821 pkg_config_init
8822 fi
8823
8824 pkg_failed=no
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8826 $as_echo_n "checking for UDEV... " >&6; }
8827
8828 if test -n "$UDEV_CFLAGS"; then
8829 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8830 elif test -n "$PKG_CONFIG"; then
8831 if test -n "$PKG_CONFIG" && \
8832 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8833 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8834 ac_status=$?
8835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8836 test $ac_status = 0; }; then
8837 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8838 else
8839 pkg_failed=yes
8840 fi
8841 else
8842 pkg_failed=untried
8843 fi
8844 if test -n "$UDEV_LIBS"; then
8845 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8846 elif test -n "$PKG_CONFIG"; then
8847 if test -n "$PKG_CONFIG" && \
8848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8849 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8850 ac_status=$?
8851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8852 test $ac_status = 0; }; then
8853 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8854 else
8855 pkg_failed=yes
8856 fi
8857 else
8858 pkg_failed=untried
8859 fi
8860
8861
8862
8863 if test $pkg_failed = yes; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866
8867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8868 _pkg_short_errors_supported=yes
8869 else
8870 _pkg_short_errors_supported=no
8871 fi
8872 if test $_pkg_short_errors_supported = yes; then
8873 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8874 else
8875 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8876 fi
8877 # Put the nasty error message in config.log where it belongs
8878 echo "$UDEV_PKG_ERRORS" >&5
8879
8880 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8881
8882 $UDEV_PKG_ERRORS
8883
8884 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8885 installed software in a non-standard prefix.
8886
8887 Alternatively, you may set the environment variables UDEV_CFLAGS
8888 and UDEV_LIBS to avoid the need to call pkg-config.
8889 See the pkg-config man page for more details." "$LINENO" 5
8890
8891 elif test $pkg_failed = untried; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8896 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8897 is in your PATH or set the PKG_CONFIG environment variable to the full
8898 path to pkg-config.
8899
8900 Alternatively, you may set the environment variables UDEV_CFLAGS
8901 and UDEV_LIBS to avoid the need to call pkg-config.
8902 See the pkg-config man page for more details.
8903
8904 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8905 See \`config.log' for more details" "$LINENO" 5; }
8906
8907 else
8908 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8909 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8911 $as_echo "yes" >&6; }
8912 UDEV_PC="libudev"
8913 fi
8914
8915 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8916
8917 fi
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8920 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8921 # Check whether --enable-udev_rules was given.
8922 if test "${enable_udev_rules+set}" = set; then :
8923 enableval=$enable_udev_rules; UDEV_RULES=$enableval
8924 else
8925 UDEV_RULES=$UDEV_SYNC
8926 fi
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8929 $as_echo "$UDEV_RULES" >&6; }
8930
8931 if test x$UDEV_RULES = xyes; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether udev supports builtin blkid" >&5
8933 $as_echo_n "checking whether udev supports builtin blkid... " >&6; }
8934 udev_version=$(udevadm info --version 2>/dev/null)
8935 if test -n "$udev_version" && test "$udev_version" -ge 176; then
8936 UDEV_HAS_BUILTIN_BLKID=yes
8937 else
8938 UDEV_HAS_BUILTIN_BLKID=no
8939 fi
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
8941 $as_echo "$UDEV_HAS_BUILTIN_BLKID" >&6; }
8942 fi
8943
8944 ################################################################################
8945 # Check whether --enable-compat was given.
8946 if test "${enable_compat+set}" = set; then :
8947 enableval=$enable_compat; DM_COMPAT=$enableval
8948 else
8949 DM_COMPAT=no
8950 fi
8951
8952
8953 if test x$DM_COMPAT = xyes; then
8954 as_fn_error $? "--enable-compat is not currently supported.
8955 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8956 ioctl protocol is supported.
8957 " "$LINENO" 5
8958 fi
8959
8960 ################################################################################
8961 # Check whether --enable-units-compat was given.
8962 if test "${enable_units_compat+set}" = set; then :
8963 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
8964 else
8965 UNITS_COMPAT=no
8966 fi
8967
8968
8969 if test x$UNITS_COMPAT = xyes; then
8970
8971 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8972
8973 fi
8974
8975 ################################################################################
8976 # Check whether --enable-ioctl was given.
8977 if test "${enable_ioctl+set}" = set; then :
8978 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8979 fi
8980
8981
8982 ################################################################################
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8984 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8985 # Check whether --enable-o_direct was given.
8986 if test "${enable_o_direct+set}" = set; then :
8987 enableval=$enable_o_direct; ODIRECT=$enableval
8988 fi
8989
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8991 $as_echo "$ODIRECT" >&6; }
8992
8993 if test x$ODIRECT = xyes; then
8994
8995 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8996
8997 fi
8998
8999 ################################################################################
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
9001 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9002 # Check whether --enable-applib was given.
9003 if test "${enable_applib+set}" = set; then :
9004 enableval=$enable_applib; APPLIB=$enableval
9005 else
9006 APPLIB=no
9007 fi
9008
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
9010 $as_echo "$APPLIB" >&6; }
9011
9012 test x$APPLIB = xyes \
9013 && LVM2APP_LIB=-llvm2app \
9014 || LVM2APP_LIB=
9015
9016 ################################################################################
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
9018 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9019 # Check whether --enable-cmdlib was given.
9020 if test "${enable_cmdlib+set}" = set; then :
9021 enableval=$enable_cmdlib; CMDLIB=$enableval
9022 else
9023 CMDLIB=no
9024 fi
9025
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
9027 $as_echo "$CMDLIB" >&6; }
9028
9029 test x$CMDLIB = xyes \
9030 && LVM2CMD_LIB=-llvm2cmd \
9031 || LVM2CMD_LIB=
9032
9033 ################################################################################
9034 # Check whether --enable-pkgconfig was given.
9035 if test "${enable_pkgconfig+set}" = set; then :
9036 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9037 else
9038 PKGCONFIG=no
9039 fi
9040
9041
9042 ################################################################################
9043 # Check whether --enable-write_install was given.
9044 if test "${enable_write_install+set}" = set; then :
9045 enableval=$enable_write_install; WRITE_INSTALL=$enableval
9046 else
9047 WRITE_INSTALL=no
9048 fi
9049
9050
9051 ################################################################################
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9053 $as_echo_n "checking whether to install fsadm... " >&6; }
9054 # Check whether --enable-fsadm was given.
9055 if test "${enable_fsadm+set}" = set; then :
9056 enableval=$enable_fsadm; FSADM=$enableval
9057 fi
9058
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9060 $as_echo "$FSADM" >&6; }
9061
9062 ################################################################################
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9064 $as_echo_n "checking whether to use dmeventd... " >&6; }
9065 # Check whether --enable-dmeventd was given.
9066 if test "${enable_dmeventd+set}" = set; then :
9067 enableval=$enable_dmeventd; DMEVENTD=$enableval
9068 fi
9069
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9071 $as_echo "$DMEVENTD" >&6; }
9072
9073 BUILD_DMEVENTD=$DMEVENTD
9074
9075 if test x$DMEVENTD = xyes; then
9076 if test x$MIRRORS != xinternal; then
9077 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9078 " "$LINENO" 5
9079 fi
9080 if test x$CMDLIB = xno; then
9081 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9082 " "$LINENO" 5
9083 fi
9084 fi
9085
9086 if test x$DMEVENTD = xyes; then
9087
9088 $as_echo "#define DMEVENTD 1" >>confdefs.h
9089
9090 fi
9091
9092 ################################################################################
9093
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9095 $as_echo_n "checking for getline in -lc... " >&6; }
9096 if test "${ac_cv_lib_c_getline+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 ac_check_lib_save_LIBS=$LIBS
9100 LIBS="-lc $LIBS"
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9103
9104 /* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 char getline ();
9111 int
9112 main ()
9113 {
9114 return getline ();
9115 ;
9116 return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"; then :
9120 ac_cv_lib_c_getline=yes
9121 else
9122 ac_cv_lib_c_getline=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126 LIBS=$ac_check_lib_save_LIBS
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9129 $as_echo "$ac_cv_lib_c_getline" >&6; }
9130 if test "x$ac_cv_lib_c_getline" = x""yes; then :
9131
9132 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9133
9134 fi
9135
9136
9137 ################################################################################
9138
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9140 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9141 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9142 $as_echo_n "(cached) " >&6
9143 else
9144 ac_check_lib_save_LIBS=$LIBS
9145 LIBS="-lc $LIBS"
9146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148
9149 /* Override any GCC internal prototype to avoid an error.
9150 Use char because int might match the return type of a GCC
9151 builtin and then its argument prototype would still apply. */
9152 #ifdef __cplusplus
9153 extern "C"
9154 #endif
9155 char canonicalize_file_name ();
9156 int
9157 main ()
9158 {
9159 return canonicalize_file_name ();
9160 ;
9161 return 0;
9162 }
9163 _ACEOF
9164 if ac_fn_c_try_link "$LINENO"; then :
9165 ac_cv_lib_c_canonicalize_file_name=yes
9166 else
9167 ac_cv_lib_c_canonicalize_file_name=no
9168 fi
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9171 LIBS=$ac_check_lib_save_LIBS
9172 fi
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9174 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9175 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9176
9177 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9178
9179 fi
9180
9181
9182 ################################################################################
9183 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9184 then exec_prefix="";
9185 fi;
9186
9187 ################################################################################
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9189 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9190 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 ac_check_lib_save_LIBS=$LIBS
9194 LIBS="-ldl $LIBS"
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 char dlopen ();
9205 int
9206 main ()
9207 {
9208 return dlopen ();
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214 ac_cv_lib_dl_dlopen=yes
9215 else
9216 ac_cv_lib_dl_dlopen=no
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 LIBS=$ac_check_lib_save_LIBS
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9223 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9224 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9225
9226
9227 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9228
9229 DL_LIBS="-ldl"
9230 HAVE_LIBDL=yes
9231 else
9232
9233 DL_LIBS=
9234 HAVE_LIBDL=no
9235 fi
9236
9237
9238 ################################################################################
9239 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9240 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9241 -o "x$RAID" = xshared \
9242 \) -a "x$STATIC_LINK" = xyes ];
9243 then as_fn_error $? "Features cannot be 'shared' when building statically
9244 " "$LINENO" 5
9245 fi
9246
9247 ################################################################################
9248 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9250 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9251 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
9253 else
9254 ac_check_lib_save_LIBS=$LIBS
9255 LIBS="-lpthread $LIBS"
9256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258
9259 /* Override any GCC internal prototype to avoid an error.
9260 Use char because int might match the return type of a GCC
9261 builtin and then its argument prototype would still apply. */
9262 #ifdef __cplusplus
9263 extern "C"
9264 #endif
9265 char pthread_mutex_lock ();
9266 int
9267 main ()
9268 {
9269 return pthread_mutex_lock ();
9270 ;
9271 return 0;
9272 }
9273 _ACEOF
9274 if ac_fn_c_try_link "$LINENO"; then :
9275 ac_cv_lib_pthread_pthread_mutex_lock=yes
9276 else
9277 ac_cv_lib_pthread_pthread_mutex_lock=no
9278 fi
9279 rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
9281 LIBS=$ac_check_lib_save_LIBS
9282 fi
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9284 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9285 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9286 PTHREAD_LIBS="-lpthread"
9287 else
9288 hard_bailout
9289 fi
9290
9291 fi
9292
9293 ################################################################################
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9295 $as_echo_n "checking whether to enable selinux support... " >&6; }
9296 # Check whether --enable-selinux was given.
9297 if test "${enable_selinux+set}" = set; then :
9298 enableval=$enable_selinux; SELINUX=$enableval
9299 fi
9300
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9302 $as_echo "$SELINUX" >&6; }
9303
9304 ################################################################################
9305 if test x$SELINUX = xyes; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9307 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9308 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9310 else
9311 ac_check_lib_save_LIBS=$LIBS
9312 LIBS="-lsepol $LIBS"
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315
9316 /* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
9319 #ifdef __cplusplus
9320 extern "C"
9321 #endif
9322 char sepol_check_context ();
9323 int
9324 main ()
9325 {
9326 return sepol_check_context ();
9327 ;
9328 return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_link "$LINENO"; then :
9332 ac_cv_lib_sepol_sepol_check_context=yes
9333 else
9334 ac_cv_lib_sepol_sepol_check_context=no
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 LIBS=$ac_check_lib_save_LIBS
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9341 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9342 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9343
9344
9345 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9346
9347 SELINUX_LIBS="-lsepol"
9348 fi
9349
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9352 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9353 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356 ac_check_lib_save_LIBS=$LIBS
9357 LIBS="-lselinux $LIBS"
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char is_selinux_enabled ();
9368 int
9369 main ()
9370 {
9371 return is_selinux_enabled ();
9372 ;
9373 return 0;
9374 }
9375 _ACEOF
9376 if ac_fn_c_try_link "$LINENO"; then :
9377 ac_cv_lib_selinux_is_selinux_enabled=yes
9378 else
9379 ac_cv_lib_selinux_is_selinux_enabled=no
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383 LIBS=$ac_check_lib_save_LIBS
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9386 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9387 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9388
9389 for ac_header in selinux/selinux.h
9390 do :
9391 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9392 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9393 cat >>confdefs.h <<_ACEOF
9394 #define HAVE_SELINUX_SELINUX_H 1
9395 _ACEOF
9396
9397 else
9398 hard_bailout
9399 fi
9400
9401 done
9402
9403 for ac_header in selinux/label.h
9404 do :
9405 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9406 if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9407 cat >>confdefs.h <<_ACEOF
9408 #define HAVE_SELINUX_LABEL_H 1
9409 _ACEOF
9410
9411 fi
9412
9413 done
9414
9415
9416 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9417
9418 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9419 SELINUX_PC="libselinux"
9420 HAVE_SELINUX=yes
9421 else
9422
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9424 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9425 SELINUX_LIBS=
9426 SELINUX_PC=
9427 HAVE_SELINUX=no
9428 fi
9429
9430 fi
9431
9432 ################################################################################
9433 if test x$REALTIME = xyes; then
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9435 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9436 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 ac_check_lib_save_LIBS=$LIBS
9440 LIBS="-lrt $LIBS"
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443
9444 /* Override any GCC internal prototype to avoid an error.
9445 Use char because int might match the return type of a GCC
9446 builtin and then its argument prototype would still apply. */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char clock_gettime ();
9451 int
9452 main ()
9453 {
9454 return clock_gettime ();
9455 ;
9456 return 0;
9457 }
9458 _ACEOF
9459 if ac_fn_c_try_link "$LINENO"; then :
9460 ac_cv_lib_rt_clock_gettime=yes
9461 else
9462 ac_cv_lib_rt_clock_gettime=no
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 LIBS=$ac_check_lib_save_LIBS
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9469 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9470 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9471 HAVE_REALTIME=yes
9472 else
9473 HAVE_REALTIME=no
9474 fi
9475
9476
9477 if test x$HAVE_REALTIME = xyes; then
9478
9479 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9480
9481 LIBS="-lrt $LIBS"
9482 else
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9484 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9485 fi
9486 fi
9487
9488 ################################################################################
9489 for ac_header in getopt.h
9490 do :
9491 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9492 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9493 cat >>confdefs.h <<_ACEOF
9494 #define HAVE_GETOPT_H 1
9495 _ACEOF
9496
9497 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9498
9499 fi
9500
9501 done
9502
9503
9504 ################################################################################
9505 if test x$READLINE != xno; then
9506 lvm_saved_libs=$LIBS
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9508 $as_echo_n "checking for library containing tgetent... " >&6; }
9509 if test "${ac_cv_search_tgetent+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 ac_func_search_save_LIBS=$LIBS
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515
9516 /* Override any GCC internal prototype to avoid an error.
9517 Use char because int might match the return type of a GCC
9518 builtin and then its argument prototype would still apply. */
9519 #ifdef __cplusplus
9520 extern "C"
9521 #endif
9522 char tgetent ();
9523 int
9524 main ()
9525 {
9526 return tgetent ();
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9532 if test -z "$ac_lib"; then
9533 ac_res="none required"
9534 else
9535 ac_res=-l$ac_lib
9536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9537 fi
9538 if ac_fn_c_try_link "$LINENO"; then :
9539 ac_cv_search_tgetent=$ac_res
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext \
9542 conftest$ac_exeext
9543 if test "${ac_cv_search_tgetent+set}" = set; then :
9544 break
9545 fi
9546 done
9547 if test "${ac_cv_search_tgetent+set}" = set; then :
9548
9549 else
9550 ac_cv_search_tgetent=no
9551 fi
9552 rm conftest.$ac_ext
9553 LIBS=$ac_func_search_save_LIBS
9554 fi
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9556 $as_echo "$ac_cv_search_tgetent" >&6; }
9557 ac_res=$ac_cv_search_tgetent
9558 if test "$ac_res" != no; then :
9559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9560 READLINE_LIBS=$ac_cv_search_tgetent
9561 else
9562
9563 if test "$READLINE" = yes; then
9564 as_fn_error $? "termcap could not be found which is required for the
9565 --enable-readline option (which is enabled by default). Either disable readline
9566 support with --disable-readline or download and install termcap from:
9567 ftp.gnu.org/gnu/termcap
9568 Note: if you are using precompiled packages you will also need the development
9569 package as well (which may be called termcap-devel or something similar).
9570 Note: (n)curses also seems to work as a substitute for termcap. This was
9571 not found either - but you could try installing that as well." "$LINENO" 5
9572 fi
9573 fi
9574
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9576 $as_echo_n "checking for readline in -lreadline... " >&6; }
9577 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 ac_check_lib_save_LIBS=$LIBS
9581 LIBS="-lreadline $LIBS"
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584
9585 /* Override any GCC internal prototype to avoid an error.
9586 Use char because int might match the return type of a GCC
9587 builtin and then its argument prototype would still apply. */
9588 #ifdef __cplusplus
9589 extern "C"
9590 #endif
9591 char readline ();
9592 int
9593 main ()
9594 {
9595 return readline ();
9596 ;
9597 return 0;
9598 }
9599 _ACEOF
9600 if ac_fn_c_try_link "$LINENO"; then :
9601 ac_cv_lib_readline_readline=yes
9602 else
9603 ac_cv_lib_readline_readline=no
9604 fi
9605 rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9610 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9611 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9612
9613
9614 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9615
9616 LIBS=$lvm_saved_libs
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9618 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9619 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 ac_check_lib_save_LIBS=$LIBS
9623 LIBS="-lreadline $LIBS"
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9630 #ifdef __cplusplus
9631 extern "C"
9632 #endif
9633 char rl_line_buffer ();
9634 int
9635 main ()
9636 {
9637 return rl_line_buffer ();
9638 ;
9639 return 0;
9640 }
9641 _ACEOF
9642 if ac_fn_c_try_link "$LINENO"; then :
9643 ac_cv_lib_readline_rl_line_buffer=yes
9644 else
9645 ac_cv_lib_readline_rl_line_buffer=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext \
9648 conftest$ac_exeext conftest.$ac_ext
9649 LIBS=$ac_check_lib_save_LIBS
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9652 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9653 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9654 READLINE_LIBS="-lreadline"
9655 else
9656
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9658 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9659 READLINE_LIBS="-lreadline $READLINE_LIBS"
9660
9661 fi
9662
9663 else
9664
9665 READLINE_LIBS=
9666 if test "$READLINE" = yes; then
9667 as_fn_error $? "GNU Readline could not be found which is required for the
9668 --enable-readline option (which is enabled by default). Either disable readline
9669 support with --disable-readline or download and install readline from:
9670 ftp.gnu.org/gnu/readline
9671 Note: if you are using precompiled packages you will also need the development
9672 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9673 fi
9674 fi
9675
9676 LIBS="$READLINE_LIBS $lvm_saved_libs"
9677 for ac_func in rl_completion_matches
9678 do :
9679 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9680 if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9681 cat >>confdefs.h <<_ACEOF
9682 #define HAVE_RL_COMPLETION_MATCHES 1
9683 _ACEOF
9684
9685 fi
9686 done
9687
9688 LIBS=$lvm_saved_libs
9689 fi
9690
9691 ################################################################################
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9693 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9694 # Check whether --enable-nls was given.
9695 if test "${enable_nls+set}" = set; then :
9696 enableval=$enable_nls; INTL=$enableval
9697 else
9698 INTL=no
9699 fi
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9702 $as_echo "$INTL" >&6; }
9703
9704 if test x$INTL = xyes; then
9705 # FIXME - Move this - can be device-mapper too
9706 INTL_PACKAGE="lvm2"
9707 # Extract the first word of "msgfmt", so it can be a program name with args.
9708 set dummy msgfmt; ac_word=$2
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710 $as_echo_n "checking for $ac_word... " >&6; }
9711 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
9713 else
9714 case $MSGFMT in
9715 [\\/]* | ?:[\\/]*)
9716 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9717 ;;
9718 *)
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9721 do
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9726 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 break 2
9729 fi
9730 done
9731 done
9732 IFS=$as_save_IFS
9733
9734 ;;
9735 esac
9736 fi
9737 MSGFMT=$ac_cv_path_MSGFMT
9738 if test -n "$MSGFMT"; then
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9740 $as_echo "$MSGFMT" >&6; }
9741 else
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9743 $as_echo "no" >&6; }
9744 fi
9745
9746
9747 if [ "x$MSGFMT" == x ];
9748 then as_fn_error $? "msgfmt not found in path $PATH
9749 " "$LINENO" 5
9750 fi;
9751
9752
9753 # Check whether --with-localedir was given.
9754 if test "${with_localedir+set}" = set; then :
9755 withval=$with_localedir; LOCALEDIR=$withval
9756 else
9757 LOCALEDIR='${prefix}/share/locale'
9758 fi
9759
9760 fi
9761
9762 ################################################################################
9763
9764 # Check whether --with-confdir was given.
9765 if test "${with_confdir+set}" = set; then :
9766 withval=$with_confdir; CONFDIR=$withval
9767 else
9768 CONFDIR="/etc"
9769 fi
9770
9771
9772
9773 # Check whether --with-staticdir was given.
9774 if test "${with_staticdir+set}" = set; then :
9775 withval=$with_staticdir; STATICDIR=$withval
9776 else
9777 STATICDIR='${exec_prefix}/sbin'
9778 fi
9779
9780
9781
9782 # Check whether --with-usrlibdir was given.
9783 if test "${with_usrlibdir+set}" = set; then :
9784 withval=$with_usrlibdir; usrlibdir=$withval
9785 else
9786 usrlibdir='${prefix}/lib'
9787 fi
9788
9789
9790
9791 # Check whether --with-usrsbindir was given.
9792 if test "${with_usrsbindir+set}" = set; then :
9793 withval=$with_usrsbindir; usrsbindir=$withval
9794 else
9795 usrsbindir='${prefix}/sbin'
9796 fi
9797
9798
9799 ################################################################################
9800
9801 # Check whether --with-udev_prefix was given.
9802 if test "${with_udev_prefix+set}" = set; then :
9803 withval=$with_udev_prefix; udev_prefix=$withval
9804 else
9805 udev_prefix='${exec_prefix}'
9806 fi
9807
9808
9809
9810 # Check whether --with-udevdir was given.
9811 if test "${with_udevdir+set}" = set; then :
9812 withval=$with_udevdir; udevdir=$withval
9813 else
9814 udevdir='${udev_prefix}/lib/udev/rules.d'
9815 fi
9816
9817
9818 ################################################################################
9819
9820 # Check whether --with-systemdsystemunitdir was given.
9821 if test "${with_systemdsystemunitdir+set}" = set; then :
9822 withval=$with_systemdsystemunitdir; systemdsystemunitdir=$withval
9823 else
9824 test x$PKGCONFIG_INIT != x1 && pkg_config_init
9825 pkg_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
9826 fi
9827
9828
9829 if test -n "$pkg_systemdsystemunitdir"; then
9830 systemdsystemunitdir=$pkg_systemdsystemunitdir;
9831 fi
9832
9833 if test -z "$systemdsystemunitdir"; then
9834 systemdsystemunitdir='/lib/systemd/system';
9835 fi
9836 ################################################################################
9837
9838 # Check whether --with-tmpfilesdir was given.
9839 if test "${with_tmpfilesdir+set}" = set; then :
9840 withval=$with_tmpfilesdir; tmpfilesdir=$withval
9841 else
9842 tmpfilesdir='${sysconfdir}/tmpfiles.d'
9843 fi
9844
9845 ################################################################################
9846 if test x$READLINE = xyes; then
9847 for ac_header in readline/readline.h readline/history.h
9848 do :
9849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9850 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9851 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9852 cat >>confdefs.h <<_ACEOF
9853 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9854 _ACEOF
9855
9856 else
9857 as_fn_error $? "bailing out" "$LINENO" 5
9858 fi
9859
9860 done
9861
9862 fi
9863
9864 if test x$CLVMD != xnone; then
9865 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
9866 do :
9867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9868 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9870 cat >>confdefs.h <<_ACEOF
9871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9872 _ACEOF
9873
9874 else
9875 as_fn_error $? "bailing out" "$LINENO" 5
9876 fi
9877
9878 done
9879
9880 for ac_func in dup2 getmntent memmove select socket
9881 do :
9882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9884 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9885 cat >>confdefs.h <<_ACEOF
9886 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9887 _ACEOF
9888
9889 else
9890 as_fn_error $? "bailing out" "$LINENO" 5
9891 fi
9892 done
9893
9894 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9895 # -lseq on Dynix/PTX, -lgen on Unixware.
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9897 $as_echo_n "checking for library containing getmntent... " >&6; }
9898 if test "${ac_cv_search_getmntent+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 ac_func_search_save_LIBS=$LIBS
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 char getmntent ();
9912 int
9913 main ()
9914 {
9915 return getmntent ();
9916 ;
9917 return 0;
9918 }
9919 _ACEOF
9920 for ac_lib in '' sun seq gen; do
9921 if test -z "$ac_lib"; then
9922 ac_res="none required"
9923 else
9924 ac_res=-l$ac_lib
9925 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9926 fi
9927 if ac_fn_c_try_link "$LINENO"; then :
9928 ac_cv_search_getmntent=$ac_res
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext
9932 if test "${ac_cv_search_getmntent+set}" = set; then :
9933 break
9934 fi
9935 done
9936 if test "${ac_cv_search_getmntent+set}" = set; then :
9937
9938 else
9939 ac_cv_search_getmntent=no
9940 fi
9941 rm conftest.$ac_ext
9942 LIBS=$ac_func_search_save_LIBS
9943 fi
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9945 $as_echo "$ac_cv_search_getmntent" >&6; }
9946 ac_res=$ac_cv_search_getmntent
9947 if test "$ac_res" != no; then :
9948 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9949 ac_cv_func_getmntent=yes
9950
9951 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9952
9953 else
9954 ac_cv_func_getmntent=no
9955 fi
9956
9957
9958 for ac_header in sys/select.h sys/socket.h
9959 do :
9960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9963 cat >>confdefs.h <<_ACEOF
9964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9965 _ACEOF
9966
9967 fi
9968
9969 done
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9972 $as_echo_n "checking types of arguments for select... " >&6; }
9973 if test "${ac_cv_func_select_args+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9977 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9978 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 $ac_includes_default
9982 #ifdef HAVE_SYS_SELECT_H
9983 # include <sys/select.h>
9984 #endif
9985 #ifdef HAVE_SYS_SOCKET_H
9986 # include <sys/socket.h>
9987 #endif
9988
9989 int
9990 main ()
9991 {
9992 extern int select ($ac_arg1,
9993 $ac_arg234, $ac_arg234, $ac_arg234,
9994 $ac_arg5);
9995 ;
9996 return 0;
9997 }
9998 _ACEOF
9999 if ac_fn_c_try_compile "$LINENO"; then :
10000 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003 done
10004 done
10005 done
10006 # Provide a safe default value.
10007 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
10008
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
10011 $as_echo "$ac_cv_func_select_args" >&6; }
10012 ac_save_IFS=$IFS; IFS=','
10013 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
10014 IFS=$ac_save_IFS
10015 shift
10016
10017 cat >>confdefs.h <<_ACEOF
10018 #define SELECT_TYPE_ARG1 $1
10019 _ACEOF
10020
10021
10022 cat >>confdefs.h <<_ACEOF
10023 #define SELECT_TYPE_ARG234 ($2)
10024 _ACEOF
10025
10026
10027 cat >>confdefs.h <<_ACEOF
10028 #define SELECT_TYPE_ARG5 ($3)
10029 _ACEOF
10030
10031 rm -f conftest*
10032
10033 fi
10034
10035 if test x$CLUSTER != xnone; then
10036 for ac_header in sys/socket.h sys/un.h
10037 do :
10038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10041 cat >>confdefs.h <<_ACEOF
10042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10043 _ACEOF
10044
10045 else
10046 as_fn_error $? "bailing out" "$LINENO" 5
10047 fi
10048
10049 done
10050
10051 for ac_func in socket
10052 do :
10053 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10054 if test "x$ac_cv_func_socket" = x""yes; then :
10055 cat >>confdefs.h <<_ACEOF
10056 #define HAVE_SOCKET 1
10057 _ACEOF
10058
10059 else
10060 as_fn_error $? "bailing out" "$LINENO" 5
10061 fi
10062 done
10063
10064 fi
10065
10066 if test x$DMEVENTD = xyes; then
10067 for ac_header in arpa/inet.h
10068 do :
10069 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10070 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_ARPA_INET_H 1
10073 _ACEOF
10074
10075 else
10076 as_fn_error $? "bailing out" "$LINENO" 5
10077 fi
10078
10079 done
10080
10081 fi
10082
10083 if test x$HAVE_LIBDL = xyes; then
10084 for ac_header in dlfcn.h
10085 do :
10086 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10087 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10088 cat >>confdefs.h <<_ACEOF
10089 #define HAVE_DLFCN_H 1
10090 _ACEOF
10091
10092 else
10093 as_fn_error $? "bailing out" "$LINENO" 5
10094 fi
10095
10096 done
10097
10098 fi
10099
10100 if test x$INTL = xyes; then
10101 for ac_header in libintl.h
10102 do :
10103 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10104 if test "x$ac_cv_header_libintl_h" = x""yes; then :
10105 cat >>confdefs.h <<_ACEOF
10106 #define HAVE_LIBINTL_H 1
10107 _ACEOF
10108
10109 else
10110 as_fn_error $? "bailing out" "$LINENO" 5
10111 fi
10112
10113 done
10114
10115 fi
10116
10117 if test x$UDEV_SYNC = xyes; then
10118 for ac_header in sys/ipc.h sys/sem.h
10119 do :
10120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10121 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10123 cat >>confdefs.h <<_ACEOF
10124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10125 _ACEOF
10126
10127 else
10128 as_fn_error $? "bailing out" "$LINENO" 5
10129 fi
10130
10131 done
10132
10133 fi
10134
10135 ################################################################################
10136 # Extract the first word of "modprobe", so it can be a program name with args.
10137 set dummy modprobe; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139 $as_echo_n "checking for $ac_word... " >&6; }
10140 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 case $MODPROBE_CMD in
10144 [\\/]* | ?:[\\/]*)
10145 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10146 ;;
10147 *)
10148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149 for as_dir in $PATH
10150 do
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10155 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 break 2
10158 fi
10159 done
10160 done
10161 IFS=$as_save_IFS
10162
10163 ;;
10164 esac
10165 fi
10166 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10167 if test -n "$MODPROBE_CMD"; then
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10169 $as_echo "$MODPROBE_CMD" >&6; }
10170 else
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172 $as_echo "no" >&6; }
10173 fi
10174
10175
10176
10177 if test x$MODPROBE_CMD != x; then
10178
10179 cat >>confdefs.h <<_ACEOF
10180 #define MODPROBE_CMD "$MODPROBE_CMD"
10181 _ACEOF
10182
10183 fi
10184
10185
10186 lvm_exec_prefix=$exec_prefix
10187 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10188 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10189 LVM_PATH="$lvm_exec_prefix/sbin/lvm"
10190
10191 cat >>confdefs.h <<_ACEOF
10192 #define LVM_PATH "$LVM_PATH"
10193 _ACEOF
10194
10195
10196 if test "$CLVMD" != none; then
10197 clvmd_prefix=$ac_default_prefix
10198 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
10199 test "$prefix" != NONE && clvmd_prefix=$prefix
10200
10201 cat >>confdefs.h <<_ACEOF
10202 #define CLVMD_PATH "$CLVMD_PATH"
10203 _ACEOF
10204
10205 fi
10206
10207 ################################################################################
10208 if test "$BUILD_DMEVENTD" = yes; then
10209
10210 # Check whether --with-dmeventd-pidfile was given.
10211 if test "${with_dmeventd_pidfile+set}" = set; then :
10212 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
10213 else
10214 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
10215 fi
10216
10217
10218 cat >>confdefs.h <<_ACEOF
10219 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10220 _ACEOF
10221
10222 fi
10223
10224 if test "$BUILD_DMEVENTD" = yes; then
10225
10226 # Check whether --with-dmeventd-path was given.
10227 if test "${with_dmeventd_path+set}" = set; then :
10228 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
10229 else
10230 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
10231 fi
10232
10233
10234 cat >>confdefs.h <<_ACEOF
10235 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10236 _ACEOF
10237
10238 fi
10239
10240
10241
10242 # Check whether --with-default-run-dir was given.
10243 if test "${with_default_run_dir+set}" = set; then :
10244 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10245 else
10246 DEFAULT_RUN_DIR="/var/run/lvm"
10247 fi
10248
10249 cat >>confdefs.h <<_ACEOF
10250 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10251 _ACEOF
10252
10253
10254 ################################################################################
10255
10256 # Check whether --with-default-system-dir was given.
10257 if test "${with_default_system_dir+set}" = set; then :
10258 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
10259 else
10260 DEFAULT_SYS_DIR="/etc/lvm"
10261 fi
10262
10263
10264 cat >>confdefs.h <<_ACEOF
10265 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10266 _ACEOF
10267
10268
10269
10270 # Check whether --with-default-archive-subdir was given.
10271 if test "${with_default_archive_subdir+set}" = set; then :
10272 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
10273 else
10274 DEFAULT_ARCHIVE_SUBDIR=archive
10275 fi
10276
10277
10278 cat >>confdefs.h <<_ACEOF
10279 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10280 _ACEOF
10281
10282
10283
10284 # Check whether --with-default-backup-subdir was given.
10285 if test "${with_default_backup_subdir+set}" = set; then :
10286 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
10287 else
10288 DEFAULT_BACKUP_SUBDIR=backup
10289 fi
10290
10291
10292 cat >>confdefs.h <<_ACEOF
10293 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10294 _ACEOF
10295
10296
10297
10298 # Check whether --with-default-cache-subdir was given.
10299 if test "${with_default_cache_subdir+set}" = set; then :
10300 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
10301 else
10302 DEFAULT_CACHE_SUBDIR=cache
10303 fi
10304
10305
10306 cat >>confdefs.h <<_ACEOF
10307 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10308 _ACEOF
10309
10310
10311
10312 # Check whether --with-default-locking-dir was given.
10313 if test "${with_default_locking_dir+set}" = set; then :
10314 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
10315 else
10316 DEFAULT_LOCK_DIR="/var/lock/lvm"
10317 fi
10318
10319
10320 cat >>confdefs.h <<_ACEOF
10321 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10322 _ACEOF
10323
10324
10325 ################################################################################
10326
10327 # Check whether --with-default-data-alignment was given.
10328 if test "${with_default_data_alignment+set}" = set; then :
10329 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10330 else
10331 DEFAULT_DATA_ALIGNMENT=1
10332 fi
10333
10334
10335 cat >>confdefs.h <<_ACEOF
10336 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10337 _ACEOF
10338
10339
10340 ################################################################################
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10342 $as_echo_n "checking for kernel interface choice... " >&6; }
10343
10344 # Check whether --with-interface was given.
10345 if test "${with_interface+set}" = set; then :
10346 withval=$with_interface; interface=$withval
10347 else
10348 interface=ioctl
10349 fi
10350
10351 if [ "x$interface" != xioctl ];
10352 then
10353 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10354 fi
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10356 $as_echo "$interface" >&6; }
10357
10358 ################################################################################
10359 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10360
10361 cat >>confdefs.h <<_ACEOF
10362 #define DM_LIB_VERSION $DM_LIB_VERSION
10363 _ACEOF
10364
10365
10366 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10367
10368 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10369
10370 VER=`cat "$srcdir"/VERSION`
10371 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10372 VER=`echo "$VER" | $AWK '{print $1}'`
10373 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10374 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10375 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10376 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10377 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10378 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10379
10380 ################################################################################
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494 ################################################################################
10495 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/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/lvmetad/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/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_lvmetad_init_red_hat scripts/lvm2_lvmetad_systemd_red_hat.socket scripts/lvm2_lvmetad_systemd_red_hat.service scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/Makefile test/Makefile test/api/Makefile test/unit/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10496
10497 cat >confcache <<\_ACEOF
10498 # This file is a shell script that caches the results of configure
10499 # tests run on this system so they can be shared between configure
10500 # scripts and configure runs, see configure's option --config-cache.
10501 # It is not useful on other systems. If it contains results you don't
10502 # want to keep, you may remove or edit it.
10503 #
10504 # config.status only pays attention to the cache file if you give it
10505 # the --recheck option to rerun configure.
10506 #
10507 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10508 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10509 # following values.
10510
10511 _ACEOF
10512
10513 # The following way of writing the cache mishandles newlines in values,
10514 # but we know of no workaround that is simple, portable, and efficient.
10515 # So, we kill variables containing newlines.
10516 # Ultrix sh set writes to stderr and can't be redirected directly,
10517 # and sets the high bit in the cache file unless we assign to the vars.
10518 (
10519 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10520 eval ac_val=\$$ac_var
10521 case $ac_val in #(
10522 *${as_nl}*)
10523 case $ac_var in #(
10524 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10525 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10526 esac
10527 case $ac_var in #(
10528 _ | IFS | as_nl) ;; #(
10529 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10530 *) { eval $ac_var=; unset $ac_var;} ;;
10531 esac ;;
10532 esac
10533 done
10534
10535 (set) 2>&1 |
10536 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10537 *${as_nl}ac_space=\ *)
10538 # `set' does not quote correctly, so add quotes: double-quote
10539 # substitution turns \\\\ into \\, and sed turns \\ into \.
10540 sed -n \
10541 "s/'/'\\\\''/g;
10542 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10543 ;; #(
10544 *)
10545 # `set' quotes correctly as required by POSIX, so do not add quotes.
10546 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10547 ;;
10548 esac |
10549 sort
10550 ) |
10551 sed '
10552 /^ac_cv_env_/b end
10553 t clear
10554 :clear
10555 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10556 t end
10557 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10558 :end' >>confcache
10559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10560 if test -w "$cache_file"; then
10561 test "x$cache_file" != "x/dev/null" &&
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10563 $as_echo "$as_me: updating cache $cache_file" >&6;}
10564 cat confcache >$cache_file
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10567 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10568 fi
10569 fi
10570 rm -f confcache
10571
10572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10573 # Let make expand exec_prefix.
10574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10575
10576 DEFS=-DHAVE_CONFIG_H
10577
10578 ac_libobjs=
10579 ac_ltlibobjs=
10580 U=
10581 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10582 # 1. Remove the extension, and $U if already installed.
10583 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10584 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10585 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10586 # will be set to the directory where LIBOBJS objects are built.
10587 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10588 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10589 done
10590 LIBOBJS=$ac_libobjs
10591
10592 LTLIBOBJS=$ac_ltlibobjs
10593
10594
10595
10596 : ${CONFIG_STATUS=./config.status}
10597 ac_write_fail=0
10598 ac_clean_files_save=$ac_clean_files
10599 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10601 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10602 as_write_fail=0
10603 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10604 #! $SHELL
10605 # Generated by $as_me.
10606 # Run this file to recreate the current configuration.
10607 # Compiler output produced by configure, useful for debugging
10608 # configure, is in config.log if it exists.
10609
10610 debug=false
10611 ac_cs_recheck=false
10612 ac_cs_silent=false
10613
10614 SHELL=\${CONFIG_SHELL-$SHELL}
10615 export SHELL
10616 _ASEOF
10617 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10618 ## -------------------- ##
10619 ## M4sh Initialization. ##
10620 ## -------------------- ##
10621
10622 # Be more Bourne compatible
10623 DUALCASE=1; export DUALCASE # for MKS sh
10624 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10625 emulate sh
10626 NULLCMD=:
10627 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10628 # is contrary to our usage. Disable this feature.
10629 alias -g '${1+"$@"}'='"$@"'
10630 setopt NO_GLOB_SUBST
10631 else
10632 case `(set -o) 2>/dev/null` in #(
10633 *posix*) :
10634 set -o posix ;; #(
10635 *) :
10636 ;;
10637 esac
10638 fi
10639
10640
10641 as_nl='
10642 '
10643 export as_nl
10644 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10645 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10648 # Prefer a ksh shell builtin over an external printf program on Solaris,
10649 # but without wasting forks for bash or zsh.
10650 if test -z "$BASH_VERSION$ZSH_VERSION" \
10651 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10652 as_echo='print -r --'
10653 as_echo_n='print -rn --'
10654 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10655 as_echo='printf %s\n'
10656 as_echo_n='printf %s'
10657 else
10658 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10659 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10660 as_echo_n='/usr/ucb/echo -n'
10661 else
10662 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10663 as_echo_n_body='eval
10664 arg=$1;
10665 case $arg in #(
10666 *"$as_nl"*)
10667 expr "X$arg" : "X\\(.*\\)$as_nl";
10668 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10669 esac;
10670 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10671 '
10672 export as_echo_n_body
10673 as_echo_n='sh -c $as_echo_n_body as_echo'
10674 fi
10675 export as_echo_body
10676 as_echo='sh -c $as_echo_body as_echo'
10677 fi
10678
10679 # The user is always right.
10680 if test "${PATH_SEPARATOR+set}" != set; then
10681 PATH_SEPARATOR=:
10682 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10683 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10684 PATH_SEPARATOR=';'
10685 }
10686 fi
10687
10688
10689 # IFS
10690 # We need space, tab and new line, in precisely that order. Quoting is
10691 # there to prevent editors from complaining about space-tab.
10692 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10693 # splitting by setting IFS to empty value.)
10694 IFS=" "" $as_nl"
10695
10696 # Find who we are. Look in the path if we contain no directory separator.
10697 case $0 in #((
10698 *[\\/]* ) as_myself=$0 ;;
10699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10700 for as_dir in $PATH
10701 do
10702 IFS=$as_save_IFS
10703 test -z "$as_dir" && as_dir=.
10704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10705 done
10706 IFS=$as_save_IFS
10707
10708 ;;
10709 esac
10710 # We did not find ourselves, most probably we were run as `sh COMMAND'
10711 # in which case we are not to be found in the path.
10712 if test "x$as_myself" = x; then
10713 as_myself=$0
10714 fi
10715 if test ! -f "$as_myself"; then
10716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10717 exit 1
10718 fi
10719
10720 # Unset variables that we do not need and which cause bugs (e.g. in
10721 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10722 # suppresses any "Segmentation fault" message there. '((' could
10723 # trigger a bug in pdksh 5.2.14.
10724 for as_var in BASH_ENV ENV MAIL MAILPATH
10725 do eval test x\${$as_var+set} = xset \
10726 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10727 done
10728 PS1='$ '
10729 PS2='> '
10730 PS4='+ '
10731
10732 # NLS nuisances.
10733 LC_ALL=C
10734 export LC_ALL
10735 LANGUAGE=C
10736 export LANGUAGE
10737
10738 # CDPATH.
10739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10740
10741
10742 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10743 # ----------------------------------------
10744 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10745 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10746 # script with STATUS, using 1 if that was 0.
10747 as_fn_error ()
10748 {
10749 as_status=$1; test $as_status -eq 0 && as_status=1
10750 if test "$4"; then
10751 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10752 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10753 fi
10754 $as_echo "$as_me: error: $2" >&2
10755 as_fn_exit $as_status
10756 } # as_fn_error
10757
10758
10759 # as_fn_set_status STATUS
10760 # -----------------------
10761 # Set $? to STATUS, without forking.
10762 as_fn_set_status ()
10763 {
10764 return $1
10765 } # as_fn_set_status
10766
10767 # as_fn_exit STATUS
10768 # -----------------
10769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10770 as_fn_exit ()
10771 {
10772 set +e
10773 as_fn_set_status $1
10774 exit $1
10775 } # as_fn_exit
10776
10777 # as_fn_unset VAR
10778 # ---------------
10779 # Portably unset VAR.
10780 as_fn_unset ()
10781 {
10782 { eval $1=; unset $1;}
10783 }
10784 as_unset=as_fn_unset
10785 # as_fn_append VAR VALUE
10786 # ----------------------
10787 # Append the text in VALUE to the end of the definition contained in VAR. Take
10788 # advantage of any shell optimizations that allow amortized linear growth over
10789 # repeated appends, instead of the typical quadratic growth present in naive
10790 # implementations.
10791 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10792 eval 'as_fn_append ()
10793 {
10794 eval $1+=\$2
10795 }'
10796 else
10797 as_fn_append ()
10798 {
10799 eval $1=\$$1\$2
10800 }
10801 fi # as_fn_append
10802
10803 # as_fn_arith ARG...
10804 # ------------------
10805 # Perform arithmetic evaluation on the ARGs, and store the result in the
10806 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10807 # must be portable across $(()) and expr.
10808 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10809 eval 'as_fn_arith ()
10810 {
10811 as_val=$(( $* ))
10812 }'
10813 else
10814 as_fn_arith ()
10815 {
10816 as_val=`expr "$@" || test $? -eq 1`
10817 }
10818 fi # as_fn_arith
10819
10820
10821 if expr a : '\(a\)' >/dev/null 2>&1 &&
10822 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10823 as_expr=expr
10824 else
10825 as_expr=false
10826 fi
10827
10828 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10829 as_basename=basename
10830 else
10831 as_basename=false
10832 fi
10833
10834 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10835 as_dirname=dirname
10836 else
10837 as_dirname=false
10838 fi
10839
10840 as_me=`$as_basename -- "$0" ||
10841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10842 X"$0" : 'X\(//\)$' \| \
10843 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10844 $as_echo X/"$0" |
10845 sed '/^.*\/\([^/][^/]*\)\/*$/{
10846 s//\1/
10847 q
10848 }
10849 /^X\/\(\/\/\)$/{
10850 s//\1/
10851 q
10852 }
10853 /^X\/\(\/\).*/{
10854 s//\1/
10855 q
10856 }
10857 s/.*/./; q'`
10858
10859 # Avoid depending upon Character Ranges.
10860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10863 as_cr_digits='0123456789'
10864 as_cr_alnum=$as_cr_Letters$as_cr_digits
10865
10866 ECHO_C= ECHO_N= ECHO_T=
10867 case `echo -n x` in #(((((
10868 -n*)
10869 case `echo 'xy\c'` in
10870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10871 xy) ECHO_C='\c';;
10872 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10873 ECHO_T=' ';;
10874 esac;;
10875 *)
10876 ECHO_N='-n';;
10877 esac
10878
10879 rm -f conf$$ conf$$.exe conf$$.file
10880 if test -d conf$$.dir; then
10881 rm -f conf$$.dir/conf$$.file
10882 else
10883 rm -f conf$$.dir
10884 mkdir conf$$.dir 2>/dev/null
10885 fi
10886 if (echo >conf$$.file) 2>/dev/null; then
10887 if ln -s conf$$.file conf$$ 2>/dev/null; then
10888 as_ln_s='ln -s'
10889 # ... but there are two gotchas:
10890 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10891 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10892 # In both cases, we have to default to `cp -p'.
10893 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10894 as_ln_s='cp -p'
10895 elif ln conf$$.file conf$$ 2>/dev/null; then
10896 as_ln_s=ln
10897 else
10898 as_ln_s='cp -p'
10899 fi
10900 else
10901 as_ln_s='cp -p'
10902 fi
10903 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10904 rmdir conf$$.dir 2>/dev/null
10905
10906
10907 # as_fn_mkdir_p
10908 # -------------
10909 # Create "$as_dir" as a directory, including parents if necessary.
10910 as_fn_mkdir_p ()
10911 {
10912
10913 case $as_dir in #(
10914 -*) as_dir=./$as_dir;;
10915 esac
10916 test -d "$as_dir" || eval $as_mkdir_p || {
10917 as_dirs=
10918 while :; do
10919 case $as_dir in #(
10920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10921 *) as_qdir=$as_dir;;
10922 esac
10923 as_dirs="'$as_qdir' $as_dirs"
10924 as_dir=`$as_dirname -- "$as_dir" ||
10925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10926 X"$as_dir" : 'X\(//\)[^/]' \| \
10927 X"$as_dir" : 'X\(//\)$' \| \
10928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10929 $as_echo X"$as_dir" |
10930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10931 s//\1/
10932 q
10933 }
10934 /^X\(\/\/\)[^/].*/{
10935 s//\1/
10936 q
10937 }
10938 /^X\(\/\/\)$/{
10939 s//\1/
10940 q
10941 }
10942 /^X\(\/\).*/{
10943 s//\1/
10944 q
10945 }
10946 s/.*/./; q'`
10947 test -d "$as_dir" && break
10948 done
10949 test -z "$as_dirs" || eval "mkdir $as_dirs"
10950 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10951
10952
10953 } # as_fn_mkdir_p
10954 if mkdir -p . 2>/dev/null; then
10955 as_mkdir_p='mkdir -p "$as_dir"'
10956 else
10957 test -d ./-p && rmdir ./-p
10958 as_mkdir_p=false
10959 fi
10960
10961 if test -x / >/dev/null 2>&1; then
10962 as_test_x='test -x'
10963 else
10964 if ls -dL / >/dev/null 2>&1; then
10965 as_ls_L_option=L
10966 else
10967 as_ls_L_option=
10968 fi
10969 as_test_x='
10970 eval sh -c '\''
10971 if test -d "$1"; then
10972 test -d "$1/.";
10973 else
10974 case $1 in #(
10975 -*)set "./$1";;
10976 esac;
10977 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10978 ???[sx]*):;;*)false;;esac;fi
10979 '\'' sh
10980 '
10981 fi
10982 as_executable_p=$as_test_x
10983
10984 # Sed expression to map a string onto a valid CPP name.
10985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10986
10987 # Sed expression to map a string onto a valid variable name.
10988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10989
10990
10991 exec 6>&1
10992 ## ----------------------------------- ##
10993 ## Main body of $CONFIG_STATUS script. ##
10994 ## ----------------------------------- ##
10995 _ASEOF
10996 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10997
10998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10999 # Save the log message, to keep $0 and so on meaningful, and to
11000 # report actual input values of CONFIG_FILES etc. instead of their
11001 # values after options handling.
11002 ac_log="
11003 This file was extended by $as_me, which was
11004 generated by GNU Autoconf 2.66. Invocation command line was
11005
11006 CONFIG_FILES = $CONFIG_FILES
11007 CONFIG_HEADERS = $CONFIG_HEADERS
11008 CONFIG_LINKS = $CONFIG_LINKS
11009 CONFIG_COMMANDS = $CONFIG_COMMANDS
11010 $ $0 $@
11011
11012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11013 "
11014
11015 _ACEOF
11016
11017 case $ac_config_files in *"
11018 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11019 esac
11020
11021 case $ac_config_headers in *"
11022 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11023 esac
11024
11025
11026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11027 # Files that config.status was made for.
11028 config_files="$ac_config_files"
11029 config_headers="$ac_config_headers"
11030
11031 _ACEOF
11032
11033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11034 ac_cs_usage="\
11035 \`$as_me' instantiates files and other configuration actions
11036 from templates according to the current configuration. Unless the files
11037 and actions are specified as TAGs, all are instantiated by default.
11038
11039 Usage: $0 [OPTION]... [TAG]...
11040
11041 -h, --help print this help, then exit
11042 -V, --version print version number and configuration settings, then exit
11043 --config print configuration, then exit
11044 -q, --quiet, --silent
11045 do not print progress messages
11046 -d, --debug don't remove temporary files
11047 --recheck update $as_me by reconfiguring in the same conditions
11048 --file=FILE[:TEMPLATE]
11049 instantiate the configuration file FILE
11050 --header=FILE[:TEMPLATE]
11051 instantiate the configuration header FILE
11052
11053 Configuration files:
11054 $config_files
11055
11056 Configuration headers:
11057 $config_headers
11058
11059 Report bugs to the package provider."
11060
11061 _ACEOF
11062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11063 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11064 ac_cs_version="\\
11065 config.status
11066 configured by $0, generated by GNU Autoconf 2.66,
11067 with options \\"\$ac_cs_config\\"
11068
11069 Copyright (C) 2010 Free Software Foundation, Inc.
11070 This config.status script is free software; the Free Software Foundation
11071 gives unlimited permission to copy, distribute and modify it."
11072
11073 ac_pwd='$ac_pwd'
11074 srcdir='$srcdir'
11075 INSTALL='$INSTALL'
11076 MKDIR_P='$MKDIR_P'
11077 AWK='$AWK'
11078 test -n "\$AWK" || AWK=awk
11079 _ACEOF
11080
11081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11082 # The default lists apply if the user does not specify any file.
11083 ac_need_defaults=:
11084 while test $# != 0
11085 do
11086 case $1 in
11087 --*=*)
11088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11090 ac_shift=:
11091 ;;
11092 *)
11093 ac_option=$1
11094 ac_optarg=$2
11095 ac_shift=shift
11096 ;;
11097 esac
11098
11099 case $ac_option in
11100 # Handling of the options.
11101 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11102 ac_cs_recheck=: ;;
11103 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11104 $as_echo "$ac_cs_version"; exit ;;
11105 --config | --confi | --conf | --con | --co | --c )
11106 $as_echo "$ac_cs_config"; exit ;;
11107 --debug | --debu | --deb | --de | --d | -d )
11108 debug=: ;;
11109 --file | --fil | --fi | --f )
11110 $ac_shift
11111 case $ac_optarg in
11112 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11113 esac
11114 as_fn_append CONFIG_FILES " '$ac_optarg'"
11115 ac_need_defaults=false;;
11116 --header | --heade | --head | --hea )
11117 $ac_shift
11118 case $ac_optarg in
11119 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11120 esac
11121 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11122 ac_need_defaults=false;;
11123 --he | --h)
11124 # Conflict between --help and --header
11125 as_fn_error $? "ambiguous option: \`$1'
11126 Try \`$0 --help' for more information.";;
11127 --help | --hel | -h )
11128 $as_echo "$ac_cs_usage"; exit ;;
11129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11131 ac_cs_silent=: ;;
11132
11133 # This is an error.
11134 -*) as_fn_error $? "unrecognized option: \`$1'
11135 Try \`$0 --help' for more information." ;;
11136
11137 *) as_fn_append ac_config_targets " $1"
11138 ac_need_defaults=false ;;
11139
11140 esac
11141 shift
11142 done
11143
11144 ac_configure_extra_args=
11145
11146 if $ac_cs_silent; then
11147 exec 6>/dev/null
11148 ac_configure_extra_args="$ac_configure_extra_args --silent"
11149 fi
11150
11151 _ACEOF
11152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11153 if \$ac_cs_recheck; then
11154 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11155 shift
11156 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11157 CONFIG_SHELL='$SHELL'
11158 export CONFIG_SHELL
11159 exec "\$@"
11160 fi
11161
11162 _ACEOF
11163 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11164 exec 5>>config.log
11165 {
11166 echo
11167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11168 ## Running $as_me. ##
11169 _ASBOX
11170 $as_echo "$ac_log"
11171 } >&5
11172
11173 _ACEOF
11174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11175 _ACEOF
11176
11177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11178
11179 # Handling of arguments.
11180 for ac_config_target in $ac_config_targets
11181 do
11182 case $ac_config_target in
11183 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11184 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11185 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11186 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11187 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11188 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11189 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11190 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11191 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11192 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11193 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
11194 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11195 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11196 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
11197 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
11198 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11199 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
11200 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
11201 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11202 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11203 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11204 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11205 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11206 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11207 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
11208 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11209 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
11210 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11211 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
11212 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
11213 "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;;
11214 "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;;
11215 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11216 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11217 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
11218 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11219 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11220 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11221 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11222 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11223 "scripts/lvm2_lvmetad_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_init_red_hat" ;;
11224 "scripts/lvm2_lvmetad_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.socket" ;;
11225 "scripts/lvm2_lvmetad_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmetad_systemd_red_hat.service" ;;
11226 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11227 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11228 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11229 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
11230 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11231 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11232 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
11233 "test/unit/Makefile") CONFIG_FILES="$CONFIG_FILES test/unit/Makefile" ;;
11234 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11235 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
11236 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11237 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11238 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11239
11240 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11241 esac
11242 done
11243
11244
11245 # If the user did not use the arguments to specify the items to instantiate,
11246 # then the envvar interface is used. Set only those that are not.
11247 # We use the long form for the default assignment because of an extremely
11248 # bizarre bug on SunOS 4.1.3.
11249 if $ac_need_defaults; then
11250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11251 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11252 fi
11253
11254 # Have a temporary directory for convenience. Make it in the build tree
11255 # simply because there is no reason against having it here, and in addition,
11256 # creating and moving files from /tmp can sometimes cause problems.
11257 # Hook for its removal unless debugging.
11258 # Note that there is a small window in which the directory will not be cleaned:
11259 # after its creation but before its name has been assigned to `$tmp'.
11260 $debug ||
11261 {
11262 tmp=
11263 trap 'exit_status=$?
11264 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11265 ' 0
11266 trap 'as_fn_exit 1' 1 2 13 15
11267 }
11268 # Create a (secure) tmp directory for tmp files.
11269
11270 {
11271 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11272 test -n "$tmp" && test -d "$tmp"
11273 } ||
11274 {
11275 tmp=./conf$$-$RANDOM
11276 (umask 077 && mkdir "$tmp")
11277 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11278
11279 # Set up the scripts for CONFIG_FILES section.
11280 # No need to generate them if there are no CONFIG_FILES.
11281 # This happens for instance with `./config.status config.h'.
11282 if test -n "$CONFIG_FILES"; then
11283
11284
11285 ac_cr=`echo X | tr X '\015'`
11286 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11287 # But we know of no other shell where ac_cr would be empty at this
11288 # point, so we can use a bashism as a fallback.
11289 if test "x$ac_cr" = x; then
11290 eval ac_cr=\$\'\\r\'
11291 fi
11292 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11293 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11294 ac_cs_awk_cr='\\r'
11295 else
11296 ac_cs_awk_cr=$ac_cr
11297 fi
11298
11299 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11300 _ACEOF
11301
11302
11303 {
11304 echo "cat >conf$$subs.awk <<_ACEOF" &&
11305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11306 echo "_ACEOF"
11307 } >conf$$subs.sh ||
11308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11309 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11310 ac_delim='%!_!# '
11311 for ac_last_try in false false false false false :; do
11312 . ./conf$$subs.sh ||
11313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11314
11315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11316 if test $ac_delim_n = $ac_delim_num; then
11317 break
11318 elif $ac_last_try; then
11319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11320 else
11321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11322 fi
11323 done
11324 rm -f conf$$subs.sh
11325
11326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11327 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11328 _ACEOF
11329 sed -n '
11330 h
11331 s/^/S["/; s/!.*/"]=/
11332 p
11333 g
11334 s/^[^!]*!//
11335 :repl
11336 t repl
11337 s/'"$ac_delim"'$//
11338 t delim
11339 :nl
11340 h
11341 s/\(.\{148\}\)..*/\1/
11342 t more1
11343 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11344 p
11345 n
11346 b repl
11347 :more1
11348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11349 p
11350 g
11351 s/.\{148\}//
11352 t nl
11353 :delim
11354 h
11355 s/\(.\{148\}\)..*/\1/
11356 t more2
11357 s/["\\]/\\&/g; s/^/"/; s/$/"/
11358 p
11359 b
11360 :more2
11361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11362 p
11363 g
11364 s/.\{148\}//
11365 t delim
11366 ' <conf$$subs.awk | sed '
11367 /^[^""]/{
11368 N
11369 s/\n//
11370 }
11371 ' >>$CONFIG_STATUS || ac_write_fail=1
11372 rm -f conf$$subs.awk
11373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11374 _ACAWK
11375 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11376 for (key in S) S_is_set[key] = 1
11377 FS = "\a"
11378
11379 }
11380 {
11381 line = $ 0
11382 nfields = split(line, field, "@")
11383 substed = 0
11384 len = length(field[1])
11385 for (i = 2; i < nfields; i++) {
11386 key = field[i]
11387 keylen = length(key)
11388 if (S_is_set[key]) {
11389 value = S[key]
11390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11391 len += length(value) + length(field[++i])
11392 substed = 1
11393 } else
11394 len += 1 + keylen
11395 }
11396
11397 print line
11398 }
11399
11400 _ACAWK
11401 _ACEOF
11402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11403 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11405 else
11406 cat
11407 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11409 _ACEOF
11410
11411 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11412 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11413 # trailing colons and then remove the whole line if VPATH becomes empty
11414 # (actually we leave an empty line to preserve line numbers).
11415 if test "x$srcdir" = x.; then
11416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11417 h
11418 s///
11419 s/^/:/
11420 s/[ ]*$/:/
11421 s/:\$(srcdir):/:/g
11422 s/:\${srcdir}:/:/g
11423 s/:@srcdir@:/:/g
11424 s/^:*//
11425 s/:*$//
11426 x
11427 s/\(=[ ]*\).*/\1/
11428 G
11429 s/\n//
11430 s/^[^=]*=[ ]*$//
11431 }'
11432 fi
11433
11434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11435 fi # test -n "$CONFIG_FILES"
11436
11437 # Set up the scripts for CONFIG_HEADERS section.
11438 # No need to generate them if there are no CONFIG_HEADERS.
11439 # This happens for instance with `./config.status Makefile'.
11440 if test -n "$CONFIG_HEADERS"; then
11441 cat >"$tmp/defines.awk" <<\_ACAWK ||
11442 BEGIN {
11443 _ACEOF
11444
11445 # Transform confdefs.h into an awk script `defines.awk', embedded as
11446 # here-document in config.status, that substitutes the proper values into
11447 # config.h.in to produce config.h.
11448
11449 # Create a delimiter string that does not exist in confdefs.h, to ease
11450 # handling of long lines.
11451 ac_delim='%!_!# '
11452 for ac_last_try in false false :; do
11453 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11454 if test -z "$ac_t"; then
11455 break
11456 elif $ac_last_try; then
11457 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11458 else
11459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11460 fi
11461 done
11462
11463 # For the awk script, D is an array of macro values keyed by name,
11464 # likewise P contains macro parameters if any. Preserve backslash
11465 # newline sequences.
11466
11467 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11468 sed -n '
11469 s/.\{148\}/&'"$ac_delim"'/g
11470 t rset
11471 :rset
11472 s/^[ ]*#[ ]*define[ ][ ]*/ /
11473 t def
11474 d
11475 :def
11476 s/\\$//
11477 t bsnl
11478 s/["\\]/\\&/g
11479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11480 D["\1"]=" \3"/p
11481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11482 d
11483 :bsnl
11484 s/["\\]/\\&/g
11485 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11486 D["\1"]=" \3\\\\\\n"\\/p
11487 t cont
11488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11489 t cont
11490 d
11491 :cont
11492 n
11493 s/.\{148\}/&'"$ac_delim"'/g
11494 t clear
11495 :clear
11496 s/\\$//
11497 t bsnlc
11498 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11499 d
11500 :bsnlc
11501 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11502 b cont
11503 ' <confdefs.h | sed '
11504 s/'"$ac_delim"'/"\\\
11505 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11506
11507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11508 for (key in D) D_is_set[key] = 1
11509 FS = "\a"
11510 }
11511 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11512 line = \$ 0
11513 split(line, arg, " ")
11514 if (arg[1] == "#") {
11515 defundef = arg[2]
11516 mac1 = arg[3]
11517 } else {
11518 defundef = substr(arg[1], 2)
11519 mac1 = arg[2]
11520 }
11521 split(mac1, mac2, "(") #)
11522 macro = mac2[1]
11523 prefix = substr(line, 1, index(line, defundef) - 1)
11524 if (D_is_set[macro]) {
11525 # Preserve the white space surrounding the "#".
11526 print prefix "define", macro P[macro] D[macro]
11527 next
11528 } else {
11529 # Replace #undef with comments. This is necessary, for example,
11530 # in the case of _POSIX_SOURCE, which is predefined and required
11531 # on some systems where configure will not decide to define it.
11532 if (defundef == "undef") {
11533 print "/*", prefix defundef, macro, "*/"
11534 next
11535 }
11536 }
11537 }
11538 { print }
11539 _ACAWK
11540 _ACEOF
11541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11542 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11543 fi # test -n "$CONFIG_HEADERS"
11544
11545
11546 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11547 shift
11548 for ac_tag
11549 do
11550 case $ac_tag in
11551 :[FHLC]) ac_mode=$ac_tag; continue;;
11552 esac
11553 case $ac_mode$ac_tag in
11554 :[FHL]*:*);;
11555 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11556 :[FH]-) ac_tag=-:-;;
11557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11558 esac
11559 ac_save_IFS=$IFS
11560 IFS=:
11561 set x $ac_tag
11562 IFS=$ac_save_IFS
11563 shift
11564 ac_file=$1
11565 shift
11566
11567 case $ac_mode in
11568 :L) ac_source=$1;;
11569 :[FH])
11570 ac_file_inputs=
11571 for ac_f
11572 do
11573 case $ac_f in
11574 -) ac_f="$tmp/stdin";;
11575 *) # Look for the file first in the build tree, then in the source tree
11576 # (if the path is not absolute). The absolute path cannot be DOS-style,
11577 # because $ac_f cannot contain `:'.
11578 test -f "$ac_f" ||
11579 case $ac_f in
11580 [\\/$]*) false;;
11581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11582 esac ||
11583 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11584 esac
11585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11586 as_fn_append ac_file_inputs " '$ac_f'"
11587 done
11588
11589 # Let's still pretend it is `configure' which instantiates (i.e., don't
11590 # use $as_me), people would be surprised to read:
11591 # /* config.h. Generated by config.status. */
11592 configure_input='Generated from '`
11593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11594 `' by configure.'
11595 if test x"$ac_file" != x-; then
11596 configure_input="$ac_file. $configure_input"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11598 $as_echo "$as_me: creating $ac_file" >&6;}
11599 fi
11600 # Neutralize special characters interpreted by sed in replacement strings.
11601 case $configure_input in #(
11602 *\&* | *\|* | *\\* )
11603 ac_sed_conf_input=`$as_echo "$configure_input" |
11604 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11605 *) ac_sed_conf_input=$configure_input;;
11606 esac
11607
11608 case $ac_tag in
11609 *:-:* | *:-) cat >"$tmp/stdin" \
11610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11611 esac
11612 ;;
11613 esac
11614
11615 ac_dir=`$as_dirname -- "$ac_file" ||
11616 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11617 X"$ac_file" : 'X\(//\)[^/]' \| \
11618 X"$ac_file" : 'X\(//\)$' \| \
11619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11620 $as_echo X"$ac_file" |
11621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11622 s//\1/
11623 q
11624 }
11625 /^X\(\/\/\)[^/].*/{
11626 s//\1/
11627 q
11628 }
11629 /^X\(\/\/\)$/{
11630 s//\1/
11631 q
11632 }
11633 /^X\(\/\).*/{
11634 s//\1/
11635 q
11636 }
11637 s/.*/./; q'`
11638 as_dir="$ac_dir"; as_fn_mkdir_p
11639 ac_builddir=.
11640
11641 case "$ac_dir" in
11642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11643 *)
11644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11645 # A ".." for each directory in $ac_dir_suffix.
11646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11647 case $ac_top_builddir_sub in
11648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11650 esac ;;
11651 esac
11652 ac_abs_top_builddir=$ac_pwd
11653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11654 # for backward compatibility:
11655 ac_top_builddir=$ac_top_build_prefix
11656
11657 case $srcdir in
11658 .) # We are building in place.
11659 ac_srcdir=.
11660 ac_top_srcdir=$ac_top_builddir_sub
11661 ac_abs_top_srcdir=$ac_pwd ;;
11662 [\\/]* | ?:[\\/]* ) # Absolute name.
11663 ac_srcdir=$srcdir$ac_dir_suffix;
11664 ac_top_srcdir=$srcdir
11665 ac_abs_top_srcdir=$srcdir ;;
11666 *) # Relative name.
11667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11668 ac_top_srcdir=$ac_top_build_prefix$srcdir
11669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11670 esac
11671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11672
11673
11674 case $ac_mode in
11675 :F)
11676 #
11677 # CONFIG_FILE
11678 #
11679
11680 case $INSTALL in
11681 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11682 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11683 esac
11684 ac_MKDIR_P=$MKDIR_P
11685 case $MKDIR_P in
11686 [\\/$]* | ?:[\\/]* ) ;;
11687 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11688 esac
11689 _ACEOF
11690
11691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11692 # If the template does not know about datarootdir, expand it.
11693 # FIXME: This hack should be removed a few years after 2.60.
11694 ac_datarootdir_hack=; ac_datarootdir_seen=
11695 ac_sed_dataroot='
11696 /datarootdir/ {
11697 p
11698 q
11699 }
11700 /@datadir@/p
11701 /@docdir@/p
11702 /@infodir@/p
11703 /@localedir@/p
11704 /@mandir@/p'
11705 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11706 *datarootdir*) ac_datarootdir_seen=yes;;
11707 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11709 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11710 _ACEOF
11711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712 ac_datarootdir_hack='
11713 s&@datadir@&$datadir&g
11714 s&@docdir@&$docdir&g
11715 s&@infodir@&$infodir&g
11716 s&@localedir@&$localedir&g
11717 s&@mandir@&$mandir&g
11718 s&\\\${datarootdir}&$datarootdir&g' ;;
11719 esac
11720 _ACEOF
11721
11722 # Neutralize VPATH when `$srcdir' = `.'.
11723 # Shell code in configure.ac might set extrasub.
11724 # FIXME: do we really want to maintain this feature?
11725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11726 ac_sed_extra="$ac_vpsub
11727 $extrasub
11728 _ACEOF
11729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11730 :t
11731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11732 s|@configure_input@|$ac_sed_conf_input|;t t
11733 s&@top_builddir@&$ac_top_builddir_sub&;t t
11734 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11735 s&@srcdir@&$ac_srcdir&;t t
11736 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11737 s&@top_srcdir@&$ac_top_srcdir&;t t
11738 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11739 s&@builddir@&$ac_builddir&;t t
11740 s&@abs_builddir@&$ac_abs_builddir&;t t
11741 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11742 s&@INSTALL@&$ac_INSTALL&;t t
11743 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11744 $ac_datarootdir_hack
11745 "
11746 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11747 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11748
11749 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11750 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11751 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11753 which seems to be undefined. Please make sure it is defined" >&5
11754 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11755 which seems to be undefined. Please make sure it is defined" >&2;}
11756
11757 rm -f "$tmp/stdin"
11758 case $ac_file in
11759 -) cat "$tmp/out" && rm -f "$tmp/out";;
11760 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11761 esac \
11762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11763 ;;
11764 :H)
11765 #
11766 # CONFIG_HEADER
11767 #
11768 if test x"$ac_file" != x-; then
11769 {
11770 $as_echo "/* $configure_input */" \
11771 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11772 } >"$tmp/config.h" \
11773 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11774 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11776 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11777 else
11778 rm -f "$ac_file"
11779 mv "$tmp/config.h" "$ac_file" \
11780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11781 fi
11782 else
11783 $as_echo "/* $configure_input */" \
11784 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11785 || as_fn_error $? "could not create -" "$LINENO" 5
11786 fi
11787 ;;
11788
11789
11790 esac
11791
11792 done # for ac_tag
11793
11794
11795 as_fn_exit 0
11796 _ACEOF
11797 ac_clean_files=$ac_clean_files_save
11798
11799 test $ac_write_fail = 0 ||
11800 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11801
11802
11803 # configure is writing to config.log, and then calls config.status.
11804 # config.status does its own redirection, appending to config.log.
11805 # Unfortunately, on DOS this fails, as config.log is still kept open
11806 # by configure, so config.status won't be able to write to it; its
11807 # output is simply discarded. So we exec the FD to /dev/null,
11808 # effectively closing config.log, so it can be properly (re)opened and
11809 # appended to by config.status. When coming back to configure, we
11810 # need to make the FD available again.
11811 if test "$no_create" != yes; then
11812 ac_cs_success=:
11813 ac_config_status_args=
11814 test "$silent" = yes &&
11815 ac_config_status_args="$ac_config_status_args --quiet"
11816 exec 5>/dev/null
11817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11818 exec 5>>config.log
11819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11820 # would make configure fail if this is the last instruction.
11821 $ac_cs_success || as_fn_exit 1
11822 fi
11823 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11825 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11826 fi
11827
11828
11829 if test x$ODIRECT != xyes; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11831 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11832 fi
This page took 0.645003 seconds and 5 git commands to generate.