]> sourceware.org Git - lvm2.git/blob - configure
Remove support for the original dm ioctl interface version 1.
[lvm2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461 *)
462 ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
486 else
487 as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="lib/device/dev-cache.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_header_list=
595 ac_default_prefix=/usr
596 ac_subst_vars='LTLIBOBJS
597 usrsbindir
598 usrlibdir
599 udevdir
600 udev_prefix
601 tmpdir
602 kernelvsn
603 missingkernel
604 kerneldir
605 interface
606 DMEVENTD_PIDFILE
607 WRITE_INSTALL
608 UDEV_SYNC
609 UDEV_RULES
610 UDEV_PC
611 TESTING
612 STATIC_LINK
613 STATICDIR
614 SNAPSHOTS
615 SELINUX_PC
616 SELINUX_LIBS
617 REPLICATORS
618 READLINE_LIBS
619 RAID
620 PTHREAD_LIBS
621 POOL
622 PKGCONFIG
623 OCFDIR
624 OCF
625 MIRRORS
626 LVM_RELEASE_DATE
627 LVM_RELEASE
628 LVM_PATCHLEVEL
629 LVM_MINOR
630 LVM_MAJOR
631 LVM_LIBAPI
632 LVM_VERSION
633 LVM1_FALLBACK
634 LVM1
635 LOCALEDIR
636 LIB_SUFFIX
637 LDDEPS
638 JOBS
639 INTL_PACKAGE
640 INTL
641 HAVE_REALTIME
642 HAVE_LIBDL
643 FSADM
644 DM_LIB_PATCHLEVEL
645 DM_LIB_VERSION
646 DM_IOCTLS
647 DM_DEVICE_UID
648 DM_DEVICE_MODE
649 DM_DEVICE_GID
650 DM_COMPAT
651 DMEVENTD_PATH
652 DMEVENTD
653 DL_LIBS
654 DEVMAPPER
655 DEFAULT_RUN_DIR
656 DEFAULT_LOCK_DIR
657 DEFAULT_DATA_ALIGNMENT
658 DEFAULT_CACHE_SUBDIR
659 DEFAULT_BACKUP_SUBDIR
660 DEFAULT_ARCHIVE_SUBDIR
661 DEFAULT_SYS_DIR
662 DEBUG
663 COPTIMISE_FLAG
664 CONFDIR
665 CMDLIB
666 CLVMD_CMANAGERS
667 CLVMD
668 CLUSTER
669 CLDWHOLEARCHIVE
670 CLDNOWHOLEARCHIVE
671 CLDFLAGS
672 BUILD_DMEVENTD
673 BUILD_CMIRRORD
674 APPLIB
675 MODPROBE_CMD
676 MSGFMT
677 LVM2CMD_LIB
678 LVM2APP_LIB
679 UDEV_LIBS
680 UDEV_CFLAGS
681 VALGRIND
682 RUBY19
683 GENPNG
684 GENHTML
685 LCOV
686 SACKPT_LIBS
687 SACKPT_CFLAGS
688 DLM_LIBS
689 DLM_CFLAGS
690 CPG_LIBS
691 CPG_CFLAGS
692 CONFDB_LIBS
693 CONFDB_CFLAGS
694 SALCK_LIBS
695 SALCK_CFLAGS
696 QUORUM_LIBS
697 QUORUM_CFLAGS
698 COROSYNC_LIBS
699 COROSYNC_CFLAGS
700 CMAN_LIBS
701 CMAN_CFLAGS
702 GULM_LIBS
703 GULM_CFLAGS
704 CCS_LIBS
705 CCS_CFLAGS
706 PKGCONFIGINIT_LIBS
707 PKGCONFIGINIT_CFLAGS
708 PKG_CONFIG_LIBDIR
709 PKG_CONFIG_PATH
710 PKG_CONFIG
711 POW_LIB
712 LIBOBJS
713 ALLOCA
714 CSCOPE_CMD
715 CFLOW_CMD
716 RANLIB
717 MKDIR_P
718 SET_MAKE
719 LN_S
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 EGREP
724 GREP
725 CPP
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 AWK
734 SED
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_static_link
789 with_user
790 with_group
791 with_device_uid
792 with_device_gid
793 with_device_mode
794 with_device_nodes_on
795 enable_lvm1_fallback
796 with_lvm1
797 with_pool
798 with_cluster
799 with_snapshots
800 with_mirrors
801 with_raid
802 with_replicators
803 enable_readline
804 enable_realtime
805 enable_ocf
806 with_ocfdir
807 with_clvmd
808 with_clvmd_pidfile
809 enable_cmirrord
810 with_cmirrord_pidfile
811 enable_debug
812 with_optimisation
813 enable_profiling
814 enable_testing
815 enable_valgrind_pool
816 enable_devmapper
817 enable_udev_sync
818 enable_udev_rules
819 enable_compat
820 enable_units_compat
821 enable_ioctl
822 enable_o_direct
823 enable_applib
824 enable_cmdlib
825 enable_pkgconfig
826 enable_write_install
827 enable_fsadm
828 enable_dmeventd
829 enable_selinux
830 enable_nls
831 with_localedir
832 with_confdir
833 with_staticdir
834 with_usrlibdir
835 with_usrsbindir
836 with_udev_prefix
837 with_udevdir
838 with_dmeventd_pidfile
839 with_dmeventd_path
840 with_default_run_dir
841 with_default_system_dir
842 with_default_archive_subdir
843 with_default_backup_subdir
844 with_default_cache_subdir
845 with_default_locking_dir
846 with_default_data_alignment
847 with_interface
848 '
849 ac_precious_vars='build_alias
850 host_alias
851 target_alias
852 CC
853 CFLAGS
854 LDFLAGS
855 LIBS
856 CPPFLAGS
857 CPP
858 PKG_CONFIG
859 PKG_CONFIG_PATH
860 PKG_CONFIG_LIBDIR
861 PKGCONFIGINIT_CFLAGS
862 PKGCONFIGINIT_LIBS
863 CCS_CFLAGS
864 CCS_LIBS
865 GULM_CFLAGS
866 GULM_LIBS
867 CMAN_CFLAGS
868 CMAN_LIBS
869 COROSYNC_CFLAGS
870 COROSYNC_LIBS
871 QUORUM_CFLAGS
872 QUORUM_LIBS
873 SALCK_CFLAGS
874 SALCK_LIBS
875 CONFDB_CFLAGS
876 CONFDB_LIBS
877 CPG_CFLAGS
878 CPG_LIBS
879 DLM_CFLAGS
880 DLM_LIBS
881 SACKPT_CFLAGS
882 SACKPT_LIBS
883 UDEV_CFLAGS
884 UDEV_LIBS'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939 # If the previous option needs an argument, assign it.
940 if test -n "$ac_prev"; then
941 eval $ac_prev=\$ac_option
942 ac_prev=
943 continue
944 fi
945
946 case $ac_option in
947 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948 *) ac_optarg=yes ;;
949 esac
950
951 # Accept the important Cygnus configure options, so we can diagnose typos.
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: $ac_useropt"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175 ac_prev=sbindir ;;
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177 | --sbi=* | --sb=*)
1178 sbindir=$ac_optarg ;;
1179
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1183 | --sha | --sh)
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188 | --sha=* | --sh=*)
1189 sharedstatedir=$ac_optarg ;;
1190
1191 -site | --site | --sit)
1192 ac_prev=site ;;
1193 -site=* | --site=* | --sit=*)
1194 site=$ac_optarg ;;
1195
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197 ac_prev=srcdir ;;
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1200
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1207
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1212
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214 verbose=yes ;;
1215
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1218
1219 -with-* | --with-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error $? "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239 as_fn_error $? "invalid package name: $ac_useropt"
1240 ac_useropt_orig=$ac_useropt
1241 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1243 *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247 ac_unrecognized_sep=', ';;
1248 esac
1249 eval with_$ac_useropt=no ;;
1250
1251 --x)
1252 # Obsolete; use --with-x.
1253 with_x=yes ;;
1254
1255 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256 | --x-incl | --x-inc | --x-in | --x-i)
1257 ac_prev=x_includes ;;
1258 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260 x_includes=$ac_optarg ;;
1261
1262 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264 ac_prev=x_libraries ;;
1265 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267 x_libraries=$ac_optarg ;;
1268
1269 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271 ;;
1272
1273 *=*)
1274 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275 # Reject names that are not valid shell variable names.
1276 case $ac_envvar in #(
1277 '' | [0-9]* | *[!_$as_cr_alnum]* )
1278 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279 esac
1280 eval $ac_envvar=\$ac_optarg
1281 export $ac_envvar ;;
1282
1283 *)
1284 # FIXME: should be removed in autoconf 3.0.
1285 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289 ;;
1290
1291 esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296 as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300 case $enable_option_checking in
1301 no) ;;
1302 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304 esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309 datadir sysconfdir sharedstatedir localstatedir includedir \
1310 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311 libdir localedir mandir
1312 do
1313 eval ac_val=\$$ac_var
1314 # Remove trailing slashes.
1315 case $ac_val in
1316 */ )
1317 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318 eval $ac_var=\$ac_val;;
1319 esac
1320 # Be sure to have absolute directory names.
1321 case $ac_val in
1322 [\\/$]* | ?:[\\/]* ) continue;;
1323 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324 esac
1325 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used" >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1343 fi
1344 fi
1345
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1348
1349 test "$silent" = yes && exec 6>/dev/null
1350
1351
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 as_fn_error $? "working directory cannot be determined"
1356 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1357 as_fn_error $? "pwd does not report name of working directory"
1358
1359
1360 # Find the source files, if location was not specified.
1361 if test -z "$srcdir"; then
1362 ac_srcdir_defaulted=yes
1363 # Try the directory containing this script, then the parent directory.
1364 ac_confdir=`$as_dirname -- "$as_myself" ||
1365 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1366 X"$as_myself" : 'X\(//\)[^/]' \| \
1367 X"$as_myself" : 'X\(//\)$' \| \
1368 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1369 $as_echo X"$as_myself" |
1370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)[^/].*/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\/\)$/{
1379 s//\1/
1380 q
1381 }
1382 /^X\(\/\).*/{
1383 s//\1/
1384 q
1385 }
1386 s/.*/./; q'`
1387 srcdir=$ac_confdir
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 srcdir=..
1390 fi
1391 else
1392 ac_srcdir_defaulted=no
1393 fi
1394 if test ! -r "$srcdir/$ac_unique_file"; then
1395 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1396 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1397 fi
1398 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1399 ac_abs_confdir=`(
1400 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1401 pwd)`
1402 # When building in place, set srcdir=.
1403 if test "$ac_abs_confdir" = "$ac_pwd"; then
1404 srcdir=.
1405 fi
1406 # Remove unnecessary trailing slashes from srcdir.
1407 # Double slashes in file names in object file debugging info
1408 # mess up M-x gdb in Emacs.
1409 case $srcdir in
1410 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1411 esac
1412 for ac_var in $ac_precious_vars; do
1413 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_env_${ac_var}_value=\$${ac_var}
1415 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1416 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1417 done
1418
1419 #
1420 # Report the --help message.
1421 #
1422 if test "$ac_init_help" = "long"; then
1423 # Omit some internal or obsolete options to make the list less imposing.
1424 # This message is too long to be a string in the A/UX 3.1 sh.
1425 cat <<_ACEOF
1426 \`configure' configures this package to adapt to many kinds of systems.
1427
1428 Usage: $0 [OPTION]... [VAR=VALUE]...
1429
1430 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1431 VAR=VALUE. See below for descriptions of some of the useful variables.
1432
1433 Defaults for the options are specified in brackets.
1434
1435 Configuration:
1436 -h, --help display this help and exit
1437 --help=short display options specific to this package
1438 --help=recursive display the short help of all the included packages
1439 -V, --version display version information and exit
1440 -q, --quiet, --silent do not print \`checking ...' messages
1441 --cache-file=FILE cache test results in FILE [disabled]
1442 -C, --config-cache alias for \`--cache-file=config.cache'
1443 -n, --no-create do not create output files
1444 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1445
1446 Installation directories:
1447 --prefix=PREFIX install architecture-independent files in PREFIX
1448 [$ac_default_prefix]
1449 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1450 [PREFIX]
1451
1452 By default, \`make install' will install all the files in
1453 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1454 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1455 for instance \`--prefix=\$HOME'.
1456
1457 For better control, use the options below.
1458
1459 Fine tuning of the installation directories:
1460 --bindir=DIR user executables [EPREFIX/bin]
1461 --sbindir=DIR system admin executables [EPREFIX/sbin]
1462 --libexecdir=DIR program executables [EPREFIX/libexec]
1463 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1464 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1465 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1466 --libdir=DIR object code libraries [EPREFIX/lib]
1467 --includedir=DIR C header files [PREFIX/include]
1468 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1469 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1470 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1471 --infodir=DIR info documentation [DATAROOTDIR/info]
1472 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1473 --mandir=DIR man documentation [DATAROOTDIR/man]
1474 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1475 --htmldir=DIR html documentation [DOCDIR]
1476 --dvidir=DIR dvi documentation [DOCDIR]
1477 --pdfdir=DIR pdf documentation [DOCDIR]
1478 --psdir=DIR ps documentation [DOCDIR]
1479 _ACEOF
1480
1481 cat <<\_ACEOF
1482
1483 System types:
1484 --build=BUILD configure for building on BUILD [guessed]
1485 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1486 --target=TARGET configure for building compilers for TARGET [HOST]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491
1492 cat <<\_ACEOF
1493
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-static_link use this to link the tools to their libraries
1499 statically (default is dynamic linking
1500 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
1501 device-mapper is missing from the kernel
1502 --disable-readline disable readline support
1503 --enable-realtime enable realtime clock support
1504 --enable-ocf enable Open Cluster Framework (OCF) compliant
1505 resource agents
1506 --enable-cmirrord enable the cluster mirror log daemon
1507 --enable-debug enable debugging
1508 --enable-profiling gather gcov profiling data
1509 --enable-testing enable testing targets in the makefile
1510 --enable-valgrind-pool enable valgrind awareness of pools
1511 --disable-devmapper disable LVM2 device-mapper interaction
1512 --enable-udev_sync enable synchronisation with udev processing
1513 --enable-udev_rules install rule files needed for udev synchronisation
1514 --enable-compat enable support for old device-mapper versions
1515 --enable-units-compat enable output compatibility with old versions that
1516 that do not use KiB-style unit suffixes
1517 --disable-driver disable calls to device-mapper in the kernel
1518 --disable-o_direct disable O_DIRECT
1519 --enable-applib build application library
1520 --enable-cmdlib build shared command library
1521 --enable-pkgconfig install pkgconfig support
1522 --enable-write_install install user writable files
1523 --disable-fsadm disable fsadm
1524 --enable-dmeventd enable the device-mapper event daemon
1525 --disable-selinux disable selinux support
1526 --enable-nls enable Native Language Support
1527
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-user=USER set the owner of installed files [[USER=]]
1532 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1533 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1534 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1535 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
1536 --with-device-nodes-on=ON
1537 create nodes on resume or create [[ON=resume]]
1538 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
1539 [[TYPE=internal]]
1540 --with-pool=TYPE GFS pool read-only support: internal/shared/none
1541 [[TYPE=internal]]
1542 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1543 [[TYPE=internal]]
1544 --with-snapshots=TYPE snapshot support: internal/shared/none
1545 [[TYPE=internal]]
1546 --with-mirrors=TYPE mirror support: internal/shared/none
1547 [[TYPE=internal]]
1548 --with-raid=TYPE mirror support: internal/shared/none
1549 [[TYPE=internal]]
1550 --with-replicators=TYPE replicator support: internal/shared/none
1551 [[TYPE=none]]
1552 --with-ocfdir=DIR install OCF files in DIR
1553 [[PREFIX/lib/ocf/resource.d/lvm2]]
1554 --with-clvmd=TYPE build cluster LVM Daemon
1555 The following cluster manager combinations are valid:
1556 * cman,gulm (RHEL4 or equivalent)
1557 * cman (RHEL5 or equivalent)
1558 * cman,corosync,openais (or selection of them)
1559 * singlenode (localhost only)
1560 * all (autodetect)
1561 * none (disable build)
1562 [TYPE=none]
1563 --with-clvmd-pidfile=PATH
1564 clvmd pidfile [[/var/run/clvmd.pid]]
1565 --with-cmirrord-pidfile=PATH
1566 cmirrord pidfile [[/var/run/cmirrord.pid]]
1567 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1568 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1569 --with-confdir=DIR configuration files in DIR [[/etc]]
1570 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1571 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1572 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
1573 --with-udev-prefix=UPREFIX
1574 install udev rule files in UPREFIX [[EPREFIX]]
1575 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
1576 --with-dmeventd-pidfile=PATH
1577 dmeventd pidfile [[/var/run/dmeventd.pid]]
1578 --with-dmeventd-path=PATH
1579 dmeventd path [[EPREFIX/sbin/dmeventd]]
1580 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
1581 --with-default-system-dir=DIR
1582 default LVM system directory [[/etc/lvm]]
1583 --with-default-archive-subdir=SUBDIR
1584 default metadata archive subdir [[archive]]
1585 --with-default-backup-subdir=SUBDIR
1586 default metadata backup subdir [[backup]]
1587 --with-default-cache-subdir=SUBDIR
1588 default metadata cache subdir [[cache]]
1589 --with-default-locking-dir=DIR
1590 default locking directory [[/var/lock/lvm]]
1591 --with-default-data-alignment=NUM
1592 set the default data alignment in MiB [[1]]
1593 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
1594
1595 Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
1600 LIBS libraries to pass to the linker, e.g. -l<library>
1601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1602 you have headers in a nonstandard directory <include dir>
1603 CPP C preprocessor
1604 PKG_CONFIG path to pkg-config utility
1605 PKG_CONFIG_PATH
1606 directories to add to pkg-config's search path
1607 PKG_CONFIG_LIBDIR
1608 path overriding pkg-config's built-in search path
1609 PKGCONFIGINIT_CFLAGS
1610 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1611 PKGCONFIGINIT_LIBS
1612 linker flags for PKGCONFIGINIT, overriding pkg-config
1613 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1614 CCS_LIBS linker flags for CCS, overriding pkg-config
1615 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1616 GULM_LIBS linker flags for GULM, overriding pkg-config
1617 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1618 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1619 COROSYNC_CFLAGS
1620 C compiler flags for COROSYNC, overriding pkg-config
1621 COROSYNC_LIBS
1622 linker flags for COROSYNC, overriding pkg-config
1623 QUORUM_CFLAGS
1624 C compiler flags for QUORUM, overriding pkg-config
1625 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
1626 SALCK_CFLAGS
1627 C compiler flags for SALCK, overriding pkg-config
1628 SALCK_LIBS linker flags for SALCK, overriding pkg-config
1629 CONFDB_CFLAGS
1630 C compiler flags for CONFDB, overriding pkg-config
1631 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1632 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1633 CPG_LIBS linker flags for CPG, overriding pkg-config
1634 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1635 DLM_LIBS linker flags for DLM, overriding pkg-config
1636 SACKPT_CFLAGS
1637 C compiler flags for SACKPT, overriding pkg-config
1638 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
1639 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1640 UDEV_LIBS linker flags for UDEV, overriding pkg-config
1641
1642 Use these variables to override the choices made by `configure' or to help
1643 it to find libraries and programs with nonstandard names/locations.
1644
1645 Report bugs to the package provider.
1646 _ACEOF
1647 ac_status=$?
1648 fi
1649
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
1656 ac_builddir=.
1657
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *)
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1673
1674 case $srcdir in
1675 .) # We are building in place.
1676 ac_srcdir=.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1703 fi
1704
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707 cat <<\_ACEOF
1708 configure
1709 generated by GNU Autoconf 2.66
1710
1711 Copyright (C) 2010 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1714 _ACEOF
1715 exit
1716 fi
1717
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1721
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754 fi
1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_compile
1759
1760 # ac_fn_c_try_cpp LINENO
1761 # ----------------------
1762 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_cpp ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_cpp conftest.$ac_ext"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } >/dev/null && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_cpp
1796
1797 # ac_fn_c_try_link LINENO
1798 # -----------------------
1799 # Try to link conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_c_try_link ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext conftest$ac_exeext
1804 if { { ac_try="$ac_link"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_link") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_c_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest$ac_exeext && {
1823 test "$cross_compiling" = yes ||
1824 $as_test_x conftest$ac_exeext
1825 }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832 fi
1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835 # interfere with the next link command; also delete a directory that is
1836 # left behind by Apple's compiler. We do this before executing the actions.
1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 as_fn_set_status $ac_retval
1840
1841 } # ac_fn_c_try_link
1842
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1847 # accordingly.
1848 ac_fn_c_check_header_mongrel ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if eval "test \"\${$3+set}\"" = set; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval "test \"\${$3+set}\"" = set; then :
1855 $as_echo_n "(cached) " >&6
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 else
1861 # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 ac_header_compiler=yes
1871 else
1872 ac_header_compiler=no
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1877
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886 ac_header_preproc=yes
1887 else
1888 ac_header_preproc=no
1889 fi
1890 rm -f conftest.err conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1893
1894 # So? What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896 yes:no: )
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 ;;
1902 no:yes:* )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913 ;;
1914 esac
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval "test \"\${$3+set}\"" = set; then :
1918 $as_echo_n "(cached) " >&6
1919 else
1920 eval "$3=\$ac_header_compiler"
1921 fi
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 fi
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927
1928 } # ac_fn_c_check_header_mongrel
1929
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1934 ac_fn_c_try_run ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>&5
1945 ac_status=$?
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_try") 2>&5
1955 ac_status=$?
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }; then :
1958 ac_retval=0
1959 else
1960 $as_echo "$as_me: program exited with status $ac_status" >&5
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964 ac_retval=$ac_status
1965 fi
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_run
1971
1972 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists and can be compiled using the include files in
1975 # INCLUDES, setting the cache variable VAR accordingly.
1976 ac_fn_c_check_header_compile ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if eval "test \"\${$3+set}\"" = set; then :
1982 $as_echo_n "(cached) " >&6
1983 else
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 eval "$3=yes"
1991 else
1992 eval "$3=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000
2001 } # ac_fn_c_check_header_compile
2002
2003 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2004 # ----------------------------------------------------
2005 # Tries to find if the field MEMBER exists in type AGGR, after including
2006 # INCLUDES, setting cache variable VAR accordingly.
2007 ac_fn_c_check_member ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2011 $as_echo_n "checking for $2.$3... " >&6; }
2012 if eval "test \"\${$4+set}\"" = set; then :
2013 $as_echo_n "(cached) " >&6
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $5
2018 int
2019 main ()
2020 {
2021 static $2 ac_aggr;
2022 if (ac_aggr.$3)
2023 return 0;
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"; then :
2029 eval "$4=yes"
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $5
2034 int
2035 main ()
2036 {
2037 static $2 ac_aggr;
2038 if (sizeof ac_aggr.$3)
2039 return 0;
2040 ;
2041 return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 eval "$4=yes"
2046 else
2047 eval "$4=no"
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$4
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057
2058 } # ac_fn_c_check_member
2059
2060 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2061 # -------------------------------------------
2062 # Tests whether TYPE exists after having included INCLUDES, setting cache
2063 # variable VAR accordingly.
2064 ac_fn_c_check_type ()
2065 {
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2068 $as_echo_n "checking for $2... " >&6; }
2069 if eval "test \"\${$3+set}\"" = set; then :
2070 $as_echo_n "(cached) " >&6
2071 else
2072 eval "$3=no"
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main ()
2078 {
2079 if (sizeof ($2))
2080 return 0;
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h. */
2088 $4
2089 int
2090 main ()
2091 {
2092 if (sizeof (($2)))
2093 return 0;
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099
2100 else
2101 eval "$3=yes"
2102 fi
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 fi
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111
2112 } # ac_fn_c_check_type
2113
2114 # ac_fn_c_find_intX_t LINENO BITS VAR
2115 # -----------------------------------
2116 # Finds a signed integer type with width BITS, setting cache variable VAR
2117 # accordingly.
2118 ac_fn_c_find_intX_t ()
2119 {
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2122 $as_echo_n "checking for int$2_t... " >&6; }
2123 if eval "test \"\${$3+set}\"" = set; then :
2124 $as_echo_n "(cached) " >&6
2125 else
2126 eval "$3=no"
2127 # Order is important - never check a type that is potentially smaller
2128 # than half of the expected target width.
2129 for ac_type in int$2_t 'int' 'long int' \
2130 'long long int' 'short int' 'signed char'; do
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2133 $ac_includes_default
2134 enum { N = $2 / 2 - 1 };
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2139 test_array [0] = 0
2140
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2148 $ac_includes_default
2149 enum { N = $2 / 2 - 1 };
2150 int
2151 main ()
2152 {
2153 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2154 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2155 test_array [0] = 0
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162
2163 else
2164 case $ac_type in #(
2165 int$2_t) :
2166 eval "$3=yes" ;; #(
2167 *) :
2168 eval "$3=\$ac_type" ;;
2169 esac
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 if eval test \"x\$"$3"\" = x"no"; then :
2175
2176 else
2177 break
2178 fi
2179 done
2180 fi
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185
2186 } # ac_fn_c_find_intX_t
2187
2188 # ac_fn_c_find_uintX_t LINENO BITS VAR
2189 # ------------------------------------
2190 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2191 # accordingly.
2192 ac_fn_c_find_uintX_t ()
2193 {
2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2196 $as_echo_n "checking for uint$2_t... " >&6; }
2197 if eval "test \"\${$3+set}\"" = set; then :
2198 $as_echo_n "(cached) " >&6
2199 else
2200 eval "$3=no"
2201 # Order is important - never check a type that is potentially smaller
2202 # than half of the expected target width.
2203 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2204 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 $ac_includes_default
2208 int
2209 main ()
2210 {
2211 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2212 test_array [0] = 0
2213
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 case $ac_type in #(
2220 uint$2_t) :
2221 eval "$3=yes" ;; #(
2222 *) :
2223 eval "$3=\$ac_type" ;;
2224 esac
2225 fi
2226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227 if eval test \"x\$"$3"\" = x"no"; then :
2228
2229 else
2230 break
2231 fi
2232 done
2233 fi
2234 eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238
2239 } # ac_fn_c_find_uintX_t
2240
2241 # ac_fn_c_check_func LINENO FUNC VAR
2242 # ----------------------------------
2243 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2244 ac_fn_c_check_func ()
2245 {
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248 $as_echo_n "checking for $2... " >&6; }
2249 if eval "test \"\${$3+set}\"" = set; then :
2250 $as_echo_n "(cached) " >&6
2251 else
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2254 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2256 #define $2 innocuous_$2
2257
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char $2 (); below.
2260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2261 <limits.h> exists even on freestanding compilers. */
2262
2263 #ifdef __STDC__
2264 # include <limits.h>
2265 #else
2266 # include <assert.h>
2267 #endif
2268
2269 #undef $2
2270
2271 /* Override any GCC internal prototype to avoid an error.
2272 Use char because int might match the return type of a GCC
2273 builtin and then its argument prototype would still apply. */
2274 #ifdef __cplusplus
2275 extern "C"
2276 #endif
2277 char $2 ();
2278 /* The GNU C library defines this for functions which it implements
2279 to always fail with ENOSYS. Some functions are actually named
2280 something starting with __ and the normal name is an alias. */
2281 #if defined __stub_$2 || defined __stub___$2
2282 choke me
2283 #endif
2284
2285 int
2286 main ()
2287 {
2288 return $2 ();
2289 ;
2290 return 0;
2291 }
2292 _ACEOF
2293 if ac_fn_c_try_link "$LINENO"; then :
2294 eval "$3=yes"
2295 else
2296 eval "$3=no"
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext \
2299 conftest$ac_exeext conftest.$ac_ext
2300 fi
2301 eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2305
2306 } # ac_fn_c_check_func
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2310
2311 It was created by $as_me, which was
2312 generated by GNU Autoconf 2.66. Invocation command line was
2313
2314 $ $0 $@
2315
2316 _ACEOF
2317 exec 5>>config.log
2318 {
2319 cat <<_ASUNAME
2320 ## --------- ##
2321 ## Platform. ##
2322 ## --------- ##
2323
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2329
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2332
2333 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2340
2341 _ASUNAME
2342
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 $as_echo "PATH: $as_dir"
2349 done
2350 IFS=$as_save_IFS
2351
2352 } >&5
2353
2354 cat >&5 <<_ACEOF
2355
2356
2357 ## ----------- ##
2358 ## Core tests. ##
2359 ## ----------- ##
2360
2361 _ACEOF
2362
2363
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2369 ac_configure_args=
2370 ac_configure_args0=
2371 ac_configure_args1=
2372 ac_must_keep_next=false
2373 for ac_pass in 1 2
2374 do
2375 for ac_arg
2376 do
2377 case $ac_arg in
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2381 continue ;;
2382 *\'*)
2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 esac
2385 case $ac_pass in
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2387 2)
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2391 else
2392 case $ac_arg in
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399 esac
2400 ;;
2401 -* ) ac_must_keep_next=true ;;
2402 esac
2403 fi
2404 as_fn_append ac_configure_args " '$ac_arg'"
2405 ;;
2406 esac
2407 done
2408 done
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2411
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log. We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2419 {
2420 echo
2421
2422 $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2425 echo
2426 # The following way of writing the cache mishandles newlines in values,
2427 (
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in #(
2431 *${as_nl}*)
2432 case $ac_var in #(
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435 esac
2436 case $ac_var in #(
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2440 esac ;;
2441 esac
2442 done
2443 (set) 2>&1 |
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2446 sed -n \
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449 ;; #(
2450 *)
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2452 ;;
2453 esac |
2454 sort
2455 )
2456 echo
2457
2458 $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2461 echo
2462 for ac_var in $ac_subst_vars
2463 do
2464 eval ac_val=\$$ac_var
2465 case $ac_val in
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 esac
2468 $as_echo "$ac_var='\''$ac_val'\''"
2469 done | sort
2470 echo
2471
2472 if test -n "$ac_subst_files"; then
2473 $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2476 echo
2477 for ac_var in $ac_subst_files
2478 do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 esac
2483 $as_echo "$ac_var='\''$ac_val'\''"
2484 done | sort
2485 echo
2486 fi
2487
2488 if test -s confdefs.h; then
2489 $as_echo "## ----------- ##
2490 ## confdefs.h. ##
2491 ## ----------- ##"
2492 echo
2493 cat confdefs.h
2494 echo
2495 fi
2496 test "$ac_signal" != 0 &&
2497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
2499 } >&5
2500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502 exit $exit_status
2503 ' 0
2504 for ac_signal in 1 2 13 15; do
2505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506 done
2507 ac_signal=0
2508
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest* confdefs.h
2511
2512 $as_echo "/* confdefs.h */" > confdefs.h
2513
2514 # Predefined preprocessor variables.
2515
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2518 _ACEOF
2519
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522 _ACEOF
2523
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2526 _ACEOF
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2538 _ACEOF
2539
2540
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2543 ac_site_file1=NONE
2544 ac_site_file2=NONE
2545 if test -n "$CONFIG_SITE"; then
2546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1=./$CONFIG_SITE;;
2549 */*) ac_site_file1=$CONFIG_SITE;;
2550 *) ac_site_file1=./$CONFIG_SITE;;
2551 esac
2552 elif test "x$prefix" != xNONE; then
2553 ac_site_file1=$prefix/share/config.site
2554 ac_site_file2=$prefix/etc/config.site
2555 else
2556 ac_site_file1=$ac_default_prefix/share/config.site
2557 ac_site_file2=$ac_default_prefix/etc/config.site
2558 fi
2559 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2560 do
2561 test "x$ac_site_file" = xNONE && continue
2562 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565 sed 's/^/| /' "$ac_site_file" >&5
2566 . "$ac_site_file" \
2567 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $? "failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2571 fi
2572 done
2573
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580 case $cache_file in
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2583 esac
2584 fi
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2588 >$cache_file
2589 fi
2590
2591 as_fn_append ac_header_list " stdlib.h"
2592 as_fn_append ac_header_list " unistd.h"
2593 as_fn_append ac_header_list " sys/param.h"
2594 # Check that the precious variables saved in the cache have kept the same
2595 # value.
2596 ac_cache_corrupted=false
2597 for ac_var in $ac_precious_vars; do
2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2603 set,)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,set)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2611 ,);;
2612 *)
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2625 fi
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2627 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2629 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2630 fi;;
2631 esac
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2634 case $ac_new_val in
2635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg=$ac_var=$ac_new_val ;;
2637 esac
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641 esac
2642 fi
2643 done
2644 if $ac_cache_corrupted; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2650 fi
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2654
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660
2661
2662
2663 ac_config_headers="$ac_config_headers lib/misc/configure.h"
2664
2665
2666 ################################################################################
2667 ac_aux_dir=
2668 for ac_dir in autoconf "$srcdir"/autoconf; do
2669 if test -f "$ac_dir/install-sh"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/install-sh -c"
2672 break
2673 elif test -f "$ac_dir/install.sh"; then
2674 ac_aux_dir=$ac_dir
2675 ac_install_sh="$ac_aux_dir/install.sh -c"
2676 break
2677 elif test -f "$ac_dir/shtool"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/shtool install -c"
2680 break
2681 fi
2682 done
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2685 fi
2686
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2694
2695
2696
2697 ################################################################################
2698 # Make sure we can run config.sub.
2699 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2700 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2703 $as_echo_n "checking build system type... " >&6; }
2704 if test "${ac_cv_build+set}" = set; then :
2705 $as_echo_n "(cached) " >&6
2706 else
2707 ac_build_alias=$build_alias
2708 test "x$ac_build_alias" = x &&
2709 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2710 test "x$ac_build_alias" = x &&
2711 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2712 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2714
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2717 $as_echo "$ac_cv_build" >&6; }
2718 case $ac_cv_build in
2719 *-*-*) ;;
2720 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2721 esac
2722 build=$ac_cv_build
2723 ac_save_IFS=$IFS; IFS='-'
2724 set x $ac_cv_build
2725 shift
2726 build_cpu=$1
2727 build_vendor=$2
2728 shift; shift
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2731 build_os=$*
2732 IFS=$ac_save_IFS
2733 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734
2735
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2737 $as_echo_n "checking host system type... " >&6; }
2738 if test "${ac_cv_host+set}" = set; then :
2739 $as_echo_n "(cached) " >&6
2740 else
2741 if test "x$host_alias" = x; then
2742 ac_cv_host=$ac_cv_build
2743 else
2744 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2746 fi
2747
2748 fi
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2750 $as_echo "$ac_cv_host" >&6; }
2751 case $ac_cv_host in
2752 *-*-*) ;;
2753 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2754 esac
2755 host=$ac_cv_host
2756 ac_save_IFS=$IFS; IFS='-'
2757 set x $ac_cv_host
2758 shift
2759 host_cpu=$1
2760 host_vendor=$2
2761 shift; shift
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2764 host_os=$*
2765 IFS=$ac_save_IFS
2766 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2767
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2770 $as_echo_n "checking target system type... " >&6; }
2771 if test "${ac_cv_target+set}" = set; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test "x$target_alias" = x; then
2775 ac_cv_target=$ac_cv_host
2776 else
2777 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2778 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2779 fi
2780
2781 fi
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2783 $as_echo "$ac_cv_target" >&6; }
2784 case $ac_cv_target in
2785 *-*-*) ;;
2786 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2787 esac
2788 target=$ac_cv_target
2789 ac_save_IFS=$IFS; IFS='-'
2790 set x $ac_cv_target
2791 shift
2792 target_cpu=$1
2793 target_vendor=$2
2794 shift; shift
2795 # Remember, the first character of IFS is used to create $*,
2796 # except with old shells:
2797 target_os=$*
2798 IFS=$ac_save_IFS
2799 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2800
2801
2802 # The aliases save the names the user supplied, while $host etc.
2803 # will get canonicalized.
2804 test -n "$target_alias" &&
2805 test "$program_prefix$program_suffix$program_transform_name" = \
2806 NONENONEs,x,x, &&
2807 program_prefix=${target_alias}-
2808
2809 case "$host_os" in
2810 linux*)
2811 CFLAGS="$CFLAGS"
2812 COPTIMISE_FLAG="-O2"
2813 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2814 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2815 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2816 LDDEPS="$LDDEPS .export.sym"
2817 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2818 LIB_SUFFIX=so
2819 DEVMAPPER=yes
2820 ODIRECT=yes
2821 DM_IOCTLS=yes
2822 SELINUX=yes
2823 CLUSTER=internal
2824 FSADM=yes
2825 ;;
2826 darwin*)
2827 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2828 COPTIMISE_FLAG="-O2"
2829 CLDFLAGS="$CLDFLAGS"
2830 CLDWHOLEARCHIVE="-all_load"
2831 CLDNOWHOLEARCHIVE=
2832 LIB_SUFFIX=dylib
2833 DEVMAPPER=yes
2834 ODIRECT=no
2835 DM_IOCTLS=no
2836 SELINUX=no
2837 CLUSTER=none
2838 FSADM=no
2839 ;;
2840 esac
2841
2842 ################################################################################
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2844 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2845 if test "${ac_cv_path_SED+set}" = set; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2849 for ac_i in 1 2 3 4 5 6 7; do
2850 ac_script="$ac_script$as_nl$ac_script"
2851 done
2852 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2853 { ac_script=; unset ac_script;}
2854 if test -z "$SED"; then
2855 ac_path_SED_found=false
2856 # Loop through the user's path and test for each of PROGNAME-LIST
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_prog in sed gsed; do
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2865 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2866 # Check for GNU ac_path_SED and select it if it is found.
2867 # Check for GNU $ac_path_SED
2868 case `"$ac_path_SED" --version 2>&1` in
2869 *GNU*)
2870 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2871 *)
2872 ac_count=0
2873 $as_echo_n 0123456789 >"conftest.in"
2874 while :
2875 do
2876 cat "conftest.in" "conftest.in" >"conftest.tmp"
2877 mv "conftest.tmp" "conftest.in"
2878 cp "conftest.in" "conftest.nl"
2879 $as_echo '' >> "conftest.nl"
2880 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2882 as_fn_arith $ac_count + 1 && ac_count=$as_val
2883 if test $ac_count -gt ${ac_path_SED_max-0}; then
2884 # Best one so far, save it but keep looking for a better one
2885 ac_cv_path_SED="$ac_path_SED"
2886 ac_path_SED_max=$ac_count
2887 fi
2888 # 10*(2^10) chars as input seems more than enough
2889 test $ac_count -gt 10 && break
2890 done
2891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2892 esac
2893
2894 $ac_path_SED_found && break 3
2895 done
2896 done
2897 done
2898 IFS=$as_save_IFS
2899 if test -z "$ac_cv_path_SED"; then
2900 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2901 fi
2902 else
2903 ac_cv_path_SED=$SED
2904 fi
2905
2906 fi
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2908 $as_echo "$ac_cv_path_SED" >&6; }
2909 SED="$ac_cv_path_SED"
2910 rm -f conftest.sed
2911
2912 for ac_prog in gawk mawk nawk awk
2913 do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915 set dummy $ac_prog; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_AWK+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$AWK"; then
2922 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_AWK="$ac_prog"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2934 fi
2935 done
2936 done
2937 IFS=$as_save_IFS
2938
2939 fi
2940 fi
2941 AWK=$ac_cv_prog_AWK
2942 if test -n "$AWK"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2944 $as_echo "$AWK" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2948 fi
2949
2950
2951 test -n "$AWK" && break
2952 done
2953
2954 ac_ext=c
2955 ac_cpp='$CPP $CPPFLAGS'
2956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2959 if test -n "$ac_tool_prefix"; then
2960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2961 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if test "${ac_cv_prog_CC+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 if test -n "$CC"; then
2968 ac_cv_prog_CC="$CC" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 CC=$ac_cv_prog_CC
2988 if test -n "$CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2990 $as_echo "$CC" >&6; }
2991 else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997 fi
2998 if test -z "$ac_cv_prog_CC"; then
2999 ac_ct_CC=$CC
3000 # Extract the first word of "gcc", so it can be a program name with args.
3001 set dummy gcc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_ac_ct_CC="gcc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 break 2
3020 fi
3021 done
3022 done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028 if test -n "$ac_ct_CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3030 $as_echo "$ac_ct_CC" >&6; }
3031 else
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036 if test "x$ac_ct_CC" = x; then
3037 CC=""
3038 else
3039 case $cross_compiling:$ac_tool_warned in
3040 yes:)
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3043 ac_tool_warned=yes ;;
3044 esac
3045 CC=$ac_ct_CC
3046 fi
3047 else
3048 CC="$ac_cv_prog_CC"
3049 fi
3050
3051 if test -z "$CC"; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}cc; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_CC+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$CC"; then
3061 ac_cv_prog_CC="$CC" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3065 do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_CC="${ac_tool_prefix}cc"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3073 fi
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079 fi
3080 CC=$ac_cv_prog_CC
3081 if test -n "$CC"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3083 $as_echo "$CC" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 fi
3088
3089
3090 fi
3091 fi
3092 if test -z "$CC"; then
3093 # Extract the first word of "cc", so it can be a program name with args.
3094 set dummy cc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_CC+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 ac_prog_rejected=no
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107 IFS=$as_save_IFS
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3112 ac_prog_rejected=yes
3113 continue
3114 fi
3115 ac_cv_prog_CC="cc"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 if test $ac_prog_rejected = yes; then
3124 # We found a bogon in the path, so make sure we never use it.
3125 set dummy $ac_cv_prog_CC
3126 shift
3127 if test $# != 0; then
3128 # We chose a different compiler from the bogus one.
3129 # However, it has the same basename, so the bogon will be chosen
3130 # first if we set CC to just the basename; use the full file name.
3131 shift
3132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3133 fi
3134 fi
3135 fi
3136 fi
3137 CC=$ac_cv_prog_CC
3138 if test -n "$CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140 $as_echo "$CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3144 fi
3145
3146
3147 fi
3148 if test -z "$CC"; then
3149 if test -n "$ac_tool_prefix"; then
3150 for ac_prog in cl.exe
3151 do
3152 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3153 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 test -n "$CC" && break
3190 done
3191 fi
3192 if test -z "$CC"; then
3193 ac_ct_CC=$CC
3194 for ac_prog in cl.exe
3195 do
3196 # Extract the first word of "$ac_prog", so it can be a program name with args.
3197 set dummy $ac_prog; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 if test -n "$ac_ct_CC"; then
3204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3213 ac_cv_prog_ac_ct_CC="$ac_prog"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3216 fi
3217 done
3218 done
3219 IFS=$as_save_IFS
3220
3221 fi
3222 fi
3223 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3224 if test -n "$ac_ct_CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3226 $as_echo "$ac_ct_CC" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3230 fi
3231
3232
3233 test -n "$ac_ct_CC" && break
3234 done
3235
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245 CC=$ac_ct_CC
3246 fi
3247 fi
3248
3249 fi
3250
3251
3252 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 as_fn_error $? "no acceptable C compiler found in \$PATH
3255 See \`config.log' for more details" "$LINENO" 5; }
3256
3257 # Provide some information about the compiler.
3258 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3259 set X $ac_compile
3260 ac_compiler=$2
3261 for ac_option in --version -v -V -qversion; do
3262 { { ac_try="$ac_compiler $ac_option >&5"
3263 case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3270 ac_status=$?
3271 if test -s conftest.err; then
3272 sed '10a\
3273 ... rest of stderr output deleted ...
3274 10q' conftest.err >conftest.er1
3275 cat conftest.er1 >&5
3276 fi
3277 rm -f conftest.er1 conftest.err
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }
3280 done
3281
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3284
3285 int
3286 main ()
3287 {
3288
3289 ;
3290 return 0;
3291 }
3292 _ACEOF
3293 ac_clean_files_save=$ac_clean_files
3294 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3295 # Try to create an executable without -o first, disregard a.out.
3296 # It will help us diagnose broken compilers, and finding out an intuition
3297 # of exeext.
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3299 $as_echo_n "checking whether the C compiler works... " >&6; }
3300 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3301
3302 # The possible output files:
3303 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3304
3305 ac_rmfiles=
3306 for ac_file in $ac_files
3307 do
3308 case $ac_file in
3309 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3310 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3311 esac
3312 done
3313 rm -f $ac_rmfiles
3314
3315 if { { ac_try="$ac_link_default"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link_default") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3330 # Autoconf.
3331 for ac_file in $ac_files ''
3332 do
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3336 ;;
3337 [ab].out )
3338 # We found the default executable, but exeext='' is most
3339 # certainly right.
3340 break;;
3341 *.* )
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 then :; else
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3345 fi
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3350 # actually working.
3351 break;;
3352 * )
3353 break;;
3354 esac
3355 done
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3357
3358 else
3359 ac_file=''
3360 fi
3361 if test -z "$ac_file"; then :
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 $as_echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error 77 "C compiler cannot create executables
3370 See \`config.log' for more details" "$LINENO" 5; }
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3373 $as_echo "yes" >&6; }
3374 fi
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3376 $as_echo_n "checking for C compiler default output file name... " >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3378 $as_echo "$ac_file" >&6; }
3379 ac_exeext=$ac_cv_exeext
3380
3381 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3382 ac_clean_files=$ac_clean_files_save
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3384 $as_echo_n "checking for suffix of executables... " >&6; }
3385 if { { ac_try="$ac_link"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; then :
3396 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3397 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3398 # work properly (i.e., refer to `conftest.exe'), while it won't with
3399 # `rm'.
3400 for ac_file in conftest.exe conftest conftest.*; do
3401 test -f "$ac_file" || continue
3402 case $ac_file in
3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3404 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405 break;;
3406 * ) break;;
3407 esac
3408 done
3409 else
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3413 See \`config.log' for more details" "$LINENO" 5; }
3414 fi
3415 rm -f conftest conftest$ac_cv_exeext
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3417 $as_echo "$ac_cv_exeext" >&6; }
3418
3419 rm -f conftest.$ac_ext
3420 EXEEXT=$ac_cv_exeext
3421 ac_exeext=$EXEEXT
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424 #include <stdio.h>
3425 int
3426 main ()
3427 {
3428 FILE *f = fopen ("conftest.out", "w");
3429 return ferror (f) || fclose (f) != 0;
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 ac_clean_files="$ac_clean_files conftest.out"
3436 # Check that the compiler produces executables we can run. If not, either
3437 # the compiler is broken, or we cross compile.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3439 $as_echo_n "checking whether we are cross compiling... " >&6; }
3440 if test "$cross_compiling" != yes; then
3441 { { ac_try="$ac_link"
3442 case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_link") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }
3452 if { ac_try='./conftest$ac_cv_exeext'
3453 { { case "(($ac_try" in
3454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455 *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459 (eval "$ac_try") 2>&5
3460 ac_status=$?
3461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3462 test $ac_status = 0; }; }; then
3463 cross_compiling=no
3464 else
3465 if test "$cross_compiling" = maybe; then
3466 cross_compiling=yes
3467 else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot run C compiled programs.
3471 If you meant to cross compile, use \`--host'.
3472 See \`config.log' for more details" "$LINENO" 5; }
3473 fi
3474 fi
3475 fi
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3477 $as_echo "$cross_compiling" >&6; }
3478
3479 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3480 ac_clean_files=$ac_clean_files_save
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3482 $as_echo_n "checking for suffix of object files... " >&6; }
3483 if test "${ac_cv_objext+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487 /* end confdefs.h. */
3488
3489 int
3490 main ()
3491 {
3492
3493 ;
3494 return 0;
3495 }
3496 _ACEOF
3497 rm -f conftest.o conftest.obj
3498 if { { ac_try="$ac_compile"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compile") 2>&5
3506 ac_status=$?
3507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }; then :
3509 for ac_file in conftest.o conftest.obj conftest.*; do
3510 test -f "$ac_file" || continue;
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3513 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3514 break;;
3515 esac
3516 done
3517 else
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 as_fn_error $? "cannot compute suffix of object files: cannot compile
3524 See \`config.log' for more details" "$LINENO" 5; }
3525 fi
3526 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3529 $as_echo "$ac_cv_objext" >&6; }
3530 OBJEXT=$ac_cv_objext
3531 ac_objext=$OBJEXT
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3533 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3534 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543 #ifndef __GNUC__
3544 choke me
3545 #endif
3546
3547 ;
3548 return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552 ac_compiler_gnu=yes
3553 else
3554 ac_compiler_gnu=no
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3558
3559 fi
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3561 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3562 if test $ac_compiler_gnu = yes; then
3563 GCC=yes
3564 else
3565 GCC=
3566 fi
3567 ac_test_CFLAGS=${CFLAGS+set}
3568 ac_save_CFLAGS=$CFLAGS
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3570 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3571 if test "${ac_cv_prog_cc_g+set}" = set; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 ac_save_c_werror_flag=$ac_c_werror_flag
3575 ac_c_werror_flag=yes
3576 ac_cv_prog_cc_g=no
3577 CFLAGS="-g"
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_prog_cc_g=yes
3591 else
3592 CFLAGS=""
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595
3596 int
3597 main ()
3598 {
3599
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 if ac_fn_c_try_compile "$LINENO"; then :
3605
3606 else
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3608 CFLAGS="-g"
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611
3612 int
3613 main ()
3614 {
3615
3616 ;
3617 return 0;
3618 }
3619 _ACEOF
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_g=yes
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3624 fi
3625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3626 fi
3627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628 ac_c_werror_flag=$ac_save_c_werror_flag
3629 fi
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3631 $as_echo "$ac_cv_prog_cc_g" >&6; }
3632 if test "$ac_test_CFLAGS" = set; then
3633 CFLAGS=$ac_save_CFLAGS
3634 elif test $ac_cv_prog_cc_g = yes; then
3635 if test "$GCC" = yes; then
3636 CFLAGS="-g -O2"
3637 else
3638 CFLAGS="-g"
3639 fi
3640 else
3641 if test "$GCC" = yes; then
3642 CFLAGS="-O2"
3643 else
3644 CFLAGS=
3645 fi
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3648 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3649 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651 else
3652 ac_cv_prog_cc_c89=no
3653 ac_save_CC=$CC
3654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655 /* end confdefs.h. */
3656 #include <stdarg.h>
3657 #include <stdio.h>
3658 #include <sys/types.h>
3659 #include <sys/stat.h>
3660 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3661 struct buf { int x; };
3662 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3663 static char *e (p, i)
3664 char **p;
3665 int i;
3666 {
3667 return p[i];
3668 }
3669 static char *f (char * (*g) (char **, int), char **p, ...)
3670 {
3671 char *s;
3672 va_list v;
3673 va_start (v,p);
3674 s = g (p, va_arg (v,int));
3675 va_end (v);
3676 return s;
3677 }
3678
3679 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3680 function prototypes and stuff, but not '\xHH' hex character constants.
3681 These don't provoke an error unfortunately, instead are silently treated
3682 as 'x'. The following induces an error, until -std is added to get
3683 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3684 array size at least. It's necessary to write '\x00'==0 to get something
3685 that's true only with -std. */
3686 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3687
3688 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3689 inside strings and character constants. */
3690 #define FOO(x) 'x'
3691 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3692
3693 int test (int i, double x);
3694 struct s1 {int (*f) (int a);};
3695 struct s2 {int (*f) (double a);};
3696 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3697 int argc;
3698 char **argv;
3699 int
3700 main ()
3701 {
3702 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3703 ;
3704 return 0;
3705 }
3706 _ACEOF
3707 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3708 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3709 do
3710 CC="$ac_save_CC $ac_arg"
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_cv_prog_cc_c89=$ac_arg
3713 fi
3714 rm -f core conftest.err conftest.$ac_objext
3715 test "x$ac_cv_prog_cc_c89" != "xno" && break
3716 done
3717 rm -f conftest.$ac_ext
3718 CC=$ac_save_CC
3719
3720 fi
3721 # AC_CACHE_VAL
3722 case "x$ac_cv_prog_cc_c89" in
3723 x)
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3725 $as_echo "none needed" >&6; } ;;
3726 xno)
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3728 $as_echo "unsupported" >&6; } ;;
3729 *)
3730 CC="$CC $ac_cv_prog_cc_c89"
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3732 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3733 esac
3734 if test "x$ac_cv_prog_cc_c89" != xno; then :
3735
3736 fi
3737
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3752 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3753 # On Suns, sometimes $CPP names a directory.
3754 if test -n "$CPP" && test -d "$CPP"; then
3755 CPP=
3756 fi
3757 if test -z "$CPP"; then
3758 if test "${ac_cv_prog_CPP+set}" = set; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 # Double quotes because CPP needs to be expanded
3762 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3763 do
3764 ac_preproc_ok=false
3765 for ac_c_preproc_warn_flag in '' yes
3766 do
3767 # Use a header file that comes with gcc, so configuring glibc
3768 # with a fresh cross-compiler works.
3769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3770 # <limits.h> exists even on freestanding compilers.
3771 # On the NeXT, cc -E runs the code through the compiler's parser,
3772 # not just through cpp. "Syntax error" is here to catch this case.
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780 Syntax error
3781 _ACEOF
3782 if ac_fn_c_try_cpp "$LINENO"; then :
3783
3784 else
3785 # Broken: fails on valid input.
3786 continue
3787 fi
3788 rm -f conftest.err conftest.$ac_ext
3789
3790 # OK, works on sane cases. Now check whether nonexistent headers
3791 # can be detected and how.
3792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3793 /* end confdefs.h. */
3794 #include <ac_nonexistent.h>
3795 _ACEOF
3796 if ac_fn_c_try_cpp "$LINENO"; then :
3797 # Broken: success on invalid input.
3798 continue
3799 else
3800 # Passes both tests.
3801 ac_preproc_ok=:
3802 break
3803 fi
3804 rm -f conftest.err conftest.$ac_ext
3805
3806 done
3807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808 rm -f conftest.err conftest.$ac_ext
3809 if $ac_preproc_ok; then :
3810 break
3811 fi
3812
3813 done
3814 ac_cv_prog_CPP=$CPP
3815
3816 fi
3817 CPP=$ac_cv_prog_CPP
3818 else
3819 ac_cv_prog_CPP=$CPP
3820 fi
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3822 $as_echo "$CPP" >&6; }
3823 ac_preproc_ok=false
3824 for ac_c_preproc_warn_flag in '' yes
3825 do
3826 # Use a header file that comes with gcc, so configuring glibc
3827 # with a fresh cross-compiler works.
3828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829 # <limits.h> exists even on freestanding compilers.
3830 # On the NeXT, cc -E runs the code through the compiler's parser,
3831 # not just through cpp. "Syntax error" is here to catch this case.
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #ifdef __STDC__
3835 # include <limits.h>
3836 #else
3837 # include <assert.h>
3838 #endif
3839 Syntax error
3840 _ACEOF
3841 if ac_fn_c_try_cpp "$LINENO"; then :
3842
3843 else
3844 # Broken: fails on valid input.
3845 continue
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 # OK, works on sane cases. Now check whether nonexistent headers
3850 # can be detected and how.
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3853 #include <ac_nonexistent.h>
3854 _ACEOF
3855 if ac_fn_c_try_cpp "$LINENO"; then :
3856 # Broken: success on invalid input.
3857 continue
3858 else
3859 # Passes both tests.
3860 ac_preproc_ok=:
3861 break
3862 fi
3863 rm -f conftest.err conftest.$ac_ext
3864
3865 done
3866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3867 rm -f conftest.err conftest.$ac_ext
3868 if $ac_preproc_ok; then :
3869
3870 else
3871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3873 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3874 See \`config.log' for more details" "$LINENO" 5; }
3875 fi
3876
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3885 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3886 if test "${ac_cv_path_GREP+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -z "$GREP"; then
3890 ac_path_GREP_found=false
3891 # Loop through the user's path and test for each of PROGNAME-LIST
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_prog in grep ggrep; do
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3900 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3901 # Check for GNU ac_path_GREP and select it if it is found.
3902 # Check for GNU $ac_path_GREP
3903 case `"$ac_path_GREP" --version 2>&1` in
3904 *GNU*)
3905 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 *)
3907 ac_count=0
3908 $as_echo_n 0123456789 >"conftest.in"
3909 while :
3910 do
3911 cat "conftest.in" "conftest.in" >"conftest.tmp"
3912 mv "conftest.tmp" "conftest.in"
3913 cp "conftest.in" "conftest.nl"
3914 $as_echo 'GREP' >> "conftest.nl"
3915 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3917 as_fn_arith $ac_count + 1 && ac_count=$as_val
3918 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3919 # Best one so far, save it but keep looking for a better one
3920 ac_cv_path_GREP="$ac_path_GREP"
3921 ac_path_GREP_max=$ac_count
3922 fi
3923 # 10*(2^10) chars as input seems more than enough
3924 test $ac_count -gt 10 && break
3925 done
3926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3927 esac
3928
3929 $ac_path_GREP_found && break 3
3930 done
3931 done
3932 done
3933 IFS=$as_save_IFS
3934 if test -z "$ac_cv_path_GREP"; then
3935 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3936 fi
3937 else
3938 ac_cv_path_GREP=$GREP
3939 fi
3940
3941 fi
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3943 $as_echo "$ac_cv_path_GREP" >&6; }
3944 GREP="$ac_cv_path_GREP"
3945
3946
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3948 $as_echo_n "checking for egrep... " >&6; }
3949 if test "${ac_cv_path_EGREP+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3953 then ac_cv_path_EGREP="$GREP -E"
3954 else
3955 if test -z "$EGREP"; then
3956 ac_path_EGREP_found=false
3957 # Loop through the user's path and test for each of PROGNAME-LIST
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960 do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_prog in egrep; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3966 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3967 # Check for GNU ac_path_EGREP and select it if it is found.
3968 # Check for GNU $ac_path_EGREP
3969 case `"$ac_path_EGREP" --version 2>&1` in
3970 *GNU*)
3971 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3972 *)
3973 ac_count=0
3974 $as_echo_n 0123456789 >"conftest.in"
3975 while :
3976 do
3977 cat "conftest.in" "conftest.in" >"conftest.tmp"
3978 mv "conftest.tmp" "conftest.in"
3979 cp "conftest.in" "conftest.nl"
3980 $as_echo 'EGREP' >> "conftest.nl"
3981 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3983 as_fn_arith $ac_count + 1 && ac_count=$as_val
3984 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3985 # Best one so far, save it but keep looking for a better one
3986 ac_cv_path_EGREP="$ac_path_EGREP"
3987 ac_path_EGREP_max=$ac_count
3988 fi
3989 # 10*(2^10) chars as input seems more than enough
3990 test $ac_count -gt 10 && break
3991 done
3992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993 esac
3994
3995 $ac_path_EGREP_found && break 3
3996 done
3997 done
3998 done
3999 IFS=$as_save_IFS
4000 if test -z "$ac_cv_path_EGREP"; then
4001 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002 fi
4003 else
4004 ac_cv_path_EGREP=$EGREP
4005 fi
4006
4007 fi
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4010 $as_echo "$ac_cv_path_EGREP" >&6; }
4011 EGREP="$ac_cv_path_EGREP"
4012
4013
4014 if test $ac_cv_c_compiler_gnu = yes; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4016 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4017 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4019 else
4020 ac_pattern="Autoconf.*'x'"
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4023 #include <sgtty.h>
4024 Autoconf TIOCGETP
4025 _ACEOF
4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4027 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4028 ac_cv_prog_gcc_traditional=yes
4029 else
4030 ac_cv_prog_gcc_traditional=no
4031 fi
4032 rm -f conftest*
4033
4034
4035 if test $ac_cv_prog_gcc_traditional = no; then
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <termio.h>
4039 Autoconf TCGETA
4040 _ACEOF
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4043 ac_cv_prog_gcc_traditional=yes
4044 fi
4045 rm -f conftest*
4046
4047 fi
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4050 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4051 if test $ac_cv_prog_gcc_traditional = yes; then
4052 CC="$CC -traditional"
4053 fi
4054 fi
4055
4056 # Find a good install program. We prefer a C program (faster),
4057 # so one script is as good as another. But avoid the broken or
4058 # incompatible versions:
4059 # SysV /etc/install, /usr/sbin/install
4060 # SunOS /usr/etc/install
4061 # IRIX /sbin/install
4062 # AIX /bin/install
4063 # AmigaOS /C/install, which installs bootblocks on floppy discs
4064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4067 # OS/2's system install, which has a completely different semantic
4068 # ./install, which can be erroneously created by make from ./install.sh.
4069 # Reject install programs that cannot install multiple files.
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4071 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4072 if test -z "$INSTALL"; then
4073 if test "${ac_cv_path_install+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 # Account for people who put trailing slashes in PATH elements.
4082 case $as_dir/ in #((
4083 ./ | .// | /[cC]/* | \
4084 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4085 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4086 /usr/ucb/* ) ;;
4087 *)
4088 # OSF1 and SCO ODT 3.0 have their own names for install.
4089 # Don't use installbsd from OSF since it installs stuff as root
4090 # by default.
4091 for ac_prog in ginstall scoinst install; do
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4094 if test $ac_prog = install &&
4095 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4096 # AIX install. It has an incompatible calling convention.
4097 :
4098 elif test $ac_prog = install &&
4099 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4100 # program-specific install script used by HP pwplus--don't use.
4101 :
4102 else
4103 rm -rf conftest.one conftest.two conftest.dir
4104 echo one > conftest.one
4105 echo two > conftest.two
4106 mkdir conftest.dir
4107 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4108 test -s conftest.one && test -s conftest.two &&
4109 test -s conftest.dir/conftest.one &&
4110 test -s conftest.dir/conftest.two
4111 then
4112 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4113 break 3
4114 fi
4115 fi
4116 fi
4117 done
4118 done
4119 ;;
4120 esac
4121
4122 done
4123 IFS=$as_save_IFS
4124
4125 rm -rf conftest.one conftest.two conftest.dir
4126
4127 fi
4128 if test "${ac_cv_path_install+set}" = set; then
4129 INSTALL=$ac_cv_path_install
4130 else
4131 # As a last resort, use the slow shell script. Don't cache a
4132 # value for INSTALL within a source directory, because that will
4133 # break other packages using the cache if that directory is
4134 # removed, or if the value is a relative name.
4135 INSTALL=$ac_install_sh
4136 fi
4137 fi
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4139 $as_echo "$INSTALL" >&6; }
4140
4141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4142 # It thinks the first close brace ends the variable substitution.
4143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4144
4145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4146
4147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4150 $as_echo_n "checking whether ln -s works... " >&6; }
4151 LN_S=$as_ln_s
4152 if test "$LN_S" = "ln -s"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4154 $as_echo "yes" >&6; }
4155 else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4157 $as_echo "no, using $LN_S" >&6; }
4158 fi
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4161 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4162 set x ${MAKE-make}
4163 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4164 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 cat >conftest.make <<\_ACEOF
4168 SHELL = /bin/sh
4169 all:
4170 @echo '@@@%%%=$(MAKE)=@@@%%%'
4171 _ACEOF
4172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4173 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4174 *@@@%%%=?*=@@@%%%*)
4175 eval ac_cv_prog_make_${ac_make}_set=yes;;
4176 *)
4177 eval ac_cv_prog_make_${ac_make}_set=no;;
4178 esac
4179 rm -f conftest.make
4180 fi
4181 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183 $as_echo "yes" >&6; }
4184 SET_MAKE=
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4188 SET_MAKE="MAKE=${MAKE-make}"
4189 fi
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4192 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4193 if test -z "$MKDIR_P"; then
4194 if test "${ac_cv_path_mkdir+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4199 do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_prog in mkdir gmkdir; do
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4206 'mkdir (GNU coreutils) '* | \
4207 'mkdir (coreutils) '* | \
4208 'mkdir (fileutils) '4.1*)
4209 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4210 break 3;;
4211 esac
4212 done
4213 done
4214 done
4215 IFS=$as_save_IFS
4216
4217 fi
4218
4219 test -d ./--version && rmdir ./--version
4220 if test "${ac_cv_path_mkdir+set}" = set; then
4221 MKDIR_P="$ac_cv_path_mkdir -p"
4222 else
4223 # As a last resort, use the slow shell script. Don't cache a
4224 # value for MKDIR_P within a source directory, because that will
4225 # break other packages using the cache if that directory is
4226 # removed, or if the value is a relative name.
4227 MKDIR_P="$ac_install_sh -d"
4228 fi
4229 fi
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4231 $as_echo "$MKDIR_P" >&6; }
4232
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4235 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 if test -n "$RANLIB"; then
4242 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4243 else
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253 break 2
4254 fi
4255 done
4256 done
4257 IFS=$as_save_IFS
4258
4259 fi
4260 fi
4261 RANLIB=$ac_cv_prog_RANLIB
4262 if test -n "$RANLIB"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4264 $as_echo "$RANLIB" >&6; }
4265 else
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4268 fi
4269
4270
4271 fi
4272 if test -z "$ac_cv_prog_RANLIB"; then
4273 ac_ct_RANLIB=$RANLIB
4274 # Extract the first word of "ranlib", so it can be a program name with args.
4275 set dummy ranlib; ac_word=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4279 $as_echo_n "(cached) " >&6
4280 else
4281 if test -n "$ac_ct_RANLIB"; then
4282 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291 ac_cv_prog_ac_ct_RANLIB="ranlib"
4292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 break 2
4294 fi
4295 done
4296 done
4297 IFS=$as_save_IFS
4298
4299 fi
4300 fi
4301 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4302 if test -n "$ac_ct_RANLIB"; then
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4304 $as_echo "$ac_ct_RANLIB" >&6; }
4305 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 $as_echo "no" >&6; }
4308 fi
4309
4310 if test "x$ac_ct_RANLIB" = x; then
4311 RANLIB=":"
4312 else
4313 case $cross_compiling:$ac_tool_warned in
4314 yes:)
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4317 ac_tool_warned=yes ;;
4318 esac
4319 RANLIB=$ac_ct_RANLIB
4320 fi
4321 else
4322 RANLIB="$ac_cv_prog_RANLIB"
4323 fi
4324
4325 # Extract the first word of "cflow", so it can be a program name with args.
4326 set dummy cflow; ac_word=$2
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4328 $as_echo_n "checking for $ac_word... " >&6; }
4329 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 case $CFLOW_CMD in
4333 [\\/]* | ?:[\\/]*)
4334 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4335 ;;
4336 *)
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4339 do
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4347 fi
4348 done
4349 done
4350 IFS=$as_save_IFS
4351
4352 ;;
4353 esac
4354 fi
4355 CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4356 if test -n "$CFLOW_CMD"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4358 $as_echo "$CFLOW_CMD" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4362 fi
4363
4364
4365 # Extract the first word of "cscope", so it can be a program name with args.
4366 set dummy cscope; ac_word=$2
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 $as_echo_n "checking for $ac_word... " >&6; }
4369 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4370 $as_echo_n "(cached) " >&6
4371 else
4372 case $CSCOPE_CMD in
4373 [\\/]* | ?:[\\/]*)
4374 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4375 ;;
4376 *)
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4387 fi
4388 done
4389 done
4390 IFS=$as_save_IFS
4391
4392 ;;
4393 esac
4394 fi
4395 CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4396 if test -n "$CSCOPE_CMD"; then
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4398 $as_echo "$CSCOPE_CMD" >&6; }
4399 else
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4401 $as_echo "no" >&6; }
4402 fi
4403
4404
4405
4406 ################################################################################
4407 ac_header_dirent=no
4408 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4409 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4411 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4412 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <sys/types.h>
4418 #include <$ac_hdr>
4419
4420 int
4421 main ()
4422 {
4423 if ((DIR *) 0)
4424 return 0;
4425 ;
4426 return 0;
4427 }
4428 _ACEOF
4429 if ac_fn_c_try_compile "$LINENO"; then :
4430 eval "$as_ac_Header=yes"
4431 else
4432 eval "$as_ac_Header=no"
4433 fi
4434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4435 fi
4436 eval ac_res=\$$as_ac_Header
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4438 $as_echo "$ac_res" >&6; }
4439 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4440 cat >>confdefs.h <<_ACEOF
4441 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4442 _ACEOF
4443
4444 ac_header_dirent=$ac_hdr; break
4445 fi
4446
4447 done
4448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4449 if test $ac_header_dirent = dirent.h; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4451 $as_echo_n "checking for library containing opendir... " >&6; }
4452 if test "${ac_cv_search_opendir+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4454 else
4455 ac_func_search_save_LIBS=$LIBS
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458
4459 /* Override any GCC internal prototype to avoid an error.
4460 Use char because int might match the return type of a GCC
4461 builtin and then its argument prototype would still apply. */
4462 #ifdef __cplusplus
4463 extern "C"
4464 #endif
4465 char opendir ();
4466 int
4467 main ()
4468 {
4469 return opendir ();
4470 ;
4471 return 0;
4472 }
4473 _ACEOF
4474 for ac_lib in '' dir; do
4475 if test -z "$ac_lib"; then
4476 ac_res="none required"
4477 else
4478 ac_res=-l$ac_lib
4479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4480 fi
4481 if ac_fn_c_try_link "$LINENO"; then :
4482 ac_cv_search_opendir=$ac_res
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext \
4485 conftest$ac_exeext
4486 if test "${ac_cv_search_opendir+set}" = set; then :
4487 break
4488 fi
4489 done
4490 if test "${ac_cv_search_opendir+set}" = set; then :
4491
4492 else
4493 ac_cv_search_opendir=no
4494 fi
4495 rm conftest.$ac_ext
4496 LIBS=$ac_func_search_save_LIBS
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4499 $as_echo "$ac_cv_search_opendir" >&6; }
4500 ac_res=$ac_cv_search_opendir
4501 if test "$ac_res" != no; then :
4502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4503
4504 fi
4505
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4508 $as_echo_n "checking for library containing opendir... " >&6; }
4509 if test "${ac_cv_search_opendir+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 ac_func_search_save_LIBS=$LIBS
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515
4516 /* Override any GCC internal prototype to avoid an error.
4517 Use char because int might match the return type of a GCC
4518 builtin and then its argument prototype would still apply. */
4519 #ifdef __cplusplus
4520 extern "C"
4521 #endif
4522 char opendir ();
4523 int
4524 main ()
4525 {
4526 return opendir ();
4527 ;
4528 return 0;
4529 }
4530 _ACEOF
4531 for ac_lib in '' x; do
4532 if test -z "$ac_lib"; then
4533 ac_res="none required"
4534 else
4535 ac_res=-l$ac_lib
4536 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4537 fi
4538 if ac_fn_c_try_link "$LINENO"; then :
4539 ac_cv_search_opendir=$ac_res
4540 fi
4541 rm -f core conftest.err conftest.$ac_objext \
4542 conftest$ac_exeext
4543 if test "${ac_cv_search_opendir+set}" = set; then :
4544 break
4545 fi
4546 done
4547 if test "${ac_cv_search_opendir+set}" = set; then :
4548
4549 else
4550 ac_cv_search_opendir=no
4551 fi
4552 rm conftest.$ac_ext
4553 LIBS=$ac_func_search_save_LIBS
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4556 $as_echo "$ac_cv_search_opendir" >&6; }
4557 ac_res=$ac_cv_search_opendir
4558 if test "$ac_res" != no; then :
4559 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4560
4561 fi
4562
4563 fi
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4566 $as_echo_n "checking for ANSI C header files... " >&6; }
4567 if test "${ac_cv_header_stdc+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4571 /* end confdefs.h. */
4572 #include <stdlib.h>
4573 #include <stdarg.h>
4574 #include <string.h>
4575 #include <float.h>
4576
4577 int
4578 main ()
4579 {
4580
4581 ;
4582 return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_cv_header_stdc=yes
4587 else
4588 ac_cv_header_stdc=no
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591
4592 if test $ac_cv_header_stdc = yes; then
4593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4596 #include <string.h>
4597
4598 _ACEOF
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 $EGREP "memchr" >/dev/null 2>&1; then :
4601
4602 else
4603 ac_cv_header_stdc=no
4604 fi
4605 rm -f conftest*
4606
4607 fi
4608
4609 if test $ac_cv_header_stdc = yes; then
4610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <stdlib.h>
4614
4615 _ACEOF
4616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "free" >/dev/null 2>&1; then :
4618
4619 else
4620 ac_cv_header_stdc=no
4621 fi
4622 rm -f conftest*
4623
4624 fi
4625
4626 if test $ac_cv_header_stdc = yes; then
4627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628 if test "$cross_compiling" = yes; then :
4629 :
4630 else
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4633 #include <ctype.h>
4634 #include <stdlib.h>
4635 #if ((' ' & 0x0FF) == 0x020)
4636 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4637 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4638 #else
4639 # define ISLOWER(c) \
4640 (('a' <= (c) && (c) <= 'i') \
4641 || ('j' <= (c) && (c) <= 'r') \
4642 || ('s' <= (c) && (c) <= 'z'))
4643 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4644 #endif
4645
4646 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4647 int
4648 main ()
4649 {
4650 int i;
4651 for (i = 0; i < 256; i++)
4652 if (XOR (islower (i), ISLOWER (i))
4653 || toupper (i) != TOUPPER (i))
4654 return 2;
4655 return 0;
4656 }
4657 _ACEOF
4658 if ac_fn_c_try_run "$LINENO"; then :
4659
4660 else
4661 ac_cv_header_stdc=no
4662 fi
4663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4664 conftest.$ac_objext conftest.beam conftest.$ac_ext
4665 fi
4666
4667 fi
4668 fi
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4670 $as_echo "$ac_cv_header_stdc" >&6; }
4671 if test $ac_cv_header_stdc = yes; then
4672
4673 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4674
4675 fi
4676
4677 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4679 inttypes.h stdint.h unistd.h
4680 do :
4681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4682 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4683 "
4684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4685 cat >>confdefs.h <<_ACEOF
4686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4687 _ACEOF
4688
4689 fi
4690
4691 done
4692
4693
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4695 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4696 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h. */
4701 #include <sys/types.h>
4702 int
4703 main ()
4704 {
4705 return makedev(0, 0);
4706 ;
4707 return 0;
4708 }
4709 _ACEOF
4710 if ac_fn_c_try_link "$LINENO"; then :
4711 ac_cv_header_sys_types_h_makedev=yes
4712 else
4713 ac_cv_header_sys_types_h_makedev=no
4714 fi
4715 rm -f core conftest.err conftest.$ac_objext \
4716 conftest$ac_exeext conftest.$ac_ext
4717
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4720 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4721
4722 if test $ac_cv_header_sys_types_h_makedev = no; then
4723 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4724 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4725
4726 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4727
4728 fi
4729
4730
4731
4732 if test $ac_cv_header_sys_mkdev_h = no; then
4733 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4734 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4735
4736 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4737
4738 fi
4739
4740
4741 fi
4742 fi
4743
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4745 $as_echo_n "checking for ANSI C header files... " >&6; }
4746 if test "${ac_cv_header_stdc+set}" = set; then :
4747 $as_echo_n "(cached) " >&6
4748 else
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4751 #include <stdlib.h>
4752 #include <stdarg.h>
4753 #include <string.h>
4754 #include <float.h>
4755
4756 int
4757 main ()
4758 {
4759
4760 ;
4761 return 0;
4762 }
4763 _ACEOF
4764 if ac_fn_c_try_compile "$LINENO"; then :
4765 ac_cv_header_stdc=yes
4766 else
4767 ac_cv_header_stdc=no
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770
4771 if test $ac_cv_header_stdc = yes; then
4772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <string.h>
4776
4777 _ACEOF
4778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4779 $EGREP "memchr" >/dev/null 2>&1; then :
4780
4781 else
4782 ac_cv_header_stdc=no
4783 fi
4784 rm -f conftest*
4785
4786 fi
4787
4788 if test $ac_cv_header_stdc = yes; then
4789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <stdlib.h>
4793
4794 _ACEOF
4795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4796 $EGREP "free" >/dev/null 2>&1; then :
4797
4798 else
4799 ac_cv_header_stdc=no
4800 fi
4801 rm -f conftest*
4802
4803 fi
4804
4805 if test $ac_cv_header_stdc = yes; then
4806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4807 if test "$cross_compiling" = yes; then :
4808 :
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 #include <ctype.h>
4813 #include <stdlib.h>
4814 #if ((' ' & 0x0FF) == 0x020)
4815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4817 #else
4818 # define ISLOWER(c) \
4819 (('a' <= (c) && (c) <= 'i') \
4820 || ('j' <= (c) && (c) <= 'r') \
4821 || ('s' <= (c) && (c) <= 'z'))
4822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4823 #endif
4824
4825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4826 int
4827 main ()
4828 {
4829 int i;
4830 for (i = 0; i < 256; i++)
4831 if (XOR (islower (i), ISLOWER (i))
4832 || toupper (i) != TOUPPER (i))
4833 return 2;
4834 return 0;
4835 }
4836 _ACEOF
4837 if ac_fn_c_try_run "$LINENO"; then :
4838
4839 else
4840 ac_cv_header_stdc=no
4841 fi
4842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4843 conftest.$ac_objext conftest.beam conftest.$ac_ext
4844 fi
4845
4846 fi
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4849 $as_echo "$ac_cv_header_stdc" >&6; }
4850 if test $ac_cv_header_stdc = yes; then
4851
4852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4853
4854 fi
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4857 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4858 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4863 #include <sys/types.h>
4864 #include <sys/wait.h>
4865 #ifndef WEXITSTATUS
4866 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4867 #endif
4868 #ifndef WIFEXITED
4869 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4870 #endif
4871
4872 int
4873 main ()
4874 {
4875 int s;
4876 wait (&s);
4877 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4878 ;
4879 return 0;
4880 }
4881 _ACEOF
4882 if ac_fn_c_try_compile "$LINENO"; then :
4883 ac_cv_header_sys_wait_h=yes
4884 else
4885 ac_cv_header_sys_wait_h=no
4886 fi
4887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4890 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4891 if test $ac_cv_header_sys_wait_h = yes; then
4892
4893 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4894
4895 fi
4896
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4898 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4899 if test "${ac_cv_header_time+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <sys/types.h>
4905 #include <sys/time.h>
4906 #include <time.h>
4907
4908 int
4909 main ()
4910 {
4911 if ((struct tm *) 0)
4912 return 0;
4913 ;
4914 return 0;
4915 }
4916 _ACEOF
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_header_time=yes
4919 else
4920 ac_cv_header_time=no
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 fi
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4925 $as_echo "$ac_cv_header_time" >&6; }
4926 if test $ac_cv_header_time = yes; then
4927
4928 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4929
4930 fi
4931
4932
4933 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4934 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4935 sys/wait.h time.h
4936 do :
4937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4939 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4940 cat >>confdefs.h <<_ACEOF
4941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4942 _ACEOF
4943
4944 else
4945 as_fn_error $? "bailing out" "$LINENO" 5
4946 fi
4947
4948 done
4949
4950
4951 case "$host_os" in
4952 linux*)
4953 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4954 do :
4955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4956 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4957 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4958 cat >>confdefs.h <<_ACEOF
4959 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4960 _ACEOF
4961
4962 else
4963 as_fn_error $? "bailing out" "$LINENO" 5
4964 fi
4965
4966 done
4967 ;;
4968 darwin*)
4969 for ac_header in machine/endian.h sys/disk.h
4970 do :
4971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4973 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4974 cat >>confdefs.h <<_ACEOF
4975 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4976 _ACEOF
4977
4978 else
4979 as_fn_error $? "bailing out" "$LINENO" 5
4980 fi
4981
4982 done
4983 ;;
4984 esac
4985
4986 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4987 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4988 sys/types.h unistd.h
4989 do :
4990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4992 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4993 cat >>confdefs.h <<_ACEOF
4994 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4995 _ACEOF
4996
4997 else
4998 as_fn_error $? "bailing out" "$LINENO" 5
4999 fi
5000
5001 done
5002
5003 for ac_header in termios.h sys/statvfs.h
5004 do :
5005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5007 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5008 cat >>confdefs.h <<_ACEOF
5009 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5010 _ACEOF
5011
5012 fi
5013
5014 done
5015
5016
5017 ################################################################################
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5019 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5020 if test "${ac_cv_c_const+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025
5026 int
5027 main ()
5028 {
5029 /* FIXME: Include the comments suggested by Paul. */
5030 #ifndef __cplusplus
5031 /* Ultrix mips cc rejects this. */
5032 typedef int charset[2];
5033 const charset cs;
5034 /* SunOS 4.1.1 cc rejects this. */
5035 char const *const *pcpcc;
5036 char **ppc;
5037 /* NEC SVR4.0.2 mips cc rejects this. */
5038 struct point {int x, y;};
5039 static struct point const zero = {0,0};
5040 /* AIX XL C 1.02.0.0 rejects this.
5041 It does not let you subtract one const X* pointer from another in
5042 an arm of an if-expression whose if-part is not a constant
5043 expression */
5044 const char *g = "string";
5045 pcpcc = &g + (g ? g-g : 0);
5046 /* HPUX 7.0 cc rejects these. */
5047 ++pcpcc;
5048 ppc = (char**) pcpcc;
5049 pcpcc = (char const *const *) ppc;
5050 { /* SCO 3.2v4 cc rejects this. */
5051 char *t;
5052 char const *s = 0 ? (char *) 0 : (char const *) 0;
5053
5054 *t++ = 0;
5055 if (s) return 0;
5056 }
5057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5058 int x[] = {25, 17};
5059 const int *foo = &x[0];
5060 ++foo;
5061 }
5062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5063 typedef const int *iptr;
5064 iptr p = 0;
5065 ++p;
5066 }
5067 { /* AIX XL C 1.02.0.0 rejects this saying
5068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5069 struct s { int j; const int *ap[3]; };
5070 struct s *b; b->j = 5;
5071 }
5072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5073 const int foo = 10;
5074 if (!foo) return 0;
5075 }
5076 return !cs[0] && !zero.x;
5077 #endif
5078
5079 ;
5080 return 0;
5081 }
5082 _ACEOF
5083 if ac_fn_c_try_compile "$LINENO"; then :
5084 ac_cv_c_const=yes
5085 else
5086 ac_cv_c_const=no
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5091 $as_echo "$ac_cv_c_const" >&6; }
5092 if test $ac_cv_c_const = no; then
5093
5094 $as_echo "#define const /**/" >>confdefs.h
5095
5096 fi
5097
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5099 $as_echo_n "checking for inline... " >&6; }
5100 if test "${ac_cv_c_inline+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 ac_cv_c_inline=no
5104 for ac_kw in inline __inline__ __inline; do
5105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106 /* end confdefs.h. */
5107 #ifndef __cplusplus
5108 typedef int foo_t;
5109 static $ac_kw foo_t static_foo () {return 0; }
5110 $ac_kw foo_t foo () {return 0; }
5111 #endif
5112
5113 _ACEOF
5114 if ac_fn_c_try_compile "$LINENO"; then :
5115 ac_cv_c_inline=$ac_kw
5116 fi
5117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5118 test "$ac_cv_c_inline" != no && break
5119 done
5120
5121 fi
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5123 $as_echo "$ac_cv_c_inline" >&6; }
5124
5125 case $ac_cv_c_inline in
5126 inline | yes) ;;
5127 *)
5128 case $ac_cv_c_inline in
5129 no) ac_val=;;
5130 *) ac_val=$ac_cv_c_inline;;
5131 esac
5132 cat >>confdefs.h <<_ACEOF
5133 #ifndef __cplusplus
5134 #define inline $ac_val
5135 #endif
5136 _ACEOF
5137 ;;
5138 esac
5139
5140 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5141 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define HAVE_STRUCT_STAT_ST_RDEV 1
5145 _ACEOF
5146
5147
5148 fi
5149
5150 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5151 if test "x$ac_cv_type_off_t" = x""yes; then :
5152
5153 else
5154
5155 cat >>confdefs.h <<_ACEOF
5156 #define off_t long int
5157 _ACEOF
5158
5159 fi
5160
5161 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5162 if test "x$ac_cv_type_pid_t" = x""yes; then :
5163
5164 else
5165
5166 cat >>confdefs.h <<_ACEOF
5167 #define pid_t int
5168 _ACEOF
5169
5170 fi
5171
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5173 $as_echo_n "checking return type of signal handlers... " >&6; }
5174 if test "${ac_cv_type_signal+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h. */
5179 #include <sys/types.h>
5180 #include <signal.h>
5181
5182 int
5183 main ()
5184 {
5185 return *(signal (0, 0)) (0) == 1;
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"; then :
5191 ac_cv_type_signal=int
5192 else
5193 ac_cv_type_signal=void
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5198 $as_echo "$ac_cv_type_signal" >&6; }
5199
5200 cat >>confdefs.h <<_ACEOF
5201 #define RETSIGTYPE $ac_cv_type_signal
5202 _ACEOF
5203
5204
5205 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5206 if test "x$ac_cv_type_size_t" = x""yes; then :
5207
5208 else
5209
5210 cat >>confdefs.h <<_ACEOF
5211 #define size_t unsigned int
5212 _ACEOF
5213
5214 fi
5215
5216 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5217 if test "x$ac_cv_type_mode_t" = x""yes; then :
5218
5219 else
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define mode_t int
5223 _ACEOF
5224
5225 fi
5226
5227 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5228 case $ac_cv_c_int8_t in #(
5229 no|yes) ;; #(
5230 *)
5231
5232 cat >>confdefs.h <<_ACEOF
5233 #define int8_t $ac_cv_c_int8_t
5234 _ACEOF
5235 ;;
5236 esac
5237
5238 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5239 case $ac_cv_c_int16_t in #(
5240 no|yes) ;; #(
5241 *)
5242
5243 cat >>confdefs.h <<_ACEOF
5244 #define int16_t $ac_cv_c_int16_t
5245 _ACEOF
5246 ;;
5247 esac
5248
5249 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5250 case $ac_cv_c_int32_t in #(
5251 no|yes) ;; #(
5252 *)
5253
5254 cat >>confdefs.h <<_ACEOF
5255 #define int32_t $ac_cv_c_int32_t
5256 _ACEOF
5257 ;;
5258 esac
5259
5260 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5261 case $ac_cv_c_int64_t in #(
5262 no|yes) ;; #(
5263 *)
5264
5265 cat >>confdefs.h <<_ACEOF
5266 #define int64_t $ac_cv_c_int64_t
5267 _ACEOF
5268 ;;
5269 esac
5270
5271 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5272 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5273
5274 else
5275
5276 cat >>confdefs.h <<_ACEOF
5277 #define ssize_t int
5278 _ACEOF
5279
5280 fi
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5283 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5284 if test "${ac_cv_type_uid_t+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #include <sys/types.h>
5290
5291 _ACEOF
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "uid_t" >/dev/null 2>&1; then :
5294 ac_cv_type_uid_t=yes
5295 else
5296 ac_cv_type_uid_t=no
5297 fi
5298 rm -f conftest*
5299
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5302 $as_echo "$ac_cv_type_uid_t" >&6; }
5303 if test $ac_cv_type_uid_t = no; then
5304
5305 $as_echo "#define uid_t int" >>confdefs.h
5306
5307
5308 $as_echo "#define gid_t int" >>confdefs.h
5309
5310 fi
5311
5312 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5313 case $ac_cv_c_uint8_t in #(
5314 no|yes) ;; #(
5315 *)
5316
5317 $as_echo "#define _UINT8_T 1" >>confdefs.h
5318
5319
5320 cat >>confdefs.h <<_ACEOF
5321 #define uint8_t $ac_cv_c_uint8_t
5322 _ACEOF
5323 ;;
5324 esac
5325
5326 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5327 case $ac_cv_c_uint16_t in #(
5328 no|yes) ;; #(
5329 *)
5330
5331
5332 cat >>confdefs.h <<_ACEOF
5333 #define uint16_t $ac_cv_c_uint16_t
5334 _ACEOF
5335 ;;
5336 esac
5337
5338 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5339 case $ac_cv_c_uint32_t in #(
5340 no|yes) ;; #(
5341 *)
5342
5343 $as_echo "#define _UINT32_T 1" >>confdefs.h
5344
5345
5346 cat >>confdefs.h <<_ACEOF
5347 #define uint32_t $ac_cv_c_uint32_t
5348 _ACEOF
5349 ;;
5350 esac
5351
5352 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5353 case $ac_cv_c_uint64_t in #(
5354 no|yes) ;; #(
5355 *)
5356
5357 $as_echo "#define _UINT64_T 1" >>confdefs.h
5358
5359
5360 cat >>confdefs.h <<_ACEOF
5361 #define uint64_t $ac_cv_c_uint64_t
5362 _ACEOF
5363 ;;
5364 esac
5365
5366 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5367 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5368
5369 cat >>confdefs.h <<_ACEOF
5370 #define HAVE_STRUCT_STAT_ST_RDEV 1
5371 _ACEOF
5372
5373
5374 fi
5375
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5377 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5378 if test "${ac_cv_struct_tm+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5383 #include <sys/types.h>
5384 #include <time.h>
5385
5386 int
5387 main ()
5388 {
5389 struct tm tm;
5390 int *p = &tm.tm_sec;
5391 return !p;
5392 ;
5393 return 0;
5394 }
5395 _ACEOF
5396 if ac_fn_c_try_compile "$LINENO"; then :
5397 ac_cv_struct_tm=time.h
5398 else
5399 ac_cv_struct_tm=sys/time.h
5400 fi
5401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 fi
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5404 $as_echo "$ac_cv_struct_tm" >&6; }
5405 if test $ac_cv_struct_tm = sys/time.h; then
5406
5407 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5408
5409 fi
5410
5411
5412 ################################################################################
5413 for ac_func in ftruncate gethostname getpagesize \
5414 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5415 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5416 strstr strtol strtoul uname
5417 do :
5418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5419 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5420 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5421 cat >>confdefs.h <<_ACEOF
5422 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5423 _ACEOF
5424
5425 else
5426 as_fn_error $? "bailing out" "$LINENO" 5
5427 fi
5428 done
5429
5430 for ac_func in siginterrupt
5431 do :
5432 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5433 if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5434 cat >>confdefs.h <<_ACEOF
5435 #define HAVE_SIGINTERRUPT 1
5436 _ACEOF
5437
5438 fi
5439 done
5440
5441 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5442 # for constant arguments. Useless!
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5444 $as_echo_n "checking for working alloca.h... " >&6; }
5445 if test "${ac_cv_working_alloca_h+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <alloca.h>
5451 int
5452 main ()
5453 {
5454 char *p = (char *) alloca (2 * sizeof (int));
5455 if (p) return 0;
5456 ;
5457 return 0;
5458 }
5459 _ACEOF
5460 if ac_fn_c_try_link "$LINENO"; then :
5461 ac_cv_working_alloca_h=yes
5462 else
5463 ac_cv_working_alloca_h=no
5464 fi
5465 rm -f core conftest.err conftest.$ac_objext \
5466 conftest$ac_exeext conftest.$ac_ext
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5469 $as_echo "$ac_cv_working_alloca_h" >&6; }
5470 if test $ac_cv_working_alloca_h = yes; then
5471
5472 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5473
5474 fi
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5477 $as_echo_n "checking for alloca... " >&6; }
5478 if test "${ac_cv_func_alloca_works+set}" = set; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 #ifdef __GNUC__
5484 # define alloca __builtin_alloca
5485 #else
5486 # ifdef _MSC_VER
5487 # include <malloc.h>
5488 # define alloca _alloca
5489 # else
5490 # ifdef HAVE_ALLOCA_H
5491 # include <alloca.h>
5492 # else
5493 # ifdef _AIX
5494 #pragma alloca
5495 # else
5496 # ifndef alloca /* predefined by HP cc +Olibcalls */
5497 char *alloca ();
5498 # endif
5499 # endif
5500 # endif
5501 # endif
5502 #endif
5503
5504 int
5505 main ()
5506 {
5507 char *p = (char *) alloca (1);
5508 if (p) return 0;
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_link "$LINENO"; then :
5514 ac_cv_func_alloca_works=yes
5515 else
5516 ac_cv_func_alloca_works=no
5517 fi
5518 rm -f core conftest.err conftest.$ac_objext \
5519 conftest$ac_exeext conftest.$ac_ext
5520 fi
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5522 $as_echo "$ac_cv_func_alloca_works" >&6; }
5523
5524 if test $ac_cv_func_alloca_works = yes; then
5525
5526 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5527
5528 else
5529 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5530 # that cause trouble. Some versions do not even contain alloca or
5531 # contain a buggy version. If you still want to use their alloca,
5532 # use ar to extract alloca.o from them instead of compiling alloca.c.
5533
5534 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5535
5536 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5537
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5540 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5541 if test "${ac_cv_os_cray+set}" = set; then :
5542 $as_echo_n "(cached) " >&6
5543 else
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5546 #if defined CRAY && ! defined CRAY2
5547 webecray
5548 #else
5549 wenotbecray
5550 #endif
5551
5552 _ACEOF
5553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5554 $EGREP "webecray" >/dev/null 2>&1; then :
5555 ac_cv_os_cray=yes
5556 else
5557 ac_cv_os_cray=no
5558 fi
5559 rm -f conftest*
5560
5561 fi
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5563 $as_echo "$ac_cv_os_cray" >&6; }
5564 if test $ac_cv_os_cray = yes; then
5565 for ac_func in _getb67 GETB67 getb67; do
5566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5567 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5568 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5569
5570 cat >>confdefs.h <<_ACEOF
5571 #define CRAY_STACKSEG_END $ac_func
5572 _ACEOF
5573
5574 break
5575 fi
5576
5577 done
5578 fi
5579
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5581 $as_echo_n "checking stack direction for C alloca... " >&6; }
5582 if test "${ac_cv_c_stack_direction+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test "$cross_compiling" = yes; then :
5586 ac_cv_c_stack_direction=0
5587 else
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 $ac_includes_default
5591 int
5592 find_stack_direction ()
5593 {
5594 static char *addr = 0;
5595 auto char dummy;
5596 if (addr == 0)
5597 {
5598 addr = &dummy;
5599 return find_stack_direction ();
5600 }
5601 else
5602 return (&dummy > addr) ? 1 : -1;
5603 }
5604
5605 int
5606 main ()
5607 {
5608 return find_stack_direction () < 0;
5609 }
5610 _ACEOF
5611 if ac_fn_c_try_run "$LINENO"; then :
5612 ac_cv_c_stack_direction=1
5613 else
5614 ac_cv_c_stack_direction=-1
5615 fi
5616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5617 conftest.$ac_objext conftest.beam conftest.$ac_ext
5618 fi
5619
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5622 $as_echo "$ac_cv_c_stack_direction" >&6; }
5623 cat >>confdefs.h <<_ACEOF
5624 #define STACK_DIRECTION $ac_cv_c_stack_direction
5625 _ACEOF
5626
5627
5628 fi
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5631 $as_echo_n "checking whether closedir returns void... " >&6; }
5632 if test "${ac_cv_func_closedir_void+set}" = set; then :
5633 $as_echo_n "(cached) " >&6
5634 else
5635 if test "$cross_compiling" = yes; then :
5636 ac_cv_func_closedir_void=yes
5637 else
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 #include <$ac_header_dirent>
5642 #ifndef __cplusplus
5643 int closedir ();
5644 #endif
5645
5646 int
5647 main ()
5648 {
5649 return closedir (opendir (".")) != 0;
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 if ac_fn_c_try_run "$LINENO"; then :
5655 ac_cv_func_closedir_void=no
5656 else
5657 ac_cv_func_closedir_void=yes
5658 fi
5659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5660 conftest.$ac_objext conftest.beam conftest.$ac_ext
5661 fi
5662
5663 fi
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5665 $as_echo "$ac_cv_func_closedir_void" >&6; }
5666 if test $ac_cv_func_closedir_void = yes; then
5667
5668 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5669
5670 fi
5671
5672 for ac_header in unistd.h
5673 do :
5674 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5675 if test "x$ac_cv_header_unistd_h" = x""yes; then :
5676 cat >>confdefs.h <<_ACEOF
5677 #define HAVE_UNISTD_H 1
5678 _ACEOF
5679
5680 fi
5681
5682 done
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5685 $as_echo_n "checking for working chown... " >&6; }
5686 if test "${ac_cv_func_chown_works+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if test "$cross_compiling" = yes; then :
5690 ac_cv_func_chown_works=no
5691 else
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 $ac_includes_default
5695 #include <fcntl.h>
5696
5697 int
5698 main ()
5699 {
5700 char *f = "conftest.chown";
5701 struct stat before, after;
5702
5703 if (creat (f, 0600) < 0)
5704 return 1;
5705 if (stat (f, &before) < 0)
5706 return 1;
5707 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5708 return 1;
5709 if (stat (f, &after) < 0)
5710 return 1;
5711 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 if ac_fn_c_try_run "$LINENO"; then :
5718 ac_cv_func_chown_works=yes
5719 else
5720 ac_cv_func_chown_works=no
5721 fi
5722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5723 conftest.$ac_objext conftest.beam conftest.$ac_ext
5724 fi
5725
5726 rm -f conftest.chown
5727
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5730 $as_echo "$ac_cv_func_chown_works" >&6; }
5731 if test $ac_cv_func_chown_works = yes; then
5732
5733 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5734
5735 fi
5736
5737 for ac_header in vfork.h
5738 do :
5739 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5740 if test "x$ac_cv_header_vfork_h" = x""yes; then :
5741 cat >>confdefs.h <<_ACEOF
5742 #define HAVE_VFORK_H 1
5743 _ACEOF
5744
5745 fi
5746
5747 done
5748
5749 for ac_func in fork vfork
5750 do :
5751 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5752 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5753 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5754 cat >>confdefs.h <<_ACEOF
5755 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5756 _ACEOF
5757
5758 fi
5759 done
5760
5761 if test "x$ac_cv_func_fork" = xyes; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5763 $as_echo_n "checking for working fork... " >&6; }
5764 if test "${ac_cv_func_fork_works+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 if test "$cross_compiling" = yes; then :
5768 ac_cv_func_fork_works=cross
5769 else
5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 $ac_includes_default
5773 int
5774 main ()
5775 {
5776
5777 /* By Ruediger Kuhlmann. */
5778 return fork () < 0;
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_run "$LINENO"; then :
5785 ac_cv_func_fork_works=yes
5786 else
5787 ac_cv_func_fork_works=no
5788 fi
5789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5790 conftest.$ac_objext conftest.beam conftest.$ac_ext
5791 fi
5792
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5795 $as_echo "$ac_cv_func_fork_works" >&6; }
5796
5797 else
5798 ac_cv_func_fork_works=$ac_cv_func_fork
5799 fi
5800 if test "x$ac_cv_func_fork_works" = xcross; then
5801 case $host in
5802 *-*-amigaos* | *-*-msdosdjgpp*)
5803 # Override, as these systems have only a dummy fork() stub
5804 ac_cv_func_fork_works=no
5805 ;;
5806 *)
5807 ac_cv_func_fork_works=yes
5808 ;;
5809 esac
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5811 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5812 fi
5813 ac_cv_func_vfork_works=$ac_cv_func_vfork
5814 if test "x$ac_cv_func_vfork" = xyes; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5816 $as_echo_n "checking for working vfork... " >&6; }
5817 if test "${ac_cv_func_vfork_works+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 if test "$cross_compiling" = yes; then :
5821 ac_cv_func_vfork_works=cross
5822 else
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h. */
5825 /* Thanks to Paul Eggert for this test. */
5826 $ac_includes_default
5827 #include <sys/wait.h>
5828 #ifdef HAVE_VFORK_H
5829 # include <vfork.h>
5830 #endif
5831 /* On some sparc systems, changes by the child to local and incoming
5832 argument registers are propagated back to the parent. The compiler
5833 is told about this with #include <vfork.h>, but some compilers
5834 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5835 static variable whose address is put into a register that is
5836 clobbered by the vfork. */
5837 static void
5838 #ifdef __cplusplus
5839 sparc_address_test (int arg)
5840 # else
5841 sparc_address_test (arg) int arg;
5842 #endif
5843 {
5844 static pid_t child;
5845 if (!child) {
5846 child = vfork ();
5847 if (child < 0) {
5848 perror ("vfork");
5849 _exit(2);
5850 }
5851 if (!child) {
5852 arg = getpid();
5853 write(-1, "", 0);
5854 _exit (arg);
5855 }
5856 }
5857 }
5858
5859 int
5860 main ()
5861 {
5862 pid_t parent = getpid ();
5863 pid_t child;
5864
5865 sparc_address_test (0);
5866
5867 child = vfork ();
5868
5869 if (child == 0) {
5870 /* Here is another test for sparc vfork register problems. This
5871 test uses lots of local variables, at least as many local
5872 variables as main has allocated so far including compiler
5873 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5874 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5875 reuse the register of parent for one of the local variables,
5876 since it will think that parent can't possibly be used any more
5877 in this routine. Assigning to the local variable will thus
5878 munge parent in the parent process. */
5879 pid_t
5880 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5881 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5882 /* Convince the compiler that p..p7 are live; otherwise, it might
5883 use the same hardware register for all 8 local variables. */
5884 if (p != p1 || p != p2 || p != p3 || p != p4
5885 || p != p5 || p != p6 || p != p7)
5886 _exit(1);
5887
5888 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5889 from child file descriptors. If the child closes a descriptor
5890 before it execs or exits, this munges the parent's descriptor
5891 as well. Test for this by closing stdout in the child. */
5892 _exit(close(fileno(stdout)) != 0);
5893 } else {
5894 int status;
5895 struct stat st;
5896
5897 while (wait(&status) != child)
5898 ;
5899 return (
5900 /* Was there some problem with vforking? */
5901 child < 0
5902
5903 /* Did the child fail? (This shouldn't happen.) */
5904 || status
5905
5906 /* Did the vfork/compiler bug occur? */
5907 || parent != getpid()
5908
5909 /* Did the file descriptor bug occur? */
5910 || fstat(fileno(stdout), &st) != 0
5911 );
5912 }
5913 }
5914 _ACEOF
5915 if ac_fn_c_try_run "$LINENO"; then :
5916 ac_cv_func_vfork_works=yes
5917 else
5918 ac_cv_func_vfork_works=no
5919 fi
5920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5921 conftest.$ac_objext conftest.beam conftest.$ac_ext
5922 fi
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5926 $as_echo "$ac_cv_func_vfork_works" >&6; }
5927
5928 fi;
5929 if test "x$ac_cv_func_fork_works" = xcross; then
5930 ac_cv_func_vfork_works=$ac_cv_func_vfork
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5932 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5933 fi
5934
5935 if test "x$ac_cv_func_vfork_works" = xyes; then
5936
5937 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5938
5939 else
5940
5941 $as_echo "#define vfork fork" >>confdefs.h
5942
5943 fi
5944 if test "x$ac_cv_func_fork_works" = xyes; then
5945
5946 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5947
5948 fi
5949
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5951 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5952 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 rm -f conftest.sym conftest.file
5956 echo >conftest.file
5957 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5958 if test "$cross_compiling" = yes; then :
5959 ac_cv_func_lstat_dereferences_slashed_symlink=no
5960 else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5963 $ac_includes_default
5964 int
5965 main ()
5966 {
5967 struct stat sbuf;
5968 /* Linux will dereference the symlink and fail, as required by POSIX.
5969 That is better in the sense that it means we will not
5970 have to compile and use the lstat wrapper. */
5971 return lstat ("conftest.sym/", &sbuf) == 0;
5972 ;
5973 return 0;
5974 }
5975 _ACEOF
5976 if ac_fn_c_try_run "$LINENO"; then :
5977 ac_cv_func_lstat_dereferences_slashed_symlink=yes
5978 else
5979 ac_cv_func_lstat_dereferences_slashed_symlink=no
5980 fi
5981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5982 conftest.$ac_objext conftest.beam conftest.$ac_ext
5983 fi
5984
5985 else
5986 # If the `ln -s' command failed, then we probably don't even
5987 # have an lstat function.
5988 ac_cv_func_lstat_dereferences_slashed_symlink=no
5989 fi
5990 rm -f conftest.sym conftest.file
5991
5992 fi
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5994 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5995
5996 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5997
5998 cat >>confdefs.h <<_ACEOF
5999 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6000 _ACEOF
6001
6002
6003 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6004 case " $LIBOBJS " in
6005 *" lstat.$ac_objext "* ) ;;
6006 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6007 ;;
6008 esac
6009
6010 fi
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6013 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6014 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test "$cross_compiling" = yes; then :
6018 ac_cv_func_lstat_empty_string_bug=yes
6019 else
6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6022 $ac_includes_default
6023 int
6024 main ()
6025 {
6026 struct stat sbuf;
6027 return lstat ("", &sbuf) == 0;
6028 ;
6029 return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_c_try_run "$LINENO"; then :
6033 ac_cv_func_lstat_empty_string_bug=no
6034 else
6035 ac_cv_func_lstat_empty_string_bug=yes
6036 fi
6037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6038 conftest.$ac_objext conftest.beam conftest.$ac_ext
6039 fi
6040
6041 fi
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6043 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6044 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6045 case " $LIBOBJS " in
6046 *" lstat.$ac_objext "* ) ;;
6047 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6048 ;;
6049 esac
6050
6051
6052 cat >>confdefs.h <<_ACEOF
6053 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6054 _ACEOF
6055
6056 fi
6057
6058 for ac_header in stdlib.h
6059 do :
6060 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6061 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6062 cat >>confdefs.h <<_ACEOF
6063 #define HAVE_STDLIB_H 1
6064 _ACEOF
6065
6066 fi
6067
6068 done
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6071 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6072 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test "$cross_compiling" = yes; then :
6076 ac_cv_func_malloc_0_nonnull=no
6077 else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6081 # include <stdlib.h>
6082 #else
6083 char *malloc ();
6084 #endif
6085
6086 int
6087 main ()
6088 {
6089 return ! malloc (0);
6090 ;
6091 return 0;
6092 }
6093 _ACEOF
6094 if ac_fn_c_try_run "$LINENO"; then :
6095 ac_cv_func_malloc_0_nonnull=yes
6096 else
6097 ac_cv_func_malloc_0_nonnull=no
6098 fi
6099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6100 conftest.$ac_objext conftest.beam conftest.$ac_ext
6101 fi
6102
6103 fi
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6105 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6106 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6107
6108 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6109
6110 else
6111 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6112
6113 case " $LIBOBJS " in
6114 *" malloc.$ac_objext "* ) ;;
6115 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6116 ;;
6117 esac
6118
6119
6120 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6121
6122 fi
6123
6124
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6126 $as_echo_n "checking for working memcmp... " >&6; }
6127 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if test "$cross_compiling" = yes; then :
6131 ac_cv_func_memcmp_working=no
6132 else
6133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 $ac_includes_default
6136 int
6137 main ()
6138 {
6139
6140 /* Some versions of memcmp are not 8-bit clean. */
6141 char c0 = '\100', c1 = '\200', c2 = '\201';
6142 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6143 return 1;
6144
6145 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6146 or more and with at least one buffer not starting on a 4-byte boundary.
6147 William Lewis provided this test program. */
6148 {
6149 char foo[21];
6150 char bar[21];
6151 int i;
6152 for (i = 0; i < 4; i++)
6153 {
6154 char *a = foo + i;
6155 char *b = bar + i;
6156 strcpy (a, "--------01111111");
6157 strcpy (b, "--------10000000");
6158 if (memcmp (a, b, 16) >= 0)
6159 return 1;
6160 }
6161 return 0;
6162 }
6163
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 if ac_fn_c_try_run "$LINENO"; then :
6169 ac_cv_func_memcmp_working=yes
6170 else
6171 ac_cv_func_memcmp_working=no
6172 fi
6173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6174 conftest.$ac_objext conftest.beam conftest.$ac_ext
6175 fi
6176
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6179 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6180 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6181 *" memcmp.$ac_objext "* ) ;;
6182 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6183 ;;
6184 esac
6185
6186
6187
6188
6189
6190 for ac_header in $ac_header_list
6191 do :
6192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6194 "
6195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6196 cat >>confdefs.h <<_ACEOF
6197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198 _ACEOF
6199
6200 fi
6201
6202 done
6203
6204
6205
6206
6207
6208
6209
6210
6211 for ac_func in getpagesize
6212 do :
6213 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6214 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define HAVE_GETPAGESIZE 1
6217 _ACEOF
6218
6219 fi
6220 done
6221
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6223 $as_echo_n "checking for working mmap... " >&6; }
6224 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 if test "$cross_compiling" = yes; then :
6228 ac_cv_func_mmap_fixed_mapped=no
6229 else
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233 /* malloc might have been renamed as rpl_malloc. */
6234 #undef malloc
6235
6236 /* Thanks to Mike Haertel and Jim Avera for this test.
6237 Here is a matrix of mmap possibilities:
6238 mmap private not fixed
6239 mmap private fixed at somewhere currently unmapped
6240 mmap private fixed at somewhere already mapped
6241 mmap shared not fixed
6242 mmap shared fixed at somewhere currently unmapped
6243 mmap shared fixed at somewhere already mapped
6244 For private mappings, we should verify that changes cannot be read()
6245 back from the file, nor mmap's back from the file at a different
6246 address. (There have been systems where private was not correctly
6247 implemented like the infamous i386 svr4.0, and systems where the
6248 VM page cache was not coherent with the file system buffer cache
6249 like early versions of FreeBSD and possibly contemporary NetBSD.)
6250 For shared mappings, we should conversely verify that changes get
6251 propagated back to all the places they're supposed to be.
6252
6253 Grep wants private fixed already mapped.
6254 The main things grep needs to know about mmap are:
6255 * does it exist and is it safe to write into the mmap'd area
6256 * how to use it (BSD variants) */
6257
6258 #include <fcntl.h>
6259 #include <sys/mman.h>
6260
6261 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6262 char *malloc ();
6263 #endif
6264
6265 /* This mess was copied from the GNU getpagesize.h. */
6266 #ifndef HAVE_GETPAGESIZE
6267 # ifdef _SC_PAGESIZE
6268 # define getpagesize() sysconf(_SC_PAGESIZE)
6269 # else /* no _SC_PAGESIZE */
6270 # ifdef HAVE_SYS_PARAM_H
6271 # include <sys/param.h>
6272 # ifdef EXEC_PAGESIZE
6273 # define getpagesize() EXEC_PAGESIZE
6274 # else /* no EXEC_PAGESIZE */
6275 # ifdef NBPG
6276 # define getpagesize() NBPG * CLSIZE
6277 # ifndef CLSIZE
6278 # define CLSIZE 1
6279 # endif /* no CLSIZE */
6280 # else /* no NBPG */
6281 # ifdef NBPC
6282 # define getpagesize() NBPC
6283 # else /* no NBPC */
6284 # ifdef PAGESIZE
6285 # define getpagesize() PAGESIZE
6286 # endif /* PAGESIZE */
6287 # endif /* no NBPC */
6288 # endif /* no NBPG */
6289 # endif /* no EXEC_PAGESIZE */
6290 # else /* no HAVE_SYS_PARAM_H */
6291 # define getpagesize() 8192 /* punt totally */
6292 # endif /* no HAVE_SYS_PARAM_H */
6293 # endif /* no _SC_PAGESIZE */
6294
6295 #endif /* no HAVE_GETPAGESIZE */
6296
6297 int
6298 main ()
6299 {
6300 char *data, *data2, *data3;
6301 const char *cdata2;
6302 int i, pagesize;
6303 int fd, fd2;
6304
6305 pagesize = getpagesize ();
6306
6307 /* First, make a file with some known garbage in it. */
6308 data = (char *) malloc (pagesize);
6309 if (!data)
6310 return 1;
6311 for (i = 0; i < pagesize; ++i)
6312 *(data + i) = rand ();
6313 umask (0);
6314 fd = creat ("conftest.mmap", 0600);
6315 if (fd < 0)
6316 return 2;
6317 if (write (fd, data, pagesize) != pagesize)
6318 return 3;
6319 close (fd);
6320
6321 /* Next, check that the tail of a page is zero-filled. File must have
6322 non-zero length, otherwise we risk SIGBUS for entire page. */
6323 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6324 if (fd2 < 0)
6325 return 4;
6326 cdata2 = "";
6327 if (write (fd2, cdata2, 1) != 1)
6328 return 5;
6329 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6330 if (data2 == MAP_FAILED)
6331 return 6;
6332 for (i = 0; i < pagesize; ++i)
6333 if (*(data2 + i))
6334 return 7;
6335 close (fd2);
6336 if (munmap (data2, pagesize))
6337 return 8;
6338
6339 /* Next, try to mmap the file at a fixed address which already has
6340 something else allocated at it. If we can, also make sure that
6341 we see the same garbage. */
6342 fd = open ("conftest.mmap", O_RDWR);
6343 if (fd < 0)
6344 return 9;
6345 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6346 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6347 return 10;
6348 for (i = 0; i < pagesize; ++i)
6349 if (*(data + i) != *(data2 + i))
6350 return 11;
6351
6352 /* Finally, make sure that changes to the mapped area do not
6353 percolate back to the file as seen by read(). (This is a bug on
6354 some variants of i386 svr4.0.) */
6355 for (i = 0; i < pagesize; ++i)
6356 *(data2 + i) = *(data2 + i) + 1;
6357 data3 = (char *) malloc (pagesize);
6358 if (!data3)
6359 return 12;
6360 if (read (fd, data3, pagesize) != pagesize)
6361 return 13;
6362 for (i = 0; i < pagesize; ++i)
6363 if (*(data + i) != *(data3 + i))
6364 return 14;
6365 close (fd);
6366 return 0;
6367 }
6368 _ACEOF
6369 if ac_fn_c_try_run "$LINENO"; then :
6370 ac_cv_func_mmap_fixed_mapped=yes
6371 else
6372 ac_cv_func_mmap_fixed_mapped=no
6373 fi
6374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6375 conftest.$ac_objext conftest.beam conftest.$ac_ext
6376 fi
6377
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6380 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6381 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6382
6383 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6384
6385 fi
6386 rm -f conftest.mmap conftest.txt
6387
6388 for ac_header in stdlib.h
6389 do :
6390 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6391 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6392 cat >>confdefs.h <<_ACEOF
6393 #define HAVE_STDLIB_H 1
6394 _ACEOF
6395
6396 fi
6397
6398 done
6399
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6401 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6402 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test "$cross_compiling" = yes; then :
6406 ac_cv_func_realloc_0_nonnull=no
6407 else
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6411 # include <stdlib.h>
6412 #else
6413 char *realloc ();
6414 #endif
6415
6416 int
6417 main ()
6418 {
6419 return ! realloc (0, 0);
6420 ;
6421 return 0;
6422 }
6423 _ACEOF
6424 if ac_fn_c_try_run "$LINENO"; then :
6425 ac_cv_func_realloc_0_nonnull=yes
6426 else
6427 ac_cv_func_realloc_0_nonnull=no
6428 fi
6429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6430 conftest.$ac_objext conftest.beam conftest.$ac_ext
6431 fi
6432
6433 fi
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6435 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6436 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6437
6438 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6439
6440 else
6441 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6442
6443 case " $LIBOBJS " in
6444 *" realloc.$ac_objext "* ) ;;
6445 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6446 ;;
6447 esac
6448
6449
6450 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6451
6452 fi
6453
6454
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6456 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6457 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if test "$cross_compiling" = yes; then :
6461 ac_cv_func_stat_empty_string_bug=yes
6462 else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 $ac_includes_default
6466 int
6467 main ()
6468 {
6469 struct stat sbuf;
6470 return stat ("", &sbuf) == 0;
6471 ;
6472 return 0;
6473 }
6474 _ACEOF
6475 if ac_fn_c_try_run "$LINENO"; then :
6476 ac_cv_func_stat_empty_string_bug=no
6477 else
6478 ac_cv_func_stat_empty_string_bug=yes
6479 fi
6480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6481 conftest.$ac_objext conftest.beam conftest.$ac_ext
6482 fi
6483
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6486 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6487 if test $ac_cv_func_stat_empty_string_bug = yes; then
6488 case " $LIBOBJS " in
6489 *" stat.$ac_objext "* ) ;;
6490 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6491 ;;
6492 esac
6493
6494
6495 cat >>confdefs.h <<_ACEOF
6496 #define HAVE_STAT_EMPTY_STRING_BUG 1
6497 _ACEOF
6498
6499 fi
6500
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6502 $as_echo_n "checking for working strtod... " >&6; }
6503 if test "${ac_cv_func_strtod+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6505 else
6506 if test "$cross_compiling" = yes; then :
6507 ac_cv_func_strtod=no
6508 else
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511
6512 $ac_includes_default
6513 #ifndef strtod
6514 double strtod ();
6515 #endif
6516 int
6517 main()
6518 {
6519 {
6520 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6521 char *string = " +69";
6522 char *term;
6523 double value;
6524 value = strtod (string, &term);
6525 if (value != 69 || term != (string + 4))
6526 return 1;
6527 }
6528
6529 {
6530 /* Under Solaris 2.4, strtod returns the wrong value for the
6531 terminating character under some conditions. */
6532 char *string = "NaN";
6533 char *term;
6534 strtod (string, &term);
6535 if (term != string && *(term - 1) == 0)
6536 return 1;
6537 }
6538 return 0;
6539 }
6540
6541 _ACEOF
6542 if ac_fn_c_try_run "$LINENO"; then :
6543 ac_cv_func_strtod=yes
6544 else
6545 ac_cv_func_strtod=no
6546 fi
6547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6548 conftest.$ac_objext conftest.beam conftest.$ac_ext
6549 fi
6550
6551 fi
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6553 $as_echo "$ac_cv_func_strtod" >&6; }
6554 if test $ac_cv_func_strtod = no; then
6555 case " $LIBOBJS " in
6556 *" strtod.$ac_objext "* ) ;;
6557 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6558 ;;
6559 esac
6560
6561 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6562 if test "x$ac_cv_func_pow" = x""yes; then :
6563
6564 fi
6565
6566 if test $ac_cv_func_pow = no; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6568 $as_echo_n "checking for pow in -lm... " >&6; }
6569 if test "${ac_cv_lib_m_pow+set}" = set; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 ac_check_lib_save_LIBS=$LIBS
6573 LIBS="-lm $LIBS"
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576
6577 /* Override any GCC internal prototype to avoid an error.
6578 Use char because int might match the return type of a GCC
6579 builtin and then its argument prototype would still apply. */
6580 #ifdef __cplusplus
6581 extern "C"
6582 #endif
6583 char pow ();
6584 int
6585 main ()
6586 {
6587 return pow ();
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 if ac_fn_c_try_link "$LINENO"; then :
6593 ac_cv_lib_m_pow=yes
6594 else
6595 ac_cv_lib_m_pow=no
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext \
6598 conftest$ac_exeext conftest.$ac_ext
6599 LIBS=$ac_check_lib_save_LIBS
6600 fi
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6602 $as_echo "$ac_cv_lib_m_pow" >&6; }
6603 if test "x$ac_cv_lib_m_pow" = x""yes; then :
6604 POW_LIB=-lm
6605 else
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6607 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6608 fi
6609
6610 fi
6611
6612 fi
6613
6614 for ac_func in vprintf
6615 do :
6616 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6617 if test "x$ac_cv_func_vprintf" = x""yes; then :
6618 cat >>confdefs.h <<_ACEOF
6619 #define HAVE_VPRINTF 1
6620 _ACEOF
6621
6622 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6623 if test "x$ac_cv_func__doprnt" = x""yes; then :
6624
6625 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6626
6627 fi
6628
6629 fi
6630 done
6631
6632
6633
6634 ################################################################################
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6636 $as_echo_n "checking whether to use static linking... " >&6; }
6637 # Check whether --enable-static_link was given.
6638 if test "${enable_static_link+set}" = set; then :
6639 enableval=$enable_static_link; STATIC_LINK=$enableval
6640 else
6641 STATIC_LINK=no
6642 fi
6643
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6645 $as_echo "$STATIC_LINK" >&6; }
6646
6647 ################################################################################
6648
6649
6650 ################################################################################
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6652 $as_echo_n "checking file owner... " >&6; }
6653
6654 # Check whether --with-user was given.
6655 if test "${with_user+set}" = set; then :
6656 withval=$with_user; OWNER=$withval
6657 fi
6658
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6660 $as_echo "$OWNER" >&6; }
6661
6662 if test x$OWNER != x; then
6663 INSTALL="$INSTALL -o $OWNER"
6664 fi
6665
6666 ################################################################################
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6668 $as_echo_n "checking group owner... " >&6; }
6669
6670 # Check whether --with-group was given.
6671 if test "${with_group+set}" = set; then :
6672 withval=$with_group; GROUP=$withval
6673 fi
6674
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6676 $as_echo "$GROUP" >&6; }
6677
6678 if test x$GROUP != x; then
6679 INSTALL="$INSTALL -g $GROUP"
6680 fi
6681
6682 ################################################################################
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6684 $as_echo_n "checking device node uid... " >&6; }
6685
6686
6687 # Check whether --with-device-uid was given.
6688 if test "${with_device_uid+set}" = set; then :
6689 withval=$with_device_uid; DM_DEVICE_UID=$withval
6690 else
6691 DM_DEVICE_UID=0
6692 fi
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6695 $as_echo "$DM_DEVICE_UID" >&6; }
6696
6697 ################################################################################
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6699 $as_echo_n "checking device node gid... " >&6; }
6700
6701
6702 # Check whether --with-device-gid was given.
6703 if test "${with_device_gid+set}" = set; then :
6704 withval=$with_device_gid; DM_DEVICE_GID=$withval
6705 else
6706 DM_DEVICE_GID=0
6707 fi
6708
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6710 $as_echo "$DM_DEVICE_GID" >&6; }
6711
6712 ################################################################################
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6714 $as_echo_n "checking device node mode... " >&6; }
6715
6716
6717 # Check whether --with-device-mode was given.
6718 if test "${with_device_mode+set}" = set; then :
6719 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6720 else
6721 DM_DEVICE_MODE=0600
6722 fi
6723
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6725 $as_echo "$DM_DEVICE_MODE" >&6; }
6726
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6728 $as_echo_n "checking when to create device nodes... " >&6; }
6729
6730 # Check whether --with-device-nodes-on was given.
6731 if test "${with_device_nodes_on+set}" = set; then :
6732 withval=$with_device_nodes_on; ADD_NODE=$withval
6733 else
6734 ADD_NODE=resume
6735 fi
6736
6737 case "$ADD_NODE" in
6738 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6739 create) add_on=DM_ADD_NODE_ON_CREATE;;
6740 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6741 esac
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6743 $as_echo "on $ADD_NODE" >&6; }
6744
6745 cat >>confdefs.h <<_ACEOF
6746 #define DEFAULT_DM_ADD_NODE $add_on
6747 _ACEOF
6748
6749
6750 ################################################################################
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6752 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6753 # Check whether --enable-lvm1_fallback was given.
6754 if test "${enable_lvm1_fallback+set}" = set; then :
6755 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6756 else
6757 LVM1_FALLBACK=no
6758 fi
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6761 $as_echo "$LVM1_FALLBACK" >&6; }
6762
6763 if test x$LVM1_FALLBACK = xyes; then
6764
6765 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6766
6767 fi
6768
6769 ################################################################################
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6771 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6772
6773 # Check whether --with-lvm1 was given.
6774 if test "${with_lvm1+set}" = set; then :
6775 withval=$with_lvm1; LVM1=$withval
6776 else
6777 LVM1=internal
6778 fi
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6781 $as_echo "$LVM1" >&6; }
6782
6783 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6784 then as_fn_error $? "--with-lvm1 parameter invalid
6785 " "$LINENO" 5
6786 fi;
6787
6788 if test x$LVM1 = xinternal; then
6789
6790 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6791
6792 fi
6793
6794 ################################################################################
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6796 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6797
6798 # Check whether --with-pool was given.
6799 if test "${with_pool+set}" = set; then :
6800 withval=$with_pool; POOL=$withval
6801 else
6802 POOL=internal
6803 fi
6804
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6806 $as_echo "$POOL" >&6; }
6807
6808 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6809 then as_fn_error $? "--with-pool parameter invalid
6810 " "$LINENO" 5
6811 fi;
6812
6813 if test x$POOL = xinternal; then
6814
6815 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6816
6817 fi
6818
6819 ################################################################################
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6821 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6822
6823 # Check whether --with-cluster was given.
6824 if test "${with_cluster+set}" = set; then :
6825 withval=$with_cluster; CLUSTER=$withval
6826 fi
6827
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6829 $as_echo "$CLUSTER" >&6; }
6830
6831 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6832 then as_fn_error $? "--with-cluster parameter invalid
6833 " "$LINENO" 5
6834 fi;
6835
6836 if test x$CLUSTER = xinternal; then
6837
6838 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6839
6840 fi
6841
6842 ################################################################################
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6844 $as_echo_n "checking whether to include snapshots... " >&6; }
6845
6846 # Check whether --with-snapshots was given.
6847 if test "${with_snapshots+set}" = set; then :
6848 withval=$with_snapshots; SNAPSHOTS=$withval
6849 else
6850 SNAPSHOTS=internal
6851 fi
6852
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6854 $as_echo "$SNAPSHOTS" >&6; }
6855
6856 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6857 then as_fn_error $? "--with-snapshots parameter invalid
6858 " "$LINENO" 5
6859 fi;
6860
6861 if test x$SNAPSHOTS = xinternal; then
6862
6863 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6864
6865 fi
6866
6867 ################################################################################
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6869 $as_echo_n "checking whether to include mirrors... " >&6; }
6870
6871 # Check whether --with-mirrors was given.
6872 if test "${with_mirrors+set}" = set; then :
6873 withval=$with_mirrors; MIRRORS=$withval
6874 else
6875 MIRRORS=internal
6876 fi
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6879 $as_echo "$MIRRORS" >&6; }
6880
6881 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6882 then as_fn_error $? "--with-mirrors parameter invalid
6883 " "$LINENO" 5
6884 fi;
6885
6886 if test x$MIRRORS = xinternal; then
6887
6888 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6889
6890 fi
6891
6892 ################################################################################
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6894 $as_echo_n "checking whether to include raid... " >&6; }
6895
6896 # Check whether --with-raid was given.
6897 if test "${with_raid+set}" = set; then :
6898 withval=$with_raid; RAID=$withval
6899 else
6900 RAID=internal
6901 fi
6902
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6904 $as_echo "$RAID" >&6; }
6905
6906 if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6907 then as_fn_error $? "--with-raid parameter invalid
6908 " "$LINENO" 5
6909 fi;
6910
6911 if test x$RAID = xinternal; then
6912
6913 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6914
6915 fi
6916
6917 ################################################################################
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6919 $as_echo_n "checking whether to include replicators... " >&6; }
6920
6921 # Check whether --with-replicators was given.
6922 if test "${with_replicators+set}" = set; then :
6923 withval=$with_replicators; REPLICATORS=$withval
6924 else
6925 REPLICATORS=none
6926 fi
6927
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6929 $as_echo "$REPLICATORS" >&6; }
6930
6931 case "$REPLICATORS" in
6932 none|shared) ;;
6933 internal)
6934 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6935 ;;
6936 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6937 esac
6938
6939 ################################################################################
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6941 $as_echo_n "checking whether to enable readline... " >&6; }
6942 # Check whether --enable-readline was given.
6943 if test "${enable_readline+set}" = set; then :
6944 enableval=$enable_readline; READLINE=$enableval
6945 else
6946 READLINE=maybe
6947 fi
6948
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6950 $as_echo "$READLINE" >&6; }
6951
6952 ################################################################################
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6954 $as_echo_n "checking whether to enable realtime support... " >&6; }
6955 # Check whether --enable-realtime was given.
6956 if test "${enable_realtime+set}" = set; then :
6957 enableval=$enable_realtime; REALTIME=$enableval
6958 fi
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6961 $as_echo "$REALTIME" >&6; }
6962
6963 ################################################################################
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6965 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6966 # Check whether --enable-ocf was given.
6967 if test "${enable_ocf+set}" = set; then :
6968 enableval=$enable_ocf; OCF=$enableval
6969 else
6970 OCF=no
6971 fi
6972
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6974 $as_echo "$OCF" >&6; }
6975
6976 # Check whether --with-ocfdir was given.
6977 if test "${with_ocfdir+set}" = set; then :
6978 withval=$with_ocfdir; OCFDIR=$withval
6979 else
6980 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
6981 fi
6982
6983
6984 ################################################################################
6985 pkg_config_init() {
6986
6987
6988
6989
6990
6991
6992 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6993 if test -n "$ac_tool_prefix"; then
6994 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6995 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 case $PKG_CONFIG in
7002 [\\/]* | ?:[\\/]*)
7003 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7004 ;;
7005 *)
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 ;;
7022 esac
7023 fi
7024 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7025 if test -n "$PKG_CONFIG"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7027 $as_echo "$PKG_CONFIG" >&6; }
7028 else
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033
7034 fi
7035 if test -z "$ac_cv_path_PKG_CONFIG"; then
7036 ac_pt_PKG_CONFIG=$PKG_CONFIG
7037 # Extract the first word of "pkg-config", so it can be a program name with args.
7038 set dummy pkg-config; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 case $ac_pt_PKG_CONFIG in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7051 do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060 done
7061 done
7062 IFS=$as_save_IFS
7063
7064 ;;
7065 esac
7066 fi
7067 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7068 if test -n "$ac_pt_PKG_CONFIG"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7070 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7071 else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075
7076 if test "x$ac_pt_PKG_CONFIG" = x; then
7077 PKG_CONFIG=""
7078 else
7079 case $cross_compiling:$ac_tool_warned in
7080 yes:)
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083 ac_tool_warned=yes ;;
7084 esac
7085 PKG_CONFIG=$ac_pt_PKG_CONFIG
7086 fi
7087 else
7088 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7089 fi
7090
7091 fi
7092 if test -n "$PKG_CONFIG"; then
7093 _pkg_min_version=0.9.0
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7095 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7096 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7098 $as_echo "yes" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 PKG_CONFIG=""
7103 fi
7104 fi
7105
7106 pkg_failed=no
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7108 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7109
7110 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7111 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7112 elif test -n "$PKG_CONFIG"; then
7113 if test -n "$PKG_CONFIG" && \
7114 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7115 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7116 ac_status=$?
7117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7118 test $ac_status = 0; }; then
7119 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7120 else
7121 pkg_failed=yes
7122 fi
7123 else
7124 pkg_failed=untried
7125 fi
7126 if test -n "$PKGCONFIGINIT_LIBS"; then
7127 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7128 elif test -n "$PKG_CONFIG"; then
7129 if test -n "$PKG_CONFIG" && \
7130 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7131 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7132 ac_status=$?
7133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7134 test $ac_status = 0; }; then
7135 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7136 else
7137 pkg_failed=yes
7138 fi
7139 else
7140 pkg_failed=untried
7141 fi
7142
7143
7144
7145 if test $pkg_failed = yes; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148
7149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7150 _pkg_short_errors_supported=yes
7151 else
7152 _pkg_short_errors_supported=no
7153 fi
7154 if test $_pkg_short_errors_supported = yes; then
7155 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7156 else
7157 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7158 fi
7159 # Put the nasty error message in config.log where it belongs
7160 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7161
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7163 $as_echo "pkg-config initialized" >&6; }
7164 elif test $pkg_failed = untried; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7168 $as_echo "pkg-config initialized" >&6; }
7169 else
7170 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7171 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7173 $as_echo "yes" >&6; }
7174
7175 fi
7176 PKGCONFIG_INIT=1
7177 }
7178
7179 ################################################################################
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7181 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7182
7183 # Check whether --with-clvmd was given.
7184 if test "${with_clvmd+set}" = set; then :
7185 withval=$with_clvmd; CLVMD=$withval
7186 else
7187 CLVMD=none
7188 fi
7189
7190 if test x$CLVMD = xyes; then
7191 CLVMD=all
7192 fi
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7194 $as_echo "$CLVMD" >&6; }
7195
7196 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7197 CLUSTER=internal
7198 fi
7199
7200 if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7201 pkg_config_init
7202 fi
7203
7204 CLVMD_CMANAGERS=""
7205 CLVMD_NEEDS_QDISKD=no
7206
7207 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7208 BUILDGULM=yes
7209 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
7210 CLVMD_NEEDS_QDISKD=yes
7211 fi
7212 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7213 BUILDCMAN=yes
7214 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7215 CLVMD_NEEDS_QDISKD=yes
7216 fi
7217 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7218 BUILDCOROSYNC=yes
7219 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7220 fi
7221 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7222 BUILDOPENAIS=yes
7223 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7224 fi
7225 if test x$CLVMD_NEEDS_QDISKD != xno; then
7226 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7227 fi
7228
7229 if test x$BUILDGULM = xyes; then
7230 if test x$BUILDCOROSYNC = xyes || \
7231 test x$BUILDOPENAIS = xyes; then
7232 as_fn_error $? "requested clvmd configuration is not valid" "$LINENO" 5
7233 fi
7234 fi
7235
7236 soft_bailout() {
7237 NOTFOUND=1
7238 }
7239
7240 hard_bailout() {
7241 as_fn_error $? "bailing out" "$LINENO" 5
7242 }
7243
7244 if test x$CLVMD = xall; then
7245 bailout=soft_bailout
7246 BUILDGULM=yes
7247 BUILDCMAN=yes
7248 BUILDCOROSYNC=yes
7249 BUILDOPENAIS=yes
7250 else
7251 bailout=hard_bailout
7252 fi
7253
7254 check_lib_no_libs() {
7255 lib_no_libs_arg1=$1
7256 shift
7257 lib_no_libs_arg2=$1
7258 shift
7259 lib_no_libs_args=$@
7260 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7262 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7263 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7264 $as_echo_n "(cached) " >&6
7265 else
7266 ac_check_lib_save_LIBS=$LIBS
7267 LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270
7271 /* Override any GCC internal prototype to avoid an error.
7272 Use char because int might match the return type of a GCC
7273 builtin and then its argument prototype would still apply. */
7274 #ifdef __cplusplus
7275 extern "C"
7276 #endif
7277 char $lib_no_libs_arg2 ();
7278 int
7279 main ()
7280 {
7281 return $lib_no_libs_arg2 ();
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_link "$LINENO"; then :
7287 eval "$as_ac_Lib=yes"
7288 else
7289 eval "$as_ac_Lib=no"
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293 LIBS=$ac_check_lib_save_LIBS
7294 fi
7295 eval ac_res=\$$as_ac_Lib
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7297 $as_echo "$ac_res" >&6; }
7298 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7299 cat >>confdefs.h <<_ACEOF
7300 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7301 _ACEOF
7302
7303 LIBS="-l$lib_no_libs_arg1 $LIBS"
7304
7305 else
7306 $bailout
7307 fi
7308
7309 LIBS=$ac_check_lib_save_LIBS
7310 }
7311
7312 if test x$BUILDGULM = xyes; then
7313
7314 pkg_failed=no
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7316 $as_echo_n "checking for CCS... " >&6; }
7317
7318 if test -n "$CCS_CFLAGS"; then
7319 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
7320 elif test -n "$PKG_CONFIG"; then
7321 if test -n "$PKG_CONFIG" && \
7322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7323 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7324 ac_status=$?
7325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7327 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
7328 else
7329 pkg_failed=yes
7330 fi
7331 else
7332 pkg_failed=untried
7333 fi
7334 if test -n "$CCS_LIBS"; then
7335 pkg_cv_CCS_LIBS="$CCS_LIBS"
7336 elif test -n "$PKG_CONFIG"; then
7337 if test -n "$PKG_CONFIG" && \
7338 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7339 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7340 ac_status=$?
7341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342 test $ac_status = 0; }; then
7343 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7344 else
7345 pkg_failed=yes
7346 fi
7347 else
7348 pkg_failed=untried
7349 fi
7350
7351
7352
7353 if test $pkg_failed = yes; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7356
7357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7358 _pkg_short_errors_supported=yes
7359 else
7360 _pkg_short_errors_supported=no
7361 fi
7362 if test $_pkg_short_errors_supported = yes; then
7363 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7364 else
7365 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7366 fi
7367 # Put the nasty error message in config.log where it belongs
7368 echo "$CCS_PKG_ERRORS" >&5
7369
7370 NOTFOUND=0
7371 for ac_header in ccs.h
7372 do :
7373 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7374 if test "x$ac_cv_header_ccs_h" = x""yes; then :
7375 cat >>confdefs.h <<_ACEOF
7376 #define HAVE_CCS_H 1
7377 _ACEOF
7378
7379 else
7380 $bailout
7381 fi
7382
7383 done
7384
7385 check_lib_no_libs ccs ccs_connect
7386 if test $NOTFOUND = 0; then
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7388 $as_echo "no pkg for libccs, using -lccs" >&6; }
7389 CCS_LIBS="-lccs"
7390 HAVE_CCS=yes
7391 fi
7392 elif test $pkg_failed = untried; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 NOTFOUND=0
7396 for ac_header in ccs.h
7397 do :
7398 ac_fn_c_check_header_mongrel "$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7399 if test "x$ac_cv_header_ccs_h" = x""yes; then :
7400 cat >>confdefs.h <<_ACEOF
7401 #define HAVE_CCS_H 1
7402 _ACEOF
7403
7404 else
7405 $bailout
7406 fi
7407
7408 done
7409
7410 check_lib_no_libs ccs ccs_connect
7411 if test $NOTFOUND = 0; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7413 $as_echo "no pkg for libccs, using -lccs" >&6; }
7414 CCS_LIBS="-lccs"
7415 HAVE_CCS=yes
7416 fi
7417 else
7418 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
7419 CCS_LIBS=$pkg_cv_CCS_LIBS
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421 $as_echo "yes" >&6; }
7422 HAVE_CCS=yes
7423 fi
7424
7425 pkg_failed=no
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7427 $as_echo_n "checking for GULM... " >&6; }
7428
7429 if test -n "$GULM_CFLAGS"; then
7430 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
7431 elif test -n "$PKG_CONFIG"; then
7432 if test -n "$PKG_CONFIG" && \
7433 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7434 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7435 ac_status=$?
7436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7437 test $ac_status = 0; }; then
7438 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7439 else
7440 pkg_failed=yes
7441 fi
7442 else
7443 pkg_failed=untried
7444 fi
7445 if test -n "$GULM_LIBS"; then
7446 pkg_cv_GULM_LIBS="$GULM_LIBS"
7447 elif test -n "$PKG_CONFIG"; then
7448 if test -n "$PKG_CONFIG" && \
7449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7450 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7451 ac_status=$?
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; then
7454 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7455 else
7456 pkg_failed=yes
7457 fi
7458 else
7459 pkg_failed=untried
7460 fi
7461
7462
7463
7464 if test $pkg_failed = yes; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466 $as_echo "no" >&6; }
7467
7468 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7469 _pkg_short_errors_supported=yes
7470 else
7471 _pkg_short_errors_supported=no
7472 fi
7473 if test $_pkg_short_errors_supported = yes; then
7474 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7475 else
7476 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7477 fi
7478 # Put the nasty error message in config.log where it belongs
7479 echo "$GULM_PKG_ERRORS" >&5
7480
7481 NOTFOUND=0
7482 for ac_header in libgulm.h
7483 do :
7484 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7485 if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7486 cat >>confdefs.h <<_ACEOF
7487 #define HAVE_LIBGULM_H 1
7488 _ACEOF
7489
7490 else
7491 $bailout
7492 fi
7493
7494 done
7495
7496 check_lib_no_libs gulm lg_core_login
7497 if test $NOTFOUND = 0; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7499 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7500 GULM_LIBS="-lgulm"
7501 HAVE_GULM=yes
7502 fi
7503 elif test $pkg_failed = untried; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 NOTFOUND=0
7507 for ac_header in libgulm.h
7508 do :
7509 ac_fn_c_check_header_mongrel "$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7510 if test "x$ac_cv_header_libgulm_h" = x""yes; then :
7511 cat >>confdefs.h <<_ACEOF
7512 #define HAVE_LIBGULM_H 1
7513 _ACEOF
7514
7515 else
7516 $bailout
7517 fi
7518
7519 done
7520
7521 check_lib_no_libs gulm lg_core_login
7522 if test $NOTFOUND = 0; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7524 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7525 GULM_LIBS="-lgulm"
7526 HAVE_GULM=yes
7527 fi
7528 else
7529 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
7530 GULM_LIBS=$pkg_cv_GULM_LIBS
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7532 $as_echo "yes" >&6; }
7533 HAVE_GULM=yes
7534 fi
7535 fi
7536
7537 if test x$BUILDCMAN = xyes; then
7538
7539 pkg_failed=no
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7541 $as_echo_n "checking for CMAN... " >&6; }
7542
7543 if test -n "$CMAN_CFLAGS"; then
7544 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7545 elif test -n "$PKG_CONFIG"; then
7546 if test -n "$PKG_CONFIG" && \
7547 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7548 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7549 ac_status=$?
7550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7551 test $ac_status = 0; }; then
7552 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7553 else
7554 pkg_failed=yes
7555 fi
7556 else
7557 pkg_failed=untried
7558 fi
7559 if test -n "$CMAN_LIBS"; then
7560 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7561 elif test -n "$PKG_CONFIG"; then
7562 if test -n "$PKG_CONFIG" && \
7563 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7564 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7565 ac_status=$?
7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7567 test $ac_status = 0; }; then
7568 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7569 else
7570 pkg_failed=yes
7571 fi
7572 else
7573 pkg_failed=untried
7574 fi
7575
7576
7577
7578 if test $pkg_failed = yes; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581
7582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7583 _pkg_short_errors_supported=yes
7584 else
7585 _pkg_short_errors_supported=no
7586 fi
7587 if test $_pkg_short_errors_supported = yes; then
7588 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7589 else
7590 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7591 fi
7592 # Put the nasty error message in config.log where it belongs
7593 echo "$CMAN_PKG_ERRORS" >&5
7594
7595 NOTFOUND=0
7596 for ac_header in libcman.h
7597 do :
7598 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7599 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7600 cat >>confdefs.h <<_ACEOF
7601 #define HAVE_LIBCMAN_H 1
7602 _ACEOF
7603
7604 else
7605 $bailout
7606 fi
7607
7608 done
7609
7610 check_lib_no_libs cman cman_init
7611 if test $NOTFOUND = 0; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7613 $as_echo "no pkg for libcman, using -lcman" >&6; }
7614 CMAN_LIBS="-lcman"
7615 HAVE_CMAN=yes
7616 fi
7617 elif test $pkg_failed = untried; then
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 NOTFOUND=0
7621 for ac_header in libcman.h
7622 do :
7623 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7624 if test "x$ac_cv_header_libcman_h" = x""yes; then :
7625 cat >>confdefs.h <<_ACEOF
7626 #define HAVE_LIBCMAN_H 1
7627 _ACEOF
7628
7629 else
7630 $bailout
7631 fi
7632
7633 done
7634
7635 check_lib_no_libs cman cman_init
7636 if test $NOTFOUND = 0; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7638 $as_echo "no pkg for libcman, using -lcman" >&6; }
7639 CMAN_LIBS="-lcman"
7640 HAVE_CMAN=yes
7641 fi
7642 else
7643 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7644 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646 $as_echo "yes" >&6; }
7647 HAVE_CMAN=yes
7648 fi
7649 CHECKCONFDB=yes
7650 CHECKDLM=yes
7651 fi
7652
7653 if test x$BUILDCOROSYNC = xyes || \
7654 test x$BUILDOPENAIS = xyes; then
7655
7656 pkg_failed=no
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7658 $as_echo_n "checking for COROSYNC... " >&6; }
7659
7660 if test -n "$COROSYNC_CFLAGS"; then
7661 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7662 elif test -n "$PKG_CONFIG"; then
7663 if test -n "$PKG_CONFIG" && \
7664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7665 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7666 ac_status=$?
7667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7668 test $ac_status = 0; }; then
7669 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7670 else
7671 pkg_failed=yes
7672 fi
7673 else
7674 pkg_failed=untried
7675 fi
7676 if test -n "$COROSYNC_LIBS"; then
7677 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7678 elif test -n "$PKG_CONFIG"; then
7679 if test -n "$PKG_CONFIG" && \
7680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7681 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7682 ac_status=$?
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; then
7685 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7686 else
7687 pkg_failed=yes
7688 fi
7689 else
7690 pkg_failed=untried
7691 fi
7692
7693
7694
7695 if test $pkg_failed = yes; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697 $as_echo "no" >&6; }
7698
7699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7700 _pkg_short_errors_supported=yes
7701 else
7702 _pkg_short_errors_supported=no
7703 fi
7704 if test $_pkg_short_errors_supported = yes; then
7705 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7706 else
7707 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7708 fi
7709 # Put the nasty error message in config.log where it belongs
7710 echo "$COROSYNC_PKG_ERRORS" >&5
7711
7712 $bailout
7713 elif test $pkg_failed = untried; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715 $as_echo "no" >&6; }
7716 $bailout
7717 else
7718 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7719 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7721 $as_echo "yes" >&6; }
7722 HAVE_COROSYNC=yes
7723 fi
7724 CHECKCONFDB=yes
7725 fi
7726
7727 if test x$BUILDCOROSYNC = xyes; then
7728
7729 pkg_failed=no
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7731 $as_echo_n "checking for QUORUM... " >&6; }
7732
7733 if test -n "$QUORUM_CFLAGS"; then
7734 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7735 elif test -n "$PKG_CONFIG"; then
7736 if test -n "$PKG_CONFIG" && \
7737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7738 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7739 ac_status=$?
7740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7741 test $ac_status = 0; }; then
7742 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7743 else
7744 pkg_failed=yes
7745 fi
7746 else
7747 pkg_failed=untried
7748 fi
7749 if test -n "$QUORUM_LIBS"; then
7750 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7751 elif test -n "$PKG_CONFIG"; then
7752 if test -n "$PKG_CONFIG" && \
7753 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7754 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7755 ac_status=$?
7756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7757 test $ac_status = 0; }; then
7758 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7759 else
7760 pkg_failed=yes
7761 fi
7762 else
7763 pkg_failed=untried
7764 fi
7765
7766
7767
7768 if test $pkg_failed = yes; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770 $as_echo "no" >&6; }
7771
7772 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7773 _pkg_short_errors_supported=yes
7774 else
7775 _pkg_short_errors_supported=no
7776 fi
7777 if test $_pkg_short_errors_supported = yes; then
7778 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7779 else
7780 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7781 fi
7782 # Put the nasty error message in config.log where it belongs
7783 echo "$QUORUM_PKG_ERRORS" >&5
7784
7785 $bailout
7786 elif test $pkg_failed = untried; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788 $as_echo "no" >&6; }
7789 $bailout
7790 else
7791 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7792 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7794 $as_echo "yes" >&6; }
7795 HAVE_QUORUM=yes
7796 fi
7797 CHECKCPG=yes
7798 CHECKDLM=yes
7799 fi
7800
7801 if test x$BUILDOPENAIS = xyes; then
7802
7803 pkg_failed=no
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7805 $as_echo_n "checking for SALCK... " >&6; }
7806
7807 if test -n "$SALCK_CFLAGS"; then
7808 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7809 elif test -n "$PKG_CONFIG"; then
7810 if test -n "$PKG_CONFIG" && \
7811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7812 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7813 ac_status=$?
7814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7815 test $ac_status = 0; }; then
7816 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7817 else
7818 pkg_failed=yes
7819 fi
7820 else
7821 pkg_failed=untried
7822 fi
7823 if test -n "$SALCK_LIBS"; then
7824 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7825 elif test -n "$PKG_CONFIG"; then
7826 if test -n "$PKG_CONFIG" && \
7827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7828 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7829 ac_status=$?
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; then
7832 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7833 else
7834 pkg_failed=yes
7835 fi
7836 else
7837 pkg_failed=untried
7838 fi
7839
7840
7841
7842 if test $pkg_failed = yes; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845
7846 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7847 _pkg_short_errors_supported=yes
7848 else
7849 _pkg_short_errors_supported=no
7850 fi
7851 if test $_pkg_short_errors_supported = yes; then
7852 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7853 else
7854 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7855 fi
7856 # Put the nasty error message in config.log where it belongs
7857 echo "$SALCK_PKG_ERRORS" >&5
7858
7859 $bailout
7860 elif test $pkg_failed = untried; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7863 $bailout
7864 else
7865 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7866 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868 $as_echo "yes" >&6; }
7869 HAVE_SALCK=yes
7870 fi
7871 CHECKCPG=yes
7872 fi
7873
7874
7875
7876 if test x$CHECKCONFDB = xyes; then
7877
7878 pkg_failed=no
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7880 $as_echo_n "checking for CONFDB... " >&6; }
7881
7882 if test -n "$CONFDB_CFLAGS"; then
7883 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7884 elif test -n "$PKG_CONFIG"; then
7885 if test -n "$PKG_CONFIG" && \
7886 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7887 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7888 ac_status=$?
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; }; then
7891 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7892 else
7893 pkg_failed=yes
7894 fi
7895 else
7896 pkg_failed=untried
7897 fi
7898 if test -n "$CONFDB_LIBS"; then
7899 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7900 elif test -n "$PKG_CONFIG"; then
7901 if test -n "$PKG_CONFIG" && \
7902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7903 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7904 ac_status=$?
7905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906 test $ac_status = 0; }; then
7907 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7908 else
7909 pkg_failed=yes
7910 fi
7911 else
7912 pkg_failed=untried
7913 fi
7914
7915
7916
7917 if test $pkg_failed = yes; then
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920
7921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7922 _pkg_short_errors_supported=yes
7923 else
7924 _pkg_short_errors_supported=no
7925 fi
7926 if test $_pkg_short_errors_supported = yes; then
7927 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7928 else
7929 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7930 fi
7931 # Put the nasty error message in config.log where it belongs
7932 echo "$CONFDB_PKG_ERRORS" >&5
7933
7934 HAVE_CONFDB=no
7935 elif test $pkg_failed = untried; then
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937 $as_echo "no" >&6; }
7938 HAVE_CONFDB=no
7939 else
7940 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7941 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943 $as_echo "yes" >&6; }
7944 HAVE_CONFDB=yes
7945 fi
7946
7947 for ac_header in corosync/confdb.h
7948 do :
7949 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7950 if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
7951 cat >>confdefs.h <<_ACEOF
7952 #define HAVE_COROSYNC_CONFDB_H 1
7953 _ACEOF
7954 HAVE_CONFDB_H=yes
7955 else
7956 HAVE_CONFDB_H=no
7957 fi
7958
7959 done
7960
7961
7962 if test x$HAVE_CONFDB != xyes && \
7963 test x$HAVE_CONFDB_H = xyes; then
7964 check_lib_no_libs confdb confdb_initialize
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7966 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7967 CONFDB_LIBS="-lconfdb"
7968 HAVE_CONFDB=yes
7969 fi
7970
7971 if test x$BUILDCOROSYNC = xyes && \
7972 test x$HAVE_CONFDB != xyes &&
7973 test x$CLVMD != xall; then
7974 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7975 fi
7976 fi
7977
7978 if test x$CHECKCPG = xyes; then
7979
7980 pkg_failed=no
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7982 $as_echo_n "checking for CPG... " >&6; }
7983
7984 if test -n "$CPG_CFLAGS"; then
7985 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7986 elif test -n "$PKG_CONFIG"; then
7987 if test -n "$PKG_CONFIG" && \
7988 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7989 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7990 ac_status=$?
7991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7992 test $ac_status = 0; }; then
7993 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7994 else
7995 pkg_failed=yes
7996 fi
7997 else
7998 pkg_failed=untried
7999 fi
8000 if test -n "$CPG_LIBS"; then
8001 pkg_cv_CPG_LIBS="$CPG_LIBS"
8002 elif test -n "$PKG_CONFIG"; then
8003 if test -n "$PKG_CONFIG" && \
8004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8005 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8006 ac_status=$?
8007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8008 test $ac_status = 0; }; then
8009 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8010 else
8011 pkg_failed=yes
8012 fi
8013 else
8014 pkg_failed=untried
8015 fi
8016
8017
8018
8019 if test $pkg_failed = yes; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022
8023 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8024 _pkg_short_errors_supported=yes
8025 else
8026 _pkg_short_errors_supported=no
8027 fi
8028 if test $_pkg_short_errors_supported = yes; then
8029 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8030 else
8031 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8032 fi
8033 # Put the nasty error message in config.log where it belongs
8034 echo "$CPG_PKG_ERRORS" >&5
8035
8036 $bailout
8037 elif test $pkg_failed = untried; then
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 $bailout
8041 else
8042 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8043 CPG_LIBS=$pkg_cv_CPG_LIBS
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8045 $as_echo "yes" >&6; }
8046 HAVE_CPG=yes
8047 fi
8048 fi
8049
8050 if test x$CHECKDLM = xyes; then
8051
8052 pkg_failed=no
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8054 $as_echo_n "checking for DLM... " >&6; }
8055
8056 if test -n "$DLM_CFLAGS"; then
8057 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
8058 elif test -n "$PKG_CONFIG"; then
8059 if test -n "$PKG_CONFIG" && \
8060 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8061 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8062 ac_status=$?
8063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8064 test $ac_status = 0; }; then
8065 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8066 else
8067 pkg_failed=yes
8068 fi
8069 else
8070 pkg_failed=untried
8071 fi
8072 if test -n "$DLM_LIBS"; then
8073 pkg_cv_DLM_LIBS="$DLM_LIBS"
8074 elif test -n "$PKG_CONFIG"; then
8075 if test -n "$PKG_CONFIG" && \
8076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8077 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8078 ac_status=$?
8079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080 test $ac_status = 0; }; then
8081 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8082 else
8083 pkg_failed=yes
8084 fi
8085 else
8086 pkg_failed=untried
8087 fi
8088
8089
8090
8091 if test $pkg_failed = yes; then
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094
8095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8096 _pkg_short_errors_supported=yes
8097 else
8098 _pkg_short_errors_supported=no
8099 fi
8100 if test $_pkg_short_errors_supported = yes; then
8101 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8102 else
8103 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8104 fi
8105 # Put the nasty error message in config.log where it belongs
8106 echo "$DLM_PKG_ERRORS" >&5
8107
8108 NOTFOUND=0
8109 for ac_header in libdlm.h
8110 do :
8111 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8112 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8113 cat >>confdefs.h <<_ACEOF
8114 #define HAVE_LIBDLM_H 1
8115 _ACEOF
8116
8117 else
8118 $bailout
8119 fi
8120
8121 done
8122
8123 check_lib_no_libs dlm dlm_lock -lpthread
8124 if test $NOTFOUND = 0; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8126 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8127 DLM_LIBS="-ldlm -lpthread"
8128 HAVE_DLM=yes
8129 fi
8130 elif test $pkg_failed = untried; then
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 NOTFOUND=0
8134 for ac_header in libdlm.h
8135 do :
8136 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8137 if test "x$ac_cv_header_libdlm_h" = x""yes; then :
8138 cat >>confdefs.h <<_ACEOF
8139 #define HAVE_LIBDLM_H 1
8140 _ACEOF
8141
8142 else
8143 $bailout
8144 fi
8145
8146 done
8147
8148 check_lib_no_libs dlm dlm_lock -lpthread
8149 if test $NOTFOUND = 0; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8151 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8152 DLM_LIBS="-ldlm -lpthread"
8153 HAVE_DLM=yes
8154 fi
8155 else
8156 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
8157 DLM_LIBS=$pkg_cv_DLM_LIBS
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8159 $as_echo "yes" >&6; }
8160 HAVE_DLM=yes
8161 fi
8162 fi
8163
8164 if test x$CLVMD = xall; then
8165 CLVMD=none
8166 CLVMD_CMANAGERS=""
8167 CLVMD_NEEDS_QDISKD=no
8168 if test x$HAVE_CCS = xyes && \
8169 test x$HAVE_GULM = xyes; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8171 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
8172 CLVMD="$CLVMD,gulm"
8173 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
8174 CLVMD_NEEDS_QDISKD=yes
8175 fi
8176 if test x$HAVE_CMAN = xyes && \
8177 test x$HAVE_DLM = xyes; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8179 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8180 CLVMD="$CLVMD,cman"
8181 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8182 CLVMD_NEEDS_QDISKD=yes
8183 fi
8184 if test x$HAVE_COROSYNC = xyes && \
8185 test x$HAVE_QUORUM = xyes && \
8186 test x$HAVE_CPG = xyes && \
8187 test x$HAVE_DLM = xyes && \
8188 test x$HAVE_CONFDB = xyes; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8190 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8191 CLVMD="$CLVMD,corosync"
8192 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
8193 fi
8194 if test x$HAVE_COROSYNC = xyes && \
8195 test x$HAVE_CPG = xyes && \
8196 test x$HAVE_SALCK = xyes; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8198 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8199 CLVMD="$CLVMD,openais"
8200 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
8201 fi
8202 if test x$CLVMD_NEEDS_QDISKD != xno; then
8203 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8204 fi
8205 if test x$CLVMD = xnone; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8207 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8208 fi
8209 fi
8210
8211 ################################################################################
8212 if test "x$CLVMD" != xnone; then
8213
8214 # Check whether --with-clvmd-pidfile was given.
8215 if test "${with_clvmd_pidfile+set}" = set; then :
8216 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
8217 else
8218 CLVMD_PIDFILE="/var/run/clvmd.pid"
8219 fi
8220
8221
8222 cat >>confdefs.h <<_ACEOF
8223 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8224 _ACEOF
8225
8226 fi
8227
8228 ################################################################################
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8230 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8231 # Check whether --enable-cmirrord was given.
8232 if test "${enable_cmirrord+set}" = set; then :
8233 enableval=$enable_cmirrord; CMIRRORD=$enableval
8234 else
8235 CMIRRORD=no
8236 fi
8237
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8239 $as_echo "$CMIRRORD" >&6; }
8240
8241 BUILD_CMIRRORD=$CMIRRORD
8242
8243 ################################################################################
8244 if test "x$BUILD_CMIRRORD" = xyes; then
8245
8246 # Check whether --with-cmirrord-pidfile was given.
8247 if test "${with_cmirrord_pidfile+set}" = set; then :
8248 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
8249 else
8250 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
8251 fi
8252
8253
8254 cat >>confdefs.h <<_ACEOF
8255 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8256 _ACEOF
8257
8258 fi
8259
8260 ################################################################################
8261 if [ "x$BUILD_CMIRRORD" = xyes ]; then
8262 if test x$PKGCONFIG_INIT != x1; then
8263 pkg_config_init
8264 fi
8265
8266 pkg_failed=no
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8268 $as_echo_n "checking for SACKPT... " >&6; }
8269
8270 if test -n "$SACKPT_CFLAGS"; then
8271 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8272 elif test -n "$PKG_CONFIG"; then
8273 if test -n "$PKG_CONFIG" && \
8274 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8275 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8276 ac_status=$?
8277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8278 test $ac_status = 0; }; then
8279 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8280 else
8281 pkg_failed=yes
8282 fi
8283 else
8284 pkg_failed=untried
8285 fi
8286 if test -n "$SACKPT_LIBS"; then
8287 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8288 elif test -n "$PKG_CONFIG"; then
8289 if test -n "$PKG_CONFIG" && \
8290 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8291 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8292 ac_status=$?
8293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8294 test $ac_status = 0; }; then
8295 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8296 else
8297 pkg_failed=yes
8298 fi
8299 else
8300 pkg_failed=untried
8301 fi
8302
8303
8304
8305 if test $pkg_failed = yes; then
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307 $as_echo "no" >&6; }
8308
8309 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8310 _pkg_short_errors_supported=yes
8311 else
8312 _pkg_short_errors_supported=no
8313 fi
8314 if test $_pkg_short_errors_supported = yes; then
8315 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8316 else
8317 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8318 fi
8319 # Put the nasty error message in config.log where it belongs
8320 echo "$SACKPT_PKG_ERRORS" >&5
8321
8322 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8323
8324 $SACKPT_PKG_ERRORS
8325
8326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8327 installed software in a non-standard prefix.
8328
8329 Alternatively, you may set the environment variables SACKPT_CFLAGS
8330 and SACKPT_LIBS to avoid the need to call pkg-config.
8331 See the pkg-config man page for more details." "$LINENO" 5
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}: error: in \`$ac_pwd':" >&5
8337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8338 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8339 is in your PATH or set the PKG_CONFIG environment variable to the full
8340 path to pkg-config.
8341
8342 Alternatively, you may set the environment variables SACKPT_CFLAGS
8343 and SACKPT_LIBS to avoid the need to call pkg-config.
8344 See the pkg-config man page for more details.
8345
8346 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8347 See \`config.log' for more details" "$LINENO" 5; }
8348
8349 else
8350 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8351 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353 $as_echo "yes" >&6; }
8354
8355 fi
8356 if test x$HAVE_CPG != xyes; then
8357
8358 pkg_failed=no
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8360 $as_echo_n "checking for CPG... " >&6; }
8361
8362 if test -n "$CPG_CFLAGS"; then
8363 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8364 elif test -n "$PKG_CONFIG"; then
8365 if test -n "$PKG_CONFIG" && \
8366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8367 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8368 ac_status=$?
8369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8370 test $ac_status = 0; }; then
8371 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8372 else
8373 pkg_failed=yes
8374 fi
8375 else
8376 pkg_failed=untried
8377 fi
8378 if test -n "$CPG_LIBS"; then
8379 pkg_cv_CPG_LIBS="$CPG_LIBS"
8380 elif test -n "$PKG_CONFIG"; then
8381 if test -n "$PKG_CONFIG" && \
8382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8383 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8384 ac_status=$?
8385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386 test $ac_status = 0; }; then
8387 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8388 else
8389 pkg_failed=yes
8390 fi
8391 else
8392 pkg_failed=untried
8393 fi
8394
8395
8396
8397 if test $pkg_failed = yes; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400
8401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8402 _pkg_short_errors_supported=yes
8403 else
8404 _pkg_short_errors_supported=no
8405 fi
8406 if test $_pkg_short_errors_supported = yes; then
8407 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8408 else
8409 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8410 fi
8411 # Put the nasty error message in config.log where it belongs
8412 echo "$CPG_PKG_ERRORS" >&5
8413
8414 as_fn_error $? "Package requirements (libcpg) were not met:
8415
8416 $CPG_PKG_ERRORS
8417
8418 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8419 installed software in a non-standard prefix.
8420
8421 Alternatively, you may set the environment variables CPG_CFLAGS
8422 and CPG_LIBS to avoid the need to call pkg-config.
8423 See the pkg-config man page for more details." "$LINENO" 5
8424
8425 elif test $pkg_failed = untried; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8430 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8431 is in your PATH or set the PKG_CONFIG environment variable to the full
8432 path to pkg-config.
8433
8434 Alternatively, you may set the environment variables CPG_CFLAGS
8435 and CPG_LIBS to avoid the need to call pkg-config.
8436 See the pkg-config man page for more details.
8437
8438 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8439 See \`config.log' for more details" "$LINENO" 5; }
8440
8441 else
8442 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8443 CPG_LIBS=$pkg_cv_CPG_LIBS
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8445 $as_echo "yes" >&6; }
8446
8447 fi
8448 fi
8449 fi
8450
8451 ################################################################################
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8453 $as_echo_n "checking whether to enable debugging... " >&6; }
8454 # Check whether --enable-debug was given.
8455 if test "${enable_debug+set}" = set; then :
8456 enableval=$enable_debug; DEBUG=$enableval
8457 else
8458 DEBUG=no
8459 fi
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8462 $as_echo "$DEBUG" >&6; }
8463
8464 if test x$DEBUG = xyes; then
8465 COPTIMISE_FLAG=
8466 else
8467 CSCOPE_CMD=
8468 fi
8469
8470 ################################################################################
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8472 $as_echo_n "checking for C optimisation flag... " >&6; }
8473
8474 # Check whether --with-optimisation was given.
8475 if test "${with_optimisation+set}" = set; then :
8476 withval=$with_optimisation; COPTIMISE_FLAG=$withval
8477 fi
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8480 $as_echo "$COPTIMISE_FLAG" >&6; }
8481
8482 ################################################################################
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8484 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8485 # Check whether --enable-profiling was given.
8486 if test "${enable_profiling+set}" = set; then :
8487 enableval=$enable_profiling; PROFILING=$enableval
8488 else
8489 PROFILING=no
8490 fi
8491
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8493 $as_echo "$PROFILING" >&6; }
8494
8495 if test "x$PROFILING" = xyes; then
8496 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8497 # Extract the first word of "lcov", so it can be a program name with args.
8498 set dummy lcov; ac_word=$2
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500 $as_echo_n "checking for $ac_word... " >&6; }
8501 if test "${ac_cv_path_LCOV+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 case $LCOV in
8505 [\\/]* | ?:[\\/]*)
8506 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8507 ;;
8508 *)
8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512 IFS=$as_save_IFS
8513 test -z "$as_dir" && as_dir=.
8514 for ac_exec_ext in '' $ac_executable_extensions; do
8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8516 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8518 break 2
8519 fi
8520 done
8521 done
8522 IFS=$as_save_IFS
8523
8524 ;;
8525 esac
8526 fi
8527 LCOV=$ac_cv_path_LCOV
8528 if test -n "$LCOV"; then
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8530 $as_echo "$LCOV" >&6; }
8531 else
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8533 $as_echo "no" >&6; }
8534 fi
8535
8536
8537 # Extract the first word of "genhtml", so it can be a program name with args.
8538 set dummy genhtml; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_GENHTML+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
8543 else
8544 case $GENHTML in
8545 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8547 ;;
8548 *)
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH
8551 do
8552 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2
8559 fi
8560 done
8561 done
8562 IFS=$as_save_IFS
8563
8564 ;;
8565 esac
8566 fi
8567 GENHTML=$ac_cv_path_GENHTML
8568 if test -n "$GENHTML"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8570 $as_echo "$GENHTML" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 fi
8575
8576
8577 if test -z "$LCOV" -o -z "$GENHTML"; then
8578 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8579 fi
8580 # Extract the first word of "genpng", so it can be a program name with args.
8581 set dummy genpng; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_path_GENPNG+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 case $GENPNG in
8588 [\\/]* | ?:[\\/]*)
8589 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8590 ;;
8591 *)
8592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593 for as_dir in $PATH
8594 do
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8599 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 break 2
8602 fi
8603 done
8604 done
8605 IFS=$as_save_IFS
8606
8607 ;;
8608 esac
8609 fi
8610 GENPNG=$ac_cv_path_GENPNG
8611 if test -n "$GENPNG"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8613 $as_echo "$GENPNG" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8617 fi
8618
8619
8620 if test -n "$GENPNG"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8622 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8623 if $GENPNG --help > /dev/null 2>&1 ; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8625 $as_echo "ok" >&6; }
8626 GENHTML="$GENHTML --frames"
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8629 $as_echo "not supported" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8631 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8632 GENPNG=
8633 fi
8634 fi
8635 fi
8636
8637 ################################################################################
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8639 $as_echo_n "checking whether to enable unit testing... " >&6; }
8640 # Check whether --enable-testing was given.
8641 if test "${enable_testing+set}" = set; then :
8642 enableval=$enable_testing; TESTING=$enableval
8643 else
8644 TESTING=no
8645 fi
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8648 $as_echo "$TESTING" >&6; }
8649
8650 if test "$TESTING" = yes; then
8651 # Extract the first word of "ruby1.9", so it can be a program name with args.
8652 set dummy ruby1.9; ac_word=$2
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654 $as_echo_n "checking for $ac_word... " >&6; }
8655 if test "${ac_cv_path_RUBY19+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 case $RUBY19 in
8659 [\\/]* | ?:[\\/]*)
8660 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8661 ;;
8662 *)
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8665 do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8673 fi
8674 done
8675 done
8676 IFS=$as_save_IFS
8677
8678 ;;
8679 esac
8680 fi
8681 RUBY19=$ac_cv_path_RUBY19
8682 if test -n "$RUBY19"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8684 $as_echo "$RUBY19" >&6; }
8685 else
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8688 fi
8689
8690
8691 # Extract the first word of "valgrind", so it can be a program name with args.
8692 set dummy valgrind; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 case $VALGRIND in
8699 [\\/]* | ?:[\\/]*)
8700 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
8701 ;;
8702 *)
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8705 do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8713 fi
8714 done
8715 done
8716 IFS=$as_save_IFS
8717
8718 ;;
8719 esac
8720 fi
8721 VALGRIND=$ac_cv_path_VALGRIND
8722 if test -n "$VALGRIND"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8724 $as_echo "$VALGRIND" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8728 fi
8729
8730
8731 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8732 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8733 fi
8734 fi
8735
8736 ################################################################################
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8738 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8739 # Check whether --enable-valgrind_pool was given.
8740 if test "${enable_valgrind_pool+set}" = set; then :
8741 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8742 else
8743 VALGRIND_POOL=no
8744 fi
8745
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8747 $as_echo "$VALGRIND_POOL" >&6; }
8748
8749 if test "$VALGRIND_POOL" = yes; then
8750 for ac_header in valgrind/memcheck.h
8751 do :
8752 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8753 if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8754 cat >>confdefs.h <<_ACEOF
8755 #define HAVE_VALGRIND_MEMCHECK_H 1
8756 _ACEOF
8757
8758 else
8759 as_fn_error $? "bailing out" "$LINENO" 5
8760 fi
8761
8762 done
8763
8764
8765 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8766
8767 fi
8768
8769 ################################################################################
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8771 $as_echo_n "checking whether to use device-mapper... " >&6; }
8772 # Check whether --enable-devmapper was given.
8773 if test "${enable_devmapper+set}" = set; then :
8774 enableval=$enable_devmapper; DEVMAPPER=$enableval
8775 fi
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8778 $as_echo "$DEVMAPPER" >&6; }
8779
8780 if test x$DEVMAPPER = xyes; then
8781
8782 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8783
8784 fi
8785
8786 ################################################################################
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8788 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8789 # Check whether --enable-udev_sync was given.
8790 if test "${enable_udev_sync+set}" = set; then :
8791 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
8792 else
8793 UDEV_SYNC=no
8794 fi
8795
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8797 $as_echo "$UDEV_SYNC" >&6; }
8798
8799 if test x$UDEV_SYNC = xyes; then
8800 if test x$PKGCONFIG_INIT != x1; then
8801 pkg_config_init
8802 fi
8803
8804 pkg_failed=no
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8806 $as_echo_n "checking for UDEV... " >&6; }
8807
8808 if test -n "$UDEV_CFLAGS"; then
8809 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8810 elif test -n "$PKG_CONFIG"; then
8811 if test -n "$PKG_CONFIG" && \
8812 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8813 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8814 ac_status=$?
8815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816 test $ac_status = 0; }; then
8817 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8818 else
8819 pkg_failed=yes
8820 fi
8821 else
8822 pkg_failed=untried
8823 fi
8824 if test -n "$UDEV_LIBS"; then
8825 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8826 elif test -n "$PKG_CONFIG"; then
8827 if test -n "$PKG_CONFIG" && \
8828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8829 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8830 ac_status=$?
8831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8832 test $ac_status = 0; }; then
8833 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8834 else
8835 pkg_failed=yes
8836 fi
8837 else
8838 pkg_failed=untried
8839 fi
8840
8841
8842
8843 if test $pkg_failed = yes; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8846
8847 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8848 _pkg_short_errors_supported=yes
8849 else
8850 _pkg_short_errors_supported=no
8851 fi
8852 if test $_pkg_short_errors_supported = yes; then
8853 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8854 else
8855 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8856 fi
8857 # Put the nasty error message in config.log where it belongs
8858 echo "$UDEV_PKG_ERRORS" >&5
8859
8860 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8861
8862 $UDEV_PKG_ERRORS
8863
8864 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8865 installed software in a non-standard prefix.
8866
8867 Alternatively, you may set the environment variables UDEV_CFLAGS
8868 and UDEV_LIBS to avoid the need to call pkg-config.
8869 See the pkg-config man page for more details." "$LINENO" 5
8870
8871 elif test $pkg_failed = untried; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8876 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8877 is in your PATH or set the PKG_CONFIG environment variable to the full
8878 path to pkg-config.
8879
8880 Alternatively, you may set the environment variables UDEV_CFLAGS
8881 and UDEV_LIBS to avoid the need to call pkg-config.
8882 See the pkg-config man page for more details.
8883
8884 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8885 See \`config.log' for more details" "$LINENO" 5; }
8886
8887 else
8888 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8889 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8891 $as_echo "yes" >&6; }
8892 UDEV_PC="libudev"
8893 fi
8894
8895 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8896
8897 fi
8898
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8900 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8901 # Check whether --enable-udev_rules was given.
8902 if test "${enable_udev_rules+set}" = set; then :
8903 enableval=$enable_udev_rules; UDEV_RULES=$enableval
8904 else
8905 UDEV_RULES=$UDEV_SYNC
8906 fi
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8909 $as_echo "$UDEV_RULES" >&6; }
8910
8911 ################################################################################
8912 # Check whether --enable-compat was given.
8913 if test "${enable_compat+set}" = set; then :
8914 enableval=$enable_compat; DM_COMPAT=$enableval
8915 else
8916 DM_COMPAT=no
8917 fi
8918
8919
8920 if test x$DM_COMPAT = xyes; then
8921 as_fn_error $? "--enable-compat is not currently supported.
8922 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8923 ioctl protocol is supported.
8924 " "$LINENO" 5
8925 fi
8926
8927 ################################################################################
8928 # Check whether --enable-units-compat was given.
8929 if test "${enable_units_compat+set}" = set; then :
8930 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
8931 else
8932 UNITS_COMPAT=no
8933 fi
8934
8935
8936 if test x$UNITS_COMPAT = xyes; then
8937
8938 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8939
8940 fi
8941
8942 ################################################################################
8943 # Check whether --enable-ioctl was given.
8944 if test "${enable_ioctl+set}" = set; then :
8945 enableval=$enable_ioctl; DM_IOCTLS=$enableval
8946 fi
8947
8948
8949 ################################################################################
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8951 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8952 # Check whether --enable-o_direct was given.
8953 if test "${enable_o_direct+set}" = set; then :
8954 enableval=$enable_o_direct; ODIRECT=$enableval
8955 fi
8956
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8958 $as_echo "$ODIRECT" >&6; }
8959
8960 if test x$ODIRECT = xyes; then
8961
8962 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8963
8964 fi
8965
8966 ################################################################################
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8968 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8969 # Check whether --enable-applib was given.
8970 if test "${enable_applib+set}" = set; then :
8971 enableval=$enable_applib; APPLIB=$enableval
8972 else
8973 APPLIB=no
8974 fi
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8977 $as_echo "$APPLIB" >&6; }
8978
8979 test x$APPLIB = xyes \
8980 && LVM2APP_LIB=-llvm2app \
8981 || LVM2APP_LIB=
8982
8983 ################################################################################
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8985 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8986 # Check whether --enable-cmdlib was given.
8987 if test "${enable_cmdlib+set}" = set; then :
8988 enableval=$enable_cmdlib; CMDLIB=$enableval
8989 else
8990 CMDLIB=no
8991 fi
8992
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8994 $as_echo "$CMDLIB" >&6; }
8995
8996 test x$CMDLIB = xyes \
8997 && LVM2CMD_LIB=-llvm2cmd \
8998 || LVM2CMD_LIB=
8999
9000 ################################################################################
9001 # Check whether --enable-pkgconfig was given.
9002 if test "${enable_pkgconfig+set}" = set; then :
9003 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9004 else
9005 PKGCONFIG=no
9006 fi
9007
9008
9009 ################################################################################
9010 # Check whether --enable-write_install was given.
9011 if test "${enable_write_install+set}" = set; then :
9012 enableval=$enable_write_install; WRITE_INSTALL=$enableval
9013 else
9014 WRITE_INSTALL=no
9015 fi
9016
9017
9018 ################################################################################
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
9020 $as_echo_n "checking whether to install fsadm... " >&6; }
9021 # Check whether --enable-fsadm was given.
9022 if test "${enable_fsadm+set}" = set; then :
9023 enableval=$enable_fsadm; FSADM=$enableval
9024 fi
9025
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
9027 $as_echo "$FSADM" >&6; }
9028
9029 ################################################################################
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
9031 $as_echo_n "checking whether to use dmeventd... " >&6; }
9032 # Check whether --enable-dmeventd was given.
9033 if test "${enable_dmeventd+set}" = set; then :
9034 enableval=$enable_dmeventd; DMEVENTD=$enableval
9035 fi
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
9038 $as_echo "$DMEVENTD" >&6; }
9039
9040 BUILD_DMEVENTD=$DMEVENTD
9041
9042 if test x$DMEVENTD = xyes; then
9043 if test x$MIRRORS != xinternal; then
9044 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
9045 " "$LINENO" 5
9046 fi
9047 if test x$CMDLIB = xno; then
9048 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
9049 " "$LINENO" 5
9050 fi
9051 fi
9052
9053 if test x$DMEVENTD = xyes; then
9054
9055 $as_echo "#define DMEVENTD 1" >>confdefs.h
9056
9057 fi
9058
9059 ################################################################################
9060
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
9062 $as_echo_n "checking for getline in -lc... " >&6; }
9063 if test "${ac_cv_lib_c_getline+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 ac_check_lib_save_LIBS=$LIBS
9067 LIBS="-lc $LIBS"
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070
9071 /* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9074 #ifdef __cplusplus
9075 extern "C"
9076 #endif
9077 char getline ();
9078 int
9079 main ()
9080 {
9081 return getline ();
9082 ;
9083 return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_link "$LINENO"; then :
9087 ac_cv_lib_c_getline=yes
9088 else
9089 ac_cv_lib_c_getline=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext \
9092 conftest$ac_exeext conftest.$ac_ext
9093 LIBS=$ac_check_lib_save_LIBS
9094 fi
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9096 $as_echo "$ac_cv_lib_c_getline" >&6; }
9097 if test "x$ac_cv_lib_c_getline" = x""yes; then :
9098
9099 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9100
9101 fi
9102
9103
9104 ################################################################################
9105
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9107 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9108 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 ac_check_lib_save_LIBS=$LIBS
9112 LIBS="-lc $LIBS"
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115
9116 /* Override any GCC internal prototype to avoid an error.
9117 Use char because int might match the return type of a GCC
9118 builtin and then its argument prototype would still apply. */
9119 #ifdef __cplusplus
9120 extern "C"
9121 #endif
9122 char canonicalize_file_name ();
9123 int
9124 main ()
9125 {
9126 return canonicalize_file_name ();
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_link "$LINENO"; then :
9132 ac_cv_lib_c_canonicalize_file_name=yes
9133 else
9134 ac_cv_lib_c_canonicalize_file_name=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 LIBS=$ac_check_lib_save_LIBS
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9141 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9142 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
9143
9144 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9145
9146 fi
9147
9148
9149 ################################################################################
9150 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9151 then exec_prefix="";
9152 fi;
9153
9154 ################################################################################
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9156 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9157 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9159 else
9160 ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-ldl $LIBS"
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164
9165 /* Override any GCC internal prototype to avoid an error.
9166 Use char because int might match the return type of a GCC
9167 builtin and then its argument prototype would still apply. */
9168 #ifdef __cplusplus
9169 extern "C"
9170 #endif
9171 char dlopen ();
9172 int
9173 main ()
9174 {
9175 return dlopen ();
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 if ac_fn_c_try_link "$LINENO"; then :
9181 ac_cv_lib_dl_dlopen=yes
9182 else
9183 ac_cv_lib_dl_dlopen=no
9184 fi
9185 rm -f core conftest.err conftest.$ac_objext \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9190 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9191 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9192
9193
9194 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9195
9196 DL_LIBS="-ldl"
9197 HAVE_LIBDL=yes
9198 else
9199
9200 DL_LIBS=
9201 HAVE_LIBDL=no
9202 fi
9203
9204
9205 ################################################################################
9206 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
9207 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
9208 -o "x$RAID" = xshared \
9209 \) -a "x$STATIC_LINK" = xyes ];
9210 then as_fn_error $? "Features cannot be 'shared' when building statically
9211 " "$LINENO" 5
9212 fi
9213
9214 ################################################################################
9215 if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9217 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9218 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 ac_check_lib_save_LIBS=$LIBS
9222 LIBS="-lpthread $LIBS"
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225
9226 /* Override any GCC internal prototype to avoid an error.
9227 Use char because int might match the return type of a GCC
9228 builtin and then its argument prototype would still apply. */
9229 #ifdef __cplusplus
9230 extern "C"
9231 #endif
9232 char pthread_mutex_lock ();
9233 int
9234 main ()
9235 {
9236 return pthread_mutex_lock ();
9237 ;
9238 return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242 ac_cv_lib_pthread_pthread_mutex_lock=yes
9243 else
9244 ac_cv_lib_pthread_pthread_mutex_lock=no
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248 LIBS=$ac_check_lib_save_LIBS
9249 fi
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9251 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9252 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9253 PTHREAD_LIBS="-lpthread"
9254 else
9255 hard_bailout
9256 fi
9257
9258 fi
9259
9260 ################################################################################
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9262 $as_echo_n "checking whether to enable selinux support... " >&6; }
9263 # Check whether --enable-selinux was given.
9264 if test "${enable_selinux+set}" = set; then :
9265 enableval=$enable_selinux; SELINUX=$enableval
9266 fi
9267
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9269 $as_echo "$SELINUX" >&6; }
9270
9271 ################################################################################
9272 if test x$SELINUX = xyes; then
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9274 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9275 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277 else
9278 ac_check_lib_save_LIBS=$LIBS
9279 LIBS="-lsepol $LIBS"
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282
9283 /* Override any GCC internal prototype to avoid an error.
9284 Use char because int might match the return type of a GCC
9285 builtin and then its argument prototype would still apply. */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 char sepol_check_context ();
9290 int
9291 main ()
9292 {
9293 return sepol_check_context ();
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299 ac_cv_lib_sepol_sepol_check_context=yes
9300 else
9301 ac_cv_lib_sepol_sepol_check_context=no
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9306 fi
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9308 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9309 if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
9310
9311
9312 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9313
9314 SELINUX_LIBS="-lsepol"
9315 fi
9316
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9319 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9320 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 ac_check_lib_save_LIBS=$LIBS
9324 LIBS="-lselinux $LIBS"
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char is_selinux_enabled ();
9335 int
9336 main ()
9337 {
9338 return is_selinux_enabled ();
9339 ;
9340 return 0;
9341 }
9342 _ACEOF
9343 if ac_fn_c_try_link "$LINENO"; then :
9344 ac_cv_lib_selinux_is_selinux_enabled=yes
9345 else
9346 ac_cv_lib_selinux_is_selinux_enabled=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext \
9349 conftest$ac_exeext conftest.$ac_ext
9350 LIBS=$ac_check_lib_save_LIBS
9351 fi
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9353 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9354 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
9355
9356 for ac_header in selinux/selinux.h
9357 do :
9358 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9359 if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_SELINUX_SELINUX_H 1
9362 _ACEOF
9363
9364 else
9365 hard_bailout
9366 fi
9367
9368 done
9369
9370 for ac_header in selinux/label.h
9371 do :
9372 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9373 if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9374 cat >>confdefs.h <<_ACEOF
9375 #define HAVE_SELINUX_LABEL_H 1
9376 _ACEOF
9377
9378 fi
9379
9380 done
9381
9382
9383 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9384
9385 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9386 SELINUX_PC="libselinux"
9387 HAVE_SELINUX=yes
9388 else
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9391 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9392 SELINUX_LIBS=
9393 SELINUX_PC=
9394 HAVE_SELINUX=no
9395 fi
9396
9397 fi
9398
9399 ################################################################################
9400 if test x$REALTIME = xyes; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9402 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9403 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 ac_check_lib_save_LIBS=$LIBS
9407 LIBS="-lrt $LIBS"
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410
9411 /* Override any GCC internal prototype to avoid an error.
9412 Use char because int might match the return type of a GCC
9413 builtin and then its argument prototype would still apply. */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 char clock_gettime ();
9418 int
9419 main ()
9420 {
9421 return clock_gettime ();
9422 ;
9423 return 0;
9424 }
9425 _ACEOF
9426 if ac_fn_c_try_link "$LINENO"; then :
9427 ac_cv_lib_rt_clock_gettime=yes
9428 else
9429 ac_cv_lib_rt_clock_gettime=no
9430 fi
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 LIBS=$ac_check_lib_save_LIBS
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9436 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9437 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9438 HAVE_REALTIME=yes
9439 else
9440 HAVE_REALTIME=no
9441 fi
9442
9443
9444 if test x$HAVE_REALTIME = xyes; then
9445
9446 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9447
9448 LIBS="-lrt $LIBS"
9449 else
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9451 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9452 fi
9453 fi
9454
9455 ################################################################################
9456 for ac_header in getopt.h
9457 do :
9458 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9459 if test "x$ac_cv_header_getopt_h" = x""yes; then :
9460 cat >>confdefs.h <<_ACEOF
9461 #define HAVE_GETOPT_H 1
9462 _ACEOF
9463
9464 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9465
9466 fi
9467
9468 done
9469
9470
9471 ################################################################################
9472 if test x$READLINE != xno; then
9473 lvm_saved_libs=$LIBS
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9475 $as_echo_n "checking for library containing tgetent... " >&6; }
9476 if test "${ac_cv_search_tgetent+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 ac_func_search_save_LIBS=$LIBS
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9486 #ifdef __cplusplus
9487 extern "C"
9488 #endif
9489 char tgetent ();
9490 int
9491 main ()
9492 {
9493 return tgetent ();
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9499 if test -z "$ac_lib"; then
9500 ac_res="none required"
9501 else
9502 ac_res=-l$ac_lib
9503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9504 fi
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 ac_cv_search_tgetent=$ac_res
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext
9510 if test "${ac_cv_search_tgetent+set}" = set; then :
9511 break
9512 fi
9513 done
9514 if test "${ac_cv_search_tgetent+set}" = set; then :
9515
9516 else
9517 ac_cv_search_tgetent=no
9518 fi
9519 rm conftest.$ac_ext
9520 LIBS=$ac_func_search_save_LIBS
9521 fi
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9523 $as_echo "$ac_cv_search_tgetent" >&6; }
9524 ac_res=$ac_cv_search_tgetent
9525 if test "$ac_res" != no; then :
9526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9527 READLINE_LIBS=$ac_cv_search_tgetent
9528 else
9529
9530 if test "$READLINE" = yes; then
9531 as_fn_error $? "termcap could not be found which is required for the
9532 --enable-readline option (which is enabled by default). Either disable readline
9533 support with --disable-readline or download and install termcap from:
9534 ftp.gnu.org/gnu/termcap
9535 Note: if you are using precompiled packages you will also need the development
9536 package as well (which may be called termcap-devel or something similar).
9537 Note: (n)curses also seems to work as a substitute for termcap. This was
9538 not found either - but you could try installing that as well." "$LINENO" 5
9539 fi
9540 fi
9541
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9543 $as_echo_n "checking for readline in -lreadline... " >&6; }
9544 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lreadline $LIBS"
9549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h. */
9551
9552 /* Override any GCC internal prototype to avoid an error.
9553 Use char because int might match the return type of a GCC
9554 builtin and then its argument prototype would still apply. */
9555 #ifdef __cplusplus
9556 extern "C"
9557 #endif
9558 char readline ();
9559 int
9560 main ()
9561 {
9562 return readline ();
9563 ;
9564 return 0;
9565 }
9566 _ACEOF
9567 if ac_fn_c_try_link "$LINENO"; then :
9568 ac_cv_lib_readline_readline=yes
9569 else
9570 ac_cv_lib_readline_readline=no
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 LIBS=$ac_check_lib_save_LIBS
9575 fi
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9577 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9578 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9579
9580
9581 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9582
9583 LIBS=$lvm_saved_libs
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9585 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9586 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9587 $as_echo_n "(cached) " >&6
9588 else
9589 ac_check_lib_save_LIBS=$LIBS
9590 LIBS="-lreadline $LIBS"
9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9592 /* end confdefs.h. */
9593
9594 /* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9597 #ifdef __cplusplus
9598 extern "C"
9599 #endif
9600 char rl_line_buffer ();
9601 int
9602 main ()
9603 {
9604 return rl_line_buffer ();
9605 ;
9606 return 0;
9607 }
9608 _ACEOF
9609 if ac_fn_c_try_link "$LINENO"; then :
9610 ac_cv_lib_readline_rl_line_buffer=yes
9611 else
9612 ac_cv_lib_readline_rl_line_buffer=no
9613 fi
9614 rm -f core conftest.err conftest.$ac_objext \
9615 conftest$ac_exeext conftest.$ac_ext
9616 LIBS=$ac_check_lib_save_LIBS
9617 fi
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9619 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9620 if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9621 READLINE_LIBS="-lreadline"
9622 else
9623
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9625 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9626 READLINE_LIBS="-lreadline $READLINE_LIBS"
9627
9628 fi
9629
9630 else
9631
9632 READLINE_LIBS=
9633 if test "$READLINE" = yes; then
9634 as_fn_error $? "GNU Readline could not be found which is required for the
9635 --enable-readline option (which is enabled by default). Either disable readline
9636 support with --disable-readline or download and install readline from:
9637 ftp.gnu.org/gnu/readline
9638 Note: if you are using precompiled packages you will also need the development
9639 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9640 fi
9641 fi
9642
9643 LIBS="$READLINE_LIBS $lvm_saved_libs"
9644 for ac_func in rl_completion_matches
9645 do :
9646 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9647 if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
9648 cat >>confdefs.h <<_ACEOF
9649 #define HAVE_RL_COMPLETION_MATCHES 1
9650 _ACEOF
9651
9652 fi
9653 done
9654
9655 LIBS=$lvm_saved_libs
9656 fi
9657
9658 ################################################################################
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9660 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9661 # Check whether --enable-nls was given.
9662 if test "${enable_nls+set}" = set; then :
9663 enableval=$enable_nls; INTL=$enableval
9664 else
9665 INTL=no
9666 fi
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9669 $as_echo "$INTL" >&6; }
9670
9671 if test x$INTL = xyes; then
9672 # FIXME - Move this - can be device-mapper too
9673 INTL_PACKAGE="lvm2"
9674 # Extract the first word of "msgfmt", so it can be a program name with args.
9675 set dummy msgfmt; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 case $MSGFMT in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9684 ;;
9685 *)
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9688 do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9696 fi
9697 done
9698 done
9699 IFS=$as_save_IFS
9700
9701 ;;
9702 esac
9703 fi
9704 MSGFMT=$ac_cv_path_MSGFMT
9705 if test -n "$MSGFMT"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9707 $as_echo "$MSGFMT" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9711 fi
9712
9713
9714 if [ "x$MSGFMT" == x ];
9715 then as_fn_error $? "msgfmt not found in path $PATH
9716 " "$LINENO" 5
9717 fi;
9718
9719
9720 # Check whether --with-localedir was given.
9721 if test "${with_localedir+set}" = set; then :
9722 withval=$with_localedir; LOCALEDIR=$withval
9723 else
9724 LOCALEDIR='${prefix}/share/locale'
9725 fi
9726
9727 fi
9728
9729 ################################################################################
9730
9731 # Check whether --with-confdir was given.
9732 if test "${with_confdir+set}" = set; then :
9733 withval=$with_confdir; CONFDIR=$withval
9734 else
9735 CONFDIR="/etc"
9736 fi
9737
9738
9739
9740 # Check whether --with-staticdir was given.
9741 if test "${with_staticdir+set}" = set; then :
9742 withval=$with_staticdir; STATICDIR=$withval
9743 else
9744 STATICDIR='${exec_prefix}/sbin'
9745 fi
9746
9747
9748
9749 # Check whether --with-usrlibdir was given.
9750 if test "${with_usrlibdir+set}" = set; then :
9751 withval=$with_usrlibdir; usrlibdir=$withval
9752 else
9753 usrlibdir='${prefix}/lib'
9754 fi
9755
9756
9757
9758 # Check whether --with-usrsbindir was given.
9759 if test "${with_usrsbindir+set}" = set; then :
9760 withval=$with_usrsbindir; usrsbindir=$withval
9761 else
9762 usrsbindir='${prefix}/sbin'
9763 fi
9764
9765
9766 ################################################################################
9767
9768 # Check whether --with-udev_prefix was given.
9769 if test "${with_udev_prefix+set}" = set; then :
9770 withval=$with_udev_prefix; udev_prefix=$withval
9771 else
9772 udev_prefix='${exec_prefix}'
9773 fi
9774
9775
9776
9777 # Check whether --with-udevdir was given.
9778 if test "${with_udevdir+set}" = set; then :
9779 withval=$with_udevdir; udevdir=$withval
9780 else
9781 udevdir='${udev_prefix}/lib/udev/rules.d'
9782 fi
9783
9784
9785 ################################################################################
9786 if test x$READLINE = xyes; then
9787 for ac_header in readline/readline.h readline/history.h
9788 do :
9789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9791 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9792 cat >>confdefs.h <<_ACEOF
9793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9794 _ACEOF
9795
9796 else
9797 as_fn_error $? "bailing out" "$LINENO" 5
9798 fi
9799
9800 done
9801
9802 fi
9803
9804 if test x$CLVMD != xnone; then
9805 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
9806 do :
9807 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9809 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9810 cat >>confdefs.h <<_ACEOF
9811 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812 _ACEOF
9813
9814 else
9815 as_fn_error $? "bailing out" "$LINENO" 5
9816 fi
9817
9818 done
9819
9820 for ac_func in dup2 getmntent memmove select socket
9821 do :
9822 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9823 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9824 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9825 cat >>confdefs.h <<_ACEOF
9826 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9827 _ACEOF
9828
9829 else
9830 as_fn_error $? "bailing out" "$LINENO" 5
9831 fi
9832 done
9833
9834 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9835 # -lseq on Dynix/PTX, -lgen on Unixware.
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9837 $as_echo_n "checking for library containing getmntent... " >&6; }
9838 if test "${ac_cv_search_getmntent+set}" = set; then :
9839 $as_echo_n "(cached) " >&6
9840 else
9841 ac_func_search_save_LIBS=$LIBS
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844
9845 /* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9848 #ifdef __cplusplus
9849 extern "C"
9850 #endif
9851 char getmntent ();
9852 int
9853 main ()
9854 {
9855 return getmntent ();
9856 ;
9857 return 0;
9858 }
9859 _ACEOF
9860 for ac_lib in '' sun seq gen; do
9861 if test -z "$ac_lib"; then
9862 ac_res="none required"
9863 else
9864 ac_res=-l$ac_lib
9865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9866 fi
9867 if ac_fn_c_try_link "$LINENO"; then :
9868 ac_cv_search_getmntent=$ac_res
9869 fi
9870 rm -f core conftest.err conftest.$ac_objext \
9871 conftest$ac_exeext
9872 if test "${ac_cv_search_getmntent+set}" = set; then :
9873 break
9874 fi
9875 done
9876 if test "${ac_cv_search_getmntent+set}" = set; then :
9877
9878 else
9879 ac_cv_search_getmntent=no
9880 fi
9881 rm conftest.$ac_ext
9882 LIBS=$ac_func_search_save_LIBS
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9885 $as_echo "$ac_cv_search_getmntent" >&6; }
9886 ac_res=$ac_cv_search_getmntent
9887 if test "$ac_res" != no; then :
9888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9889 ac_cv_func_getmntent=yes
9890
9891 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9892
9893 else
9894 ac_cv_func_getmntent=no
9895 fi
9896
9897
9898 for ac_header in sys/select.h sys/socket.h
9899 do :
9900 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9901 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9902 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9903 cat >>confdefs.h <<_ACEOF
9904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9905 _ACEOF
9906
9907 fi
9908
9909 done
9910
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9912 $as_echo_n "checking types of arguments for select... " >&6; }
9913 if test "${ac_cv_func_select_args+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9915 else
9916 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9917 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9918 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920 /* end confdefs.h. */
9921 $ac_includes_default
9922 #ifdef HAVE_SYS_SELECT_H
9923 # include <sys/select.h>
9924 #endif
9925 #ifdef HAVE_SYS_SOCKET_H
9926 # include <sys/socket.h>
9927 #endif
9928
9929 int
9930 main ()
9931 {
9932 extern int select ($ac_arg1,
9933 $ac_arg234, $ac_arg234, $ac_arg234,
9934 $ac_arg5);
9935 ;
9936 return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9941 fi
9942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 done
9944 done
9945 done
9946 # Provide a safe default value.
9947 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9948
9949 fi
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9951 $as_echo "$ac_cv_func_select_args" >&6; }
9952 ac_save_IFS=$IFS; IFS=','
9953 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9954 IFS=$ac_save_IFS
9955 shift
9956
9957 cat >>confdefs.h <<_ACEOF
9958 #define SELECT_TYPE_ARG1 $1
9959 _ACEOF
9960
9961
9962 cat >>confdefs.h <<_ACEOF
9963 #define SELECT_TYPE_ARG234 ($2)
9964 _ACEOF
9965
9966
9967 cat >>confdefs.h <<_ACEOF
9968 #define SELECT_TYPE_ARG5 ($3)
9969 _ACEOF
9970
9971 rm -f conftest*
9972
9973 fi
9974
9975 if test x$CLUSTER != xnone; then
9976 for ac_header in sys/socket.h sys/un.h
9977 do :
9978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9979 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9980 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9981 cat >>confdefs.h <<_ACEOF
9982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9983 _ACEOF
9984
9985 else
9986 as_fn_error $? "bailing out" "$LINENO" 5
9987 fi
9988
9989 done
9990
9991 for ac_func in socket
9992 do :
9993 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9994 if test "x$ac_cv_func_socket" = x""yes; then :
9995 cat >>confdefs.h <<_ACEOF
9996 #define HAVE_SOCKET 1
9997 _ACEOF
9998
9999 else
10000 as_fn_error $? "bailing out" "$LINENO" 5
10001 fi
10002 done
10003
10004 fi
10005
10006 if test x$DMEVENTD = xyes; then
10007 for ac_header in arpa/inet.h
10008 do :
10009 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10010 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
10011 cat >>confdefs.h <<_ACEOF
10012 #define HAVE_ARPA_INET_H 1
10013 _ACEOF
10014
10015 else
10016 as_fn_error $? "bailing out" "$LINENO" 5
10017 fi
10018
10019 done
10020
10021 fi
10022
10023 if test x$HAVE_LIBDL = xyes; then
10024 for ac_header in dlfcn.h
10025 do :
10026 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10028 cat >>confdefs.h <<_ACEOF
10029 #define HAVE_DLFCN_H 1
10030 _ACEOF
10031
10032 else
10033 as_fn_error $? "bailing out" "$LINENO" 5
10034 fi
10035
10036 done
10037
10038 fi
10039
10040 if test x$INTL = xyes; then
10041 for ac_header in libintl.h
10042 do :
10043 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10044 if test "x$ac_cv_header_libintl_h" = x""yes; then :
10045 cat >>confdefs.h <<_ACEOF
10046 #define HAVE_LIBINTL_H 1
10047 _ACEOF
10048
10049 else
10050 as_fn_error $? "bailing out" "$LINENO" 5
10051 fi
10052
10053 done
10054
10055 fi
10056
10057 if test x$UDEV_SYNC = xyes; then
10058 for ac_header in sys/ipc.h sys/sem.h
10059 do :
10060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10061 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10062 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10063 cat >>confdefs.h <<_ACEOF
10064 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10065 _ACEOF
10066
10067 else
10068 as_fn_error $? "bailing out" "$LINENO" 5
10069 fi
10070
10071 done
10072
10073 fi
10074
10075 ################################################################################
10076 # Extract the first word of "modprobe", so it can be a program name with args.
10077 set dummy modprobe; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
10081 $as_echo_n "(cached) " >&6
10082 else
10083 case $MODPROBE_CMD in
10084 [\\/]* | ?:[\\/]*)
10085 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
10086 ;;
10087 *)
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10090 do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10098 fi
10099 done
10100 done
10101 IFS=$as_save_IFS
10102
10103 ;;
10104 esac
10105 fi
10106 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
10107 if test -n "$MODPROBE_CMD"; then
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10109 $as_echo "$MODPROBE_CMD" >&6; }
10110 else
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112 $as_echo "no" >&6; }
10113 fi
10114
10115
10116
10117 if test x$MODPROBE_CMD != x; then
10118
10119 cat >>confdefs.h <<_ACEOF
10120 #define MODPROBE_CMD "$MODPROBE_CMD"
10121 _ACEOF
10122
10123 fi
10124
10125
10126 lvm_exec_prefix=$exec_prefix
10127 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
10128 test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
10129
10130 cat >>confdefs.h <<_ACEOF
10131 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
10132 _ACEOF
10133
10134
10135 if test "$CLVMD" != none; then
10136 clvmd_prefix=$ac_default_prefix
10137 test "$prefix" != NONE && clvmd_prefix=$prefix
10138
10139 cat >>confdefs.h <<_ACEOF
10140 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10141 _ACEOF
10142
10143 fi
10144
10145 ################################################################################
10146 if test "$BUILD_DMEVENTD" = yes; then
10147
10148 # Check whether --with-dmeventd-pidfile was given.
10149 if test "${with_dmeventd_pidfile+set}" = set; then :
10150 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
10151 else
10152 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
10153 fi
10154
10155
10156 cat >>confdefs.h <<_ACEOF
10157 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10158 _ACEOF
10159
10160 fi
10161
10162 if test "$BUILD_DMEVENTD" = yes; then
10163
10164 # Check whether --with-dmeventd-path was given.
10165 if test "${with_dmeventd_path+set}" = set; then :
10166 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
10167 else
10168 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
10169 fi
10170
10171
10172 cat >>confdefs.h <<_ACEOF
10173 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10174 _ACEOF
10175
10176 fi
10177
10178
10179
10180 # Check whether --with-default-run-dir was given.
10181 if test "${with_default_run_dir+set}" = set; then :
10182 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
10183 else
10184 DEFAULT_RUN_DIR="/var/run/lvm"
10185 fi
10186
10187 cat >>confdefs.h <<_ACEOF
10188 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10189 _ACEOF
10190
10191
10192 ################################################################################
10193
10194 # Check whether --with-default-system-dir was given.
10195 if test "${with_default_system_dir+set}" = set; then :
10196 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
10197 else
10198 DEFAULT_SYS_DIR="/etc/lvm"
10199 fi
10200
10201
10202 cat >>confdefs.h <<_ACEOF
10203 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10204 _ACEOF
10205
10206
10207
10208 # Check whether --with-default-archive-subdir was given.
10209 if test "${with_default_archive_subdir+set}" = set; then :
10210 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
10211 else
10212 DEFAULT_ARCHIVE_SUBDIR=archive
10213 fi
10214
10215
10216 cat >>confdefs.h <<_ACEOF
10217 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10218 _ACEOF
10219
10220
10221
10222 # Check whether --with-default-backup-subdir was given.
10223 if test "${with_default_backup_subdir+set}" = set; then :
10224 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
10225 else
10226 DEFAULT_BACKUP_SUBDIR=backup
10227 fi
10228
10229
10230 cat >>confdefs.h <<_ACEOF
10231 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10232 _ACEOF
10233
10234
10235
10236 # Check whether --with-default-cache-subdir was given.
10237 if test "${with_default_cache_subdir+set}" = set; then :
10238 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
10239 else
10240 DEFAULT_CACHE_SUBDIR=cache
10241 fi
10242
10243
10244 cat >>confdefs.h <<_ACEOF
10245 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10246 _ACEOF
10247
10248
10249
10250 # Check whether --with-default-locking-dir was given.
10251 if test "${with_default_locking_dir+set}" = set; then :
10252 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
10253 else
10254 DEFAULT_LOCK_DIR="/var/lock/lvm"
10255 fi
10256
10257
10258 cat >>confdefs.h <<_ACEOF
10259 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10260 _ACEOF
10261
10262
10263 ################################################################################
10264
10265 # Check whether --with-default-data-alignment was given.
10266 if test "${with_default_data_alignment+set}" = set; then :
10267 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10268 else
10269 DEFAULT_DATA_ALIGNMENT=1
10270 fi
10271
10272
10273 cat >>confdefs.h <<_ACEOF
10274 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10275 _ACEOF
10276
10277
10278 ################################################################################
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10280 $as_echo_n "checking for kernel interface choice... " >&6; }
10281
10282 # Check whether --with-interface was given.
10283 if test "${with_interface+set}" = set; then :
10284 withval=$with_interface; interface=$withval
10285 else
10286 interface=ioctl
10287 fi
10288
10289 if [ "x$interface" != xioctl ];
10290 then
10291 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10292 fi
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10294 $as_echo "$interface" >&6; }
10295
10296 ################################################################################
10297 DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10298
10299 cat >>confdefs.h <<_ACEOF
10300 #define DM_LIB_VERSION $DM_LIB_VERSION
10301 _ACEOF
10302
10303
10304 DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10305
10306 LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10307
10308 VER=`cat "$srcdir"/VERSION`
10309 LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10310 VER=`echo "$VER" | $AWK '{print $1}'`
10311 LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10312 VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10313 LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10314 LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
10315 LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10316 LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10317
10318 ################################################################################
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423 ################################################################################
10424 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10425
10426 cat >confcache <<\_ACEOF
10427 # This file is a shell script that caches the results of configure
10428 # tests run on this system so they can be shared between configure
10429 # scripts and configure runs, see configure's option --config-cache.
10430 # It is not useful on other systems. If it contains results you don't
10431 # want to keep, you may remove or edit it.
10432 #
10433 # config.status only pays attention to the cache file if you give it
10434 # the --recheck option to rerun configure.
10435 #
10436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10438 # following values.
10439
10440 _ACEOF
10441
10442 # The following way of writing the cache mishandles newlines in values,
10443 # but we know of no workaround that is simple, portable, and efficient.
10444 # So, we kill variables containing newlines.
10445 # Ultrix sh set writes to stderr and can't be redirected directly,
10446 # and sets the high bit in the cache file unless we assign to the vars.
10447 (
10448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10449 eval ac_val=\$$ac_var
10450 case $ac_val in #(
10451 *${as_nl}*)
10452 case $ac_var in #(
10453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10455 esac
10456 case $ac_var in #(
10457 _ | IFS | as_nl) ;; #(
10458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10459 *) { eval $ac_var=; unset $ac_var;} ;;
10460 esac ;;
10461 esac
10462 done
10463
10464 (set) 2>&1 |
10465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10466 *${as_nl}ac_space=\ *)
10467 # `set' does not quote correctly, so add quotes: double-quote
10468 # substitution turns \\\\ into \\, and sed turns \\ into \.
10469 sed -n \
10470 "s/'/'\\\\''/g;
10471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10472 ;; #(
10473 *)
10474 # `set' quotes correctly as required by POSIX, so do not add quotes.
10475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10476 ;;
10477 esac |
10478 sort
10479 ) |
10480 sed '
10481 /^ac_cv_env_/b end
10482 t clear
10483 :clear
10484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10485 t end
10486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10487 :end' >>confcache
10488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10489 if test -w "$cache_file"; then
10490 test "x$cache_file" != "x/dev/null" &&
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10492 $as_echo "$as_me: updating cache $cache_file" >&6;}
10493 cat confcache >$cache_file
10494 else
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10496 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10497 fi
10498 fi
10499 rm -f confcache
10500
10501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10502 # Let make expand exec_prefix.
10503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10504
10505 DEFS=-DHAVE_CONFIG_H
10506
10507 ac_libobjs=
10508 ac_ltlibobjs=
10509 U=
10510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10511 # 1. Remove the extension, and $U if already installed.
10512 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10513 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10514 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10515 # will be set to the directory where LIBOBJS objects are built.
10516 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10517 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10518 done
10519 LIBOBJS=$ac_libobjs
10520
10521 LTLIBOBJS=$ac_ltlibobjs
10522
10523
10524
10525 : ${CONFIG_STATUS=./config.status}
10526 ac_write_fail=0
10527 ac_clean_files_save=$ac_clean_files
10528 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10530 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10531 as_write_fail=0
10532 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10533 #! $SHELL
10534 # Generated by $as_me.
10535 # Run this file to recreate the current configuration.
10536 # Compiler output produced by configure, useful for debugging
10537 # configure, is in config.log if it exists.
10538
10539 debug=false
10540 ac_cs_recheck=false
10541 ac_cs_silent=false
10542
10543 SHELL=\${CONFIG_SHELL-$SHELL}
10544 export SHELL
10545 _ASEOF
10546 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10547 ## -------------------- ##
10548 ## M4sh Initialization. ##
10549 ## -------------------- ##
10550
10551 # Be more Bourne compatible
10552 DUALCASE=1; export DUALCASE # for MKS sh
10553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10554 emulate sh
10555 NULLCMD=:
10556 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10557 # is contrary to our usage. Disable this feature.
10558 alias -g '${1+"$@"}'='"$@"'
10559 setopt NO_GLOB_SUBST
10560 else
10561 case `(set -o) 2>/dev/null` in #(
10562 *posix*) :
10563 set -o posix ;; #(
10564 *) :
10565 ;;
10566 esac
10567 fi
10568
10569
10570 as_nl='
10571 '
10572 export as_nl
10573 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10574 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10575 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10577 # Prefer a ksh shell builtin over an external printf program on Solaris,
10578 # but without wasting forks for bash or zsh.
10579 if test -z "$BASH_VERSION$ZSH_VERSION" \
10580 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10581 as_echo='print -r --'
10582 as_echo_n='print -rn --'
10583 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10584 as_echo='printf %s\n'
10585 as_echo_n='printf %s'
10586 else
10587 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10588 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10589 as_echo_n='/usr/ucb/echo -n'
10590 else
10591 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10592 as_echo_n_body='eval
10593 arg=$1;
10594 case $arg in #(
10595 *"$as_nl"*)
10596 expr "X$arg" : "X\\(.*\\)$as_nl";
10597 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10598 esac;
10599 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10600 '
10601 export as_echo_n_body
10602 as_echo_n='sh -c $as_echo_n_body as_echo'
10603 fi
10604 export as_echo_body
10605 as_echo='sh -c $as_echo_body as_echo'
10606 fi
10607
10608 # The user is always right.
10609 if test "${PATH_SEPARATOR+set}" != set; then
10610 PATH_SEPARATOR=:
10611 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10612 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10613 PATH_SEPARATOR=';'
10614 }
10615 fi
10616
10617
10618 # IFS
10619 # We need space, tab and new line, in precisely that order. Quoting is
10620 # there to prevent editors from complaining about space-tab.
10621 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10622 # splitting by setting IFS to empty value.)
10623 IFS=" "" $as_nl"
10624
10625 # Find who we are. Look in the path if we contain no directory separator.
10626 case $0 in #((
10627 *[\\/]* ) as_myself=$0 ;;
10628 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10630 do
10631 IFS=$as_save_IFS
10632 test -z "$as_dir" && as_dir=.
10633 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10634 done
10635 IFS=$as_save_IFS
10636
10637 ;;
10638 esac
10639 # We did not find ourselves, most probably we were run as `sh COMMAND'
10640 # in which case we are not to be found in the path.
10641 if test "x$as_myself" = x; then
10642 as_myself=$0
10643 fi
10644 if test ! -f "$as_myself"; then
10645 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10646 exit 1
10647 fi
10648
10649 # Unset variables that we do not need and which cause bugs (e.g. in
10650 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10651 # suppresses any "Segmentation fault" message there. '((' could
10652 # trigger a bug in pdksh 5.2.14.
10653 for as_var in BASH_ENV ENV MAIL MAILPATH
10654 do eval test x\${$as_var+set} = xset \
10655 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10656 done
10657 PS1='$ '
10658 PS2='> '
10659 PS4='+ '
10660
10661 # NLS nuisances.
10662 LC_ALL=C
10663 export LC_ALL
10664 LANGUAGE=C
10665 export LANGUAGE
10666
10667 # CDPATH.
10668 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10669
10670
10671 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10672 # ----------------------------------------
10673 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10674 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10675 # script with STATUS, using 1 if that was 0.
10676 as_fn_error ()
10677 {
10678 as_status=$1; test $as_status -eq 0 && as_status=1
10679 if test "$4"; then
10680 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10681 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10682 fi
10683 $as_echo "$as_me: error: $2" >&2
10684 as_fn_exit $as_status
10685 } # as_fn_error
10686
10687
10688 # as_fn_set_status STATUS
10689 # -----------------------
10690 # Set $? to STATUS, without forking.
10691 as_fn_set_status ()
10692 {
10693 return $1
10694 } # as_fn_set_status
10695
10696 # as_fn_exit STATUS
10697 # -----------------
10698 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10699 as_fn_exit ()
10700 {
10701 set +e
10702 as_fn_set_status $1
10703 exit $1
10704 } # as_fn_exit
10705
10706 # as_fn_unset VAR
10707 # ---------------
10708 # Portably unset VAR.
10709 as_fn_unset ()
10710 {
10711 { eval $1=; unset $1;}
10712 }
10713 as_unset=as_fn_unset
10714 # as_fn_append VAR VALUE
10715 # ----------------------
10716 # Append the text in VALUE to the end of the definition contained in VAR. Take
10717 # advantage of any shell optimizations that allow amortized linear growth over
10718 # repeated appends, instead of the typical quadratic growth present in naive
10719 # implementations.
10720 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10721 eval 'as_fn_append ()
10722 {
10723 eval $1+=\$2
10724 }'
10725 else
10726 as_fn_append ()
10727 {
10728 eval $1=\$$1\$2
10729 }
10730 fi # as_fn_append
10731
10732 # as_fn_arith ARG...
10733 # ------------------
10734 # Perform arithmetic evaluation on the ARGs, and store the result in the
10735 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10736 # must be portable across $(()) and expr.
10737 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10738 eval 'as_fn_arith ()
10739 {
10740 as_val=$(( $* ))
10741 }'
10742 else
10743 as_fn_arith ()
10744 {
10745 as_val=`expr "$@" || test $? -eq 1`
10746 }
10747 fi # as_fn_arith
10748
10749
10750 if expr a : '\(a\)' >/dev/null 2>&1 &&
10751 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10752 as_expr=expr
10753 else
10754 as_expr=false
10755 fi
10756
10757 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10758 as_basename=basename
10759 else
10760 as_basename=false
10761 fi
10762
10763 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10764 as_dirname=dirname
10765 else
10766 as_dirname=false
10767 fi
10768
10769 as_me=`$as_basename -- "$0" ||
10770 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10771 X"$0" : 'X\(//\)$' \| \
10772 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10773 $as_echo X/"$0" |
10774 sed '/^.*\/\([^/][^/]*\)\/*$/{
10775 s//\1/
10776 q
10777 }
10778 /^X\/\(\/\/\)$/{
10779 s//\1/
10780 q
10781 }
10782 /^X\/\(\/\).*/{
10783 s//\1/
10784 q
10785 }
10786 s/.*/./; q'`
10787
10788 # Avoid depending upon Character Ranges.
10789 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10790 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10791 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10792 as_cr_digits='0123456789'
10793 as_cr_alnum=$as_cr_Letters$as_cr_digits
10794
10795 ECHO_C= ECHO_N= ECHO_T=
10796 case `echo -n x` in #(((((
10797 -n*)
10798 case `echo 'xy\c'` in
10799 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10800 xy) ECHO_C='\c';;
10801 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10802 ECHO_T=' ';;
10803 esac;;
10804 *)
10805 ECHO_N='-n';;
10806 esac
10807
10808 rm -f conf$$ conf$$.exe conf$$.file
10809 if test -d conf$$.dir; then
10810 rm -f conf$$.dir/conf$$.file
10811 else
10812 rm -f conf$$.dir
10813 mkdir conf$$.dir 2>/dev/null
10814 fi
10815 if (echo >conf$$.file) 2>/dev/null; then
10816 if ln -s conf$$.file conf$$ 2>/dev/null; then
10817 as_ln_s='ln -s'
10818 # ... but there are two gotchas:
10819 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10820 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10821 # In both cases, we have to default to `cp -p'.
10822 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10823 as_ln_s='cp -p'
10824 elif ln conf$$.file conf$$ 2>/dev/null; then
10825 as_ln_s=ln
10826 else
10827 as_ln_s='cp -p'
10828 fi
10829 else
10830 as_ln_s='cp -p'
10831 fi
10832 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10833 rmdir conf$$.dir 2>/dev/null
10834
10835
10836 # as_fn_mkdir_p
10837 # -------------
10838 # Create "$as_dir" as a directory, including parents if necessary.
10839 as_fn_mkdir_p ()
10840 {
10841
10842 case $as_dir in #(
10843 -*) as_dir=./$as_dir;;
10844 esac
10845 test -d "$as_dir" || eval $as_mkdir_p || {
10846 as_dirs=
10847 while :; do
10848 case $as_dir in #(
10849 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10850 *) as_qdir=$as_dir;;
10851 esac
10852 as_dirs="'$as_qdir' $as_dirs"
10853 as_dir=`$as_dirname -- "$as_dir" ||
10854 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10855 X"$as_dir" : 'X\(//\)[^/]' \| \
10856 X"$as_dir" : 'X\(//\)$' \| \
10857 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10858 $as_echo X"$as_dir" |
10859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10860 s//\1/
10861 q
10862 }
10863 /^X\(\/\/\)[^/].*/{
10864 s//\1/
10865 q
10866 }
10867 /^X\(\/\/\)$/{
10868 s//\1/
10869 q
10870 }
10871 /^X\(\/\).*/{
10872 s//\1/
10873 q
10874 }
10875 s/.*/./; q'`
10876 test -d "$as_dir" && break
10877 done
10878 test -z "$as_dirs" || eval "mkdir $as_dirs"
10879 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10880
10881
10882 } # as_fn_mkdir_p
10883 if mkdir -p . 2>/dev/null; then
10884 as_mkdir_p='mkdir -p "$as_dir"'
10885 else
10886 test -d ./-p && rmdir ./-p
10887 as_mkdir_p=false
10888 fi
10889
10890 if test -x / >/dev/null 2>&1; then
10891 as_test_x='test -x'
10892 else
10893 if ls -dL / >/dev/null 2>&1; then
10894 as_ls_L_option=L
10895 else
10896 as_ls_L_option=
10897 fi
10898 as_test_x='
10899 eval sh -c '\''
10900 if test -d "$1"; then
10901 test -d "$1/.";
10902 else
10903 case $1 in #(
10904 -*)set "./$1";;
10905 esac;
10906 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10907 ???[sx]*):;;*)false;;esac;fi
10908 '\'' sh
10909 '
10910 fi
10911 as_executable_p=$as_test_x
10912
10913 # Sed expression to map a string onto a valid CPP name.
10914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10915
10916 # Sed expression to map a string onto a valid variable name.
10917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10918
10919
10920 exec 6>&1
10921 ## ----------------------------------- ##
10922 ## Main body of $CONFIG_STATUS script. ##
10923 ## ----------------------------------- ##
10924 _ASEOF
10925 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10926
10927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10928 # Save the log message, to keep $0 and so on meaningful, and to
10929 # report actual input values of CONFIG_FILES etc. instead of their
10930 # values after options handling.
10931 ac_log="
10932 This file was extended by $as_me, which was
10933 generated by GNU Autoconf 2.66. Invocation command line was
10934
10935 CONFIG_FILES = $CONFIG_FILES
10936 CONFIG_HEADERS = $CONFIG_HEADERS
10937 CONFIG_LINKS = $CONFIG_LINKS
10938 CONFIG_COMMANDS = $CONFIG_COMMANDS
10939 $ $0 $@
10940
10941 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10942 "
10943
10944 _ACEOF
10945
10946 case $ac_config_files in *"
10947 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10948 esac
10949
10950 case $ac_config_headers in *"
10951 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10952 esac
10953
10954
10955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10956 # Files that config.status was made for.
10957 config_files="$ac_config_files"
10958 config_headers="$ac_config_headers"
10959
10960 _ACEOF
10961
10962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10963 ac_cs_usage="\
10964 \`$as_me' instantiates files and other configuration actions
10965 from templates according to the current configuration. Unless the files
10966 and actions are specified as TAGs, all are instantiated by default.
10967
10968 Usage: $0 [OPTION]... [TAG]...
10969
10970 -h, --help print this help, then exit
10971 -V, --version print version number and configuration settings, then exit
10972 --config print configuration, then exit
10973 -q, --quiet, --silent
10974 do not print progress messages
10975 -d, --debug don't remove temporary files
10976 --recheck update $as_me by reconfiguring in the same conditions
10977 --file=FILE[:TEMPLATE]
10978 instantiate the configuration file FILE
10979 --header=FILE[:TEMPLATE]
10980 instantiate the configuration header FILE
10981
10982 Configuration files:
10983 $config_files
10984
10985 Configuration headers:
10986 $config_headers
10987
10988 Report bugs to the package provider."
10989
10990 _ACEOF
10991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10992 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10993 ac_cs_version="\\
10994 config.status
10995 configured by $0, generated by GNU Autoconf 2.66,
10996 with options \\"\$ac_cs_config\\"
10997
10998 Copyright (C) 2010 Free Software Foundation, Inc.
10999 This config.status script is free software; the Free Software Foundation
11000 gives unlimited permission to copy, distribute and modify it."
11001
11002 ac_pwd='$ac_pwd'
11003 srcdir='$srcdir'
11004 INSTALL='$INSTALL'
11005 MKDIR_P='$MKDIR_P'
11006 AWK='$AWK'
11007 test -n "\$AWK" || AWK=awk
11008 _ACEOF
11009
11010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11011 # The default lists apply if the user does not specify any file.
11012 ac_need_defaults=:
11013 while test $# != 0
11014 do
11015 case $1 in
11016 --*=*)
11017 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11018 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11019 ac_shift=:
11020 ;;
11021 *)
11022 ac_option=$1
11023 ac_optarg=$2
11024 ac_shift=shift
11025 ;;
11026 esac
11027
11028 case $ac_option in
11029 # Handling of the options.
11030 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11031 ac_cs_recheck=: ;;
11032 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11033 $as_echo "$ac_cs_version"; exit ;;
11034 --config | --confi | --conf | --con | --co | --c )
11035 $as_echo "$ac_cs_config"; exit ;;
11036 --debug | --debu | --deb | --de | --d | -d )
11037 debug=: ;;
11038 --file | --fil | --fi | --f )
11039 $ac_shift
11040 case $ac_optarg in
11041 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11042 esac
11043 as_fn_append CONFIG_FILES " '$ac_optarg'"
11044 ac_need_defaults=false;;
11045 --header | --heade | --head | --hea )
11046 $ac_shift
11047 case $ac_optarg in
11048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11049 esac
11050 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11051 ac_need_defaults=false;;
11052 --he | --h)
11053 # Conflict between --help and --header
11054 as_fn_error $? "ambiguous option: \`$1'
11055 Try \`$0 --help' for more information.";;
11056 --help | --hel | -h )
11057 $as_echo "$ac_cs_usage"; exit ;;
11058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11059 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11060 ac_cs_silent=: ;;
11061
11062 # This is an error.
11063 -*) as_fn_error $? "unrecognized option: \`$1'
11064 Try \`$0 --help' for more information." ;;
11065
11066 *) as_fn_append ac_config_targets " $1"
11067 ac_need_defaults=false ;;
11068
11069 esac
11070 shift
11071 done
11072
11073 ac_configure_extra_args=
11074
11075 if $ac_cs_silent; then
11076 exec 6>/dev/null
11077 ac_configure_extra_args="$ac_configure_extra_args --silent"
11078 fi
11079
11080 _ACEOF
11081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11082 if \$ac_cs_recheck; then
11083 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11084 shift
11085 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11086 CONFIG_SHELL='$SHELL'
11087 export CONFIG_SHELL
11088 exec "\$@"
11089 fi
11090
11091 _ACEOF
11092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11093 exec 5>>config.log
11094 {
11095 echo
11096 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11097 ## Running $as_me. ##
11098 _ASBOX
11099 $as_echo "$ac_log"
11100 } >&5
11101
11102 _ACEOF
11103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11104 _ACEOF
11105
11106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11107
11108 # Handling of arguments.
11109 for ac_config_target in $ac_config_targets
11110 do
11111 case $ac_config_target in
11112 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
11113 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11114 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
11115 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
11116 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11117 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11118 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11119 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11120 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11121 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11122 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11123 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11124 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11125 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
11126 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
11127 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
11128 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11129 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
11130 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
11131 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
11132 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
11133 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
11134 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11135 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
11136 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
11137 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11138 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
11139 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11140 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11141 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
11142 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11143 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11144 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11145 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
11146 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
11147 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
11148 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11149 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
11150 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
11151 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
11152 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11153 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11154 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11155
11156 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11157 esac
11158 done
11159
11160
11161 # If the user did not use the arguments to specify the items to instantiate,
11162 # then the envvar interface is used. Set only those that are not.
11163 # We use the long form for the default assignment because of an extremely
11164 # bizarre bug on SunOS 4.1.3.
11165 if $ac_need_defaults; then
11166 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11167 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11168 fi
11169
11170 # Have a temporary directory for convenience. Make it in the build tree
11171 # simply because there is no reason against having it here, and in addition,
11172 # creating and moving files from /tmp can sometimes cause problems.
11173 # Hook for its removal unless debugging.
11174 # Note that there is a small window in which the directory will not be cleaned:
11175 # after its creation but before its name has been assigned to `$tmp'.
11176 $debug ||
11177 {
11178 tmp=
11179 trap 'exit_status=$?
11180 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11181 ' 0
11182 trap 'as_fn_exit 1' 1 2 13 15
11183 }
11184 # Create a (secure) tmp directory for tmp files.
11185
11186 {
11187 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11188 test -n "$tmp" && test -d "$tmp"
11189 } ||
11190 {
11191 tmp=./conf$$-$RANDOM
11192 (umask 077 && mkdir "$tmp")
11193 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11194
11195 # Set up the scripts for CONFIG_FILES section.
11196 # No need to generate them if there are no CONFIG_FILES.
11197 # This happens for instance with `./config.status config.h'.
11198 if test -n "$CONFIG_FILES"; then
11199
11200
11201 ac_cr=`echo X | tr X '\015'`
11202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11203 # But we know of no other shell where ac_cr would be empty at this
11204 # point, so we can use a bashism as a fallback.
11205 if test "x$ac_cr" = x; then
11206 eval ac_cr=\$\'\\r\'
11207 fi
11208 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11210 ac_cs_awk_cr='\\r'
11211 else
11212 ac_cs_awk_cr=$ac_cr
11213 fi
11214
11215 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11216 _ACEOF
11217
11218
11219 {
11220 echo "cat >conf$$subs.awk <<_ACEOF" &&
11221 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11222 echo "_ACEOF"
11223 } >conf$$subs.sh ||
11224 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11225 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11226 ac_delim='%!_!# '
11227 for ac_last_try in false false false false false :; do
11228 . ./conf$$subs.sh ||
11229 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11230
11231 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11232 if test $ac_delim_n = $ac_delim_num; then
11233 break
11234 elif $ac_last_try; then
11235 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11236 else
11237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11238 fi
11239 done
11240 rm -f conf$$subs.sh
11241
11242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11243 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11244 _ACEOF
11245 sed -n '
11246 h
11247 s/^/S["/; s/!.*/"]=/
11248 p
11249 g
11250 s/^[^!]*!//
11251 :repl
11252 t repl
11253 s/'"$ac_delim"'$//
11254 t delim
11255 :nl
11256 h
11257 s/\(.\{148\}\)..*/\1/
11258 t more1
11259 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11260 p
11261 n
11262 b repl
11263 :more1
11264 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11265 p
11266 g
11267 s/.\{148\}//
11268 t nl
11269 :delim
11270 h
11271 s/\(.\{148\}\)..*/\1/
11272 t more2
11273 s/["\\]/\\&/g; s/^/"/; s/$/"/
11274 p
11275 b
11276 :more2
11277 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11278 p
11279 g
11280 s/.\{148\}//
11281 t delim
11282 ' <conf$$subs.awk | sed '
11283 /^[^""]/{
11284 N
11285 s/\n//
11286 }
11287 ' >>$CONFIG_STATUS || ac_write_fail=1
11288 rm -f conf$$subs.awk
11289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11290 _ACAWK
11291 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11292 for (key in S) S_is_set[key] = 1
11293 FS = "\a"
11294
11295 }
11296 {
11297 line = $ 0
11298 nfields = split(line, field, "@")
11299 substed = 0
11300 len = length(field[1])
11301 for (i = 2; i < nfields; i++) {
11302 key = field[i]
11303 keylen = length(key)
11304 if (S_is_set[key]) {
11305 value = S[key]
11306 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11307 len += length(value) + length(field[++i])
11308 substed = 1
11309 } else
11310 len += 1 + keylen
11311 }
11312
11313 print line
11314 }
11315
11316 _ACAWK
11317 _ACEOF
11318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11319 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11320 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11321 else
11322 cat
11323 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11324 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11325 _ACEOF
11326
11327 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11328 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11329 # trailing colons and then remove the whole line if VPATH becomes empty
11330 # (actually we leave an empty line to preserve line numbers).
11331 if test "x$srcdir" = x.; then
11332 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11333 h
11334 s///
11335 s/^/:/
11336 s/[ ]*$/:/
11337 s/:\$(srcdir):/:/g
11338 s/:\${srcdir}:/:/g
11339 s/:@srcdir@:/:/g
11340 s/^:*//
11341 s/:*$//
11342 x
11343 s/\(=[ ]*\).*/\1/
11344 G
11345 s/\n//
11346 s/^[^=]*=[ ]*$//
11347 }'
11348 fi
11349
11350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11351 fi # test -n "$CONFIG_FILES"
11352
11353 # Set up the scripts for CONFIG_HEADERS section.
11354 # No need to generate them if there are no CONFIG_HEADERS.
11355 # This happens for instance with `./config.status Makefile'.
11356 if test -n "$CONFIG_HEADERS"; then
11357 cat >"$tmp/defines.awk" <<\_ACAWK ||
11358 BEGIN {
11359 _ACEOF
11360
11361 # Transform confdefs.h into an awk script `defines.awk', embedded as
11362 # here-document in config.status, that substitutes the proper values into
11363 # config.h.in to produce config.h.
11364
11365 # Create a delimiter string that does not exist in confdefs.h, to ease
11366 # handling of long lines.
11367 ac_delim='%!_!# '
11368 for ac_last_try in false false :; do
11369 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11370 if test -z "$ac_t"; then
11371 break
11372 elif $ac_last_try; then
11373 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11374 else
11375 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11376 fi
11377 done
11378
11379 # For the awk script, D is an array of macro values keyed by name,
11380 # likewise P contains macro parameters if any. Preserve backslash
11381 # newline sequences.
11382
11383 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11384 sed -n '
11385 s/.\{148\}/&'"$ac_delim"'/g
11386 t rset
11387 :rset
11388 s/^[ ]*#[ ]*define[ ][ ]*/ /
11389 t def
11390 d
11391 :def
11392 s/\\$//
11393 t bsnl
11394 s/["\\]/\\&/g
11395 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11396 D["\1"]=" \3"/p
11397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11398 d
11399 :bsnl
11400 s/["\\]/\\&/g
11401 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11402 D["\1"]=" \3\\\\\\n"\\/p
11403 t cont
11404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11405 t cont
11406 d
11407 :cont
11408 n
11409 s/.\{148\}/&'"$ac_delim"'/g
11410 t clear
11411 :clear
11412 s/\\$//
11413 t bsnlc
11414 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11415 d
11416 :bsnlc
11417 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11418 b cont
11419 ' <confdefs.h | sed '
11420 s/'"$ac_delim"'/"\\\
11421 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11422
11423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11424 for (key in D) D_is_set[key] = 1
11425 FS = "\a"
11426 }
11427 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11428 line = \$ 0
11429 split(line, arg, " ")
11430 if (arg[1] == "#") {
11431 defundef = arg[2]
11432 mac1 = arg[3]
11433 } else {
11434 defundef = substr(arg[1], 2)
11435 mac1 = arg[2]
11436 }
11437 split(mac1, mac2, "(") #)
11438 macro = mac2[1]
11439 prefix = substr(line, 1, index(line, defundef) - 1)
11440 if (D_is_set[macro]) {
11441 # Preserve the white space surrounding the "#".
11442 print prefix "define", macro P[macro] D[macro]
11443 next
11444 } else {
11445 # Replace #undef with comments. This is necessary, for example,
11446 # in the case of _POSIX_SOURCE, which is predefined and required
11447 # on some systems where configure will not decide to define it.
11448 if (defundef == "undef") {
11449 print "/*", prefix defundef, macro, "*/"
11450 next
11451 }
11452 }
11453 }
11454 { print }
11455 _ACAWK
11456 _ACEOF
11457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11458 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11459 fi # test -n "$CONFIG_HEADERS"
11460
11461
11462 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11463 shift
11464 for ac_tag
11465 do
11466 case $ac_tag in
11467 :[FHLC]) ac_mode=$ac_tag; continue;;
11468 esac
11469 case $ac_mode$ac_tag in
11470 :[FHL]*:*);;
11471 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11472 :[FH]-) ac_tag=-:-;;
11473 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11474 esac
11475 ac_save_IFS=$IFS
11476 IFS=:
11477 set x $ac_tag
11478 IFS=$ac_save_IFS
11479 shift
11480 ac_file=$1
11481 shift
11482
11483 case $ac_mode in
11484 :L) ac_source=$1;;
11485 :[FH])
11486 ac_file_inputs=
11487 for ac_f
11488 do
11489 case $ac_f in
11490 -) ac_f="$tmp/stdin";;
11491 *) # Look for the file first in the build tree, then in the source tree
11492 # (if the path is not absolute). The absolute path cannot be DOS-style,
11493 # because $ac_f cannot contain `:'.
11494 test -f "$ac_f" ||
11495 case $ac_f in
11496 [\\/$]*) false;;
11497 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11498 esac ||
11499 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11500 esac
11501 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11502 as_fn_append ac_file_inputs " '$ac_f'"
11503 done
11504
11505 # Let's still pretend it is `configure' which instantiates (i.e., don't
11506 # use $as_me), people would be surprised to read:
11507 # /* config.h. Generated by config.status. */
11508 configure_input='Generated from '`
11509 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11510 `' by configure.'
11511 if test x"$ac_file" != x-; then
11512 configure_input="$ac_file. $configure_input"
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11514 $as_echo "$as_me: creating $ac_file" >&6;}
11515 fi
11516 # Neutralize special characters interpreted by sed in replacement strings.
11517 case $configure_input in #(
11518 *\&* | *\|* | *\\* )
11519 ac_sed_conf_input=`$as_echo "$configure_input" |
11520 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11521 *) ac_sed_conf_input=$configure_input;;
11522 esac
11523
11524 case $ac_tag in
11525 *:-:* | *:-) cat >"$tmp/stdin" \
11526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11527 esac
11528 ;;
11529 esac
11530
11531 ac_dir=`$as_dirname -- "$ac_file" ||
11532 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11533 X"$ac_file" : 'X\(//\)[^/]' \| \
11534 X"$ac_file" : 'X\(//\)$' \| \
11535 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11536 $as_echo X"$ac_file" |
11537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11538 s//\1/
11539 q
11540 }
11541 /^X\(\/\/\)[^/].*/{
11542 s//\1/
11543 q
11544 }
11545 /^X\(\/\/\)$/{
11546 s//\1/
11547 q
11548 }
11549 /^X\(\/\).*/{
11550 s//\1/
11551 q
11552 }
11553 s/.*/./; q'`
11554 as_dir="$ac_dir"; as_fn_mkdir_p
11555 ac_builddir=.
11556
11557 case "$ac_dir" in
11558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11559 *)
11560 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11561 # A ".." for each directory in $ac_dir_suffix.
11562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11563 case $ac_top_builddir_sub in
11564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11566 esac ;;
11567 esac
11568 ac_abs_top_builddir=$ac_pwd
11569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11570 # for backward compatibility:
11571 ac_top_builddir=$ac_top_build_prefix
11572
11573 case $srcdir in
11574 .) # We are building in place.
11575 ac_srcdir=.
11576 ac_top_srcdir=$ac_top_builddir_sub
11577 ac_abs_top_srcdir=$ac_pwd ;;
11578 [\\/]* | ?:[\\/]* ) # Absolute name.
11579 ac_srcdir=$srcdir$ac_dir_suffix;
11580 ac_top_srcdir=$srcdir
11581 ac_abs_top_srcdir=$srcdir ;;
11582 *) # Relative name.
11583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11584 ac_top_srcdir=$ac_top_build_prefix$srcdir
11585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11586 esac
11587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11588
11589
11590 case $ac_mode in
11591 :F)
11592 #
11593 # CONFIG_FILE
11594 #
11595
11596 case $INSTALL in
11597 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11598 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11599 esac
11600 ac_MKDIR_P=$MKDIR_P
11601 case $MKDIR_P in
11602 [\\/$]* | ?:[\\/]* ) ;;
11603 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11604 esac
11605 _ACEOF
11606
11607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11608 # If the template does not know about datarootdir, expand it.
11609 # FIXME: This hack should be removed a few years after 2.60.
11610 ac_datarootdir_hack=; ac_datarootdir_seen=
11611 ac_sed_dataroot='
11612 /datarootdir/ {
11613 p
11614 q
11615 }
11616 /@datadir@/p
11617 /@docdir@/p
11618 /@infodir@/p
11619 /@localedir@/p
11620 /@mandir@/p'
11621 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11622 *datarootdir*) ac_datarootdir_seen=yes;;
11623 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11625 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11626 _ACEOF
11627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11628 ac_datarootdir_hack='
11629 s&@datadir@&$datadir&g
11630 s&@docdir@&$docdir&g
11631 s&@infodir@&$infodir&g
11632 s&@localedir@&$localedir&g
11633 s&@mandir@&$mandir&g
11634 s&\\\${datarootdir}&$datarootdir&g' ;;
11635 esac
11636 _ACEOF
11637
11638 # Neutralize VPATH when `$srcdir' = `.'.
11639 # Shell code in configure.ac might set extrasub.
11640 # FIXME: do we really want to maintain this feature?
11641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11642 ac_sed_extra="$ac_vpsub
11643 $extrasub
11644 _ACEOF
11645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11646 :t
11647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11648 s|@configure_input@|$ac_sed_conf_input|;t t
11649 s&@top_builddir@&$ac_top_builddir_sub&;t t
11650 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11651 s&@srcdir@&$ac_srcdir&;t t
11652 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11653 s&@top_srcdir@&$ac_top_srcdir&;t t
11654 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11655 s&@builddir@&$ac_builddir&;t t
11656 s&@abs_builddir@&$ac_abs_builddir&;t t
11657 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11658 s&@INSTALL@&$ac_INSTALL&;t t
11659 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11660 $ac_datarootdir_hack
11661 "
11662 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11663 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11664
11665 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11666 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11667 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11669 which seems to be undefined. Please make sure it is defined" >&5
11670 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11671 which seems to be undefined. Please make sure it is defined" >&2;}
11672
11673 rm -f "$tmp/stdin"
11674 case $ac_file in
11675 -) cat "$tmp/out" && rm -f "$tmp/out";;
11676 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11677 esac \
11678 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11679 ;;
11680 :H)
11681 #
11682 # CONFIG_HEADER
11683 #
11684 if test x"$ac_file" != x-; then
11685 {
11686 $as_echo "/* $configure_input */" \
11687 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11688 } >"$tmp/config.h" \
11689 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11690 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11692 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11693 else
11694 rm -f "$ac_file"
11695 mv "$tmp/config.h" "$ac_file" \
11696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11697 fi
11698 else
11699 $as_echo "/* $configure_input */" \
11700 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11701 || as_fn_error $? "could not create -" "$LINENO" 5
11702 fi
11703 ;;
11704
11705
11706 esac
11707
11708 done # for ac_tag
11709
11710
11711 as_fn_exit 0
11712 _ACEOF
11713 ac_clean_files=$ac_clean_files_save
11714
11715 test $ac_write_fail = 0 ||
11716 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11717
11718
11719 # configure is writing to config.log, and then calls config.status.
11720 # config.status does its own redirection, appending to config.log.
11721 # Unfortunately, on DOS this fails, as config.log is still kept open
11722 # by configure, so config.status won't be able to write to it; its
11723 # output is simply discarded. So we exec the FD to /dev/null,
11724 # effectively closing config.log, so it can be properly (re)opened and
11725 # appended to by config.status. When coming back to configure, we
11726 # need to make the FD available again.
11727 if test "$no_create" != yes; then
11728 ac_cs_success=:
11729 ac_config_status_args=
11730 test "$silent" = yes &&
11731 ac_config_status_args="$ac_config_status_args --quiet"
11732 exec 5>/dev/null
11733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11734 exec 5>>config.log
11735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11736 # would make configure fail if this is the last instruction.
11737 $ac_cs_success || as_fn_exit 1
11738 fi
11739 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11741 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11742 fi
11743
11744
11745 if test x$ODIRECT != xyes; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11747 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
11748 fi
This page took 0.631316 seconds and 6 git commands to generate.