]> sourceware.org Git - lvm2.git/blame - configure
post-release
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
ec6a6fbe 3# Generated by GNU Autoconf 2.63.
795ca3e5 4#
7a197a62 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
795ca3e5
AK
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
ad6254c5
AK
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
25fbec5b
AK
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
ec6a6fbe 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
21 setopt NO_GLOB_SUBST
22else
25fbec5b
AK
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
7a197a62 27fi
25fbec5b
AK
28
29
7a197a62
AK
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
ec6a6fbe
AK
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
68f2de6d 54 else
ec6a6fbe
AK
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 67 fi
ec6a6fbe
AK
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
ad6254c5
AK
79fi
80
81# Support unset when possible.
8a2fc586 82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
83 as_unset=unset
84else
85 as_unset=false
86fi
87
88
7a197a62
AK
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
7a197a62
AK
94IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
ec6a6fbe 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
117 { (exit 1); exit 1; }
118fi
119
ad6254c5 120# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
ad6254c5
AK
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
ec6a6fbe
AK
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
ad6254c5
AK
133
134# Required to use basename.
7a197a62
AK
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
137 as_expr=expr
138else
139 as_expr=false
140fi
141
7a197a62 142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
7a197a62 150as_me=`$as_basename -- "$0" ||
ad6254c5
AK
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
7a197a62 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 154$as_echo X/"$0" |
7a197a62
AK
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
ad6254c5 168
7a197a62
AK
169# CDPATH.
170$as_unset CDPATH
ad6254c5 171
ad6254c5 172
7a197a62
AK
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
ad6254c5
AK
178fi
179
ec6a6fbe 180 if test $as_have_required = yes && (eval ":
7a197a62
AK
181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
ad6254c5 196
7a197a62
AK
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
ad6254c5 204
7a197a62
AK
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
ad6254c5 240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25fbec5b 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
ad6254c5
AK
242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
7a197a62 245 case $as_dir in
ad6254c5 246 /*)
7a197a62
AK
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
ec6a6fbe 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
25fbec5b
AK
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
7a197a62 271fi
25fbec5b 272
7a197a62
AK
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
ec6a6fbe 283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7a197a62
AK
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
25fbec5b
AK
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
7a197a62 292fi
25fbec5b 293
7a197a62
AK
294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
ad6254c5
AK
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
ad6254c5 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62
AK
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
ec6a6fbe
AK
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
7a197a62
AK
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
ec6a6fbe
AK
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
7a197a62
AK
439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
ad6254c5
AK
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
ad6254c5 455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
ad6254c5 462 sed '
7a197a62
AK
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
ad6254c5 467 N
7a197a62
AK
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 470 t loop
7a197a62 471 s/-\n.*//
ad6254c5 472 ' >$as_me.lineno &&
7a197a62 473 chmod +x "$as_me.lineno" ||
ec6a6fbe 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
ad6254c5
AK
481 # Exit status is that of the last command.
482 exit
483}
795ca3e5 484
ad6254c5 485
7a197a62
AK
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
ad6254c5 501esac
7a197a62
AK
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
ec6a6fbe
AK
514 mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
ad6254c5 528 as_ln_s='cp -p'
ec6a6fbe 529 fi
ad6254c5
AK
530else
531 as_ln_s='cp -p'
532fi
7a197a62
AK
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
ad6254c5
AK
535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
8a2fc586 539 test -d ./-p && rmdir ./-p
ad6254c5
AK
540 as_mkdir_p=false
541fi
542
25fbec5b
AK
543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
7a197a62 545else
25fbec5b
AK
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
ec6a6fbe 554 test -d "$1/.";
25fbec5b
AK
555 else
556 case $1 in
ec6a6fbe 557 -*)set "./$1";;
25fbec5b
AK
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
7a197a62 563fi
25fbec5b 564as_executable_p=$as_test_x
ad6254c5
AK
565
566# Sed expression to map a string onto a valid CPP name.
8a2fc586 567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
568
569# Sed expression to map a string onto a valid variable name.
8a2fc586 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
571
572
ad6254c5 573
7a197a62 574exec 7<&0 </dev/null 6>&1
ad6254c5
AK
575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
ad6254c5
AK
581#
582# Initializations.
583#
795ca3e5 584ac_default_prefix=/usr/local
7a197a62 585ac_clean_files=
ad6254c5 586ac_config_libobj_dir=.
7a197a62 587LIBOBJS=
ad6254c5
AK
588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
ad6254c5
AK
594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="lib/device/dev-cache.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
25fbec5b 605#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
606# include <sys/types.h>
607#endif
25fbec5b 608#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
609# include <sys/stat.h>
610#endif
25fbec5b 611#ifdef STDC_HEADERS
ad6254c5
AK
612# include <stdlib.h>
613# include <stddef.h>
614#else
25fbec5b 615# ifdef HAVE_STDLIB_H
ad6254c5
AK
616# include <stdlib.h>
617# endif
618#endif
25fbec5b
AK
619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
621# include <memory.h>
622# endif
623# include <string.h>
624#endif
25fbec5b 625#ifdef HAVE_STRINGS_H
ad6254c5
AK
626# include <strings.h>
627#endif
25fbec5b 628#ifdef HAVE_INTTYPES_H
ad6254c5 629# include <inttypes.h>
ad6254c5 630#endif
25fbec5b 631#ifdef HAVE_STDINT_H
7a197a62
AK
632# include <stdint.h>
633#endif
25fbec5b 634#ifdef HAVE_UNISTD_H
ad6254c5
AK
635# include <unistd.h>
636#endif"
637
795ca3e5 638ac_default_prefix=/usr
ec6a6fbe 639ac_subst_vars='LTLIBOBJS
68f2de6d 640usrsbindir
ec6a6fbe 641usrlibdir
a5f46f6a
AK
642udevdir
643udev_prefix
ec6a6fbe
AK
644tmpdir
645kernelvsn
646missingkernel
647kerneldir
648interface
23b059e7 649WRITE_INSTALL
0878503f 650UDEV_SYNC
a5f46f6a 651UDEV_RULES
f7f0854e 652UDEV_PC
db724a44 653UDEV_LIBS
54b362f9 654TESTING
ec6a6fbe
AK
655STATIC_LINK
656STATICDIR
657SNAPSHOTS
f7f0854e 658SELINUX_PC
e1b8a236 659SELINUX_LIBS
539f4a77 660READLINE_LIBS
f30875db 661PTHREAD_LIBS
ec6a6fbe
AK
662POOL
663PKGCONFIG
8fea97b7 664REPLICATORS
ec6a6fbe
AK
665MIRRORS
666LVM_RELEASE_DATE
667LVM_RELEASE
668LVM_PATCHLEVEL
669LVM_MINOR
670LVM_MAJOR
bf456146 671LVM_LIBAPI
ec6a6fbe 672LVM_VERSION
ec6a6fbe
AK
673LVM1_FALLBACK
674LVM1
675LOCALEDIR
676LIB_SUFFIX
677LDDEPS
678JOBS
679INTL_PACKAGE
680INTL
ec6a6fbe
AK
681HAVE_REALTIME
682HAVE_LIBDL
ec6a6fbe
AK
683FSADM
684DM_LIB_PATCHLEVEL
685DM_LIB_VERSION
686DM_IOCTLS
687DM_DEVICE_UID
688DM_DEVICE_MODE
689DM_DEVICE_GID
690DM_COMPAT
d1e8046f 691DMEVENTD_PATH
ec6a6fbe 692DMEVENTD
19a2c6e0 693DL_LIBS
ec6a6fbe 694DEVMAPPER
b1f08e51 695DEFAULT_RUN_DIR
3399ae32 696DEFAULT_LOCK_DIR
fea55602 697DEFAULT_DATA_ALIGNMENT
3399ae32
AK
698DEFAULT_CACHE_SUBDIR
699DEFAULT_BACKUP_SUBDIR
700DEFAULT_ARCHIVE_SUBDIR
701DEFAULT_SYS_DIR
ec6a6fbe
AK
702DEBUG
703COPTIMISE_FLAG
e2997b73 704CONFDIR
ec6a6fbe 705CMDLIB
c89bc357 706CLVMD_CMANAGERS
ec6a6fbe
AK
707CLVMD
708CLUSTER
709CLDWHOLEARCHIVE
710CLDNOWHOLEARCHIVE
711CLDFLAGS
712BUILD_DMEVENTD
66fd4529 713BUILD_CMIRRORD
572fefeb 714APPLIB
ec6a6fbe
AK
715MODPROBE_CMD
716MSGFMT
717LVM2CMD_LIB
572fefeb 718LVM2APP_LIB
54b362f9
AK
719VALGRIND
720RUBY19
fd4728e1 721GENPNG
ec6a6fbe
AK
722GENHTML
723LCOV
90c80887
AK
724SACKPT_LIBS
725SACKPT_CFLAGS
a946372e
AK
726DLM_LIBS
727DLM_CFLAGS
e2997b73
AK
728CPG_LIBS
729CPG_CFLAGS
730CONFDB_LIBS
731CONFDB_CFLAGS
a946372e
AK
732SALCK_LIBS
733SALCK_CFLAGS
e2997b73
AK
734QUORUM_LIBS
735QUORUM_CFLAGS
a946372e
AK
736COROSYNC_LIBS
737COROSYNC_CFLAGS
738CMAN_LIBS
739CMAN_CFLAGS
740GULM_LIBS
741GULM_CFLAGS
742CCS_LIBS
743CCS_CFLAGS
744PKGCONFIGINIT_LIBS
745PKGCONFIGINIT_CFLAGS
e2997b73 746PKG_CONFIG
ec6a6fbe
AK
747POW_LIB
748LIBOBJS
749ALLOCA
750CSCOPE_CMD
751CFLOW_CMD
752RANLIB
753MKDIR_P
754SET_MAKE
755LN_S
756INSTALL_DATA
757INSTALL_SCRIPT
758INSTALL_PROGRAM
759EGREP
760GREP
761CPP
762OBJEXT
763EXEEXT
764ac_ct_CC
765CPPFLAGS
766LDFLAGS
767CFLAGS
768CC
769AWK
770SED
771target_os
772target_vendor
773target_cpu
774target
775host_os
776host_vendor
777host_cpu
778host
779build_os
780build_vendor
781build_cpu
782build
783target_alias
784host_alias
785build_alias
786LIBS
787ECHO_T
788ECHO_N
789ECHO_C
790DEFS
791mandir
792localedir
793libdir
794psdir
795pdfdir
796dvidir
797htmldir
798infodir
799docdir
800oldincludedir
801includedir
802localstatedir
803sharedstatedir
804sysconfdir
805datadir
806datarootdir
807libexecdir
808sbindir
809bindir
810program_transform_name
811prefix
812exec_prefix
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL'
ad6254c5 820ac_subst_files=''
ec6a6fbe
AK
821ac_user_opts='
822enable_option_checking
823enable_static_link
824with_user
825with_group
826with_device_uid
827with_device_gid
828with_device_mode
829enable_lvm1_fallback
830with_lvm1
831with_pool
832with_cluster
833with_snapshots
834with_mirrors
8fea97b7 835with_replicators
ec6a6fbe
AK
836enable_readline
837enable_realtime
838with_clvmd
8c4e8a18 839with_clvmd_pidfile
66fd4529
AK
840enable_cmirrord
841with_cmirrord_pidfile
ec6a6fbe
AK
842enable_debug
843with_optimisation
844enable_profiling
54b362f9 845enable_testing
d1e8046f 846enable_valgrind_pool
ec6a6fbe 847enable_devmapper
a5f46f6a
AK
848enable_udev_sync
849enable_udev_rules
ec6a6fbe 850enable_compat
95eaa683 851enable_units_compat
ec6a6fbe
AK
852enable_ioctl
853enable_o_direct
572fefeb 854enable_applib
ec6a6fbe
AK
855enable_cmdlib
856enable_pkgconfig
23b059e7 857enable_write_install
ec6a6fbe
AK
858enable_fsadm
859enable_dmeventd
860enable_selinux
861enable_nls
862with_localedir
863with_confdir
864with_staticdir
865with_usrlibdir
866with_usrsbindir
a5f46f6a 867with_udev_prefix
78ce7acc 868with_udevdir
ec6a6fbe
AK
869with_dmeventd_pidfile
870with_dmeventd_path
8bae0a1e 871with_default_run_dir
3399ae32
AK
872with_default_system_dir
873with_default_archive_subdir
874with_default_backup_subdir
875with_default_cache_subdir
876with_default_locking_dir
fea55602 877with_default_data_alignment
ec6a6fbe
AK
878with_interface
879'
7a197a62
AK
880 ac_precious_vars='build_alias
881host_alias
882target_alias
883CC
884CFLAGS
885LDFLAGS
25fbec5b 886LIBS
7a197a62 887CPPFLAGS
e2997b73
AK
888CPP
889PKG_CONFIG
a946372e
AK
890PKGCONFIGINIT_CFLAGS
891PKGCONFIGINIT_LIBS
892CCS_CFLAGS
893CCS_LIBS
894GULM_CFLAGS
895GULM_LIBS
896CMAN_CFLAGS
897CMAN_LIBS
898COROSYNC_CFLAGS
899COROSYNC_LIBS
e2997b73
AK
900QUORUM_CFLAGS
901QUORUM_LIBS
a946372e
AK
902SALCK_CFLAGS
903SALCK_LIBS
e2997b73
AK
904CONFDB_CFLAGS
905CONFDB_LIBS
906CPG_CFLAGS
a946372e
AK
907CPG_LIBS
908DLM_CFLAGS
90c80887
AK
909DLM_LIBS
910SACKPT_CFLAGS
911SACKPT_LIBS'
7a197a62 912
795ca3e5
AK
913
914# Initialize some variables set by options.
ad6254c5
AK
915ac_init_help=
916ac_init_version=false
ec6a6fbe
AK
917ac_unrecognized_opts=
918ac_unrecognized_sep=
795ca3e5
AK
919# The variables have the same names as the options, with
920# dashes changed to underlines.
ad6254c5 921cache_file=/dev/null
795ca3e5 922exec_prefix=NONE
795ca3e5 923no_create=
795ca3e5
AK
924no_recursion=
925prefix=NONE
926program_prefix=NONE
927program_suffix=NONE
928program_transform_name=s,x,x,
929silent=
930site=
931srcdir=
795ca3e5
AK
932verbose=
933x_includes=NONE
934x_libraries=NONE
ad6254c5
AK
935
936# Installation directory options.
937# These are left unexpanded so users can "make install exec_prefix=/foo"
938# and all the variables that are supposed to be based on exec_prefix
939# by default will actually change.
940# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 941# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
942bindir='${exec_prefix}/bin'
943sbindir='${exec_prefix}/sbin'
944libexecdir='${exec_prefix}/libexec'
7a197a62
AK
945datarootdir='${prefix}/share'
946datadir='${datarootdir}'
795ca3e5
AK
947sysconfdir='${prefix}/etc'
948sharedstatedir='${prefix}/com'
949localstatedir='${prefix}/var'
795ca3e5
AK
950includedir='${prefix}/include'
951oldincludedir='/usr/include'
7a197a62
AK
952docdir='${datarootdir}/doc/${PACKAGE}'
953infodir='${datarootdir}/info'
954htmldir='${docdir}'
955dvidir='${docdir}'
956pdfdir='${docdir}'
957psdir='${docdir}'
958libdir='${exec_prefix}/lib'
959localedir='${datarootdir}/locale'
960mandir='${datarootdir}/man'
795ca3e5 961
795ca3e5 962ac_prev=
7a197a62 963ac_dashdash=
795ca3e5
AK
964for ac_option
965do
795ca3e5
AK
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
7a197a62 968 eval $ac_prev=\$ac_option
795ca3e5
AK
969 ac_prev=
970 continue
971 fi
972
7a197a62
AK
973 case $ac_option in
974 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 *) ac_optarg=yes ;;
976 esac
795ca3e5
AK
977
978 # Accept the important Cygnus configure options, so we can diagnose typos.
979
7a197a62
AK
980 case $ac_dashdash$ac_option in
981 --)
982 ac_dashdash=yes ;;
795ca3e5
AK
983
984 -bindir | --bindir | --bindi | --bind | --bin | --bi)
985 ac_prev=bindir ;;
986 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 987 bindir=$ac_optarg ;;
795ca3e5
AK
988
989 -build | --build | --buil | --bui | --bu)
ad6254c5 990 ac_prev=build_alias ;;
795ca3e5 991 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 992 build_alias=$ac_optarg ;;
795ca3e5
AK
993
994 -cache-file | --cache-file | --cache-fil | --cache-fi \
995 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996 ac_prev=cache_file ;;
997 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
999 cache_file=$ac_optarg ;;
1000
1001 --config-cache | -C)
1002 cache_file=config.cache ;;
795ca3e5 1003
7a197a62 1004 -datadir | --datadir | --datadi | --datad)
795ca3e5 1005 ac_prev=datadir ;;
7a197a62 1006 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1007 datadir=$ac_optarg ;;
795ca3e5 1008
7a197a62
AK
1009 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010 | --dataroo | --dataro | --datar)
1011 ac_prev=datarootdir ;;
1012 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014 datarootdir=$ac_optarg ;;
1015
795ca3e5 1016 -disable-* | --disable-*)
ec6a6fbe 1017 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1018 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1020 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1021 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1022 ac_useropt_orig=$ac_useropt
1023 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1025 *"
1026"enable_$ac_useropt"
1027"*) ;;
1028 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep=', ';;
1030 esac
1031 eval enable_$ac_useropt=no ;;
7a197a62
AK
1032
1033 -docdir | --docdir | --docdi | --doc | --do)
1034 ac_prev=docdir ;;
1035 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1036 docdir=$ac_optarg ;;
1037
1038 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1039 ac_prev=dvidir ;;
1040 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1041 dvidir=$ac_optarg ;;
795ca3e5
AK
1042
1043 -enable-* | --enable-*)
ec6a6fbe 1044 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1045 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1048 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1049 ac_useropt_orig=$ac_useropt
1050 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051 case $ac_user_opts in
1052 *"
1053"enable_$ac_useropt"
1054"*) ;;
1055 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1056 ac_unrecognized_sep=', ';;
1057 esac
1058 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1059
1060 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1061 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1062 | --exec | --exe | --ex)
1063 ac_prev=exec_prefix ;;
1064 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1065 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1066 | --exec=* | --exe=* | --ex=*)
ad6254c5 1067 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1068
1069 -gas | --gas | --ga | --g)
1070 # Obsolete; use --with-gas.
1071 with_gas=yes ;;
1072
ad6254c5
AK
1073 -help | --help | --hel | --he | -h)
1074 ac_init_help=long ;;
1075 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1076 ac_init_help=recursive ;;
1077 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1078 ac_init_help=short ;;
795ca3e5
AK
1079
1080 -host | --host | --hos | --ho)
ad6254c5 1081 ac_prev=host_alias ;;
795ca3e5 1082 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1083 host_alias=$ac_optarg ;;
795ca3e5 1084
7a197a62
AK
1085 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1086 ac_prev=htmldir ;;
1087 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1088 | --ht=*)
1089 htmldir=$ac_optarg ;;
1090
795ca3e5
AK
1091 -includedir | --includedir | --includedi | --included | --include \
1092 | --includ | --inclu | --incl | --inc)
1093 ac_prev=includedir ;;
1094 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1095 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1096 includedir=$ac_optarg ;;
795ca3e5
AK
1097
1098 -infodir | --infodir | --infodi | --infod | --info | --inf)
1099 ac_prev=infodir ;;
1100 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1101 infodir=$ac_optarg ;;
795ca3e5
AK
1102
1103 -libdir | --libdir | --libdi | --libd)
1104 ac_prev=libdir ;;
1105 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1106 libdir=$ac_optarg ;;
795ca3e5
AK
1107
1108 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1109 | --libexe | --libex | --libe)
1110 ac_prev=libexecdir ;;
1111 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1112 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1113 libexecdir=$ac_optarg ;;
795ca3e5 1114
7a197a62
AK
1115 -localedir | --localedir | --localedi | --localed | --locale)
1116 ac_prev=localedir ;;
1117 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1118 localedir=$ac_optarg ;;
1119
795ca3e5 1120 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1121 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1122 ac_prev=localstatedir ;;
1123 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1124 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1125 localstatedir=$ac_optarg ;;
795ca3e5
AK
1126
1127 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1128 ac_prev=mandir ;;
1129 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1130 mandir=$ac_optarg ;;
795ca3e5
AK
1131
1132 -nfp | --nfp | --nf)
1133 # Obsolete; use --without-fp.
1134 with_fp=no ;;
1135
1136 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1137 | --no-cr | --no-c | -n)
795ca3e5
AK
1138 no_create=yes ;;
1139
1140 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1141 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1142 no_recursion=yes ;;
1143
1144 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1145 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1146 | --oldin | --oldi | --old | --ol | --o)
1147 ac_prev=oldincludedir ;;
1148 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1149 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1150 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1151 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1152
1153 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1154 ac_prev=prefix ;;
1155 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1156 prefix=$ac_optarg ;;
795ca3e5
AK
1157
1158 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1159 | --program-pre | --program-pr | --program-p)
1160 ac_prev=program_prefix ;;
1161 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1162 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1163 program_prefix=$ac_optarg ;;
795ca3e5
AK
1164
1165 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1166 | --program-suf | --program-su | --program-s)
1167 ac_prev=program_suffix ;;
1168 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1169 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1170 program_suffix=$ac_optarg ;;
795ca3e5
AK
1171
1172 -program-transform-name | --program-transform-name \
1173 | --program-transform-nam | --program-transform-na \
1174 | --program-transform-n | --program-transform- \
1175 | --program-transform | --program-transfor \
1176 | --program-transfo | --program-transf \
1177 | --program-trans | --program-tran \
1178 | --progr-tra | --program-tr | --program-t)
1179 ac_prev=program_transform_name ;;
1180 -program-transform-name=* | --program-transform-name=* \
1181 | --program-transform-nam=* | --program-transform-na=* \
1182 | --program-transform-n=* | --program-transform-=* \
1183 | --program-transform=* | --program-transfor=* \
1184 | --program-transfo=* | --program-transf=* \
1185 | --program-trans=* | --program-tran=* \
1186 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1187 program_transform_name=$ac_optarg ;;
795ca3e5 1188
7a197a62
AK
1189 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1190 ac_prev=pdfdir ;;
1191 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1192 pdfdir=$ac_optarg ;;
1193
1194 -psdir | --psdir | --psdi | --psd | --ps)
1195 ac_prev=psdir ;;
1196 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1197 psdir=$ac_optarg ;;
1198
795ca3e5
AK
1199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1200 | -silent | --silent | --silen | --sile | --sil)
1201 silent=yes ;;
1202
1203 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1204 ac_prev=sbindir ;;
1205 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1206 | --sbi=* | --sb=*)
ad6254c5 1207 sbindir=$ac_optarg ;;
795ca3e5
AK
1208
1209 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1210 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1211 | --sharedst | --shareds | --shared | --share | --shar \
1212 | --sha | --sh)
1213 ac_prev=sharedstatedir ;;
1214 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1215 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1216 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1217 | --sha=* | --sh=*)
ad6254c5 1218 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1219
1220 -site | --site | --sit)
1221 ac_prev=site ;;
1222 -site=* | --site=* | --sit=*)
ad6254c5 1223 site=$ac_optarg ;;
795ca3e5
AK
1224
1225 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1226 ac_prev=srcdir ;;
1227 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1228 srcdir=$ac_optarg ;;
795ca3e5
AK
1229
1230 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1231 | --syscon | --sysco | --sysc | --sys | --sy)
1232 ac_prev=sysconfdir ;;
1233 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1234 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1235 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1236
1237 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1238 ac_prev=target_alias ;;
795ca3e5 1239 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1240 target_alias=$ac_optarg ;;
795ca3e5
AK
1241
1242 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1243 verbose=yes ;;
1244
ad6254c5
AK
1245 -version | --version | --versio | --versi | --vers | -V)
1246 ac_init_version=: ;;
795ca3e5
AK
1247
1248 -with-* | --with-*)
ec6a6fbe 1249 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1250 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1253 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1264
1265 -without-* | --without-*)
ec6a6fbe 1266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1267 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1269 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1270 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275"with_$ac_useropt"
1276"*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
795ca3e5
AK
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1291 x_includes=$ac_optarg ;;
795ca3e5
AK
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1298 x_libraries=$ac_optarg ;;
795ca3e5 1299
ec6a6fbe 1300 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1301Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
795ca3e5
AK
1303 ;;
1304
ad6254c5
AK
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1309 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1310 { (exit 1); exit 1; }; }
7a197a62 1311 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1312 export $ac_envvar ;;
1313
795ca3e5 1314 *)
ad6254c5 1315 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1320 ;;
1321
1322 esac
1323done
1324
1325if test -n "$ac_prev"; then
ad6254c5 1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1327 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1328 { (exit 1); exit 1; }; }
795ca3e5 1329fi
795ca3e5 1330
ec6a6fbe
AK
1331if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1333 no) ;;
1334 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1335 { (exit 1); exit 1; }; } ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 esac
1338fi
1339
1340# Check all directory arguments for consistency.
7a197a62
AK
1341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
795ca3e5 1345do
7a197a62 1346 eval ac_val=\$$ac_var
ec6a6fbe
AK
1347 # Remove trailing slashes.
1348 case $ac_val in
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1352 esac
1353 # Be sure to have absolute directory names.
ad6254c5 1354 case $ac_val in
7a197a62
AK
1355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1357 esac
ec6a6fbe 1358 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1359 { (exit 1); exit 1; }; }
795ca3e5
AK
1360done
1361
ad6254c5
AK
1362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
1368
1369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
ec6a6fbe 1373 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1374 If a cross compiler is detected then cross compile mode will be used." >&2
1375 elif test "x$build_alias" != "x$host_alias"; then
1376 cross_compiling=yes
1377 fi
1378fi
8106cdd5 1379
ad6254c5
AK
1380ac_tool_prefix=
1381test -n "$host_alias" && ac_tool_prefix=$host_alias-
1382
1383test "$silent" = yes && exec 6>/dev/null
795ca3e5 1384
795ca3e5 1385
7a197a62
AK
1386ac_pwd=`pwd` && test -n "$ac_pwd" &&
1387ac_ls_di=`ls -di .` &&
1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1389 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1390 { (exit 1); exit 1; }; }
1391test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1392 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1393 { (exit 1); exit 1; }; }
1394
1395
795ca3e5
AK
1396# Find the source files, if location was not specified.
1397if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
7a197a62 1399 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405$as_echo X"$as_myself" |
7a197a62
AK
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
795ca3e5 1423 srcdir=$ac_confdir
7a197a62 1424 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1425 srcdir=..
1426 fi
1427else
1428 ac_srcdir_defaulted=no
1429fi
7a197a62
AK
1430if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1432 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1433 { (exit 1); exit 1; }; }
795ca3e5 1434fi
7a197a62
AK
1435ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436ac_abs_confdir=`(
ec6a6fbe 1437 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1438 { (exit 1); exit 1; }; }
7a197a62
AK
1439 pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
ad6254c5
AK
1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
1463 cat <<_ACEOF
1464\`configure' configures this package to adapt to many kinds of systems.
1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE. See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
1478 -q, --quiet, --silent do not print \`checking...' messages
1479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483
ad6254c5
AK
1484Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1486 [$ac_default_prefix]
ad6254c5 1487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1488 [PREFIX]
ad6254c5
AK
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
ec6a6fbe
AK
1498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1517_ACEOF
1518
1519 cat <<\_ACEOF
1520
1521System types:
1522 --build=BUILD configure for building on BUILD [guessed]
1523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524 --target=TARGET configure for building compilers for TARGET [HOST]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529
1530 cat <<\_ACEOF
1531
1532Optional Features:
ec6a6fbe 1533 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1536 --enable-static_link use this to link the tools to their libraries
1537 statically (default is dynamic linking
1538 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1539 device-mapper is missing from the kernel
71082be4
ZK
1540 --disable-readline disable readline support
1541 --enable-realtime enable realtime clock support
1542 --enable-cmirrord enable the cluster mirror log daemon
1543 --enable-debug enable debugging
1544 --enable-profiling gather gcov profiling data
54b362f9 1545 --enable-testing enable testing targets in the makefile
d1e8046f 1546 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1547 --disable-devmapper disable LVM2 device-mapper interaction
1548 --enable-udev_sync enable synchronisation with udev processing
1549 --enable-udev_rules install rule files needed for udev synchronisation
1550 --enable-compat enable support for old device-mapper versions
1551 --enable-units-compat enable output compatibility with old versions that
1552 that do not use KiB-style unit suffixes
1553 --disable-driver disable calls to device-mapper in the kernel
1554 --disable-o_direct disable O_DIRECT
1555 --enable-applib build application library
1556 --enable-cmdlib build shared command library
1557 --enable-pkgconfig install pkgconfig support
1558 --enable-write_install install user writable files
1559 --disable-fsadm disable fsadm
1560 --enable-dmeventd enable the device-mapper event daemon
1561 --disable-selinux disable selinux support
1562 --enable-nls enable Native Language Support
ad6254c5
AK
1563
1564Optional Packages:
1565 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1566 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1567 --with-user=USER set the owner of installed files [USER=]
1568 --with-group=GROUP set the group owner of installed files [GROUP=]
1569 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1570 --with-device-gid=GID set the group used for new device nodes [GID=0]
1571 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1572 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1573 [TYPE=internal]
ad6254c5 1574 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1575 [TYPE=internal]
1576 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1577 [TYPE=internal]
1578 --with-snapshots=TYPE snapshot support: internal/shared/none
1579 [TYPE=internal]
1580 --with-mirrors=TYPE mirror support: internal/shared/none
1581 [TYPE=internal]
1582 --with-replicators=TYPE replicator support: internal/shared/none
1583 [TYPE=none]
1584 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1585 The following cluster manager combinations are valid:
a946372e
AK
1586 * cman,gulm (RHEL4 or equivalent)
1587 * cman (RHEL5 or equivalent)
1588 * cman,corosync,openais (or selection of them)
1091650a 1589 * singlenode (localhost only)
a946372e
AK
1590 * all (autodetect)
1591 * none (disable build)
71082be4 1592 [TYPE=none]
8c4e8a18
FDN
1593 --with-clvmd-pidfile=PATH
1594 clvmd pidfile [/var/run/clvmd.pid]
71082be4
ZK
1595 --with-cmirrord-pidfile=PATH
1596 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1597 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1598 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1599 --with-confdir=DIR configuration files in DIR [/etc]
1600 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1601 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1602 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1603 --with-udev-prefix=UPREFIX
1604 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1605 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1606 --with-dmeventd-pidfile=PATH
1607 dmeventd pidfile [/var/run/dmeventd.pid]
1608 --with-dmeventd-path=PATH
1609 dmeventd path [EPREFIX/sbin/dmeventd]
8bae0a1e 1610 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4
ZK
1611 --with-default-system-dir=DIR
1612 default LVM system directory [/etc/lvm]
1613 --with-default-archive-subdir=SUBDIR
1614 default metadata archive subdir [archive]
1615 --with-default-backup-subdir=SUBDIR
1616 default metadata backup subdir [backup]
1617 --with-default-cache-subdir=SUBDIR
1618 default metadata cache subdir [cache]
1619 --with-default-locking-dir=DIR
1620 default locking directory [/var/lock/lvm]
fea55602
DW
1621 --with-default-data-alignment=NUM
1622 set the default data alignment in MiB [1]
71082be4 1623 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1624
1625Some influential environment variables:
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
25fbec5b 1630 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1631 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
ad6254c5 1633 CPP C preprocessor
e2997b73 1634 PKG_CONFIG path to pkg-config utility
a946372e
AK
1635 PKGCONFIGINIT_CFLAGS
1636 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1637 PKGCONFIGINIT_LIBS
1638 linker flags for PKGCONFIGINIT, overriding pkg-config
1639 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1640 CCS_LIBS linker flags for CCS, overriding pkg-config
1641 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1642 GULM_LIBS linker flags for GULM, overriding pkg-config
1643 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1644 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1645 COROSYNC_CFLAGS
1646 C compiler flags for COROSYNC, overriding pkg-config
1647 COROSYNC_LIBS
1648 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1649 QUORUM_CFLAGS
1650 C compiler flags for QUORUM, overriding pkg-config
1651 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1652 SALCK_CFLAGS
1653 C compiler flags for SALCK, overriding pkg-config
1654 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1655 CONFDB_CFLAGS
1656 C compiler flags for CONFDB, overriding pkg-config
1657 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1658 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1659 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1660 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1661 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1662 SACKPT_CFLAGS
1663 C compiler flags for SACKPT, overriding pkg-config
1664 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1665
1666Use these variables to override the choices made by `configure' or to help
1667it to find libraries and programs with nonstandard names/locations.
1668
1669_ACEOF
7a197a62 1670ac_status=$?
ad6254c5
AK
1671fi
1672
1673if test "$ac_init_help" = "recursive"; then
1674 # If there are subdirs, report their specific --help.
ad6254c5 1675 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1676 test -d "$ac_dir" ||
1677 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1678 continue
ad6254c5
AK
1679 ac_builddir=.
1680
7a197a62
AK
1681case "$ac_dir" in
1682.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1683*)
ec6a6fbe 1684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1685 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1687 case $ac_top_builddir_sub in
1688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1690 esac ;;
1691esac
1692ac_abs_top_builddir=$ac_pwd
1693ac_abs_builddir=$ac_pwd$ac_dir_suffix
1694# for backward compatibility:
1695ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1696
1697case $srcdir in
7a197a62 1698 .) # We are building in place.
ad6254c5 1699 ac_srcdir=.
7a197a62
AK
1700 ac_top_srcdir=$ac_top_builddir_sub
1701 ac_abs_top_srcdir=$ac_pwd ;;
1702 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1703 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1704 ac_top_srcdir=$srcdir
1705 ac_abs_top_srcdir=$srcdir ;;
1706 *) # Relative name.
1707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1708 ac_top_srcdir=$ac_top_build_prefix$srcdir
1709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1710esac
7a197a62
AK
1711ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1712
1713 cd "$ac_dir" || { ac_status=$?; continue; }
1714 # Check for guested configure.
1715 if test -f "$ac_srcdir/configure.gnu"; then
1716 echo &&
1717 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1718 elif test -f "$ac_srcdir/configure"; then
1719 echo &&
1720 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1721 else
ec6a6fbe 1722 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1723 fi || ac_status=$?
1724 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1725 done
1726fi
1727
7a197a62 1728test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1729if $ac_init_version; then
1730 cat <<\_ACEOF
7a197a62 1731configure
ec6a6fbe 1732generated by GNU Autoconf 2.63
ad6254c5 1733
7a197a62 1734Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17352002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1736This configure script is free software; the Free Software Foundation
1737gives unlimited permission to copy, distribute and modify it.
1738_ACEOF
7a197a62 1739 exit
ad6254c5 1740fi
7a197a62 1741cat >config.log <<_ACEOF
ad6254c5
AK
1742This file contains any messages produced by compilers while
1743running configure, to aid debugging if configure makes a mistake.
1744
1745It was created by $as_me, which was
ec6a6fbe 1746generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1747
1748 $ $0 $@
1749
1750_ACEOF
7a197a62 1751exec 5>>config.log
ad6254c5
AK
1752{
1753cat <<_ASUNAME
1754## --------- ##
1755## Platform. ##
1756## --------- ##
1757
1758hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1759uname -m = `(uname -m) 2>/dev/null || echo unknown`
1760uname -r = `(uname -r) 2>/dev/null || echo unknown`
1761uname -s = `(uname -s) 2>/dev/null || echo unknown`
1762uname -v = `(uname -v) 2>/dev/null || echo unknown`
1763
1764/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1765/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1766
1767/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1768/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1769/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1770/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1771/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1772/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1773/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1774
1775_ASUNAME
1776
1777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778for as_dir in $PATH
1779do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
ec6a6fbe 1782 $as_echo "PATH: $as_dir"
ad6254c5 1783done
7a197a62 1784IFS=$as_save_IFS
ad6254c5
AK
1785
1786} >&5
1787
1788cat >&5 <<_ACEOF
1789
1790
1791## ----------- ##
1792## Core tests. ##
1793## ----------- ##
1794
1795_ACEOF
1796
1797
1798# Keep a trace of the command line.
1799# Strip out --no-create and --no-recursion so they do not pile up.
1800# Strip out --silent because we don't want to record it for future runs.
1801# Also quote any args containing shell meta-characters.
1802# Make two passes to allow for proper duplicate-argument suppression.
1803ac_configure_args=
1804ac_configure_args0=
1805ac_configure_args1=
ad6254c5
AK
1806ac_must_keep_next=false
1807for ac_pass in 1 2
1808do
1809 for ac_arg
1810 do
1811 case $ac_arg in
1812 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814 | -silent | --silent | --silen | --sile | --sil)
1815 continue ;;
7a197a62 1816 *\'*)
ec6a6fbe 1817 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1818 esac
1819 case $ac_pass in
1820 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1821 2)
1822 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1823 if test $ac_must_keep_next = true; then
8a2fc586 1824 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1825 else
8a2fc586
AK
1826 case $ac_arg in
1827 *=* | --config-cache | -C | -disable-* | --disable-* \
1828 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1829 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1830 | -with-* | --with-* | -without-* | --without-* | --x)
1831 case "$ac_configure_args0 " in
1832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1833 esac
1834 ;;
1835 -* ) ac_must_keep_next=true ;;
1836 esac
ad6254c5 1837 fi
7a197a62 1838 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1839 ;;
1840 esac
1841 done
1842done
1843$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1844$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1845
1846# When interrupted or exit'd, cleanup temporary files, and complete
1847# config.log. We remove comments because anyway the quotes in there
1848# would cause problems or look ugly.
7a197a62
AK
1849# WARNING: Use '\'' to represent an apostrophe within the trap.
1850# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1851trap 'exit_status=$?
1852 # Save into config.log some information that might help in debugging.
1853 {
1854 echo
1855
1856 cat <<\_ASBOX
1857## ---------------- ##
1858## Cache variables. ##
1859## ---------------- ##
1860_ASBOX
1861 echo
1862 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1863(
1864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1865 eval ac_val=\$$ac_var
1866 case $ac_val in #(
1867 *${as_nl}*)
1868 case $ac_var in #(
ec6a6fbe
AK
1869 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1870$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1871 esac
1872 case $ac_var in #(
1873 _ | IFS | as_nl) ;; #(
ec6a6fbe 1874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1875 *) $as_unset $ac_var ;;
1876 esac ;;
1877 esac
1878 done
ad6254c5 1879 (set) 2>&1 |
7a197a62
AK
1880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1881 *${as_nl}ac_space=\ *)
ad6254c5 1882 sed -n \
7a197a62
AK
1883 "s/'\''/'\''\\\\'\'''\''/g;
1884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1885 ;; #(
ad6254c5 1886 *)
7a197a62 1887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1888 ;;
7a197a62
AK
1889 esac |
1890 sort
1891)
ad6254c5
AK
1892 echo
1893
1894 cat <<\_ASBOX
1895## ----------------- ##
1896## Output variables. ##
1897## ----------------- ##
1898_ASBOX
1899 echo
1900 for ac_var in $ac_subst_vars
1901 do
7a197a62
AK
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
ec6a6fbe 1904 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1905 esac
ec6a6fbe 1906 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1907 done | sort
1908 echo
1909
1910 if test -n "$ac_subst_files"; then
1911 cat <<\_ASBOX
7a197a62
AK
1912## ------------------- ##
1913## File substitutions. ##
1914## ------------------- ##
ad6254c5
AK
1915_ASBOX
1916 echo
1917 for ac_var in $ac_subst_files
1918 do
7a197a62
AK
1919 eval ac_val=\$$ac_var
1920 case $ac_val in
ec6a6fbe 1921 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1922 esac
ec6a6fbe 1923 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1924 done | sort
1925 echo
1926 fi
1927
1928 if test -s confdefs.h; then
1929 cat <<\_ASBOX
1930## ----------- ##
1931## confdefs.h. ##
1932## ----------- ##
1933_ASBOX
1934 echo
7a197a62 1935 cat confdefs.h
ad6254c5
AK
1936 echo
1937 fi
1938 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1939 $as_echo "$as_me: caught signal $ac_signal"
1940 $as_echo "$as_me: exit $exit_status"
ad6254c5 1941 } >&5
7a197a62
AK
1942 rm -f core *.core core.conftest.* &&
1943 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1944 exit $exit_status
7a197a62 1945' 0
ad6254c5
AK
1946for ac_signal in 1 2 13 15; do
1947 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1948done
1949ac_signal=0
1950
1951# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1952rm -f -r conftest* confdefs.h
ad6254c5
AK
1953
1954# Predefined preprocessor variables.
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_NAME "$PACKAGE_NAME"
1958_ACEOF
1959
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1963_ACEOF
1964
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_VERSION "$PACKAGE_VERSION"
1968_ACEOF
8106cdd5 1969
ad6254c5
AK
1970
1971cat >>confdefs.h <<_ACEOF
1972#define PACKAGE_STRING "$PACKAGE_STRING"
1973_ACEOF
1974
1975
1976cat >>confdefs.h <<_ACEOF
1977#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1978_ACEOF
1979
1980
1981# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1982# Prefer an explicitly selected file to automatically selected ones.
1983ac_site_file1=NONE
1984ac_site_file2=NONE
7a197a62 1985if test -n "$CONFIG_SITE"; then
ec6a6fbe 1986 ac_site_file1=$CONFIG_SITE
7a197a62 1987elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1988 ac_site_file1=$prefix/share/config.site
1989 ac_site_file2=$prefix/etc/config.site
7a197a62 1990else
ec6a6fbe
AK
1991 ac_site_file1=$ac_default_prefix/share/config.site
1992 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1993fi
ec6a6fbe 1994for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1995do
ec6a6fbe 1996 test "x$ac_site_file" = xNONE && continue
795ca3e5 1997 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1998 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1999$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 2000 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
2001 . "$ac_site_file"
2002 fi
2003done
2004
2005if test -r "$cache_file"; then
ad6254c5
AK
2006 # Some versions of bash will fail to source /dev/null (special
2007 # files actually), so we avoid doing that.
2008 if test -f "$cache_file"; then
ec6a6fbe
AK
2009 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2010$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 2011 case $cache_file in
7a197a62
AK
2012 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2013 *) . "./$cache_file";;
ad6254c5
AK
2014 esac
2015 fi
795ca3e5 2016else
ec6a6fbe
AK
2017 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2018$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2019 >$cache_file
2020fi
2021
2022# Check that the precious variables saved in the cache have kept the same
2023# value.
2024ac_cache_corrupted=false
7a197a62 2025for ac_var in $ac_precious_vars; do
ad6254c5
AK
2026 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2027 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2028 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2029 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2030 case $ac_old_set,$ac_new_set in
2031 set,)
ec6a6fbe
AK
2032 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2033$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2034 ac_cache_corrupted=: ;;
2035 ,set)
ec6a6fbe
AK
2036 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2037$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2038 ac_cache_corrupted=: ;;
2039 ,);;
2040 *)
2041 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2042 # differences in whitespace do not lead to failure.
2043 ac_old_val_w=`echo x $ac_old_val`
2044 ac_new_val_w=`echo x $ac_new_val`
2045 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2046 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2047$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2048 ac_cache_corrupted=:
2049 else
2050 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2051$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2052 eval $ac_var=\$ac_old_val
2053 fi
2054 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2055$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2056 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2057$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2058 fi;;
2059 esac
2060 # Pass precious variables to config.status.
2061 if test "$ac_new_set" = set; then
2062 case $ac_new_val in
ec6a6fbe 2063 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2064 *) ac_arg=$ac_var=$ac_new_val ;;
2065 esac
2066 case " $ac_configure_args " in
2067 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2068 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2069 esac
2070 fi
2071done
2072if $ac_cache_corrupted; then
ec6a6fbe
AK
2073 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2075 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2076$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2077 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2078$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2079 { (exit 1); exit 1; }; }
795ca3e5
AK
2080fi
2081
ad6254c5
AK
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
7a197a62
AK
2098ac_ext=c
2099ac_cpp='$CPP $CPPFLAGS'
2100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2102ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2103
795ca3e5
AK
2104
2105
7a197a62 2106ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2107
2108
80992638 2109################################################################################
795ca3e5 2110ac_aux_dir=
7a197a62
AK
2111for ac_dir in autoconf "$srcdir"/autoconf; do
2112 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2113 ac_aux_dir=$ac_dir
2114 ac_install_sh="$ac_aux_dir/install-sh -c"
2115 break
7a197a62 2116 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2117 ac_aux_dir=$ac_dir
2118 ac_install_sh="$ac_aux_dir/install.sh -c"
2119 break
7a197a62 2120 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2121 ac_aux_dir=$ac_dir
2122 ac_install_sh="$ac_aux_dir/shtool install -c"
2123 break
795ca3e5
AK
2124 fi
2125done
2126if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2127 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2128$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2129 { (exit 1); exit 1; }; }
795ca3e5 2130fi
7a197a62
AK
2131
2132# These three variables are undocumented and unsupported,
2133# and are intended to be withdrawn in a future Autoconf release.
2134# They can cause serious problems if a builder's source tree is in a directory
2135# whose full name contains unusual characters.
2136ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2137ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2138ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2139
8ce0cbda
AK
2140
2141
ad6254c5 2142################################################################################
8ce0cbda 2143# Make sure we can run config.sub.
7a197a62 2144$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2145 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2147 { (exit 1); exit 1; }; }
2148
ec6a6fbe
AK
2149{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2150$as_echo_n "checking build system type... " >&6; }
ad6254c5 2151if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2152 $as_echo_n "(cached) " >&6
ad6254c5 2153else
7a197a62
AK
2154 ac_build_alias=$build_alias
2155test "x$ac_build_alias" = x &&
2156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2158 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2160 { (exit 1); exit 1; }; }
7a197a62 2161ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2162 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2164 { (exit 1); exit 1; }; }
2165
2166fi
ec6a6fbe
AK
2167{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2169case $ac_cv_build in
2170*-*-*) ;;
ec6a6fbe
AK
2171*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2173 { (exit 1); exit 1; }; };;
2174esac
ad6254c5 2175build=$ac_cv_build
7a197a62
AK
2176ac_save_IFS=$IFS; IFS='-'
2177set x $ac_cv_build
2178shift
2179build_cpu=$1
2180build_vendor=$2
2181shift; shift
2182# Remember, the first character of IFS is used to create $*,
2183# except with old shells:
2184build_os=$*
2185IFS=$ac_save_IFS
2186case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2187
2188
ec6a6fbe
AK
2189{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2190$as_echo_n "checking host system type... " >&6; }
ad6254c5 2191if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2192 $as_echo_n "(cached) " >&6
ad6254c5 2193else
7a197a62
AK
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2196else
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2198 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2200 { (exit 1); exit 1; }; }
7a197a62 2201fi
ad6254c5
AK
2202
2203fi
ec6a6fbe
AK
2204{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2206case $ac_cv_host in
2207*-*-*) ;;
ec6a6fbe
AK
2208*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2210 { (exit 1); exit 1; }; };;
2211esac
ad6254c5 2212host=$ac_cv_host
7a197a62
AK
2213ac_save_IFS=$IFS; IFS='-'
2214set x $ac_cv_host
2215shift
2216host_cpu=$1
2217host_vendor=$2
2218shift; shift
2219# Remember, the first character of IFS is used to create $*,
2220# except with old shells:
2221host_os=$*
2222IFS=$ac_save_IFS
2223case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2224
2225
ec6a6fbe
AK
2226{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2227$as_echo_n "checking target system type... " >&6; }
ad6254c5 2228if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2229 $as_echo_n "(cached) " >&6
ad6254c5 2230else
7a197a62
AK
2231 if test "x$target_alias" = x; then
2232 ac_cv_target=$ac_cv_host
2233else
2234 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2235 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2237 { (exit 1); exit 1; }; }
7a197a62 2238fi
8ce0cbda 2239
ad6254c5 2240fi
ec6a6fbe
AK
2241{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2243case $ac_cv_target in
2244*-*-*) ;;
ec6a6fbe
AK
2245*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2247 { (exit 1); exit 1; }; };;
2248esac
ad6254c5 2249target=$ac_cv_target
7a197a62
AK
2250ac_save_IFS=$IFS; IFS='-'
2251set x $ac_cv_target
2252shift
2253target_cpu=$1
2254target_vendor=$2
2255shift; shift
2256# Remember, the first character of IFS is used to create $*,
2257# except with old shells:
2258target_os=$*
2259IFS=$ac_save_IFS
2260case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2261
8ce0cbda 2262
ad6254c5
AK
2263# The aliases save the names the user supplied, while $host etc.
2264# will get canonicalized.
2265test -n "$target_alias" &&
8ce0cbda
AK
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2267 NONENONEs,x,x, &&
2268 program_prefix=${target_alias}-
2269
8ce0cbda
AK
2270case "$host_os" in
2271 linux*)
7f54ef36 2272 CFLAGS="$CFLAGS"
8ce0cbda
AK
2273 COPTIMISE_FLAG="-O2"
2274 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2275 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2276 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2277 LDDEPS="$LDDEPS .export.sym"
2278 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2279 LIB_SUFFIX=so
8ce0cbda
AK
2280 DEVMAPPER=yes
2281 ODIRECT=yes
d0191583 2282 DM_IOCTLS=yes
8ce0cbda
AK
2283 SELINUX=yes
2284 CLUSTER=internal
93bd259b 2285 FSADM=yes
d0191583 2286 ;;
8ce0cbda
AK
2287 darwin*)
2288 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2289 COPTIMISE_FLAG="-O2"
2290 CLDFLAGS="$CLDFLAGS"
2291 CLDWHOLEARCHIVE="-all_load"
2292 CLDNOWHOLEARCHIVE=
d0191583 2293 LIB_SUFFIX=dylib
a653923f 2294 DEVMAPPER=yes
8ce0cbda 2295 ODIRECT=no
d0191583 2296 DM_IOCTLS=no
8ce0cbda
AK
2297 SELINUX=no
2298 CLUSTER=none
d0191583
JM
2299 FSADM=no
2300 ;;
8ce0cbda
AK
2301esac
2302
80992638 2303################################################################################
ec6a6fbe
AK
2304{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2305$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2306if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2307 $as_echo_n "(cached) " >&6
5951ef33
AK
2308else
2309 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2310 for ac_i in 1 2 3 4 5 6 7; do
2311 ac_script="$ac_script$as_nl$ac_script"
2312 done
ec6a6fbe 2313 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2314 $as_unset ac_script || ac_script=
ec6a6fbe 2315 if test -z "$SED"; then
5951ef33 2316 ac_path_SED_found=false
ec6a6fbe
AK
2317 # Loop through the user's path and test for each of PROGNAME-LIST
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2319for as_dir in $PATH
2320do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 for ac_prog in sed gsed; do
ec6a6fbe
AK
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2326 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2327# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2328 # Check for GNU $ac_path_SED
2329case `"$ac_path_SED" --version 2>&1` in
2330*GNU*)
2331 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2332*)
2333 ac_count=0
ec6a6fbe 2334 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2335 while :
2336 do
2337 cat "conftest.in" "conftest.in" >"conftest.tmp"
2338 mv "conftest.tmp" "conftest.in"
2339 cp "conftest.in" "conftest.nl"
ec6a6fbe 2340 $as_echo '' >> "conftest.nl"
5951ef33
AK
2341 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2343 ac_count=`expr $ac_count + 1`
2344 if test $ac_count -gt ${ac_path_SED_max-0}; then
2345 # Best one so far, save it but keep looking for a better one
2346 ac_cv_path_SED="$ac_path_SED"
2347 ac_path_SED_max=$ac_count
2348 fi
2349 # 10*(2^10) chars as input seems more than enough
2350 test $ac_count -gt 10 && break
2351 done
2352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2353esac
2354
ec6a6fbe
AK
2355 $ac_path_SED_found && break 3
2356 done
5951ef33
AK
2357 done
2358done
5951ef33 2359IFS=$as_save_IFS
ec6a6fbe
AK
2360 if test -z "$ac_cv_path_SED"; then
2361 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2362$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2363 { (exit 1); exit 1; }; }
ec6a6fbe 2364 fi
5951ef33
AK
2365else
2366 ac_cv_path_SED=$SED
2367fi
2368
2369fi
ec6a6fbe
AK
2370{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2371$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2372 SED="$ac_cv_path_SED"
2373 rm -f conftest.sed
2374
ad6254c5 2375for ac_prog in gawk mawk nawk awk
795ca3e5 2376do
ad6254c5 2377 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2378set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2380$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2381if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2382 $as_echo_n "(cached) " >&6
795ca3e5
AK
2383else
2384 if test -n "$AWK"; then
2385 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2386else
ad6254c5
AK
2387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2394 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2396 break 2
2397 fi
2398done
2399done
7a197a62 2400IFS=$as_save_IFS
ad6254c5 2401
795ca3e5
AK
2402fi
2403fi
ad6254c5 2404AWK=$ac_cv_prog_AWK
795ca3e5 2405if test -n "$AWK"; then
ec6a6fbe
AK
2406 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2407$as_echo "$AWK" >&6; }
795ca3e5 2408else
ec6a6fbe
AK
2409 { $as_echo "$as_me:$LINENO: result: no" >&5
2410$as_echo "no" >&6; }
795ca3e5
AK
2411fi
2412
7a197a62 2413
ad6254c5
AK
2414 test -n "$AWK" && break
2415done
2416
2417ac_ext=c
2418ac_cpp='$CPP $CPPFLAGS'
2419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2426$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2427if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2428 $as_echo_n "(cached) " >&6
ad6254c5
AK
2429else
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2432else
2433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434for as_dir in $PATH
2435do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2442 break 2
2443 fi
2444done
8106cdd5 2445done
7a197a62 2446IFS=$as_save_IFS
8106cdd5 2447
ad6254c5
AK
2448fi
2449fi
2450CC=$ac_cv_prog_CC
2451if test -n "$CC"; then
ec6a6fbe
AK
2452 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2453$as_echo "$CC" >&6; }
ad6254c5 2454else
ec6a6fbe
AK
2455 { $as_echo "$as_me:$LINENO: result: no" >&5
2456$as_echo "no" >&6; }
ad6254c5
AK
2457fi
2458
7a197a62 2459
ad6254c5
AK
2460fi
2461if test -z "$ac_cv_prog_CC"; then
2462 ac_ct_CC=$CC
2463 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2464set dummy gcc; ac_word=$2
ec6a6fbe
AK
2465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2466$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2468 $as_echo_n "(cached) " >&6
ad6254c5
AK
2469else
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2480 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2482 break 2
2483 fi
2484done
2485done
7a197a62 2486IFS=$as_save_IFS
ad6254c5
AK
2487
2488fi
2489fi
2490ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2492 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2493$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2494else
ec6a6fbe
AK
2495 { $as_echo "$as_me:$LINENO: result: no" >&5
2496$as_echo "no" >&6; }
ad6254c5
AK
2497fi
2498
7a197a62
AK
2499 if test "x$ac_ct_CC" = x; then
2500 CC=""
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503yes:)
ec6a6fbe
AK
2504{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2506ac_tool_warned=yes ;;
2507esac
2508 CC=$ac_ct_CC
2509 fi
ad6254c5
AK
2510else
2511 CC="$ac_cv_prog_CC"
2512fi
2513
2514if test -z "$CC"; then
7a197a62
AK
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2517set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2519$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2520if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2521 $as_echo_n "(cached) " >&6
8106cdd5
AK
2522else
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2525else
ad6254c5
AK
2526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527for as_dir in $PATH
2528do
2529 IFS=$as_save_IFS
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2533 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2535 break 2
2536 fi
2537done
2538done
7a197a62 2539IFS=$as_save_IFS
ad6254c5 2540
8106cdd5
AK
2541fi
2542fi
ad6254c5 2543CC=$ac_cv_prog_CC
8106cdd5 2544if test -n "$CC"; then
ec6a6fbe
AK
2545 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2546$as_echo "$CC" >&6; }
ad6254c5 2547else
ec6a6fbe
AK
2548 { $as_echo "$as_me:$LINENO: result: no" >&5
2549$as_echo "no" >&6; }
ad6254c5
AK
2550fi
2551
8106cdd5 2552
7a197a62 2553 fi
ad6254c5 2554fi
795ca3e5
AK
2555if test -z "$CC"; then
2556 # Extract the first word of "cc", so it can be a program name with args.
2557set dummy cc; ac_word=$2
ec6a6fbe
AK
2558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2559$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2560if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2561 $as_echo_n "(cached) " >&6
795ca3e5
AK
2562else
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
795ca3e5 2566 ac_prog_rejected=no
ad6254c5
AK
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2575 ac_prog_rejected=yes
2576 continue
2577 fi
2578 ac_cv_prog_CC="cc"
ec6a6fbe 2579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2580 break 2
2581 fi
2582done
2583done
7a197a62 2584IFS=$as_save_IFS
ad6254c5 2585
795ca3e5
AK
2586if test $ac_prog_rejected = yes; then
2587 # We found a bogon in the path, so make sure we never use it.
2588 set dummy $ac_cv_prog_CC
2589 shift
ad6254c5 2590 if test $# != 0; then
795ca3e5
AK
2591 # We chose a different compiler from the bogus one.
2592 # However, it has the same basename, so the bogon will be chosen
2593 # first if we set CC to just the basename; use the full file name.
2594 shift
ad6254c5 2595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2596 fi
2597fi
2598fi
2599fi
ad6254c5 2600CC=$ac_cv_prog_CC
795ca3e5 2601if test -n "$CC"; then
ec6a6fbe
AK
2602 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2603$as_echo "$CC" >&6; }
795ca3e5 2604else
ec6a6fbe
AK
2605 { $as_echo "$as_me:$LINENO: result: no" >&5
2606$as_echo "no" >&6; }
795ca3e5
AK
2607fi
2608
7a197a62 2609
ad6254c5
AK
2610fi
2611if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
7a197a62 2613 for ac_prog in cl.exe
ad6254c5
AK
2614 do
2615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2616set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2617{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2618$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2619if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2620 $as_echo_n "(cached) " >&6
795ca3e5
AK
2621else
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2624else
ad6254c5
AK
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628 IFS=$as_save_IFS
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2634 break 2
2635 fi
2636done
2637done
7a197a62 2638IFS=$as_save_IFS
ad6254c5 2639
795ca3e5
AK
2640fi
2641fi
ad6254c5 2642CC=$ac_cv_prog_CC
795ca3e5 2643if test -n "$CC"; then
ec6a6fbe
AK
2644 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2645$as_echo "$CC" >&6; }
795ca3e5 2646else
ec6a6fbe
AK
2647 { $as_echo "$as_me:$LINENO: result: no" >&5
2648$as_echo "no" >&6; }
795ca3e5 2649fi
ad6254c5 2650
7a197a62 2651
ad6254c5
AK
2652 test -n "$CC" && break
2653 done
2654fi
2655if test -z "$CC"; then
2656 ac_ct_CC=$CC
7a197a62 2657 for ac_prog in cl.exe
ad6254c5
AK
2658do
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2661{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2662$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2663if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2664 $as_echo_n "(cached) " >&6
ad6254c5
AK
2665else
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2676 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2677 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2678 break 2
795ca3e5 2679 fi
ad6254c5
AK
2680done
2681done
7a197a62 2682IFS=$as_save_IFS
ad6254c5
AK
2683
2684fi
2685fi
2686ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2688 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2689$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2690else
ec6a6fbe
AK
2691 { $as_echo "$as_me:$LINENO: result: no" >&5
2692$as_echo "no" >&6; }
795ca3e5
AK
2693fi
2694
7a197a62 2695
ad6254c5
AK
2696 test -n "$ac_ct_CC" && break
2697done
795ca3e5 2698
7a197a62
AK
2699 if test "x$ac_ct_CC" = x; then
2700 CC=""
2701 else
2702 case $cross_compiling:$ac_tool_warned in
2703yes:)
ec6a6fbe
AK
2704{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2706ac_tool_warned=yes ;;
2707esac
2708 CC=$ac_ct_CC
2709 fi
ad6254c5
AK
2710fi
2711
2712fi
2713
2714
ec6a6fbe
AK
2715test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2716$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2718See \`config.log' for more details." >&5
ec6a6fbe 2719$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2720See \`config.log' for more details." >&2;}
ec6a6fbe 2721 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2722
2723# Provide some information about the compiler.
ec6a6fbe
AK
2724$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2725set X $ac_compile
2726ac_compiler=$2
7a197a62
AK
2727{ (ac_try="$ac_compiler --version >&5"
2728case "(($ac_try" in
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2731esac
ec6a6fbe
AK
2732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2733$as_echo "$ac_try_echo") >&5
7a197a62 2734 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2735 ac_status=$?
ec6a6fbe 2736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2737 (exit $ac_status); }
7a197a62
AK
2738{ (ac_try="$ac_compiler -v >&5"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
ec6a6fbe
AK
2743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2744$as_echo "$ac_try_echo") >&5
7a197a62 2745 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2746 ac_status=$?
ec6a6fbe 2747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2748 (exit $ac_status); }
7a197a62
AK
2749{ (ac_try="$ac_compiler -V >&5"
2750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
ec6a6fbe
AK
2754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2755$as_echo "$ac_try_echo") >&5
7a197a62 2756 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2757 ac_status=$?
ec6a6fbe 2758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2759 (exit $ac_status); }
2760
2761cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2762/* confdefs.h. */
2763_ACEOF
2764cat confdefs.h >>conftest.$ac_ext
2765cat >>conftest.$ac_ext <<_ACEOF
2766/* end confdefs.h. */
2767
2768int
2769main ()
2770{
2771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776ac_clean_files_save=$ac_clean_files
ec6a6fbe 2777ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2778# Try to create an executable without -o first, disregard a.out.
2779# It will help us diagnose broken compilers, and finding out an intuition
2780# of exeext.
ec6a6fbe
AK
2781{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2782$as_echo_n "checking for C compiler default output file name... " >&6; }
2783ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2784
2785# The possible output files:
2786ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2787
7a197a62
AK
2788ac_rmfiles=
2789for ac_file in $ac_files
2790do
2791 case $ac_file in
ec6a6fbe 2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2793 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2794 esac
2795done
2796rm -f $ac_rmfiles
2797
2798if { (ac_try="$ac_link_default"
2799case "(($ac_try" in
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2802esac
ec6a6fbe
AK
2803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2804$as_echo "$ac_try_echo") >&5
7a197a62 2805 (eval "$ac_link_default") 2>&5
ad6254c5 2806 ac_status=$?
ec6a6fbe 2807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2808 (exit $ac_status); }; then
7a197a62
AK
2809 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2810# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2811# in a Makefile. We should not override ac_cv_exeext if it was cached,
2812# so that the user can short-circuit this test for compilers unknown to
2813# Autoconf.
25fbec5b 2814for ac_file in $ac_files ''
ad6254c5
AK
2815do
2816 test -f "$ac_file" || continue
2817 case $ac_file in
ec6a6fbe 2818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2819 ;;
ad6254c5 2820 [ab].out )
8a2fc586
AK
2821 # We found the default executable, but exeext='' is most
2822 # certainly right.
2823 break;;
ad6254c5 2824 *.* )
7a197a62
AK
2825 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2826 then :; else
2827 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2828 fi
2829 # We set ac_cv_exeext here because the later test for it is not
2830 # safe: cross compilers may not add the suffix if given an `-o'
2831 # argument, so we may need to know it at that point already.
2832 # Even if this section looks crufty: it has the advantage of
2833 # actually working.
8a2fc586 2834 break;;
ad6254c5 2835 * )
8a2fc586 2836 break;;
ad6254c5
AK
2837 esac
2838done
7a197a62
AK
2839test "$ac_cv_exeext" = no && ac_cv_exeext=
2840
ad6254c5 2841else
25fbec5b
AK
2842 ac_file=''
2843fi
2844
ec6a6fbe
AK
2845{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2846$as_echo "$ac_file" >&6; }
25fbec5b 2847if test -z "$ac_file"; then
ec6a6fbe 2848 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2849sed 's/^/| /' conftest.$ac_ext >&5
2850
ec6a6fbe
AK
2851{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2854See \`config.log' for more details." >&5
ec6a6fbe 2855$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2856See \`config.log' for more details." >&2;}
ec6a6fbe 2857 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2858fi
2859
2860ac_exeext=$ac_cv_exeext
ad6254c5 2861
7a197a62 2862# Check that the compiler produces executables we can run. If not, either
ad6254c5 2863# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2864{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2865$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2866# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2867# If not cross compiling, check that we can run a simple program.
2868if test "$cross_compiling" != yes; then
2869 if { ac_try='./$ac_file'
7a197a62
AK
2870 { (case "(($ac_try" in
2871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2872 *) ac_try_echo=$ac_try;;
2873esac
ec6a6fbe
AK
2874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2875$as_echo "$ac_try_echo") >&5
7a197a62 2876 (eval "$ac_try") 2>&5
ad6254c5 2877 ac_status=$?
ec6a6fbe 2878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2879 (exit $ac_status); }; }; then
2880 cross_compiling=no
795ca3e5 2881 else
ad6254c5
AK
2882 if test "$cross_compiling" = maybe; then
2883 cross_compiling=yes
2884 else
ec6a6fbe
AK
2885 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2886$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2887{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2888If you meant to cross compile, use \`--host'.
2889See \`config.log' for more details." >&5
ec6a6fbe 2890$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2891If you meant to cross compile, use \`--host'.
2892See \`config.log' for more details." >&2;}
ec6a6fbe 2893 { (exit 1); exit 1; }; }; }
ad6254c5 2894 fi
795ca3e5 2895 fi
80992638 2896fi
ec6a6fbe
AK
2897{ $as_echo "$as_me:$LINENO: result: yes" >&5
2898$as_echo "yes" >&6; }
ad6254c5 2899
ec6a6fbe 2900rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2901ac_clean_files=$ac_clean_files_save
7a197a62 2902# Check that the compiler produces executables we can run. If not, either
ad6254c5 2903# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2904{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2905$as_echo_n "checking whether we are cross compiling... " >&6; }
2906{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2907$as_echo "$cross_compiling" >&6; }
7a197a62 2908
ec6a6fbe
AK
2909{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2910$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2911if { (ac_try="$ac_link"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
ec6a6fbe
AK
2916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917$as_echo "$ac_try_echo") >&5
7a197a62 2918 (eval "$ac_link") 2>&5
ad6254c5 2919 ac_status=$?
ec6a6fbe 2920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2921 (exit $ac_status); }; then
2922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2923# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2924# work properly (i.e., refer to `conftest.exe'), while it won't with
2925# `rm'.
2926for ac_file in conftest.exe conftest conftest.*; do
2927 test -f "$ac_file" || continue
2928 case $ac_file in
ec6a6fbe 2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2931 break;;
ad6254c5
AK
2932 * ) break;;
2933 esac
2934done
80992638 2935else
ec6a6fbe
AK
2936 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2938{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2939See \`config.log' for more details." >&5
ec6a6fbe 2940$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2941See \`config.log' for more details." >&2;}
ec6a6fbe 2942 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2943fi
2944
2945rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2946{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2947$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2948
2949rm -f conftest.$ac_ext
2950EXEEXT=$ac_cv_exeext
2951ac_exeext=$EXEEXT
ec6a6fbe
AK
2952{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2953$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2954if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2955 $as_echo_n "(cached) " >&6
795ca3e5 2956else
ad6254c5 2957 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2958/* confdefs.h. */
2959_ACEOF
2960cat confdefs.h >>conftest.$ac_ext
2961cat >>conftest.$ac_ext <<_ACEOF
2962/* end confdefs.h. */
2963
2964int
2965main ()
2966{
2967
2968 ;
2969 return 0;
2970}
2971_ACEOF
2972rm -f conftest.o conftest.obj
7a197a62
AK
2973if { (ac_try="$ac_compile"
2974case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2977esac
ec6a6fbe
AK
2978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2979$as_echo "$ac_try_echo") >&5
7a197a62 2980 (eval "$ac_compile") 2>&5
ad6254c5 2981 ac_status=$?
ec6a6fbe 2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2983 (exit $ac_status); }; then
7a197a62
AK
2984 for ac_file in conftest.o conftest.obj conftest.*; do
2985 test -f "$ac_file" || continue;
ad6254c5 2986 case $ac_file in
ec6a6fbe 2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2989 break;;
2990 esac
2991done
2992else
ec6a6fbe 2993 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2994sed 's/^/| /' conftest.$ac_ext >&5
2995
ec6a6fbe
AK
2996{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2998{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2999See \`config.log' for more details." >&5
ec6a6fbe 3000$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 3001See \`config.log' for more details." >&2;}
ec6a6fbe 3002 { (exit 1); exit 1; }; }; }
ad6254c5
AK
3003fi
3004
3005rm -f conftest.$ac_cv_objext conftest.$ac_ext
3006fi
ec6a6fbe
AK
3007{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3008$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
3009OBJEXT=$ac_cv_objext
3010ac_objext=$OBJEXT
ec6a6fbe
AK
3011{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3012$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 3013if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 3014 $as_echo_n "(cached) " >&6
ad6254c5
AK
3015else
3016 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */
3022
3023int
3024main ()
3025{
3026#ifndef __GNUC__
3027 choke me
3028#endif
80992638 3029
ad6254c5
AK
3030 ;
3031 return 0;
3032}
3033_ACEOF
3034rm -f conftest.$ac_objext
7a197a62
AK
3035if { (ac_try="$ac_compile"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
ec6a6fbe
AK
3040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041$as_echo "$ac_try_echo") >&5
7a197a62 3042 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3043 ac_status=$?
8a2fc586
AK
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
ec6a6fbe 3047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3048 (exit $ac_status); } && {
3049 test -z "$ac_c_werror_flag" ||
3050 test ! -s conftest.err
3051 } && test -s conftest.$ac_objext; then
ad6254c5 3052 ac_compiler_gnu=yes
80992638 3053else
ec6a6fbe 3054 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3055sed 's/^/| /' conftest.$ac_ext >&5
3056
7a197a62 3057 ac_compiler_gnu=no
8106cdd5 3058fi
7a197a62
AK
3059
3060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3061ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3062
ad6254c5 3063fi
ec6a6fbe
AK
3064{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3065$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3066if test $ac_compiler_gnu = yes; then
3067 GCC=yes
3068else
3069 GCC=
3070fi
ad6254c5
AK
3071ac_test_CFLAGS=${CFLAGS+set}
3072ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3073{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3074$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3075if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3076 $as_echo_n "(cached) " >&6
795ca3e5 3077else
7a197a62
AK
3078 ac_save_c_werror_flag=$ac_c_werror_flag
3079 ac_c_werror_flag=yes
3080 ac_cv_prog_cc_g=no
3081 CFLAGS="-g"
3082 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3083/* confdefs.h. */
3084_ACEOF
3085cat confdefs.h >>conftest.$ac_ext
3086cat >>conftest.$ac_ext <<_ACEOF
3087/* end confdefs.h. */
3088
3089int
3090main ()
3091{
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097rm -f conftest.$ac_objext
7a197a62
AK
3098if { (ac_try="$ac_compile"
3099case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
ec6a6fbe
AK
3103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3104$as_echo "$ac_try_echo") >&5
7a197a62 3105 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3106 ac_status=$?
8a2fc586
AK
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
ec6a6fbe 3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3111 (exit $ac_status); } && {
3112 test -z "$ac_c_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
7a197a62
AK
3115 ac_cv_prog_cc_g=yes
3116else
ec6a6fbe 3117 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3118sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 CFLAGS=""
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
ec6a6fbe
AK
3142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143$as_echo "$ac_try_echo") >&5
7a197a62 3144 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3145 ac_status=$?
7a197a62
AK
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
ec6a6fbe 3149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3150 (exit $ac_status); } && {
3151 test -z "$ac_c_werror_flag" ||
3152 test ! -s conftest.err
3153 } && test -s conftest.$ac_objext; then
7a197a62
AK
3154 :
3155else
ec6a6fbe 3156 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3157sed 's/^/| /' conftest.$ac_ext >&5
3158
3159 ac_c_werror_flag=$ac_save_c_werror_flag
3160 CFLAGS="-g"
3161 cat >conftest.$ac_ext <<_ACEOF
3162/* confdefs.h. */
3163_ACEOF
3164cat confdefs.h >>conftest.$ac_ext
3165cat >>conftest.$ac_ext <<_ACEOF
3166/* end confdefs.h. */
3167
3168int
3169main ()
3170{
3171
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext
3177if { (ac_try="$ac_compile"
3178case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181esac
ec6a6fbe
AK
3182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3183$as_echo "$ac_try_echo") >&5
7a197a62 3184 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3185 ac_status=$?
7a197a62
AK
3186 grep -v '^ *+' conftest.er1 >conftest.err
3187 rm -f conftest.er1
3188 cat conftest.err >&5
ec6a6fbe 3189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3190 (exit $ac_status); } && {
3191 test -z "$ac_c_werror_flag" ||
3192 test ! -s conftest.err
3193 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3194 ac_cv_prog_cc_g=yes
3195else
ec6a6fbe 3196 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3197sed 's/^/| /' conftest.$ac_ext >&5
80992638 3198
7a197a62
AK
3199
3200fi
3201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3206fi
7a197a62
AK
3207
3208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3210fi
ec6a6fbe
AK
3211{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3212$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3213if test "$ac_test_CFLAGS" = set; then
ad6254c5 3214 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3215elif test $ac_cv_prog_cc_g = yes; then
3216 if test "$GCC" = yes; then
3217 CFLAGS="-g -O2"
3218 else
3219 CFLAGS="-g"
3220 fi
3221else
3222 if test "$GCC" = yes; then
3223 CFLAGS="-O2"
3224 else
3225 CFLAGS=
3226 fi
3227fi
ec6a6fbe
AK
3228{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3229$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3230if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3231 $as_echo_n "(cached) " >&6
ad6254c5 3232else
7a197a62 3233 ac_cv_prog_cc_c89=no
ad6254c5
AK
3234ac_save_CC=$CC
3235cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3236/* confdefs.h. */
3237_ACEOF
3238cat confdefs.h >>conftest.$ac_ext
3239cat >>conftest.$ac_ext <<_ACEOF
3240/* end confdefs.h. */
3241#include <stdarg.h>
3242#include <stdio.h>
3243#include <sys/types.h>
3244#include <sys/stat.h>
3245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3246struct buf { int x; };
3247FILE * (*rcsopen) (struct buf *, struct stat *, int);
3248static char *e (p, i)
3249 char **p;
3250 int i;
3251{
3252 return p[i];
3253}
3254static char *f (char * (*g) (char **, int), char **p, ...)
3255{
3256 char *s;
3257 va_list v;
3258 va_start (v,p);
3259 s = g (p, va_arg (v,int));
3260 va_end (v);
3261 return s;
3262}
8a2fc586
AK
3263
3264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3265 function prototypes and stuff, but not '\xHH' hex character constants.
3266 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3267 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3269 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3270 that's true only with -std. */
8a2fc586
AK
3271int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3272
7a197a62
AK
3273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3274 inside strings and character constants. */
3275#define FOO(x) 'x'
3276int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3277
ad6254c5
AK
3278int test (int i, double x);
3279struct s1 {int (*f) (int a);};
3280struct s2 {int (*f) (double a);};
3281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3282int argc;
3283char **argv;
3284int
3285main ()
3286{
3287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3288 ;
3289 return 0;
3290}
3291_ACEOF
7a197a62
AK
3292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3294do
3295 CC="$ac_save_CC $ac_arg"
3296 rm -f conftest.$ac_objext
7a197a62
AK
3297if { (ac_try="$ac_compile"
3298case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301esac
ec6a6fbe
AK
3302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303$as_echo "$ac_try_echo") >&5
7a197a62 3304 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3305 ac_status=$?
8a2fc586
AK
3306 grep -v '^ *+' conftest.er1 >conftest.err
3307 rm -f conftest.er1
3308 cat conftest.err >&5
ec6a6fbe 3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3310 (exit $ac_status); } && {
3311 test -z "$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3313 } && test -s conftest.$ac_objext; then
7a197a62 3314 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3315else
ec6a6fbe 3316 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3317sed 's/^/| /' conftest.$ac_ext >&5
3318
7a197a62 3319
ad6254c5 3320fi
7a197a62
AK
3321
3322rm -f core conftest.err conftest.$ac_objext
3323 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3324done
7a197a62 3325rm -f conftest.$ac_ext
ad6254c5
AK
3326CC=$ac_save_CC
3327
3328fi
7a197a62
AK
3329# AC_CACHE_VAL
3330case "x$ac_cv_prog_cc_c89" in
3331 x)
ec6a6fbe
AK
3332 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3333$as_echo "none needed" >&6; } ;;
7a197a62 3334 xno)
ec6a6fbe
AK
3335 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3336$as_echo "unsupported" >&6; } ;;
ad6254c5 3337 *)
7a197a62 3338 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3339 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3340$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3341esac
3342
ad6254c5 3343
ad6254c5
AK
3344ac_ext=c
3345ac_cpp='$CPP $CPPFLAGS'
3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3349
d0191583
JM
3350
3351
3352ac_ext=c
3353ac_cpp='$CPP $CPPFLAGS'
3354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3357{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3358$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3359# On Suns, sometimes $CPP names a directory.
3360if test -n "$CPP" && test -d "$CPP"; then
3361 CPP=
3362fi
3363if test -z "$CPP"; then
3364 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3365 $as_echo_n "(cached) " >&6
ad6254c5 3366else
d0191583
JM
3367 # Double quotes because CPP needs to be expanded
3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3369 do
3370 ac_preproc_ok=false
3371for ac_c_preproc_warn_flag in '' yes
ad6254c5 3372do
d0191583
JM
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
3379 cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
3385#ifdef __STDC__
3386# include <limits.h>
3387#else
3388# include <assert.h>
3389#endif
3390 Syntax error
3391_ACEOF
3392if { (ac_try="$ac_cpp conftest.$ac_ext"
3393case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
ad6254c5 3396esac
ec6a6fbe
AK
3397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3398$as_echo "$ac_try_echo") >&5
d0191583
JM
3399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 ac_status=$?
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
ec6a6fbe 3404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3405 (exit $ac_status); } >/dev/null && {
3406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3407 test ! -s conftest.err
3408 }; then
3409 :
3410else
ec6a6fbe 3411 $as_echo "$as_me: failed program was:" >&5
d0191583 3412sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3413
d0191583
JM
3414 # Broken: fails on valid input.
3415continue
795ca3e5 3416fi
795ca3e5 3417
d0191583 3418rm -f conftest.err conftest.$ac_ext
795ca3e5 3419
d0191583
JM
3420 # OK, works on sane cases. Now check whether nonexistent headers
3421 # can be detected and how.
3422 cat >conftest.$ac_ext <<_ACEOF
3423/* confdefs.h. */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h. */
3428#include <ac_nonexistent.h>
3429_ACEOF
3430if { (ac_try="$ac_cpp conftest.$ac_ext"
3431case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434esac
ec6a6fbe
AK
3435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3436$as_echo "$ac_try_echo") >&5
d0191583
JM
3437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
ec6a6fbe 3442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3443 (exit $ac_status); } >/dev/null && {
3444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3445 test ! -s conftest.err
3446 }; then
3447 # Broken: success on invalid input.
3448continue
3449else
ec6a6fbe 3450 $as_echo "$as_me: failed program was:" >&5
d0191583 3451sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3452
d0191583
JM
3453 # Passes both tests.
3454ac_preproc_ok=:
3455break
3456fi
795ca3e5 3457
d0191583
JM
3458rm -f conftest.err conftest.$ac_ext
3459
3460done
3461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3462rm -f conftest.err conftest.$ac_ext
3463if $ac_preproc_ok; then
3464 break
795ca3e5
AK
3465fi
3466
d0191583
JM
3467 done
3468 ac_cv_prog_CPP=$CPP
3469
3470fi
3471 CPP=$ac_cv_prog_CPP
795ca3e5 3472else
d0191583
JM
3473 ac_cv_prog_CPP=$CPP
3474fi
ec6a6fbe
AK
3475{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3476$as_echo "$CPP" >&6; }
d0191583
JM
3477ac_preproc_ok=false
3478for ac_c_preproc_warn_flag in '' yes
3479do
3480 # Use a header file that comes with gcc, so configuring glibc
3481 # with a fresh cross-compiler works.
3482 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3483 # <limits.h> exists even on freestanding compilers.
3484 # On the NeXT, cc -E runs the code through the compiler's parser,
3485 # not just through cpp. "Syntax error" is here to catch this case.
3486 cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h. */
ad6254c5 3488_ACEOF
d0191583
JM
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
3492#ifdef __STDC__
3493# include <limits.h>
3494#else
3495# include <assert.h>
3496#endif
3497 Syntax error
3498_ACEOF
3499if { (ac_try="$ac_cpp conftest.$ac_ext"
3500case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
7a197a62 3503esac
ec6a6fbe
AK
3504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505$as_echo "$ac_try_echo") >&5
d0191583
JM
3506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3507 ac_status=$?
3508 grep -v '^ *+' conftest.er1 >conftest.err
3509 rm -f conftest.er1
3510 cat conftest.err >&5
ec6a6fbe 3511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3512 (exit $ac_status); } >/dev/null && {
3513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3514 test ! -s conftest.err
3515 }; then
3516 :
795ca3e5 3517else
ec6a6fbe 3518 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 # Broken: fails on valid input.
3522continue
795ca3e5
AK
3523fi
3524
d0191583
JM
3525rm -f conftest.err conftest.$ac_ext
3526
3527 # OK, works on sane cases. Now check whether nonexistent headers
3528 # can be detected and how.
3529 cat >conftest.$ac_ext <<_ACEOF
3530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
3535#include <ac_nonexistent.h>
3536_ACEOF
3537if { (ac_try="$ac_cpp conftest.$ac_ext"
3538case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541esac
ec6a6fbe
AK
3542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3543$as_echo "$ac_try_echo") >&5
d0191583
JM
3544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3545 ac_status=$?
3546 grep -v '^ *+' conftest.er1 >conftest.err
3547 rm -f conftest.er1
3548 cat conftest.err >&5
ec6a6fbe 3549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3550 (exit $ac_status); } >/dev/null && {
3551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3552 test ! -s conftest.err
3553 }; then
3554 # Broken: success on invalid input.
3555continue
795ca3e5 3556else
ec6a6fbe 3557 $as_echo "$as_me: failed program was:" >&5
d0191583 3558sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3559
d0191583
JM
3560 # Passes both tests.
3561ac_preproc_ok=:
3562break
795ca3e5 3563fi
d0191583
JM
3564
3565rm -f conftest.err conftest.$ac_ext
3566
3567done
3568# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3569rm -f conftest.err conftest.$ac_ext
3570if $ac_preproc_ok; then
3571 :
8106cdd5 3572else
ec6a6fbe
AK
3573 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3576See \`config.log' for more details." >&5
ec6a6fbe 3577$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3578See \`config.log' for more details." >&2;}
ec6a6fbe 3579 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3580fi
3581
d0191583
JM
3582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587
7a197a62 3588
ec6a6fbe
AK
3589{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3590$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3591if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3592 $as_echo_n "(cached) " >&6
ad6254c5 3593else
ec6a6fbe 3594 if test -z "$GREP"; then
d0191583 3595 ac_path_GREP_found=false
ec6a6fbe
AK
3596 # Loop through the user's path and test for each of PROGNAME-LIST
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3598for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3599do
3600 IFS=$as_save_IFS
3601 test -z "$as_dir" && as_dir=.
d0191583 3602 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3605 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3606# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3607 # Check for GNU $ac_path_GREP
3608case `"$ac_path_GREP" --version 2>&1` in
3609*GNU*)
3610 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3611*)
3612 ac_count=0
ec6a6fbe 3613 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3614 while :
3615 do
3616 cat "conftest.in" "conftest.in" >"conftest.tmp"
3617 mv "conftest.tmp" "conftest.in"
3618 cp "conftest.in" "conftest.nl"
ec6a6fbe 3619 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3620 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3621 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3622 ac_count=`expr $ac_count + 1`
3623 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3624 # Best one so far, save it but keep looking for a better one
3625 ac_cv_path_GREP="$ac_path_GREP"
3626 ac_path_GREP_max=$ac_count
3627 fi
3628 # 10*(2^10) chars as input seems more than enough
3629 test $ac_count -gt 10 && break
3630 done
3631 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3632esac
3633
ec6a6fbe
AK
3634 $ac_path_GREP_found && break 3
3635 done
d0191583 3636 done
ad6254c5 3637done
7a197a62 3638IFS=$as_save_IFS
ec6a6fbe
AK
3639 if test -z "$ac_cv_path_GREP"; then
3640 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3641$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3642 { (exit 1); exit 1; }; }
ec6a6fbe 3643 fi
80992638 3644else
d0191583 3645 ac_cv_path_GREP=$GREP
8106cdd5 3646fi
8106cdd5 3647
80992638 3648fi
ec6a6fbe
AK
3649{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3650$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3651 GREP="$ac_cv_path_GREP"
795ca3e5 3652
d0191583 3653
ec6a6fbe
AK
3654{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3655$as_echo_n "checking for egrep... " >&6; }
d0191583 3656if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3657 $as_echo_n "(cached) " >&6
8a2fc586 3658else
d0191583
JM
3659 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3660 then ac_cv_path_EGREP="$GREP -E"
3661 else
ec6a6fbe 3662 if test -z "$EGREP"; then
d0191583 3663 ac_path_EGREP_found=false
ec6a6fbe
AK
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3666for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3667do
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
d0191583 3670 for ac_prog in egrep; do
ec6a6fbe
AK
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3674# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3675 # Check for GNU $ac_path_EGREP
3676case `"$ac_path_EGREP" --version 2>&1` in
3677*GNU*)
3678 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3679*)
3680 ac_count=0
ec6a6fbe 3681 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3682 while :
3683 do
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
ec6a6fbe 3687 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3688 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_EGREP="$ac_path_EGREP"
3694 ac_path_EGREP_max=$ac_count
3695 fi
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3700esac
8a2fc586 3701
ec6a6fbe
AK
3702 $ac_path_EGREP_found && break 3
3703 done
d0191583 3704 done
8a2fc586 3705done
7a197a62 3706IFS=$as_save_IFS
ec6a6fbe
AK
3707 if test -z "$ac_cv_path_EGREP"; then
3708 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3710 { (exit 1); exit 1; }; }
ec6a6fbe 3711 fi
d0191583
JM
3712else
3713 ac_cv_path_EGREP=$EGREP
3714fi
ad6254c5 3715
d0191583
JM
3716 fi
3717fi
ec6a6fbe
AK
3718{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3719$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3720 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3721
3722
d0191583 3723if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3724 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3725$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3726if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3727 $as_echo_n "(cached) " >&6
8106cdd5 3728else
d0191583 3729 ac_pattern="Autoconf.*'x'"
ad6254c5 3730 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3731/* confdefs.h. */
3732_ACEOF
3733cat confdefs.h >>conftest.$ac_ext
3734cat >>conftest.$ac_ext <<_ACEOF
3735/* end confdefs.h. */
d0191583
JM
3736#include <sgtty.h>
3737Autoconf TIOCGETP
ad6254c5 3738_ACEOF
d0191583
JM
3739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3740 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3741 ac_cv_prog_gcc_traditional=yes
8106cdd5 3742else
d0191583 3743 ac_cv_prog_gcc_traditional=no
80992638 3744fi
d0191583 3745rm -f conftest*
ad6254c5 3746
8106cdd5 3747
d0191583
JM
3748 if test $ac_cv_prog_gcc_traditional = no; then
3749 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3750/* confdefs.h. */
3751_ACEOF
3752cat confdefs.h >>conftest.$ac_ext
3753cat >>conftest.$ac_ext <<_ACEOF
3754/* end confdefs.h. */
d0191583
JM
3755#include <termio.h>
3756Autoconf TCGETA
ad6254c5 3757_ACEOF
d0191583
JM
3758if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3759 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3760 ac_cv_prog_gcc_traditional=yes
7a197a62 3761fi
d0191583 3762rm -f conftest*
795ca3e5 3763
d0191583 3764 fi
795ca3e5 3765fi
ec6a6fbe
AK
3766{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3767$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3768 if test $ac_cv_prog_gcc_traditional = yes; then
3769 CC="$CC -traditional"
3770 fi
795ca3e5
AK
3771fi
3772
d0191583
JM
3773# Find a good install program. We prefer a C program (faster),
3774# so one script is as good as another. But avoid the broken or
3775# incompatible versions:
3776# SysV /etc/install, /usr/sbin/install
3777# SunOS /usr/etc/install
3778# IRIX /sbin/install
3779# AIX /bin/install
3780# AmigaOS /C/install, which installs bootblocks on floppy discs
3781# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3782# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3783# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3784# OS/2's system install, which has a completely different semantic
3785# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3786# Reject install programs that cannot install multiple files.
3787{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3788$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3789if test -z "$INSTALL"; then
3790if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3791 $as_echo_n "(cached) " >&6
ad6254c5 3792else
d0191583
JM
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794for as_dir in $PATH
3795do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 # Account for people who put trailing slashes in PATH elements.
3799case $as_dir/ in
3800 ./ | .// | /cC/* | \
3801 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3802 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3803 /usr/ucb/* ) ;;
3804 *)
3805 # OSF1 and SCO ODT 3.0 have their own names for install.
3806 # Don't use installbsd from OSF since it installs stuff as root
3807 # by default.
3808 for ac_prog in ginstall scoinst install; do
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3811 if test $ac_prog = install &&
3812 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3813 # AIX install. It has an incompatible calling convention.
3814 :
3815 elif test $ac_prog = install &&
3816 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # program-specific install script used by HP pwplus--don't use.
3818 :
3819 else
ec6a6fbe
AK
3820 rm -rf conftest.one conftest.two conftest.dir
3821 echo one > conftest.one
3822 echo two > conftest.two
3823 mkdir conftest.dir
3824 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3825 test -s conftest.one && test -s conftest.two &&
3826 test -s conftest.dir/conftest.one &&
3827 test -s conftest.dir/conftest.two
3828 then
3829 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3830 break 3
3831 fi
d0191583
JM
3832 fi
3833 fi
3834 done
3835 done
3836 ;;
3837esac
ec6a6fbe 3838
d0191583
JM
3839done
3840IFS=$as_save_IFS
80992638 3841
ec6a6fbe 3842rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3843
3844fi
3845 if test "${ac_cv_path_install+set}" = set; then
3846 INSTALL=$ac_cv_path_install
7a197a62 3847 else
d0191583
JM
3848 # As a last resort, use the slow shell script. Don't cache a
3849 # value for INSTALL within a source directory, because that will
3850 # break other packages using the cache if that directory is
3851 # removed, or if the value is a relative name.
3852 INSTALL=$ac_install_sh
7a197a62 3853 fi
d0191583 3854fi
ec6a6fbe
AK
3855{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3856$as_echo "$INSTALL" >&6; }
ad6254c5 3857
d0191583
JM
3858# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3859# It thinks the first close brace ends the variable substitution.
3860test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3861
d0191583 3862test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3863
d0191583
JM
3864test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3865
ec6a6fbe
AK
3866{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3867$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3868LN_S=$as_ln_s
3869if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3870 { $as_echo "$as_me:$LINENO: result: yes" >&5
3871$as_echo "yes" >&6; }
d0191583 3872else
ec6a6fbe
AK
3873 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3874$as_echo "no, using $LN_S" >&6; }
795ca3e5 3875fi
d0191583 3876
ec6a6fbe
AK
3877{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3878$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3879set x ${MAKE-make}
3880ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3881if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3882 $as_echo_n "(cached) " >&6
7a197a62 3883else
d0191583
JM
3884 cat >conftest.make <<\_ACEOF
3885SHELL = /bin/sh
3886all:
3887 @echo '@@@%%%=$(MAKE)=@@@%%%'
3888_ACEOF
3889# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3890case `${MAKE-make} -f conftest.make 2>/dev/null` in
3891 *@@@%%%=?*=@@@%%%*)
3892 eval ac_cv_prog_make_${ac_make}_set=yes;;
3893 *)
3894 eval ac_cv_prog_make_${ac_make}_set=no;;
3895esac
3896rm -f conftest.make
ad6254c5 3897fi
d0191583 3898if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3899 { $as_echo "$as_me:$LINENO: result: yes" >&5
3900$as_echo "yes" >&6; }
d0191583
JM
3901 SET_MAKE=
3902else
ec6a6fbe
AK
3903 { $as_echo "$as_me:$LINENO: result: no" >&5
3904$as_echo "no" >&6; }
d0191583 3905 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3906fi
8106cdd5 3907
ec6a6fbe
AK
3908{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3909$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3910if test -z "$MKDIR_P"; then
3911 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3912 $as_echo_n "(cached) " >&6
5556819a
AK
3913else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_prog in mkdir gmkdir; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3922 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3923 'mkdir (GNU coreutils) '* | \
3924 'mkdir (coreutils) '* | \
3925 'mkdir (fileutils) '4.1*)
3926 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3927 break 3;;
3928 esac
3929 done
3930 done
3931done
3932IFS=$as_save_IFS
3933
3934fi
3935
3936 if test "${ac_cv_path_mkdir+set}" = set; then
3937 MKDIR_P="$ac_cv_path_mkdir -p"
3938 else
3939 # As a last resort, use the slow shell script. Don't cache a
3940 # value for MKDIR_P within a source directory, because that will
3941 # break other packages using the cache if that directory is
3942 # removed, or if the value is a relative name.
3943 test -d ./--version && rmdir ./--version
3944 MKDIR_P="$ac_install_sh -d"
3945 fi
3946fi
ec6a6fbe
AK
3947{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3948$as_echo "$MKDIR_P" >&6; }
5556819a 3949
d0191583
JM
3950if test -n "$ac_tool_prefix"; then
3951 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3952set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3953{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3955if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3956 $as_echo_n "(cached) " >&6
d0191583
JM
3957else
3958 if test -n "$RANLIB"; then
3959 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3970 break 2
3971 fi
3972done
3973done
3974IFS=$as_save_IFS
8106cdd5 3975
795ca3e5 3976fi
d0191583
JM
3977fi
3978RANLIB=$ac_cv_prog_RANLIB
3979if test -n "$RANLIB"; then
ec6a6fbe
AK
3980 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3981$as_echo "$RANLIB" >&6; }
d0191583 3982else
ec6a6fbe
AK
3983 { $as_echo "$as_me:$LINENO: result: no" >&5
3984$as_echo "no" >&6; }
d0191583
JM
3985fi
3986
8106cdd5 3987
ad6254c5 3988fi
d0191583
JM
3989if test -z "$ac_cv_prog_RANLIB"; then
3990 ac_ct_RANLIB=$RANLIB
3991 # Extract the first word of "ranlib", so it can be a program name with args.
3992set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3993{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3994$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3995if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3996 $as_echo_n "(cached) " >&6
ad6254c5 3997else
d0191583
JM
3998 if test -n "$ac_ct_RANLIB"; then
3999 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4000else
4001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002for as_dir in $PATH
8106cdd5 4003do
d0191583
JM
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_exec_ext in '' $ac_executable_extensions; do
4007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4008 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 4009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4010 break 2
4011 fi
4012done
4013done
4014IFS=$as_save_IFS
4015
4016fi
4017fi
4018ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4019if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4020 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4021$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4022else
ec6a6fbe
AK
4023 { $as_echo "$as_me:$LINENO: result: no" >&5
4024$as_echo "no" >&6; }
d0191583 4025fi
ad6254c5 4026
d0191583
JM
4027 if test "x$ac_ct_RANLIB" = x; then
4028 RANLIB=":"
4029 else
4030 case $cross_compiling:$ac_tool_warned in
4031yes:)
ec6a6fbe
AK
4032{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4034ac_tool_warned=yes ;;
4035esac
4036 RANLIB=$ac_ct_RANLIB
4037 fi
4038else
4039 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4040fi
7a197a62 4041
d0191583
JM
4042# Extract the first word of "cflow", so it can be a program name with args.
4043set dummy cflow; ac_word=$2
ec6a6fbe
AK
4044{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4045$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4046if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4047 $as_echo_n "(cached) " >&6
d0191583
JM
4048else
4049 case $CFLOW_CMD in
4050 [\\/]* | ?:[\\/]*)
4051 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4052 ;;
4053 *)
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4062 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4063 break 2
4064 fi
4065done
4066done
4067IFS=$as_save_IFS
ad6254c5 4068
d0191583 4069 ;;
7a197a62 4070esac
d0191583
JM
4071fi
4072CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4073if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4074 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4075$as_echo "$CFLOW_CMD" >&6; }
80992638 4076else
ec6a6fbe
AK
4077 { $as_echo "$as_me:$LINENO: result: no" >&5
4078$as_echo "no" >&6; }
795ca3e5 4079fi
7a197a62 4080
ad6254c5 4081
d0191583
JM
4082# Extract the first word of "cscope", so it can be a program name with args.
4083set dummy cscope; ac_word=$2
ec6a6fbe
AK
4084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4085$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4086if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4087 $as_echo_n "(cached) " >&6
d0191583
JM
4088else
4089 case $CSCOPE_CMD in
4090 [\\/]* | ?:[\\/]*)
4091 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4092 ;;
4093 *)
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095for as_dir in $PATH
4096do
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4103 break 2
4104 fi
795ca3e5 4105done
d0191583
JM
4106done
4107IFS=$as_save_IFS
795ca3e5 4108
d0191583
JM
4109 ;;
4110esac
ad6254c5 4111fi
d0191583
JM
4112CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4113if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4114 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4115$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4116else
ec6a6fbe
AK
4117 { $as_echo "$as_me:$LINENO: result: no" >&5
4118$as_echo "no" >&6; }
795ca3e5 4119fi
ad6254c5 4120
7a197a62 4121
ad6254c5 4122
d0191583
JM
4123################################################################################
4124
4125
4126
4127
4128
4129ac_header_dirent=no
4130for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4131 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4132{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4133$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4134if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4135 $as_echo_n "(cached) " >&6
d0191583 4136else
ad6254c5 4137 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
d0191583
JM
4143#include <sys/types.h>
4144#include <$ac_hdr>
4145
4146int
4147main ()
4148{
4149if ((DIR *) 0)
4150return 0;
4151 ;
4152 return 0;
4153}
ad6254c5 4154_ACEOF
d0191583
JM
4155rm -f conftest.$ac_objext
4156if { (ac_try="$ac_compile"
7a197a62
AK
4157case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
ec6a6fbe
AK
4161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4162$as_echo "$ac_try_echo") >&5
d0191583 4163 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
ec6a6fbe 4168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4169 (exit $ac_status); } && {
4170 test -z "$ac_c_werror_flag" ||
25fbec5b 4171 test ! -s conftest.err
d0191583
JM
4172 } && test -s conftest.$ac_objext; then
4173 eval "$as_ac_Header=yes"
ad6254c5 4174else
ec6a6fbe 4175 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4176sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4177
d0191583 4178 eval "$as_ac_Header=no"
795ca3e5 4179fi
7a197a62 4180
d0191583 4181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4182fi
ec6a6fbe
AK
4183ac_res=`eval 'as_val=${'$as_ac_Header'}
4184 $as_echo "$as_val"'`
4185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4186$as_echo "$ac_res" >&6; }
4187as_val=`eval 'as_val=${'$as_ac_Header'}
4188 $as_echo "$as_val"'`
4189 if test "x$as_val" = x""yes; then
d0191583 4190 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4191#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4192_ACEOF
795ca3e5 4193
d0191583
JM
4194ac_header_dirent=$ac_hdr; break
4195fi
ad6254c5 4196
d0191583
JM
4197done
4198# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4199if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4200 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4201$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4202if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4203 $as_echo_n "(cached) " >&6
ad6254c5 4204else
d0191583
JM
4205 ac_func_search_save_LIBS=$LIBS
4206cat >conftest.$ac_ext <<_ACEOF
4207/* confdefs.h. */
4208_ACEOF
4209cat confdefs.h >>conftest.$ac_ext
4210cat >>conftest.$ac_ext <<_ACEOF
4211/* end confdefs.h. */
ad6254c5 4212
d0191583
JM
4213/* Override any GCC internal prototype to avoid an error.
4214 Use char because int might match the return type of a GCC
4215 builtin and then its argument prototype would still apply. */
4216#ifdef __cplusplus
4217extern "C"
4218#endif
4219char opendir ();
4220int
4221main ()
4222{
4223return opendir ();
4224 ;
4225 return 0;
4226}
4227_ACEOF
4228for ac_lib in '' dir; do
4229 if test -z "$ac_lib"; then
4230 ac_res="none required"
4231 else
4232 ac_res=-l$ac_lib
4233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4234 fi
4235 rm -f conftest.$ac_objext conftest$ac_exeext
4236if { (ac_try="$ac_link"
4237case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
ec6a6fbe
AK
4241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4242$as_echo "$ac_try_echo") >&5
d0191583
JM
4243 (eval "$ac_link") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
ec6a6fbe 4248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4249 (exit $ac_status); } && {
4250 test -z "$ac_c_werror_flag" ||
4251 test ! -s conftest.err
ec6a6fbe
AK
4252 } && test -s conftest$ac_exeext && {
4253 test "$cross_compiling" = yes ||
4254 $as_test_x conftest$ac_exeext
4255 }; then
d0191583
JM
4256 ac_cv_search_opendir=$ac_res
4257else
ec6a6fbe 4258 $as_echo "$as_me: failed program was:" >&5
d0191583 4259sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4260
ad6254c5 4261
795ca3e5 4262fi
ad6254c5 4263
ec6a6fbe 4264rm -rf conftest.dSYM
d0191583
JM
4265rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4266 conftest$ac_exeext
4267 if test "${ac_cv_search_opendir+set}" = set; then
4268 break
7a197a62 4269fi
d0191583
JM
4270done
4271if test "${ac_cv_search_opendir+set}" = set; then
4272 :
7a197a62 4273else
d0191583 4274 ac_cv_search_opendir=no
7a197a62 4275fi
d0191583
JM
4276rm conftest.$ac_ext
4277LIBS=$ac_func_search_save_LIBS
7a197a62 4278fi
ec6a6fbe
AK
4279{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4280$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4281ac_res=$ac_cv_search_opendir
4282if test "$ac_res" != no; then
4283 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4284
d0191583 4285fi
7a197a62 4286
7a197a62 4287else
ec6a6fbe
AK
4288 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4289$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4290if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4291 $as_echo_n "(cached) " >&6
7a197a62 4292else
d0191583
JM
4293 ac_func_search_save_LIBS=$LIBS
4294cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
7a197a62 4300
d0191583
JM
4301/* Override any GCC internal prototype to avoid an error.
4302 Use char because int might match the return type of a GCC
4303 builtin and then its argument prototype would still apply. */
4304#ifdef __cplusplus
4305extern "C"
4306#endif
4307char opendir ();
4308int
4309main ()
4310{
4311return opendir ();
4312 ;
4313 return 0;
4314}
4315_ACEOF
4316for ac_lib in '' x; do
4317 if test -z "$ac_lib"; then
4318 ac_res="none required"
4319 else
4320 ac_res=-l$ac_lib
4321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4322 fi
4323 rm -f conftest.$ac_objext conftest$ac_exeext
4324if { (ac_try="$ac_link"
4325case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4328esac
ec6a6fbe
AK
4329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4330$as_echo "$ac_try_echo") >&5
d0191583
JM
4331 (eval "$ac_link") 2>conftest.er1
4332 ac_status=$?
4333 grep -v '^ *+' conftest.er1 >conftest.err
4334 rm -f conftest.er1
4335 cat conftest.err >&5
ec6a6fbe 4336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4337 (exit $ac_status); } && {
4338 test -z "$ac_c_werror_flag" ||
4339 test ! -s conftest.err
ec6a6fbe
AK
4340 } && test -s conftest$ac_exeext && {
4341 test "$cross_compiling" = yes ||
4342 $as_test_x conftest$ac_exeext
4343 }; then
d0191583
JM
4344 ac_cv_search_opendir=$ac_res
4345else
ec6a6fbe 4346 $as_echo "$as_me: failed program was:" >&5
d0191583 4347sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4348
4349
4350fi
4351
ec6a6fbe 4352rm -rf conftest.dSYM
d0191583
JM
4353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4354 conftest$ac_exeext
4355 if test "${ac_cv_search_opendir+set}" = set; then
4356 break
7a197a62 4357fi
d0191583
JM
4358done
4359if test "${ac_cv_search_opendir+set}" = set; then
4360 :
7a197a62 4361else
d0191583 4362 ac_cv_search_opendir=no
7a197a62 4363fi
d0191583
JM
4364rm conftest.$ac_ext
4365LIBS=$ac_func_search_save_LIBS
4366fi
ec6a6fbe
AK
4367{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4368$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4369ac_res=$ac_cv_search_opendir
4370if test "$ac_res" != no; then
4371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4372
7a197a62 4373fi
7a197a62 4374
d0191583 4375fi
7a197a62 4376
ec6a6fbe
AK
4377{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4378$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4379if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4380 $as_echo_n "(cached) " >&6
7a197a62
AK
4381else
4382 cat >conftest.$ac_ext <<_ACEOF
4383/* confdefs.h. */
4384_ACEOF
4385cat confdefs.h >>conftest.$ac_ext
4386cat >>conftest.$ac_ext <<_ACEOF
4387/* end confdefs.h. */
4388#include <stdlib.h>
4389#include <stdarg.h>
4390#include <string.h>
4391#include <float.h>
4392
4393int
4394main ()
4395{
4396
4397 ;
4398 return 0;
4399}
4400_ACEOF
4401rm -f conftest.$ac_objext
4402if { (ac_try="$ac_compile"
4403case "(($ac_try" in
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4406esac
ec6a6fbe
AK
4407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4408$as_echo "$ac_try_echo") >&5
7a197a62
AK
4409 (eval "$ac_compile") 2>conftest.er1
4410 ac_status=$?
4411 grep -v '^ *+' conftest.er1 >conftest.err
4412 rm -f conftest.er1
4413 cat conftest.err >&5
ec6a6fbe 4414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4415 (exit $ac_status); } && {
4416 test -z "$ac_c_werror_flag" ||
4417 test ! -s conftest.err
4418 } && test -s conftest.$ac_objext; then
7a197a62
AK
4419 ac_cv_header_stdc=yes
4420else
ec6a6fbe 4421 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 ac_cv_header_stdc=no
4425fi
4426
4427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428
4429if test $ac_cv_header_stdc = yes; then
4430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4431 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
4437#include <string.h>
8106cdd5 4438
ad6254c5
AK
4439_ACEOF
4440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 $EGREP "memchr" >/dev/null 2>&1; then
4442 :
4443else
4444 ac_cv_header_stdc=no
80992638 4445fi
ad6254c5 4446rm -f conftest*
795ca3e5
AK
4447
4448fi
4449
ad6254c5
AK
4450if test $ac_cv_header_stdc = yes; then
4451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4452 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4453/* confdefs.h. */
4454_ACEOF
4455cat confdefs.h >>conftest.$ac_ext
4456cat >>conftest.$ac_ext <<_ACEOF
4457/* end confdefs.h. */
80992638 4458#include <stdlib.h>
ad6254c5
AK
4459
4460_ACEOF
80992638 4461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4462 $EGREP "free" >/dev/null 2>&1; then
4463 :
795ca3e5 4464else
ad6254c5 4465 ac_cv_header_stdc=no
795ca3e5 4466fi
80992638 4467rm -f conftest*
8106cdd5 4468
795ca3e5
AK
4469fi
4470
ad6254c5
AK
4471if test $ac_cv_header_stdc = yes; then
4472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4473 if test "$cross_compiling" = yes; then
4474 :
795ca3e5 4475else
ad6254c5 4476 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4477/* confdefs.h. */
4478_ACEOF
4479cat confdefs.h >>conftest.$ac_ext
4480cat >>conftest.$ac_ext <<_ACEOF
4481/* end confdefs.h. */
4482#include <ctype.h>
7a197a62 4483#include <stdlib.h>
ad6254c5
AK
4484#if ((' ' & 0x0FF) == 0x020)
4485# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4486# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4487#else
4488# define ISLOWER(c) \
8a2fc586
AK
4489 (('a' <= (c) && (c) <= 'i') \
4490 || ('j' <= (c) && (c) <= 'r') \
4491 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4492# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4493#endif
ad6254c5
AK
4494
4495#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4496int
4497main ()
4498{
4499 int i;
4500 for (i = 0; i < 256; i++)
4501 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4502 || toupper (i) != TOUPPER (i))
7a197a62
AK
4503 return 2;
4504 return 0;
ad6254c5
AK
4505}
4506_ACEOF
4507rm -f conftest$ac_exeext
7a197a62
AK
4508if { (ac_try="$ac_link"
4509case "(($ac_try" in
4510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511 *) ac_try_echo=$ac_try;;
4512esac
ec6a6fbe
AK
4513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4514$as_echo "$ac_try_echo") >&5
7a197a62 4515 (eval "$ac_link") 2>&5
ad6254c5 4516 ac_status=$?
ec6a6fbe 4517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4519 { (case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522esac
ec6a6fbe
AK
4523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4524$as_echo "$ac_try_echo") >&5
7a197a62 4525 (eval "$ac_try") 2>&5
ad6254c5 4526 ac_status=$?
ec6a6fbe 4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4528 (exit $ac_status); }; }; then
4529 :
795ca3e5 4530else
ec6a6fbe
AK
4531 $as_echo "$as_me: program exited with status $ac_status" >&5
4532$as_echo "$as_me: failed program was:" >&5
ad6254c5 4533sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4534
ad6254c5
AK
4535( exit $ac_status )
4536ac_cv_header_stdc=no
80992638 4537fi
ec6a6fbe 4538rm -rf conftest.dSYM
7a197a62 4539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4540fi
7a197a62
AK
4541
4542
ad6254c5
AK
4543fi
4544fi
ec6a6fbe
AK
4545{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4546$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4547if test $ac_cv_header_stdc = yes; then
4548
4549cat >>confdefs.h <<\_ACEOF
4550#define STDC_HEADERS 1
4551_ACEOF
795ca3e5
AK
4552
4553fi
4554
d911ec67 4555# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4556
ad6254c5 4557
7a197a62 4558
8106cdd5 4559
795ca3e5 4560
795ca3e5 4561
d911ec67
AK
4562
4563
4564
4565for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4566 inttypes.h stdint.h unistd.h
4567do
4568as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4569{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4570$as_echo_n "checking for $ac_header... " >&6; }
4571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4572 $as_echo_n "(cached) " >&6
795ca3e5 4573else
ad6254c5 4574 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4575/* confdefs.h. */
4576_ACEOF
4577cat confdefs.h >>conftest.$ac_ext
4578cat >>conftest.$ac_ext <<_ACEOF
4579/* end confdefs.h. */
d911ec67 4580$ac_includes_default
ad6254c5 4581
d911ec67 4582#include <$ac_header>
ad6254c5
AK
4583_ACEOF
4584rm -f conftest.$ac_objext
7a197a62
AK
4585if { (ac_try="$ac_compile"
4586case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589esac
ec6a6fbe
AK
4590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4591$as_echo "$ac_try_echo") >&5
7a197a62 4592 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4593 ac_status=$?
8a2fc586
AK
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
ec6a6fbe 4597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4598 (exit $ac_status); } && {
4599 test -z "$ac_c_werror_flag" ||
4600 test ! -s conftest.err
4601 } && test -s conftest.$ac_objext; then
d911ec67 4602 eval "$as_ac_Header=yes"
795ca3e5 4603else
ec6a6fbe 4604 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4605sed 's/^/| /' conftest.$ac_ext >&5
4606
d911ec67 4607 eval "$as_ac_Header=no"
795ca3e5 4608fi
7a197a62
AK
4609
4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4611fi
d911ec67
AK
4612ac_res=`eval 'as_val=${'$as_ac_Header'}
4613 $as_echo "$as_val"'`
4614 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4615$as_echo "$ac_res" >&6; }
4616as_val=`eval 'as_val=${'$as_ac_Header'}
4617 $as_echo "$as_val"'`
4618 if test "x$as_val" = x""yes; then
4619 cat >>confdefs.h <<_ACEOF
4620#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4621_ACEOF
b896caa1 4622
8106cdd5 4623fi
b896caa1 4624
d911ec67 4625done
d0191583
JM
4626
4627
d911ec67
AK
4628{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4629$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4630if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4631 $as_echo_n "(cached) " >&6
d0191583
JM
4632else
4633 cat >conftest.$ac_ext <<_ACEOF
4634/* confdefs.h. */
4635_ACEOF
4636cat confdefs.h >>conftest.$ac_ext
4637cat >>conftest.$ac_ext <<_ACEOF
4638/* end confdefs.h. */
d911ec67
AK
4639#include <sys/types.h>
4640int
4641main ()
4642{
4643return makedev(0, 0);
4644 ;
4645 return 0;
4646}
d0191583 4647_ACEOF
d911ec67
AK
4648rm -f conftest.$ac_objext conftest$ac_exeext
4649if { (ac_try="$ac_link"
d0191583
JM
4650case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653esac
ec6a6fbe
AK
4654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655$as_echo "$ac_try_echo") >&5
d911ec67 4656 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4657 ac_status=$?
4658 grep -v '^ *+' conftest.er1 >conftest.err
4659 rm -f conftest.er1
4660 cat conftest.err >&5
ec6a6fbe 4661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4662 (exit $ac_status); } && {
4663 test -z "$ac_c_werror_flag" ||
4664 test ! -s conftest.err
d911ec67
AK
4665 } && test -s conftest$ac_exeext && {
4666 test "$cross_compiling" = yes ||
4667 $as_test_x conftest$ac_exeext
4668 }; then
4669 ac_cv_header_sys_types_h_makedev=yes
d0191583 4670else
ec6a6fbe 4671 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4672sed 's/^/| /' conftest.$ac_ext >&5
4673
d911ec67 4674 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4675fi
4676
d911ec67
AK
4677rm -rf conftest.dSYM
4678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4679 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4680
4681fi
d911ec67
AK
4682{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4683$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4684
d911ec67
AK
4685if test $ac_cv_header_sys_types_h_makedev = no; then
4686if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4687 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4688$as_echo_n "checking for sys/mkdev.h... " >&6; }
4689if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4690 $as_echo_n "(cached) " >&6
d0191583 4691fi
d911ec67
AK
4692{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4693$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4694else
d0191583 4695 # Is the header compilable?
d911ec67
AK
4696{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4697$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4698cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4699/* confdefs.h. */
4700_ACEOF
4701cat confdefs.h >>conftest.$ac_ext
4702cat >>conftest.$ac_ext <<_ACEOF
4703/* end confdefs.h. */
4704$ac_includes_default
d911ec67 4705#include <sys/mkdev.h>
ad6254c5
AK
4706_ACEOF
4707rm -f conftest.$ac_objext
7a197a62
AK
4708if { (ac_try="$ac_compile"
4709case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712esac
ec6a6fbe
AK
4713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4714$as_echo "$ac_try_echo") >&5
7a197a62 4715 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4716 ac_status=$?
8a2fc586
AK
4717 grep -v '^ *+' conftest.er1 >conftest.err
4718 rm -f conftest.er1
4719 cat conftest.err >&5
ec6a6fbe 4720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4721 (exit $ac_status); } && {
4722 test -z "$ac_c_werror_flag" ||
4723 test ! -s conftest.err
4724 } && test -s conftest.$ac_objext; then
d0191583 4725 ac_header_compiler=yes
ad6254c5 4726else
ec6a6fbe 4727 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4728sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4729
d0191583 4730 ac_header_compiler=no
ad6254c5 4731fi
7a197a62
AK
4732
4733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4734{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4735$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4736
4737# Is the header present?
d911ec67
AK
4738{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4739$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4740cat >conftest.$ac_ext <<_ACEOF
4741/* confdefs.h. */
4742_ACEOF
4743cat confdefs.h >>conftest.$ac_ext
4744cat >>conftest.$ac_ext <<_ACEOF
4745/* end confdefs.h. */
d911ec67 4746#include <sys/mkdev.h>
d0191583
JM
4747_ACEOF
4748if { (ac_try="$ac_cpp conftest.$ac_ext"
4749case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752esac
ec6a6fbe
AK
4753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4754$as_echo "$ac_try_echo") >&5
d0191583
JM
4755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4756 ac_status=$?
4757 grep -v '^ *+' conftest.er1 >conftest.err
4758 rm -f conftest.er1
4759 cat conftest.err >&5
ec6a6fbe 4760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4761 (exit $ac_status); } >/dev/null && {
4762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4763 test ! -s conftest.err
4764 }; then
4765 ac_header_preproc=yes
4766else
ec6a6fbe 4767 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4768sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 ac_header_preproc=no
4771fi
4772
4773rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4774{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4775$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4776
4777# So? What about this header?
4778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4779 yes:no: )
d911ec67
AK
4780 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4781$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4783$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4784 ac_header_preproc=yes
4785 ;;
4786 no:yes:* )
d911ec67
AK
4787 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4788$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4790$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4792$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4794$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4796$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4797 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4798$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4799
4800 ;;
4801esac
d911ec67
AK
4802{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4803$as_echo_n "checking for sys/mkdev.h... " >&6; }
4804if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4805 $as_echo_n "(cached) " >&6
d0191583 4806else
d911ec67 4807 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4808fi
d911ec67
AK
4809{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4810$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4811
4812fi
d911ec67
AK
4813if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4814
4815cat >>confdefs.h <<\_ACEOF
4816#define MAJOR_IN_MKDEV 1
ad6254c5 4817_ACEOF
a38df97f 4818
80992638
AK
4819fi
4820
80992638 4821
5a52dca9 4822
d911ec67
AK
4823 if test $ac_cv_header_sys_mkdev_h = no; then
4824 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4825 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4826$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4827if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4828 $as_echo_n "(cached) " >&6
ad6254c5 4829fi
d911ec67
AK
4830{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4831$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4832else
4833 # Is the header compilable?
d911ec67
AK
4834{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4835$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4836cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4837/* confdefs.h. */
4838_ACEOF
4839cat confdefs.h >>conftest.$ac_ext
4840cat >>conftest.$ac_ext <<_ACEOF
4841/* end confdefs.h. */
4842$ac_includes_default
d911ec67 4843#include <sys/sysmacros.h>
ad6254c5
AK
4844_ACEOF
4845rm -f conftest.$ac_objext
7a197a62
AK
4846if { (ac_try="$ac_compile"
4847case "(($ac_try" in
4848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849 *) ac_try_echo=$ac_try;;
4850esac
ec6a6fbe
AK
4851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4852$as_echo "$ac_try_echo") >&5
7a197a62 4853 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4854 ac_status=$?
8a2fc586
AK
4855 grep -v '^ *+' conftest.er1 >conftest.err
4856 rm -f conftest.er1
4857 cat conftest.err >&5
ec6a6fbe 4858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4859 (exit $ac_status); } && {
4860 test -z "$ac_c_werror_flag" ||
4861 test ! -s conftest.err
4862 } && test -s conftest.$ac_objext; then
fc54be10
AK
4863 ac_header_compiler=yes
4864else
ec6a6fbe 4865 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4866sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ac_header_compiler=no
4869fi
4870
4871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4872{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4873$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4874
4875# Is the header present?
d911ec67
AK
4876{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4877$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4878cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4879/* confdefs.h. */
4880_ACEOF
4881cat confdefs.h >>conftest.$ac_ext
4882cat >>conftest.$ac_ext <<_ACEOF
4883/* end confdefs.h. */
d911ec67 4884#include <sys/sysmacros.h>
ad6254c5 4885_ACEOF
7a197a62
AK
4886if { (ac_try="$ac_cpp conftest.$ac_ext"
4887case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
ec6a6fbe
AK
4891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892$as_echo "$ac_try_echo") >&5
7a197a62 4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
ec6a6fbe 4898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 }; then
ad6254c5
AK
4903 ac_header_preproc=yes
4904else
ec6a6fbe 4905 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ac_header_preproc=no
4909fi
7a197a62 4910
ad6254c5 4911rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4912{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4913$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4914
4915# So? What about this header?
8a2fc586
AK
4916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4917 yes:no: )
d911ec67
AK
4918 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4919$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4920 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4921$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4922 ac_header_preproc=yes
ad6254c5 4923 ;;
8a2fc586 4924 no:yes:* )
d911ec67
AK
4925 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4926$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4927 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4928$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4929 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4930$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4931 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4932$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4933 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4934$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4935 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4936$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4937
ad6254c5
AK
4938 ;;
4939esac
d911ec67
AK
4940{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4941$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4942if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4943 $as_echo_n "(cached) " >&6
ad6254c5 4944else
d911ec67 4945 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4946fi
d911ec67
AK
4947{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4948$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4949
4950fi
d911ec67
AK
4951if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4952
4953cat >>confdefs.h <<\_ACEOF
4954#define MAJOR_IN_SYSMACROS 1
ad6254c5 4955_ACEOF
b896caa1 4956
80992638
AK
4957fi
4958
d8ac0fbc 4959
d911ec67
AK
4960 fi
4961fi
d8ac0fbc 4962
d911ec67
AK
4963{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4964$as_echo_n "checking for ANSI C header files... " >&6; }
4965if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4966 $as_echo_n "(cached) " >&6
ad6254c5 4967else
d911ec67 4968 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4973/* end confdefs.h. */
d911ec67
AK
4974#include <stdlib.h>
4975#include <stdarg.h>
4976#include <string.h>
4977#include <float.h>
4978
4979int
4980main ()
4981{
4982
4983 ;
4984 return 0;
4985}
ad6254c5
AK
4986_ACEOF
4987rm -f conftest.$ac_objext
7a197a62
AK
4988if { (ac_try="$ac_compile"
4989case "(($ac_try" in
4990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991 *) ac_try_echo=$ac_try;;
4992esac
ec6a6fbe
AK
4993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4994$as_echo "$ac_try_echo") >&5
7a197a62 4995 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4996 ac_status=$?
8a2fc586
AK
4997 grep -v '^ *+' conftest.er1 >conftest.err
4998 rm -f conftest.er1
4999 cat conftest.err >&5
ec6a6fbe 5000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
5001 (exit $ac_status); } && {
5002 test -z "$ac_c_werror_flag" ||
5003 test ! -s conftest.err
5004 } && test -s conftest.$ac_objext; then
d911ec67 5005 ac_cv_header_stdc=yes
ad6254c5 5006else
ec6a6fbe 5007 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5008sed 's/^/| /' conftest.$ac_ext >&5
5009
d911ec67 5010 ac_cv_header_stdc=no
ad6254c5 5011fi
7a197a62
AK
5012
5013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5014
d911ec67
AK
5015if test $ac_cv_header_stdc = yes; then
5016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5017 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5018/* confdefs.h. */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h. */
d911ec67
AK
5023#include <string.h>
5024
ad6254c5 5025_ACEOF
d911ec67
AK
5026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5027 $EGREP "memchr" >/dev/null 2>&1; then
5028 :
5029else
5030 ac_cv_header_stdc=no
5031fi
5032rm -f conftest*
5033
5034fi
5035
5036if test $ac_cv_header_stdc = yes; then
5037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5038 cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */
5044#include <stdlib.h>
5045
5046_ACEOF
5047if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5048 $EGREP "free" >/dev/null 2>&1; then
5049 :
5050else
5051 ac_cv_header_stdc=no
5052fi
5053rm -f conftest*
5054
5055fi
5056
5057if test $ac_cv_header_stdc = yes; then
5058 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5059 if test "$cross_compiling" = yes; then
5060 :
5061else
5062 cat >conftest.$ac_ext <<_ACEOF
5063/* confdefs.h. */
5064_ACEOF
5065cat confdefs.h >>conftest.$ac_ext
5066cat >>conftest.$ac_ext <<_ACEOF
5067/* end confdefs.h. */
5068#include <ctype.h>
5069#include <stdlib.h>
5070#if ((' ' & 0x0FF) == 0x020)
5071# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5072# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5073#else
5074# define ISLOWER(c) \
5075 (('a' <= (c) && (c) <= 'i') \
5076 || ('j' <= (c) && (c) <= 'r') \
5077 || ('s' <= (c) && (c) <= 'z'))
5078# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5079#endif
5080
5081#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5082int
5083main ()
5084{
5085 int i;
5086 for (i = 0; i < 256; i++)
5087 if (XOR (islower (i), ISLOWER (i))
5088 || toupper (i) != TOUPPER (i))
5089 return 2;
5090 return 0;
5091}
5092_ACEOF
5093rm -f conftest$ac_exeext
5094if { (ac_try="$ac_link"
7a197a62
AK
5095case "(($ac_try" in
5096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097 *) ac_try_echo=$ac_try;;
5098esac
ec6a6fbe
AK
5099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5100$as_echo "$ac_try_echo") >&5
d911ec67
AK
5101 (eval "$ac_link") 2>&5
5102 ac_status=$?
5103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5105 { (case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108esac
5109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5110$as_echo "$ac_try_echo") >&5
5111 (eval "$ac_try") 2>&5
5112 ac_status=$?
5113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 :
5116else
5117 $as_echo "$as_me: program exited with status $ac_status" >&5
5118$as_echo "$as_me: failed program was:" >&5
5119sed 's/^/| /' conftest.$ac_ext >&5
5120
5121( exit $ac_status )
5122ac_cv_header_stdc=no
5123fi
5124rm -rf conftest.dSYM
5125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5126fi
5127
5128
5129fi
5130fi
5131{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5132$as_echo "$ac_cv_header_stdc" >&6; }
5133if test $ac_cv_header_stdc = yes; then
5134
5135cat >>confdefs.h <<\_ACEOF
5136#define STDC_HEADERS 1
5137_ACEOF
5138
5139fi
5140
5141{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5142$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5143if test "${ac_cv_header_sys_wait_h+set}" = set; then
5144 $as_echo_n "(cached) " >&6
5145else
5146 cat >conftest.$ac_ext <<_ACEOF
5147/* confdefs.h. */
5148_ACEOF
5149cat confdefs.h >>conftest.$ac_ext
5150cat >>conftest.$ac_ext <<_ACEOF
5151/* end confdefs.h. */
5152#include <sys/types.h>
5153#include <sys/wait.h>
5154#ifndef WEXITSTATUS
5155# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5156#endif
5157#ifndef WIFEXITED
5158# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5159#endif
5160
5161int
5162main ()
5163{
5164 int s;
5165 wait (&s);
5166 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5167 ;
5168 return 0;
5169}
5170_ACEOF
5171rm -f conftest.$ac_objext
5172if { (ac_try="$ac_compile"
5173case "(($ac_try" in
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5176esac
5177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5178$as_echo "$ac_try_echo") >&5
5179 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5180 ac_status=$?
5181 grep -v '^ *+' conftest.er1 >conftest.err
5182 rm -f conftest.er1
5183 cat conftest.err >&5
ec6a6fbe 5184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5185 (exit $ac_status); } && {
5186 test -z "$ac_c_werror_flag" ||
25fbec5b 5187 test ! -s conftest.err
d911ec67
AK
5188 } && test -s conftest.$ac_objext; then
5189 ac_cv_header_sys_wait_h=yes
ad6254c5 5190else
ec6a6fbe 5191 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5192sed 's/^/| /' conftest.$ac_ext >&5
5193
d911ec67 5194 ac_cv_header_sys_wait_h=no
ad6254c5 5195fi
7a197a62 5196
d911ec67
AK
5197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198fi
5199{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5200$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5201if test $ac_cv_header_sys_wait_h = yes; then
5202
5203cat >>confdefs.h <<\_ACEOF
5204#define HAVE_SYS_WAIT_H 1
5205_ACEOF
5206
5207fi
5208
5209{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5210$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5211if test "${ac_cv_header_time+set}" = set; then
5212 $as_echo_n "(cached) " >&6
5213else
5214 cat >conftest.$ac_ext <<_ACEOF
5215/* confdefs.h. */
5216_ACEOF
5217cat confdefs.h >>conftest.$ac_ext
5218cat >>conftest.$ac_ext <<_ACEOF
5219/* end confdefs.h. */
5220#include <sys/types.h>
5221#include <sys/time.h>
5222#include <time.h>
5223
5224int
5225main ()
5226{
5227if ((struct tm *) 0)
5228return 0;
5229 ;
5230 return 0;
5231}
5232_ACEOF
5233rm -f conftest.$ac_objext
5234if { (ac_try="$ac_compile"
5235case "(($ac_try" in
5236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5237 *) ac_try_echo=$ac_try;;
5238esac
5239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5240$as_echo "$ac_try_echo") >&5
5241 (eval "$ac_compile") 2>conftest.er1
5242 ac_status=$?
5243 grep -v '^ *+' conftest.er1 >conftest.err
5244 rm -f conftest.er1
5245 cat conftest.err >&5
5246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); } && {
5248 test -z "$ac_c_werror_flag" ||
5249 test ! -s conftest.err
5250 } && test -s conftest.$ac_objext; then
5251 ac_cv_header_time=yes
5252else
5253 $as_echo "$as_me: failed program was:" >&5
5254sed 's/^/| /' conftest.$ac_ext >&5
5255
5256 ac_cv_header_time=no
5257fi
5258
5259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5260fi
5261{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5262$as_echo "$ac_cv_header_time" >&6; }
5263if test $ac_cv_header_time = yes; then
5264
5265cat >>confdefs.h <<\_ACEOF
5266#define TIME_WITH_SYS_TIME 1
5267_ACEOF
5268
5269fi
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5287 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5288 sys/wait.h time.h
5289do
5290as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5292 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5293$as_echo_n "checking for $ac_header... " >&6; }
5294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5295 $as_echo_n "(cached) " >&6
5296fi
5297ac_res=`eval 'as_val=${'$as_ac_Header'}
5298 $as_echo "$as_val"'`
5299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5300$as_echo "$ac_res" >&6; }
5301else
5302 # Is the header compilable?
5303{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5304$as_echo_n "checking $ac_header usability... " >&6; }
5305cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311$ac_includes_default
5312#include <$ac_header>
5313_ACEOF
5314rm -f conftest.$ac_objext
5315if { (ac_try="$ac_compile"
5316case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5319esac
5320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5321$as_echo "$ac_try_echo") >&5
5322 (eval "$ac_compile") 2>conftest.er1
5323 ac_status=$?
5324 grep -v '^ *+' conftest.er1 >conftest.err
5325 rm -f conftest.er1
5326 cat conftest.err >&5
5327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); } && {
5329 test -z "$ac_c_werror_flag" ||
5330 test ! -s conftest.err
5331 } && test -s conftest.$ac_objext; then
5332 ac_header_compiler=yes
5333else
5334 $as_echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337 ac_header_compiler=no
5338fi
5339
5340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5341{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5342$as_echo "$ac_header_compiler" >&6; }
5343
5344# Is the header present?
5345{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5346$as_echo_n "checking $ac_header presence... " >&6; }
5347cat >conftest.$ac_ext <<_ACEOF
5348/* confdefs.h. */
5349_ACEOF
5350cat confdefs.h >>conftest.$ac_ext
5351cat >>conftest.$ac_ext <<_ACEOF
5352/* end confdefs.h. */
5353#include <$ac_header>
5354_ACEOF
5355if { (ac_try="$ac_cpp conftest.$ac_ext"
5356case "(($ac_try" in
5357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358 *) ac_try_echo=$ac_try;;
5359esac
5360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5361$as_echo "$ac_try_echo") >&5
5362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5363 ac_status=$?
5364 grep -v '^ *+' conftest.er1 >conftest.err
5365 rm -f conftest.er1
5366 cat conftest.err >&5
5367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } >/dev/null && {
5369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 }; then
5372 ac_header_preproc=yes
5373else
5374 $as_echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 ac_header_preproc=no
5378fi
5379
5380rm -f conftest.err conftest.$ac_ext
5381{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5382$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5383
5384# So? What about this header?
8a2fc586
AK
5385case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5386 yes:no: )
ec6a6fbe
AK
5387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5388$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5390$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5391 ac_header_preproc=yes
ad6254c5 5392 ;;
8a2fc586 5393 no:yes:* )
ec6a6fbe
AK
5394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5395$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5397$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5399$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5401$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5403$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5405$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5406
ad6254c5
AK
5407 ;;
5408esac
d911ec67
AK
5409{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5410$as_echo_n "checking for $ac_header... " >&6; }
5411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5412 $as_echo_n "(cached) " >&6
5413else
5414 eval "$as_ac_Header=\$ac_header_preproc"
5415fi
5416ac_res=`eval 'as_val=${'$as_ac_Header'}
5417 $as_echo "$as_val"'`
5418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5419$as_echo "$ac_res" >&6; }
5420
5421fi
5422as_val=`eval 'as_val=${'$as_ac_Header'}
5423 $as_echo "$as_val"'`
5424 if test "x$as_val" = x""yes; then
5425 cat >>confdefs.h <<_ACEOF
5426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5427_ACEOF
5428
5429else
5430 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5431$as_echo "$as_me: error: bailing out" >&2;}
5432 { (exit 1); exit 1; }; }
5433fi
5434
5435done
5436
5437
5438case "$host_os" in
5439 linux*)
5440
5441
5442
5443for ac_header in asm/byteorder.h linux/fs.h malloc.h
5444do
5445as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5446if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5448$as_echo_n "checking for $ac_header... " >&6; }
5449if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5450 $as_echo_n "(cached) " >&6
5451fi
5452ac_res=`eval 'as_val=${'$as_ac_Header'}
5453 $as_echo "$as_val"'`
5454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5455$as_echo "$ac_res" >&6; }
5456else
5457 # Is the header compilable?
5458{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5459$as_echo_n "checking $ac_header usability... " >&6; }
5460cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h. */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h. */
5466$ac_includes_default
5467#include <$ac_header>
5468_ACEOF
5469rm -f conftest.$ac_objext
5470if { (ac_try="$ac_compile"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5476$as_echo "$ac_try_echo") >&5
5477 (eval "$ac_compile") 2>conftest.er1
5478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest.$ac_objext; then
5487 ac_header_compiler=yes
5488else
5489 $as_echo "$as_me: failed program was:" >&5
5490sed 's/^/| /' conftest.$ac_ext >&5
5491
5492 ac_header_compiler=no
5493fi
5494
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5497$as_echo "$ac_header_compiler" >&6; }
5498
5499# Is the header present?
5500{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5501$as_echo_n "checking $ac_header presence... " >&6; }
5502cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508#include <$ac_header>
5509_ACEOF
5510if { (ac_try="$ac_cpp conftest.$ac_ext"
5511case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514esac
5515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5516$as_echo "$ac_try_echo") >&5
5517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } >/dev/null && {
5524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 }; then
5527 ac_header_preproc=yes
5528else
5529 $as_echo "$as_me: failed program was:" >&5
5530sed 's/^/| /' conftest.$ac_ext >&5
5531
5532 ac_header_preproc=no
5533fi
5534
5535rm -f conftest.err conftest.$ac_ext
5536{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5537$as_echo "$ac_header_preproc" >&6; }
5538
5539# So? What about this header?
5540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5541 yes:no: )
5542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5543$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5545$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5546 ac_header_preproc=yes
5547 ;;
5548 no:yes:* )
5549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5550$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5552$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5554$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5556$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5558$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5560$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5561
5562 ;;
5563esac
5564{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5565$as_echo_n "checking for $ac_header... " >&6; }
5566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5567 $as_echo_n "(cached) " >&6
5568else
5569 eval "$as_ac_Header=\$ac_header_preproc"
5570fi
5571ac_res=`eval 'as_val=${'$as_ac_Header'}
5572 $as_echo "$as_val"'`
5573 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5574$as_echo "$ac_res" >&6; }
5575
5576fi
5577as_val=`eval 'as_val=${'$as_ac_Header'}
5578 $as_echo "$as_val"'`
5579 if test "x$as_val" = x""yes; then
5580 cat >>confdefs.h <<_ACEOF
5581#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582_ACEOF
5583
5584else
5585 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5586$as_echo "$as_me: error: bailing out" >&2;}
5587 { (exit 1); exit 1; }; }
5588fi
5589
5590done
5591 ;;
5592 darwin*)
5593
5594
5595for ac_header in machine/endian.h sys/disk.h
5596do
5597as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5598if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5599 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5600$as_echo_n "checking for $ac_header... " >&6; }
5601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5602 $as_echo_n "(cached) " >&6
5603fi
5604ac_res=`eval 'as_val=${'$as_ac_Header'}
5605 $as_echo "$as_val"'`
5606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5607$as_echo "$ac_res" >&6; }
5608else
5609 # Is the header compilable?
5610{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5611$as_echo_n "checking $ac_header usability... " >&6; }
5612cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618$ac_includes_default
5619#include <$ac_header>
5620_ACEOF
5621rm -f conftest.$ac_objext
5622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5628$as_echo "$ac_try_echo") >&5
5629 (eval "$ac_compile") 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } && {
5636 test -z "$ac_c_werror_flag" ||
5637 test ! -s conftest.err
5638 } && test -s conftest.$ac_objext; then
5639 ac_header_compiler=yes
5640else
5641 $as_echo "$as_me: failed program was:" >&5
5642sed 's/^/| /' conftest.$ac_ext >&5
5643
5644 ac_header_compiler=no
5645fi
5646
5647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649$as_echo "$ac_header_compiler" >&6; }
5650
5651# Is the header present?
5652{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653$as_echo_n "checking $ac_header presence... " >&6; }
5654cat >conftest.$ac_ext <<_ACEOF
5655/* confdefs.h. */
5656_ACEOF
5657cat confdefs.h >>conftest.$ac_ext
5658cat >>conftest.$ac_ext <<_ACEOF
5659/* end confdefs.h. */
5660#include <$ac_header>
5661_ACEOF
5662if { (ac_try="$ac_cpp conftest.$ac_ext"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5668$as_echo "$ac_try_echo") >&5
5669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } >/dev/null && {
5676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 }; then
5679 ac_header_preproc=yes
5680else
5681 $as_echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_header_preproc=no
5685fi
5686
5687rm -f conftest.err conftest.$ac_ext
5688{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689$as_echo "$ac_header_preproc" >&6; }
5690
5691# So? What about this header?
5692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 yes:no: )
5694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5699 ;;
5700 no:yes:* )
5701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5713
5714 ;;
5715esac
5716{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5717$as_echo_n "checking for $ac_header... " >&6; }
5718if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5719 $as_echo_n "(cached) " >&6
5720else
5721 eval "$as_ac_Header=\$ac_header_preproc"
5722fi
5723ac_res=`eval 'as_val=${'$as_ac_Header'}
5724 $as_echo "$as_val"'`
5725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5726$as_echo "$ac_res" >&6; }
5727
5728fi
5729as_val=`eval 'as_val=${'$as_ac_Header'}
5730 $as_echo "$as_val"'`
5731 if test "x$as_val" = x""yes; then
5732 cat >>confdefs.h <<_ACEOF
5733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5734_ACEOF
5735
5736else
5737 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5738$as_echo "$as_me: error: bailing out" >&2;}
5739 { (exit 1); exit 1; }; }
5740fi
5741
5742done
5743 ;;
5744esac
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5763 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5764 sys/types.h unistd.h
5765do
5766as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5769$as_echo_n "checking for $ac_header... " >&6; }
5770if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5771 $as_echo_n "(cached) " >&6
5772fi
5773ac_res=`eval 'as_val=${'$as_ac_Header'}
5774 $as_echo "$as_val"'`
5775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5776$as_echo "$ac_res" >&6; }
5777else
5778 # Is the header compilable?
5779{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5780$as_echo_n "checking $ac_header usability... " >&6; }
5781cat >conftest.$ac_ext <<_ACEOF
5782/* confdefs.h. */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h. */
5787$ac_includes_default
5788#include <$ac_header>
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795esac
5796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5797$as_echo "$ac_try_echo") >&5
5798 (eval "$ac_compile") 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest.$ac_objext; then
5808 ac_header_compiler=yes
5809else
5810 $as_echo "$as_me: failed program was:" >&5
5811sed 's/^/| /' conftest.$ac_ext >&5
5812
5813 ac_header_compiler=no
5814fi
5815
5816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5818$as_echo "$ac_header_compiler" >&6; }
5819
5820# Is the header present?
5821{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5822$as_echo_n "checking $ac_header presence... " >&6; }
5823cat >conftest.$ac_ext <<_ACEOF
5824/* confdefs.h. */
5825_ACEOF
5826cat confdefs.h >>conftest.$ac_ext
5827cat >>conftest.$ac_ext <<_ACEOF
5828/* end confdefs.h. */
5829#include <$ac_header>
5830_ACEOF
5831if { (ac_try="$ac_cpp conftest.$ac_ext"
5832case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5835esac
5836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5837$as_echo "$ac_try_echo") >&5
5838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5839 ac_status=$?
5840 grep -v '^ *+' conftest.er1 >conftest.err
5841 rm -f conftest.er1
5842 cat conftest.err >&5
5843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } >/dev/null && {
5845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 }; then
5848 ac_header_preproc=yes
5849else
5850 $as_echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ac_header_preproc=no
5854fi
5855
5856rm -f conftest.err conftest.$ac_ext
5857{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5858$as_echo "$ac_header_preproc" >&6; }
5859
5860# So? What about this header?
5861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5862 yes:no: )
5863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5864$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5866$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5867 ac_header_preproc=yes
5868 ;;
5869 no:yes:* )
5870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5871$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5873$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5875$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5877$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5879$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5881$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5882
5883 ;;
5884esac
5885{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5886$as_echo_n "checking for $ac_header... " >&6; }
5887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5888 $as_echo_n "(cached) " >&6
5889else
5890 eval "$as_ac_Header=\$ac_header_preproc"
5891fi
5892ac_res=`eval 'as_val=${'$as_ac_Header'}
5893 $as_echo "$as_val"'`
5894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5895$as_echo "$ac_res" >&6; }
5896
5897fi
5898as_val=`eval 'as_val=${'$as_ac_Header'}
5899 $as_echo "$as_val"'`
5900 if test "x$as_val" = x""yes; then
5901 cat >>confdefs.h <<_ACEOF
5902#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5903_ACEOF
5904
5905else
5906 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5907$as_echo "$as_me: error: bailing out" >&2;}
5908 { (exit 1); exit 1; }; }
5909fi
5910
5911done
5912
5913
5914
5915for ac_header in termios.h sys/statvfs.h
5916do
5917as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5920$as_echo_n "checking for $ac_header... " >&6; }
5921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5922 $as_echo_n "(cached) " >&6
5923fi
5924ac_res=`eval 'as_val=${'$as_ac_Header'}
5925 $as_echo "$as_val"'`
5926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5927$as_echo "$ac_res" >&6; }
5928else
5929 # Is the header compilable?
5930{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5931$as_echo_n "checking $ac_header usability... " >&6; }
5932cat >conftest.$ac_ext <<_ACEOF
5933/* confdefs.h. */
5934_ACEOF
5935cat confdefs.h >>conftest.$ac_ext
5936cat >>conftest.$ac_ext <<_ACEOF
5937/* end confdefs.h. */
5938$ac_includes_default
5939#include <$ac_header>
5940_ACEOF
5941rm -f conftest.$ac_objext
5942if { (ac_try="$ac_compile"
5943case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5948$as_echo "$ac_try_echo") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5950 ac_status=$?
5951 grep -v '^ *+' conftest.er1 >conftest.err
5952 rm -f conftest.er1
5953 cat conftest.err >&5
5954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } && {
5956 test -z "$ac_c_werror_flag" ||
5957 test ! -s conftest.err
5958 } && test -s conftest.$ac_objext; then
5959 ac_header_compiler=yes
5960else
5961 $as_echo "$as_me: failed program was:" >&5
5962sed 's/^/| /' conftest.$ac_ext >&5
5963
5964 ac_header_compiler=no
5965fi
5966
5967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5968{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5969$as_echo "$ac_header_compiler" >&6; }
5970
5971# Is the header present?
5972{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5973$as_echo_n "checking $ac_header presence... " >&6; }
5974cat >conftest.$ac_ext <<_ACEOF
5975/* confdefs.h. */
5976_ACEOF
5977cat confdefs.h >>conftest.$ac_ext
5978cat >>conftest.$ac_ext <<_ACEOF
5979/* end confdefs.h. */
5980#include <$ac_header>
5981_ACEOF
5982if { (ac_try="$ac_cpp conftest.$ac_ext"
5983case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5986esac
5987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5988$as_echo "$ac_try_echo") >&5
5989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } >/dev/null && {
5996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5997 test ! -s conftest.err
5998 }; then
5999 ac_header_preproc=yes
6000else
6001 $as_echo "$as_me: failed program was:" >&5
6002sed 's/^/| /' conftest.$ac_ext >&5
6003
6004 ac_header_preproc=no
6005fi
6006
6007rm -f conftest.err conftest.$ac_ext
6008{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6009$as_echo "$ac_header_preproc" >&6; }
6010
6011# So? What about this header?
6012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6013 yes:no: )
6014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6015$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6017$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6018 ac_header_preproc=yes
6019 ;;
6020 no:yes:* )
6021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6022$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6024$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6026$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6028$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6030$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6032$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6033
6034 ;;
6035esac
6036{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6037$as_echo_n "checking for $ac_header... " >&6; }
6038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6039 $as_echo_n "(cached) " >&6
6040else
6041 eval "$as_ac_Header=\$ac_header_preproc"
6042fi
6043ac_res=`eval 'as_val=${'$as_ac_Header'}
6044 $as_echo "$as_val"'`
6045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6046$as_echo "$ac_res" >&6; }
6047
6048fi
6049as_val=`eval 'as_val=${'$as_ac_Header'}
6050 $as_echo "$as_val"'`
6051 if test "x$as_val" = x""yes; then
6052 cat >>confdefs.h <<_ACEOF
6053#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6054_ACEOF
6055
6056fi
6057
6058done
6059
6060
6061################################################################################
6062{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6063$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6064if test "${ac_cv_c_const+set}" = set; then
6065 $as_echo_n "(cached) " >&6
6066else
6067 cat >conftest.$ac_ext <<_ACEOF
6068/* confdefs.h. */
6069_ACEOF
6070cat confdefs.h >>conftest.$ac_ext
6071cat >>conftest.$ac_ext <<_ACEOF
6072/* end confdefs.h. */
6073
6074int
6075main ()
6076{
6077/* FIXME: Include the comments suggested by Paul. */
6078#ifndef __cplusplus
6079 /* Ultrix mips cc rejects this. */
6080 typedef int charset[2];
6081 const charset cs;
6082 /* SunOS 4.1.1 cc rejects this. */
6083 char const *const *pcpcc;
6084 char **ppc;
6085 /* NEC SVR4.0.2 mips cc rejects this. */
6086 struct point {int x, y;};
6087 static struct point const zero = {0,0};
6088 /* AIX XL C 1.02.0.0 rejects this.
6089 It does not let you subtract one const X* pointer from another in
6090 an arm of an if-expression whose if-part is not a constant
6091 expression */
6092 const char *g = "string";
6093 pcpcc = &g + (g ? g-g : 0);
6094 /* HPUX 7.0 cc rejects these. */
6095 ++pcpcc;
6096 ppc = (char**) pcpcc;
6097 pcpcc = (char const *const *) ppc;
6098 { /* SCO 3.2v4 cc rejects this. */
6099 char *t;
6100 char const *s = 0 ? (char *) 0 : (char const *) 0;
6101
6102 *t++ = 0;
6103 if (s) return 0;
6104 }
6105 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6106 int x[] = {25, 17};
6107 const int *foo = &x[0];
6108 ++foo;
6109 }
6110 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6111 typedef const int *iptr;
6112 iptr p = 0;
6113 ++p;
6114 }
6115 { /* AIX XL C 1.02.0.0 rejects this saying
6116 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6117 struct s { int j; const int *ap[3]; };
6118 struct s *b; b->j = 5;
6119 }
6120 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6121 const int foo = 10;
6122 if (!foo) return 0;
6123 }
6124 return !cs[0] && !zero.x;
6125#endif
6126
6127 ;
6128 return 0;
6129}
6130_ACEOF
6131rm -f conftest.$ac_objext
6132if { (ac_try="$ac_compile"
6133case "(($ac_try" in
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6136esac
6137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6138$as_echo "$ac_try_echo") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6140 ac_status=$?
6141 grep -v '^ *+' conftest.er1 >conftest.err
6142 rm -f conftest.er1
6143 cat conftest.err >&5
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 ac_cv_c_const=yes
6150else
6151 $as_echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_c_const=no
6155fi
6156
6157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158fi
6159{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6160$as_echo "$ac_cv_c_const" >&6; }
6161if test $ac_cv_c_const = no; then
6162
6163cat >>confdefs.h <<\_ACEOF
6164#define const /**/
6165_ACEOF
6166
6167fi
6168
6169{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6170$as_echo_n "checking for inline... " >&6; }
6171if test "${ac_cv_c_inline+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6173else
6174 ac_cv_c_inline=no
6175for ac_kw in inline __inline__ __inline; do
6176 cat >conftest.$ac_ext <<_ACEOF
6177/* confdefs.h. */
6178_ACEOF
6179cat confdefs.h >>conftest.$ac_ext
6180cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h. */
6182#ifndef __cplusplus
6183typedef int foo_t;
6184static $ac_kw foo_t static_foo () {return 0; }
6185$ac_kw foo_t foo () {return 0; }
6186#endif
6187
6188_ACEOF
6189rm -f conftest.$ac_objext
6190if { (ac_try="$ac_compile"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6196$as_echo "$ac_try_echo") >&5
6197 (eval "$ac_compile") 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && {
6204 test -z "$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6206 } && test -s conftest.$ac_objext; then
6207 ac_cv_c_inline=$ac_kw
6208else
6209 $as_echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212
6213fi
6214
6215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 test "$ac_cv_c_inline" != no && break
6217done
6218
6219fi
6220{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6221$as_echo "$ac_cv_c_inline" >&6; }
6222
6223
6224case $ac_cv_c_inline in
6225 inline | yes) ;;
6226 *)
6227 case $ac_cv_c_inline in
6228 no) ac_val=;;
6229 *) ac_val=$ac_cv_c_inline;;
6230 esac
6231 cat >>confdefs.h <<_ACEOF
6232#ifndef __cplusplus
6233#define inline $ac_val
6234#endif
6235_ACEOF
6236 ;;
6237esac
6238
6239{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6240$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6241if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6242 $as_echo_n "(cached) " >&6
6243else
6244 cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h. */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h. */
6250$ac_includes_default
6251int
6252main ()
6253{
6254static struct stat ac_aggr;
6255if (ac_aggr.st_rdev)
6256return 0;
6257 ;
6258 return 0;
6259}
6260_ACEOF
6261rm -f conftest.$ac_objext
6262if { (ac_try="$ac_compile"
6263case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266esac
6267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6268$as_echo "$ac_try_echo") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
6279 ac_cv_member_struct_stat_st_rdev=yes
6280else
6281 $as_echo "$as_me: failed program was:" >&5
6282sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h. */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h. */
6290$ac_includes_default
6291int
6292main ()
6293{
6294static struct stat ac_aggr;
6295if (sizeof ac_aggr.st_rdev)
6296return 0;
6297 ;
6298 return 0;
6299}
6300_ACEOF
6301rm -f conftest.$ac_objext
6302if { (ac_try="$ac_compile"
6303case "(($ac_try" in
6304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6305 *) ac_try_echo=$ac_try;;
6306esac
6307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6308$as_echo "$ac_try_echo") >&5
6309 (eval "$ac_compile") 2>conftest.er1
6310 ac_status=$?
6311 grep -v '^ *+' conftest.er1 >conftest.err
6312 rm -f conftest.er1
6313 cat conftest.err >&5
6314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_c_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.$ac_objext; then
6319 ac_cv_member_struct_stat_st_rdev=yes
6320else
6321 $as_echo "$as_me: failed program was:" >&5
6322sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 ac_cv_member_struct_stat_st_rdev=no
6325fi
6326
6327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328fi
6329
6330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6331fi
6332{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6333$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6334if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6335
6336cat >>confdefs.h <<_ACEOF
6337#define HAVE_STRUCT_STAT_ST_RDEV 1
6338_ACEOF
6339
6340
6341fi
6342
6343{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6344$as_echo_n "checking for off_t... " >&6; }
6345if test "${ac_cv_type_off_t+set}" = set; then
6346 $as_echo_n "(cached) " >&6
6347else
6348 ac_cv_type_off_t=no
6349cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h. */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h. */
6355$ac_includes_default
6356int
6357main ()
6358{
6359if (sizeof (off_t))
6360 return 0;
6361 ;
6362 return 0;
6363}
6364_ACEOF
6365rm -f conftest.$ac_objext
6366if { (ac_try="$ac_compile"
6367case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370esac
6371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6372$as_echo "$ac_try_echo") >&5
6373 (eval "$ac_compile") 2>conftest.er1
6374 ac_status=$?
6375 grep -v '^ *+' conftest.er1 >conftest.err
6376 rm -f conftest.er1
6377 cat conftest.err >&5
6378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } && {
6380 test -z "$ac_c_werror_flag" ||
6381 test ! -s conftest.err
6382 } && test -s conftest.$ac_objext; then
6383 cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h. */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h. */
6389$ac_includes_default
6390int
6391main ()
6392{
6393if (sizeof ((off_t)))
6394 return 0;
6395 ;
6396 return 0;
6397}
6398_ACEOF
6399rm -f conftest.$ac_objext
6400if { (ac_try="$ac_compile"
6401case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
6405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6406$as_echo "$ac_try_echo") >&5
6407 (eval "$ac_compile") 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } && {
6414 test -z "$ac_c_werror_flag" ||
6415 test ! -s conftest.err
6416 } && test -s conftest.$ac_objext; then
6417 :
6418else
6419 $as_echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422 ac_cv_type_off_t=yes
6423fi
6424
6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426else
6427 $as_echo "$as_me: failed program was:" >&5
6428sed 's/^/| /' conftest.$ac_ext >&5
6429
6430
6431fi
6432
6433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6434fi
6435{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6436$as_echo "$ac_cv_type_off_t" >&6; }
6437if test "x$ac_cv_type_off_t" = x""yes; then
6438 :
6439else
6440
6441cat >>confdefs.h <<_ACEOF
6442#define off_t long int
6443_ACEOF
6444
6445fi
6446
6447{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6448$as_echo_n "checking for pid_t... " >&6; }
6449if test "${ac_cv_type_pid_t+set}" = set; then
6450 $as_echo_n "(cached) " >&6
6451else
6452 ac_cv_type_pid_t=no
6453cat >conftest.$ac_ext <<_ACEOF
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
6459$ac_includes_default
6460int
6461main ()
6462{
6463if (sizeof (pid_t))
6464 return 0;
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
6470if { (ac_try="$ac_compile"
6471case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474esac
6475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6476$as_echo "$ac_try_echo") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6487 cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h. */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */
6493$ac_includes_default
6494int
6495main ()
6496{
6497if (sizeof ((pid_t)))
6498 return 0;
6499 ;
6500 return 0;
6501}
6502_ACEOF
6503rm -f conftest.$ac_objext
6504if { (ac_try="$ac_compile"
6505case "(($ac_try" in
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6508esac
6509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6510$as_echo "$ac_try_echo") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 :
6522else
6523 $as_echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526 ac_cv_type_pid_t=yes
6527fi
6528
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530else
6531 $as_echo "$as_me: failed program was:" >&5
6532sed 's/^/| /' conftest.$ac_ext >&5
6533
6534
6535fi
6536
6537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538fi
6539{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6540$as_echo "$ac_cv_type_pid_t" >&6; }
6541if test "x$ac_cv_type_pid_t" = x""yes; then
6542 :
6543else
6544
6545cat >>confdefs.h <<_ACEOF
6546#define pid_t int
6547_ACEOF
6548
6549fi
6550
6551{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6552$as_echo_n "checking return type of signal handlers... " >&6; }
6553if test "${ac_cv_type_signal+set}" = set; then
6554 $as_echo_n "(cached) " >&6
6555else
6556 cat >conftest.$ac_ext <<_ACEOF
6557/* confdefs.h. */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
6561/* end confdefs.h. */
6562#include <sys/types.h>
6563#include <signal.h>
6564
6565int
6566main ()
6567{
6568return *(signal (0, 0)) (0) == 1;
6569 ;
6570 return 0;
6571}
6572_ACEOF
6573rm -f conftest.$ac_objext
6574if { (ac_try="$ac_compile"
6575case "(($ac_try" in
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6578esac
6579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6580$as_echo "$ac_try_echo") >&5
6581 (eval "$ac_compile") 2>conftest.er1
6582 ac_status=$?
6583 grep -v '^ *+' conftest.er1 >conftest.err
6584 rm -f conftest.er1
6585 cat conftest.err >&5
6586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } && {
6588 test -z "$ac_c_werror_flag" ||
6589 test ! -s conftest.err
6590 } && test -s conftest.$ac_objext; then
6591 ac_cv_type_signal=int
6592else
6593 $as_echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 ac_cv_type_signal=void
6597fi
6598
6599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600fi
6601{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6602$as_echo "$ac_cv_type_signal" >&6; }
6603
6604cat >>confdefs.h <<_ACEOF
6605#define RETSIGTYPE $ac_cv_type_signal
6606_ACEOF
6607
6608
6609{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6610$as_echo_n "checking for size_t... " >&6; }
6611if test "${ac_cv_type_size_t+set}" = set; then
6612 $as_echo_n "(cached) " >&6
6613else
6614 ac_cv_type_size_t=no
6615cat >conftest.$ac_ext <<_ACEOF
6616/* confdefs.h. */
6617_ACEOF
6618cat confdefs.h >>conftest.$ac_ext
6619cat >>conftest.$ac_ext <<_ACEOF
6620/* end confdefs.h. */
6621$ac_includes_default
6622int
6623main ()
6624{
6625if (sizeof (size_t))
6626 return 0;
6627 ;
6628 return 0;
6629}
6630_ACEOF
6631rm -f conftest.$ac_objext
6632if { (ac_try="$ac_compile"
6633case "(($ac_try" in
6634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635 *) ac_try_echo=$ac_try;;
6636esac
6637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6638$as_echo "$ac_try_echo") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 cat >conftest.$ac_ext <<_ACEOF
6650/* confdefs.h. */
6651_ACEOF
6652cat confdefs.h >>conftest.$ac_ext
6653cat >>conftest.$ac_ext <<_ACEOF
6654/* end confdefs.h. */
6655$ac_includes_default
6656int
6657main ()
6658{
6659if (sizeof ((size_t)))
6660 return 0;
6661 ;
6662 return 0;
6663}
6664_ACEOF
6665rm -f conftest.$ac_objext
6666if { (ac_try="$ac_compile"
6667case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670esac
6671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672$as_echo "$ac_try_echo") >&5
6673 (eval "$ac_compile") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest.$ac_objext; then
6683 :
ad6254c5 6684else
d911ec67
AK
6685 $as_echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6687
d911ec67 6688 ac_cv_type_size_t=yes
ad6254c5 6689fi
4922197a 6690
d911ec67 6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6692else
d911ec67
AK
6693 $as_echo "$as_me: failed program was:" >&5
6694sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6695
6696
d911ec67 6697fi
d0191583 6698
d911ec67
AK
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6702$as_echo "$ac_cv_type_size_t" >&6; }
6703if test "x$ac_cv_type_size_t" = x""yes; then
6704 :
6705else
d0191583 6706
d911ec67
AK
6707cat >>confdefs.h <<_ACEOF
6708#define size_t unsigned int
6709_ACEOF
d0191583 6710
d911ec67 6711fi
d0191583 6712
d911ec67
AK
6713{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6714$as_echo_n "checking for mode_t... " >&6; }
6715if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6716 $as_echo_n "(cached) " >&6
795ca3e5 6717else
d911ec67 6718 ac_cv_type_mode_t=no
ad6254c5 6719cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6720/* confdefs.h. */
6721_ACEOF
6722cat confdefs.h >>conftest.$ac_ext
6723cat >>conftest.$ac_ext <<_ACEOF
6724/* end confdefs.h. */
6725$ac_includes_default
d911ec67
AK
6726int
6727main ()
6728{
6729if (sizeof (mode_t))
6730 return 0;
6731 ;
6732 return 0;
6733}
ad6254c5
AK
6734_ACEOF
6735rm -f conftest.$ac_objext
7a197a62
AK
6736if { (ac_try="$ac_compile"
6737case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740esac
ec6a6fbe
AK
6741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6742$as_echo "$ac_try_echo") >&5
7a197a62 6743 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6744 ac_status=$?
8a2fc586
AK
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
ec6a6fbe 6748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
d911ec67 6753 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
d911ec67
AK
6759$ac_includes_default
6760int
6761main ()
6762{
6763if (sizeof ((mode_t)))
6764 return 0;
6765 ;
6766 return 0;
6767}
ad6254c5 6768_ACEOF
d911ec67
AK
6769rm -f conftest.$ac_objext
6770if { (ac_try="$ac_compile"
7a197a62
AK
6771case "(($ac_try" in
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6774esac
ec6a6fbe
AK
6775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6776$as_echo "$ac_try_echo") >&5
d911ec67 6777 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
ec6a6fbe 6782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6783 (exit $ac_status); } && {
6784 test -z "$ac_c_werror_flag" ||
25fbec5b 6785 test ! -s conftest.err
d911ec67
AK
6786 } && test -s conftest.$ac_objext; then
6787 :
ad6254c5 6788else
ec6a6fbe 6789 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
d911ec67 6792 ac_cv_type_mode_t=yes
ad6254c5 6793fi
7a197a62 6794
d911ec67
AK
6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796else
6797 $as_echo "$as_me: failed program was:" >&5
6798sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6799
7a197a62 6800
80992638
AK
6801fi
6802
d911ec67 6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6804fi
d911ec67
AK
6805{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6806$as_echo "$ac_cv_type_mode_t" >&6; }
6807if test "x$ac_cv_type_mode_t" = x""yes; then
6808 :
795ca3e5 6809else
80992638 6810
d911ec67
AK
6811cat >>confdefs.h <<_ACEOF
6812#define mode_t int
6813_ACEOF
ad6254c5 6814
d911ec67 6815fi
795ca3e5 6816
d0191583 6817
d911ec67
AK
6818 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6819$as_echo_n "checking for int8_t... " >&6; }
6820if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6821 $as_echo_n "(cached) " >&6
ad6254c5 6822else
d911ec67
AK
6823 ac_cv_c_int8_t=no
6824 for ac_type in 'int8_t' 'int' 'long int' \
6825 'long long int' 'short int' 'signed char'; do
6826 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6827/* confdefs.h. */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h. */
6832$ac_includes_default
d911ec67
AK
6833int
6834main ()
6835{
6836static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6837test_array [0] = 0
6838
6839 ;
6840 return 0;
6841}
ad6254c5
AK
6842_ACEOF
6843rm -f conftest.$ac_objext
7a197a62
AK
6844if { (ac_try="$ac_compile"
6845case "(($ac_try" in
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6848esac
ec6a6fbe
AK
6849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850$as_echo "$ac_try_echo") >&5
7a197a62 6851 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6852 ac_status=$?
8a2fc586
AK
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
ec6a6fbe 6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.$ac_objext; then
d911ec67 6861 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6862/* confdefs.h. */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h. */
d911ec67
AK
6867$ac_includes_default
6868int
6869main ()
6870{
6871static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6872 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6873test_array [0] = 0
6874
6875 ;
6876 return 0;
6877}
ad6254c5 6878_ACEOF
d911ec67
AK
6879rm -f conftest.$ac_objext
6880if { (ac_try="$ac_compile"
7a197a62
AK
6881case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884esac
ec6a6fbe
AK
6885eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6886$as_echo "$ac_try_echo") >&5
d911ec67 6887 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6888 ac_status=$?
6889 grep -v '^ *+' conftest.er1 >conftest.err
6890 rm -f conftest.er1
6891 cat conftest.err >&5
ec6a6fbe 6892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6893 (exit $ac_status); } && {
6894 test -z "$ac_c_werror_flag" ||
25fbec5b 6895 test ! -s conftest.err
d911ec67
AK
6896 } && test -s conftest.$ac_objext; then
6897 :
ad6254c5 6898else
ec6a6fbe 6899 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6900sed 's/^/| /' conftest.$ac_ext >&5
6901
d911ec67
AK
6902 case $ac_type in
6903 int8_t) ac_cv_c_int8_t=yes ;;
6904 *) ac_cv_c_int8_t=$ac_type ;;
6905esac
ad6254c5 6906
d911ec67 6907fi
7a197a62 6908
d911ec67 6909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6910else
d911ec67
AK
6911 $as_echo "$as_me: failed program was:" >&5
6912sed 's/^/| /' conftest.$ac_ext >&5
6913
b896caa1 6914
ad6254c5 6915fi
ad6254c5 6916
d911ec67
AK
6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 test "$ac_cv_c_int8_t" != no && break
6919 done
80992638 6920fi
d911ec67
AK
6921{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6922$as_echo "$ac_cv_c_int8_t" >&6; }
6923 case $ac_cv_c_int8_t in #(
6924 no|yes) ;; #(
6925 *)
80992638 6926
d911ec67
AK
6927cat >>confdefs.h <<_ACEOF
6928#define int8_t $ac_cv_c_int8_t
6929_ACEOF
6930;;
6931 esac
d0191583 6932
d3c8211f 6933
d911ec67
AK
6934 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6935$as_echo_n "checking for int16_t... " >&6; }
6936if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6937 $as_echo_n "(cached) " >&6
d3c8211f 6938else
d911ec67
AK
6939 ac_cv_c_int16_t=no
6940 for ac_type in 'int16_t' 'int' 'long int' \
6941 'long long int' 'short int' 'signed char'; do
6942 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6943/* confdefs.h. */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h. */
d911ec67 6948$ac_includes_default
ad6254c5
AK
6949int
6950main ()
6951{
d911ec67
AK
6952static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6953test_array [0] = 0
ad6254c5
AK
6954
6955 ;
6956 return 0;
6957}
6958_ACEOF
6959rm -f conftest.$ac_objext
7a197a62
AK
6960if { (ac_try="$ac_compile"
6961case "(($ac_try" in
6962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6963 *) ac_try_echo=$ac_try;;
6964esac
ec6a6fbe
AK
6965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6966$as_echo "$ac_try_echo") >&5
7a197a62 6967 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6968 ac_status=$?
8a2fc586
AK
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
ec6a6fbe 6972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
ad6254c5 6977 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
d911ec67
AK
6983$ac_includes_default
6984int
6985main ()
6986{
6987static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6988 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6989test_array [0] = 0
80992638 6990
d911ec67
AK
6991 ;
6992 return 0;
6993}
ad6254c5
AK
6994_ACEOF
6995rm -f conftest.$ac_objext
7a197a62
AK
6996if { (ac_try="$ac_compile"
6997case "(($ac_try" in
6998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6999 *) ac_try_echo=$ac_try;;
7000esac
ec6a6fbe
AK
7001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7002$as_echo "$ac_try_echo") >&5
7a197a62 7003 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7004 ac_status=$?
8a2fc586
AK
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
ec6a6fbe 7008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest.$ac_objext; then
d911ec67 7013 :
ad6254c5 7014else
ec6a6fbe 7015 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7016sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7017
d911ec67
AK
7018 case $ac_type in
7019 int16_t) ac_cv_c_int16_t=yes ;;
7020 *) ac_cv_c_int16_t=$ac_type ;;
7021esac
7a197a62 7022
8ce0cbda 7023fi
7a197a62
AK
7024
7025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7026else
7027 $as_echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7029
8a2fc586 7030
d911ec67 7031fi
8a2fc586 7032
d911ec67
AK
7033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 test "$ac_cv_c_int16_t" != no && break
7035 done
7036fi
7037{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7038$as_echo "$ac_cv_c_int16_t" >&6; }
7039 case $ac_cv_c_int16_t in #(
7040 no|yes) ;; #(
8a2fc586 7041 *)
d911ec67
AK
7042
7043cat >>confdefs.h <<_ACEOF
7044#define int16_t $ac_cv_c_int16_t
c1c065a3 7045_ACEOF
d911ec67
AK
7046;;
7047 esac
d0191583 7048
d911ec67
AK
7049
7050 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7051$as_echo_n "checking for int32_t... " >&6; }
7052if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7053 $as_echo_n "(cached) " >&6
d0191583 7054else
d911ec67
AK
7055 ac_cv_c_int32_t=no
7056 for ac_type in 'int32_t' 'int' 'long int' \
7057 'long long int' 'short int' 'signed char'; do
7058 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7059/* confdefs.h. */
7060_ACEOF
7061cat confdefs.h >>conftest.$ac_ext
7062cat >>conftest.$ac_ext <<_ACEOF
7063/* end confdefs.h. */
7064$ac_includes_default
7065int
7066main ()
7067{
d911ec67
AK
7068static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7069test_array [0] = 0
7070
d0191583
JM
7071 ;
7072 return 0;
7073}
7074_ACEOF
7075rm -f conftest.$ac_objext
7076if { (ac_try="$ac_compile"
7077case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080esac
ec6a6fbe
AK
7081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7082$as_echo "$ac_try_echo") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
d911ec67 7093 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7094/* confdefs.h. */
7095_ACEOF
7096cat confdefs.h >>conftest.$ac_ext
7097cat >>conftest.$ac_ext <<_ACEOF
7098/* end confdefs.h. */
7099$ac_includes_default
7100int
7101main ()
7102{
d911ec67
AK
7103static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7104 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7105test_array [0] = 0
7106
ec6a6fbe
AK
7107 ;
7108 return 0;
7109}
7110_ACEOF
7111rm -f conftest.$ac_objext
7112if { (ac_try="$ac_compile"
7113case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116esac
7117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7118$as_echo "$ac_try_echo") >&5
7119 (eval "$ac_compile") 2>conftest.er1
7120 ac_status=$?
7121 grep -v '^ *+' conftest.er1 >conftest.err
7122 rm -f conftest.er1
7123 cat conftest.err >&5
7124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); } && {
7126 test -z "$ac_c_werror_flag" ||
7127 test ! -s conftest.err
7128 } && test -s conftest.$ac_objext; then
d911ec67 7129 :
ec6a6fbe
AK
7130else
7131 $as_echo "$as_me: failed program was:" >&5
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
d911ec67
AK
7134 case $ac_type in
7135 int32_t) ac_cv_c_int32_t=yes ;;
7136 *) ac_cv_c_int32_t=$ac_type ;;
7137esac
7138
ec6a6fbe
AK
7139fi
7140
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7142else
7143 $as_echo "$as_me: failed program was:" >&5
7144sed 's/^/| /' conftest.$ac_ext >&5
7145
7146
ec6a6fbe
AK
7147fi
7148
7149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7150 test "$ac_cv_c_int32_t" != no && break
7151 done
ec6a6fbe 7152fi
d911ec67
AK
7153{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7154$as_echo "$ac_cv_c_int32_t" >&6; }
7155 case $ac_cv_c_int32_t in #(
7156 no|yes) ;; #(
7157 *)
ec6a6fbe
AK
7158
7159cat >>confdefs.h <<_ACEOF
d911ec67 7160#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7161_ACEOF
d911ec67
AK
7162;;
7163 esac
ec6a6fbe
AK
7164
7165
d911ec67
AK
7166 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7167$as_echo_n "checking for int64_t... " >&6; }
7168if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7169 $as_echo_n "(cached) " >&6
7170else
d911ec67
AK
7171 ac_cv_c_int64_t=no
7172 for ac_type in 'int64_t' 'int' 'long int' \
7173 'long long int' 'short int' 'signed char'; do
7174 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7175/* confdefs.h. */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h. */
7180$ac_includes_default
7181int
7182main ()
7183{
d911ec67
AK
7184static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7185test_array [0] = 0
7186
ec6a6fbe
AK
7187 ;
7188 return 0;
7189}
7190_ACEOF
7191rm -f conftest.$ac_objext
7192if { (ac_try="$ac_compile"
7193case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196esac
7197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7198$as_echo "$ac_try_echo") >&5
7199 (eval "$ac_compile") 2>conftest.er1
7200 ac_status=$?
7201 grep -v '^ *+' conftest.er1 >conftest.err
7202 rm -f conftest.er1
7203 cat conftest.err >&5
7204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } && {
7206 test -z "$ac_c_werror_flag" ||
7207 test ! -s conftest.err
7208 } && test -s conftest.$ac_objext; then
7209 cat >conftest.$ac_ext <<_ACEOF
7210/* confdefs.h. */
7211_ACEOF
7212cat confdefs.h >>conftest.$ac_ext
7213cat >>conftest.$ac_ext <<_ACEOF
7214/* end confdefs.h. */
7215$ac_includes_default
7216int
7217main ()
7218{
d911ec67
AK
7219static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7220 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7221test_array [0] = 0
7222
ec6a6fbe
AK
7223 ;
7224 return 0;
7225}
7226_ACEOF
7227rm -f conftest.$ac_objext
7228if { (ac_try="$ac_compile"
7229case "(($ac_try" in
7230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231 *) ac_try_echo=$ac_try;;
7232esac
7233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7234$as_echo "$ac_try_echo") >&5
7235 (eval "$ac_compile") 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } && {
7242 test -z "$ac_c_werror_flag" ||
7243 test ! -s conftest.err
7244 } && test -s conftest.$ac_objext; then
7245 :
7246else
7247 $as_echo "$as_me: failed program was:" >&5
7248sed 's/^/| /' conftest.$ac_ext >&5
7249
d911ec67
AK
7250 case $ac_type in
7251 int64_t) ac_cv_c_int64_t=yes ;;
7252 *) ac_cv_c_int64_t=$ac_type ;;
7253esac
7254
ec6a6fbe
AK
7255fi
7256
7257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258else
7259 $as_echo "$as_me: failed program was:" >&5
7260sed 's/^/| /' conftest.$ac_ext >&5
7261
7262
7263fi
7264
7265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7266 test "$ac_cv_c_int64_t" != no && break
7267 done
ec6a6fbe 7268fi
d911ec67
AK
7269{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7270$as_echo "$ac_cv_c_int64_t" >&6; }
7271 case $ac_cv_c_int64_t in #(
7272 no|yes) ;; #(
7273 *)
ec6a6fbe
AK
7274
7275cat >>confdefs.h <<_ACEOF
d911ec67 7276#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7277_ACEOF
d911ec67
AK
7278;;
7279 esac
ec6a6fbe 7280
d911ec67
AK
7281{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7282$as_echo_n "checking for ssize_t... " >&6; }
7283if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7284 $as_echo_n "(cached) " >&6
7285else
d911ec67 7286 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7287cat >conftest.$ac_ext <<_ACEOF
7288/* confdefs.h. */
7289_ACEOF
7290cat confdefs.h >>conftest.$ac_ext
7291cat >>conftest.$ac_ext <<_ACEOF
7292/* end confdefs.h. */
7293$ac_includes_default
7294int
7295main ()
7296{
d911ec67 7297if (sizeof (ssize_t))
ec6a6fbe
AK
7298 return 0;
7299 ;
7300 return 0;
7301}
7302_ACEOF
7303rm -f conftest.$ac_objext
7304if { (ac_try="$ac_compile"
7305case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308esac
7309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7310$as_echo "$ac_try_echo") >&5
d0191583
JM
7311 (eval "$ac_compile") 2>conftest.er1
7312 ac_status=$?
7313 grep -v '^ *+' conftest.er1 >conftest.err
7314 rm -f conftest.er1
7315 cat conftest.err >&5
ec6a6fbe 7316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7317 (exit $ac_status); } && {
7318 test -z "$ac_c_werror_flag" ||
7319 test ! -s conftest.err
7320 } && test -s conftest.$ac_objext; then
ec6a6fbe 7321 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7322/* confdefs.h. */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h. */
7327$ac_includes_default
7328int
7329main ()
7330{
d911ec67 7331if (sizeof ((ssize_t)))
ec6a6fbe 7332 return 0;
d0191583
JM
7333 ;
7334 return 0;
7335}
7336_ACEOF
7337rm -f conftest.$ac_objext
7338if { (ac_try="$ac_compile"
7339case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342esac
ec6a6fbe
AK
7343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7344$as_echo "$ac_try_echo") >&5
d0191583
JM
7345 (eval "$ac_compile") 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
ec6a6fbe 7350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7351 (exit $ac_status); } && {
7352 test -z "$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 } && test -s conftest.$ac_objext; then
ec6a6fbe 7355 :
d0191583 7356else
ec6a6fbe 7357 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7358sed 's/^/| /' conftest.$ac_ext >&5
7359
d911ec67 7360 ac_cv_type_ssize_t=yes
d0191583
JM
7361fi
7362
7363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7364else
7365 $as_echo "$as_me: failed program was:" >&5
7366sed 's/^/| /' conftest.$ac_ext >&5
7367
7368
d0191583
JM
7369fi
7370
7371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372fi
d911ec67
AK
7373{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7374$as_echo "$ac_cv_type_ssize_t" >&6; }
7375if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7376 :
7377else
d0191583
JM
7378
7379cat >>confdefs.h <<_ACEOF
d911ec67 7380#define ssize_t int
d0191583
JM
7381_ACEOF
7382
d0191583 7383fi
8ce0cbda 7384
d911ec67
AK
7385{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7386$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7387if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7388 $as_echo_n "(cached) " >&6
ad6254c5 7389else
b145d876
ZK
7390 cat >conftest.$ac_ext <<_ACEOF
7391/* confdefs.h. */
7392_ACEOF
7393cat confdefs.h >>conftest.$ac_ext
7394cat >>conftest.$ac_ext <<_ACEOF
7395/* end confdefs.h. */
ec6a6fbe 7396#include <sys/types.h>
ec6a6fbe 7397
ad6254c5 7398_ACEOF
d911ec67
AK
7399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400 $EGREP "uid_t" >/dev/null 2>&1; then
7401 ac_cv_type_uid_t=yes
b145d876 7402else
d911ec67 7403 ac_cv_type_uid_t=no
ad6254c5 7404fi
d911ec67 7405rm -f conftest*
b145d876 7406
b145d876 7407fi
d911ec67
AK
7408{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7409$as_echo "$ac_cv_type_uid_t" >&6; }
7410if test $ac_cv_type_uid_t = no; then
80992638 7411
d911ec67
AK
7412cat >>confdefs.h <<\_ACEOF
7413#define uid_t int
ad6254c5 7414_ACEOF
199e490e 7415
b896caa1 7416
d911ec67
AK
7417cat >>confdefs.h <<\_ACEOF
7418#define gid_t int
7419_ACEOF
7420
7421fi
7422
7423
7424 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7425$as_echo_n "checking for uint8_t... " >&6; }
7426if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7427 $as_echo_n "(cached) " >&6
ad6254c5 7428else
d911ec67
AK
7429 ac_cv_c_uint8_t=no
7430 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7431 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7432 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7433/* confdefs.h. */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h. */
7438$ac_includes_default
7439int
7440main ()
7441{
d911ec67
AK
7442static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7443test_array [0] = 0
7444
ad6254c5
AK
7445 ;
7446 return 0;
7447}
7448_ACEOF
7449rm -f conftest.$ac_objext
7a197a62
AK
7450if { (ac_try="$ac_compile"
7451case "(($ac_try" in
7452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453 *) ac_try_echo=$ac_try;;
7454esac
ec6a6fbe
AK
7455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7456$as_echo "$ac_try_echo") >&5
7a197a62 7457 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7458 ac_status=$?
8a2fc586
AK
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
ec6a6fbe 7462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7463 (exit $ac_status); } && {
7464 test -z "$ac_c_werror_flag" ||
7465 test ! -s conftest.err
7466 } && test -s conftest.$ac_objext; then
d911ec67
AK
7467 case $ac_type in
7468 uint8_t) ac_cv_c_uint8_t=yes ;;
7469 *) ac_cv_c_uint8_t=$ac_type ;;
7470esac
7471
7472else
7473 $as_echo "$as_me: failed program was:" >&5
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
7476
7477fi
7478
7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480 test "$ac_cv_c_uint8_t" != no && break
7481 done
7482fi
7483{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7484$as_echo "$ac_cv_c_uint8_t" >&6; }
7485 case $ac_cv_c_uint8_t in #(
7486 no|yes) ;; #(
7487 *)
7488
7489cat >>confdefs.h <<\_ACEOF
7490#define _UINT8_T 1
7491_ACEOF
7492
7493
7494cat >>confdefs.h <<_ACEOF
7495#define uint8_t $ac_cv_c_uint8_t
7496_ACEOF
7497;;
7498 esac
7499
7500
7501 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7502$as_echo_n "checking for uint16_t... " >&6; }
7503if test "${ac_cv_c_uint16_t+set}" = set; then
7504 $as_echo_n "(cached) " >&6
7505else
7506 ac_cv_c_uint16_t=no
7507 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7508 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7509 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7510/* confdefs.h. */
7511_ACEOF
7512cat confdefs.h >>conftest.$ac_ext
7513cat >>conftest.$ac_ext <<_ACEOF
7514/* end confdefs.h. */
ec6a6fbe 7515$ac_includes_default
d0191583
JM
7516int
7517main ()
7518{
d911ec67
AK
7519static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7520test_array [0] = 0
7521
d0191583
JM
7522 ;
7523 return 0;
7524}
7525_ACEOF
7526rm -f conftest.$ac_objext
7527if { (ac_try="$ac_compile"
7528case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531esac
ec6a6fbe
AK
7532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533$as_echo "$ac_try_echo") >&5
d0191583
JM
7534 (eval "$ac_compile") 2>conftest.er1
7535 ac_status=$?
7536 grep -v '^ *+' conftest.er1 >conftest.err
7537 rm -f conftest.er1
7538 cat conftest.err >&5
ec6a6fbe 7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7540 (exit $ac_status); } && {
7541 test -z "$ac_c_werror_flag" ||
7542 test ! -s conftest.err
7543 } && test -s conftest.$ac_objext; then
d911ec67
AK
7544 case $ac_type in
7545 uint16_t) ac_cv_c_uint16_t=yes ;;
7546 *) ac_cv_c_uint16_t=$ac_type ;;
7547esac
ec6a6fbe 7548
ec6a6fbe
AK
7549else
7550 $as_echo "$as_me: failed program was:" >&5
7551sed 's/^/| /' conftest.$ac_ext >&5
7552
7553
d0191583
JM
7554fi
7555
7556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7557 test "$ac_cv_c_uint16_t" != no && break
7558 done
d0191583 7559fi
d911ec67
AK
7560{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7561$as_echo "$ac_cv_c_uint16_t" >&6; }
7562 case $ac_cv_c_uint16_t in #(
7563 no|yes) ;; #(
7564 *)
7565
d0191583
JM
7566
7567cat >>confdefs.h <<_ACEOF
d911ec67 7568#define uint16_t $ac_cv_c_uint16_t
d0191583 7569_ACEOF
d911ec67
AK
7570;;
7571 esac
d0191583
JM
7572
7573
d911ec67
AK
7574 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7575$as_echo_n "checking for uint32_t... " >&6; }
7576if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7577 $as_echo_n "(cached) " >&6
8106cdd5 7578else
d911ec67
AK
7579 ac_cv_c_uint32_t=no
7580 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7581 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7582 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7583/* confdefs.h. */
7584_ACEOF
7585cat confdefs.h >>conftest.$ac_ext
7586cat >>conftest.$ac_ext <<_ACEOF
7587/* end confdefs.h. */
7588$ac_includes_default
7589int
7590main ()
7591{
d911ec67
AK
7592static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7593test_array [0] = 0
7594
ad6254c5
AK
7595 ;
7596 return 0;
7597}
7598_ACEOF
7599rm -f conftest.$ac_objext
7a197a62
AK
7600if { (ac_try="$ac_compile"
7601case "(($ac_try" in
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7604esac
ec6a6fbe
AK
7605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7606$as_echo "$ac_try_echo") >&5
7a197a62 7607 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7608 ac_status=$?
8a2fc586
AK
7609 grep -v '^ *+' conftest.er1 >conftest.err
7610 rm -f conftest.er1
7611 cat conftest.err >&5
ec6a6fbe 7612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7613 (exit $ac_status); } && {
7614 test -z "$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7616 } && test -s conftest.$ac_objext; then
d911ec67
AK
7617 case $ac_type in
7618 uint32_t) ac_cv_c_uint32_t=yes ;;
7619 *) ac_cv_c_uint32_t=$ac_type ;;
7620esac
7621
7622else
7623 $as_echo "$as_me: failed program was:" >&5
7624sed 's/^/| /' conftest.$ac_ext >&5
7625
7626
7627fi
7628
7629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630 test "$ac_cv_c_uint32_t" != no && break
7631 done
7632fi
7633{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7634$as_echo "$ac_cv_c_uint32_t" >&6; }
7635 case $ac_cv_c_uint32_t in #(
7636 no|yes) ;; #(
7637 *)
7638
7639cat >>confdefs.h <<\_ACEOF
7640#define _UINT32_T 1
7641_ACEOF
7642
7643
7644cat >>confdefs.h <<_ACEOF
7645#define uint32_t $ac_cv_c_uint32_t
7646_ACEOF
7647;;
7648 esac
7649
7650
7651 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7652$as_echo_n "checking for uint64_t... " >&6; }
7653if test "${ac_cv_c_uint64_t+set}" = set; then
7654 $as_echo_n "(cached) " >&6
7655else
7656 ac_cv_c_uint64_t=no
7657 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7658 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7659 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7660/* confdefs.h. */
7661_ACEOF
7662cat confdefs.h >>conftest.$ac_ext
7663cat >>conftest.$ac_ext <<_ACEOF
7664/* end confdefs.h. */
7665$ac_includes_default
7666int
7667main ()
7668{
d911ec67
AK
7669static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7670test_array [0] = 0
7671
ad6254c5
AK
7672 ;
7673 return 0;
7674}
7675_ACEOF
7676rm -f conftest.$ac_objext
7a197a62
AK
7677if { (ac_try="$ac_compile"
7678case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
ec6a6fbe
AK
7682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7683$as_echo "$ac_try_echo") >&5
7a197a62 7684 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7685 ac_status=$?
8a2fc586
AK
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
ec6a6fbe 7689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest.$ac_objext; then
d911ec67
AK
7694 case $ac_type in
7695 uint64_t) ac_cv_c_uint64_t=yes ;;
7696 *) ac_cv_c_uint64_t=$ac_type ;;
7697esac
ec6a6fbe 7698
fddafd51 7699else
ec6a6fbe 7700 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7701sed 's/^/| /' conftest.$ac_ext >&5
7702
ec6a6fbe 7703
80992638 7704fi
7a197a62
AK
7705
7706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7707 test "$ac_cv_c_uint64_t" != no && break
7708 done
ad6254c5 7709fi
d911ec67
AK
7710{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7711$as_echo "$ac_cv_c_uint64_t" >&6; }
7712 case $ac_cv_c_uint64_t in #(
7713 no|yes) ;; #(
7714 *)
80992638 7715
d911ec67
AK
7716cat >>confdefs.h <<\_ACEOF
7717#define _UINT64_T 1
ad6254c5
AK
7718_ACEOF
7719
d911ec67
AK
7720
7721cat >>confdefs.h <<_ACEOF
7722#define uint64_t $ac_cv_c_uint64_t
7723_ACEOF
7724;;
7725 esac
ad6254c5 7726
ec6a6fbe
AK
7727{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7728$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7729if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7730 $as_echo_n "(cached) " >&6
ad6254c5
AK
7731else
7732 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
7738$ac_includes_default
7739int
7740main ()
7741{
7742static struct stat ac_aggr;
7743if (ac_aggr.st_rdev)
7744return 0;
7745 ;
7746 return 0;
7747}
7748_ACEOF
7749rm -f conftest.$ac_objext
7a197a62
AK
7750if { (ac_try="$ac_compile"
7751case "(($ac_try" in
7752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753 *) ac_try_echo=$ac_try;;
7754esac
ec6a6fbe
AK
7755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756$as_echo "$ac_try_echo") >&5
7a197a62 7757 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7758 ac_status=$?
8a2fc586
AK
7759 grep -v '^ *+' conftest.er1 >conftest.err
7760 rm -f conftest.er1
7761 cat conftest.err >&5
ec6a6fbe 7762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7763 (exit $ac_status); } && {
7764 test -z "$ac_c_werror_flag" ||
7765 test ! -s conftest.err
7766 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7767 ac_cv_member_struct_stat_st_rdev=yes
7768else
ec6a6fbe 7769 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7770sed 's/^/| /' conftest.$ac_ext >&5
7771
7a197a62 7772 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778$ac_includes_default
7779int
7780main ()
7781{
7782static struct stat ac_aggr;
7783if (sizeof ac_aggr.st_rdev)
7784return 0;
7785 ;
7786 return 0;
7787}
7788_ACEOF
7789rm -f conftest.$ac_objext
7a197a62
AK
7790if { (ac_try="$ac_compile"
7791case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794esac
ec6a6fbe
AK
7795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7796$as_echo "$ac_try_echo") >&5
7a197a62 7797 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7798 ac_status=$?
8a2fc586
AK
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
ec6a6fbe 7802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7807 ac_cv_member_struct_stat_st_rdev=yes
7808else
ec6a6fbe 7809 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7810sed 's/^/| /' conftest.$ac_ext >&5
7811
7a197a62 7812 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7813fi
7a197a62
AK
7814
7815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7816fi
7a197a62
AK
7817
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7819fi
ec6a6fbe
AK
7820{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7821$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7822if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7823
7824cat >>confdefs.h <<_ACEOF
7825#define HAVE_STRUCT_STAT_ST_RDEV 1
7826_ACEOF
7827
7828
ad6254c5
AK
7829fi
7830
ec6a6fbe
AK
7831{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7832$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7833if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7834 $as_echo_n "(cached) " >&6
ad6254c5
AK
7835else
7836 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7837/* confdefs.h. */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h. */
7842#include <sys/types.h>
7843#include <time.h>
7844
7845int
7846main ()
7847{
25fbec5b
AK
7848struct tm tm;
7849 int *p = &tm.tm_sec;
ec6a6fbe 7850 return !p;
ad6254c5
AK
7851 ;
7852 return 0;
7853}
7854_ACEOF
7855rm -f conftest.$ac_objext
7a197a62
AK
7856if { (ac_try="$ac_compile"
7857case "(($ac_try" in
7858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7859 *) ac_try_echo=$ac_try;;
7860esac
ec6a6fbe
AK
7861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7862$as_echo "$ac_try_echo") >&5
7a197a62 7863 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7864 ac_status=$?
8a2fc586
AK
7865 grep -v '^ *+' conftest.er1 >conftest.err
7866 rm -f conftest.er1
7867 cat conftest.err >&5
ec6a6fbe 7868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7869 (exit $ac_status); } && {
7870 test -z "$ac_c_werror_flag" ||
7871 test ! -s conftest.err
d911ec67
AK
7872 } && test -s conftest.$ac_objext; then
7873 ac_cv_struct_tm=time.h
7874else
7875 $as_echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878 ac_cv_struct_tm=sys/time.h
7879fi
7880
7881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882fi
7883{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7884$as_echo "$ac_cv_struct_tm" >&6; }
7885if test $ac_cv_struct_tm = sys/time.h; then
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define TM_IN_SYS_TIME 1
7889_ACEOF
7890
7891fi
7892
7893
7894################################################################################
7895{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7896$as_echo_n "checking for library containing floor... " >&6; }
7897if test "${ac_cv_search_floor+set}" = set; then
7898 $as_echo_n "(cached) " >&6
7899else
7900 ac_func_search_save_LIBS=$LIBS
7901cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
7907
7908/* Override any GCC internal prototype to avoid an error.
7909 Use char because int might match the return type of a GCC
7910 builtin and then its argument prototype would still apply. */
7911#ifdef __cplusplus
7912extern "C"
7913#endif
7914char floor ();
7915int
7916main ()
7917{
7918return floor ();
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923for ac_lib in '' m; do
7924 if test -z "$ac_lib"; then
7925 ac_res="none required"
7926 else
7927 ac_res=-l$ac_lib
7928 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7929 fi
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931if { (ac_try="$ac_link"
7932case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935esac
7936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7937$as_echo "$ac_try_echo") >&5
7938 (eval "$ac_link") 2>conftest.er1
7939 ac_status=$?
7940 grep -v '^ *+' conftest.er1 >conftest.err
7941 rm -f conftest.er1
7942 cat conftest.err >&5
7943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest$ac_exeext && {
7948 test "$cross_compiling" = yes ||
7949 $as_test_x conftest$ac_exeext
7950 }; then
7951 ac_cv_search_floor=$ac_res
ad6254c5 7952else
ec6a6fbe 7953 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7954sed 's/^/| /' conftest.$ac_ext >&5
7955
7a197a62 7956
ad6254c5 7957fi
ad6254c5 7958
d911ec67
AK
7959rm -rf conftest.dSYM
7960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7961 conftest$ac_exeext
7962 if test "${ac_cv_search_floor+set}" = set; then
7963 break
7964fi
7965done
7966if test "${ac_cv_search_floor+set}" = set; then
7967 :
7968else
7969 ac_cv_search_floor=no
7970fi
7971rm conftest.$ac_ext
7972LIBS=$ac_func_search_save_LIBS
7973fi
7974{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7975$as_echo "$ac_cv_search_floor" >&6; }
7976ac_res=$ac_cv_search_floor
7977if test "$ac_res" != no; then
7978 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7979
d911ec67
AK
7980else
7981 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7982$as_echo "$as_me: error: bailing out" >&2;}
7983 { (exit 1); exit 1; }; }
ad6254c5 7984fi
809fae91 7985
795ca3e5 7986
ad6254c5
AK
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
d0191583
JM
8001
8002
8003
d911ec67
AK
8004
8005
8006
8007
8008
8009
8010
8011for ac_func in floor ftruncate gethostname getpagesize \
8012 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8013 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8014 strstr strtol strtoul uname
ad6254c5 8015do
ec6a6fbe
AK
8016as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8017{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8018$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8020 $as_echo_n "(cached) " >&6
795ca3e5 8021else
ad6254c5 8022 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
8a2fc586
AK
8028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8030#define $ac_func innocuous_$ac_func
8031
ad6254c5
AK
8032/* System header to define __stub macros and hopefully few prototypes,
8033 which can conflict with char $ac_func (); below.
8034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8035 <limits.h> exists even on freestanding compilers. */
8a2fc586 8036
ad6254c5
AK
8037#ifdef __STDC__
8038# include <limits.h>
8039#else
8040# include <assert.h>
8041#endif
8a2fc586
AK
8042
8043#undef $ac_func
8044
7a197a62
AK
8045/* Override any GCC internal prototype to avoid an error.
8046 Use char because int might match the return type of a GCC
8047 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8048#ifdef __cplusplus
8049extern "C"
ad6254c5 8050#endif
ad6254c5
AK
8051char $ac_func ();
8052/* The GNU C library defines this for functions which it implements
8053 to always fail with ENOSYS. Some functions are actually named
8054 something starting with __ and the normal name is an alias. */
7a197a62 8055#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8056choke me
ad6254c5
AK
8057#endif
8058
8059int
8060main ()
8061{
7a197a62 8062return $ac_func ();
ad6254c5
AK
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8068if { (ac_try="$ac_link"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
ec6a6fbe
AK
8073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074$as_echo "$ac_try_echo") >&5
7a197a62 8075 (eval "$ac_link") 2>conftest.er1
ad6254c5 8076 ac_status=$?
8a2fc586
AK
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
ec6a6fbe 8080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
ec6a6fbe
AK
8084 } && test -s conftest$ac_exeext && {
8085 test "$cross_compiling" = yes ||
8086 $as_test_x conftest$ac_exeext
8087 }; then
fc54be10
AK
8088 eval "$as_ac_var=yes"
8089else
ec6a6fbe 8090 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093 eval "$as_ac_var=no"
8094fi
8095
ec6a6fbe 8096rm -rf conftest.dSYM
25fbec5b 8097rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8098 conftest$ac_exeext conftest.$ac_ext
8099fi
ec6a6fbe
AK
8100ac_res=`eval 'as_val=${'$as_ac_var'}
8101 $as_echo "$as_val"'`
8102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8103$as_echo "$ac_res" >&6; }
8104as_val=`eval 'as_val=${'$as_ac_var'}
8105 $as_echo "$as_val"'`
8106 if test "x$as_val" = x""yes; then
ad6254c5 8107 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8108#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8109_ACEOF
8110
8111else
ec6a6fbe
AK
8112 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8113$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8114 { (exit 1); exit 1; }; }
8115fi
8116done
795ca3e5 8117
a0f9708e
AK
8118
8119for ac_func in siginterrupt
8120do
8121as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8122{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8123$as_echo_n "checking for $ac_func... " >&6; }
8124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8125 $as_echo_n "(cached) " >&6
8126else
8127 cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h. */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h. */
8133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8135#define $ac_func innocuous_$ac_func
8136
8137/* System header to define __stub macros and hopefully few prototypes,
8138 which can conflict with char $ac_func (); below.
8139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8140 <limits.h> exists even on freestanding compilers. */
8141
8142#ifdef __STDC__
8143# include <limits.h>
8144#else
8145# include <assert.h>
8146#endif
8147
8148#undef $ac_func
8149
8150/* Override any GCC internal prototype to avoid an error.
8151 Use char because int might match the return type of a GCC
8152 builtin and then its argument prototype would still apply. */
8153#ifdef __cplusplus
8154extern "C"
8155#endif
8156char $ac_func ();
8157/* The GNU C library defines this for functions which it implements
8158 to always fail with ENOSYS. Some functions are actually named
8159 something starting with __ and the normal name is an alias. */
8160#if defined __stub_$ac_func || defined __stub___$ac_func
8161choke me
8162#endif
8163
8164int
8165main ()
8166{
8167return $ac_func ();
8168 ;
8169 return 0;
8170}
8171_ACEOF
8172rm -f conftest.$ac_objext conftest$ac_exeext
8173if { (ac_try="$ac_link"
8174case "(($ac_try" in
8175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8176 *) ac_try_echo=$ac_try;;
8177esac
8178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8179$as_echo "$ac_try_echo") >&5
8180 (eval "$ac_link") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest$ac_exeext && {
8190 test "$cross_compiling" = yes ||
8191 $as_test_x conftest$ac_exeext
8192 }; then
8193 eval "$as_ac_var=yes"
8194else
8195 $as_echo "$as_me: failed program was:" >&5
8196sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 eval "$as_ac_var=no"
8199fi
8200
8201rm -rf conftest.dSYM
8202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8203 conftest$ac_exeext conftest.$ac_ext
8204fi
8205ac_res=`eval 'as_val=${'$as_ac_var'}
8206 $as_echo "$as_val"'`
8207 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8208$as_echo "$ac_res" >&6; }
8209as_val=`eval 'as_val=${'$as_ac_var'}
8210 $as_echo "$as_val"'`
8211 if test "x$as_val" = x""yes; then
8212 cat >>confdefs.h <<_ACEOF
8213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8214_ACEOF
8215
8216fi
8217done
8218
ad6254c5
AK
8219# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8220# for constant arguments. Useless!
ec6a6fbe
AK
8221{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8222$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8223if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8224 $as_echo_n "(cached) " >&6
ad6254c5
AK
8225else
8226 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8227/* confdefs.h. */
8228_ACEOF
8229cat confdefs.h >>conftest.$ac_ext
8230cat >>conftest.$ac_ext <<_ACEOF
8231/* end confdefs.h. */
8232#include <alloca.h>
8233int
8234main ()
8235{
8236char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8237 if (p) return 0;
ad6254c5
AK
8238 ;
8239 return 0;
8240}
8241_ACEOF
8242rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8243if { (ac_try="$ac_link"
8244case "(($ac_try" in
8245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8247esac
ec6a6fbe
AK
8248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8249$as_echo "$ac_try_echo") >&5
7a197a62 8250 (eval "$ac_link") 2>conftest.er1
ad6254c5 8251 ac_status=$?
8a2fc586
AK
8252 grep -v '^ *+' conftest.er1 >conftest.err
8253 rm -f conftest.er1
8254 cat conftest.err >&5
ec6a6fbe 8255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8256 (exit $ac_status); } && {
8257 test -z "$ac_c_werror_flag" ||
8258 test ! -s conftest.err
ec6a6fbe
AK
8259 } && test -s conftest$ac_exeext && {
8260 test "$cross_compiling" = yes ||
8261 $as_test_x conftest$ac_exeext
8262 }; then
ad6254c5
AK
8263 ac_cv_working_alloca_h=yes
8264else
ec6a6fbe 8265 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8266sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8267
7a197a62 8268 ac_cv_working_alloca_h=no
ad6254c5 8269fi
7a197a62 8270
ec6a6fbe 8271rm -rf conftest.dSYM
25fbec5b 8272rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8273 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8274fi
ec6a6fbe
AK
8275{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8276$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8277if test $ac_cv_working_alloca_h = yes; then
8278
8279cat >>confdefs.h <<\_ACEOF
8280#define HAVE_ALLOCA_H 1
8281_ACEOF
8282
8283fi
8284
ec6a6fbe
AK
8285{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8286$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8287if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8288 $as_echo_n "(cached) " >&6
ad6254c5
AK
8289else
8290 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8291/* confdefs.h. */
8292_ACEOF
8293cat confdefs.h >>conftest.$ac_ext
8294cat >>conftest.$ac_ext <<_ACEOF
8295/* end confdefs.h. */
8296#ifdef __GNUC__
8297# define alloca __builtin_alloca
8298#else
8299# ifdef _MSC_VER
8300# include <malloc.h>
8301# define alloca _alloca
8302# else
25fbec5b 8303# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8304# include <alloca.h>
8305# else
8306# ifdef _AIX
8307 #pragma alloca
8308# else
8309# ifndef alloca /* predefined by HP cc +Olibcalls */
8310char *alloca ();
8311# endif
8312# endif
8313# endif
8314# endif
8315#endif
8316
8317int
8318main ()
8319{
8320char *p = (char *) alloca (1);
7a197a62 8321 if (p) return 0;
ad6254c5
AK
8322 ;
8323 return 0;
8324}
8325_ACEOF
8326rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8327if { (ac_try="$ac_link"
8328case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
ec6a6fbe
AK
8332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8333$as_echo "$ac_try_echo") >&5
7a197a62 8334 (eval "$ac_link") 2>conftest.er1
ad6254c5 8335 ac_status=$?
8a2fc586
AK
8336 grep -v '^ *+' conftest.er1 >conftest.err
8337 rm -f conftest.er1
8338 cat conftest.err >&5
ec6a6fbe 8339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
ec6a6fbe
AK
8343 } && test -s conftest$ac_exeext && {
8344 test "$cross_compiling" = yes ||
8345 $as_test_x conftest$ac_exeext
8346 }; then
ad6254c5
AK
8347 ac_cv_func_alloca_works=yes
8348else
ec6a6fbe 8349 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
7a197a62 8352 ac_cv_func_alloca_works=no
ad6254c5 8353fi
7a197a62 8354
ec6a6fbe 8355rm -rf conftest.dSYM
25fbec5b 8356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8357 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8358fi
ec6a6fbe
AK
8359{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8360$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8361
8362if test $ac_cv_func_alloca_works = yes; then
8363
8364cat >>confdefs.h <<\_ACEOF
8365#define HAVE_ALLOCA 1
8366_ACEOF
8367
8368else
8369 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8370# that cause trouble. Some versions do not even contain alloca or
8371# contain a buggy version. If you still want to use their alloca,
8372# use ar to extract alloca.o from them instead of compiling alloca.c.
8373
7a197a62 8374ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8375
8376cat >>confdefs.h <<\_ACEOF
8377#define C_ALLOCA 1
8378_ACEOF
8379
8380
ec6a6fbe
AK
8381{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8382$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8383if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8384 $as_echo_n "(cached) " >&6
ad6254c5
AK
8385else
8386 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8387/* confdefs.h. */
8388_ACEOF
8389cat confdefs.h >>conftest.$ac_ext
8390cat >>conftest.$ac_ext <<_ACEOF
8391/* end confdefs.h. */
7a197a62 8392#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8393webecray
8394#else
8395wenotbecray
8396#endif
8397
8398_ACEOF
795ca3e5 8399if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8400 $EGREP "webecray" >/dev/null 2>&1; then
8401 ac_cv_os_cray=yes
8402else
8403 ac_cv_os_cray=no
795ca3e5
AK
8404fi
8405rm -f conftest*
8406
795ca3e5 8407fi
ec6a6fbe
AK
8408{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8409$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8410if test $ac_cv_os_cray = yes; then
8411 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8412 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8413{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8414$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8415if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8416 $as_echo_n "(cached) " >&6
ad6254c5
AK
8417else
8418 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h. */
8a2fc586
AK
8424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8426#define $ac_func innocuous_$ac_func
8427
ad6254c5
AK
8428/* System header to define __stub macros and hopefully few prototypes,
8429 which can conflict with char $ac_func (); below.
8430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8431 <limits.h> exists even on freestanding compilers. */
8a2fc586 8432
ad6254c5
AK
8433#ifdef __STDC__
8434# include <limits.h>
8435#else
8436# include <assert.h>
8437#endif
8a2fc586
AK
8438
8439#undef $ac_func
8440
7a197a62
AK
8441/* Override any GCC internal prototype to avoid an error.
8442 Use char because int might match the return type of a GCC
8443 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8444#ifdef __cplusplus
8445extern "C"
ad6254c5 8446#endif
ad6254c5
AK
8447char $ac_func ();
8448/* The GNU C library defines this for functions which it implements
8449 to always fail with ENOSYS. Some functions are actually named
8450 something starting with __ and the normal name is an alias. */
7a197a62 8451#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8452choke me
ad6254c5
AK
8453#endif
8454
8455int
8456main ()
8457{
7a197a62 8458return $ac_func ();
ad6254c5
AK
8459 ;
8460 return 0;
8461}
8462_ACEOF
8463rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8464if { (ac_try="$ac_link"
8465case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468esac
ec6a6fbe
AK
8469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8470$as_echo "$ac_try_echo") >&5
7a197a62 8471 (eval "$ac_link") 2>conftest.er1
ad6254c5 8472 ac_status=$?
8a2fc586
AK
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
ec6a6fbe 8476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8477 (exit $ac_status); } && {
8478 test -z "$ac_c_werror_flag" ||
8479 test ! -s conftest.err
ec6a6fbe
AK
8480 } && test -s conftest$ac_exeext && {
8481 test "$cross_compiling" = yes ||
8482 $as_test_x conftest$ac_exeext
8483 }; then
ad6254c5
AK
8484 eval "$as_ac_var=yes"
8485else
ec6a6fbe 8486 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
7a197a62 8489 eval "$as_ac_var=no"
ad6254c5 8490fi
7a197a62 8491
ec6a6fbe 8492rm -rf conftest.dSYM
25fbec5b 8493rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8494 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8495fi
ec6a6fbe
AK
8496ac_res=`eval 'as_val=${'$as_ac_var'}
8497 $as_echo "$as_val"'`
8498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8499$as_echo "$ac_res" >&6; }
8500as_val=`eval 'as_val=${'$as_ac_var'}
8501 $as_echo "$as_val"'`
8502 if test "x$as_val" = x""yes; then
80992638 8503
ad6254c5
AK
8504cat >>confdefs.h <<_ACEOF
8505#define CRAY_STACKSEG_END $ac_func
8506_ACEOF
8507
8508 break
8509fi
8510
8511 done
8512fi
8513
ec6a6fbe
AK
8514{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8515$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8516if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8517 $as_echo_n "(cached) " >&6
ad6254c5
AK
8518else
8519 if test "$cross_compiling" = yes; then
8520 ac_cv_c_stack_direction=0
8521else
8522 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8523/* confdefs.h. */
8524_ACEOF
8525cat confdefs.h >>conftest.$ac_ext
8526cat >>conftest.$ac_ext <<_ACEOF
8527/* end confdefs.h. */
7a197a62 8528$ac_includes_default
ad6254c5
AK
8529int
8530find_stack_direction ()
8531{
8532 static char *addr = 0;
8533 auto char dummy;
8534 if (addr == 0)
8535 {
8536 addr = &dummy;
8537 return find_stack_direction ();
8538 }
8539 else
8540 return (&dummy > addr) ? 1 : -1;
8541}
8542
8543int
8544main ()
8545{
7a197a62 8546 return find_stack_direction () < 0;
ad6254c5
AK
8547}
8548_ACEOF
8549rm -f conftest$ac_exeext
7a197a62
AK
8550if { (ac_try="$ac_link"
8551case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
ec6a6fbe
AK
8555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8556$as_echo "$ac_try_echo") >&5
7a197a62 8557 (eval "$ac_link") 2>&5
ad6254c5 8558 ac_status=$?
ec6a6fbe 8559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8561 { (case "(($ac_try" in
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8564esac
ec6a6fbe
AK
8565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8566$as_echo "$ac_try_echo") >&5
7a197a62 8567 (eval "$ac_try") 2>&5
ad6254c5 8568 ac_status=$?
ec6a6fbe 8569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8570 (exit $ac_status); }; }; then
8571 ac_cv_c_stack_direction=1
8572else
ec6a6fbe
AK
8573 $as_echo "$as_me: program exited with status $ac_status" >&5
8574$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8575sed 's/^/| /' conftest.$ac_ext >&5
8576
8577( exit $ac_status )
8578ac_cv_c_stack_direction=-1
8579fi
ec6a6fbe 8580rm -rf conftest.dSYM
7a197a62 8581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8582fi
7a197a62
AK
8583
8584
ad6254c5 8585fi
ec6a6fbe
AK
8586{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8587$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8588
d911ec67
AK
8589cat >>confdefs.h <<_ACEOF
8590#define STACK_DIRECTION $ac_cv_c_stack_direction
8591_ACEOF
8592
8593
8594fi
8595
8596{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8597$as_echo_n "checking whether closedir returns void... " >&6; }
8598if test "${ac_cv_func_closedir_void+set}" = set; then
8599 $as_echo_n "(cached) " >&6
8600else
8601 if test "$cross_compiling" = yes; then
8602 ac_cv_func_closedir_void=yes
8603else
8604 cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h. */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h. */
8610$ac_includes_default
8611#include <$ac_header_dirent>
8612#ifndef __cplusplus
8613int closedir ();
8614#endif
8615
8616int
8617main ()
8618{
8619return closedir (opendir (".")) != 0;
8620 ;
8621 return 0;
8622}
8623_ACEOF
8624rm -f conftest$ac_exeext
8625if { (ac_try="$ac_link"
8626case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631$as_echo "$ac_try_echo") >&5
8632 (eval "$ac_link") 2>&5
8633 ac_status=$?
8634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639esac
8640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641$as_echo "$ac_try_echo") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; }; then
8646 ac_cv_func_closedir_void=no
8647else
8648 $as_echo "$as_me: program exited with status $ac_status" >&5
8649$as_echo "$as_me: failed program was:" >&5
8650sed 's/^/| /' conftest.$ac_ext >&5
8651
8652( exit $ac_status )
8653ac_cv_func_closedir_void=yes
8654fi
8655rm -rf conftest.dSYM
8656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8657fi
8658
8659
8660fi
8661{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8662$as_echo "$ac_cv_func_closedir_void" >&6; }
8663if test $ac_cv_func_closedir_void = yes; then
8664
8665cat >>confdefs.h <<\_ACEOF
8666#define CLOSEDIR_VOID 1
8667_ACEOF
8668
8669fi
8670
8671
8672for ac_header in unistd.h
8673do
8674as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8677$as_echo_n "checking for $ac_header... " >&6; }
8678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8679 $as_echo_n "(cached) " >&6
8680fi
8681ac_res=`eval 'as_val=${'$as_ac_Header'}
8682 $as_echo "$as_val"'`
8683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8684$as_echo "$ac_res" >&6; }
8685else
8686 # Is the header compilable?
8687{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8688$as_echo_n "checking $ac_header usability... " >&6; }
8689cat >conftest.$ac_ext <<_ACEOF
8690/* confdefs.h. */
8691_ACEOF
8692cat confdefs.h >>conftest.$ac_ext
8693cat >>conftest.$ac_ext <<_ACEOF
8694/* end confdefs.h. */
8695$ac_includes_default
8696#include <$ac_header>
8697_ACEOF
8698rm -f conftest.$ac_objext
8699if { (ac_try="$ac_compile"
8700case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8703esac
8704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8705$as_echo "$ac_try_echo") >&5
8706 (eval "$ac_compile") 2>conftest.er1
8707 ac_status=$?
8708 grep -v '^ *+' conftest.er1 >conftest.err
8709 rm -f conftest.er1
8710 cat conftest.err >&5
8711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } && {
8713 test -z "$ac_c_werror_flag" ||
8714 test ! -s conftest.err
8715 } && test -s conftest.$ac_objext; then
8716 ac_header_compiler=yes
8717else
8718 $as_echo "$as_me: failed program was:" >&5
8719sed 's/^/| /' conftest.$ac_ext >&5
8720
8721 ac_header_compiler=no
8722fi
8723
8724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8726$as_echo "$ac_header_compiler" >&6; }
8727
8728# Is the header present?
8729{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8730$as_echo_n "checking $ac_header presence... " >&6; }
8731cat >conftest.$ac_ext <<_ACEOF
8732/* confdefs.h. */
8733_ACEOF
8734cat confdefs.h >>conftest.$ac_ext
8735cat >>conftest.$ac_ext <<_ACEOF
8736/* end confdefs.h. */
8737#include <$ac_header>
8738_ACEOF
8739if { (ac_try="$ac_cpp conftest.$ac_ext"
8740case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8745$as_echo "$ac_try_echo") >&5
8746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } >/dev/null && {
8753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 }; then
8756 ac_header_preproc=yes
8757else
8758 $as_echo "$as_me: failed program was:" >&5
8759sed 's/^/| /' conftest.$ac_ext >&5
8760
8761 ac_header_preproc=no
8762fi
8763
8764rm -f conftest.err conftest.$ac_ext
8765{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8766$as_echo "$ac_header_preproc" >&6; }
8767
8768# So? What about this header?
8769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8770 yes:no: )
8771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8772$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8774$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8775 ac_header_preproc=yes
8776 ;;
8777 no:yes:* )
8778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8779$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8781$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8783$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8785$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8787$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8789$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8790
8791 ;;
8792esac
8793{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8794$as_echo_n "checking for $ac_header... " >&6; }
8795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8796 $as_echo_n "(cached) " >&6
8797else
8798 eval "$as_ac_Header=\$ac_header_preproc"
8799fi
8800ac_res=`eval 'as_val=${'$as_ac_Header'}
8801 $as_echo "$as_val"'`
8802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8803$as_echo "$ac_res" >&6; }
8804
8805fi
8806as_val=`eval 'as_val=${'$as_ac_Header'}
8807 $as_echo "$as_val"'`
8808 if test "x$as_val" = x""yes; then
8809 cat >>confdefs.h <<_ACEOF
8810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8811_ACEOF
8812
ad6254c5
AK
8813fi
8814
d911ec67
AK
8815done
8816
8817{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8818$as_echo_n "checking for working chown... " >&6; }
8819if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8820 $as_echo_n "(cached) " >&6
ad6254c5
AK
8821else
8822 if test "$cross_compiling" = yes; then
d911ec67 8823 ac_cv_func_chown_works=no
ad6254c5
AK
8824else
8825 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8826/* confdefs.h. */
8827_ACEOF
8828cat confdefs.h >>conftest.$ac_ext
8829cat >>conftest.$ac_ext <<_ACEOF
8830/* end confdefs.h. */
8831$ac_includes_default
d911ec67 8832#include <fcntl.h>
ad6254c5
AK
8833
8834int
8835main ()
8836{
d911ec67
AK
8837 char *f = "conftest.chown";
8838 struct stat before, after;
8839
8840 if (creat (f, 0600) < 0)
8841 return 1;
8842 if (stat (f, &before) < 0)
8843 return 1;
8844 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8845 return 1;
8846 if (stat (f, &after) < 0)
8847 return 1;
8848 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8849
ad6254c5
AK
8850 ;
8851 return 0;
8852}
8853_ACEOF
8854rm -f conftest$ac_exeext
7a197a62
AK
8855if { (ac_try="$ac_link"
8856case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8859esac
ec6a6fbe
AK
8860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8861$as_echo "$ac_try_echo") >&5
7a197a62 8862 (eval "$ac_link") 2>&5
ad6254c5 8863 ac_status=$?
ec6a6fbe 8864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8866 { (case "(($ac_try" in
8867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868 *) ac_try_echo=$ac_try;;
8869esac
ec6a6fbe
AK
8870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8871$as_echo "$ac_try_echo") >&5
7a197a62 8872 (eval "$ac_try") 2>&5
ad6254c5 8873 ac_status=$?
ec6a6fbe 8874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8875 (exit $ac_status); }; }; then
d911ec67 8876 ac_cv_func_chown_works=yes
ad6254c5 8877else
ec6a6fbe
AK
8878 $as_echo "$as_me: program exited with status $ac_status" >&5
8879$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8880sed 's/^/| /' conftest.$ac_ext >&5
8881
8882( exit $ac_status )
d911ec67 8883ac_cv_func_chown_works=no
ad6254c5 8884fi
ec6a6fbe 8885rm -rf conftest.dSYM
7a197a62 8886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8887fi
7a197a62
AK
8888
8889
d911ec67
AK
8890rm -f conftest.chown
8891
ad6254c5 8892fi
d911ec67
AK
8893{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8894$as_echo "$ac_cv_func_chown_works" >&6; }
8895if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8896
8897cat >>confdefs.h <<\_ACEOF
d911ec67 8898#define HAVE_CHOWN 1
ad6254c5
AK
8899_ACEOF
8900
8901fi
8902
8903
7a197a62 8904for ac_header in vfork.h
ad6254c5 8905do
ec6a6fbe 8906as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8909$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8911 $as_echo_n "(cached) " >&6
ad6254c5 8912fi
ec6a6fbe
AK
8913ac_res=`eval 'as_val=${'$as_ac_Header'}
8914 $as_echo "$as_val"'`
8915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8916$as_echo "$ac_res" >&6; }
ad6254c5
AK
8917else
8918 # Is the header compilable?
ec6a6fbe
AK
8919{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8920$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8921cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h. */
8927$ac_includes_default
8928#include <$ac_header>
8929_ACEOF
8930rm -f conftest.$ac_objext
7a197a62
AK
8931if { (ac_try="$ac_compile"
8932case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935esac
ec6a6fbe
AK
8936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8937$as_echo "$ac_try_echo") >&5
7a197a62 8938 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8939 ac_status=$?
8a2fc586
AK
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
ec6a6fbe 8943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8944 (exit $ac_status); } && {
8945 test -z "$ac_c_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8948 ac_header_compiler=yes
8949else
ec6a6fbe 8950 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8951sed 's/^/| /' conftest.$ac_ext >&5
8952
7a197a62 8953 ac_header_compiler=no
ad6254c5 8954fi
7a197a62
AK
8955
8956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8957{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8958$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8959
8960# Is the header present?
ec6a6fbe
AK
8961{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8962$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8963cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969#include <$ac_header>
8970_ACEOF
7a197a62
AK
8971if { (ac_try="$ac_cpp conftest.$ac_ext"
8972case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975esac
ec6a6fbe
AK
8976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8977$as_echo "$ac_try_echo") >&5
7a197a62 8978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8979 ac_status=$?
8980 grep -v '^ *+' conftest.er1 >conftest.err
8981 rm -f conftest.er1
8982 cat conftest.err >&5
ec6a6fbe 8983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8984 (exit $ac_status); } >/dev/null && {
8985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 }; then
ad6254c5
AK
8988 ac_header_preproc=yes
8989else
ec6a6fbe 8990 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
8993 ac_header_preproc=no
8994fi
7a197a62 8995
ad6254c5 8996rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8997{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8998$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8999
9000# So? What about this header?
8a2fc586
AK
9001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9002 yes:no: )
ec6a6fbe
AK
9003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9004$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9006$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9007 ac_header_preproc=yes
ad6254c5 9008 ;;
8a2fc586 9009 no:yes:* )
ec6a6fbe
AK
9010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9011$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9013$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9015$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9017$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9019$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9021$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9022
ad6254c5
AK
9023 ;;
9024esac
ec6a6fbe
AK
9025{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9026$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9028 $as_echo_n "(cached) " >&6
ad6254c5 9029else
8a2fc586 9030 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9031fi
ec6a6fbe
AK
9032ac_res=`eval 'as_val=${'$as_ac_Header'}
9033 $as_echo "$as_val"'`
9034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9035$as_echo "$ac_res" >&6; }
ad6254c5 9036
795ca3e5 9037fi
ec6a6fbe
AK
9038as_val=`eval 'as_val=${'$as_ac_Header'}
9039 $as_echo "$as_val"'`
9040 if test "x$as_val" = x""yes; then
ad6254c5 9041 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9043_ACEOF
9044
9045fi
9046
9047done
795ca3e5 9048
ad6254c5
AK
9049
9050
9051for ac_func in fork vfork
9052do
ec6a6fbe
AK
9053as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9054{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9055$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9056if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9057 $as_echo_n "(cached) " >&6
795ca3e5 9058else
ad6254c5 9059 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9060/* confdefs.h. */
9061_ACEOF
9062cat confdefs.h >>conftest.$ac_ext
9063cat >>conftest.$ac_ext <<_ACEOF
9064/* end confdefs.h. */
8a2fc586
AK
9065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9067#define $ac_func innocuous_$ac_func
9068
ad6254c5
AK
9069/* System header to define __stub macros and hopefully few prototypes,
9070 which can conflict with char $ac_func (); below.
9071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9072 <limits.h> exists even on freestanding compilers. */
8a2fc586 9073
ad6254c5
AK
9074#ifdef __STDC__
9075# include <limits.h>
9076#else
9077# include <assert.h>
795ca3e5 9078#endif
8a2fc586
AK
9079
9080#undef $ac_func
9081
7a197a62
AK
9082/* Override any GCC internal prototype to avoid an error.
9083 Use char because int might match the return type of a GCC
9084 builtin and then its argument prototype would still apply. */
795ca3e5 9085#ifdef __cplusplus
ad6254c5 9086extern "C"
ad6254c5 9087#endif
ad6254c5
AK
9088char $ac_func ();
9089/* The GNU C library defines this for functions which it implements
9090 to always fail with ENOSYS. Some functions are actually named
9091 something starting with __ and the normal name is an alias. */
7a197a62 9092#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9093choke me
795ca3e5
AK
9094#endif
9095
ad6254c5
AK
9096int
9097main ()
9098{
7a197a62 9099return $ac_func ();
ad6254c5
AK
9100 ;
9101 return 0;
9102}
9103_ACEOF
9104rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9105if { (ac_try="$ac_link"
9106case "(($ac_try" in
9107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9108 *) ac_try_echo=$ac_try;;
9109esac
ec6a6fbe
AK
9110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9111$as_echo "$ac_try_echo") >&5
7a197a62 9112 (eval "$ac_link") 2>conftest.er1
ad6254c5 9113 ac_status=$?
8a2fc586
AK
9114 grep -v '^ *+' conftest.er1 >conftest.err
9115 rm -f conftest.er1
9116 cat conftest.err >&5
ec6a6fbe 9117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9118 (exit $ac_status); } && {
9119 test -z "$ac_c_werror_flag" ||
9120 test ! -s conftest.err
ec6a6fbe
AK
9121 } && test -s conftest$ac_exeext && {
9122 test "$cross_compiling" = yes ||
9123 $as_test_x conftest$ac_exeext
9124 }; then
ad6254c5 9125 eval "$as_ac_var=yes"
795ca3e5 9126else
ec6a6fbe 9127 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
7a197a62 9130 eval "$as_ac_var=no"
795ca3e5 9131fi
7a197a62 9132
ec6a6fbe 9133rm -rf conftest.dSYM
25fbec5b 9134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9135 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9136fi
ec6a6fbe
AK
9137ac_res=`eval 'as_val=${'$as_ac_var'}
9138 $as_echo "$as_val"'`
9139 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9140$as_echo "$ac_res" >&6; }
9141as_val=`eval 'as_val=${'$as_ac_var'}
9142 $as_echo "$as_val"'`
9143 if test "x$as_val" = x""yes; then
ad6254c5 9144 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9145#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9146_ACEOF
9147
9148fi
9149done
9150
9151if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9152 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9153$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9154if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9155 $as_echo_n "(cached) " >&6
ad6254c5
AK
9156else
9157 if test "$cross_compiling" = yes; then
9158 ac_cv_func_fork_works=cross
9159else
9160 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9161/* confdefs.h. */
9162_ACEOF
9163cat confdefs.h >>conftest.$ac_ext
9164cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h. */
9166$ac_includes_default
9167int
9168main ()
9169{
9170
9171 /* By Ruediger Kuhlmann. */
9172 return fork () < 0;
9173
9174 ;
9175 return 0;
9176}
ad6254c5
AK
9177_ACEOF
9178rm -f conftest$ac_exeext
7a197a62
AK
9179if { (ac_try="$ac_link"
9180case "(($ac_try" in
9181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182 *) ac_try_echo=$ac_try;;
9183esac
ec6a6fbe
AK
9184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9185$as_echo "$ac_try_echo") >&5
7a197a62 9186 (eval "$ac_link") 2>&5
ad6254c5 9187 ac_status=$?
ec6a6fbe 9188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9190 { (case "(($ac_try" in
9191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9192 *) ac_try_echo=$ac_try;;
9193esac
ec6a6fbe
AK
9194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9195$as_echo "$ac_try_echo") >&5
7a197a62 9196 (eval "$ac_try") 2>&5
ad6254c5 9197 ac_status=$?
ec6a6fbe 9198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9199 (exit $ac_status); }; }; then
9200 ac_cv_func_fork_works=yes
9201else
ec6a6fbe
AK
9202 $as_echo "$as_me: program exited with status $ac_status" >&5
9203$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
9206( exit $ac_status )
9207ac_cv_func_fork_works=no
9208fi
ec6a6fbe 9209rm -rf conftest.dSYM
7a197a62 9210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9211fi
7a197a62
AK
9212
9213
ad6254c5 9214fi
ec6a6fbe
AK
9215{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9216$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9217
9218else
9219 ac_cv_func_fork_works=$ac_cv_func_fork
9220fi
9221if test "x$ac_cv_func_fork_works" = xcross; then
9222 case $host in
9223 *-*-amigaos* | *-*-msdosdjgpp*)
9224 # Override, as these systems have only a dummy fork() stub
9225 ac_cv_func_fork_works=no
9226 ;;
9227 *)
9228 ac_cv_func_fork_works=yes
9229 ;;
9230 esac
ec6a6fbe
AK
9231 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9232$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9233fi
9234ac_cv_func_vfork_works=$ac_cv_func_vfork
9235if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9236 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9237$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9238if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9239 $as_echo_n "(cached) " >&6
ad6254c5
AK
9240else
9241 if test "$cross_compiling" = yes; then
9242 ac_cv_func_vfork_works=cross
9243else
9244 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9245/* confdefs.h. */
9246_ACEOF
9247cat confdefs.h >>conftest.$ac_ext
9248cat >>conftest.$ac_ext <<_ACEOF
9249/* end confdefs.h. */
9250/* Thanks to Paul Eggert for this test. */
7a197a62 9251$ac_includes_default
ad6254c5 9252#include <sys/wait.h>
25fbec5b 9253#ifdef HAVE_VFORK_H
ad6254c5
AK
9254# include <vfork.h>
9255#endif
9256/* On some sparc systems, changes by the child to local and incoming
9257 argument registers are propagated back to the parent. The compiler
9258 is told about this with #include <vfork.h>, but some compilers
9259 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9260 static variable whose address is put into a register that is
9261 clobbered by the vfork. */
9262static void
9263#ifdef __cplusplus
9264sparc_address_test (int arg)
9265# else
9266sparc_address_test (arg) int arg;
9267#endif
9268{
9269 static pid_t child;
9270 if (!child) {
9271 child = vfork ();
9272 if (child < 0) {
9273 perror ("vfork");
9274 _exit(2);
9275 }
9276 if (!child) {
9277 arg = getpid();
9278 write(-1, "", 0);
9279 _exit (arg);
9280 }
9281 }
9282}
9283
9284int
9285main ()
9286{
9287 pid_t parent = getpid ();
9288 pid_t child;
9289
9290 sparc_address_test (0);
9291
9292 child = vfork ();
9293
9294 if (child == 0) {
9295 /* Here is another test for sparc vfork register problems. This
9296 test uses lots of local variables, at least as many local
9297 variables as main has allocated so far including compiler
9298 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9299 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9300 reuse the register of parent for one of the local variables,
9301 since it will think that parent can't possibly be used any more
9302 in this routine. Assigning to the local variable will thus
9303 munge parent in the parent process. */
9304 pid_t
9305 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9306 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9307 /* Convince the compiler that p..p7 are live; otherwise, it might
9308 use the same hardware register for all 8 local variables. */
9309 if (p != p1 || p != p2 || p != p3 || p != p4
9310 || p != p5 || p != p6 || p != p7)
9311 _exit(1);
9312
9313 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9314 from child file descriptors. If the child closes a descriptor
9315 before it execs or exits, this munges the parent's descriptor
9316 as well. Test for this by closing stdout in the child. */
9317 _exit(close(fileno(stdout)) != 0);
9318 } else {
9319 int status;
9320 struct stat st;
9321
9322 while (wait(&status) != child)
9323 ;
7a197a62 9324 return (
ad6254c5
AK
9325 /* Was there some problem with vforking? */
9326 child < 0
9327
9328 /* Did the child fail? (This shouldn't happen.) */
9329 || status
9330
9331 /* Did the vfork/compiler bug occur? */
9332 || parent != getpid()
9333
9334 /* Did the file descriptor bug occur? */
9335 || fstat(fileno(stdout), &st) != 0
9336 );
9337 }
9338}
9339_ACEOF
9340rm -f conftest$ac_exeext
7a197a62
AK
9341if { (ac_try="$ac_link"
9342case "(($ac_try" in
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9345esac
ec6a6fbe
AK
9346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9347$as_echo "$ac_try_echo") >&5
7a197a62 9348 (eval "$ac_link") 2>&5
ad6254c5 9349 ac_status=$?
ec6a6fbe 9350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9352 { (case "(($ac_try" in
9353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354 *) ac_try_echo=$ac_try;;
9355esac
ec6a6fbe
AK
9356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9357$as_echo "$ac_try_echo") >&5
7a197a62 9358 (eval "$ac_try") 2>&5
ad6254c5 9359 ac_status=$?
ec6a6fbe 9360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9361 (exit $ac_status); }; }; then
9362 ac_cv_func_vfork_works=yes
9363else
ec6a6fbe
AK
9364 $as_echo "$as_me: program exited with status $ac_status" >&5
9365$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9366sed 's/^/| /' conftest.$ac_ext >&5
9367
9368( exit $ac_status )
9369ac_cv_func_vfork_works=no
9370fi
ec6a6fbe 9371rm -rf conftest.dSYM
7a197a62 9372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9373fi
7a197a62
AK
9374
9375
ad6254c5 9376fi
ec6a6fbe
AK
9377{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9378$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9379
9380fi;
9381if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9382 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9383 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9384$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9385fi
9386
9387if test "x$ac_cv_func_vfork_works" = xyes; then
9388
9389cat >>confdefs.h <<\_ACEOF
9390#define HAVE_WORKING_VFORK 1
9391_ACEOF
9392
9393else
9394
9395cat >>confdefs.h <<\_ACEOF
9396#define vfork fork
9397_ACEOF
9398
9399fi
9400if test "x$ac_cv_func_fork_works" = xyes; then
9401
9402cat >>confdefs.h <<\_ACEOF
9403#define HAVE_WORKING_FORK 1
9404_ACEOF
9405
9406fi
9407
ec6a6fbe
AK
9408{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9409$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9410if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9411 $as_echo_n "(cached) " >&6
ad6254c5
AK
9412else
9413 rm -f conftest.sym conftest.file
9414echo >conftest.file
9415if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9416 if test "$cross_compiling" = yes; then
9417 ac_cv_func_lstat_dereferences_slashed_symlink=no
9418else
9419 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425$ac_includes_default
9426int
9427main ()
9428{
9429struct stat sbuf;
9430 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9431 That is better in the sense that it means we will not
9432 have to compile and use the lstat wrapper. */
7a197a62 9433 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9434 ;
9435 return 0;
9436}
9437_ACEOF
9438rm -f conftest$ac_exeext
7a197a62
AK
9439if { (ac_try="$ac_link"
9440case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443esac
ec6a6fbe
AK
9444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9445$as_echo "$ac_try_echo") >&5
7a197a62 9446 (eval "$ac_link") 2>&5
ad6254c5 9447 ac_status=$?
ec6a6fbe 9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9450 { (case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9453esac
ec6a6fbe
AK
9454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9455$as_echo "$ac_try_echo") >&5
7a197a62 9456 (eval "$ac_try") 2>&5
ad6254c5 9457 ac_status=$?
ec6a6fbe 9458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9459 (exit $ac_status); }; }; then
9460 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9461else
ec6a6fbe
AK
9462 $as_echo "$as_me: program exited with status $ac_status" >&5
9463$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9464sed 's/^/| /' conftest.$ac_ext >&5
9465
9466( exit $ac_status )
9467ac_cv_func_lstat_dereferences_slashed_symlink=no
9468fi
ec6a6fbe 9469rm -rf conftest.dSYM
7a197a62 9470rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9471fi
7a197a62
AK
9472
9473
ad6254c5
AK
9474else
9475 # If the `ln -s' command failed, then we probably don't even
9476 # have an lstat function.
9477 ac_cv_func_lstat_dereferences_slashed_symlink=no
9478fi
9479rm -f conftest.sym conftest.file
9480
9481fi
ec6a6fbe
AK
9482{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9483$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9484
9485test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9486
9487cat >>confdefs.h <<_ACEOF
9488#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9489_ACEOF
9490
9491
9492if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9493 case " $LIBOBJS " in
8a2fc586 9494 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9495 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9496 ;;
8a2fc586
AK
9497esac
9498
ad6254c5
AK
9499fi
9500
ec6a6fbe
AK
9501{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9502$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9503if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9504 $as_echo_n "(cached) " >&6
ad6254c5
AK
9505else
9506 if test "$cross_compiling" = yes; then
9507 ac_cv_func_lstat_empty_string_bug=yes
9508else
9509 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9510/* confdefs.h. */
9511_ACEOF
9512cat confdefs.h >>conftest.$ac_ext
9513cat >>conftest.$ac_ext <<_ACEOF
9514/* end confdefs.h. */
9515$ac_includes_default
9516int
9517main ()
9518{
9519struct stat sbuf;
7a197a62 9520 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9521 ;
9522 return 0;
9523}
9524_ACEOF
9525rm -f conftest$ac_exeext
7a197a62
AK
9526if { (ac_try="$ac_link"
9527case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
ec6a6fbe
AK
9531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9532$as_echo "$ac_try_echo") >&5
7a197a62 9533 (eval "$ac_link") 2>&5
ad6254c5 9534 ac_status=$?
ec6a6fbe 9535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9537 { (case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540esac
ec6a6fbe
AK
9541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9542$as_echo "$ac_try_echo") >&5
7a197a62 9543 (eval "$ac_try") 2>&5
ad6254c5 9544 ac_status=$?
ec6a6fbe 9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9546 (exit $ac_status); }; }; then
7a197a62 9547 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9548else
ec6a6fbe
AK
9549 $as_echo "$as_me: program exited with status $ac_status" >&5
9550$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9551sed 's/^/| /' conftest.$ac_ext >&5
9552
9553( exit $ac_status )
7a197a62 9554ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9555fi
ec6a6fbe 9556rm -rf conftest.dSYM
7a197a62 9557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9558fi
7a197a62
AK
9559
9560
ad6254c5 9561fi
ec6a6fbe
AK
9562{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9563$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9564if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9565 case " $LIBOBJS " in
8a2fc586 9566 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9567 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9568 ;;
8a2fc586
AK
9569esac
9570
ad6254c5
AK
9571
9572cat >>confdefs.h <<_ACEOF
9573#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9574_ACEOF
9575
9576fi
9577
9578
9579for ac_header in stdlib.h
9580do
ec6a6fbe 9581as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9583 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9584$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9586 $as_echo_n "(cached) " >&6
ad6254c5 9587fi
ec6a6fbe
AK
9588ac_res=`eval 'as_val=${'$as_ac_Header'}
9589 $as_echo "$as_val"'`
9590 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9591$as_echo "$ac_res" >&6; }
ad6254c5
AK
9592else
9593 # Is the header compilable?
ec6a6fbe
AK
9594{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9595$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9596cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9597/* confdefs.h. */
9598_ACEOF
9599cat confdefs.h >>conftest.$ac_ext
9600cat >>conftest.$ac_ext <<_ACEOF
9601/* end confdefs.h. */
9602$ac_includes_default
9603#include <$ac_header>
9604_ACEOF
9605rm -f conftest.$ac_objext
7a197a62
AK
9606if { (ac_try="$ac_compile"
9607case "(($ac_try" in
9608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9609 *) ac_try_echo=$ac_try;;
9610esac
ec6a6fbe
AK
9611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9612$as_echo "$ac_try_echo") >&5
7a197a62 9613 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9614 ac_status=$?
8a2fc586
AK
9615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
ec6a6fbe 9618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9619 (exit $ac_status); } && {
9620 test -z "$ac_c_werror_flag" ||
9621 test ! -s conftest.err
9622 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9623 ac_header_compiler=yes
9624else
ec6a6fbe 9625 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9626sed 's/^/| /' conftest.$ac_ext >&5
9627
7a197a62 9628 ac_header_compiler=no
ad6254c5 9629fi
7a197a62
AK
9630
9631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9632{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9633$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9634
9635# Is the header present?
ec6a6fbe
AK
9636{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9637$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9638cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9639/* confdefs.h. */
9640_ACEOF
9641cat confdefs.h >>conftest.$ac_ext
9642cat >>conftest.$ac_ext <<_ACEOF
9643/* end confdefs.h. */
9644#include <$ac_header>
9645_ACEOF
7a197a62
AK
9646if { (ac_try="$ac_cpp conftest.$ac_ext"
9647case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650esac
ec6a6fbe
AK
9651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9652$as_echo "$ac_try_echo") >&5
7a197a62 9653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
ec6a6fbe 9658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9659 (exit $ac_status); } >/dev/null && {
9660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 }; then
ad6254c5
AK
9663 ac_header_preproc=yes
9664else
ec6a6fbe 9665 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9666sed 's/^/| /' conftest.$ac_ext >&5
9667
9668 ac_header_preproc=no
9669fi
7a197a62 9670
ad6254c5 9671rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9672{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9673$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9674
9675# So? What about this header?
8a2fc586
AK
9676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9677 yes:no: )
ec6a6fbe
AK
9678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9679$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9681$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9682 ac_header_preproc=yes
ad6254c5 9683 ;;
8a2fc586 9684 no:yes:* )
ec6a6fbe
AK
9685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9686$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9688$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9690$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9692$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9694$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9696$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9697
ad6254c5
AK
9698 ;;
9699esac
ec6a6fbe
AK
9700{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9701$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9703 $as_echo_n "(cached) " >&6
ad6254c5 9704else
8a2fc586 9705 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9706fi
ec6a6fbe
AK
9707ac_res=`eval 'as_val=${'$as_ac_Header'}
9708 $as_echo "$as_val"'`
9709 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9710$as_echo "$ac_res" >&6; }
ad6254c5
AK
9711
9712fi
ec6a6fbe
AK
9713as_val=`eval 'as_val=${'$as_ac_Header'}
9714 $as_echo "$as_val"'`
9715 if test "x$as_val" = x""yes; then
ad6254c5 9716 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9718_ACEOF
9719
9720fi
9721
9722done
9723
ec6a6fbe
AK
9724{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9725$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9726if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9727 $as_echo_n "(cached) " >&6
ad6254c5
AK
9728else
9729 if test "$cross_compiling" = yes; then
9730 ac_cv_func_malloc_0_nonnull=no
9731else
9732 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
25fbec5b 9738#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9739# include <stdlib.h>
9740#else
9741char *malloc ();
9742#endif
9743
9744int
9745main ()
9746{
7a197a62 9747return ! malloc (0);
ad6254c5
AK
9748 ;
9749 return 0;
9750}
9751_ACEOF
9752rm -f conftest$ac_exeext
7a197a62
AK
9753if { (ac_try="$ac_link"
9754case "(($ac_try" in
9755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756 *) ac_try_echo=$ac_try;;
9757esac
ec6a6fbe
AK
9758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9759$as_echo "$ac_try_echo") >&5
7a197a62 9760 (eval "$ac_link") 2>&5
ad6254c5 9761 ac_status=$?
ec6a6fbe 9762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9764 { (case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767esac
ec6a6fbe
AK
9768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9769$as_echo "$ac_try_echo") >&5
7a197a62 9770 (eval "$ac_try") 2>&5
ad6254c5 9771 ac_status=$?
ec6a6fbe 9772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9773 (exit $ac_status); }; }; then
9774 ac_cv_func_malloc_0_nonnull=yes
9775else
ec6a6fbe
AK
9776 $as_echo "$as_me: program exited with status $ac_status" >&5
9777$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9778sed 's/^/| /' conftest.$ac_ext >&5
9779
9780( exit $ac_status )
9781ac_cv_func_malloc_0_nonnull=no
9782fi
ec6a6fbe 9783rm -rf conftest.dSYM
7a197a62 9784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9785fi
7a197a62
AK
9786
9787
ad6254c5 9788fi
ec6a6fbe
AK
9789{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9790$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9791if test $ac_cv_func_malloc_0_nonnull = yes; then
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define HAVE_MALLOC 1
9795_ACEOF
9796
9797else
9798 cat >>confdefs.h <<\_ACEOF
9799#define HAVE_MALLOC 0
9800_ACEOF
9801
7a197a62 9802 case " $LIBOBJS " in
8a2fc586 9803 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9804 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9805 ;;
8a2fc586
AK
9806esac
9807
ad6254c5
AK
9808
9809cat >>confdefs.h <<\_ACEOF
9810#define malloc rpl_malloc
9811_ACEOF
9812
9813fi
9814
9815
9816
ec6a6fbe
AK
9817{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9818$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9819if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9820 $as_echo_n "(cached) " >&6
ad6254c5
AK
9821else
9822 if test "$cross_compiling" = yes; then
9823 ac_cv_func_memcmp_working=no
9824else
9825 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
8a2fc586 9831$ac_includes_default
ad6254c5
AK
9832int
9833main ()
9834{
9835
9836 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9837 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9838 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9839 return 1;
ad6254c5
AK
9840
9841 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9842 or more and with at least one buffer not starting on a 4-byte boundary.
9843 William Lewis provided this test program. */
9844 {
9845 char foo[21];
9846 char bar[21];
9847 int i;
9848 for (i = 0; i < 4; i++)
9849 {
8a2fc586
AK
9850 char *a = foo + i;
9851 char *b = bar + i;
9852 strcpy (a, "--------01111111");
9853 strcpy (b, "--------10000000");
9854 if (memcmp (a, b, 16) >= 0)
7a197a62 9855 return 1;
ad6254c5 9856 }
7a197a62 9857 return 0;
ad6254c5
AK
9858 }
9859
9860 ;
9861 return 0;
9862}
9863_ACEOF
9864rm -f conftest$ac_exeext
7a197a62
AK
9865if { (ac_try="$ac_link"
9866case "(($ac_try" in
9867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868 *) ac_try_echo=$ac_try;;
9869esac
ec6a6fbe
AK
9870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9871$as_echo "$ac_try_echo") >&5
7a197a62 9872 (eval "$ac_link") 2>&5
ad6254c5 9873 ac_status=$?
ec6a6fbe 9874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9876 { (case "(($ac_try" in
9877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878 *) ac_try_echo=$ac_try;;
9879esac
ec6a6fbe
AK
9880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9881$as_echo "$ac_try_echo") >&5
7a197a62 9882 (eval "$ac_try") 2>&5
ad6254c5 9883 ac_status=$?
ec6a6fbe 9884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9885 (exit $ac_status); }; }; then
9886 ac_cv_func_memcmp_working=yes
9887else
ec6a6fbe
AK
9888 $as_echo "$as_me: program exited with status $ac_status" >&5
9889$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
9892( exit $ac_status )
9893ac_cv_func_memcmp_working=no
9894fi
ec6a6fbe 9895rm -rf conftest.dSYM
7a197a62 9896rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9897fi
7a197a62
AK
9898
9899
ad6254c5 9900fi
ec6a6fbe
AK
9901{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9902$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9903test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9904 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9905 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9906 ;;
8a2fc586
AK
9907esac
9908
ad6254c5
AK
9909
9910
9911
9912for ac_header in stdlib.h unistd.h
9913do
ec6a6fbe 9914as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9917$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9919 $as_echo_n "(cached) " >&6
ad6254c5 9920fi
ec6a6fbe
AK
9921ac_res=`eval 'as_val=${'$as_ac_Header'}
9922 $as_echo "$as_val"'`
9923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9924$as_echo "$ac_res" >&6; }
ad6254c5
AK
9925else
9926 # Is the header compilable?
ec6a6fbe
AK
9927{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9928$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9929cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9930/* confdefs.h. */
9931_ACEOF
9932cat confdefs.h >>conftest.$ac_ext
9933cat >>conftest.$ac_ext <<_ACEOF
9934/* end confdefs.h. */
9935$ac_includes_default
9936#include <$ac_header>
9937_ACEOF
9938rm -f conftest.$ac_objext
7a197a62
AK
9939if { (ac_try="$ac_compile"
9940case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943esac
ec6a6fbe
AK
9944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9945$as_echo "$ac_try_echo") >&5
7a197a62 9946 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9947 ac_status=$?
8a2fc586
AK
9948 grep -v '^ *+' conftest.er1 >conftest.err
9949 rm -f conftest.er1
9950 cat conftest.err >&5
ec6a6fbe 9951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9952 (exit $ac_status); } && {
9953 test -z "$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9955 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9956 ac_header_compiler=yes
9957else
ec6a6fbe 9958 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9959sed 's/^/| /' conftest.$ac_ext >&5
9960
7a197a62 9961 ac_header_compiler=no
ad6254c5 9962fi
7a197a62
AK
9963
9964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9965{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9966$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9967
9968# Is the header present?
ec6a6fbe
AK
9969{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9970$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9971cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9972/* confdefs.h. */
9973_ACEOF
9974cat confdefs.h >>conftest.$ac_ext
9975cat >>conftest.$ac_ext <<_ACEOF
9976/* end confdefs.h. */
9977#include <$ac_header>
9978_ACEOF
7a197a62
AK
9979if { (ac_try="$ac_cpp conftest.$ac_ext"
9980case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
ec6a6fbe
AK
9984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9985$as_echo "$ac_try_echo") >&5
7a197a62 9986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
ec6a6fbe 9991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9992 (exit $ac_status); } >/dev/null && {
9993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 }; then
ad6254c5
AK
9996 ac_header_preproc=yes
9997else
ec6a6fbe 9998 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9999sed 's/^/| /' conftest.$ac_ext >&5
10000
10001 ac_header_preproc=no
10002fi
7a197a62 10003
ad6254c5 10004rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10005{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10006$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10007
10008# So? What about this header?
8a2fc586
AK
10009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10010 yes:no: )
ec6a6fbe
AK
10011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10012$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10014$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10015 ac_header_preproc=yes
ad6254c5 10016 ;;
8a2fc586 10017 no:yes:* )
ec6a6fbe
AK
10018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10019$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10021$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10023$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10025$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10027$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10029$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10030
ad6254c5
AK
10031 ;;
10032esac
ec6a6fbe
AK
10033{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10034$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10036 $as_echo_n "(cached) " >&6
ad6254c5 10037else
8a2fc586 10038 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10039fi
ec6a6fbe
AK
10040ac_res=`eval 'as_val=${'$as_ac_Header'}
10041 $as_echo "$as_val"'`
10042 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10043$as_echo "$ac_res" >&6; }
ad6254c5
AK
10044
10045fi
ec6a6fbe
AK
10046as_val=`eval 'as_val=${'$as_ac_Header'}
10047 $as_echo "$as_val"'`
10048 if test "x$as_val" = x""yes; then
ad6254c5 10049 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10051_ACEOF
10052
10053fi
10054
10055done
10056
10057
10058for ac_func in getpagesize
10059do
ec6a6fbe
AK
10060as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10061{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10062$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10063if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10064 $as_echo_n "(cached) " >&6
ad6254c5
AK
10065else
10066 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10067/* confdefs.h. */
10068_ACEOF
10069cat confdefs.h >>conftest.$ac_ext
10070cat >>conftest.$ac_ext <<_ACEOF
10071/* end confdefs.h. */
8a2fc586
AK
10072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10074#define $ac_func innocuous_$ac_func
10075
ad6254c5
AK
10076/* System header to define __stub macros and hopefully few prototypes,
10077 which can conflict with char $ac_func (); below.
10078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10079 <limits.h> exists even on freestanding compilers. */
8a2fc586 10080
ad6254c5
AK
10081#ifdef __STDC__
10082# include <limits.h>
10083#else
10084# include <assert.h>
10085#endif
8a2fc586
AK
10086
10087#undef $ac_func
10088
7a197a62
AK
10089/* Override any GCC internal prototype to avoid an error.
10090 Use char because int might match the return type of a GCC
10091 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10092#ifdef __cplusplus
10093extern "C"
ad6254c5 10094#endif
ad6254c5
AK
10095char $ac_func ();
10096/* The GNU C library defines this for functions which it implements
10097 to always fail with ENOSYS. Some functions are actually named
10098 something starting with __ and the normal name is an alias. */
7a197a62 10099#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10100choke me
ad6254c5
AK
10101#endif
10102
10103int
10104main ()
10105{
7a197a62 10106return $ac_func ();
ad6254c5
AK
10107 ;
10108 return 0;
10109}
10110_ACEOF
10111rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10112if { (ac_try="$ac_link"
10113case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116esac
ec6a6fbe
AK
10117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10118$as_echo "$ac_try_echo") >&5
7a197a62 10119 (eval "$ac_link") 2>conftest.er1
ad6254c5 10120 ac_status=$?
8a2fc586
AK
10121 grep -v '^ *+' conftest.er1 >conftest.err
10122 rm -f conftest.er1
10123 cat conftest.err >&5
ec6a6fbe 10124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10125 (exit $ac_status); } && {
10126 test -z "$ac_c_werror_flag" ||
10127 test ! -s conftest.err
ec6a6fbe
AK
10128 } && test -s conftest$ac_exeext && {
10129 test "$cross_compiling" = yes ||
10130 $as_test_x conftest$ac_exeext
10131 }; then
ad6254c5
AK
10132 eval "$as_ac_var=yes"
10133else
ec6a6fbe 10134 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10135sed 's/^/| /' conftest.$ac_ext >&5
10136
7a197a62 10137 eval "$as_ac_var=no"
ad6254c5 10138fi
7a197a62 10139
ec6a6fbe 10140rm -rf conftest.dSYM
25fbec5b 10141rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10142 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10143fi
ec6a6fbe
AK
10144ac_res=`eval 'as_val=${'$as_ac_var'}
10145 $as_echo "$as_val"'`
10146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10147$as_echo "$ac_res" >&6; }
10148as_val=`eval 'as_val=${'$as_ac_var'}
10149 $as_echo "$as_val"'`
10150 if test "x$as_val" = x""yes; then
ad6254c5 10151 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10152#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10153_ACEOF
10154
10155fi
10156done
10157
ec6a6fbe
AK
10158{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10159$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10160if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10161 $as_echo_n "(cached) " >&6
ad6254c5
AK
10162else
10163 if test "$cross_compiling" = yes; then
10164 ac_cv_func_mmap_fixed_mapped=no
10165else
10166 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10167/* confdefs.h. */
10168_ACEOF
10169cat confdefs.h >>conftest.$ac_ext
10170cat >>conftest.$ac_ext <<_ACEOF
10171/* end confdefs.h. */
10172$ac_includes_default
10173/* malloc might have been renamed as rpl_malloc. */
10174#undef malloc
10175
10176/* Thanks to Mike Haertel and Jim Avera for this test.
10177 Here is a matrix of mmap possibilities:
10178 mmap private not fixed
10179 mmap private fixed at somewhere currently unmapped
10180 mmap private fixed at somewhere already mapped
10181 mmap shared not fixed
10182 mmap shared fixed at somewhere currently unmapped
10183 mmap shared fixed at somewhere already mapped
10184 For private mappings, we should verify that changes cannot be read()
10185 back from the file, nor mmap's back from the file at a different
10186 address. (There have been systems where private was not correctly
10187 implemented like the infamous i386 svr4.0, and systems where the
10188 VM page cache was not coherent with the file system buffer cache
10189 like early versions of FreeBSD and possibly contemporary NetBSD.)
10190 For shared mappings, we should conversely verify that changes get
10191 propagated back to all the places they're supposed to be.
10192
10193 Grep wants private fixed already mapped.
10194 The main things grep needs to know about mmap are:
10195 * does it exist and is it safe to write into the mmap'd area
10196 * how to use it (BSD variants) */
10197
10198#include <fcntl.h>
10199#include <sys/mman.h>
10200
25fbec5b 10201#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10202char *malloc ();
10203#endif
10204
10205/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10206#ifndef HAVE_GETPAGESIZE
ad6254c5 10207/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10208# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10209# define HAVE_SYS_PARAM_H 1
10210# endif
10211
10212# ifdef _SC_PAGESIZE
10213# define getpagesize() sysconf(_SC_PAGESIZE)
10214# else /* no _SC_PAGESIZE */
25fbec5b 10215# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10216# include <sys/param.h>
10217# ifdef EXEC_PAGESIZE
10218# define getpagesize() EXEC_PAGESIZE
10219# else /* no EXEC_PAGESIZE */
10220# ifdef NBPG
10221# define getpagesize() NBPG * CLSIZE
10222# ifndef CLSIZE
10223# define CLSIZE 1
10224# endif /* no CLSIZE */
10225# else /* no NBPG */
10226# ifdef NBPC
10227# define getpagesize() NBPC
10228# else /* no NBPC */
10229# ifdef PAGESIZE
10230# define getpagesize() PAGESIZE
10231# endif /* PAGESIZE */
10232# endif /* no NBPC */
10233# endif /* no NBPG */
10234# endif /* no EXEC_PAGESIZE */
10235# else /* no HAVE_SYS_PARAM_H */
10236# define getpagesize() 8192 /* punt totally */
10237# endif /* no HAVE_SYS_PARAM_H */
10238# endif /* no _SC_PAGESIZE */
10239
10240#endif /* no HAVE_GETPAGESIZE */
10241
10242int
10243main ()
10244{
10245 char *data, *data2, *data3;
10246 int i, pagesize;
10247 int fd;
10248
10249 pagesize = getpagesize ();
10250
10251 /* First, make a file with some known garbage in it. */
10252 data = (char *) malloc (pagesize);
10253 if (!data)
7a197a62 10254 return 1;
ad6254c5
AK
10255 for (i = 0; i < pagesize; ++i)
10256 *(data + i) = rand ();
10257 umask (0);
10258 fd = creat ("conftest.mmap", 0600);
10259 if (fd < 0)
7a197a62 10260 return 1;
ad6254c5 10261 if (write (fd, data, pagesize) != pagesize)
7a197a62 10262 return 1;
ad6254c5
AK
10263 close (fd);
10264
10265 /* Next, try to mmap the file at a fixed address which already has
10266 something else allocated at it. If we can, also make sure that
10267 we see the same garbage. */
10268 fd = open ("conftest.mmap", O_RDWR);
10269 if (fd < 0)
7a197a62 10270 return 1;
ad6254c5
AK
10271 data2 = (char *) malloc (2 * pagesize);
10272 if (!data2)
7a197a62
AK
10273 return 1;
10274 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10275 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10276 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10277 return 1;
ad6254c5
AK
10278 for (i = 0; i < pagesize; ++i)
10279 if (*(data + i) != *(data2 + i))
7a197a62 10280 return 1;
ad6254c5 10281
d911ec67
AK
10282 /* Finally, make sure that changes to the mapped area do not
10283 percolate back to the file as seen by read(). (This is a bug on
10284 some variants of i386 svr4.0.) */
10285 for (i = 0; i < pagesize; ++i)
10286 *(data2 + i) = *(data2 + i) + 1;
10287 data3 = (char *) malloc (pagesize);
10288 if (!data3)
10289 return 1;
10290 if (read (fd, data3, pagesize) != pagesize)
10291 return 1;
10292 for (i = 0; i < pagesize; ++i)
10293 if (*(data + i) != *(data3 + i))
10294 return 1;
10295 close (fd);
10296 return 0;
10297}
10298_ACEOF
10299rm -f conftest$ac_exeext
10300if { (ac_try="$ac_link"
10301case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10304esac
10305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10306$as_echo "$ac_try_echo") >&5
10307 (eval "$ac_link") 2>&5
10308 ac_status=$?
10309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10311 { (case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314esac
10315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10316$as_echo "$ac_try_echo") >&5
10317 (eval "$ac_try") 2>&5
10318 ac_status=$?
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); }; }; then
10321 ac_cv_func_mmap_fixed_mapped=yes
10322else
10323 $as_echo "$as_me: program exited with status $ac_status" >&5
10324$as_echo "$as_me: failed program was:" >&5
10325sed 's/^/| /' conftest.$ac_ext >&5
10326
10327( exit $ac_status )
10328ac_cv_func_mmap_fixed_mapped=no
10329fi
10330rm -rf conftest.dSYM
10331rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10332fi
10333
10334
10335fi
10336{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10337$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10338if test $ac_cv_func_mmap_fixed_mapped = yes; then
10339
10340cat >>confdefs.h <<\_ACEOF
10341#define HAVE_MMAP 1
10342_ACEOF
10343
10344fi
10345rm -f conftest.mmap
10346
10347
10348for ac_header in stdlib.h
10349do
10350as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10353$as_echo_n "checking for $ac_header... " >&6; }
10354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10355 $as_echo_n "(cached) " >&6
10356fi
10357ac_res=`eval 'as_val=${'$as_ac_Header'}
10358 $as_echo "$as_val"'`
10359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10360$as_echo "$ac_res" >&6; }
10361else
10362 # Is the header compilable?
10363{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10364$as_echo_n "checking $ac_header usability... " >&6; }
10365cat >conftest.$ac_ext <<_ACEOF
10366/* confdefs.h. */
10367_ACEOF
10368cat confdefs.h >>conftest.$ac_ext
10369cat >>conftest.$ac_ext <<_ACEOF
10370/* end confdefs.h. */
10371$ac_includes_default
10372#include <$ac_header>
10373_ACEOF
10374rm -f conftest.$ac_objext
10375if { (ac_try="$ac_compile"
10376case "(($ac_try" in
10377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10378 *) ac_try_echo=$ac_try;;
10379esac
10380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10381$as_echo "$ac_try_echo") >&5
10382 (eval "$ac_compile") 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && {
10389 test -z "$ac_c_werror_flag" ||
10390 test ! -s conftest.err
10391 } && test -s conftest.$ac_objext; then
10392 ac_header_compiler=yes
10393else
10394 $as_echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_header_compiler=no
10398fi
10399
10400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10401{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10402$as_echo "$ac_header_compiler" >&6; }
10403
10404# Is the header present?
10405{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10406$as_echo_n "checking $ac_header presence... " >&6; }
10407cat >conftest.$ac_ext <<_ACEOF
10408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
10413#include <$ac_header>
10414_ACEOF
10415if { (ac_try="$ac_cpp conftest.$ac_ext"
10416case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419esac
10420eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421$as_echo "$ac_try_echo") >&5
10422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } >/dev/null && {
10429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 }; then
10432 ac_header_preproc=yes
10433else
10434 $as_echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437 ac_header_preproc=no
10438fi
10439
10440rm -f conftest.err conftest.$ac_ext
10441{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10442$as_echo "$ac_header_preproc" >&6; }
10443
10444# So? What about this header?
10445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10446 yes:no: )
10447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10448$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10450$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10451 ac_header_preproc=yes
10452 ;;
10453 no:yes:* )
10454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10455$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10457$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10459$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10461$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10463$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10465$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10466
10467 ;;
10468esac
10469{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10470$as_echo_n "checking for $ac_header... " >&6; }
10471if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10472 $as_echo_n "(cached) " >&6
10473else
10474 eval "$as_ac_Header=\$ac_header_preproc"
10475fi
10476ac_res=`eval 'as_val=${'$as_ac_Header'}
10477 $as_echo "$as_val"'`
10478 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10479$as_echo "$ac_res" >&6; }
10480
10481fi
10482as_val=`eval 'as_val=${'$as_ac_Header'}
10483 $as_echo "$as_val"'`
10484 if test "x$as_val" = x""yes; then
10485 cat >>confdefs.h <<_ACEOF
10486#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10487_ACEOF
10488
10489fi
10490
10491done
10492
10493{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10494$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10495if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10496 $as_echo_n "(cached) " >&6
10497else
10498 if test "$cross_compiling" = yes; then
10499 ac_cv_func_realloc_0_nonnull=no
10500else
10501 cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h. */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h. */
10507#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10508# include <stdlib.h>
10509#else
10510char *realloc ();
10511#endif
10512
10513int
10514main ()
10515{
10516return ! realloc (0, 0);
10517 ;
7a197a62 10518 return 0;
ad6254c5
AK
10519}
10520_ACEOF
10521rm -f conftest$ac_exeext
7a197a62
AK
10522if { (ac_try="$ac_link"
10523case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10526esac
ec6a6fbe
AK
10527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10528$as_echo "$ac_try_echo") >&5
7a197a62 10529 (eval "$ac_link") 2>&5
ad6254c5 10530 ac_status=$?
ec6a6fbe 10531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
ec6a6fbe
AK
10537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10538$as_echo "$ac_try_echo") >&5
7a197a62 10539 (eval "$ac_try") 2>&5
ad6254c5 10540 ac_status=$?
ec6a6fbe 10541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10542 (exit $ac_status); }; }; then
d911ec67 10543 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10544else
ec6a6fbe
AK
10545 $as_echo "$as_me: program exited with status $ac_status" >&5
10546$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10547sed 's/^/| /' conftest.$ac_ext >&5
10548
10549( exit $ac_status )
d911ec67 10550ac_cv_func_realloc_0_nonnull=no
ad6254c5 10551fi
ec6a6fbe 10552rm -rf conftest.dSYM
7a197a62 10553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10554fi
7a197a62
AK
10555
10556
ad6254c5 10557fi
d911ec67
AK
10558{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10559$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10560if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10561
10562cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10563#define HAVE_REALLOC 1
10564_ACEOF
10565
10566else
10567 cat >>confdefs.h <<\_ACEOF
10568#define HAVE_REALLOC 0
10569_ACEOF
10570
10571 case " $LIBOBJS " in
10572 *" realloc.$ac_objext "* ) ;;
10573 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10574 ;;
10575esac
10576
10577
10578cat >>confdefs.h <<\_ACEOF
10579#define realloc rpl_realloc
ad6254c5
AK
10580_ACEOF
10581
10582fi
d911ec67
AK
10583
10584
ad6254c5 10585
ec6a6fbe
AK
10586{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10587$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10588if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10589 $as_echo_n "(cached) " >&6
ad6254c5
AK
10590else
10591 if test "$cross_compiling" = yes; then
10592 ac_cv_func_stat_empty_string_bug=yes
10593else
10594 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10595/* confdefs.h. */
10596_ACEOF
10597cat confdefs.h >>conftest.$ac_ext
10598cat >>conftest.$ac_ext <<_ACEOF
10599/* end confdefs.h. */
10600$ac_includes_default
10601int
10602main ()
10603{
10604struct stat sbuf;
7a197a62 10605 return stat ("", &sbuf) == 0;
ad6254c5
AK
10606 ;
10607 return 0;
10608}
10609_ACEOF
10610rm -f conftest$ac_exeext
7a197a62
AK
10611if { (ac_try="$ac_link"
10612case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615esac
ec6a6fbe
AK
10616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10617$as_echo "$ac_try_echo") >&5
7a197a62 10618 (eval "$ac_link") 2>&5
ad6254c5 10619 ac_status=$?
ec6a6fbe 10620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10622 { (case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625esac
ec6a6fbe
AK
10626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627$as_echo "$ac_try_echo") >&5
7a197a62 10628 (eval "$ac_try") 2>&5
ad6254c5 10629 ac_status=$?
ec6a6fbe 10630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10631 (exit $ac_status); }; }; then
7a197a62 10632 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10633else
ec6a6fbe
AK
10634 $as_echo "$as_me: program exited with status $ac_status" >&5
10635$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638( exit $ac_status )
7a197a62 10639ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10640fi
ec6a6fbe 10641rm -rf conftest.dSYM
7a197a62 10642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10643fi
7a197a62
AK
10644
10645
ad6254c5 10646fi
ec6a6fbe
AK
10647{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10648$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10649if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10650 case " $LIBOBJS " in
8a2fc586 10651 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10652 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10653 ;;
8a2fc586
AK
10654esac
10655
ad6254c5
AK
10656
10657cat >>confdefs.h <<_ACEOF
10658#define HAVE_STAT_EMPTY_STRING_BUG 1
10659_ACEOF
10660
10661fi
10662
ec6a6fbe
AK
10663{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10664$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10665if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10666 $as_echo_n "(cached) " >&6
ad6254c5
AK
10667else
10668 if test "$cross_compiling" = yes; then
10669 ac_cv_func_strtod=no
10670else
10671 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10672/* confdefs.h. */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h. */
10677
7a197a62
AK
10678$ac_includes_default
10679#ifndef strtod
ad6254c5 10680double strtod ();
7a197a62 10681#endif
ad6254c5
AK
10682int
10683main()
10684{
10685 {
10686 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10687 char *string = " +69";
10688 char *term;
10689 double value;
10690 value = strtod (string, &term);
10691 if (value != 69 || term != (string + 4))
7a197a62 10692 return 1;
ad6254c5
AK
10693 }
10694
10695 {
10696 /* Under Solaris 2.4, strtod returns the wrong value for the
10697 terminating character under some conditions. */
10698 char *string = "NaN";
10699 char *term;
10700 strtod (string, &term);
10701 if (term != string && *(term - 1) == 0)
7a197a62 10702 return 1;
ad6254c5 10703 }
7a197a62 10704 return 0;
ad6254c5
AK
10705}
10706
10707_ACEOF
10708rm -f conftest$ac_exeext
7a197a62
AK
10709if { (ac_try="$ac_link"
10710case "(($ac_try" in
10711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10713esac
ec6a6fbe
AK
10714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10715$as_echo "$ac_try_echo") >&5
7a197a62 10716 (eval "$ac_link") 2>&5
ad6254c5 10717 ac_status=$?
ec6a6fbe 10718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10720 { (case "(($ac_try" in
10721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722 *) ac_try_echo=$ac_try;;
10723esac
ec6a6fbe
AK
10724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10725$as_echo "$ac_try_echo") >&5
7a197a62 10726 (eval "$ac_try") 2>&5
ad6254c5 10727 ac_status=$?
ec6a6fbe 10728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10729 (exit $ac_status); }; }; then
10730 ac_cv_func_strtod=yes
10731else
ec6a6fbe
AK
10732 $as_echo "$as_me: program exited with status $ac_status" >&5
10733$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10734sed 's/^/| /' conftest.$ac_ext >&5
10735
10736( exit $ac_status )
10737ac_cv_func_strtod=no
10738fi
ec6a6fbe 10739rm -rf conftest.dSYM
7a197a62 10740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10741fi
7a197a62
AK
10742
10743
ad6254c5 10744fi
ec6a6fbe
AK
10745{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10746$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10747if test $ac_cv_func_strtod = no; then
7a197a62 10748 case " $LIBOBJS " in
8a2fc586 10749 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10750 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10751 ;;
8a2fc586
AK
10752esac
10753
ec6a6fbe
AK
10754{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10755$as_echo_n "checking for pow... " >&6; }
ad6254c5 10756if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10757 $as_echo_n "(cached) " >&6
ad6254c5
AK
10758else
10759 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
8a2fc586
AK
10765/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10767#define pow innocuous_pow
10768
ad6254c5
AK
10769/* System header to define __stub macros and hopefully few prototypes,
10770 which can conflict with char pow (); below.
10771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10772 <limits.h> exists even on freestanding compilers. */
8a2fc586 10773
ad6254c5
AK
10774#ifdef __STDC__
10775# include <limits.h>
10776#else
10777# include <assert.h>
10778#endif
8a2fc586
AK
10779
10780#undef pow
10781
7a197a62
AK
10782/* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10785#ifdef __cplusplus
10786extern "C"
ad6254c5 10787#endif
ad6254c5
AK
10788char pow ();
10789/* The GNU C library defines this for functions which it implements
10790 to always fail with ENOSYS. Some functions are actually named
10791 something starting with __ and the normal name is an alias. */
7a197a62 10792#if defined __stub_pow || defined __stub___pow
ad6254c5 10793choke me
ad6254c5
AK
10794#endif
10795
10796int
10797main ()
10798{
7a197a62 10799return pow ();
ad6254c5
AK
10800 ;
10801 return 0;
10802}
10803_ACEOF
10804rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10805if { (ac_try="$ac_link"
10806case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
ec6a6fbe
AK
10810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10811$as_echo "$ac_try_echo") >&5
7a197a62 10812 (eval "$ac_link") 2>conftest.er1
ad6254c5 10813 ac_status=$?
8a2fc586
AK
10814 grep -v '^ *+' conftest.er1 >conftest.err
10815 rm -f conftest.er1
10816 cat conftest.err >&5
ec6a6fbe 10817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10818 (exit $ac_status); } && {
10819 test -z "$ac_c_werror_flag" ||
10820 test ! -s conftest.err
ec6a6fbe
AK
10821 } && test -s conftest$ac_exeext && {
10822 test "$cross_compiling" = yes ||
10823 $as_test_x conftest$ac_exeext
10824 }; then
ad6254c5
AK
10825 ac_cv_func_pow=yes
10826else
ec6a6fbe 10827 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
7a197a62 10830 ac_cv_func_pow=no
ad6254c5 10831fi
7a197a62 10832
ec6a6fbe 10833rm -rf conftest.dSYM
25fbec5b 10834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10835 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10836fi
ec6a6fbe
AK
10837{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10838$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10839
10840if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10841 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10842$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10843if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10844 $as_echo_n "(cached) " >&6
ad6254c5
AK
10845else
10846 ac_check_lib_save_LIBS=$LIBS
10847LIBS="-lm $LIBS"
10848cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
10854
7a197a62
AK
10855/* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10858#ifdef __cplusplus
10859extern "C"
10860#endif
ad6254c5
AK
10861char pow ();
10862int
10863main ()
10864{
7a197a62 10865return pow ();
ad6254c5
AK
10866 ;
10867 return 0;
10868}
10869_ACEOF
10870rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10871if { (ac_try="$ac_link"
10872case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
ec6a6fbe
AK
10876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10877$as_echo "$ac_try_echo") >&5
7a197a62 10878 (eval "$ac_link") 2>conftest.er1
ad6254c5 10879 ac_status=$?
8a2fc586
AK
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
ec6a6fbe 10883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10884 (exit $ac_status); } && {
10885 test -z "$ac_c_werror_flag" ||
10886 test ! -s conftest.err
ec6a6fbe
AK
10887 } && test -s conftest$ac_exeext && {
10888 test "$cross_compiling" = yes ||
10889 $as_test_x conftest$ac_exeext
10890 }; then
ad6254c5
AK
10891 ac_cv_lib_m_pow=yes
10892else
ec6a6fbe 10893 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10894sed 's/^/| /' conftest.$ac_ext >&5
10895
7a197a62 10896 ac_cv_lib_m_pow=no
ad6254c5 10897fi
7a197a62 10898
ec6a6fbe 10899rm -rf conftest.dSYM
25fbec5b 10900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10901 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10902LIBS=$ac_check_lib_save_LIBS
d0191583 10903fi
ec6a6fbe
AK
10904{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10905$as_echo "$ac_cv_lib_m_pow" >&6; }
10906if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10907 POW_LIB=-lm
10908else
ec6a6fbe
AK
10909 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10910$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10911fi
72b2cb61 10912
d0191583 10913fi
72b2cb61 10914
ad6254c5
AK
10915fi
10916
ad6254c5 10917
d0191583
JM
10918for ac_func in vprintf
10919do
ec6a6fbe
AK
10920as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10921{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10922$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10923if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10924 $as_echo_n "(cached) " >&6
ad6254c5 10925else
d0191583
JM
10926 cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10934#define $ac_func innocuous_$ac_func
7a197a62 10935
d0191583
JM
10936/* System header to define __stub macros and hopefully few prototypes,
10937 which can conflict with char $ac_func (); below.
10938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10939 <limits.h> exists even on freestanding compilers. */
ad6254c5 10940
d0191583
JM
10941#ifdef __STDC__
10942# include <limits.h>
10943#else
10944# include <assert.h>
10945#endif
ad6254c5 10946
d0191583 10947#undef $ac_func
72b2cb61 10948
d0191583
JM
10949/* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952#ifdef __cplusplus
10953extern "C"
10954#endif
10955char $ac_func ();
10956/* The GNU C library defines this for functions which it implements
10957 to always fail with ENOSYS. Some functions are actually named
10958 something starting with __ and the normal name is an alias. */
10959#if defined __stub_$ac_func || defined __stub___$ac_func
10960choke me
10961#endif
10962
10963int
10964main ()
10965{
10966return $ac_func ();
10967 ;
10968 return 0;
10969}
72b2cb61 10970_ACEOF
d0191583
JM
10971rm -f conftest.$ac_objext conftest$ac_exeext
10972if { (ac_try="$ac_link"
10973case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976esac
ec6a6fbe
AK
10977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10978$as_echo "$ac_try_echo") >&5
d0191583
JM
10979 (eval "$ac_link") 2>conftest.er1
10980 ac_status=$?
10981 grep -v '^ *+' conftest.er1 >conftest.err
10982 rm -f conftest.er1
10983 cat conftest.err >&5
ec6a6fbe 10984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10985 (exit $ac_status); } && {
10986 test -z "$ac_c_werror_flag" ||
10987 test ! -s conftest.err
ec6a6fbe
AK
10988 } && test -s conftest$ac_exeext && {
10989 test "$cross_compiling" = yes ||
10990 $as_test_x conftest$ac_exeext
10991 }; then
d0191583
JM
10992 eval "$as_ac_var=yes"
10993else
ec6a6fbe 10994 $as_echo "$as_me: failed program was:" >&5
d0191583 10995sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10996
d0191583 10997 eval "$as_ac_var=no"
ad6254c5
AK
10998fi
10999
ec6a6fbe 11000rm -rf conftest.dSYM
d0191583
JM
11001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002 conftest$ac_exeext conftest.$ac_ext
7a197a62 11003fi
ec6a6fbe
AK
11004ac_res=`eval 'as_val=${'$as_ac_var'}
11005 $as_echo "$as_val"'`
11006 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11007$as_echo "$ac_res" >&6; }
11008as_val=`eval 'as_val=${'$as_ac_var'}
11009 $as_echo "$as_val"'`
11010 if test "x$as_val" = x""yes; then
d0191583 11011 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11012#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 11013_ACEOF
7a197a62 11014
ec6a6fbe
AK
11015{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11016$as_echo_n "checking for _doprnt... " >&6; }
d0191583 11017if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 11018 $as_echo_n "(cached) " >&6
ad6254c5 11019else
d0191583
JM
11020 cat >conftest.$ac_ext <<_ACEOF
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11028#define _doprnt innocuous__doprnt
7a197a62 11029
d0191583
JM
11030/* System header to define __stub macros and hopefully few prototypes,
11031 which can conflict with char _doprnt (); below.
11032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11033 <limits.h> exists even on freestanding compilers. */
ad6254c5 11034
d0191583
JM
11035#ifdef __STDC__
11036# include <limits.h>
11037#else
11038# include <assert.h>
11039#endif
72b2cb61 11040
d0191583
JM
11041#undef _doprnt
11042
11043/* Override any GCC internal prototype to avoid an error.
11044 Use char because int might match the return type of a GCC
11045 builtin and then its argument prototype would still apply. */
11046#ifdef __cplusplus
11047extern "C"
11048#endif
11049char _doprnt ();
11050/* The GNU C library defines this for functions which it implements
11051 to always fail with ENOSYS. Some functions are actually named
11052 something starting with __ and the normal name is an alias. */
11053#if defined __stub__doprnt || defined __stub____doprnt
11054choke me
11055#endif
11056
11057int
11058main ()
11059{
11060return _doprnt ();
11061 ;
11062 return 0;
11063}
72b2cb61 11064_ACEOF
d0191583
JM
11065rm -f conftest.$ac_objext conftest$ac_exeext
11066if { (ac_try="$ac_link"
11067case "(($ac_try" in
11068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069 *) ac_try_echo=$ac_try;;
11070esac
ec6a6fbe
AK
11071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11072$as_echo "$ac_try_echo") >&5
d0191583
JM
11073 (eval "$ac_link") 2>conftest.er1
11074 ac_status=$?
11075 grep -v '^ *+' conftest.er1 >conftest.err
11076 rm -f conftest.er1
11077 cat conftest.err >&5
ec6a6fbe 11078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11079 (exit $ac_status); } && {
11080 test -z "$ac_c_werror_flag" ||
11081 test ! -s conftest.err
ec6a6fbe
AK
11082 } && test -s conftest$ac_exeext && {
11083 test "$cross_compiling" = yes ||
11084 $as_test_x conftest$ac_exeext
11085 }; then
d0191583
JM
11086 ac_cv_func__doprnt=yes
11087else
ec6a6fbe 11088 $as_echo "$as_me: failed program was:" >&5
d0191583 11089sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11090
d0191583 11091 ac_cv_func__doprnt=no
ad6254c5
AK
11092fi
11093
ec6a6fbe 11094rm -rf conftest.dSYM
d0191583
JM
11095rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11096 conftest$ac_exeext conftest.$ac_ext
7a197a62 11097fi
ec6a6fbe
AK
11098{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11099$as_echo "$ac_cv_func__doprnt" >&6; }
11100if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11101
d0191583
JM
11102cat >>confdefs.h <<\_ACEOF
11103#define HAVE_DOPRNT 1
11104_ACEOF
ad6254c5 11105
7a197a62
AK
11106fi
11107
d0191583
JM
11108fi
11109done
8b1a3214 11110
ad6254c5 11111
7a197a62 11112
9c961554 11113################################################################################
ec6a6fbe
AK
11114{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11115$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11116# Check whether --enable-static_link was given.
11117if test "${enable_static_link+set}" = set; then
11118 enableval=$enable_static_link; STATIC_LINK=$enableval
11119else
11120 STATIC_LINK=no
11121fi
11122
ec6a6fbe
AK
11123{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11124$as_echo "$STATIC_LINK" >&6; }
9c961554 11125
d0191583 11126################################################################################
ad6254c5 11127
ad6254c5
AK
11128
11129################################################################################
ec6a6fbe
AK
11130{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11131$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11132
11133# Check whether --with-user was given.
11134if test "${with_user+set}" = set; then
71082be4 11135 withval=$with_user; OWNER=$withval
7a197a62
AK
11136fi
11137
ec6a6fbe
AK
11138{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11139$as_echo "$OWNER" >&6; }
ad6254c5 11140
d0191583 11141if test x$OWNER != x; then
23b059e7 11142 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11143fi
11144
11145################################################################################
ec6a6fbe
AK
11146{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11147$as_echo_n "checking group owner... " >&6; }
ad6254c5 11148
d0191583
JM
11149# Check whether --with-group was given.
11150if test "${with_group+set}" = set; then
71082be4 11151 withval=$with_group; GROUP=$withval
7a197a62
AK
11152fi
11153
ec6a6fbe
AK
11154{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11155$as_echo "$GROUP" >&6; }
d0191583
JM
11156
11157if test x$GROUP != x; then
23b059e7 11158 INSTALL="$INSTALL -g $GROUP"
d0191583 11159fi
ad6254c5 11160
24bbc4d7 11161################################################################################
ec6a6fbe
AK
11162{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11163$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11164
11165
11166# Check whether --with-device-uid was given.
11167if test "${with_device_uid+set}" = set; then
71082be4 11168 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11169else
71082be4 11170 DM_DEVICE_UID=0
24bbc4d7
AK
11171fi
11172
ec6a6fbe
AK
11173{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11174$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11175
11176################################################################################
ec6a6fbe
AK
11177{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11178$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11179
11180
11181# Check whether --with-device-gid was given.
11182if test "${with_device_gid+set}" = set; then
71082be4 11183 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11184else
71082be4 11185 DM_DEVICE_GID=0
24bbc4d7
AK
11186fi
11187
ec6a6fbe
AK
11188{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11189$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11190
93bd259b 11191################################################################################
ec6a6fbe
AK
11192{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11193$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11194
11195
11196# Check whether --with-device-mode was given.
11197if test "${with_device_mode+set}" = set; then
71082be4 11198 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11199else
71082be4 11200 DM_DEVICE_MODE=0600
93bd259b
AK
11201fi
11202
ec6a6fbe
AK
11203{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11204$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11205
ad6254c5 11206################################################################################
ec6a6fbe
AK
11207{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11208$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11209# Check whether --enable-lvm1_fallback was given.
11210if test "${enable_lvm1_fallback+set}" = set; then
11211 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11212else
11213 LVM1_FALLBACK=no
7a197a62
AK
11214fi
11215
ec6a6fbe
AK
11216{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11217$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11218
d0191583 11219if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11220
11221cat >>confdefs.h <<\_ACEOF
d0191583 11222#define LVM1_FALLBACK 1
72b2cb61
AK
11223_ACEOF
11224
ad6254c5
AK
11225fi
11226
11227################################################################################
ec6a6fbe
AK
11228{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11229$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11230
11231# Check whether --with-lvm1 was given.
11232if test "${with_lvm1+set}" = set; then
71082be4 11233 withval=$with_lvm1; LVM1=$withval
d0191583 11234else
71082be4 11235 LVM1=internal
7a197a62
AK
11236fi
11237
ec6a6fbe
AK
11238{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11239$as_echo "$LVM1" >&6; }
ad6254c5 11240
d0191583 11241if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11242 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11243" >&5
ec6a6fbe 11244$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11245" >&2;}
11246 { (exit 1); exit 1; }; }
11247fi;
11248
11249if test x$LVM1 = xinternal; then
72b2cb61
AK
11250
11251cat >>confdefs.h <<\_ACEOF
d0191583 11252#define LVM1_INTERNAL 1
72b2cb61
AK
11253_ACEOF
11254
ad6254c5
AK
11255fi
11256
11257################################################################################
ec6a6fbe
AK
11258{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11259$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11260
11261# Check whether --with-pool was given.
11262if test "${with_pool+set}" = set; then
71082be4 11263 withval=$with_pool; POOL=$withval
ad6254c5 11264else
71082be4 11265 POOL=internal
7a197a62
AK
11266fi
11267
ec6a6fbe
AK
11268{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11269$as_echo "$POOL" >&6; }
ad6254c5 11270
d0191583 11271if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11272 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11273" >&5
ec6a6fbe 11274$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11275" >&2;}
11276 { (exit 1); exit 1; }; }
11277fi;
7a197a62 11278
d0191583
JM
11279if test x$POOL = xinternal; then
11280
11281cat >>confdefs.h <<\_ACEOF
11282#define POOL_INTERNAL 1
11283_ACEOF
11284
11285fi
ad6254c5 11286
06f62ad1 11287################################################################################
ec6a6fbe
AK
11288{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11289$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11290
11291# Check whether --with-cluster was given.
11292if test "${with_cluster+set}" = set; then
71082be4 11293 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11294fi
11295
ec6a6fbe
AK
11296{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11297$as_echo "$CLUSTER" >&6; }
06f62ad1 11298
d0191583 11299if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11300 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11301" >&5
ec6a6fbe 11302$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11303" >&2;}
11304 { (exit 1); exit 1; }; }
d0191583 11305fi;
06f62ad1 11306
d0191583 11307if test x$CLUSTER = xinternal; then
72b2cb61
AK
11308
11309cat >>confdefs.h <<\_ACEOF
d0191583 11310#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11311_ACEOF
11312
15d91f5a 11313fi
ad6254c5
AK
11314
11315################################################################################
ec6a6fbe
AK
11316{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11317$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11318
d0191583
JM
11319# Check whether --with-snapshots was given.
11320if test "${with_snapshots+set}" = set; then
71082be4 11321 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11322else
71082be4 11323 SNAPSHOTS=internal
ad6254c5
AK
11324fi
11325
ec6a6fbe
AK
11326{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11327$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11328
d0191583 11329if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11330 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11331" >&5
ec6a6fbe 11332$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11333" >&2;}
11334 { (exit 1); exit 1; }; }
11335fi;
11336
11337if test x$SNAPSHOTS = xinternal; then
11338
11339cat >>confdefs.h <<\_ACEOF
11340#define SNAPSHOT_INTERNAL 1
11341_ACEOF
ad6254c5 11342
ad6254c5 11343fi
7a197a62 11344
d0191583 11345################################################################################
ec6a6fbe
AK
11346{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11347$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11348
11349# Check whether --with-mirrors was given.
11350if test "${with_mirrors+set}" = set; then
71082be4 11351 withval=$with_mirrors; MIRRORS=$withval
d0191583 11352else
71082be4 11353 MIRRORS=internal
ad6254c5 11354fi
ad6254c5 11355
ec6a6fbe
AK
11356{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11357$as_echo "$MIRRORS" >&6; }
ad6254c5 11358
d0191583 11359if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11360 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11361" >&5
ec6a6fbe 11362$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11363" >&2;}
11364 { (exit 1); exit 1; }; }
11365fi;
ad6254c5 11366
d0191583 11367if test x$MIRRORS = xinternal; then
ad6254c5 11368
d0191583
JM
11369cat >>confdefs.h <<\_ACEOF
11370#define MIRRORED_INTERNAL 1
ad6254c5 11371_ACEOF
8a2fc586 11372
d0191583 11373fi
8a2fc586 11374
8fea97b7
ZK
11375################################################################################
11376{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11377$as_echo_n "checking whether to include replicators... " >&6; }
11378
11379# Check whether --with-replicators was given.
11380if test "${with_replicators+set}" = set; then
11381 withval=$with_replicators; REPLICATORS=$withval
11382else
71082be4 11383 REPLICATORS=none
8fea97b7
ZK
11384fi
11385
11386{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11387$as_echo "$REPLICATORS" >&6; }
11388
11389case "$REPLICATORS" in
11390 none|shared) ;;
11391 internal)
11392cat >>confdefs.h <<\_ACEOF
11393#define REPLICATOR_INTERNAL 1
11394_ACEOF
11395 ;;
11396 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11397$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11398 { (exit 1); exit 1; }; } ;;
11399esac
11400
d0191583 11401################################################################################
ec6a6fbe
AK
11402{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11403$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11404# Check whether --enable-readline was given.
11405if test "${enable_readline+set}" = set; then
11406 enableval=$enable_readline; READLINE=$enableval
11407else
06e459df 11408 READLINE=maybe
d0191583 11409fi
8a2fc586 11410
ec6a6fbe
AK
11411{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11412$as_echo "$READLINE" >&6; }
8a2fc586 11413
d0191583 11414################################################################################
ec6a6fbe
AK
11415{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11416$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11417# Check whether --enable-realtime was given.
11418if test "${enable_realtime+set}" = set; then
11419 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11420fi
ad6254c5 11421
ec6a6fbe
AK
11422{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11423$as_echo "$REALTIME" >&6; }
d0191583
JM
11424
11425################################################################################
90c80887 11426pkg_config_init() {
e2997b73
AK
11427
11428
11429if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11430 if test -n "$ac_tool_prefix"; then
11431 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11432set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
11435if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11436 $as_echo_n "(cached) " >&6
11437else
11438 case $PKG_CONFIG in
11439 [\\/]* | ?:[\\/]*)
11440 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11441 ;;
11442 *)
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $PATH
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11450 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11451 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11452 break 2
11453 fi
11454done
11455done
11456IFS=$as_save_IFS
11457
11458 ;;
11459esac
11460fi
11461PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11462if test -n "$PKG_CONFIG"; then
11463 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11464$as_echo "$PKG_CONFIG" >&6; }
11465else
11466 { $as_echo "$as_me:$LINENO: result: no" >&5
11467$as_echo "no" >&6; }
11468fi
11469
11470
11471fi
11472if test -z "$ac_cv_path_PKG_CONFIG"; then
11473 ac_pt_PKG_CONFIG=$PKG_CONFIG
11474 # Extract the first word of "pkg-config", so it can be a program name with args.
11475set dummy pkg-config; ac_word=$2
11476{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11477$as_echo_n "checking for $ac_word... " >&6; }
11478if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11479 $as_echo_n "(cached) " >&6
11480else
11481 case $ac_pt_PKG_CONFIG in
11482 [\\/]* | ?:[\\/]*)
11483 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11484 ;;
11485 *)
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11495 break 2
11496 fi
11497done
11498done
11499IFS=$as_save_IFS
11500
11501 ;;
11502esac
11503fi
11504ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11505if test -n "$ac_pt_PKG_CONFIG"; then
11506 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11507$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11508else
11509 { $as_echo "$as_me:$LINENO: result: no" >&5
11510$as_echo "no" >&6; }
11511fi
11512
11513 if test "x$ac_pt_PKG_CONFIG" = x; then
11514 PKG_CONFIG=""
11515 else
11516 case $cross_compiling:$ac_tool_warned in
11517yes:)
11518{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11520ac_tool_warned=yes ;;
11521esac
11522 PKG_CONFIG=$ac_pt_PKG_CONFIG
11523 fi
11524else
11525 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11526fi
11527
11528fi
11529if test -n "$PKG_CONFIG"; then
11530 _pkg_min_version=0.9.0
11531 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11532$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11533 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11534 { $as_echo "$as_me:$LINENO: result: yes" >&5
11535$as_echo "yes" >&6; }
11536 else
11537 { $as_echo "$as_me:$LINENO: result: no" >&5
11538$as_echo "no" >&6; }
11539 PKG_CONFIG=""
11540 fi
8c4e8a18 11541
e2997b73
AK
11542fi
11543
11544pkg_failed=no
a946372e
AK
11545{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11546$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11547
a946372e
AK
11548if test -n "$PKGCONFIGINIT_CFLAGS"; then
11549 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11550 elif test -n "$PKG_CONFIG"; then
11551 if test -n "$PKG_CONFIG" && \
a946372e
AK
11552 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11553 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11554 ac_status=$?
11555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); }; then
a946372e 11557 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11558else
11559 pkg_failed=yes
11560fi
11561 else
11562 pkg_failed=untried
11563fi
a946372e
AK
11564if test -n "$PKGCONFIGINIT_LIBS"; then
11565 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11566 elif test -n "$PKG_CONFIG"; then
11567 if test -n "$PKG_CONFIG" && \
a946372e
AK
11568 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11569 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11570 ac_status=$?
11571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; then
a946372e 11573 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11574else
11575 pkg_failed=yes
11576fi
11577 else
11578 pkg_failed=untried
11579fi
11580
11581
11582
11583if test $pkg_failed = yes; then
11584
11585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11586 _pkg_short_errors_supported=yes
11587else
11588 _pkg_short_errors_supported=no
11589fi
11590 if test $_pkg_short_errors_supported = yes; then
a946372e 11591 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11592 else
a946372e 11593 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11594 fi
11595 # Put the nasty error message in config.log where it belongs
a946372e 11596 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11597
8c4e8a18
FDN
11598 { $as_echo "$as_me:$LINENO: result: no" >&5
11599$as_echo "no" >&6; }
11600 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11601$as_echo "pkg-config initialized" >&6; }
e2997b73 11602elif test $pkg_failed = untried; then
a946372e
AK
11603 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11604$as_echo "pkg-config initialized" >&6; }
e2997b73 11605else
a946372e
AK
11606 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11607 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11608 { $as_echo "$as_me:$LINENO: result: yes" >&5
11609$as_echo "yes" >&6; }
8c4e8a18 11610 :
e2997b73 11611fi
90c80887
AK
11612 PKGCONFIG_INIT=1
11613}
11614
11615################################################################################
11616{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11617$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11618
11619# Check whether --with-clvmd was given.
11620if test "${with_clvmd+set}" = set; then
71082be4 11621 withval=$with_clvmd; CLVMD=$withval
90c80887 11622else
71082be4 11623 CLVMD=none
90c80887
AK
11624fi
11625
11626if test x$CLVMD = xyes; then
11627 CLVMD=all
11628fi
11629{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11630$as_echo "$CLVMD" >&6; }
11631
11632if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11633 CLUSTER=internal
11634fi
11635
c89bc357 11636if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
90c80887
AK
11637 pkg_config_init
11638fi
11639
c89bc357
MB
11640CLVMD_CMANAGERS=""
11641CLVMD_NEEDS_QDISKD=no
90c80887
AK
11642
11643if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11644 BUILDGULM=yes
c89bc357
MB
11645 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
11646 CLVMD_NEEDS_QDISKD=yes
11647fi
11648if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11649 BUILDCMAN=yes
11650 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
11651 CLVMD_NEEDS_QDISKD=yes
90c80887
AK
11652fi
11653if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11654 BUILDCOROSYNC=yes
c89bc357 11655 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
90c80887
AK
11656fi
11657if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11658 BUILDOPENAIS=yes
c89bc357 11659 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
90c80887 11660fi
c89bc357
MB
11661if test x$CLVMD_NEEDS_QDISKD != xno; then
11662 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
90c80887
AK
11663fi
11664
11665if test x$BUILDGULM = xyes; then
11666 if test x$BUILDCOROSYNC = xyes || \
11667 test x$BUILDOPENAIS = xyes; then
11668 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11669$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11670 { (exit 1); exit 1; }; }
11671 fi
a946372e 11672fi
e2997b73 11673
a946372e
AK
11674soft_bailout() {
11675 NOTFOUND=1
11676}
e2997b73 11677
a946372e
AK
11678hard_bailout() {
11679 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11680$as_echo "$as_me: error: bailing out" >&2;}
11681 { (exit 1); exit 1; }; }
11682}
11683
11684if test x$CLVMD = xall; then
11685 bailout=soft_bailout
11686 BUILDGULM=yes
11687 BUILDCMAN=yes
11688 BUILDCOROSYNC=yes
11689 BUILDOPENAIS=yes
e2997b73 11690else
a946372e 11691 bailout=hard_bailout
e2997b73 11692fi
a946372e
AK
11693
11694check_lib_no_libs() {
11695 lib_no_libs_arg1=$1
11696 shift
11697 lib_no_libs_arg2=$1
11698 shift
11699 lib_no_libs_args=$@
11700
11701as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11702{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11703$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11704if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11705 $as_echo_n "(cached) " >&6
11706else
11707 ac_check_lib_save_LIBS=$LIBS
11708LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11709cat >conftest.$ac_ext <<_ACEOF
11710/* confdefs.h. */
11711_ACEOF
11712cat confdefs.h >>conftest.$ac_ext
11713cat >>conftest.$ac_ext <<_ACEOF
11714/* end confdefs.h. */
11715
11716/* Override any GCC internal prototype to avoid an error.
11717 Use char because int might match the return type of a GCC
11718 builtin and then its argument prototype would still apply. */
11719#ifdef __cplusplus
11720extern "C"
11721#endif
11722char $lib_no_libs_arg2 ();
11723int
11724main ()
11725{
11726return $lib_no_libs_arg2 ();
11727 ;
11728 return 0;
11729}
11730_ACEOF
11731rm -f conftest.$ac_objext conftest$ac_exeext
11732if { (ac_try="$ac_link"
11733case "(($ac_try" in
11734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11736esac
11737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11738$as_echo "$ac_try_echo") >&5
11739 (eval "$ac_link") 2>conftest.er1
e2997b73 11740 ac_status=$?
a946372e
AK
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
e2997b73 11744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext && {
11749 test "$cross_compiling" = yes ||
11750 $as_test_x conftest$ac_exeext
11751 }; then
11752 eval "$as_ac_Lib=yes"
e2997b73 11753else
a946372e
AK
11754 $as_echo "$as_me: failed program was:" >&5
11755sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11756
a946372e
AK
11757 eval "$as_ac_Lib=no"
11758fi
e2997b73 11759
a946372e
AK
11760rm -rf conftest.dSYM
11761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762 conftest$ac_exeext conftest.$ac_ext
11763LIBS=$ac_check_lib_save_LIBS
11764fi
11765ac_res=`eval 'as_val=${'$as_ac_Lib'}
11766 $as_echo "$as_val"'`
11767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11768$as_echo "$ac_res" >&6; }
11769as_val=`eval 'as_val=${'$as_ac_Lib'}
11770 $as_echo "$as_val"'`
11771 if test "x$as_val" = x""yes; then
11772 cat >>confdefs.h <<_ACEOF
11773#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11774_ACEOF
e2997b73 11775
a946372e 11776 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11777
e2997b73 11778else
a946372e 11779 $bailout
e2997b73 11780fi
e2997b73 11781
a946372e
AK
11782 LIBS=$ac_check_lib_save_LIBS
11783}
11784
11785if test x$BUILDGULM = xyes; then
e2997b73
AK
11786
11787pkg_failed=no
a946372e
AK
11788{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11789$as_echo_n "checking for CCS... " >&6; }
e2997b73 11790
a946372e
AK
11791if test -n "$CCS_CFLAGS"; then
11792 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11793 elif test -n "$PKG_CONFIG"; then
11794 if test -n "$PKG_CONFIG" && \
a946372e
AK
11795 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11796 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11797 ac_status=$?
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; then
a946372e 11800 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11801else
11802 pkg_failed=yes
11803fi
11804 else
11805 pkg_failed=untried
11806fi
a946372e
AK
11807if test -n "$CCS_LIBS"; then
11808 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11809 elif test -n "$PKG_CONFIG"; then
11810 if test -n "$PKG_CONFIG" && \
a946372e
AK
11811 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11812 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11813 ac_status=$?
11814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; then
a946372e 11816 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11817else
11818 pkg_failed=yes
11819fi
11820 else
11821 pkg_failed=untried
11822fi
11823
11824
11825
11826if test $pkg_failed = yes; then
11827
11828if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11829 _pkg_short_errors_supported=yes
11830else
11831 _pkg_short_errors_supported=no
11832fi
11833 if test $_pkg_short_errors_supported = yes; then
a946372e 11834 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11835 else
a946372e 11836 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11837 fi
11838 # Put the nasty error message in config.log where it belongs
a946372e 11839 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11840
8c4e8a18
FDN
11841 { $as_echo "$as_me:$LINENO: result: no" >&5
11842$as_echo "no" >&6; }
11843 NOTFOUND=0
e2997b73 11844
a946372e
AK
11845for ac_header in ccs.h
11846do
11847as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11848if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11849 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11850$as_echo_n "checking for $ac_header... " >&6; }
11851if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11852 $as_echo_n "(cached) " >&6
d0191583 11853fi
a946372e
AK
11854ac_res=`eval 'as_val=${'$as_ac_Header'}
11855 $as_echo "$as_val"'`
11856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11857$as_echo "$ac_res" >&6; }
fc54be10 11858else
a946372e
AK
11859 # Is the header compilable?
11860{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11861$as_echo_n "checking $ac_header usability... " >&6; }
11862cat >conftest.$ac_ext <<_ACEOF
11863/* confdefs.h. */
11864_ACEOF
11865cat confdefs.h >>conftest.$ac_ext
11866cat >>conftest.$ac_ext <<_ACEOF
11867/* end confdefs.h. */
11868$ac_includes_default
11869#include <$ac_header>
11870_ACEOF
11871rm -f conftest.$ac_objext
11872if { (ac_try="$ac_compile"
11873case "(($ac_try" in
11874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11875 *) ac_try_echo=$ac_try;;
11876esac
11877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11878$as_echo "$ac_try_echo") >&5
11879 (eval "$ac_compile") 2>conftest.er1
11880 ac_status=$?
11881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
11884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } && {
11886 test -z "$ac_c_werror_flag" ||
11887 test ! -s conftest.err
11888 } && test -s conftest.$ac_objext; then
11889 ac_header_compiler=yes
11890else
11891 $as_echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11893
a946372e 11894 ac_header_compiler=no
d0191583
JM
11895fi
11896
a946372e
AK
11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11899$as_echo "$ac_header_compiler" >&6; }
fddafd51 11900
a946372e
AK
11901# Is the header present?
11902{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11903$as_echo_n "checking $ac_header presence... " >&6; }
11904cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
11910#include <$ac_header>
11911_ACEOF
11912if { (ac_try="$ac_cpp conftest.$ac_ext"
11913case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916esac
11917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918$as_echo "$ac_try_echo") >&5
11919 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } >/dev/null && {
11926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 }; then
11929 ac_header_preproc=yes
11930else
11931 $as_echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 ac_header_preproc=no
11935fi
11936
11937rm -f conftest.err conftest.$ac_ext
11938{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11939$as_echo "$ac_header_preproc" >&6; }
11940
11941# So? What about this header?
11942case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11943 yes:no: )
11944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11945$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11947$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11948 ac_header_preproc=yes
11949 ;;
11950 no:yes:* )
11951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11952$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11954$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11956$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11958$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11960$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11962$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11963
11964 ;;
11965esac
11966{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11967$as_echo_n "checking for $ac_header... " >&6; }
11968if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11969 $as_echo_n "(cached) " >&6
11970else
11971 eval "$as_ac_Header=\$ac_header_preproc"
11972fi
11973ac_res=`eval 'as_val=${'$as_ac_Header'}
11974 $as_echo "$as_val"'`
11975 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11976$as_echo "$ac_res" >&6; }
11977
11978fi
11979as_val=`eval 'as_val=${'$as_ac_Header'}
11980 $as_echo "$as_val"'`
11981 if test "x$as_val" = x""yes; then
11982 cat >>confdefs.h <<_ACEOF
11983#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11984_ACEOF
11985
11986else
11987 $bailout
11988fi
11989
11990done
11991
11992 check_lib_no_libs ccs ccs_connect
11993 if test $NOTFOUND = 0; then
11994 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11995$as_echo "no pkg for libccs, using -lccs" >&6; }
11996 CCS_LIBS="-lccs"
11997 HAVE_CCS=yes
11998 fi
11999elif test $pkg_failed = untried; then
12000 NOTFOUND=0
12001
12002for ac_header in ccs.h
12003do
12004as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12007$as_echo_n "checking for $ac_header... " >&6; }
12008if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12009 $as_echo_n "(cached) " >&6
12010fi
12011ac_res=`eval 'as_val=${'$as_ac_Header'}
12012 $as_echo "$as_val"'`
12013 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12014$as_echo "$ac_res" >&6; }
12015else
12016 # Is the header compilable?
12017{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12018$as_echo_n "checking $ac_header usability... " >&6; }
12019cat >conftest.$ac_ext <<_ACEOF
12020/* confdefs.h. */
12021_ACEOF
12022cat confdefs.h >>conftest.$ac_ext
12023cat >>conftest.$ac_ext <<_ACEOF
12024/* end confdefs.h. */
12025$ac_includes_default
12026#include <$ac_header>
12027_ACEOF
12028rm -f conftest.$ac_objext
12029if { (ac_try="$ac_compile"
12030case "(($ac_try" in
12031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032 *) ac_try_echo=$ac_try;;
12033esac
12034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12035$as_echo "$ac_try_echo") >&5
12036 (eval "$ac_compile") 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && {
12043 test -z "$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 } && test -s conftest.$ac_objext; then
12046 ac_header_compiler=yes
12047else
12048 $as_echo "$as_me: failed program was:" >&5
12049sed 's/^/| /' conftest.$ac_ext >&5
12050
12051 ac_header_compiler=no
12052fi
12053
12054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12056$as_echo "$ac_header_compiler" >&6; }
12057
12058# Is the header present?
12059{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12060$as_echo_n "checking $ac_header presence... " >&6; }
12061cat >conftest.$ac_ext <<_ACEOF
12062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
12067#include <$ac_header>
12068_ACEOF
12069if { (ac_try="$ac_cpp conftest.$ac_ext"
12070case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073esac
12074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12075$as_echo "$ac_try_echo") >&5
12076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev/null && {
12083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12084 test ! -s conftest.err
12085 }; then
12086 ac_header_preproc=yes
12087else
12088 $as_echo "$as_me: failed program was:" >&5
12089sed 's/^/| /' conftest.$ac_ext >&5
12090
12091 ac_header_preproc=no
12092fi
12093
12094rm -f conftest.err conftest.$ac_ext
12095{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096$as_echo "$ac_header_preproc" >&6; }
12097
12098# So? What about this header?
12099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12100 yes:no: )
12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12104$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12105 ac_header_preproc=yes
12106 ;;
12107 no:yes:* )
12108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12109$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12111$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12113$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12115$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12117$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12119$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12120
12121 ;;
12122esac
12123{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12124$as_echo_n "checking for $ac_header... " >&6; }
12125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12126 $as_echo_n "(cached) " >&6
12127else
12128 eval "$as_ac_Header=\$ac_header_preproc"
12129fi
12130ac_res=`eval 'as_val=${'$as_ac_Header'}
12131 $as_echo "$as_val"'`
12132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12133$as_echo "$ac_res" >&6; }
12134
12135fi
12136as_val=`eval 'as_val=${'$as_ac_Header'}
12137 $as_echo "$as_val"'`
12138 if test "x$as_val" = x""yes; then
12139 cat >>confdefs.h <<_ACEOF
12140#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12141_ACEOF
12142
12143else
12144 $bailout
12145fi
12146
12147done
12148
12149 check_lib_no_libs ccs ccs_connect
12150 if test $NOTFOUND = 0; then
12151 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12152$as_echo "no pkg for libccs, using -lccs" >&6; }
12153 CCS_LIBS="-lccs"
12154 HAVE_CCS=yes
12155 fi
12156else
12157 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12158 CCS_LIBS=$pkg_cv_CCS_LIBS
12159 { $as_echo "$as_me:$LINENO: result: yes" >&5
12160$as_echo "yes" >&6; }
12161 HAVE_CCS=yes
12162fi
12163
12164pkg_failed=no
12165{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12166$as_echo_n "checking for GULM... " >&6; }
12167
12168if test -n "$GULM_CFLAGS"; then
12169 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12170 elif test -n "$PKG_CONFIG"; then
12171 if test -n "$PKG_CONFIG" && \
12172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12173 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12174 ac_status=$?
12175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); }; then
12177 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12178else
12179 pkg_failed=yes
12180fi
12181 else
12182 pkg_failed=untried
12183fi
12184if test -n "$GULM_LIBS"; then
12185 pkg_cv_GULM_LIBS="$GULM_LIBS"
12186 elif test -n "$PKG_CONFIG"; then
12187 if test -n "$PKG_CONFIG" && \
12188 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12189 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12190 ac_status=$?
12191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; then
12193 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12194else
12195 pkg_failed=yes
12196fi
12197 else
12198 pkg_failed=untried
12199fi
12200
12201
12202
12203if test $pkg_failed = yes; then
12204
12205if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12206 _pkg_short_errors_supported=yes
12207else
12208 _pkg_short_errors_supported=no
12209fi
12210 if test $_pkg_short_errors_supported = yes; then
12211 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12212 else
12213 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12214 fi
12215 # Put the nasty error message in config.log where it belongs
12216 echo "$GULM_PKG_ERRORS" >&5
12217
8c4e8a18
FDN
12218 { $as_echo "$as_me:$LINENO: result: no" >&5
12219$as_echo "no" >&6; }
12220 NOTFOUND=0
a946372e
AK
12221
12222for ac_header in libgulm.h
12223do
12224as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12227$as_echo_n "checking for $ac_header... " >&6; }
12228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12229 $as_echo_n "(cached) " >&6
12230fi
12231ac_res=`eval 'as_val=${'$as_ac_Header'}
12232 $as_echo "$as_val"'`
12233 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12234$as_echo "$ac_res" >&6; }
12235else
12236 # Is the header compilable?
12237{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12238$as_echo_n "checking $ac_header usability... " >&6; }
12239cat >conftest.$ac_ext <<_ACEOF
12240/* confdefs.h. */
12241_ACEOF
12242cat confdefs.h >>conftest.$ac_ext
12243cat >>conftest.$ac_ext <<_ACEOF
12244/* end confdefs.h. */
12245$ac_includes_default
12246#include <$ac_header>
12247_ACEOF
12248rm -f conftest.$ac_objext
12249if { (ac_try="$ac_compile"
12250case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253esac
12254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12255$as_echo "$ac_try_echo") >&5
12256 (eval "$ac_compile") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest.$ac_objext; then
12266 ac_header_compiler=yes
12267else
12268 $as_echo "$as_me: failed program was:" >&5
12269sed 's/^/| /' conftest.$ac_ext >&5
12270
12271 ac_header_compiler=no
12272fi
12273
12274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12276$as_echo "$ac_header_compiler" >&6; }
12277
12278# Is the header present?
12279{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12280$as_echo_n "checking $ac_header presence... " >&6; }
12281cat >conftest.$ac_ext <<_ACEOF
12282/* confdefs.h. */
12283_ACEOF
12284cat confdefs.h >>conftest.$ac_ext
12285cat >>conftest.$ac_ext <<_ACEOF
12286/* end confdefs.h. */
12287#include <$ac_header>
12288_ACEOF
12289if { (ac_try="$ac_cpp conftest.$ac_ext"
12290case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12293esac
12294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12295$as_echo "$ac_try_echo") >&5
12296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } >/dev/null && {
12303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 }; then
12306 ac_header_preproc=yes
12307else
12308 $as_echo "$as_me: failed program was:" >&5
12309sed 's/^/| /' conftest.$ac_ext >&5
12310
12311 ac_header_preproc=no
12312fi
12313
12314rm -f conftest.err conftest.$ac_ext
12315{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12316$as_echo "$ac_header_preproc" >&6; }
12317
12318# So? What about this header?
12319case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12320 yes:no: )
12321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12322$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12324$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12325 ac_header_preproc=yes
12326 ;;
12327 no:yes:* )
12328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12329$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12331$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12333$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12335$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12337$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12339$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12340
12341 ;;
12342esac
12343{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12344$as_echo_n "checking for $ac_header... " >&6; }
12345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12346 $as_echo_n "(cached) " >&6
12347else
12348 eval "$as_ac_Header=\$ac_header_preproc"
12349fi
12350ac_res=`eval 'as_val=${'$as_ac_Header'}
12351 $as_echo "$as_val"'`
12352 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12353$as_echo "$ac_res" >&6; }
12354
12355fi
12356as_val=`eval 'as_val=${'$as_ac_Header'}
12357 $as_echo "$as_val"'`
12358 if test "x$as_val" = x""yes; then
12359 cat >>confdefs.h <<_ACEOF
12360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12361_ACEOF
12362
12363else
12364 $bailout
12365fi
12366
12367done
12368
12369 check_lib_no_libs gulm lg_core_login
12370 if test $NOTFOUND = 0; then
12371 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12372$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12373 GULM_LIBS="-lgulm"
12374 HAVE_GULM=yes
12375 fi
12376elif test $pkg_failed = untried; then
12377 NOTFOUND=0
12378
12379for ac_header in libgulm.h
12380do
12381as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12384$as_echo_n "checking for $ac_header... " >&6; }
12385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12386 $as_echo_n "(cached) " >&6
12387fi
12388ac_res=`eval 'as_val=${'$as_ac_Header'}
12389 $as_echo "$as_val"'`
12390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12391$as_echo "$ac_res" >&6; }
12392else
12393 # Is the header compilable?
12394{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12395$as_echo_n "checking $ac_header usability... " >&6; }
12396cat >conftest.$ac_ext <<_ACEOF
12397/* confdefs.h. */
12398_ACEOF
12399cat confdefs.h >>conftest.$ac_ext
12400cat >>conftest.$ac_ext <<_ACEOF
12401/* end confdefs.h. */
12402$ac_includes_default
12403#include <$ac_header>
12404_ACEOF
12405rm -f conftest.$ac_objext
12406if { (ac_try="$ac_compile"
12407case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12410esac
12411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12412$as_echo "$ac_try_echo") >&5
12413 (eval "$ac_compile") 2>conftest.er1
12414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } && {
12420 test -z "$ac_c_werror_flag" ||
12421 test ! -s conftest.err
12422 } && test -s conftest.$ac_objext; then
12423 ac_header_compiler=yes
12424else
12425 $as_echo "$as_me: failed program was:" >&5
12426sed 's/^/| /' conftest.$ac_ext >&5
12427
12428 ac_header_compiler=no
12429fi
12430
12431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12433$as_echo "$ac_header_compiler" >&6; }
12434
12435# Is the header present?
12436{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12437$as_echo_n "checking $ac_header presence... " >&6; }
12438cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
12444#include <$ac_header>
12445_ACEOF
12446if { (ac_try="$ac_cpp conftest.$ac_ext"
12447case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12450esac
12451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12452$as_echo "$ac_try_echo") >&5
12453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12454 ac_status=$?
12455 grep -v '^ *+' conftest.er1 >conftest.err
12456 rm -f conftest.er1
12457 cat conftest.err >&5
12458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } >/dev/null && {
12460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 }; then
12463 ac_header_preproc=yes
12464else
12465 $as_echo "$as_me: failed program was:" >&5
12466sed 's/^/| /' conftest.$ac_ext >&5
12467
12468 ac_header_preproc=no
12469fi
12470
12471rm -f conftest.err conftest.$ac_ext
12472{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12473$as_echo "$ac_header_preproc" >&6; }
12474
12475# So? What about this header?
12476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12477 yes:no: )
12478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12479$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12481$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12482 ac_header_preproc=yes
12483 ;;
12484 no:yes:* )
12485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12486$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12488$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12490$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12492$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12494$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12495 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12496$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12497
12498 ;;
12499esac
12500{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12501$as_echo_n "checking for $ac_header... " >&6; }
12502if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12503 $as_echo_n "(cached) " >&6
12504else
12505 eval "$as_ac_Header=\$ac_header_preproc"
12506fi
12507ac_res=`eval 'as_val=${'$as_ac_Header'}
12508 $as_echo "$as_val"'`
12509 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12510$as_echo "$ac_res" >&6; }
12511
12512fi
12513as_val=`eval 'as_val=${'$as_ac_Header'}
12514 $as_echo "$as_val"'`
12515 if test "x$as_val" = x""yes; then
12516 cat >>confdefs.h <<_ACEOF
12517#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12518_ACEOF
12519
12520else
12521 $bailout
12522fi
12523
12524done
12525
12526 check_lib_no_libs gulm lg_core_login
12527 if test $NOTFOUND = 0; then
12528 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12529$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12530 GULM_LIBS="-lgulm"
12531 HAVE_GULM=yes
12532 fi
12533else
12534 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12535 GULM_LIBS=$pkg_cv_GULM_LIBS
12536 { $as_echo "$as_me:$LINENO: result: yes" >&5
12537$as_echo "yes" >&6; }
12538 HAVE_GULM=yes
12539fi
12540fi
12541
12542if test x$BUILDCMAN = xyes; then
12543
12544pkg_failed=no
12545{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12546$as_echo_n "checking for CMAN... " >&6; }
12547
12548if test -n "$CMAN_CFLAGS"; then
12549 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12550 elif test -n "$PKG_CONFIG"; then
12551 if test -n "$PKG_CONFIG" && \
12552 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12553 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12554 ac_status=$?
12555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; then
12557 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12558else
12559 pkg_failed=yes
12560fi
12561 else
12562 pkg_failed=untried
12563fi
12564if test -n "$CMAN_LIBS"; then
12565 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12566 elif test -n "$PKG_CONFIG"; then
12567 if test -n "$PKG_CONFIG" && \
12568 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12569 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12570 ac_status=$?
12571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; then
12573 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12574else
12575 pkg_failed=yes
12576fi
12577 else
12578 pkg_failed=untried
12579fi
12580
12581
12582
12583if test $pkg_failed = yes; then
12584
12585if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12586 _pkg_short_errors_supported=yes
12587else
12588 _pkg_short_errors_supported=no
12589fi
12590 if test $_pkg_short_errors_supported = yes; then
12591 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12592 else
12593 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12594 fi
12595 # Put the nasty error message in config.log where it belongs
12596 echo "$CMAN_PKG_ERRORS" >&5
12597
8c4e8a18
FDN
12598 { $as_echo "$as_me:$LINENO: result: no" >&5
12599$as_echo "no" >&6; }
12600 NOTFOUND=0
a946372e
AK
12601
12602for ac_header in libcman.h
12603do
12604as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12606 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12607$as_echo_n "checking for $ac_header... " >&6; }
12608if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12609 $as_echo_n "(cached) " >&6
12610fi
12611ac_res=`eval 'as_val=${'$as_ac_Header'}
12612 $as_echo "$as_val"'`
12613 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12614$as_echo "$ac_res" >&6; }
12615else
12616 # Is the header compilable?
12617{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12618$as_echo_n "checking $ac_header usability... " >&6; }
12619cat >conftest.$ac_ext <<_ACEOF
12620/* confdefs.h. */
12621_ACEOF
12622cat confdefs.h >>conftest.$ac_ext
12623cat >>conftest.$ac_ext <<_ACEOF
12624/* end confdefs.h. */
12625$ac_includes_default
12626#include <$ac_header>
12627_ACEOF
12628rm -f conftest.$ac_objext
12629if { (ac_try="$ac_compile"
12630case "(($ac_try" in
12631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632 *) ac_try_echo=$ac_try;;
12633esac
12634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12635$as_echo "$ac_try_echo") >&5
12636 (eval "$ac_compile") 2>conftest.er1
12637 ac_status=$?
12638 grep -v '^ *+' conftest.er1 >conftest.err
12639 rm -f conftest.er1
12640 cat conftest.err >&5
12641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest.$ac_objext; then
12646 ac_header_compiler=yes
12647else
12648 $as_echo "$as_me: failed program was:" >&5
12649sed 's/^/| /' conftest.$ac_ext >&5
12650
12651 ac_header_compiler=no
12652fi
12653
12654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12655{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12656$as_echo "$ac_header_compiler" >&6; }
12657
12658# Is the header present?
12659{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12660$as_echo_n "checking $ac_header presence... " >&6; }
12661cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667#include <$ac_header>
12668_ACEOF
12669if { (ac_try="$ac_cpp conftest.$ac_ext"
12670case "(($ac_try" in
12671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12672 *) ac_try_echo=$ac_try;;
12673esac
12674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12675$as_echo "$ac_try_echo") >&5
12676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } >/dev/null && {
12683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 }; then
12686 ac_header_preproc=yes
12687else
12688 $as_echo "$as_me: failed program was:" >&5
12689sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 ac_header_preproc=no
12692fi
12693
12694rm -f conftest.err conftest.$ac_ext
12695{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12696$as_echo "$ac_header_preproc" >&6; }
12697
12698# So? What about this header?
12699case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12700 yes:no: )
12701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12702$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12704$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12705 ac_header_preproc=yes
12706 ;;
12707 no:yes:* )
12708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12709$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12711$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12713$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12715$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12717$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12719$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12720
12721 ;;
12722esac
12723{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12724$as_echo_n "checking for $ac_header... " >&6; }
12725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12726 $as_echo_n "(cached) " >&6
12727else
12728 eval "$as_ac_Header=\$ac_header_preproc"
12729fi
12730ac_res=`eval 'as_val=${'$as_ac_Header'}
12731 $as_echo "$as_val"'`
12732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12733$as_echo "$ac_res" >&6; }
12734
12735fi
12736as_val=`eval 'as_val=${'$as_ac_Header'}
12737 $as_echo "$as_val"'`
12738 if test "x$as_val" = x""yes; then
12739 cat >>confdefs.h <<_ACEOF
12740#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12741_ACEOF
12742
12743else
12744 $bailout
12745fi
12746
12747done
12748
12749 check_lib_no_libs cman cman_init
12750 if test $NOTFOUND = 0; then
12751 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12752$as_echo "no pkg for libcman, using -lcman" >&6; }
12753 CMAN_LIBS="-lcman"
12754 HAVE_CMAN=yes
12755 fi
12756elif test $pkg_failed = untried; then
12757 NOTFOUND=0
12758
12759for ac_header in libcman.h
12760do
12761as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12764$as_echo_n "checking for $ac_header... " >&6; }
12765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12766 $as_echo_n "(cached) " >&6
12767fi
12768ac_res=`eval 'as_val=${'$as_ac_Header'}
12769 $as_echo "$as_val"'`
12770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12771$as_echo "$ac_res" >&6; }
12772else
12773 # Is the header compilable?
12774{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12775$as_echo_n "checking $ac_header usability... " >&6; }
12776cat >conftest.$ac_ext <<_ACEOF
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782$ac_includes_default
12783#include <$ac_header>
12784_ACEOF
12785rm -f conftest.$ac_objext
12786if { (ac_try="$ac_compile"
12787case "(($ac_try" in
12788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12789 *) ac_try_echo=$ac_try;;
12790esac
12791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12792$as_echo "$ac_try_echo") >&5
12793 (eval "$ac_compile") 2>conftest.er1
12794 ac_status=$?
12795 grep -v '^ *+' conftest.er1 >conftest.err
12796 rm -f conftest.er1
12797 cat conftest.err >&5
12798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } && {
12800 test -z "$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12802 } && test -s conftest.$ac_objext; then
12803 ac_header_compiler=yes
12804else
12805 $as_echo "$as_me: failed program was:" >&5
12806sed 's/^/| /' conftest.$ac_ext >&5
12807
12808 ac_header_compiler=no
12809fi
12810
12811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12812{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12813$as_echo "$ac_header_compiler" >&6; }
12814
12815# Is the header present?
12816{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12817$as_echo_n "checking $ac_header presence... " >&6; }
12818cat >conftest.$ac_ext <<_ACEOF
12819/* confdefs.h. */
12820_ACEOF
12821cat confdefs.h >>conftest.$ac_ext
12822cat >>conftest.$ac_ext <<_ACEOF
12823/* end confdefs.h. */
12824#include <$ac_header>
12825_ACEOF
12826if { (ac_try="$ac_cpp conftest.$ac_ext"
12827case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830esac
12831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12832$as_echo "$ac_try_echo") >&5
12833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12834 ac_status=$?
12835 grep -v '^ *+' conftest.er1 >conftest.err
12836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } >/dev/null && {
12840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12841 test ! -s conftest.err
12842 }; then
12843 ac_header_preproc=yes
12844else
12845 $as_echo "$as_me: failed program was:" >&5
12846sed 's/^/| /' conftest.$ac_ext >&5
12847
12848 ac_header_preproc=no
12849fi
12850
12851rm -f conftest.err conftest.$ac_ext
12852{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12853$as_echo "$ac_header_preproc" >&6; }
12854
12855# So? What about this header?
12856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12857 yes:no: )
12858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12859$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12861$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12862 ac_header_preproc=yes
12863 ;;
12864 no:yes:* )
12865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12866$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12868$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12870$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12872$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12874$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12876$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12877
12878 ;;
12879esac
12880{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12881$as_echo_n "checking for $ac_header... " >&6; }
12882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12883 $as_echo_n "(cached) " >&6
12884else
12885 eval "$as_ac_Header=\$ac_header_preproc"
12886fi
12887ac_res=`eval 'as_val=${'$as_ac_Header'}
12888 $as_echo "$as_val"'`
12889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12890$as_echo "$ac_res" >&6; }
12891
12892fi
12893as_val=`eval 'as_val=${'$as_ac_Header'}
12894 $as_echo "$as_val"'`
12895 if test "x$as_val" = x""yes; then
12896 cat >>confdefs.h <<_ACEOF
12897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12898_ACEOF
12899
12900else
12901 $bailout
12902fi
12903
12904done
12905
12906 check_lib_no_libs cman cman_init
12907 if test $NOTFOUND = 0; then
12908 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12909$as_echo "no pkg for libcman, using -lcman" >&6; }
12910 CMAN_LIBS="-lcman"
12911 HAVE_CMAN=yes
12912 fi
12913else
12914 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12915 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12916 { $as_echo "$as_me:$LINENO: result: yes" >&5
12917$as_echo "yes" >&6; }
12918 HAVE_CMAN=yes
12919fi
12920 CHECKCONFDB=yes
12921 CHECKDLM=yes
12922fi
12923
12924if test x$BUILDCOROSYNC = xyes || \
12925 test x$BUILDOPENAIS = xyes; then
12926
12927pkg_failed=no
12928{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12929$as_echo_n "checking for COROSYNC... " >&6; }
12930
12931if test -n "$COROSYNC_CFLAGS"; then
12932 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12933 elif test -n "$PKG_CONFIG"; then
12934 if test -n "$PKG_CONFIG" && \
12935 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12936 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12937 ac_status=$?
12938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); }; then
12940 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12941else
12942 pkg_failed=yes
12943fi
12944 else
12945 pkg_failed=untried
12946fi
12947if test -n "$COROSYNC_LIBS"; then
12948 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12949 elif test -n "$PKG_CONFIG"; then
12950 if test -n "$PKG_CONFIG" && \
12951 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12952 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12953 ac_status=$?
12954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; then
12956 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12957else
12958 pkg_failed=yes
12959fi
12960 else
12961 pkg_failed=untried
12962fi
12963
12964
12965
12966if test $pkg_failed = yes; then
12967
12968if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12969 _pkg_short_errors_supported=yes
12970else
12971 _pkg_short_errors_supported=no
12972fi
12973 if test $_pkg_short_errors_supported = yes; then
12974 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12975 else
12976 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12977 fi
12978 # Put the nasty error message in config.log where it belongs
12979 echo "$COROSYNC_PKG_ERRORS" >&5
12980
8c4e8a18 12981 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12982$as_echo "no" >&6; }
8c4e8a18
FDN
12983 $bailout
12984elif test $pkg_failed = untried; then
a946372e
AK
12985 $bailout
12986else
12987 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12988 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12989 { $as_echo "$as_me:$LINENO: result: yes" >&5
12990$as_echo "yes" >&6; }
12991 HAVE_COROSYNC=yes
12992fi
12993 CHECKCONFDB=yes
12994fi
12995
12996if test x$BUILDCOROSYNC = xyes; then
12997
12998pkg_failed=no
12999{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
13000$as_echo_n "checking for QUORUM... " >&6; }
13001
13002if test -n "$QUORUM_CFLAGS"; then
13003 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
13004 elif test -n "$PKG_CONFIG"; then
13005 if test -n "$PKG_CONFIG" && \
13006 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13007 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13008 ac_status=$?
13009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }; then
13011 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
13012else
13013 pkg_failed=yes
13014fi
13015 else
13016 pkg_failed=untried
13017fi
13018if test -n "$QUORUM_LIBS"; then
13019 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
13020 elif test -n "$PKG_CONFIG"; then
13021 if test -n "$PKG_CONFIG" && \
13022 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13023 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13024 ac_status=$?
13025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; then
13027 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13028else
13029 pkg_failed=yes
13030fi
13031 else
13032 pkg_failed=untried
13033fi
13034
13035
13036
13037if test $pkg_failed = yes; then
13038
13039if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13040 _pkg_short_errors_supported=yes
13041else
13042 _pkg_short_errors_supported=no
13043fi
13044 if test $_pkg_short_errors_supported = yes; then
13045 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13046 else
13047 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13048 fi
13049 # Put the nasty error message in config.log where it belongs
13050 echo "$QUORUM_PKG_ERRORS" >&5
13051
8c4e8a18 13052 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13053$as_echo "no" >&6; }
8c4e8a18
FDN
13054 $bailout
13055elif test $pkg_failed = untried; then
a946372e
AK
13056 $bailout
13057else
13058 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13059 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13060 { $as_echo "$as_me:$LINENO: result: yes" >&5
13061$as_echo "yes" >&6; }
13062 HAVE_QUORUM=yes
13063fi
13064 CHECKCPG=yes
13065 CHECKDLM=yes
13066fi
13067
13068if test x$BUILDOPENAIS = xyes; then
13069
13070pkg_failed=no
13071{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13072$as_echo_n "checking for SALCK... " >&6; }
13073
13074if test -n "$SALCK_CFLAGS"; then
13075 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13076 elif test -n "$PKG_CONFIG"; then
13077 if test -n "$PKG_CONFIG" && \
13078 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13079 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13080 ac_status=$?
13081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; then
13083 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13084else
13085 pkg_failed=yes
13086fi
13087 else
13088 pkg_failed=untried
13089fi
13090if test -n "$SALCK_LIBS"; then
13091 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13092 elif test -n "$PKG_CONFIG"; then
13093 if test -n "$PKG_CONFIG" && \
13094 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13095 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13096 ac_status=$?
13097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); }; then
13099 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13100else
13101 pkg_failed=yes
13102fi
13103 else
13104 pkg_failed=untried
13105fi
13106
13107
13108
13109if test $pkg_failed = yes; then
13110
13111if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13112 _pkg_short_errors_supported=yes
13113else
13114 _pkg_short_errors_supported=no
13115fi
13116 if test $_pkg_short_errors_supported = yes; then
13117 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13118 else
13119 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13120 fi
13121 # Put the nasty error message in config.log where it belongs
13122 echo "$SALCK_PKG_ERRORS" >&5
13123
8c4e8a18 13124 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13125$as_echo "no" >&6; }
8c4e8a18
FDN
13126 $bailout
13127elif test $pkg_failed = untried; then
a946372e
AK
13128 $bailout
13129else
13130 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13131 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13132 { $as_echo "$as_me:$LINENO: result: yes" >&5
13133$as_echo "yes" >&6; }
13134 HAVE_SALCK=yes
13135fi
13136 CHECKCPG=yes
13137fi
13138
13139
13140
13141if test x$CHECKCONFDB = xyes; then
13142
13143pkg_failed=no
13144{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13145$as_echo_n "checking for CONFDB... " >&6; }
13146
13147if test -n "$CONFDB_CFLAGS"; then
13148 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13149 elif test -n "$PKG_CONFIG"; then
13150 if test -n "$PKG_CONFIG" && \
13151 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13152 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13153 ac_status=$?
13154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; then
13156 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13157else
13158 pkg_failed=yes
13159fi
13160 else
13161 pkg_failed=untried
13162fi
13163if test -n "$CONFDB_LIBS"; then
13164 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13165 elif test -n "$PKG_CONFIG"; then
13166 if test -n "$PKG_CONFIG" && \
13167 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13168 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13169 ac_status=$?
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; then
13172 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13173else
13174 pkg_failed=yes
13175fi
13176 else
13177 pkg_failed=untried
13178fi
13179
13180
13181
13182if test $pkg_failed = yes; then
13183
13184if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13185 _pkg_short_errors_supported=yes
13186else
13187 _pkg_short_errors_supported=no
13188fi
13189 if test $_pkg_short_errors_supported = yes; then
13190 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13191 else
13192 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13193 fi
13194 # Put the nasty error message in config.log where it belongs
13195 echo "$CONFDB_PKG_ERRORS" >&5
13196
8c4e8a18 13197 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13198$as_echo "no" >&6; }
8c4e8a18
FDN
13199 HAVE_CONFDB=no
13200elif test $pkg_failed = untried; then
a946372e
AK
13201 HAVE_CONFDB=no
13202else
13203 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13204 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13205 { $as_echo "$as_me:$LINENO: result: yes" >&5
13206$as_echo "yes" >&6; }
13207 HAVE_CONFDB=yes
13208fi
13209
13210
13211for ac_header in corosync/confdb.h
13212do
13213as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13215 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13216$as_echo_n "checking for $ac_header... " >&6; }
13217if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13218 $as_echo_n "(cached) " >&6
13219fi
13220ac_res=`eval 'as_val=${'$as_ac_Header'}
13221 $as_echo "$as_val"'`
13222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13223$as_echo "$ac_res" >&6; }
13224else
13225 # Is the header compilable?
13226{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13227$as_echo_n "checking $ac_header usability... " >&6; }
13228cat >conftest.$ac_ext <<_ACEOF
13229/* confdefs.h. */
13230_ACEOF
13231cat confdefs.h >>conftest.$ac_ext
13232cat >>conftest.$ac_ext <<_ACEOF
13233/* end confdefs.h. */
13234$ac_includes_default
13235#include <$ac_header>
13236_ACEOF
13237rm -f conftest.$ac_objext
13238if { (ac_try="$ac_compile"
13239case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242esac
13243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244$as_echo "$ac_try_echo") >&5
13245 (eval "$ac_compile") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest.$ac_objext; then
13255 ac_header_compiler=yes
13256else
13257 $as_echo "$as_me: failed program was:" >&5
13258sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ac_header_compiler=no
13261fi
13262
13263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13265$as_echo "$ac_header_compiler" >&6; }
13266
13267# Is the header present?
13268{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13269$as_echo_n "checking $ac_header presence... " >&6; }
13270cat >conftest.$ac_ext <<_ACEOF
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276#include <$ac_header>
13277_ACEOF
13278if { (ac_try="$ac_cpp conftest.$ac_ext"
13279case "(($ac_try" in
13280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13282esac
13283eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13284$as_echo "$ac_try_echo") >&5
13285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev/null && {
13292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13294 }; then
13295 ac_header_preproc=yes
13296else
13297 $as_echo "$as_me: failed program was:" >&5
13298sed 's/^/| /' conftest.$ac_ext >&5
13299
13300 ac_header_preproc=no
13301fi
13302
13303rm -f conftest.err conftest.$ac_ext
13304{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305$as_echo "$ac_header_preproc" >&6; }
13306
13307# So? What about this header?
13308case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13309 yes:no: )
13310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13311$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13313$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13314 ac_header_preproc=yes
13315 ;;
13316 no:yes:* )
13317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13318$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13320$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13322$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13324$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13326$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13328$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13329
13330 ;;
13331esac
13332{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13333$as_echo_n "checking for $ac_header... " >&6; }
13334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13335 $as_echo_n "(cached) " >&6
13336else
13337 eval "$as_ac_Header=\$ac_header_preproc"
13338fi
13339ac_res=`eval 'as_val=${'$as_ac_Header'}
13340 $as_echo "$as_val"'`
13341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13342$as_echo "$ac_res" >&6; }
13343
13344fi
13345as_val=`eval 'as_val=${'$as_ac_Header'}
13346 $as_echo "$as_val"'`
13347 if test "x$as_val" = x""yes; then
13348 cat >>confdefs.h <<_ACEOF
13349#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13350_ACEOF
13351 HAVE_CONFDB_H=yes
13352else
13353 HAVE_CONFDB_H=no
13354fi
13355
13356done
13357
13358
13359 if test x$HAVE_CONFDB != xyes && \
13360 test x$HAVE_CONFDB_H = xyes; then
13361 check_lib_no_libs confdb confdb_initialize
13362 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13363$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13364 CONFDB_LIBS="-lconfdb"
13365 HAVE_CONFDB=yes
13366 fi
13367
13368 if test x$BUILDCOROSYNC = xyes && \
13369 test x$HAVE_CONFDB != xyes &&
13370 test x$CLVMD != xall; then
13371 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13372$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13373 { (exit 1); exit 1; }; }
13374 fi
13375fi
13376
13377if test x$CHECKCPG = xyes; then
13378
13379pkg_failed=no
13380{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13381$as_echo_n "checking for CPG... " >&6; }
13382
13383if test -n "$CPG_CFLAGS"; then
13384 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13385 elif test -n "$PKG_CONFIG"; then
13386 if test -n "$PKG_CONFIG" && \
13387 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13388 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13389 ac_status=$?
13390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; then
13392 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13393else
13394 pkg_failed=yes
13395fi
13396 else
13397 pkg_failed=untried
13398fi
13399if test -n "$CPG_LIBS"; then
13400 pkg_cv_CPG_LIBS="$CPG_LIBS"
13401 elif test -n "$PKG_CONFIG"; then
13402 if test -n "$PKG_CONFIG" && \
13403 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13404 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13405 ac_status=$?
13406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; then
13408 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13409else
13410 pkg_failed=yes
13411fi
13412 else
13413 pkg_failed=untried
13414fi
13415
13416
13417
13418if test $pkg_failed = yes; then
13419
13420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13421 _pkg_short_errors_supported=yes
13422else
13423 _pkg_short_errors_supported=no
13424fi
13425 if test $_pkg_short_errors_supported = yes; then
13426 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13427 else
13428 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13429 fi
13430 # Put the nasty error message in config.log where it belongs
13431 echo "$CPG_PKG_ERRORS" >&5
13432
8c4e8a18 13433 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13434$as_echo "no" >&6; }
8c4e8a18
FDN
13435 $bailout
13436elif test $pkg_failed = untried; then
a946372e
AK
13437 $bailout
13438else
13439 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13440 CPG_LIBS=$pkg_cv_CPG_LIBS
13441 { $as_echo "$as_me:$LINENO: result: yes" >&5
13442$as_echo "yes" >&6; }
13443 HAVE_CPG=yes
13444fi
13445fi
13446
13447if test x$CHECKDLM = xyes; then
13448
13449pkg_failed=no
13450{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13451$as_echo_n "checking for DLM... " >&6; }
13452
13453if test -n "$DLM_CFLAGS"; then
13454 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13455 elif test -n "$PKG_CONFIG"; then
13456 if test -n "$PKG_CONFIG" && \
13457 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13458 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13459 ac_status=$?
13460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; then
13462 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13463else
13464 pkg_failed=yes
13465fi
13466 else
13467 pkg_failed=untried
13468fi
13469if test -n "$DLM_LIBS"; then
13470 pkg_cv_DLM_LIBS="$DLM_LIBS"
13471 elif test -n "$PKG_CONFIG"; then
13472 if test -n "$PKG_CONFIG" && \
13473 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13474 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13475 ac_status=$?
13476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; then
13478 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13479else
13480 pkg_failed=yes
13481fi
13482 else
13483 pkg_failed=untried
13484fi
13485
13486
13487
13488if test $pkg_failed = yes; then
13489
13490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13491 _pkg_short_errors_supported=yes
13492else
13493 _pkg_short_errors_supported=no
13494fi
13495 if test $_pkg_short_errors_supported = yes; then
13496 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13497 else
13498 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13499 fi
13500 # Put the nasty error message in config.log where it belongs
13501 echo "$DLM_PKG_ERRORS" >&5
13502
8c4e8a18
FDN
13503 { $as_echo "$as_me:$LINENO: result: no" >&5
13504$as_echo "no" >&6; }
13505 NOTFOUND=0
a946372e
AK
13506
13507for ac_header in libdlm.h
13508do
13509as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13512$as_echo_n "checking for $ac_header... " >&6; }
13513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13514 $as_echo_n "(cached) " >&6
13515fi
13516ac_res=`eval 'as_val=${'$as_ac_Header'}
13517 $as_echo "$as_val"'`
13518 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13519$as_echo "$ac_res" >&6; }
13520else
13521 # Is the header compilable?
13522{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13523$as_echo_n "checking $ac_header usability... " >&6; }
13524cat >conftest.$ac_ext <<_ACEOF
13525/* confdefs.h. */
13526_ACEOF
13527cat confdefs.h >>conftest.$ac_ext
13528cat >>conftest.$ac_ext <<_ACEOF
13529/* end confdefs.h. */
13530$ac_includes_default
13531#include <$ac_header>
13532_ACEOF
13533rm -f conftest.$ac_objext
13534if { (ac_try="$ac_compile"
13535case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13538esac
13539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13540$as_echo "$ac_try_echo") >&5
13541 (eval "$ac_compile") 2>conftest.er1
13542 ac_status=$?
13543 grep -v '^ *+' conftest.er1 >conftest.err
13544 rm -f conftest.er1
13545 cat conftest.err >&5
13546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } && {
13548 test -z "$ac_c_werror_flag" ||
13549 test ! -s conftest.err
13550 } && test -s conftest.$ac_objext; then
13551 ac_header_compiler=yes
13552else
13553 $as_echo "$as_me: failed program was:" >&5
13554sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_header_compiler=no
13557fi
13558
13559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13561$as_echo "$ac_header_compiler" >&6; }
13562
13563# Is the header present?
13564{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13565$as_echo_n "checking $ac_header presence... " >&6; }
13566cat >conftest.$ac_ext <<_ACEOF
13567/* confdefs.h. */
13568_ACEOF
13569cat confdefs.h >>conftest.$ac_ext
13570cat >>conftest.$ac_ext <<_ACEOF
13571/* end confdefs.h. */
13572#include <$ac_header>
13573_ACEOF
13574if { (ac_try="$ac_cpp conftest.$ac_ext"
13575case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13578esac
13579eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13580$as_echo "$ac_try_echo") >&5
13581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } >/dev/null && {
13588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 }; then
13591 ac_header_preproc=yes
13592else
13593 $as_echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
13595
13596 ac_header_preproc=no
13597fi
13598
13599rm -f conftest.err conftest.$ac_ext
13600{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13601$as_echo "$ac_header_preproc" >&6; }
13602
13603# So? What about this header?
13604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13605 yes:no: )
13606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13607$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13609$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13610 ac_header_preproc=yes
13611 ;;
13612 no:yes:* )
13613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13614$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13616$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13618$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13620$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13622$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13624$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13625
13626 ;;
13627esac
13628{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13629$as_echo_n "checking for $ac_header... " >&6; }
13630if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13631 $as_echo_n "(cached) " >&6
13632else
13633 eval "$as_ac_Header=\$ac_header_preproc"
13634fi
13635ac_res=`eval 'as_val=${'$as_ac_Header'}
13636 $as_echo "$as_val"'`
13637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13638$as_echo "$ac_res" >&6; }
13639
13640fi
13641as_val=`eval 'as_val=${'$as_ac_Header'}
13642 $as_echo "$as_val"'`
13643 if test "x$as_val" = x""yes; then
13644 cat >>confdefs.h <<_ACEOF
13645#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13646_ACEOF
13647
13648else
13649 $bailout
13650fi
13651
13652done
13653
13654 check_lib_no_libs dlm dlm_lock -lpthread
13655 if test $NOTFOUND = 0; then
13656 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13657$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13658 DLM_LIBS="-ldlm -lpthread"
13659 HAVE_DLM=yes
13660 fi
13661elif test $pkg_failed = untried; then
13662 NOTFOUND=0
13663
13664for ac_header in libdlm.h
13665do
13666as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13669$as_echo_n "checking for $ac_header... " >&6; }
13670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671 $as_echo_n "(cached) " >&6
13672fi
13673ac_res=`eval 'as_val=${'$as_ac_Header'}
13674 $as_echo "$as_val"'`
13675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13676$as_echo "$ac_res" >&6; }
13677else
13678 # Is the header compilable?
13679{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13680$as_echo_n "checking $ac_header usability... " >&6; }
13681cat >conftest.$ac_ext <<_ACEOF
13682/* confdefs.h. */
13683_ACEOF
13684cat confdefs.h >>conftest.$ac_ext
13685cat >>conftest.$ac_ext <<_ACEOF
13686/* end confdefs.h. */
13687$ac_includes_default
13688#include <$ac_header>
13689_ACEOF
13690rm -f conftest.$ac_objext
13691if { (ac_try="$ac_compile"
13692case "(($ac_try" in
13693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13695esac
13696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13697$as_echo "$ac_try_echo") >&5
13698 (eval "$ac_compile") 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest.$ac_objext; then
13708 ac_header_compiler=yes
13709else
13710 $as_echo "$as_me: failed program was:" >&5
13711sed 's/^/| /' conftest.$ac_ext >&5
13712
13713 ac_header_compiler=no
13714fi
13715
13716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13717{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13718$as_echo "$ac_header_compiler" >&6; }
13719
13720# Is the header present?
13721{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13722$as_echo_n "checking $ac_header presence... " >&6; }
13723cat >conftest.$ac_ext <<_ACEOF
13724/* confdefs.h. */
13725_ACEOF
13726cat confdefs.h >>conftest.$ac_ext
13727cat >>conftest.$ac_ext <<_ACEOF
13728/* end confdefs.h. */
13729#include <$ac_header>
13730_ACEOF
13731if { (ac_try="$ac_cpp conftest.$ac_ext"
13732case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735esac
13736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13737$as_echo "$ac_try_echo") >&5
13738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } >/dev/null && {
13745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 }; then
13748 ac_header_preproc=yes
13749else
13750 $as_echo "$as_me: failed program was:" >&5
13751sed 's/^/| /' conftest.$ac_ext >&5
13752
13753 ac_header_preproc=no
13754fi
13755
13756rm -f conftest.err conftest.$ac_ext
13757{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13758$as_echo "$ac_header_preproc" >&6; }
13759
13760# So? What about this header?
13761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13762 yes:no: )
13763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13764$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13766$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13767 ac_header_preproc=yes
13768 ;;
13769 no:yes:* )
13770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13771$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13773$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13775$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13777$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13779$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13781$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13782
13783 ;;
13784esac
13785{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13786$as_echo_n "checking for $ac_header... " >&6; }
13787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13788 $as_echo_n "(cached) " >&6
13789else
13790 eval "$as_ac_Header=\$ac_header_preproc"
13791fi
13792ac_res=`eval 'as_val=${'$as_ac_Header'}
13793 $as_echo "$as_val"'`
13794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13795$as_echo "$ac_res" >&6; }
13796
13797fi
13798as_val=`eval 'as_val=${'$as_ac_Header'}
13799 $as_echo "$as_val"'`
13800 if test "x$as_val" = x""yes; then
13801 cat >>confdefs.h <<_ACEOF
13802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13803_ACEOF
13804
13805else
13806 $bailout
13807fi
13808
13809done
13810
13811 check_lib_no_libs dlm dlm_lock -lpthread
13812 if test $NOTFOUND = 0; then
13813 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13814$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13815 DLM_LIBS="-ldlm -lpthread"
13816 HAVE_DLM=yes
13817 fi
13818else
13819 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13820 DLM_LIBS=$pkg_cv_DLM_LIBS
13821 { $as_echo "$as_me:$LINENO: result: yes" >&5
13822$as_echo "yes" >&6; }
13823 HAVE_DLM=yes
13824fi
13825fi
13826
13827if test x$CLVMD = xall; then
8c222979 13828 CLVMD=none
c89bc357
MB
13829 CLVMD_CMANAGERS=""
13830 CLVMD_NEEDS_QDISKD=no
a946372e
AK
13831 if test x$HAVE_CCS = xyes && \
13832 test x$HAVE_GULM = xyes; then
8c222979
FDN
13833 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13834$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13835 CLVMD="$CLVMD,gulm"
c89bc357
MB
13836 CLVMD_CMANAGERS="$CLVMD_CMANAGERS lock_gulmd"
13837 CLVMD_NEEDS_QDISKD=yes
a946372e
AK
13838 fi
13839 if test x$HAVE_CMAN = xyes && \
13840 test x$HAVE_DLM = xyes; then
8c222979
FDN
13841 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13842$as_echo "Enabling clvmd cman cluster manager" >&6; }
13843 CLVMD="$CLVMD,cman"
c89bc357
MB
13844 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
13845 CLVMD_NEEDS_QDISKD=yes
a946372e
AK
13846 fi
13847 if test x$HAVE_COROSYNC = xyes && \
13848 test x$HAVE_QUORUM = xyes && \
13849 test x$HAVE_CPG = xyes && \
13850 test x$HAVE_DLM = xyes && \
13851 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13852 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13853$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13854 CLVMD="$CLVMD,corosync"
c89bc357 13855 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
a946372e
AK
13856 fi
13857 if test x$HAVE_COROSYNC = xyes && \
13858 test x$HAVE_CPG = xyes && \
13859 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13860 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13861$as_echo "Enabling clvmd openais cluster manager" >&6; }
13862 CLVMD="$CLVMD,openais"
c89bc357
MB
13863 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
13864 fi
13865 if test x$CLVMD_NEEDS_QDISKD != xno; then
13866 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
8c222979
FDN
13867 fi
13868 if test x$CLVMD = xnone; then
13869 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13870$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13871 fi
a946372e
AK
13872fi
13873
8c4e8a18
FDN
13874################################################################################
13875if test "x$CLVMD" != xnone; then
13876
13877# Check whether --with-clvmd-pidfile was given.
13878if test "${with_clvmd_pidfile+set}" = set; then
13879 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13880else
13881 CLVMD_PIDFILE="/var/run/clvmd.pid"
13882fi
13883
13884
13885cat >>confdefs.h <<_ACEOF
13886#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13887_ACEOF
13888
13889fi
13890
a946372e 13891################################################################################
66fd4529
AK
13892{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13893$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13894# Check whether --enable-cmirrord was given.
13895if test "${enable_cmirrord+set}" = set; then
13896 enableval=$enable_cmirrord; CMIRRORD=$enableval
13897else
13898 CMIRRORD=no
13899fi
13900
13901{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13902$as_echo "$CMIRRORD" >&6; }
13903
13904BUILD_CMIRRORD=$CMIRRORD
13905
13906################################################################################
66fd4529
AK
13907if test "x$BUILD_CMIRRORD" = xyes; then
13908
13909# Check whether --with-cmirrord-pidfile was given.
13910if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13911 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13912else
71082be4 13913 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13914fi
13915
71082be4
ZK
13916
13917cat >>confdefs.h <<_ACEOF
13918#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13919_ACEOF
13920
66fd4529 13921fi
a946372e 13922
66fd4529
AK
13923################################################################################
13924if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13925 if test x$PKGCONFIG_INIT != x1; then
13926 pkg_config_init
13927 fi
13928
13929pkg_failed=no
13930{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13931$as_echo_n "checking for SACKPT... " >&6; }
13932
13933if test -n "$SACKPT_CFLAGS"; then
13934 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13935 elif test -n "$PKG_CONFIG"; then
13936 if test -n "$PKG_CONFIG" && \
13937 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13938 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13939 ac_status=$?
13940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; then
13942 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13943else
13944 pkg_failed=yes
13945fi
13946 else
13947 pkg_failed=untried
13948fi
13949if test -n "$SACKPT_LIBS"; then
13950 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13951 elif test -n "$PKG_CONFIG"; then
13952 if test -n "$PKG_CONFIG" && \
13953 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13954 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13955 ac_status=$?
13956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; then
13958 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13959else
13960 pkg_failed=yes
13961fi
13962 else
13963 pkg_failed=untried
13964fi
13965
13966
13967
13968if test $pkg_failed = yes; then
13969
13970if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13971 _pkg_short_errors_supported=yes
13972else
13973 _pkg_short_errors_supported=no
13974fi
13975 if test $_pkg_short_errors_supported = yes; then
13976 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13977 else
13978 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13979 fi
13980 # Put the nasty error message in config.log where it belongs
13981 echo "$SACKPT_PKG_ERRORS" >&5
13982
13983 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13984
13985$SACKPT_PKG_ERRORS
13986
13987Consider adjusting the PKG_CONFIG_PATH environment variable if you
13988installed software in a non-standard prefix.
13989
13990Alternatively, you may set the environment variables SACKPT_CFLAGS
13991and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13992See the pkg-config man page for more details.
13993" >&5
90c80887
AK
13994$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13995
13996$SACKPT_PKG_ERRORS
13997
13998Consider adjusting the PKG_CONFIG_PATH environment variable if you
13999installed software in a non-standard prefix.
14000
14001Alternatively, you may set the environment variables SACKPT_CFLAGS
14002and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14003See the pkg-config man page for more details.
14004" >&2;}
90c80887
AK
14005 { (exit 1); exit 1; }; }
14006elif test $pkg_failed = untried; then
14007 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14009{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14010is in your PATH or set the PKG_CONFIG environment variable to the full
14011path to pkg-config.
14012
14013Alternatively, you may set the environment variables SACKPT_CFLAGS
14014and SACKPT_LIBS to avoid the need to call pkg-config.
14015See the pkg-config man page for more details.
14016
14017To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14018See \`config.log' for more details." >&5
14019$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14020is in your PATH or set the PKG_CONFIG environment variable to the full
14021path to pkg-config.
14022
14023Alternatively, you may set the environment variables SACKPT_CFLAGS
14024and SACKPT_LIBS to avoid the need to call pkg-config.
14025See the pkg-config man page for more details.
14026
14027To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14028See \`config.log' for more details." >&2;}
14029 { (exit 1); exit 1; }; }; }
14030else
14031 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14032 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14033 { $as_echo "$as_me:$LINENO: result: yes" >&5
14034$as_echo "yes" >&6; }
8c4e8a18 14035 :
90c80887
AK
14036fi
14037 if test x$HAVE_CPG != xyes; then
a946372e
AK
14038
14039pkg_failed=no
14040{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
14041$as_echo_n "checking for CPG... " >&6; }
14042
14043if test -n "$CPG_CFLAGS"; then
14044 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14045 elif test -n "$PKG_CONFIG"; then
14046 if test -n "$PKG_CONFIG" && \
14047 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14048 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14049 ac_status=$?
14050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; then
14052 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14053else
14054 pkg_failed=yes
14055fi
14056 else
14057 pkg_failed=untried
14058fi
14059if test -n "$CPG_LIBS"; then
14060 pkg_cv_CPG_LIBS="$CPG_LIBS"
14061 elif test -n "$PKG_CONFIG"; then
14062 if test -n "$PKG_CONFIG" && \
14063 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14064 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14065 ac_status=$?
14066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; then
14068 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14069else
14070 pkg_failed=yes
14071fi
14072 else
14073 pkg_failed=untried
14074fi
14075
14076
14077
14078if test $pkg_failed = yes; then
14079
14080if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14081 _pkg_short_errors_supported=yes
14082else
14083 _pkg_short_errors_supported=no
14084fi
14085 if test $_pkg_short_errors_supported = yes; then
14086 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14087 else
14088 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14089 fi
14090 # Put the nasty error message in config.log where it belongs
14091 echo "$CPG_PKG_ERRORS" >&5
14092
90c80887
AK
14093 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14094
14095$CPG_PKG_ERRORS
14096
14097Consider adjusting the PKG_CONFIG_PATH environment variable if you
14098installed software in a non-standard prefix.
14099
14100Alternatively, you may set the environment variables CPG_CFLAGS
14101and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14102See the pkg-config man page for more details.
14103" >&5
90c80887
AK
14104$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14105
14106$CPG_PKG_ERRORS
14107
14108Consider adjusting the PKG_CONFIG_PATH environment variable if you
14109installed software in a non-standard prefix.
14110
14111Alternatively, you may set the environment variables CPG_CFLAGS
14112and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14113See the pkg-config man page for more details.
14114" >&2;}
90c80887 14115 { (exit 1); exit 1; }; }
a946372e 14116elif test $pkg_failed = untried; then
90c80887
AK
14117 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14119{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14120is in your PATH or set the PKG_CONFIG environment variable to the full
14121path to pkg-config.
14122
14123Alternatively, you may set the environment variables CPG_CFLAGS
14124and CPG_LIBS to avoid the need to call pkg-config.
14125See the pkg-config man page for more details.
14126
14127To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14128See \`config.log' for more details." >&5
14129$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14130is in your PATH or set the PKG_CONFIG environment variable to the full
14131path to pkg-config.
14132
14133Alternatively, you may set the environment variables CPG_CFLAGS
14134and CPG_LIBS to avoid the need to call pkg-config.
14135See the pkg-config man page for more details.
14136
14137To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14138See \`config.log' for more details." >&2;}
14139 { (exit 1); exit 1; }; }; }
a946372e
AK
14140else
14141 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14142 CPG_LIBS=$pkg_cv_CPG_LIBS
14143 { $as_echo "$as_me:$LINENO: result: yes" >&5
14144$as_echo "yes" >&6; }
8c4e8a18 14145 :
a946372e 14146fi
90c80887 14147 fi
a946372e
AK
14148fi
14149
14150################################################################################
14151{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14152$as_echo_n "checking whether to enable debugging... " >&6; }
14153# Check whether --enable-debug was given.
14154if test "${enable_debug+set}" = set; then
14155 enableval=$enable_debug; DEBUG=$enableval
14156else
14157 DEBUG=no
14158fi
14159
14160{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14161$as_echo "$DEBUG" >&6; }
14162
14163if test x$DEBUG = xyes; then
14164 COPTIMISE_FLAG=
14165else
14166 CSCOPE_CMD=
14167fi
14168
14169################################################################################
14170{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14171$as_echo_n "checking for C optimisation flag... " >&6; }
14172
14173# Check whether --with-optimisation was given.
14174if test "${with_optimisation+set}" = set; then
71082be4 14175 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14176fi
14177
14178{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14179$as_echo "$COPTIMISE_FLAG" >&6; }
14180
14181################################################################################
14182{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14183$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14184# Check whether --enable-profiling was given.
14185if test "${enable_profiling+set}" = set; then
5556819a 14186 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14187else
5556819a 14188 PROFILING=no
fddafd51
ZK
14189fi
14190
ec6a6fbe
AK
14191{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14192$as_echo "$PROFILING" >&6; }
5556819a
AK
14193
14194if test "x$PROFILING" = xyes; then
14195 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14196 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14197set dummy lcov; ac_word=$2
ec6a6fbe
AK
14198{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14199$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14200if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14201 $as_echo_n "(cached) " >&6
fddafd51
ZK
14202else
14203 case $LCOV in
14204 [\\/]* | ?:[\\/]*)
14205 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14206 ;;
14207 *)
14208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14209for as_dir in $PATH
14210do
14211 IFS=$as_save_IFS
14212 test -z "$as_dir" && as_dir=.
14213 for ac_exec_ext in '' $ac_executable_extensions; do
14214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14215 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14216 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14217 break 2
14218 fi
14219done
14220done
14221IFS=$as_save_IFS
14222
14223 ;;
14224esac
14225fi
14226LCOV=$ac_cv_path_LCOV
14227if test -n "$LCOV"; then
ec6a6fbe
AK
14228 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14229$as_echo "$LCOV" >&6; }
fddafd51 14230else
ec6a6fbe
AK
14231 { $as_echo "$as_me:$LINENO: result: no" >&5
14232$as_echo "no" >&6; }
fddafd51
ZK
14233fi
14234
14235
5556819a 14236 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14237set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14238{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14239$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14240if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14241 $as_echo_n "(cached) " >&6
fddafd51
ZK
14242else
14243 case $GENHTML in
14244 [\\/]* | ?:[\\/]*)
14245 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14246 ;;
14247 *)
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249for as_dir in $PATH
14250do
14251 IFS=$as_save_IFS
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14255 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14256 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14257 break 2
14258 fi
14259done
14260done
14261IFS=$as_save_IFS
14262
14263 ;;
14264esac
14265fi
14266GENHTML=$ac_cv_path_GENHTML
14267if test -n "$GENHTML"; then
ec6a6fbe
AK
14268 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14269$as_echo "$GENHTML" >&6; }
fddafd51 14270else
ec6a6fbe
AK
14271 { $as_echo "$as_me:$LINENO: result: no" >&5
14272$as_echo "no" >&6; }
fddafd51
ZK
14273fi
14274
14275
fd4728e1 14276 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14277 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14278$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14279 { (exit 1); exit 1; }; }
14280 fi
fd4728e1
ZK
14281 # Extract the first word of "genpng", so it can be a program name with args.
14282set dummy genpng; ac_word=$2
14283{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14284$as_echo_n "checking for $ac_word... " >&6; }
14285if test "${ac_cv_path_GENPNG+set}" = set; then
14286 $as_echo_n "(cached) " >&6
14287else
14288 case $GENPNG in
14289 [\\/]* | ?:[\\/]*)
14290 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14291 ;;
14292 *)
14293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294for as_dir in $PATH
14295do
14296 IFS=$as_save_IFS
14297 test -z "$as_dir" && as_dir=.
14298 for ac_exec_ext in '' $ac_executable_extensions; do
14299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14300 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14302 break 2
14303 fi
14304done
14305done
14306IFS=$as_save_IFS
14307
14308 ;;
14309esac
14310fi
14311GENPNG=$ac_cv_path_GENPNG
14312if test -n "$GENPNG"; then
14313 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14314$as_echo "$GENPNG" >&6; }
14315else
14316 { $as_echo "$as_me:$LINENO: result: no" >&5
14317$as_echo "no" >&6; }
14318fi
14319
14320
14321 if test -n "$GENPNG"; then
14322 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14323$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14324 if $GENPNG --help > /dev/null 2>&1 ; then
14325 { $as_echo "$as_me:$LINENO: result: ok" >&5
14326$as_echo "ok" >&6; }
14327 GENHTML="$GENHTML --frames"
14328 else
14329 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14330$as_echo "not supported" >&6; }
14331 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14332$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14333 GENPNG=
14334 fi
14335 fi
5556819a 14336fi
d0191583 14337
54b362f9
AK
14338################################################################################
14339{ $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14340$as_echo_n "checking whether to enable unit testing... " >&6; }
14341# Check whether --enable-testing was given.
14342if test "${enable_testing+set}" = set; then
14343 enableval=$enable_testing; TESTING=$enableval
14344else
14345 TESTING=no
14346fi
14347
14348{ $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14349$as_echo "$TESTING" >&6; }
14350
14351if test "$TESTING" = yes; then
14352 # Extract the first word of "ruby1.9", so it can be a program name with args.
14353set dummy ruby1.9; ac_word=$2
14354{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14355$as_echo_n "checking for $ac_word... " >&6; }
14356if test "${ac_cv_path_RUBY19+set}" = set; then
14357 $as_echo_n "(cached) " >&6
14358else
14359 case $RUBY19 in
14360 [\\/]* | ?:[\\/]*)
14361 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14362 ;;
14363 *)
14364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14365for as_dir in $PATH
14366do
14367 IFS=$as_save_IFS
14368 test -z "$as_dir" && as_dir=.
14369 for ac_exec_ext in '' $ac_executable_extensions; do
14370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14371 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14373 break 2
14374 fi
14375done
14376done
14377IFS=$as_save_IFS
14378
14379 ;;
14380esac
14381fi
14382RUBY19=$ac_cv_path_RUBY19
14383if test -n "$RUBY19"; then
14384 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14385$as_echo "$RUBY19" >&6; }
14386else
14387 { $as_echo "$as_me:$LINENO: result: no" >&5
14388$as_echo "no" >&6; }
14389fi
14390
14391
14392 # Extract the first word of "valgrind", so it can be a program name with args.
14393set dummy valgrind; ac_word=$2
14394{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14395$as_echo_n "checking for $ac_word... " >&6; }
14396if test "${ac_cv_path_VALGRIND+set}" = set; then
14397 $as_echo_n "(cached) " >&6
14398else
14399 case $VALGRIND in
14400 [\\/]* | ?:[\\/]*)
14401 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14402 ;;
14403 *)
14404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14405for as_dir in $PATH
14406do
14407 IFS=$as_save_IFS
14408 test -z "$as_dir" && as_dir=.
14409 for ac_exec_ext in '' $ac_executable_extensions; do
14410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14411 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14412 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14413 break 2
14414 fi
14415done
14416done
14417IFS=$as_save_IFS
14418
14419 ;;
14420esac
14421fi
14422VALGRIND=$ac_cv_path_VALGRIND
14423if test -n "$VALGRIND"; then
14424 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14425$as_echo "$VALGRIND" >&6; }
14426else
14427 { $as_echo "$as_me:$LINENO: result: no" >&5
14428$as_echo "no" >&6; }
14429fi
14430
14431
14432 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14433 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14434$as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14435 { (exit 1); exit 1; }; }
14436 fi
14437fi
14438
d1e8046f
AK
14439################################################################################
14440{ $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5
14441$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
14442# Check whether --enable-valgrind_pool was given.
14443if test "${enable_valgrind_pool+set}" = set; then
14444 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
14445else
14446 VALGRIND_POOL=no
14447fi
14448
14449{ $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5
14450$as_echo "$VALGRIND_POOL" >&6; }
14451
14452if test "$VALGRIND_POOL" = yes; then
14453
14454for ac_header in valgrind/memcheck.h
14455do
14456as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14458 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14459$as_echo_n "checking for $ac_header... " >&6; }
14460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14461 $as_echo_n "(cached) " >&6
14462fi
14463ac_res=`eval 'as_val=${'$as_ac_Header'}
14464 $as_echo "$as_val"'`
14465 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14466$as_echo "$ac_res" >&6; }
14467else
14468 # Is the header compilable?
14469{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14470$as_echo_n "checking $ac_header usability... " >&6; }
14471cat >conftest.$ac_ext <<_ACEOF
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477$ac_includes_default
14478#include <$ac_header>
14479_ACEOF
14480rm -f conftest.$ac_objext
14481if { (ac_try="$ac_compile"
14482case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485esac
14486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14487$as_echo "$ac_try_echo") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14489 ac_status=$?
14490 grep -v '^ *+' conftest.er1 >conftest.err
14491 rm -f conftest.er1
14492 cat conftest.err >&5
14493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14498 ac_header_compiler=yes
14499else
14500 $as_echo "$as_me: failed program was:" >&5
14501sed 's/^/| /' conftest.$ac_ext >&5
14502
14503 ac_header_compiler=no
14504fi
14505
14506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14508$as_echo "$ac_header_compiler" >&6; }
14509
14510# Is the header present?
14511{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14512$as_echo_n "checking $ac_header presence... " >&6; }
14513cat >conftest.$ac_ext <<_ACEOF
14514/* confdefs.h. */
14515_ACEOF
14516cat confdefs.h >>conftest.$ac_ext
14517cat >>conftest.$ac_ext <<_ACEOF
14518/* end confdefs.h. */
14519#include <$ac_header>
14520_ACEOF
14521if { (ac_try="$ac_cpp conftest.$ac_ext"
14522case "(($ac_try" in
14523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14524 *) ac_try_echo=$ac_try;;
14525esac
14526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14527$as_echo "$ac_try_echo") >&5
14528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14529 ac_status=$?
14530 grep -v '^ *+' conftest.er1 >conftest.err
14531 rm -f conftest.er1
14532 cat conftest.err >&5
14533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev/null && {
14535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14536 test ! -s conftest.err
14537 }; then
14538 ac_header_preproc=yes
14539else
14540 $as_echo "$as_me: failed program was:" >&5
14541sed 's/^/| /' conftest.$ac_ext >&5
14542
14543 ac_header_preproc=no
14544fi
14545
14546rm -f conftest.err conftest.$ac_ext
14547{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14548$as_echo "$ac_header_preproc" >&6; }
14549
14550# So? What about this header?
14551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14552 yes:no: )
14553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14554$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14556$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14557 ac_header_preproc=yes
14558 ;;
14559 no:yes:* )
14560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14561$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14563$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14565$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14567$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14569$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14571$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14572
14573 ;;
14574esac
14575{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14576$as_echo_n "checking for $ac_header... " >&6; }
14577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14578 $as_echo_n "(cached) " >&6
14579else
14580 eval "$as_ac_Header=\$ac_header_preproc"
14581fi
14582ac_res=`eval 'as_val=${'$as_ac_Header'}
14583 $as_echo "$as_val"'`
14584 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14585$as_echo "$ac_res" >&6; }
14586
14587fi
14588as_val=`eval 'as_val=${'$as_ac_Header'}
14589 $as_echo "$as_val"'`
14590 if test "x$as_val" = x""yes; then
14591 cat >>confdefs.h <<_ACEOF
14592#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14593_ACEOF
14594
14595else
14596 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14597$as_echo "$as_me: error: bailing out" >&2;}
14598 { (exit 1); exit 1; }; }
14599fi
14600
14601done
14602
14603
14604cat >>confdefs.h <<\_ACEOF
14605#define VALGRIND_POOL 1
14606_ACEOF
14607
14608fi
14609
d0191583 14610################################################################################
ec6a6fbe
AK
14611{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14612$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14613# Check whether --enable-devmapper was given.
14614if test "${enable_devmapper+set}" = set; then
14615 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14616fi
14617
ec6a6fbe
AK
14618{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14619$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14620
14621if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14622
14623cat >>confdefs.h <<\_ACEOF
d0191583 14624#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14625_ACEOF
14626
14627fi
14628
a5f46f6a
AK
14629################################################################################
14630{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14631$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14632# Check whether --enable-udev_sync was given.
14633if test "${enable_udev_sync+set}" = set; then
14634 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14635else
14636 UDEV_SYNC=no
14637fi
14638
14639{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14640$as_echo "$UDEV_SYNC" >&6; }
14641
90c80887
AK
14642if test x$UDEV_SYNC = xyes; then
14643 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14644$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14645if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14646 $as_echo_n "(cached) " >&6
14647else
14648 ac_check_lib_save_LIBS=$LIBS
14649LIBS="-ludev $LIBS"
14650cat >conftest.$ac_ext <<_ACEOF
14651/* confdefs.h. */
14652_ACEOF
14653cat confdefs.h >>conftest.$ac_ext
14654cat >>conftest.$ac_ext <<_ACEOF
14655/* end confdefs.h. */
14656
14657/* Override any GCC internal prototype to avoid an error.
14658 Use char because int might match the return type of a GCC
14659 builtin and then its argument prototype would still apply. */
14660#ifdef __cplusplus
14661extern "C"
14662#endif
14663char udev_queue_get_udev_is_active ();
14664int
14665main ()
14666{
14667return udev_queue_get_udev_is_active ();
14668 ;
14669 return 0;
14670}
14671_ACEOF
14672rm -f conftest.$ac_objext conftest$ac_exeext
14673if { (ac_try="$ac_link"
14674case "(($ac_try" in
14675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14676 *) ac_try_echo=$ac_try;;
14677esac
14678eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14679$as_echo "$ac_try_echo") >&5
14680 (eval "$ac_link") 2>conftest.er1
14681 ac_status=$?
14682 grep -v '^ *+' conftest.er1 >conftest.err
14683 rm -f conftest.er1
14684 cat conftest.err >&5
14685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } && {
14687 test -z "$ac_c_werror_flag" ||
14688 test ! -s conftest.err
14689 } && test -s conftest$ac_exeext && {
14690 test "$cross_compiling" = yes ||
14691 $as_test_x conftest$ac_exeext
14692 }; then
14693 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14694else
14695 $as_echo "$as_me: failed program was:" >&5
14696sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14699fi
14700
14701rm -rf conftest.dSYM
14702rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14703 conftest$ac_exeext conftest.$ac_ext
14704LIBS=$ac_check_lib_save_LIBS
14705fi
14706{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14707$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14708if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14709 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14710else
5161ecb9
PR
14711 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14712$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14713 { (exit 1); exit 1; }; }
90c80887
AK
14714fi
14715
14716
90c80887 14717cat >>confdefs.h <<\_ACEOF
5161ecb9 14718#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14719_ACEOF
14720
90c80887
AK
14721fi
14722
5161ecb9
PR
14723{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14724$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14725# Check whether --enable-udev_rules was given.
14726if test "${enable_udev_rules+set}" = set; then
14727 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14728else
14729 UDEV_RULES=$UDEV_SYNC
14730fi
14731
14732{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14733$as_echo "$UDEV_RULES" >&6; }
14734
93bd259b
AK
14735################################################################################
14736# Check whether --enable-compat was given.
14737if test "${enable_compat+set}" = set; then
14738 enableval=$enable_compat; DM_COMPAT=$enableval
14739else
14740 DM_COMPAT=no
14741fi
14742
14743
95eaa683
AK
14744################################################################################
14745# Check whether --enable-units-compat was given.
14746if test "${enable_units_compat+set}" = set; then
14747 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14748else
14749 UNITS_COMPAT=no
14750fi
14751
14752
14753if test x$UNITS_COMPAT = xyes; then
14754
14755cat >>confdefs.h <<\_ACEOF
14756#define DEFAULT_SI_UNIT_CONSISTENCY 0
14757_ACEOF
14758
14759fi
14760
93bd259b
AK
14761################################################################################
14762# Check whether --enable-ioctl was given.
14763if test "${enable_ioctl+set}" = set; then
14764 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14765fi
14766
14767
d0191583 14768################################################################################
ec6a6fbe
AK
14769{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14770$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14771# Check whether --enable-o_direct was given.
14772if test "${enable_o_direct+set}" = set; then
14773 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14774fi
ad6254c5 14775
ec6a6fbe
AK
14776{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14777$as_echo "$ODIRECT" >&6; }
ad6254c5 14778
d0191583 14779if test x$ODIRECT = xyes; then
ad6254c5 14780
d0191583
JM
14781cat >>confdefs.h <<\_ACEOF
14782#define O_DIRECT_SUPPORT 1
14783_ACEOF
ad6254c5 14784
d0191583 14785fi
ad6254c5 14786
572fefeb
AK
14787################################################################################
14788{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14789$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14790# Check whether --enable-applib was given.
14791if test "${enable_applib+set}" = set; then
14792 enableval=$enable_applib; APPLIB=$enableval
14793else
14794 APPLIB=no
14795fi
14796
14797{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14798$as_echo "$APPLIB" >&6; }
14799
14800test x$APPLIB = xyes \
14801 && LVM2APP_LIB=-llvm2app \
14802 || LVM2APP_LIB=
14803
d0191583 14804################################################################################
ec6a6fbe
AK
14805{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14806$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14807# Check whether --enable-cmdlib was given.
14808if test "${enable_cmdlib+set}" = set; then
14809 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14810else
d0191583
JM
14811 CMDLIB=no
14812fi
8a2fc586 14813
ec6a6fbe
AK
14814{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14815$as_echo "$CMDLIB" >&6; }
8a2fc586 14816
2a9a80c9 14817test x$CMDLIB = xyes \
d179cc7a
JM
14818 && LVM2CMD_LIB=-llvm2cmd \
14819 || LVM2CMD_LIB=
14820
93bd259b
AK
14821################################################################################
14822# Check whether --enable-pkgconfig was given.
14823if test "${enable_pkgconfig+set}" = set; then
14824 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14825else
14826 PKGCONFIG=no
14827fi
14828
2a9a80c9 14829
23b059e7
ZK
14830################################################################################
14831# Check whether --enable-write_install was given.
14832if test "${enable_write_install+set}" = set; then
14833 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14834else
14835 WRITE_INSTALL=no
14836fi
14837
14838
d0191583 14839################################################################################
ec6a6fbe
AK
14840{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14841$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14842# Check whether --enable-fsadm was given.
14843if test "${enable_fsadm+set}" = set; then
14844 enableval=$enable_fsadm; FSADM=$enableval
14845fi
8a2fc586 14846
ec6a6fbe
AK
14847{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14848$as_echo "$FSADM" >&6; }
8a2fc586 14849
d0191583 14850################################################################################
ec6a6fbe
AK
14851{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14852$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14853# Check whether --enable-dmeventd was given.
14854if test "${enable_dmeventd+set}" = set; then
14855 enableval=$enable_dmeventd; DMEVENTD=$enableval
14856fi
ad6254c5 14857
ec6a6fbe
AK
14858{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14859$as_echo "$DMEVENTD" >&6; }
ad6254c5 14860
93bd259b
AK
14861BUILD_DMEVENTD=$DMEVENTD
14862
2a9a80c9
PR
14863if test x$DMEVENTD = xyes; then
14864 if test x$MIRRORS != xinternal; then
ec6a6fbe 14865 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14866 " >&5
ec6a6fbe 14867$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14868 " >&2;}
d0191583 14869 { (exit 1); exit 1; }; }
2a9a80c9
PR
14870 fi
14871 if test x$CMDLIB = xno; then
ec6a6fbe 14872 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14873 " >&5
ec6a6fbe 14874$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14875 " >&2;}
14876 { (exit 1); exit 1; }; }
14877 fi
ad6254c5 14878fi
7a197a62 14879
d0191583
JM
14880if test x$DMEVENTD = xyes; then
14881
14882cat >>confdefs.h <<\_ACEOF
14883#define DMEVENTD 1
ad6254c5
AK
14884_ACEOF
14885
ad6254c5 14886fi
93bd259b
AK
14887
14888################################################################################
14889
ec6a6fbe
AK
14890{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14891$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14892if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14893 $as_echo_n "(cached) " >&6
93bd259b
AK
14894else
14895 ac_check_lib_save_LIBS=$LIBS
14896LIBS="-lc $LIBS"
14897cat >conftest.$ac_ext <<_ACEOF
14898/* confdefs.h. */
14899_ACEOF
14900cat confdefs.h >>conftest.$ac_ext
14901cat >>conftest.$ac_ext <<_ACEOF
14902/* end confdefs.h. */
14903
14904/* Override any GCC internal prototype to avoid an error.
14905 Use char because int might match the return type of a GCC
14906 builtin and then its argument prototype would still apply. */
14907#ifdef __cplusplus
14908extern "C"
14909#endif
14910char getline ();
14911int
14912main ()
14913{
14914return getline ();
14915 ;
14916 return 0;
14917}
14918_ACEOF
14919rm -f conftest.$ac_objext conftest$ac_exeext
14920if { (ac_try="$ac_link"
14921case "(($ac_try" in
14922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14923 *) ac_try_echo=$ac_try;;
14924esac
ec6a6fbe
AK
14925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14926$as_echo "$ac_try_echo") >&5
93bd259b
AK
14927 (eval "$ac_link") 2>conftest.er1
14928 ac_status=$?
14929 grep -v '^ *+' conftest.er1 >conftest.err
14930 rm -f conftest.er1
14931 cat conftest.err >&5
ec6a6fbe 14932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14933 (exit $ac_status); } && {
14934 test -z "$ac_c_werror_flag" ||
14935 test ! -s conftest.err
ec6a6fbe
AK
14936 } && test -s conftest$ac_exeext && {
14937 test "$cross_compiling" = yes ||
14938 $as_test_x conftest$ac_exeext
14939 }; then
93bd259b
AK
14940 ac_cv_lib_c_getline=yes
14941else
ec6a6fbe 14942 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_cv_lib_c_getline=no
14946fi
14947
ec6a6fbe 14948rm -rf conftest.dSYM
93bd259b
AK
14949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14950 conftest$ac_exeext conftest.$ac_ext
14951LIBS=$ac_check_lib_save_LIBS
14952fi
ec6a6fbe
AK
14953{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14954$as_echo "$ac_cv_lib_c_getline" >&6; }
14955if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14956
14957cat >>confdefs.h <<\_ACEOF
14958#define HAVE_GETLINE 1
14959_ACEOF
14960
14961fi
14962
14963
14964################################################################################
14965
ec6a6fbe
AK
14966{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14967$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14968if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14969 $as_echo_n "(cached) " >&6
93bd259b
AK
14970else
14971 ac_check_lib_save_LIBS=$LIBS
14972LIBS="-lc $LIBS"
14973cat >conftest.$ac_ext <<_ACEOF
14974/* confdefs.h. */
14975_ACEOF
14976cat confdefs.h >>conftest.$ac_ext
14977cat >>conftest.$ac_ext <<_ACEOF
14978/* end confdefs.h. */
14979
14980/* Override any GCC internal prototype to avoid an error.
14981 Use char because int might match the return type of a GCC
14982 builtin and then its argument prototype would still apply. */
14983#ifdef __cplusplus
14984extern "C"
14985#endif
14986char canonicalize_file_name ();
14987int
14988main ()
14989{
14990return canonicalize_file_name ();
14991 ;
14992 return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext conftest$ac_exeext
14996if { (ac_try="$ac_link"
14997case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000esac
ec6a6fbe
AK
15001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15002$as_echo "$ac_try_echo") >&5
93bd259b
AK
15003 (eval "$ac_link") 2>conftest.er1
15004 ac_status=$?
15005 grep -v '^ *+' conftest.er1 >conftest.err
15006 rm -f conftest.er1
15007 cat conftest.err >&5
ec6a6fbe 15008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
15009 (exit $ac_status); } && {
15010 test -z "$ac_c_werror_flag" ||
15011 test ! -s conftest.err
ec6a6fbe
AK
15012 } && test -s conftest$ac_exeext && {
15013 test "$cross_compiling" = yes ||
15014 $as_test_x conftest$ac_exeext
15015 }; then
93bd259b
AK
15016 ac_cv_lib_c_canonicalize_file_name=yes
15017else
ec6a6fbe 15018 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
15019sed 's/^/| /' conftest.$ac_ext >&5
15020
15021 ac_cv_lib_c_canonicalize_file_name=no
15022fi
15023
ec6a6fbe 15024rm -rf conftest.dSYM
93bd259b
AK
15025rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15026 conftest$ac_exeext conftest.$ac_ext
15027LIBS=$ac_check_lib_save_LIBS
15028fi
ec6a6fbe
AK
15029{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
15030$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
15031if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
15032
15033cat >>confdefs.h <<\_ACEOF
15034#define HAVE_CANONICALIZE_FILE_NAME 1
15035_ACEOF
15036
15037fi
15038
15039
d0191583
JM
15040################################################################################
15041if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
15042 then exec_prefix="";
15043fi;
ad6254c5 15044
ad6254c5 15045################################################################################
ec6a6fbe
AK
15046{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15047$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 15048if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 15049 $as_echo_n "(cached) " >&6
ad6254c5
AK
15050else
15051 ac_check_lib_save_LIBS=$LIBS
15052LIBS="-ldl $LIBS"
15053cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15054/* confdefs.h. */
15055_ACEOF
15056cat confdefs.h >>conftest.$ac_ext
15057cat >>conftest.$ac_ext <<_ACEOF
15058/* end confdefs.h. */
15059
7a197a62
AK
15060/* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15063#ifdef __cplusplus
15064extern "C"
15065#endif
ad6254c5
AK
15066char dlopen ();
15067int
15068main ()
15069{
7a197a62 15070return dlopen ();
ad6254c5
AK
15071 ;
15072 return 0;
15073}
15074_ACEOF
15075rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15076if { (ac_try="$ac_link"
15077case "(($ac_try" in
15078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079 *) ac_try_echo=$ac_try;;
15080esac
ec6a6fbe
AK
15081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15082$as_echo "$ac_try_echo") >&5
7a197a62 15083 (eval "$ac_link") 2>conftest.er1
ad6254c5 15084 ac_status=$?
8a2fc586
AK
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
ec6a6fbe 15088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15089 (exit $ac_status); } && {
15090 test -z "$ac_c_werror_flag" ||
15091 test ! -s conftest.err
ec6a6fbe
AK
15092 } && test -s conftest$ac_exeext && {
15093 test "$cross_compiling" = yes ||
15094 $as_test_x conftest$ac_exeext
15095 }; then
ad6254c5
AK
15096 ac_cv_lib_dl_dlopen=yes
15097else
ec6a6fbe 15098 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15099sed 's/^/| /' conftest.$ac_ext >&5
15100
7a197a62 15101 ac_cv_lib_dl_dlopen=no
ad6254c5 15102fi
7a197a62 15103
ec6a6fbe 15104rm -rf conftest.dSYM
25fbec5b 15105rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15106 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15107LIBS=$ac_check_lib_save_LIBS
15108fi
ec6a6fbe
AK
15109{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15110$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15111if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 15112
72b2cb61
AK
15113
15114cat >>confdefs.h <<\_ACEOF
15115#define HAVE_LIBDL 1
15116_ACEOF
15117
19a2c6e0
ZK
15118 DL_LIBS="-ldl"
15119 HAVE_LIBDL=yes
ad6254c5 15120else
19a2c6e0
ZK
15121
15122 DL_LIBS=
ad6254c5
AK
15123 HAVE_LIBDL=no
15124fi
15125
19a2c6e0 15126
ad6254c5
AK
15127################################################################################
15128if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
15129 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
15130 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 15131 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 15132" >&5
ec6a6fbe 15133$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
15134" >&2;}
15135 { (exit 1); exit 1; }; }
15136fi
15137
f30875db
ZK
15138################################################################################
15139if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
15140 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
15141$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
15142if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
15143 $as_echo_n "(cached) " >&6
15144else
15145 ac_check_lib_save_LIBS=$LIBS
15146LIBS="-lpthread $LIBS"
15147cat >conftest.$ac_ext <<_ACEOF
15148/* confdefs.h. */
15149_ACEOF
15150cat confdefs.h >>conftest.$ac_ext
15151cat >>conftest.$ac_ext <<_ACEOF
15152/* end confdefs.h. */
15153
15154/* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
15157#ifdef __cplusplus
15158extern "C"
15159#endif
15160char pthread_mutex_lock ();
15161int
15162main ()
15163{
15164return pthread_mutex_lock ();
15165 ;
15166 return 0;
15167}
15168_ACEOF
15169rm -f conftest.$ac_objext conftest$ac_exeext
15170if { (ac_try="$ac_link"
15171case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174esac
15175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15176$as_echo "$ac_try_echo") >&5
15177 (eval "$ac_link") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest$ac_exeext && {
15187 test "$cross_compiling" = yes ||
15188 $as_test_x conftest$ac_exeext
15189 }; then
15190 ac_cv_lib_pthread_pthread_mutex_lock=yes
15191else
15192 $as_echo "$as_me: failed program was:" >&5
15193sed 's/^/| /' conftest.$ac_ext >&5
15194
15195 ac_cv_lib_pthread_pthread_mutex_lock=no
15196fi
15197
15198rm -rf conftest.dSYM
15199rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15200 conftest$ac_exeext conftest.$ac_ext
15201LIBS=$ac_check_lib_save_LIBS
15202fi
15203{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15204$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15205if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15206 PTHREAD_LIBS="-lpthread"
15207else
15208 hard_bailout
15209fi
15210
15211fi
15212
d0191583 15213################################################################################
ec6a6fbe
AK
15214{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15215$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
15216# Check whether --enable-selinux was given.
15217if test "${enable_selinux+set}" = set; then
15218 enableval=$enable_selinux; SELINUX=$enableval
15219fi
15220
ec6a6fbe
AK
15221{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15222$as_echo "$SELINUX" >&6; }
d0191583 15223
ad6254c5
AK
15224################################################################################
15225if test x$SELINUX = xyes; then
ec6a6fbe
AK
15226 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15227$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 15228if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 15229 $as_echo_n "(cached) " >&6
8a2fc586
AK
15230else
15231 ac_check_lib_save_LIBS=$LIBS
15232LIBS="-lsepol $LIBS"
15233cat >conftest.$ac_ext <<_ACEOF
15234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
15239
7a197a62
AK
15240/* Override any GCC internal prototype to avoid an error.
15241 Use char because int might match the return type of a GCC
15242 builtin and then its argument prototype would still apply. */
8a2fc586
AK
15243#ifdef __cplusplus
15244extern "C"
15245#endif
8a2fc586
AK
15246char sepol_check_context ();
15247int
15248main ()
15249{
7a197a62 15250return sepol_check_context ();
8a2fc586
AK
15251 ;
15252 return 0;
15253}
15254_ACEOF
15255rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15256if { (ac_try="$ac_link"
15257case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260esac
ec6a6fbe
AK
15261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15262$as_echo "$ac_try_echo") >&5
7a197a62 15263 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
15264 ac_status=$?
15265 grep -v '^ *+' conftest.er1 >conftest.err
15266 rm -f conftest.er1
15267 cat conftest.err >&5
ec6a6fbe 15268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15269 (exit $ac_status); } && {
15270 test -z "$ac_c_werror_flag" ||
15271 test ! -s conftest.err
ec6a6fbe
AK
15272 } && test -s conftest$ac_exeext && {
15273 test "$cross_compiling" = yes ||
15274 $as_test_x conftest$ac_exeext
15275 }; then
8a2fc586
AK
15276 ac_cv_lib_sepol_sepol_check_context=yes
15277else
ec6a6fbe 15278 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
7a197a62 15281 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 15282fi
7a197a62 15283
ec6a6fbe 15284rm -rf conftest.dSYM
25fbec5b 15285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
15286 conftest$ac_exeext conftest.$ac_ext
15287LIBS=$ac_check_lib_save_LIBS
15288fi
ec6a6fbe
AK
15289{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15290$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15291if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 15292
d0191583
JM
15293
15294cat >>confdefs.h <<\_ACEOF
15295#define HAVE_SEPOL 1
15296_ACEOF
15297
f8f6ec92
ZK
15298 SELINUX_LIBS="-lsepol"
15299fi
15300
8a2fc586 15301
ec6a6fbe
AK
15302 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15303$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 15304if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 15305 $as_echo_n "(cached) " >&6
ad6254c5
AK
15306else
15307 ac_check_lib_save_LIBS=$LIBS
15308LIBS="-lselinux $LIBS"
15309cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315
7a197a62
AK
15316/* Override any GCC internal prototype to avoid an error.
15317 Use char because int might match the return type of a GCC
15318 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15319#ifdef __cplusplus
15320extern "C"
15321#endif
ad6254c5
AK
15322char is_selinux_enabled ();
15323int
15324main ()
15325{
7a197a62 15326return is_selinux_enabled ();
ad6254c5
AK
15327 ;
15328 return 0;
15329}
15330_ACEOF
15331rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15332if { (ac_try="$ac_link"
15333case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
ec6a6fbe
AK
15337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15338$as_echo "$ac_try_echo") >&5
7a197a62 15339 (eval "$ac_link") 2>conftest.er1
ad6254c5 15340 ac_status=$?
8a2fc586
AK
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
ec6a6fbe 15344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
ec6a6fbe
AK
15348 } && test -s conftest$ac_exeext && {
15349 test "$cross_compiling" = yes ||
15350 $as_test_x conftest$ac_exeext
15351 }; then
ad6254c5
AK
15352 ac_cv_lib_selinux_is_selinux_enabled=yes
15353else
ec6a6fbe 15354 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15355sed 's/^/| /' conftest.$ac_ext >&5
15356
7a197a62 15357 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15358fi
7a197a62 15359
ec6a6fbe 15360rm -rf conftest.dSYM
25fbec5b 15361rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15362 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15363LIBS=$ac_check_lib_save_LIBS
15364fi
ec6a6fbe
AK
15365{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15366$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15367if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15368
72b2cb61 15369
f8f6ec92
ZK
15370for ac_header in selinux/selinux.h
15371do
15372as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15373if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15375$as_echo_n "checking for $ac_header... " >&6; }
15376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15377 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15378fi
15379ac_res=`eval 'as_val=${'$as_ac_Header'}
15380 $as_echo "$as_val"'`
15381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15382$as_echo "$ac_res" >&6; }
66e941e8 15383else
f8f6ec92
ZK
15384 # Is the header compilable?
15385{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15386$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15387cat >conftest.$ac_ext <<_ACEOF
15388/* confdefs.h. */
15389_ACEOF
15390cat confdefs.h >>conftest.$ac_ext
15391cat >>conftest.$ac_ext <<_ACEOF
15392/* end confdefs.h. */
f8f6ec92
ZK
15393$ac_includes_default
15394#include <$ac_header>
66e941e8 15395_ACEOF
f8f6ec92
ZK
15396rm -f conftest.$ac_objext
15397if { (ac_try="$ac_compile"
66e941e8
JM
15398case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
ec6a6fbe
AK
15402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15403$as_echo "$ac_try_echo") >&5
f8f6ec92 15404 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15405 ac_status=$?
15406 grep -v '^ *+' conftest.er1 >conftest.err
15407 rm -f conftest.er1
15408 cat conftest.err >&5
ec6a6fbe 15409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
f8f6ec92
ZK
15413 } && test -s conftest.$ac_objext; then
15414 ac_header_compiler=yes
15415else
15416 $as_echo "$as_me: failed program was:" >&5
15417sed 's/^/| /' conftest.$ac_ext >&5
15418
15419 ac_header_compiler=no
15420fi
15421
15422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15424$as_echo "$ac_header_compiler" >&6; }
15425
15426# Is the header present?
15427{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15428$as_echo_n "checking $ac_header presence... " >&6; }
15429cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
15435#include <$ac_header>
15436_ACEOF
15437if { (ac_try="$ac_cpp conftest.$ac_ext"
15438case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441esac
15442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15443$as_echo "$ac_try_echo") >&5
15444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } >/dev/null && {
15451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15452 test ! -s conftest.err
ec6a6fbe 15453 }; then
f8f6ec92 15454 ac_header_preproc=yes
66e941e8 15455else
ec6a6fbe 15456 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15457sed 's/^/| /' conftest.$ac_ext >&5
15458
f8f6ec92
ZK
15459 ac_header_preproc=no
15460fi
15461
15462rm -f conftest.err conftest.$ac_ext
15463{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15464$as_echo "$ac_header_preproc" >&6; }
15465
15466# So? What about this header?
15467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15468 yes:no: )
15469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15470$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15472$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15473 ac_header_preproc=yes
15474 ;;
15475 no:yes:* )
15476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15477$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15479$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15481$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15483$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15485$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15487$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15488
f8f6ec92
ZK
15489 ;;
15490esac
15491{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15492$as_echo_n "checking for $ac_header... " >&6; }
15493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15494 $as_echo_n "(cached) " >&6
15495else
15496 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15497fi
f8f6ec92
ZK
15498ac_res=`eval 'as_val=${'$as_ac_Header'}
15499 $as_echo "$as_val"'`
15500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15501$as_echo "$ac_res" >&6; }
66e941e8 15502
66e941e8 15503fi
f8f6ec92
ZK
15504as_val=`eval 'as_val=${'$as_ac_Header'}
15505 $as_echo "$as_val"'`
15506 if test "x$as_val" = x""yes; then
15507 cat >>confdefs.h <<_ACEOF
15508#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509_ACEOF
15510
66e941e8 15511else
f8f6ec92 15512 hard_bailout
66e941e8 15513fi
f8f6ec92
ZK
15514
15515done
15516
15517
15518cat >>confdefs.h <<\_ACEOF
15519#define HAVE_SELINUX 1
15520_ACEOF
15521
15522 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15523 SELINUX_PC="libselinux"
f8f6ec92
ZK
15524 HAVE_SELINUX=yes
15525else
15526
15527 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15528$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15529 SELINUX_LIBS=
f7f0854e 15530 SELINUX_PC=
f8f6ec92 15531 HAVE_SELINUX=no
66e941e8
JM
15532fi
15533
ad6254c5
AK
15534fi
15535
8b1a3214
AK
15536################################################################################
15537if test x$REALTIME = xyes; then
ec6a6fbe
AK
15538 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15539$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15540if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15541 $as_echo_n "(cached) " >&6
8b1a3214
AK
15542else
15543 ac_check_lib_save_LIBS=$LIBS
15544LIBS="-lrt $LIBS"
15545cat >conftest.$ac_ext <<_ACEOF
15546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
15550/* end confdefs.h. */
15551
7a197a62
AK
15552/* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15555#ifdef __cplusplus
15556extern "C"
15557#endif
8b1a3214
AK
15558char clock_gettime ();
15559int
15560main ()
15561{
7a197a62 15562return clock_gettime ();
8b1a3214
AK
15563 ;
15564 return 0;
15565}
15566_ACEOF
15567rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15568if { (ac_try="$ac_link"
15569case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572esac
ec6a6fbe
AK
15573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15574$as_echo "$ac_try_echo") >&5
7a197a62 15575 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
ec6a6fbe 15580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15581 (exit $ac_status); } && {
15582 test -z "$ac_c_werror_flag" ||
15583 test ! -s conftest.err
ec6a6fbe
AK
15584 } && test -s conftest$ac_exeext && {
15585 test "$cross_compiling" = yes ||
15586 $as_test_x conftest$ac_exeext
15587 }; then
8b1a3214
AK
15588 ac_cv_lib_rt_clock_gettime=yes
15589else
ec6a6fbe 15590 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15591sed 's/^/| /' conftest.$ac_ext >&5
15592
7a197a62 15593 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15594fi
7a197a62 15595
ec6a6fbe 15596rm -rf conftest.dSYM
25fbec5b 15597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15598 conftest$ac_exeext conftest.$ac_ext
15599LIBS=$ac_check_lib_save_LIBS
15600fi
ec6a6fbe
AK
15601{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15602$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15603if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15604 HAVE_REALTIME=yes
15605else
15606 HAVE_REALTIME=no
15607fi
15608
8b1a3214
AK
15609
15610 if test x$HAVE_REALTIME = xyes; then
15611
15612cat >>confdefs.h <<\_ACEOF
15613#define HAVE_REALTIME 1
15614_ACEOF
15615
15616 LIBS="-lrt $LIBS"
15617 else
ec6a6fbe
AK
15618 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15619$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15620 fi
15621fi
15622
ad6254c5
AK
15623################################################################################
15624
15625for ac_header in getopt.h
15626do
ec6a6fbe 15627as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15629 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15630$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15632 $as_echo_n "(cached) " >&6
ad6254c5 15633fi
ec6a6fbe
AK
15634ac_res=`eval 'as_val=${'$as_ac_Header'}
15635 $as_echo "$as_val"'`
15636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15637$as_echo "$ac_res" >&6; }
ad6254c5
AK
15638else
15639 # Is the header compilable?
ec6a6fbe
AK
15640{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15641$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15642cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15643/* confdefs.h. */
15644_ACEOF
15645cat confdefs.h >>conftest.$ac_ext
15646cat >>conftest.$ac_ext <<_ACEOF
15647/* end confdefs.h. */
15648$ac_includes_default
15649#include <$ac_header>
15650_ACEOF
15651rm -f conftest.$ac_objext
7a197a62
AK
15652if { (ac_try="$ac_compile"
15653case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656esac
ec6a6fbe
AK
15657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15658$as_echo "$ac_try_echo") >&5
7a197a62 15659 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15660 ac_status=$?
8a2fc586
AK
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
ec6a6fbe 15664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15669 ac_header_compiler=yes
15670else
ec6a6fbe 15671 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15672sed 's/^/| /' conftest.$ac_ext >&5
15673
7a197a62 15674 ac_header_compiler=no
ad6254c5 15675fi
7a197a62
AK
15676
15677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15678{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15679$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15680
15681# Is the header present?
ec6a6fbe
AK
15682{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15683$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15684cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690#include <$ac_header>
15691_ACEOF
7a197a62
AK
15692if { (ac_try="$ac_cpp conftest.$ac_ext"
15693case "(($ac_try" in
15694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695 *) ac_try_echo=$ac_try;;
15696esac
ec6a6fbe
AK
15697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15698$as_echo "$ac_try_echo") >&5
7a197a62 15699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15700 ac_status=$?
15701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
ec6a6fbe 15704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15705 (exit $ac_status); } >/dev/null && {
15706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15707 test ! -s conftest.err
15708 }; then
ad6254c5
AK
15709 ac_header_preproc=yes
15710else
ec6a6fbe 15711 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15712sed 's/^/| /' conftest.$ac_ext >&5
15713
15714 ac_header_preproc=no
15715fi
7a197a62 15716
ad6254c5 15717rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15718{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15719$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15720
15721# So? What about this header?
8a2fc586
AK
15722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15723 yes:no: )
ec6a6fbe
AK
15724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15725$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15727$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15728 ac_header_preproc=yes
ad6254c5 15729 ;;
8a2fc586 15730 no:yes:* )
ec6a6fbe
AK
15731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15732$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15734$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15736$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15738$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15740$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15742$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15743
ad6254c5
AK
15744 ;;
15745esac
ec6a6fbe
AK
15746{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15747$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15749 $as_echo_n "(cached) " >&6
ad6254c5 15750else
8a2fc586 15751 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15752fi
ec6a6fbe
AK
15753ac_res=`eval 'as_val=${'$as_ac_Header'}
15754 $as_echo "$as_val"'`
15755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15756$as_echo "$ac_res" >&6; }
ad6254c5
AK
15757
15758fi
ec6a6fbe
AK
15759as_val=`eval 'as_val=${'$as_ac_Header'}
15760 $as_echo "$as_val"'`
15761 if test "x$as_val" = x""yes; then
ad6254c5 15762 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15763#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15764_ACEOF
72b2cb61
AK
15765
15766cat >>confdefs.h <<\_ACEOF
15767#define HAVE_GETOPTLONG 1
15768_ACEOF
15769
ad6254c5
AK
15770fi
15771
15772done
15773
15774
15775################################################################################
06e459df 15776if test x$READLINE != xno; then
539f4a77
ZK
15777 lvm_saved_libs=$LIBS
15778 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15779$as_echo_n "checking for library containing tgetent... " >&6; }
15780if test "${ac_cv_search_tgetent+set}" = set; then
15781 $as_echo_n "(cached) " >&6
15782else
15783 ac_func_search_save_LIBS=$LIBS
15784cat >conftest.$ac_ext <<_ACEOF
15785/* confdefs.h. */
15786_ACEOF
15787cat confdefs.h >>conftest.$ac_ext
15788cat >>conftest.$ac_ext <<_ACEOF
15789/* end confdefs.h. */
bc1024f8 15790
539f4a77
ZK
15791/* Override any GCC internal prototype to avoid an error.
15792 Use char because int might match the return type of a GCC
15793 builtin and then its argument prototype would still apply. */
15794#ifdef __cplusplus
15795extern "C"
15796#endif
15797char tgetent ();
15798int
15799main ()
15800{
15801return tgetent ();
15802 ;
15803 return 0;
15804}
15805_ACEOF
15806for ac_lib in '' tinfo ncurses curses termcap termlib; do
15807 if test -z "$ac_lib"; then
15808 ac_res="none required"
15809 else
15810 ac_res=-l$ac_lib
15811 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15812 fi
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814if { (ac_try="$ac_link"
15815case "(($ac_try" in
15816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15817 *) ac_try_echo=$ac_try;;
15818esac
15819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15820$as_echo "$ac_try_echo") >&5
15821 (eval "$ac_link") 2>conftest.er1
15822 ac_status=$?
15823 grep -v '^ *+' conftest.er1 >conftest.err
15824 rm -f conftest.er1
15825 cat conftest.err >&5
15826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); } && {
15828 test -z "$ac_c_werror_flag" ||
15829 test ! -s conftest.err
15830 } && test -s conftest$ac_exeext && {
15831 test "$cross_compiling" = yes ||
15832 $as_test_x conftest$ac_exeext
15833 }; then
15834 ac_cv_search_tgetent=$ac_res
15835else
15836 $as_echo "$as_me: failed program was:" >&5
15837sed 's/^/| /' conftest.$ac_ext >&5
15838
15839
15840fi
15841
15842rm -rf conftest.dSYM
15843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15844 conftest$ac_exeext
15845 if test "${ac_cv_search_tgetent+set}" = set; then
15846 break
15847fi
15848done
15849if test "${ac_cv_search_tgetent+set}" = set; then
15850 :
15851else
15852 ac_cv_search_tgetent=no
15853fi
15854rm conftest.$ac_ext
15855LIBS=$ac_func_search_save_LIBS
15856fi
15857{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15858$as_echo "$ac_cv_search_tgetent" >&6; }
15859ac_res=$ac_cv_search_tgetent
15860if test "$ac_res" != no; then
15861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15862 READLINE_LIBS=$ac_cv_search_tgetent
15863else
15864
15865 if test "$READLINE" = yes; then
15866 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15867--enable-readline option (which is enabled by default). Either disable readline
15868support with --disable-readline or download and install termcap from:
15869 ftp.gnu.org/gnu/termcap
15870Note: if you are using precompiled packages you will also need the development
15871 package as well (which may be called termcap-devel or something similar).
15872Note: (n)curses also seems to work as a substitute for termcap. This was
15873 not found either - but you could try installing that as well." >&5
15874$as_echo "$as_me: error: termcap could not be found which is required for the
15875--enable-readline option (which is enabled by default). Either disable readline
15876support with --disable-readline or download and install termcap from:
15877 ftp.gnu.org/gnu/termcap
15878Note: if you are using precompiled packages you will also need the development
15879 package as well (which may be called termcap-devel or something similar).
15880Note: (n)curses also seems to work as a substitute for termcap. This was
15881 not found either - but you could try installing that as well." >&2;}
15882 { (exit 1); exit 1; }; }
15883 fi
15884fi
15885
15886 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15887$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15888if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15889 $as_echo_n "(cached) " >&6
ad6254c5
AK
15890else
15891 ac_check_lib_save_LIBS=$LIBS
15892LIBS="-lreadline $LIBS"
15893cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15894/* confdefs.h. */
15895_ACEOF
15896cat confdefs.h >>conftest.$ac_ext
15897cat >>conftest.$ac_ext <<_ACEOF
15898/* end confdefs.h. */
15899
7a197a62
AK
15900/* Override any GCC internal prototype to avoid an error.
15901 Use char because int might match the return type of a GCC
15902 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15903#ifdef __cplusplus
15904extern "C"
15905#endif
ad6254c5
AK
15906char readline ();
15907int
15908main ()
15909{
7a197a62 15910return readline ();
ad6254c5
AK
15911 ;
15912 return 0;
15913}
15914_ACEOF
15915rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15916if { (ac_try="$ac_link"
15917case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15920esac
ec6a6fbe
AK
15921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15922$as_echo "$ac_try_echo") >&5
7a197a62 15923 (eval "$ac_link") 2>conftest.er1
ad6254c5 15924 ac_status=$?
8a2fc586
AK
15925 grep -v '^ *+' conftest.er1 >conftest.err
15926 rm -f conftest.er1
15927 cat conftest.err >&5
ec6a6fbe 15928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15929 (exit $ac_status); } && {
15930 test -z "$ac_c_werror_flag" ||
15931 test ! -s conftest.err
ec6a6fbe
AK
15932 } && test -s conftest$ac_exeext && {
15933 test "$cross_compiling" = yes ||
15934 $as_test_x conftest$ac_exeext
15935 }; then
ad6254c5
AK
15936 ac_cv_lib_readline_readline=yes
15937else
ec6a6fbe 15938 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15939sed 's/^/| /' conftest.$ac_ext >&5
15940
7a197a62 15941 ac_cv_lib_readline_readline=no
ad6254c5 15942fi
7a197a62 15943
ec6a6fbe 15944rm -rf conftest.dSYM
25fbec5b 15945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15946 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15947LIBS=$ac_check_lib_save_LIBS
15948fi
ec6a6fbe
AK
15949{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15950$as_echo "$ac_cv_lib_readline_readline" >&6; }
15951if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15952
15953
15954cat >>confdefs.h <<\_ACEOF
15955#define READLINE_SUPPORT 1
bc1024f8
JM
15956_ACEOF
15957
539f4a77
ZK
15958 LIBS=$lvm_saved_libs
15959 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15960$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15961if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15962 $as_echo_n "(cached) " >&6
15963else
15964 ac_check_lib_save_LIBS=$LIBS
15965LIBS="-lreadline $LIBS"
15966cat >conftest.$ac_ext <<_ACEOF
15967/* confdefs.h. */
15968_ACEOF
15969cat confdefs.h >>conftest.$ac_ext
15970cat >>conftest.$ac_ext <<_ACEOF
15971/* end confdefs.h. */
bc1024f8 15972
539f4a77
ZK
15973/* Override any GCC internal prototype to avoid an error.
15974 Use char because int might match the return type of a GCC
15975 builtin and then its argument prototype would still apply. */
15976#ifdef __cplusplus
15977extern "C"
15978#endif
15979char rl_line_buffer ();
15980int
15981main ()
15982{
15983return rl_line_buffer ();
15984 ;
15985 return 0;
15986}
15987_ACEOF
15988rm -f conftest.$ac_objext conftest$ac_exeext
15989if { (ac_try="$ac_link"
15990case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15993esac
15994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15995$as_echo "$ac_try_echo") >&5
15996 (eval "$ac_link") 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } && {
16003 test -z "$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16005 } && test -s conftest$ac_exeext && {
16006 test "$cross_compiling" = yes ||
16007 $as_test_x conftest$ac_exeext
16008 }; then
16009 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 16010else
539f4a77
ZK
16011 $as_echo "$as_me: failed program was:" >&5
16012sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
16015fi
16016
539f4a77
ZK
16017rm -rf conftest.dSYM
16018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16019 conftest$ac_exeext conftest.$ac_ext
16020LIBS=$ac_check_lib_save_LIBS
16021fi
16022{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
16023$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
16024if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
16025 READLINE_LIBS="-lreadline"
16026else
16027
16028 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
16029$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
16030 READLINE_LIBS="-lreadline $READLINE_LIBS"
16031
16032fi
16033
16034else
16035
16036 READLINE_LIBS=
16037 if test "$READLINE" = yes; then
16038 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
16039--enable-readline option (which is enabled by default). Either disable readline
16040support with --disable-readline or download and install readline from:
16041 ftp.gnu.org/gnu/readline
16042Note: if you are using precompiled packages you will also need the development
539f4a77 16043package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 16044$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
16045--enable-readline option (which is enabled by default). Either disable readline
16046support with --disable-readline or download and install readline from:
16047 ftp.gnu.org/gnu/readline
16048Note: if you are using precompiled packages you will also need the development
539f4a77 16049package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 16050 { (exit 1); exit 1; }; }
539f4a77
ZK
16051 fi
16052fi
16053
16054 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
16055
16056for ac_func in rl_completion_matches
16057do
ec6a6fbe
AK
16058as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16059{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16060$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 16061if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16062 $as_echo_n "(cached) " >&6
ad6254c5
AK
16063else
16064 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16065/* confdefs.h. */
16066_ACEOF
16067cat confdefs.h >>conftest.$ac_ext
16068cat >>conftest.$ac_ext <<_ACEOF
16069/* end confdefs.h. */
bc1024f8 16070/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 16071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 16072#define $ac_func innocuous_$ac_func
8a2fc586 16073
ad6254c5 16074/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 16075 which can conflict with char $ac_func (); below.
ad6254c5
AK
16076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16077 <limits.h> exists even on freestanding compilers. */
8a2fc586 16078
ad6254c5
AK
16079#ifdef __STDC__
16080# include <limits.h>
16081#else
16082# include <assert.h>
16083#endif
8a2fc586 16084
bc1024f8 16085#undef $ac_func
8a2fc586 16086
7a197a62
AK
16087/* Override any GCC internal prototype to avoid an error.
16088 Use char because int might match the return type of a GCC
16089 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16090#ifdef __cplusplus
16091extern "C"
ad6254c5 16092#endif
bc1024f8 16093char $ac_func ();
ad6254c5
AK
16094/* The GNU C library defines this for functions which it implements
16095 to always fail with ENOSYS. Some functions are actually named
16096 something starting with __ and the normal name is an alias. */
bc1024f8 16097#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 16098choke me
ad6254c5
AK
16099#endif
16100
16101int
16102main ()
16103{
bc1024f8 16104return $ac_func ();
ad6254c5
AK
16105 ;
16106 return 0;
16107}
16108_ACEOF
16109rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16110if { (ac_try="$ac_link"
16111case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114esac
ec6a6fbe
AK
16115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16116$as_echo "$ac_try_echo") >&5
7a197a62 16117 (eval "$ac_link") 2>conftest.er1
ad6254c5 16118 ac_status=$?
8a2fc586
AK
16119 grep -v '^ *+' conftest.er1 >conftest.err
16120 rm -f conftest.er1
16121 cat conftest.err >&5
ec6a6fbe 16122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16123 (exit $ac_status); } && {
16124 test -z "$ac_c_werror_flag" ||
16125 test ! -s conftest.err
ec6a6fbe
AK
16126 } && test -s conftest$ac_exeext && {
16127 test "$cross_compiling" = yes ||
16128 $as_test_x conftest$ac_exeext
16129 }; then
bc1024f8 16130 eval "$as_ac_var=yes"
ad6254c5 16131else
ec6a6fbe 16132 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16133sed 's/^/| /' conftest.$ac_ext >&5
16134
bc1024f8 16135 eval "$as_ac_var=no"
ad6254c5 16136fi
7a197a62 16137
ec6a6fbe 16138rm -rf conftest.dSYM
25fbec5b 16139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16140 conftest$ac_exeext conftest.$ac_ext
ad6254c5 16141fi
ec6a6fbe
AK
16142ac_res=`eval 'as_val=${'$as_ac_var'}
16143 $as_echo "$as_val"'`
16144 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16145$as_echo "$ac_res" >&6; }
16146as_val=`eval 'as_val=${'$as_ac_var'}
16147 $as_echo "$as_val"'`
16148 if test "x$as_val" = x""yes; then
bc1024f8 16149 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16150#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
16151_ACEOF
16152
16153fi
bc1024f8 16154done
ad6254c5 16155
539f4a77 16156 LIBS=$lvm_saved_libs
ad6254c5
AK
16157fi
16158
16159################################################################################
ec6a6fbe
AK
16160{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
16161$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 16162# Check whether --enable-nls was given.
ad6254c5 16163if test "${enable_nls+set}" = set; then
7a197a62 16164 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
16165else
16166 INTL=no
7a197a62
AK
16167fi
16168
ec6a6fbe
AK
16169{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
16170$as_echo "$INTL" >&6; }
ad6254c5
AK
16171
16172if test x$INTL = xyes; then
93bd259b 16173# FIXME - Move this - can be device-mapper too
ad6254c5
AK
16174 INTL_PACKAGE="lvm2"
16175 # Extract the first word of "msgfmt", so it can be a program name with args.
16176set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
16177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16178$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 16179if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 16180 $as_echo_n "(cached) " >&6
ad6254c5
AK
16181else
16182 case $MSGFMT in
16183 [\\/]* | ?:[\\/]*)
16184 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16185 ;;
16186 *)
16187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16188for as_dir in $PATH
16189do
16190 IFS=$as_save_IFS
16191 test -z "$as_dir" && as_dir=.
16192 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 16193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 16194 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 16195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
16196 break 2
16197 fi
16198done
16199done
7a197a62 16200IFS=$as_save_IFS
ad6254c5
AK
16201
16202 ;;
16203esac
16204fi
16205MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 16206if test -n "$MSGFMT"; then
ec6a6fbe
AK
16207 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16208$as_echo "$MSGFMT" >&6; }
ad6254c5 16209else
ec6a6fbe
AK
16210 { $as_echo "$as_me:$LINENO: result: no" >&5
16211$as_echo "no" >&6; }
ad6254c5
AK
16212fi
16213
7a197a62 16214
ad6254c5 16215 if [ "x$MSGFMT" == x ];
ec6a6fbe 16216 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 16217 " >&5
ec6a6fbe 16218$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
16219 " >&2;}
16220 { (exit 1); exit 1; }; }
16221 fi;
16222
16223
7a197a62 16224# Check whether --with-localedir was given.
ad6254c5 16225if test "${with_localedir+set}" = set; then
71082be4 16226 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 16227else
71082be4 16228 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
16229fi
16230
ad6254c5
AK
16231fi
16232
16233################################################################################
16234
7a197a62 16235# Check whether --with-confdir was given.
ad6254c5 16236if test "${with_confdir+set}" = set; then
71082be4 16237 withval=$with_confdir; CONFDIR=$withval
ad6254c5 16238else
71082be4 16239 CONFDIR="/etc"
7a197a62
AK
16240fi
16241
ad6254c5
AK
16242
16243
7a197a62 16244# Check whether --with-staticdir was given.
ad6254c5 16245if test "${with_staticdir+set}" = set; then
71082be4 16246 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 16247else
71082be4 16248 STATICDIR='${exec_prefix}/sbin'
7a197a62 16249fi
ad6254c5 16250
33f732c5 16251
7a197a62 16252
68f2de6d
AK
16253# Check whether --with-usrlibdir was given.
16254if test "${with_usrlibdir+set}" = set; then
71082be4 16255 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 16256else
71082be4 16257 usrlibdir='${prefix}/lib'
68f2de6d
AK
16258fi
16259
16260
16261
16262# Check whether --with-usrsbindir was given.
16263if test "${with_usrsbindir+set}" = set; then
71082be4 16264 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 16265else
71082be4 16266 usrsbindir='${prefix}/sbin'
68f2de6d
AK
16267fi
16268
16269
a5f46f6a
AK
16270################################################################################
16271
16272# Check whether --with-udev_prefix was given.
16273if test "${with_udev_prefix+set}" = set; then
71082be4 16274 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 16275else
71082be4 16276 udev_prefix='${exec_prefix}'
a5f46f6a
AK
16277fi
16278
16279
78ce7acc
AK
16280
16281# Check whether --with-udevdir was given.
16282if test "${with_udevdir+set}" = set; then
71082be4 16283 withval=$with_udevdir; udevdir=$withval
78ce7acc 16284else
71082be4 16285 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
16286fi
16287
a5f46f6a 16288
ad6254c5
AK
16289################################################################################
16290if test x$READLINE = xyes; then
16291
16292
16293for ac_header in readline/readline.h readline/history.h
16294do
ec6a6fbe 16295as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16296if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16297 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16298$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16300 $as_echo_n "(cached) " >&6
ad6254c5 16301fi
ec6a6fbe
AK
16302ac_res=`eval 'as_val=${'$as_ac_Header'}
16303 $as_echo "$as_val"'`
16304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16305$as_echo "$ac_res" >&6; }
ad6254c5
AK
16306else
16307 # Is the header compilable?
ec6a6fbe
AK
16308{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16309$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16310cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h. */
16316$ac_includes_default
16317#include <$ac_header>
16318_ACEOF
16319rm -f conftest.$ac_objext
7a197a62
AK
16320if { (ac_try="$ac_compile"
16321case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324esac
ec6a6fbe
AK
16325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16326$as_echo "$ac_try_echo") >&5
7a197a62 16327 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16328 ac_status=$?
8a2fc586
AK
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
ec6a6fbe 16332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16333 (exit $ac_status); } && {
16334 test -z "$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16337 ac_header_compiler=yes
16338else
ec6a6fbe 16339 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16340sed 's/^/| /' conftest.$ac_ext >&5
16341
7a197a62 16342 ac_header_compiler=no
ad6254c5 16343fi
7a197a62
AK
16344
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16346{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16347$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16348
16349# Is the header present?
ec6a6fbe
AK
16350{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16351$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16352cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16353/* confdefs.h. */
16354_ACEOF
16355cat confdefs.h >>conftest.$ac_ext
16356cat >>conftest.$ac_ext <<_ACEOF
16357/* end confdefs.h. */
16358#include <$ac_header>
16359_ACEOF
7a197a62
AK
16360if { (ac_try="$ac_cpp conftest.$ac_ext"
16361case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364esac
ec6a6fbe
AK
16365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16366$as_echo "$ac_try_echo") >&5
7a197a62 16367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16368 ac_status=$?
16369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
ec6a6fbe 16372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16373 (exit $ac_status); } >/dev/null && {
16374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16375 test ! -s conftest.err
16376 }; then
ad6254c5
AK
16377 ac_header_preproc=yes
16378else
ec6a6fbe 16379 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16380sed 's/^/| /' conftest.$ac_ext >&5
16381
16382 ac_header_preproc=no
16383fi
7a197a62 16384
ad6254c5 16385rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16386{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16387$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16388
16389# So? What about this header?
8a2fc586
AK
16390case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16391 yes:no: )
ec6a6fbe
AK
16392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16393$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16395$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16396 ac_header_preproc=yes
ad6254c5 16397 ;;
8a2fc586 16398 no:yes:* )
ec6a6fbe
AK
16399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16400$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16402$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16404$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16406$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16408$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16410$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16411
ad6254c5
AK
16412 ;;
16413esac
ec6a6fbe
AK
16414{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16415$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16417 $as_echo_n "(cached) " >&6
ad6254c5 16418else
8a2fc586 16419 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16420fi
ec6a6fbe
AK
16421ac_res=`eval 'as_val=${'$as_ac_Header'}
16422 $as_echo "$as_val"'`
16423 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16424$as_echo "$ac_res" >&6; }
ad6254c5
AK
16425
16426fi
ec6a6fbe
AK
16427as_val=`eval 'as_val=${'$as_ac_Header'}
16428 $as_echo "$as_val"'`
16429 if test "x$as_val" = x""yes; then
ad6254c5 16430 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16431#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16432_ACEOF
16433
16434else
ec6a6fbe
AK
16435 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16436$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16437 { (exit 1); exit 1; }; }
16438fi
16439
16440done
16441
16442fi
16443
5c7fc7c4 16444if test x$CLVMD != xnone; then
ad6254c5
AK
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455for 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
16456do
ec6a6fbe 16457as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16459 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16460$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16461if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16462 $as_echo_n "(cached) " >&6
ad6254c5 16463fi
ec6a6fbe
AK
16464ac_res=`eval 'as_val=${'$as_ac_Header'}
16465 $as_echo "$as_val"'`
16466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16467$as_echo "$ac_res" >&6; }
ad6254c5
AK
16468else
16469 # Is the header compilable?
ec6a6fbe
AK
16470{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16471$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16472cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16473/* confdefs.h. */
16474_ACEOF
16475cat confdefs.h >>conftest.$ac_ext
16476cat >>conftest.$ac_ext <<_ACEOF
16477/* end confdefs.h. */
16478$ac_includes_default
16479#include <$ac_header>
16480_ACEOF
16481rm -f conftest.$ac_objext
7a197a62
AK
16482if { (ac_try="$ac_compile"
16483case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16486esac
ec6a6fbe
AK
16487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16488$as_echo "$ac_try_echo") >&5
7a197a62 16489 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16490 ac_status=$?
8a2fc586
AK
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
ec6a6fbe 16494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16495 (exit $ac_status); } && {
16496 test -z "$ac_c_werror_flag" ||
16497 test ! -s conftest.err
16498 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16499 ac_header_compiler=yes
16500else
ec6a6fbe 16501 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16502sed 's/^/| /' conftest.$ac_ext >&5
16503
7a197a62 16504 ac_header_compiler=no
ad6254c5 16505fi
7a197a62
AK
16506
16507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16508{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16509$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16510
16511# Is the header present?
ec6a6fbe
AK
16512{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16513$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16514cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16515/* confdefs.h. */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h. */
16520#include <$ac_header>
16521_ACEOF
7a197a62
AK
16522if { (ac_try="$ac_cpp conftest.$ac_ext"
16523case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526esac
ec6a6fbe
AK
16527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16528$as_echo "$ac_try_echo") >&5
7a197a62 16529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16530 ac_status=$?
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
ec6a6fbe 16534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16535 (exit $ac_status); } >/dev/null && {
16536 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16537 test ! -s conftest.err
16538 }; then
ad6254c5
AK
16539 ac_header_preproc=yes
16540else
ec6a6fbe 16541 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16542sed 's/^/| /' conftest.$ac_ext >&5
16543
16544 ac_header_preproc=no
16545fi
7a197a62 16546
ad6254c5 16547rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16548{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16549$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16550
16551# So? What about this header?
8a2fc586
AK
16552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16553 yes:no: )
ec6a6fbe
AK
16554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16555$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16557$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16558 ac_header_preproc=yes
ad6254c5 16559 ;;
8a2fc586 16560 no:yes:* )
ec6a6fbe
AK
16561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16562$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16564$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16565 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16566$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16567 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16568$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16570$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16572$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16573
ad6254c5
AK
16574 ;;
16575esac
ec6a6fbe
AK
16576{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16577$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16579 $as_echo_n "(cached) " >&6
ad6254c5 16580else
8a2fc586 16581 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16582fi
ec6a6fbe
AK
16583ac_res=`eval 'as_val=${'$as_ac_Header'}
16584 $as_echo "$as_val"'`
16585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16586$as_echo "$ac_res" >&6; }
ad6254c5
AK
16587
16588fi
ec6a6fbe
AK
16589as_val=`eval 'as_val=${'$as_ac_Header'}
16590 $as_echo "$as_val"'`
16591 if test "x$as_val" = x""yes; then
ad6254c5 16592 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16593#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16594_ACEOF
16595
16596else
ec6a6fbe
AK
16597 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16598$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16599 { (exit 1); exit 1; }; }
795ca3e5
AK
16600fi
16601
ad6254c5
AK
16602done
16603
16604
795ca3e5 16605
8106cdd5 16606
ad6254c5
AK
16607
16608
16609for ac_func in dup2 getmntent memmove select socket
16610do
ec6a6fbe
AK
16611as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16612{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16613$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16614if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16615 $as_echo_n "(cached) " >&6
795ca3e5 16616else
ad6254c5 16617 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16618/* confdefs.h. */
16619_ACEOF
16620cat confdefs.h >>conftest.$ac_ext
16621cat >>conftest.$ac_ext <<_ACEOF
16622/* end confdefs.h. */
8a2fc586
AK
16623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16625#define $ac_func innocuous_$ac_func
16626
795ca3e5 16627/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16628 which can conflict with char $ac_func (); below.
16629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630 <limits.h> exists even on freestanding compilers. */
8a2fc586 16631
ad6254c5
AK
16632#ifdef __STDC__
16633# include <limits.h>
16634#else
16635# include <assert.h>
16636#endif
8a2fc586
AK
16637
16638#undef $ac_func
16639
7a197a62
AK
16640/* Override any GCC internal prototype to avoid an error.
16641 Use char because int might match the return type of a GCC
16642 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16643#ifdef __cplusplus
16644extern "C"
ad6254c5 16645#endif
ad6254c5 16646char $ac_func ();
795ca3e5
AK
16647/* The GNU C library defines this for functions which it implements
16648 to always fail with ENOSYS. Some functions are actually named
16649 something starting with __ and the normal name is an alias. */
7a197a62 16650#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16651choke me
795ca3e5
AK
16652#endif
16653
ad6254c5
AK
16654int
16655main ()
16656{
7a197a62 16657return $ac_func ();
ad6254c5
AK
16658 ;
16659 return 0;
16660}
16661_ACEOF
16662rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16663if { (ac_try="$ac_link"
16664case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667esac
ec6a6fbe
AK
16668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16669$as_echo "$ac_try_echo") >&5
7a197a62 16670 (eval "$ac_link") 2>conftest.er1
ad6254c5 16671 ac_status=$?
8a2fc586
AK
16672 grep -v '^ *+' conftest.er1 >conftest.err
16673 rm -f conftest.er1
16674 cat conftest.err >&5
ec6a6fbe 16675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16676 (exit $ac_status); } && {
16677 test -z "$ac_c_werror_flag" ||
16678 test ! -s conftest.err
ec6a6fbe
AK
16679 } && test -s conftest$ac_exeext && {
16680 test "$cross_compiling" = yes ||
16681 $as_test_x conftest$ac_exeext
16682 }; then
ad6254c5 16683 eval "$as_ac_var=yes"
795ca3e5 16684else
ec6a6fbe 16685 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16686sed 's/^/| /' conftest.$ac_ext >&5
16687
7a197a62 16688 eval "$as_ac_var=no"
80992638 16689fi
7a197a62 16690
ec6a6fbe 16691rm -rf conftest.dSYM
25fbec5b 16692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16693 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16694fi
ec6a6fbe
AK
16695ac_res=`eval 'as_val=${'$as_ac_var'}
16696 $as_echo "$as_val"'`
16697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16698$as_echo "$ac_res" >&6; }
16699as_val=`eval 'as_val=${'$as_ac_var'}
16700 $as_echo "$as_val"'`
16701 if test "x$as_val" = x""yes; then
ad6254c5 16702 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16704_ACEOF
80992638
AK
16705
16706else
ec6a6fbe
AK
16707 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16708$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16709 { (exit 1); exit 1; }; }
8106cdd5 16710fi
ad6254c5 16711done
795ca3e5 16712
25fbec5b
AK
16713 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16714# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16715{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16716$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16717if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16718 $as_echo_n "(cached) " >&6
25fbec5b
AK
16719else
16720 ac_func_search_save_LIBS=$LIBS
16721cat >conftest.$ac_ext <<_ACEOF
16722/* confdefs.h. */
16723_ACEOF
16724cat confdefs.h >>conftest.$ac_ext
16725cat >>conftest.$ac_ext <<_ACEOF
16726/* end confdefs.h. */
80992638 16727
7a197a62
AK
16728/* Override any GCC internal prototype to avoid an error.
16729 Use char because int might match the return type of a GCC
ad6254c5 16730 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16731#ifdef __cplusplus
16732extern "C"
16733#endif
25fbec5b 16734char getmntent ();
ad6254c5
AK
16735int
16736main ()
16737{
25fbec5b 16738return getmntent ();
ad6254c5
AK
16739 ;
16740 return 0;
16741}
16742_ACEOF
25fbec5b
AK
16743for ac_lib in '' sun seq gen; do
16744 if test -z "$ac_lib"; then
16745 ac_res="none required"
16746 else
16747 ac_res=-l$ac_lib
16748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16749 fi
16750 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16751if { (ac_try="$ac_link"
16752case "(($ac_try" in
16753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16754 *) ac_try_echo=$ac_try;;
16755esac
ec6a6fbe
AK
16756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16757$as_echo "$ac_try_echo") >&5
7a197a62 16758 (eval "$ac_link") 2>conftest.er1
ad6254c5 16759 ac_status=$?
8a2fc586
AK
16760 grep -v '^ *+' conftest.er1 >conftest.err
16761 rm -f conftest.er1
16762 cat conftest.err >&5
ec6a6fbe 16763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16764 (exit $ac_status); } && {
16765 test -z "$ac_c_werror_flag" ||
16766 test ! -s conftest.err
ec6a6fbe
AK
16767 } && test -s conftest$ac_exeext && {
16768 test "$cross_compiling" = yes ||
16769 $as_test_x conftest$ac_exeext
16770 }; then
25fbec5b 16771 ac_cv_search_getmntent=$ac_res
80992638 16772else
ec6a6fbe 16773 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16774sed 's/^/| /' conftest.$ac_ext >&5
16775
25fbec5b 16776
795ca3e5
AK
16777fi
16778
ec6a6fbe 16779rm -rf conftest.dSYM
25fbec5b
AK
16780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16781 conftest$ac_exeext
16782 if test "${ac_cv_search_getmntent+set}" = set; then
16783 break
795ca3e5 16784fi
25fbec5b
AK
16785done
16786if test "${ac_cv_search_getmntent+set}" = set; then
16787 :
16788else
16789 ac_cv_search_getmntent=no
16790fi
16791rm conftest.$ac_ext
16792LIBS=$ac_func_search_save_LIBS
16793fi
ec6a6fbe
AK
16794{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16795$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16796ac_res=$ac_cv_search_getmntent
16797if test "$ac_res" != no; then
16798 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16799 ac_cv_func_getmntent=yes
16800
16801cat >>confdefs.h <<\_ACEOF
9c961554 16802#define HAVE_GETMNTENT 1
ad6254c5 16803_ACEOF
795ca3e5 16804
25fbec5b
AK
16805else
16806 ac_cv_func_getmntent=no
795ca3e5 16807fi
795ca3e5
AK
16808
16809
ad6254c5
AK
16810
16811
16812for ac_header in sys/select.h sys/socket.h
16813do
ec6a6fbe 16814as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16817$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16818if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16819 $as_echo_n "(cached) " >&6
ad6254c5 16820fi
ec6a6fbe
AK
16821ac_res=`eval 'as_val=${'$as_ac_Header'}
16822 $as_echo "$as_val"'`
16823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16824$as_echo "$ac_res" >&6; }
795ca3e5 16825else
ad6254c5 16826 # Is the header compilable?
ec6a6fbe
AK
16827{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16828$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16829cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16830/* confdefs.h. */
16831_ACEOF
16832cat confdefs.h >>conftest.$ac_ext
16833cat >>conftest.$ac_ext <<_ACEOF
16834/* end confdefs.h. */
16835$ac_includes_default
16836#include <$ac_header>
16837_ACEOF
16838rm -f conftest.$ac_objext
7a197a62
AK
16839if { (ac_try="$ac_compile"
16840case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
ec6a6fbe
AK
16844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16845$as_echo "$ac_try_echo") >&5
7a197a62 16846 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16847 ac_status=$?
8a2fc586
AK
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
ec6a6fbe 16851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16852 (exit $ac_status); } && {
16853 test -z "$ac_c_werror_flag" ||
16854 test ! -s conftest.err
16855 } && test -s conftest.$ac_objext; then
ad6254c5 16856 ac_header_compiler=yes
80992638 16857else
ec6a6fbe 16858 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16859sed 's/^/| /' conftest.$ac_ext >&5
16860
7a197a62 16861 ac_header_compiler=no
ad6254c5 16862fi
7a197a62
AK
16863
16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16865{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16866$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16867
16868# Is the header present?
ec6a6fbe
AK
16869{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16870$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16871cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
16877#include <$ac_header>
16878_ACEOF
7a197a62
AK
16879if { (ac_try="$ac_cpp conftest.$ac_ext"
16880case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883esac
ec6a6fbe
AK
16884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16885$as_echo "$ac_try_echo") >&5
7a197a62 16886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16887 ac_status=$?
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
ec6a6fbe 16891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16892 (exit $ac_status); } >/dev/null && {
16893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 }; then
ad6254c5
AK
16896 ac_header_preproc=yes
16897else
ec6a6fbe 16898 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16899sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 ac_header_preproc=no
16902fi
7a197a62 16903
ad6254c5 16904rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16905{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16906$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16907
16908# So? What about this header?
8a2fc586
AK
16909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16910 yes:no: )
ec6a6fbe
AK
16911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16912$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16914$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16915 ac_header_preproc=yes
ad6254c5 16916 ;;
8a2fc586 16917 no:yes:* )
ec6a6fbe
AK
16918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16919$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16921$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16923$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16925$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16927$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16929$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16930
ad6254c5
AK
16931 ;;
16932esac
ec6a6fbe
AK
16933{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16934$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16935if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16936 $as_echo_n "(cached) " >&6
ad6254c5 16937else
8a2fc586 16938 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16939fi
ec6a6fbe
AK
16940ac_res=`eval 'as_val=${'$as_ac_Header'}
16941 $as_echo "$as_val"'`
16942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16943$as_echo "$ac_res" >&6; }
8106cdd5 16944
795ca3e5 16945fi
ec6a6fbe
AK
16946as_val=`eval 'as_val=${'$as_ac_Header'}
16947 $as_echo "$as_val"'`
16948 if test "x$as_val" = x""yes; then
ad6254c5 16949 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16951_ACEOF
16952
795ca3e5
AK
16953fi
16954
ad6254c5
AK
16955done
16956
ec6a6fbe
AK
16957{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16958$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16959if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16960 $as_echo_n "(cached) " >&6
26e7f2e0 16961else
ad6254c5 16962 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16963 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16964 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16965 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16966/* confdefs.h. */
16967_ACEOF
16968cat confdefs.h >>conftest.$ac_ext
16969cat >>conftest.$ac_ext <<_ACEOF
16970/* end confdefs.h. */
16971$ac_includes_default
25fbec5b 16972#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16973# include <sys/select.h>
16974#endif
25fbec5b 16975#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16976# include <sys/socket.h>
16977#endif
16978
16979int
16980main ()
16981{
16982extern int select ($ac_arg1,
8a2fc586
AK
16983 $ac_arg234, $ac_arg234, $ac_arg234,
16984 $ac_arg5);
ad6254c5
AK
16985 ;
16986 return 0;
16987}
16988_ACEOF
16989rm -f conftest.$ac_objext
7a197a62
AK
16990if { (ac_try="$ac_compile"
16991case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994esac
ec6a6fbe
AK
16995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16996$as_echo "$ac_try_echo") >&5
7a197a62 16997 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16998 ac_status=$?
8a2fc586
AK
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
ec6a6fbe 17002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17003 (exit $ac_status); } && {
17004 test -z "$ac_c_werror_flag" ||
17005 test ! -s conftest.err
17006 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17007 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
17008else
ec6a6fbe 17009 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17010sed 's/^/| /' conftest.$ac_ext >&5
17011
7a197a62 17012
ad6254c5 17013fi
7a197a62
AK
17014
17015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
17016 done
17017 done
17018done
17019# Provide a safe default value.
17020: ${ac_cv_func_select_args='int,int *,struct timeval *'}
17021
26e7f2e0 17022fi
ec6a6fbe
AK
17023{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
17024$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
17025ac_save_IFS=$IFS; IFS=','
17026set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17027IFS=$ac_save_IFS
17028shift
17029
17030cat >>confdefs.h <<_ACEOF
17031#define SELECT_TYPE_ARG1 $1
17032_ACEOF
17033
17034
17035cat >>confdefs.h <<_ACEOF
17036#define SELECT_TYPE_ARG234 ($2)
17037_ACEOF
17038
17039
17040cat >>confdefs.h <<_ACEOF
17041#define SELECT_TYPE_ARG5 ($3)
17042_ACEOF
17043
80992638 17044rm -f conftest*
80992638 17045
8106cdd5 17046fi
ad6254c5 17047
ad6254c5
AK
17048if test x$CLUSTER != xnone; then
17049
17050
17051for ac_header in sys/socket.h sys/un.h
b896caa1 17052do
ec6a6fbe 17053as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17054if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17055 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17056$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17057if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17058 $as_echo_n "(cached) " >&6
ad6254c5 17059fi
ec6a6fbe
AK
17060ac_res=`eval 'as_val=${'$as_ac_Header'}
17061 $as_echo "$as_val"'`
17062 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17063$as_echo "$ac_res" >&6; }
ad6254c5
AK
17064else
17065 # Is the header compilable?
ec6a6fbe
AK
17066{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17067$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17068cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17069/* confdefs.h. */
17070_ACEOF
17071cat confdefs.h >>conftest.$ac_ext
17072cat >>conftest.$ac_ext <<_ACEOF
17073/* end confdefs.h. */
17074$ac_includes_default
17075#include <$ac_header>
17076_ACEOF
17077rm -f conftest.$ac_objext
7a197a62
AK
17078if { (ac_try="$ac_compile"
17079case "(($ac_try" in
17080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081 *) ac_try_echo=$ac_try;;
17082esac
ec6a6fbe
AK
17083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17084$as_echo "$ac_try_echo") >&5
7a197a62 17085 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17086 ac_status=$?
8a2fc586
AK
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
ec6a6fbe 17090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17091 (exit $ac_status); } && {
17092 test -z "$ac_c_werror_flag" ||
17093 test ! -s conftest.err
17094 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17095 ac_header_compiler=yes
17096else
ec6a6fbe 17097 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
7a197a62 17100 ac_header_compiler=no
ad6254c5 17101fi
7a197a62
AK
17102
17103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17104{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17105$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17106
17107# Is the header present?
ec6a6fbe
AK
17108{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17109$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17110cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17111/* confdefs.h. */
17112_ACEOF
17113cat confdefs.h >>conftest.$ac_ext
17114cat >>conftest.$ac_ext <<_ACEOF
17115/* end confdefs.h. */
17116#include <$ac_header>
17117_ACEOF
7a197a62
AK
17118if { (ac_try="$ac_cpp conftest.$ac_ext"
17119case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17122esac
ec6a6fbe
AK
17123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17124$as_echo "$ac_try_echo") >&5
7a197a62 17125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17126 ac_status=$?
17127 grep -v '^ *+' conftest.er1 >conftest.err
17128 rm -f conftest.er1
17129 cat conftest.err >&5
ec6a6fbe 17130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17131 (exit $ac_status); } >/dev/null && {
17132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 }; then
ad6254c5
AK
17135 ac_header_preproc=yes
17136else
ec6a6fbe 17137 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17138sed 's/^/| /' conftest.$ac_ext >&5
17139
17140 ac_header_preproc=no
17141fi
7a197a62 17142
ad6254c5 17143rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17144{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17145$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17146
17147# So? What about this header?
8a2fc586
AK
17148case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17149 yes:no: )
ec6a6fbe
AK
17150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17151$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17153$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17154 ac_header_preproc=yes
ad6254c5 17155 ;;
8a2fc586 17156 no:yes:* )
ec6a6fbe
AK
17157 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17158$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17159 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17160$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17161 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17162$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17164$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17166$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17168$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17169
ad6254c5
AK
17170 ;;
17171esac
ec6a6fbe
AK
17172{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17173$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17175 $as_echo_n "(cached) " >&6
ad6254c5 17176else
8a2fc586 17177 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 17178fi
ec6a6fbe
AK
17179ac_res=`eval 'as_val=${'$as_ac_Header'}
17180 $as_echo "$as_val"'`
17181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17182$as_echo "$ac_res" >&6; }
ad6254c5
AK
17183
17184fi
ec6a6fbe
AK
17185as_val=`eval 'as_val=${'$as_ac_Header'}
17186 $as_echo "$as_val"'`
17187 if test "x$as_val" = x""yes; then
ad6254c5 17188 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17189#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
17190_ACEOF
17191
80992638 17192else
ec6a6fbe
AK
17193 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17194$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17195 { (exit 1); exit 1; }; }
b896caa1 17196fi
ad6254c5 17197
b896caa1
AK
17198done
17199
17200
ad6254c5
AK
17201for ac_func in socket
17202do
ec6a6fbe
AK
17203as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17204{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17205$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 17206if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17207 $as_echo_n "(cached) " >&6
795ca3e5 17208else
ad6254c5 17209 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17210/* confdefs.h. */
17211_ACEOF
17212cat confdefs.h >>conftest.$ac_ext
17213cat >>conftest.$ac_ext <<_ACEOF
17214/* end confdefs.h. */
8a2fc586
AK
17215/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17217#define $ac_func innocuous_$ac_func
17218
ad6254c5
AK
17219/* System header to define __stub macros and hopefully few prototypes,
17220 which can conflict with char $ac_func (); below.
17221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17222 <limits.h> exists even on freestanding compilers. */
8a2fc586 17223
ad6254c5
AK
17224#ifdef __STDC__
17225# include <limits.h>
17226#else
17227# include <assert.h>
17228#endif
8a2fc586
AK
17229
17230#undef $ac_func
17231
7a197a62
AK
17232/* Override any GCC internal prototype to avoid an error.
17233 Use char because int might match the return type of a GCC
17234 builtin and then its argument prototype would still apply. */
ad6254c5
AK
17235#ifdef __cplusplus
17236extern "C"
ad6254c5 17237#endif
ad6254c5
AK
17238char $ac_func ();
17239/* The GNU C library defines this for functions which it implements
17240 to always fail with ENOSYS. Some functions are actually named
17241 something starting with __ and the normal name is an alias. */
7a197a62 17242#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 17243choke me
ad6254c5
AK
17244#endif
17245
17246int
17247main ()
17248{
7a197a62 17249return $ac_func ();
ad6254c5
AK
17250 ;
17251 return 0;
17252}
17253_ACEOF
17254rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
17255if { (ac_try="$ac_link"
17256case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259esac
ec6a6fbe
AK
17260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17261$as_echo "$ac_try_echo") >&5
7a197a62 17262 (eval "$ac_link") 2>conftest.er1
ad6254c5 17263 ac_status=$?
8a2fc586
AK
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
ec6a6fbe 17267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17268 (exit $ac_status); } && {
17269 test -z "$ac_c_werror_flag" ||
17270 test ! -s conftest.err
ec6a6fbe
AK
17271 } && test -s conftest$ac_exeext && {
17272 test "$cross_compiling" = yes ||
17273 $as_test_x conftest$ac_exeext
17274 }; then
ad6254c5
AK
17275 eval "$as_ac_var=yes"
17276else
ec6a6fbe 17277 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17278sed 's/^/| /' conftest.$ac_ext >&5
17279
7a197a62 17280 eval "$as_ac_var=no"
ad6254c5 17281fi
7a197a62 17282
ec6a6fbe 17283rm -rf conftest.dSYM
25fbec5b 17284rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 17285 conftest$ac_exeext conftest.$ac_ext
ad6254c5 17286fi
ec6a6fbe
AK
17287ac_res=`eval 'as_val=${'$as_ac_var'}
17288 $as_echo "$as_val"'`
17289 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17290$as_echo "$ac_res" >&6; }
17291as_val=`eval 'as_val=${'$as_ac_var'}
17292 $as_echo "$as_val"'`
17293 if test "x$as_val" = x""yes; then
ad6254c5 17294 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17295#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
17296_ACEOF
17297
17298else
ec6a6fbe
AK
17299 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17300$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
17301 { (exit 1); exit 1; }; }
17302fi
17303done
17304
17305fi
17306
d911ec67
AK
17307if test x$DMEVENTD = xyes; then
17308
17309for ac_header in arpa/inet.h
17310do
17311as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17312if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17313 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17314$as_echo_n "checking for $ac_header... " >&6; }
17315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17316 $as_echo_n "(cached) " >&6
17317fi
17318ac_res=`eval 'as_val=${'$as_ac_Header'}
17319 $as_echo "$as_val"'`
17320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17321$as_echo "$ac_res" >&6; }
17322else
17323 # Is the header compilable?
17324{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17325$as_echo_n "checking $ac_header usability... " >&6; }
17326cat >conftest.$ac_ext <<_ACEOF
17327/* confdefs.h. */
17328_ACEOF
17329cat confdefs.h >>conftest.$ac_ext
17330cat >>conftest.$ac_ext <<_ACEOF
17331/* end confdefs.h. */
17332$ac_includes_default
17333#include <$ac_header>
17334_ACEOF
17335rm -f conftest.$ac_objext
17336if { (ac_try="$ac_compile"
17337case "(($ac_try" in
17338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17339 *) ac_try_echo=$ac_try;;
17340esac
17341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17342$as_echo "$ac_try_echo") >&5
17343 (eval "$ac_compile") 2>conftest.er1
17344 ac_status=$?
17345 grep -v '^ *+' conftest.er1 >conftest.err
17346 rm -f conftest.er1
17347 cat conftest.err >&5
17348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 (exit $ac_status); } && {
17350 test -z "$ac_c_werror_flag" ||
17351 test ! -s conftest.err
17352 } && test -s conftest.$ac_objext; then
17353 ac_header_compiler=yes
17354else
17355 $as_echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358 ac_header_compiler=no
17359fi
17360
17361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17363$as_echo "$ac_header_compiler" >&6; }
17364
17365# Is the header present?
17366{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17367$as_echo_n "checking $ac_header presence... " >&6; }
17368cat >conftest.$ac_ext <<_ACEOF
17369/* confdefs.h. */
17370_ACEOF
17371cat confdefs.h >>conftest.$ac_ext
17372cat >>conftest.$ac_ext <<_ACEOF
17373/* end confdefs.h. */
17374#include <$ac_header>
17375_ACEOF
17376if { (ac_try="$ac_cpp conftest.$ac_ext"
17377case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17382$as_echo "$ac_try_echo") >&5
17383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17384 ac_status=$?
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
17388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } >/dev/null && {
17390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17391 test ! -s conftest.err
17392 }; then
17393 ac_header_preproc=yes
17394else
17395 $as_echo "$as_me: failed program was:" >&5
17396sed 's/^/| /' conftest.$ac_ext >&5
17397
17398 ac_header_preproc=no
17399fi
17400
17401rm -f conftest.err conftest.$ac_ext
17402{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17403$as_echo "$ac_header_preproc" >&6; }
17404
17405# So? What about this header?
17406case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17407 yes:no: )
17408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17409$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17411$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17412 ac_header_preproc=yes
17413 ;;
17414 no:yes:* )
17415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17416$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17418$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17420$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17422$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17424$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17426$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17427
17428 ;;
17429esac
17430{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17431$as_echo_n "checking for $ac_header... " >&6; }
17432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17433 $as_echo_n "(cached) " >&6
17434else
17435 eval "$as_ac_Header=\$ac_header_preproc"
17436fi
17437ac_res=`eval 'as_val=${'$as_ac_Header'}
17438 $as_echo "$as_val"'`
17439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17440$as_echo "$ac_res" >&6; }
17441
17442fi
17443as_val=`eval 'as_val=${'$as_ac_Header'}
17444 $as_echo "$as_val"'`
17445 if test "x$as_val" = x""yes; then
17446 cat >>confdefs.h <<_ACEOF
17447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17448_ACEOF
17449
17450else
17451 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17452$as_echo "$as_me: error: bailing out" >&2;}
17453 { (exit 1); exit 1; }; }
17454fi
17455
17456done
17457
17458fi
17459
ad6254c5
AK
17460if test x$HAVE_LIBDL = xyes; then
17461
17462for ac_header in dlfcn.h
17463do
ec6a6fbe 17464as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17467$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17468if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17469 $as_echo_n "(cached) " >&6
ad6254c5 17470fi
ec6a6fbe
AK
17471ac_res=`eval 'as_val=${'$as_ac_Header'}
17472 $as_echo "$as_val"'`
17473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17474$as_echo "$ac_res" >&6; }
ad6254c5
AK
17475else
17476 # Is the header compilable?
ec6a6fbe
AK
17477{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17478$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17479cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17480/* confdefs.h. */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h. */
17485$ac_includes_default
17486#include <$ac_header>
17487_ACEOF
17488rm -f conftest.$ac_objext
7a197a62
AK
17489if { (ac_try="$ac_compile"
17490case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493esac
ec6a6fbe
AK
17494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17495$as_echo "$ac_try_echo") >&5
7a197a62 17496 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17497 ac_status=$?
8a2fc586
AK
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
ec6a6fbe 17501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17502 (exit $ac_status); } && {
17503 test -z "$ac_c_werror_flag" ||
17504 test ! -s conftest.err
17505 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17506 ac_header_compiler=yes
17507else
ec6a6fbe 17508 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17509sed 's/^/| /' conftest.$ac_ext >&5
17510
7a197a62 17511 ac_header_compiler=no
ad6254c5 17512fi
7a197a62
AK
17513
17514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17515{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17516$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17517
17518# Is the header present?
ec6a6fbe
AK
17519{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17520$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17521cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17522/* confdefs.h. */
17523_ACEOF
17524cat confdefs.h >>conftest.$ac_ext
17525cat >>conftest.$ac_ext <<_ACEOF
17526/* end confdefs.h. */
17527#include <$ac_header>
17528_ACEOF
7a197a62
AK
17529if { (ac_try="$ac_cpp conftest.$ac_ext"
17530case "(($ac_try" in
17531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17532 *) ac_try_echo=$ac_try;;
17533esac
ec6a6fbe
AK
17534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17535$as_echo "$ac_try_echo") >&5
7a197a62 17536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
ec6a6fbe 17541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17542 (exit $ac_status); } >/dev/null && {
17543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17544 test ! -s conftest.err
17545 }; then
ad6254c5
AK
17546 ac_header_preproc=yes
17547else
ec6a6fbe 17548 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17549sed 's/^/| /' conftest.$ac_ext >&5
17550
17551 ac_header_preproc=no
17552fi
7a197a62 17553
ad6254c5 17554rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17555{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17556$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17557
17558# So? What about this header?
8a2fc586
AK
17559case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17560 yes:no: )
ec6a6fbe
AK
17561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17562$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17564$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17565 ac_header_preproc=yes
ad6254c5 17566 ;;
8a2fc586 17567 no:yes:* )
ec6a6fbe
AK
17568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17569$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17571$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17573$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17574 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17575$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17577$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17579$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17580
ad6254c5
AK
17581 ;;
17582esac
ec6a6fbe
AK
17583{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17584$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17586 $as_echo_n "(cached) " >&6
ad6254c5 17587else
8a2fc586 17588 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17589fi
ec6a6fbe
AK
17590ac_res=`eval 'as_val=${'$as_ac_Header'}
17591 $as_echo "$as_val"'`
17592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17593$as_echo "$ac_res" >&6; }
80992638 17594
8106cdd5 17595fi
ec6a6fbe
AK
17596as_val=`eval 'as_val=${'$as_ac_Header'}
17597 $as_echo "$as_val"'`
17598 if test "x$as_val" = x""yes; then
ad6254c5 17599 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17600#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17601_ACEOF
795ca3e5
AK
17602
17603else
ec6a6fbe
AK
17604 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17605$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17606 { (exit 1); exit 1; }; }
795ca3e5
AK
17607fi
17608
ad6254c5 17609done
80992638 17610
ad6254c5 17611fi
80992638 17612
ad6254c5 17613if test x$INTL = xyes; then
83912faa 17614
ad6254c5
AK
17615for ac_header in libintl.h
17616do
ec6a6fbe 17617as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17619 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17620$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17622 $as_echo_n "(cached) " >&6
ad6254c5 17623fi
ec6a6fbe
AK
17624ac_res=`eval 'as_val=${'$as_ac_Header'}
17625 $as_echo "$as_val"'`
17626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17627$as_echo "$ac_res" >&6; }
83912faa 17628else
ad6254c5 17629 # Is the header compilable?
ec6a6fbe
AK
17630{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17631$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17632cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17633/* confdefs.h. */
17634_ACEOF
17635cat confdefs.h >>conftest.$ac_ext
17636cat >>conftest.$ac_ext <<_ACEOF
17637/* end confdefs.h. */
17638$ac_includes_default
17639#include <$ac_header>
17640_ACEOF
17641rm -f conftest.$ac_objext
7a197a62
AK
17642if { (ac_try="$ac_compile"
17643case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646esac
ec6a6fbe
AK
17647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17648$as_echo "$ac_try_echo") >&5
7a197a62 17649 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17650 ac_status=$?
8a2fc586
AK
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
ec6a6fbe 17654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17655 (exit $ac_status); } && {
17656 test -z "$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17659 ac_header_compiler=yes
17660else
ec6a6fbe 17661 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17662sed 's/^/| /' conftest.$ac_ext >&5
17663
7a197a62 17664 ac_header_compiler=no
ad6254c5 17665fi
7a197a62
AK
17666
17667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17668{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17669$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17670
17671# Is the header present?
ec6a6fbe
AK
17672{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17673$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17674cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17675/* confdefs.h. */
17676_ACEOF
17677cat confdefs.h >>conftest.$ac_ext
17678cat >>conftest.$ac_ext <<_ACEOF
17679/* end confdefs.h. */
17680#include <$ac_header>
17681_ACEOF
7a197a62
AK
17682if { (ac_try="$ac_cpp conftest.$ac_ext"
17683case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17686esac
ec6a6fbe
AK
17687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17688$as_echo "$ac_try_echo") >&5
7a197a62 17689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17690 ac_status=$?
17691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
ec6a6fbe 17694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17695 (exit $ac_status); } >/dev/null && {
17696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17697 test ! -s conftest.err
17698 }; then
ad6254c5
AK
17699 ac_header_preproc=yes
17700else
ec6a6fbe 17701 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17702sed 's/^/| /' conftest.$ac_ext >&5
17703
17704 ac_header_preproc=no
17705fi
7a197a62 17706
ad6254c5 17707rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17708{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17709$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17710
17711# So? What about this header?
8a2fc586
AK
17712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17713 yes:no: )
ec6a6fbe
AK
17714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17715$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17717$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17718 ac_header_preproc=yes
ad6254c5 17719 ;;
8a2fc586 17720 no:yes:* )
ec6a6fbe
AK
17721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17722$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17724$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17726$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17728$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17730$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17732$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17733
ad6254c5
AK
17734 ;;
17735esac
ec6a6fbe
AK
17736{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17737$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17738if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17739 $as_echo_n "(cached) " >&6
80992638 17740else
8a2fc586 17741 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17742fi
ec6a6fbe
AK
17743ac_res=`eval 'as_val=${'$as_ac_Header'}
17744 $as_echo "$as_val"'`
17745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17746$as_echo "$ac_res" >&6; }
83912faa 17747
69792976 17748fi
ec6a6fbe
AK
17749as_val=`eval 'as_val=${'$as_ac_Header'}
17750 $as_echo "$as_val"'`
17751 if test "x$as_val" = x""yes; then
ad6254c5 17752 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17753#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17754_ACEOF
69792976 17755
69792976 17756else
ec6a6fbe
AK
17757 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17758$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17759 { (exit 1); exit 1; }; }
80992638
AK
17760fi
17761
ad6254c5 17762done
69792976 17763
ad6254c5
AK
17764fi
17765
a5f46f6a
AK
17766if test x$UDEV_SYNC = xyes; then
17767
17768
17769for ac_header in sys/ipc.h sys/sem.h
17770do
17771as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17773 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17774$as_echo_n "checking for $ac_header... " >&6; }
17775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17776 $as_echo_n "(cached) " >&6
17777fi
17778ac_res=`eval 'as_val=${'$as_ac_Header'}
17779 $as_echo "$as_val"'`
17780 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17781$as_echo "$ac_res" >&6; }
17782else
17783 # Is the header compilable?
17784{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17785$as_echo_n "checking $ac_header usability... " >&6; }
17786cat >conftest.$ac_ext <<_ACEOF
17787/* confdefs.h. */
17788_ACEOF
17789cat confdefs.h >>conftest.$ac_ext
17790cat >>conftest.$ac_ext <<_ACEOF
17791/* end confdefs.h. */
17792$ac_includes_default
17793#include <$ac_header>
17794_ACEOF
17795rm -f conftest.$ac_objext
17796if { (ac_try="$ac_compile"
17797case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17800esac
17801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17802$as_echo "$ac_try_echo") >&5
17803 (eval "$ac_compile") 2>conftest.er1
17804 ac_status=$?
17805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
17808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } && {
17810 test -z "$ac_c_werror_flag" ||
17811 test ! -s conftest.err
17812 } && test -s conftest.$ac_objext; then
17813 ac_header_compiler=yes
17814else
17815 $as_echo "$as_me: failed program was:" >&5
17816sed 's/^/| /' conftest.$ac_ext >&5
17817
17818 ac_header_compiler=no
17819fi
17820
17821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17822{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17823$as_echo "$ac_header_compiler" >&6; }
17824
17825# Is the header present?
17826{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17827$as_echo_n "checking $ac_header presence... " >&6; }
17828cat >conftest.$ac_ext <<_ACEOF
17829/* confdefs.h. */
17830_ACEOF
17831cat confdefs.h >>conftest.$ac_ext
17832cat >>conftest.$ac_ext <<_ACEOF
17833/* end confdefs.h. */
17834#include <$ac_header>
17835_ACEOF
17836if { (ac_try="$ac_cpp conftest.$ac_ext"
17837case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840esac
17841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17842$as_echo "$ac_try_echo") >&5
17843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17844 ac_status=$?
17845 grep -v '^ *+' conftest.er1 >conftest.err
17846 rm -f conftest.er1
17847 cat conftest.err >&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); } >/dev/null && {
17850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17851 test ! -s conftest.err
17852 }; then
17853 ac_header_preproc=yes
17854else
17855 $as_echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
17858 ac_header_preproc=no
17859fi
17860
17861rm -f conftest.err conftest.$ac_ext
17862{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17863$as_echo "$ac_header_preproc" >&6; }
17864
17865# So? What about this header?
17866case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17867 yes:no: )
17868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17869$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17871$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17872 ac_header_preproc=yes
17873 ;;
17874 no:yes:* )
17875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17876$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17877 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17878$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17879 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17880$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17882$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17884$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17886$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17887
17888 ;;
17889esac
17890{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17891$as_echo_n "checking for $ac_header... " >&6; }
17892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17893 $as_echo_n "(cached) " >&6
17894else
17895 eval "$as_ac_Header=\$ac_header_preproc"
17896fi
17897ac_res=`eval 'as_val=${'$as_ac_Header'}
17898 $as_echo "$as_val"'`
17899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17900$as_echo "$ac_res" >&6; }
17901
17902fi
17903as_val=`eval 'as_val=${'$as_ac_Header'}
17904 $as_echo "$as_val"'`
17905 if test "x$as_val" = x""yes; then
17906 cat >>confdefs.h <<_ACEOF
17907#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17908_ACEOF
17909
17910else
17911 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17912$as_echo "$as_me: error: bailing out" >&2;}
17913 { (exit 1); exit 1; }; }
17914fi
17915
17916done
17917
17918fi
17919
a653923f
AK
17920################################################################################
17921# Extract the first word of "modprobe", so it can be a program name with args.
17922set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17923{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17924$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17925if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17926 $as_echo_n "(cached) " >&6
72b2cb61
AK
17927else
17928 case $MODPROBE_CMD in
17929 [\\/]* | ?:[\\/]*)
17930 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17931 ;;
17932 *)
17933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17934for as_dir in $PATH
17935do
17936 IFS=$as_save_IFS
17937 test -z "$as_dir" && as_dir=.
17938 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17940 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17941 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17942 break 2
17943 fi
17944done
17945done
7a197a62 17946IFS=$as_save_IFS
72b2cb61
AK
17947
17948 ;;
17949esac
17950fi
17951MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17952if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17953 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17954$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17955else
ec6a6fbe
AK
17956 { $as_echo "$as_me:$LINENO: result: no" >&5
17957$as_echo "no" >&6; }
72b2cb61
AK
17958fi
17959
a653923f 17960
7a197a62 17961
a653923f 17962if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17963
17964cat >>confdefs.h <<_ACEOF
17965#define MODPROBE_CMD "$MODPROBE_CMD"
17966_ACEOF
17967
a653923f
AK
17968fi
17969
b5c2529b 17970
a9b601e2
ZK
17971lvm_exec_prefix=$exec_prefix
17972test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17973test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17974
b5c2529b 17975cat >>confdefs.h <<_ACEOF
a9b601e2 17976#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17977_ACEOF
17978
17979
17980if test "$CLVMD" != none; then
17981 clvmd_prefix=$ac_default_prefix
17982 test "$prefix" != NONE && clvmd_prefix=$prefix
17983
17984cat >>confdefs.h <<_ACEOF
17985#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17986_ACEOF
17987
17988fi
17989
80992638 17990################################################################################
93bd259b
AK
17991if test "$BUILD_DMEVENTD" = yes; then
17992
17993# Check whether --with-dmeventd-pidfile was given.
17994if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17995 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17996else
71082be4 17997 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17998fi
17999
93bd259b 18000
71082be4
ZK
18001cat >>confdefs.h <<_ACEOF
18002#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
18003_ACEOF
93bd259b 18004
71082be4 18005fi
93bd259b
AK
18006
18007if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
18008
18009# Check whether --with-dmeventd-path was given.
18010if test "${with_dmeventd_path+set}" = set; then
71082be4 18011 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 18012else
71082be4 18013 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
18014fi
18015
93bd259b 18016
71082be4
ZK
18017cat >>confdefs.h <<_ACEOF
18018#define DMEVENTD_PATH "$DMEVENTD_PATH"
18019_ACEOF
3399ae32 18020
71082be4 18021fi
3399ae32 18022
8bae0a1e
AK
18023
18024
18025
18026# Check whether --with-default-run-dir was given.
18027if test "${with_default_run_dir+set}" = set; then
18028 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
18029else
18030 DEFAULT_RUN_DIR="/var/run/lvm"
18031fi
18032
18033cat >>confdefs.h <<_ACEOF
18034#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
18035_ACEOF
18036
18037
71082be4 18038################################################################################
3399ae32
AK
18039
18040# Check whether --with-default-system-dir was given.
18041if test "${with_default_system_dir+set}" = set; then
71082be4 18042 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 18043else
71082be4 18044 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
18045fi
18046
71082be4 18047
3399ae32
AK
18048cat >>confdefs.h <<_ACEOF
18049#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
18050_ACEOF
18051
18052
18053
3399ae32
AK
18054# Check whether --with-default-archive-subdir was given.
18055if test "${with_default_archive_subdir+set}" = set; then
71082be4 18056 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 18057else
71082be4 18058 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
18059fi
18060
71082be4 18061
3399ae32
AK
18062cat >>confdefs.h <<_ACEOF
18063#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
18064_ACEOF
18065
18066
18067
3399ae32
AK
18068# Check whether --with-default-backup-subdir was given.
18069if test "${with_default_backup_subdir+set}" = set; then
71082be4 18070 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 18071else
71082be4 18072 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
18073fi
18074
71082be4 18075
3399ae32
AK
18076cat >>confdefs.h <<_ACEOF
18077#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
18078_ACEOF
18079
18080
18081
3399ae32
AK
18082# Check whether --with-default-cache-subdir was given.
18083if test "${with_default_cache_subdir+set}" = set; then
71082be4 18084 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 18085else
71082be4 18086 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
18087fi
18088
71082be4 18089
3399ae32
AK
18090cat >>confdefs.h <<_ACEOF
18091#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
18092_ACEOF
18093
18094
18095
3399ae32
AK
18096# Check whether --with-default-locking-dir was given.
18097if test "${with_default_locking_dir+set}" = set; then
71082be4 18098 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 18099else
71082be4 18100 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
18101fi
18102
71082be4 18103
3399ae32
AK
18104cat >>confdefs.h <<_ACEOF
18105#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
18106_ACEOF
18107
18108
fea55602
DW
18109################################################################################
18110
18111# Check whether --with-default-data-alignment was given.
18112if test "${with_default_data_alignment+set}" = set; then
18113 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
18114else
18115 DEFAULT_DATA_ALIGNMENT=1
18116fi
18117
18118
18119cat >>confdefs.h <<_ACEOF
18120#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
18121_ACEOF
18122
18123
93bd259b 18124################################################################################
ec6a6fbe
AK
18125{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
18126$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
18127
18128# Check whether --with-interface was given.
18129if test "${with_interface+set}" = set; then
71082be4 18130 withval=$with_interface; interface=$withval
93bd259b 18131else
71082be4 18132 interface=ioctl
93bd259b
AK
18133fi
18134
18135if [ "x$interface" != xioctl ];
18136then
ec6a6fbe
AK
18137 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
18138$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
18139 { (exit 1); exit 1; }; }
18140fi
ec6a6fbe
AK
18141{ $as_echo "$as_me:$LINENO: result: $interface" >&5
18142$as_echo "$interface" >&6; }
93bd259b
AK
18143
18144################################################################################
db8b5af9 18145DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
18146
18147cat >>confdefs.h <<_ACEOF
18148#define DM_LIB_VERSION $DM_LIB_VERSION
18149_ACEOF
18150
18151
db8b5af9 18152DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 18153
db8b5af9 18154LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 18155
db8b5af9 18156VER=`cat "$srcdir"/VERSION`
bf456146 18157LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
18158VER=`echo "$VER" | $AWK '{print $1}'`
18159LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
18160VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
18161LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
18162LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
18163LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
18164LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 18165
80992638 18166################################################################################
fae0c576 18167
83912faa 18168
795ca3e5
AK
18169
18170
18171
18172
18173
18174
5a52dca9 18175
8ef2b021 18176
199e490e 18177
69792976
AK
18178
18179
18180
d0191583 18181
69792976 18182
8106cdd5
AK
18183
18184
18185
18186
18187
d68a82ec 18188
036f273a 18189
7d1552c9 18190
8106cdd5 18191
0a62c911 18192
8106cdd5 18193
4a7f3eb2 18194
4922197a
AK
18195
18196
d8ac0fbc 18197
1a9ea74d 18198
8a2fc586
AK
18199
18200
d0191583 18201
93bd259b
AK
18202
18203
18204
18205
18206
d0191583
JM
18207
18208
18209
18210
18211
8a2fc586 18212
19a2c6e0 18213
f7f0854e
ZK
18214
18215
3ceb7608 18216
8ce0cbda 18217
8b1a3214 18218
ec6a6fbe
AK
18219
18220
18221
18222
e2997b73
AK
18223
18224
18225
18226
18227
18228
a946372e
AK
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
ec6a6fbe 18240
33f732c5 18241
66e941e8 18242
d3c8211f 18243
7e3fe830 18244
a5f46f6a
AK
18245
18246
18247
572fefeb 18248
90c80887 18249
3399ae32
AK
18250
18251
18252
18253
18254
90c80887 18255
bf456146 18256
e1b8a236 18257
0878503f 18258
8fea97b7 18259
54b362f9 18260
b1f08e51 18261
d1e8046f 18262
fea55602 18263
c89bc357 18264
68f2de6d
AK
18265
18266
80992638 18267################################################################################
d1e8046f 18268ac_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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 18269
ad6254c5 18270cat >confcache <<\_ACEOF
795ca3e5
AK
18271# This file is a shell script that caches the results of configure
18272# tests run on this system so they can be shared between configure
ad6254c5
AK
18273# scripts and configure runs, see configure's option --config-cache.
18274# It is not useful on other systems. If it contains results you don't
18275# want to keep, you may remove or edit it.
795ca3e5 18276#
ad6254c5
AK
18277# config.status only pays attention to the cache file if you give it
18278# the --recheck option to rerun configure.
795ca3e5 18279#
ad6254c5
AK
18280# `ac_cv_env_foo' variables (set or unset) will be overridden when
18281# loading this file, other *unset* `ac_cv_foo' will be assigned the
18282# following values.
18283
18284_ACEOF
18285
795ca3e5
AK
18286# The following way of writing the cache mishandles newlines in values,
18287# but we know of no workaround that is simple, portable, and efficient.
7a197a62 18288# So, we kill variables containing newlines.
795ca3e5
AK
18289# Ultrix sh set writes to stderr and can't be redirected directly,
18290# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
18291(
18292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18293 eval ac_val=\$$ac_var
18294 case $ac_val in #(
18295 *${as_nl}*)
18296 case $ac_var in #(
ec6a6fbe
AK
18297 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
18299 esac
18300 case $ac_var in #(
18301 _ | IFS | as_nl) ;; #(
ec6a6fbe 18302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
18303 *) $as_unset $ac_var ;;
18304 esac ;;
18305 esac
18306 done
18307
ad6254c5 18308 (set) 2>&1 |
7a197a62
AK
18309 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18310 *${as_nl}ac_space=\ *)
ad6254c5
AK
18311 # `set' does not quote correctly, so add quotes (double-quote
18312 # substitution turns \\\\ into \\, and sed turns \\ into \).
18313 sed -n \
8a2fc586
AK
18314 "s/'/'\\\\''/g;
18315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 18316 ;; #(
ad6254c5
AK
18317 *)
18318 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 18319 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 18320 ;;
7a197a62
AK
18321 esac |
18322 sort
18323) |
ad6254c5 18324 sed '
7a197a62 18325 /^ac_cv_env_/b end
ad6254c5 18326 t clear
7a197a62 18327 :clear
ad6254c5
AK
18328 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18329 t end
7a197a62
AK
18330 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18331 :end' >>confcache
18332if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18333 if test -w "$cache_file"; then
18334 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
18335 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18336$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 18337 cat confcache >$cache_file
795ca3e5 18338 else
ec6a6fbe
AK
18339 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18340$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
18341 fi
18342fi
18343rm -f confcache
18344
795ca3e5
AK
18345test "x$prefix" = xNONE && prefix=$ac_default_prefix
18346# Let make expand exec_prefix.
18347test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18348
72b2cb61 18349DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18350
18351ac_libobjs=
18352ac_ltlibobjs=
18353for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18354 # 1. Remove the extension, and $U if already installed.
7a197a62 18355 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18356 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18357 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18358 # will be set to the directory where LIBOBJS objects are built.
18359 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18360 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18361done
18362LIBOBJS=$ac_libobjs
80992638 18363
ad6254c5
AK
18364LTLIBOBJS=$ac_ltlibobjs
18365
18366
18367
18368: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18369ac_write_fail=0
ad6254c5
AK
18370ac_clean_files_save=$ac_clean_files
18371ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18372{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18373$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18374cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18375#! $SHELL
18376# Generated by $as_me.
795ca3e5 18377# Run this file to recreate the current configuration.
795ca3e5 18378# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18379# configure, is in config.log if it exists.
18380
18381debug=false
18382ac_cs_recheck=false
18383ac_cs_silent=false
18384SHELL=\${CONFIG_SHELL-$SHELL}
18385_ACEOF
18386
ec6a6fbe 18387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18388## --------------------- ##
18389## M4sh Initialization. ##
18390## --------------------- ##
18391
25fbec5b
AK
18392# Be more Bourne compatible
18393DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18394if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18395 emulate sh
18396 NULLCMD=:
ec6a6fbe 18397 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18398 # is contrary to our usage. Disable this feature.
18399 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18400 setopt NO_GLOB_SUBST
18401else
25fbec5b
AK
18402 case `(set -o) 2>/dev/null` in
18403 *posix*) set -o posix ;;
18404esac
18405
7a197a62 18406fi
25fbec5b
AK
18407
18408
7a197a62
AK
18409
18410
18411# PATH needs CR
18412# Avoid depending upon Character Ranges.
18413as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18414as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18415as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18416as_cr_digits='0123456789'
18417as_cr_alnum=$as_cr_Letters$as_cr_digits
18418
ec6a6fbe
AK
18419as_nl='
18420'
18421export as_nl
18422# Printing a long string crashes Solaris 7 /usr/bin/printf.
18423as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18424as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18425as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18426if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18427 as_echo='printf %s\n'
18428 as_echo_n='printf %s'
18429else
18430 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18431 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18432 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18433 else
ec6a6fbe
AK
18434 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18435 as_echo_n_body='eval
18436 arg=$1;
18437 case $arg in
18438 *"$as_nl"*)
18439 expr "X$arg" : "X\\(.*\\)$as_nl";
18440 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18441 esac;
18442 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18443 '
18444 export as_echo_n_body
18445 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18446 fi
ec6a6fbe
AK
18447 export as_echo_body
18448 as_echo='sh -c $as_echo_body as_echo'
18449fi
18450
18451# The user is always right.
18452if test "${PATH_SEPARATOR+set}" != set; then
18453 PATH_SEPARATOR=:
18454 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18455 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18456 PATH_SEPARATOR=';'
18457 }
ad6254c5
AK
18458fi
18459
18460# Support unset when possible.
8a2fc586 18461if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18462 as_unset=unset
18463else
18464 as_unset=false
18465fi
8106cdd5 18466
ad6254c5 18467
7a197a62
AK
18468# IFS
18469# We need space, tab and new line, in precisely that order. Quoting is
18470# there to prevent editors from complaining about space-tab.
18471# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18472# splitting by setting IFS to empty value.)
7a197a62
AK
18473IFS=" "" $as_nl"
18474
18475# Find who we are. Look in the path if we contain no directory separator.
18476case $0 in
18477 *[\\/]* ) as_myself=$0 ;;
18478 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18479for as_dir in $PATH
18480do
18481 IFS=$as_save_IFS
18482 test -z "$as_dir" && as_dir=.
18483 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18484done
18485IFS=$as_save_IFS
18486
18487 ;;
18488esac
18489# We did not find ourselves, most probably we were run as `sh COMMAND'
18490# in which case we are not to be found in the path.
18491if test "x$as_myself" = x; then
18492 as_myself=$0
18493fi
18494if test ! -f "$as_myself"; then
ec6a6fbe 18495 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18496 { (exit 1); exit 1; }
18497fi
18498
ad6254c5 18499# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18500for as_var in ENV MAIL MAILPATH
18501do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18502done
ad6254c5
AK
18503PS1='$ '
18504PS2='> '
18505PS4='+ '
18506
18507# NLS nuisances.
ec6a6fbe
AK
18508LC_ALL=C
18509export LC_ALL
18510LANGUAGE=C
18511export LANGUAGE
8106cdd5 18512
ad6254c5 18513# Required to use basename.
7a197a62
AK
18514if expr a : '\(a\)' >/dev/null 2>&1 &&
18515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18516 as_expr=expr
18517else
18518 as_expr=false
18519fi
8106cdd5 18520
7a197a62 18521if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18522 as_basename=basename
18523else
18524 as_basename=false
18525fi
18526
18527
18528# Name of the executable.
7a197a62 18529as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18530$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18531 X"$0" : 'X\(//\)$' \| \
7a197a62 18532 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18533$as_echo X/"$0" |
7a197a62
AK
18534 sed '/^.*\/\([^/][^/]*\)\/*$/{
18535 s//\1/
18536 q
18537 }
18538 /^X\/\(\/\/\)$/{
18539 s//\1/
18540 q
18541 }
18542 /^X\/\(\/\).*/{
18543 s//\1/
18544 q
18545 }
18546 s/.*/./; q'`
ad6254c5 18547
7a197a62
AK
18548# CDPATH.
18549$as_unset CDPATH
ad6254c5
AK
18550
18551
ad6254c5 18552
ad6254c5
AK
18553 as_lineno_1=$LINENO
18554 as_lineno_2=$LINENO
ad6254c5 18555 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18556 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18557
ad6254c5
AK
18558 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18559 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18560 # line-number line after each line using $LINENO; the second 'sed'
18561 # does the real work. The second script uses 'N' to pair each
18562 # line-number line with the line containing $LINENO, and appends
18563 # trailing '-' during substitution so that $LINENO is not a special
18564 # case at line end.
ad6254c5 18565 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18566 # scripts with optimization help from Paolo Bonzini. Blame Lee
18567 # E. McMahon (1931-1989) for sed's syntax. :-)
18568 sed -n '
18569 p
18570 /[$]LINENO/=
18571 ' <$as_myself |
ad6254c5 18572 sed '
7a197a62
AK
18573 s/[$]LINENO.*/&-/
18574 t lineno
18575 b
18576 :lineno
ad6254c5 18577 N
7a197a62
AK
18578 :loop
18579 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18580 t loop
7a197a62 18581 s/-\n.*//
ad6254c5 18582 ' >$as_me.lineno &&
7a197a62 18583 chmod +x "$as_me.lineno" ||
ec6a6fbe 18584 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18585 { (exit 1); exit 1; }; }
18586
18587 # Don't try to exec as it changes $[0], causing all sort of problems
18588 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18589 # original and so on. Autoconf is especially sensitive to this).
18590 . "./$as_me.lineno"
ad6254c5
AK
18591 # Exit status is that of the last command.
18592 exit
18593}
18594
18595
7a197a62
AK
18596if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18597 as_dirname=dirname
18598else
18599 as_dirname=false
18600fi
18601
18602ECHO_C= ECHO_N= ECHO_T=
18603case `echo -n x` in
18604-n*)
18605 case `echo 'x\c'` in
18606 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18607 *) ECHO_C='\c';;
18608 esac;;
18609*)
18610 ECHO_N='-n';;
ad6254c5 18611esac
7a197a62
AK
18612if expr a : '\(a\)' >/dev/null 2>&1 &&
18613 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18614 as_expr=expr
18615else
18616 as_expr=false
18617fi
80992638 18618
ad6254c5 18619rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18620if test -d conf$$.dir; then
18621 rm -f conf$$.dir/conf$$.file
18622else
18623 rm -f conf$$.dir
ec6a6fbe
AK
18624 mkdir conf$$.dir 2>/dev/null
18625fi
18626if (echo >conf$$.file) 2>/dev/null; then
18627 if ln -s conf$$.file conf$$ 2>/dev/null; then
18628 as_ln_s='ln -s'
18629 # ... but there are two gotchas:
18630 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18631 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18632 # In both cases, we have to default to `cp -p'.
18633 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18634 as_ln_s='cp -p'
18635 elif ln conf$$.file conf$$ 2>/dev/null; then
18636 as_ln_s=ln
18637 else
ad6254c5 18638 as_ln_s='cp -p'
ec6a6fbe 18639 fi
ad6254c5
AK
18640else
18641 as_ln_s='cp -p'
18642fi
7a197a62
AK
18643rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18644rmdir conf$$.dir 2>/dev/null
8106cdd5 18645
ad6254c5
AK
18646if mkdir -p . 2>/dev/null; then
18647 as_mkdir_p=:
18648else
8a2fc586 18649 test -d ./-p && rmdir ./-p
ad6254c5
AK
18650 as_mkdir_p=false
18651fi
18652
25fbec5b
AK
18653if test -x / >/dev/null 2>&1; then
18654 as_test_x='test -x'
7a197a62 18655else
25fbec5b
AK
18656 if ls -dL / >/dev/null 2>&1; then
18657 as_ls_L_option=L
18658 else
18659 as_ls_L_option=
18660 fi
18661 as_test_x='
18662 eval sh -c '\''
18663 if test -d "$1"; then
ec6a6fbe 18664 test -d "$1/.";
25fbec5b
AK
18665 else
18666 case $1 in
ec6a6fbe 18667 -*)set "./$1";;
25fbec5b
AK
18668 esac;
18669 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18670 ???[sx]*):;;*)false;;esac;fi
18671 '\'' sh
18672 '
7a197a62 18673fi
25fbec5b 18674as_executable_p=$as_test_x
ad6254c5
AK
18675
18676# Sed expression to map a string onto a valid CPP name.
8a2fc586 18677as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18678
18679# Sed expression to map a string onto a valid variable name.
8a2fc586 18680as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18681
18682
ad6254c5
AK
18683exec 6>&1
18684
7a197a62 18685# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18686# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18687# values after options handling.
18688ac_log="
ad6254c5 18689This file was extended by $as_me, which was
ec6a6fbe 18690generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18691
18692 CONFIG_FILES = $CONFIG_FILES
18693 CONFIG_HEADERS = $CONFIG_HEADERS
18694 CONFIG_LINKS = $CONFIG_LINKS
18695 CONFIG_COMMANDS = $CONFIG_COMMANDS
18696 $ $0 $@
18697
7a197a62
AK
18698on `(hostname || uname -n) 2>/dev/null | sed 1q`
18699"
18700
ad6254c5
AK
18701_ACEOF
18702
ec6a6fbe
AK
18703case $ac_config_files in *"
18704"*) set x $ac_config_files; shift; ac_config_files=$*;;
18705esac
18706
18707case $ac_config_headers in *"
18708"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18709esac
18710
18711
18712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18713# Files that config.status was made for.
68f2de6d
AK
18714config_files="$ac_config_files"
18715config_headers="$ac_config_headers"
ad6254c5 18716
7a197a62 18717_ACEOF
ad6254c5 18718
ec6a6fbe 18719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18720ac_cs_usage="\
18721\`$as_me' instantiates files from templates according to the
18722current configuration.
18723
ec6a6fbe 18724Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18725
18726 -h, --help print this help, then exit
25fbec5b 18727 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18728 -q, --quiet, --silent
18729 do not print progress messages
ad6254c5
AK
18730 -d, --debug don't remove temporary files
18731 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18732 --file=FILE[:TEMPLATE]
18733 instantiate the configuration file FILE
18734 --header=FILE[:TEMPLATE]
18735 instantiate the configuration header FILE
ad6254c5
AK
18736
18737Configuration files:
18738$config_files
18739
72b2cb61
AK
18740Configuration headers:
18741$config_headers
18742
ad6254c5 18743Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18744
7a197a62 18745_ACEOF
ec6a6fbe 18746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18747ac_cs_version="\\
18748config.status
ec6a6fbe
AK
18749configured by $0, generated by GNU Autoconf 2.63,
18750 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18751
ec6a6fbe 18752Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18753This config.status script is free software; the Free Software Foundation
18754gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18755
18756ac_pwd='$ac_pwd'
18757srcdir='$srcdir'
18758INSTALL='$INSTALL'
fddafd51 18759MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18760AWK='$AWK'
18761test -n "\$AWK" || AWK=awk
ad6254c5
AK
18762_ACEOF
18763
ec6a6fbe
AK
18764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18765# The default lists apply if the user does not specify any file.
ad6254c5
AK
18766ac_need_defaults=:
18767while test $# != 0
18768do
18769 case $1 in
18770 --*=*)
7a197a62
AK
18771 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18772 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18773 ac_shift=:
18774 ;;
7a197a62 18775 *)
ad6254c5
AK
18776 ac_option=$1
18777 ac_optarg=$2
18778 ac_shift=shift
18779 ;;
ad6254c5
AK
18780 esac
18781
18782 case $ac_option in
18783 # Handling of the options.
ad6254c5
AK
18784 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18785 ac_cs_recheck=: ;;
7a197a62 18786 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18787 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18788 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18789 debug=: ;;
18790 --file | --fil | --fi | --f )
18791 $ac_shift
ec6a6fbe
AK
18792 case $ac_optarg in
18793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18794 esac
18795 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18796 ac_need_defaults=false;;
18797 --header | --heade | --head | --hea )
18798 $ac_shift
ec6a6fbe
AK
18799 case $ac_optarg in
18800 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18801 esac
18802 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18803 ac_need_defaults=false;;
7a197a62
AK
18804 --he | --h)
18805 # Conflict between --help and --header
ec6a6fbe 18806 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18807Try \`$0 --help' for more information." >&2
18808 { (exit 1); exit 1; }; };;
18809 --help | --hel | -h )
ec6a6fbe 18810 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18811 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18812 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18813 ac_cs_silent=: ;;
18814
18815 # This is an error.
ec6a6fbe 18816 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18817Try \`$0 --help' for more information." >&2
ad6254c5
AK
18818 { (exit 1); exit 1; }; } ;;
18819
7a197a62
AK
18820 *) ac_config_targets="$ac_config_targets $1"
18821 ac_need_defaults=false ;;
ad6254c5
AK
18822
18823 esac
18824 shift
18825done
18826
18827ac_configure_extra_args=
18828
18829if $ac_cs_silent; then
18830 exec 6>/dev/null
18831 ac_configure_extra_args="$ac_configure_extra_args --silent"
18832fi
18833
18834_ACEOF
ec6a6fbe 18835cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18836if \$ac_cs_recheck; then
ec6a6fbe
AK
18837 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18838 shift
18839 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18840 CONFIG_SHELL='$SHELL'
7a197a62 18841 export CONFIG_SHELL
ec6a6fbe 18842 exec "\$@"
ad6254c5
AK
18843fi
18844
18845_ACEOF
ec6a6fbe 18846cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18847exec 5>>config.log
18848{
18849 echo
18850 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18851## Running $as_me. ##
18852_ASBOX
ec6a6fbe 18853 $as_echo "$ac_log"
7a197a62 18854} >&5
ad6254c5 18855
7a197a62 18856_ACEOF
ec6a6fbe 18857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18858_ACEOF
ad6254c5 18859
ec6a6fbe 18860cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18861
18862# Handling of arguments.
ad6254c5
AK
18863for ac_config_target in $ac_config_targets
18864do
7a197a62
AK
18865 case $ac_config_target in
18866 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18867 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18868 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18869 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18870 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18871 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18872 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18873 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18874 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18875 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18876 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18877 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18878 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18879 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18880 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18881 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18882 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18883 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18884 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18885 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18886 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18887 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18888 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18889 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18890 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18891 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18892 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18893 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18894 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18895 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18896 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18897 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18898 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18899 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18900 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18901 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18902 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18903 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
18904 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18905 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 18906 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 18907
ec6a6fbe
AK
18908 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18909$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18910 { (exit 1); exit 1; }; };;
80992638 18911 esac
ad6254c5
AK
18912done
18913
7a197a62 18914
ad6254c5
AK
18915# If the user did not use the arguments to specify the items to instantiate,
18916# then the envvar interface is used. Set only those that are not.
18917# We use the long form for the default assignment because of an extremely
18918# bizarre bug on SunOS 4.1.3.
18919if $ac_need_defaults; then
18920 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18921 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18922fi
18923
18924# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18925# simply because there is no reason against having it here, and in addition,
ad6254c5 18926# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18927# Hook for its removal unless debugging.
18928# Note that there is a small window in which the directory will not be cleaned:
18929# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18930$debug ||
18931{
7a197a62
AK
18932 tmp=
18933 trap 'exit_status=$?
18934 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18935' 0
ad6254c5
AK
18936 trap '{ (exit 1); exit 1; }' 1 2 13 15
18937}
ad6254c5
AK
18938# Create a (secure) tmp directory for tmp files.
18939
18940{
7a197a62 18941 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18942 test -n "$tmp" && test -d "$tmp"
18943} ||
18944{
7a197a62
AK
18945 tmp=./conf$$-$RANDOM
18946 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18947} ||
18948{
ec6a6fbe 18949 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18950 { (exit 1); exit 1; }
18951}
18952
ec6a6fbe
AK
18953# Set up the scripts for CONFIG_FILES section.
18954# No need to generate them if there are no CONFIG_FILES.
18955# This happens for instance with `./config.status config.h'.
1995c9ff 18956if test -n "$CONFIG_FILES"; then
7a197a62 18957
68f2de6d 18958
ec6a6fbe
AK
18959ac_cr='\r'
18960ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18961if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18962 ac_cs_awk_cr='\\r'
18963else
18964 ac_cs_awk_cr=$ac_cr
1995c9ff 18965fi
7a197a62 18966
ec6a6fbe 18967echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18968_ACEOF
7a197a62 18969
8106cdd5 18970
ec6a6fbe
AK
18971{
18972 echo "cat >conf$$subs.awk <<_ACEOF" &&
18973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18974 echo "_ACEOF"
18975} >conf$$subs.sh ||
18976 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18977$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18978 { (exit 1); exit 1; }; }
18979ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18980ac_delim='%!_!# '
18981for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18982 . ./conf$$subs.sh ||
18983 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18984$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18985 { (exit 1); exit 1; }; }
18986
18987 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18988 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18989 break
18990 elif $ac_last_try; then
ec6a6fbe
AK
18991 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18992$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18993 { (exit 1); exit 1; }; }
18994 else
18995 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18996 fi
18997done
ec6a6fbe
AK
18998rm -f conf$$subs.sh
18999
19000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19001cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19002_ACEOF
19003sed -n '
19004h
19005s/^/S["/; s/!.*/"]=/
19006p
19007g
19008s/^[^!]*!//
19009:repl
19010t repl
19011s/'"$ac_delim"'$//
19012t delim
19013:nl
19014h
19015s/\(.\{148\}\).*/\1/
19016t more1
19017s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19018p
19019n
19020b repl
19021:more1
19022s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19023p
19024g
19025s/.\{148\}//
19026t nl
19027:delim
19028h
19029s/\(.\{148\}\).*/\1/
19030t more2
19031s/["\\]/\\&/g; s/^/"/; s/$/"/
19032p
19033b
19034:more2
19035s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19036p
19037g
19038s/.\{148\}//
19039t delim
19040' <conf$$subs.awk | sed '
19041/^[^""]/{
19042 N
19043 s/\n//
19044}
19045' >>$CONFIG_STATUS || ac_write_fail=1
19046rm -f conf$$subs.awk
19047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19048_ACAWK
19049cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19050 for (key in S) S_is_set[key] = 1
19051 FS = "\a"
7a197a62 19052
ec6a6fbe
AK
19053}
19054{
19055 line = $ 0
19056 nfields = split(line, field, "@")
19057 substed = 0
19058 len = length(field[1])
19059 for (i = 2; i < nfields; i++) {
19060 key = field[i]
19061 keylen = length(key)
19062 if (S_is_set[key]) {
19063 value = S[key]
19064 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19065 len += length(value) + length(field[++i])
19066 substed = 1
19067 } else
19068 len += 1 + keylen
19069 }
19070
19071 print line
19072}
fddafd51 19073
ec6a6fbe 19074_ACAWK
1995c9ff 19075_ACEOF
ec6a6fbe
AK
19076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19077if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19078 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19079else
19080 cat
19081fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19082 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19083$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19084 { (exit 1); exit 1; }; }
7a197a62
AK
19085_ACEOF
19086
7a197a62
AK
19087# VPATH may cause trouble with some makes, so we remove $(srcdir),
19088# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19089# trailing colons and then remove the whole line if VPATH becomes empty
19090# (actually we leave an empty line to preserve line numbers).
19091if test "x$srcdir" = x.; then
19092 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19093s/:*\$(srcdir):*/:/
19094s/:*\${srcdir}:*/:/
19095s/:*@srcdir@:*/:/
19096s/^\([^=]*=[ ]*\):*/\1/
19097s/:*$//
19098s/^[^=]*=[ ]*$//
19099}'
19100fi
19101
ec6a6fbe 19102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19103fi # test -n "$CONFIG_FILES"
19104
ec6a6fbe
AK
19105# Set up the scripts for CONFIG_HEADERS section.
19106# No need to generate them if there are no CONFIG_HEADERS.
19107# This happens for instance with `./config.status Makefile'.
19108if test -n "$CONFIG_HEADERS"; then
19109cat >"$tmp/defines.awk" <<\_ACAWK ||
19110BEGIN {
19111_ACEOF
19112
19113# Transform confdefs.h into an awk script `defines.awk', embedded as
19114# here-document in config.status, that substitutes the proper values into
19115# config.h.in to produce config.h.
19116
19117# Create a delimiter string that does not exist in confdefs.h, to ease
19118# handling of long lines.
19119ac_delim='%!_!# '
19120for ac_last_try in false false :; do
19121 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19122 if test -z "$ac_t"; then
19123 break
19124 elif $ac_last_try; then
19125 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19126$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19127 { (exit 1); exit 1; }; }
19128 else
19129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19130 fi
19131done
19132
19133# For the awk script, D is an array of macro values keyed by name,
19134# likewise P contains macro parameters if any. Preserve backslash
19135# newline sequences.
19136
19137ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19138sed -n '
19139s/.\{148\}/&'"$ac_delim"'/g
19140t rset
19141:rset
19142s/^[ ]*#[ ]*define[ ][ ]*/ /
19143t def
19144d
19145:def
19146s/\\$//
19147t bsnl
19148s/["\\]/\\&/g
19149s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19150D["\1"]=" \3"/p
19151s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19152d
19153:bsnl
19154s/["\\]/\\&/g
19155s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19156D["\1"]=" \3\\\\\\n"\\/p
19157t cont
19158s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19159t cont
19160d
19161:cont
19162n
19163s/.\{148\}/&'"$ac_delim"'/g
19164t clear
19165:clear
19166s/\\$//
19167t bsnlc
19168s/["\\]/\\&/g; s/^/"/; s/$/"/p
19169d
19170:bsnlc
19171s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19172b cont
19173' <confdefs.h | sed '
19174s/'"$ac_delim"'/"\\\
19175"/g' >>$CONFIG_STATUS || ac_write_fail=1
19176
19177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19178 for (key in D) D_is_set[key] = 1
19179 FS = "\a"
19180}
19181/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19182 line = \$ 0
19183 split(line, arg, " ")
19184 if (arg[1] == "#") {
19185 defundef = arg[2]
19186 mac1 = arg[3]
19187 } else {
19188 defundef = substr(arg[1], 2)
19189 mac1 = arg[2]
19190 }
19191 split(mac1, mac2, "(") #)
19192 macro = mac2[1]
19193 prefix = substr(line, 1, index(line, defundef) - 1)
19194 if (D_is_set[macro]) {
19195 # Preserve the white space surrounding the "#".
19196 print prefix "define", macro P[macro] D[macro]
19197 next
19198 } else {
19199 # Replace #undef with comments. This is necessary, for example,
19200 # in the case of _POSIX_SOURCE, which is predefined and required
19201 # on some systems where configure will not decide to define it.
19202 if (defundef == "undef") {
19203 print "/*", prefix defundef, macro, "*/"
19204 next
19205 }
19206 }
19207}
19208{ print }
19209_ACAWK
19210_ACEOF
19211cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19212 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19213$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19214 { (exit 1); exit 1; }; }
19215fi # test -n "$CONFIG_HEADERS"
19216
7a197a62 19217
ec6a6fbe
AK
19218eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19219shift
19220for ac_tag
7a197a62
AK
19221do
19222 case $ac_tag in
19223 :[FHLC]) ac_mode=$ac_tag; continue;;
19224 esac
19225 case $ac_mode$ac_tag in
19226 :[FHL]*:*);;
ec6a6fbe
AK
19227 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19228$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
19229 { (exit 1); exit 1; }; };;
19230 :[FH]-) ac_tag=-:-;;
19231 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19232 esac
19233 ac_save_IFS=$IFS
19234 IFS=:
19235 set x $ac_tag
19236 IFS=$ac_save_IFS
19237 shift
19238 ac_file=$1
19239 shift
19240
19241 case $ac_mode in
19242 :L) ac_source=$1;;
19243 :[FH])
19244 ac_file_inputs=
19245 for ac_f
19246 do
19247 case $ac_f in
19248 -) ac_f="$tmp/stdin";;
19249 *) # Look for the file first in the build tree, then in the source tree
19250 # (if the path is not absolute). The absolute path cannot be DOS-style,
19251 # because $ac_f cannot contain `:'.
19252 test -f "$ac_f" ||
19253 case $ac_f in
19254 [\\/$]*) false;;
19255 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19256 esac ||
ec6a6fbe
AK
19257 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19258$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
19259 { (exit 1); exit 1; }; };;
19260 esac
ec6a6fbe
AK
19261 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19262 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
19263 done
19264
19265 # Let's still pretend it is `configure' which instantiates (i.e., don't
19266 # use $as_me), people would be surprised to read:
19267 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
19268 configure_input='Generated from '`
19269 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19270 `' by configure.'
7a197a62
AK
19271 if test x"$ac_file" != x-; then
19272 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
19273 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19274$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 19275 fi
ec6a6fbe
AK
19276 # Neutralize special characters interpreted by sed in replacement strings.
19277 case $configure_input in #(
19278 *\&* | *\|* | *\\* )
19279 ac_sed_conf_input=`$as_echo "$configure_input" |
19280 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19281 *) ac_sed_conf_input=$configure_input;;
19282 esac
7a197a62
AK
19283
19284 case $ac_tag in
ec6a6fbe
AK
19285 *:-:* | *:-) cat >"$tmp/stdin" \
19286 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19287$as_echo "$as_me: error: could not create $ac_file" >&2;}
19288 { (exit 1); exit 1; }; } ;;
7a197a62
AK
19289 esac
19290 ;;
80992638 19291 esac
8106cdd5 19292
7a197a62 19293 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 19294$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19295 X"$ac_file" : 'X\(//\)[^/]' \| \
19296 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 19297 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19298$as_echo X"$ac_file" |
7a197a62
AK
19299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19300 s//\1/
19301 q
19302 }
19303 /^X\(\/\/\)[^/].*/{
19304 s//\1/
19305 q
19306 }
19307 /^X\(\/\/\)$/{
19308 s//\1/
19309 q
19310 }
19311 /^X\(\/\).*/{
19312 s//\1/
19313 q
19314 }
19315 s/.*/./; q'`
19316 { as_dir="$ac_dir"
19317 case $as_dir in #(
19318 -*) as_dir=./$as_dir;;
19319 esac
19320 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 19321 as_dirs=
7a197a62
AK
19322 while :; do
19323 case $as_dir in #(
ec6a6fbe 19324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
19325 *) as_qdir=$as_dir;;
19326 esac
19327 as_dirs="'$as_qdir' $as_dirs"
19328 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 19329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19330 X"$as_dir" : 'X\(//\)[^/]' \| \
19331 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 19332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19333$as_echo X"$as_dir" |
7a197a62
AK
19334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19335 s//\1/
19336 q
19337 }
19338 /^X\(\/\/\)[^/].*/{
19339 s//\1/
19340 q
19341 }
19342 /^X\(\/\/\)$/{
19343 s//\1/
19344 q
19345 }
19346 /^X\(\/\).*/{
19347 s//\1/
19348 q
19349 }
19350 s/.*/./; q'`
19351 test -d "$as_dir" && break
ad6254c5 19352 done
7a197a62 19353 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19354 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19355$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19356 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19357 ac_builddir=.
19358
7a197a62
AK
19359case "$ac_dir" in
19360.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19361*)
ec6a6fbe 19362 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19363 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19364 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19365 case $ac_top_builddir_sub in
19366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19368 esac ;;
19369esac
19370ac_abs_top_builddir=$ac_pwd
19371ac_abs_builddir=$ac_pwd$ac_dir_suffix
19372# for backward compatibility:
19373ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19374
19375case $srcdir in
7a197a62 19376 .) # We are building in place.
ad6254c5 19377 ac_srcdir=.
7a197a62
AK
19378 ac_top_srcdir=$ac_top_builddir_sub
19379 ac_abs_top_srcdir=$ac_pwd ;;
19380 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19381 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19382 ac_top_srcdir=$srcdir
19383 ac_abs_top_srcdir=$srcdir ;;
19384 *) # Relative name.
19385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19386 ac_top_srcdir=$ac_top_build_prefix$srcdir
19387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19388esac
7a197a62 19389ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19390
ad6254c5 19391
7a197a62
AK
19392 case $ac_mode in
19393 :F)
19394 #
19395 # CONFIG_FILE
19396 #
ad6254c5
AK
19397
19398 case $INSTALL in
19399 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19400 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19401 esac
fddafd51
ZK
19402 ac_MKDIR_P=$MKDIR_P
19403 case $MKDIR_P in
19404 [\\/$]* | ?:[\\/]* ) ;;
19405 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19406 esac
7a197a62 19407_ACEOF
795ca3e5 19408
ec6a6fbe 19409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19410# If the template does not know about datarootdir, expand it.
19411# FIXME: This hack should be removed a few years after 2.60.
19412ac_datarootdir_hack=; ac_datarootdir_seen=
19413
ec6a6fbe
AK
19414ac_sed_dataroot='
19415/datarootdir/ {
7a197a62
AK
19416 p
19417 q
19418}
19419/@datadir@/p
19420/@docdir@/p
19421/@infodir@/p
19422/@localedir@/p
19423/@mandir@/p
ec6a6fbe
AK
19424'
19425case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19426*datarootdir*) ac_datarootdir_seen=yes;;
19427*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19428 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19429$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19430_ACEOF
ec6a6fbe 19431cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19432 ac_datarootdir_hack='
19433 s&@datadir@&$datadir&g
19434 s&@docdir@&$docdir&g
19435 s&@infodir@&$infodir&g
19436 s&@localedir@&$localedir&g
19437 s&@mandir@&$mandir&g
19438 s&\\\${datarootdir}&$datarootdir&g' ;;
19439esac
19440_ACEOF
19441
19442# Neutralize VPATH when `$srcdir' = `.'.
19443# Shell code in configure.ac might set extrasub.
19444# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19446ac_sed_extra="$ac_vpsub
ad6254c5
AK
19447$extrasub
19448_ACEOF
ec6a6fbe 19449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19450:t
19451/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19452s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19453s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19454s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19455s&@srcdir@&$ac_srcdir&;t t
19456s&@abs_srcdir@&$ac_abs_srcdir&;t t
19457s&@top_srcdir@&$ac_top_srcdir&;t t
19458s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19459s&@builddir@&$ac_builddir&;t t
19460s&@abs_builddir@&$ac_abs_builddir&;t t
19461s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19462s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19463s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19464$ac_datarootdir_hack
ec6a6fbe
AK
19465"
19466eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19467 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19468$as_echo "$as_me: error: could not create $ac_file" >&2;}
19469 { (exit 1); exit 1; }; }
7a197a62
AK
19470
19471test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19474 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19475which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19476$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19477which seems to be undefined. Please make sure it is defined." >&2;}
19478
19479 rm -f "$tmp/stdin"
72b2cb61 19480 case $ac_file in
ec6a6fbe
AK
19481 -) cat "$tmp/out" && rm -f "$tmp/out";;
19482 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19483 esac \
19484 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19485$as_echo "$as_me: error: could not create $ac_file" >&2;}
19486 { (exit 1); exit 1; }; }
7a197a62
AK
19487 ;;
19488 :H)
19489 #
19490 # CONFIG_HEADER
19491 #
72b2cb61 19492 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19493 {
19494 $as_echo "/* $configure_input */" \
19495 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19496 } >"$tmp/config.h" \
19497 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19498$as_echo "$as_me: error: could not create $ac_file" >&2;}
19499 { (exit 1); exit 1; }; }
19500 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19501 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19502$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19503 else
ec6a6fbe
AK
19504 rm -f "$ac_file"
19505 mv "$tmp/config.h" "$ac_file" \
19506 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19507$as_echo "$as_me: error: could not create $ac_file" >&2;}
19508 { (exit 1); exit 1; }; }
72b2cb61
AK
19509 fi
19510 else
ec6a6fbe
AK
19511 $as_echo "/* $configure_input */" \
19512 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19513 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19514$as_echo "$as_me: error: could not create -" >&2;}
19515 { (exit 1); exit 1; }; }
72b2cb61 19516 fi
7a197a62
AK
19517 ;;
19518
19519
19520 esac
19521
19522done # for ac_tag
795ca3e5 19523
795ca3e5 19524
ad6254c5
AK
19525{ (exit 0); exit 0; }
19526_ACEOF
795ca3e5 19527chmod +x $CONFIG_STATUS
ad6254c5
AK
19528ac_clean_files=$ac_clean_files_save
19529
ec6a6fbe
AK
19530test $ac_write_fail = 0 ||
19531 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19532$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19533 { (exit 1); exit 1; }; }
19534
ad6254c5
AK
19535
19536# configure is writing to config.log, and then calls config.status.
19537# config.status does its own redirection, appending to config.log.
19538# Unfortunately, on DOS this fails, as config.log is still kept open
19539# by configure, so config.status won't be able to write to it; its
19540# output is simply discarded. So we exec the FD to /dev/null,
19541# effectively closing config.log, so it can be properly (re)opened and
19542# appended to by config.status. When coming back to configure, we
19543# need to make the FD available again.
19544if test "$no_create" != yes; then
19545 ac_cs_success=:
19546 ac_config_status_args=
19547 test "$silent" = yes &&
19548 ac_config_status_args="$ac_config_status_args --quiet"
19549 exec 5>/dev/null
19550 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19551 exec 5>>config.log
19552 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19553 # would make configure fail if this is the last instruction.
19554 $ac_cs_success || { (exit 1); exit 1; }
19555fi
ec6a6fbe
AK
19556if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19557 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19558$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19559fi
795ca3e5 19560
2dc95e1c
AK
19561
19562if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19563 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19564$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19565fi
This page took 2.447062 seconds and 5 git commands to generate.