]> sourceware.org Git - lvm2.git/blame - configure
Switch to using configure --with-default-data-alignment=<NUM> to
[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
AK
696DEFAULT_LOCK_DIR
697DEFAULT_CACHE_SUBDIR
698DEFAULT_BACKUP_SUBDIR
699DEFAULT_ARCHIVE_SUBDIR
700DEFAULT_SYS_DIR
ec6a6fbe
AK
701DEBUG
702COPTIMISE_FLAG
e2997b73 703CONFDIR
ec6a6fbe
AK
704CMDLIB
705CLVMD
706CLUSTER
707CLDWHOLEARCHIVE
708CLDNOWHOLEARCHIVE
709CLDFLAGS
710BUILD_DMEVENTD
66fd4529 711BUILD_CMIRRORD
572fefeb 712APPLIB
ec6a6fbe
AK
713MODPROBE_CMD
714MSGFMT
715LVM2CMD_LIB
572fefeb 716LVM2APP_LIB
54b362f9
AK
717VALGRIND
718RUBY19
fd4728e1 719GENPNG
ec6a6fbe
AK
720GENHTML
721LCOV
90c80887
AK
722SACKPT_LIBS
723SACKPT_CFLAGS
a946372e
AK
724DLM_LIBS
725DLM_CFLAGS
e2997b73
AK
726CPG_LIBS
727CPG_CFLAGS
728CONFDB_LIBS
729CONFDB_CFLAGS
a946372e
AK
730SALCK_LIBS
731SALCK_CFLAGS
e2997b73
AK
732QUORUM_LIBS
733QUORUM_CFLAGS
a946372e
AK
734COROSYNC_LIBS
735COROSYNC_CFLAGS
736CMAN_LIBS
737CMAN_CFLAGS
738GULM_LIBS
739GULM_CFLAGS
740CCS_LIBS
741CCS_CFLAGS
742PKGCONFIGINIT_LIBS
743PKGCONFIGINIT_CFLAGS
e2997b73 744PKG_CONFIG
ec6a6fbe
AK
745POW_LIB
746LIBOBJS
747ALLOCA
748CSCOPE_CMD
749CFLOW_CMD
750RANLIB
751MKDIR_P
752SET_MAKE
753LN_S
754INSTALL_DATA
755INSTALL_SCRIPT
756INSTALL_PROGRAM
757EGREP
758GREP
759CPP
760OBJEXT
761EXEEXT
762ac_ct_CC
763CPPFLAGS
764LDFLAGS
765CFLAGS
766CC
767AWK
768SED
769target_os
770target_vendor
771target_cpu
772target
773host_os
774host_vendor
775host_cpu
776host
777build_os
778build_vendor
779build_cpu
780build
781target_alias
782host_alias
783build_alias
784LIBS
785ECHO_T
786ECHO_N
787ECHO_C
788DEFS
789mandir
790localedir
791libdir
792psdir
793pdfdir
794dvidir
795htmldir
796infodir
797docdir
798oldincludedir
799includedir
800localstatedir
801sharedstatedir
802sysconfdir
803datadir
804datarootdir
805libexecdir
806sbindir
807bindir
808program_transform_name
809prefix
810exec_prefix
811PACKAGE_BUGREPORT
812PACKAGE_STRING
813PACKAGE_VERSION
814PACKAGE_TARNAME
815PACKAGE_NAME
816PATH_SEPARATOR
817SHELL'
ad6254c5 818ac_subst_files=''
ec6a6fbe
AK
819ac_user_opts='
820enable_option_checking
821enable_static_link
822with_user
823with_group
824with_device_uid
825with_device_gid
826with_device_mode
827enable_lvm1_fallback
828with_lvm1
829with_pool
830with_cluster
831with_snapshots
832with_mirrors
8fea97b7 833with_replicators
ec6a6fbe
AK
834enable_readline
835enable_realtime
836with_clvmd
8c4e8a18 837with_clvmd_pidfile
66fd4529
AK
838enable_cmirrord
839with_cmirrord_pidfile
ec6a6fbe
AK
840enable_debug
841with_optimisation
842enable_profiling
54b362f9 843enable_testing
d1e8046f 844enable_valgrind_pool
ec6a6fbe 845enable_devmapper
a5f46f6a
AK
846enable_udev_sync
847enable_udev_rules
ec6a6fbe 848enable_compat
95eaa683 849enable_units_compat
ec6a6fbe
AK
850enable_ioctl
851enable_o_direct
572fefeb 852enable_applib
ec6a6fbe
AK
853enable_cmdlib
854enable_pkgconfig
23b059e7 855enable_write_install
ec6a6fbe
AK
856enable_fsadm
857enable_dmeventd
858enable_selinux
859enable_nls
860with_localedir
861with_confdir
862with_staticdir
863with_usrlibdir
864with_usrsbindir
a5f46f6a 865with_udev_prefix
78ce7acc 866with_udevdir
ec6a6fbe
AK
867with_dmeventd_pidfile
868with_dmeventd_path
8bae0a1e 869with_default_run_dir
3399ae32
AK
870with_default_system_dir
871with_default_archive_subdir
872with_default_backup_subdir
873with_default_cache_subdir
874with_default_locking_dir
ec6a6fbe
AK
875with_interface
876'
7a197a62
AK
877 ac_precious_vars='build_alias
878host_alias
879target_alias
880CC
881CFLAGS
882LDFLAGS
25fbec5b 883LIBS
7a197a62 884CPPFLAGS
e2997b73
AK
885CPP
886PKG_CONFIG
a946372e
AK
887PKGCONFIGINIT_CFLAGS
888PKGCONFIGINIT_LIBS
889CCS_CFLAGS
890CCS_LIBS
891GULM_CFLAGS
892GULM_LIBS
893CMAN_CFLAGS
894CMAN_LIBS
895COROSYNC_CFLAGS
896COROSYNC_LIBS
e2997b73
AK
897QUORUM_CFLAGS
898QUORUM_LIBS
a946372e
AK
899SALCK_CFLAGS
900SALCK_LIBS
e2997b73
AK
901CONFDB_CFLAGS
902CONFDB_LIBS
903CPG_CFLAGS
a946372e
AK
904CPG_LIBS
905DLM_CFLAGS
90c80887
AK
906DLM_LIBS
907SACKPT_CFLAGS
908SACKPT_LIBS'
7a197a62 909
795ca3e5
AK
910
911# Initialize some variables set by options.
ad6254c5
AK
912ac_init_help=
913ac_init_version=false
ec6a6fbe
AK
914ac_unrecognized_opts=
915ac_unrecognized_sep=
795ca3e5
AK
916# The variables have the same names as the options, with
917# dashes changed to underlines.
ad6254c5 918cache_file=/dev/null
795ca3e5 919exec_prefix=NONE
795ca3e5 920no_create=
795ca3e5
AK
921no_recursion=
922prefix=NONE
923program_prefix=NONE
924program_suffix=NONE
925program_transform_name=s,x,x,
926silent=
927site=
928srcdir=
795ca3e5
AK
929verbose=
930x_includes=NONE
931x_libraries=NONE
ad6254c5
AK
932
933# Installation directory options.
934# These are left unexpanded so users can "make install exec_prefix=/foo"
935# and all the variables that are supposed to be based on exec_prefix
936# by default will actually change.
937# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 938# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
939bindir='${exec_prefix}/bin'
940sbindir='${exec_prefix}/sbin'
941libexecdir='${exec_prefix}/libexec'
7a197a62
AK
942datarootdir='${prefix}/share'
943datadir='${datarootdir}'
795ca3e5
AK
944sysconfdir='${prefix}/etc'
945sharedstatedir='${prefix}/com'
946localstatedir='${prefix}/var'
795ca3e5
AK
947includedir='${prefix}/include'
948oldincludedir='/usr/include'
7a197a62
AK
949docdir='${datarootdir}/doc/${PACKAGE}'
950infodir='${datarootdir}/info'
951htmldir='${docdir}'
952dvidir='${docdir}'
953pdfdir='${docdir}'
954psdir='${docdir}'
955libdir='${exec_prefix}/lib'
956localedir='${datarootdir}/locale'
957mandir='${datarootdir}/man'
795ca3e5 958
795ca3e5 959ac_prev=
7a197a62 960ac_dashdash=
795ca3e5
AK
961for ac_option
962do
795ca3e5
AK
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
7a197a62 965 eval $ac_prev=\$ac_option
795ca3e5
AK
966 ac_prev=
967 continue
968 fi
969
7a197a62
AK
970 case $ac_option in
971 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *) ac_optarg=yes ;;
973 esac
795ca3e5
AK
974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
7a197a62
AK
977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
795ca3e5
AK
980
981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 984 bindir=$ac_optarg ;;
795ca3e5
AK
985
986 -build | --build | --buil | --bui | --bu)
ad6254c5 987 ac_prev=build_alias ;;
795ca3e5 988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 989 build_alias=$ac_optarg ;;
795ca3e5
AK
990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
795ca3e5 1000
7a197a62 1001 -datadir | --datadir | --datadi | --datad)
795ca3e5 1002 ac_prev=datadir ;;
7a197a62 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1004 datadir=$ac_optarg ;;
795ca3e5 1005
7a197a62
AK
1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
795ca3e5 1013 -disable-* | --disable-*)
ec6a6fbe 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1015 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1017 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1018 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023"enable_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
7a197a62
AK
1029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
795ca3e5
AK
1039
1040 -enable-* | --enable-*)
ec6a6fbe 1041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1042 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1045 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"enable_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
ad6254c5 1064 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
ad6254c5
AK
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
795ca3e5
AK
1076
1077 -host | --host | --hos | --ho)
ad6254c5 1078 ac_prev=host_alias ;;
795ca3e5 1079 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1080 host_alias=$ac_optarg ;;
795ca3e5 1081
7a197a62
AK
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
795ca3e5
AK
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1093 includedir=$ac_optarg ;;
795ca3e5
AK
1094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1098 infodir=$ac_optarg ;;
795ca3e5
AK
1099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1103 libdir=$ac_optarg ;;
795ca3e5
AK
1104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1110 libexecdir=$ac_optarg ;;
795ca3e5 1111
7a197a62
AK
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
795ca3e5 1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1118 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1122 localstatedir=$ac_optarg ;;
795ca3e5
AK
1123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1127 mandir=$ac_optarg ;;
795ca3e5
AK
1128
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1134 | --no-cr | --no-c | -n)
795ca3e5
AK
1135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1148 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1149
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1153 prefix=$ac_optarg ;;
795ca3e5
AK
1154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1160 program_prefix=$ac_optarg ;;
795ca3e5
AK
1161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1167 program_suffix=$ac_optarg ;;
795ca3e5
AK
1168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1184 program_transform_name=$ac_optarg ;;
795ca3e5 1185
7a197a62
AK
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
795ca3e5
AK
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
ad6254c5 1204 sbindir=$ac_optarg ;;
795ca3e5
AK
1205
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
ad6254c5 1215 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1216
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
ad6254c5 1220 site=$ac_optarg ;;
795ca3e5
AK
1221
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1225 srcdir=$ac_optarg ;;
795ca3e5
AK
1226
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1232 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1233
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1235 ac_prev=target_alias ;;
795ca3e5 1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1237 target_alias=$ac_optarg ;;
795ca3e5
AK
1238
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1241
ad6254c5
AK
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
795ca3e5
AK
1244
1245 -with-* | --with-*)
ec6a6fbe 1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1247 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1250 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1251 ac_useropt_orig=$ac_useropt
1252 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1254 *"
1255"with_$ac_useropt"
1256"*) ;;
1257 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1258 ac_unrecognized_sep=', ';;
1259 esac
1260 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1261
1262 -without-* | --without-*)
ec6a6fbe 1263 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1264 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1266 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1267 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
1276 esac
1277 eval with_$ac_useropt=no ;;
795ca3e5
AK
1278
1279 --x)
1280 # Obsolete; use --with-x.
1281 with_x=yes ;;
1282
1283 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1284 | --x-incl | --x-inc | --x-in | --x-i)
1285 ac_prev=x_includes ;;
1286 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1287 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1288 x_includes=$ac_optarg ;;
795ca3e5
AK
1289
1290 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1291 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1292 ac_prev=x_libraries ;;
1293 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1294 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1295 x_libraries=$ac_optarg ;;
795ca3e5 1296
ec6a6fbe 1297 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1298Try \`$0 --help' for more information." >&2
1299 { (exit 1); exit 1; }; }
795ca3e5
AK
1300 ;;
1301
ad6254c5
AK
1302 *=*)
1303 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1306 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1307 { (exit 1); exit 1; }; }
7a197a62 1308 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1309 export $ac_envvar ;;
1310
795ca3e5 1311 *)
ad6254c5 1312 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1316 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1317 ;;
1318
1319 esac
1320done
1321
1322if test -n "$ac_prev"; then
ad6254c5 1323 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1324 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1325 { (exit 1); exit 1; }; }
795ca3e5 1326fi
795ca3e5 1327
ec6a6fbe
AK
1328if test -n "$ac_unrecognized_opts"; then
1329 case $enable_option_checking in
1330 no) ;;
1331 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1332 { (exit 1); exit 1; }; } ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335fi
1336
1337# Check all directory arguments for consistency.
7a197a62
AK
1338for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
795ca3e5 1342do
7a197a62 1343 eval ac_val=\$$ac_var
ec6a6fbe
AK
1344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
ad6254c5 1351 case $ac_val in
7a197a62
AK
1352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1354 esac
ec6a6fbe 1355 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1356 { (exit 1); exit 1; }; }
795ca3e5
AK
1357done
1358
ad6254c5
AK
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
ec6a6fbe 1370 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
8106cdd5 1376
ad6254c5
AK
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
795ca3e5 1381
795ca3e5 1382
7a197a62
AK
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1386 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1389 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1390 { (exit 1); exit 1; }; }
1391
1392
795ca3e5
AK
1393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
7a197a62 1396 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402$as_echo X"$as_myself" |
7a197a62
AK
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
795ca3e5 1420 srcdir=$ac_confdir
7a197a62 1421 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
7a197a62
AK
1427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1429 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1430 { (exit 1); exit 1; }; }
795ca3e5 1431fi
7a197a62
AK
1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
ec6a6fbe 1434 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1435 { (exit 1); exit 1; }; }
7a197a62
AK
1436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
ad6254c5
AK
1453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
1461\`configure' configures this package to adapt to many kinds of systems.
1462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
ad6254c5
AK
1481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1483 [$ac_default_prefix]
ad6254c5 1484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1485 [PREFIX]
ad6254c5
AK
1486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
ec6a6fbe
AK
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
1498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526
1527 cat <<\_ACEOF
1528
1529Optional Features:
ec6a6fbe 1530 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1533 --enable-static_link use this to link the tools to their libraries
1534 statically (default is dynamic linking
1535 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1536 device-mapper is missing from the kernel
71082be4
ZK
1537 --disable-readline disable readline support
1538 --enable-realtime enable realtime clock support
1539 --enable-cmirrord enable the cluster mirror log daemon
1540 --enable-debug enable debugging
1541 --enable-profiling gather gcov profiling data
54b362f9 1542 --enable-testing enable testing targets in the makefile
d1e8046f 1543 --enable-valgrind-pool enable valgrind awareness of pools
71082be4
ZK
1544 --disable-devmapper disable LVM2 device-mapper interaction
1545 --enable-udev_sync enable synchronisation with udev processing
1546 --enable-udev_rules install rule files needed for udev synchronisation
1547 --enable-compat enable support for old device-mapper versions
1548 --enable-units-compat enable output compatibility with old versions that
1549 that do not use KiB-style unit suffixes
1550 --disable-driver disable calls to device-mapper in the kernel
1551 --disable-o_direct disable O_DIRECT
1552 --enable-applib build application library
1553 --enable-cmdlib build shared command library
1554 --enable-pkgconfig install pkgconfig support
1555 --enable-write_install install user writable files
1556 --disable-fsadm disable fsadm
1557 --enable-dmeventd enable the device-mapper event daemon
1558 --disable-selinux disable selinux support
1559 --enable-nls enable Native Language Support
ad6254c5
AK
1560
1561Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1564 --with-user=USER set the owner of installed files [USER=]
1565 --with-group=GROUP set the group owner of installed files [GROUP=]
1566 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1567 --with-device-gid=GID set the group used for new device nodes [GID=0]
1568 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1569 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1570 [TYPE=internal]
ad6254c5 1571 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1572 [TYPE=internal]
1573 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1574 [TYPE=internal]
1575 --with-snapshots=TYPE snapshot support: internal/shared/none
1576 [TYPE=internal]
1577 --with-mirrors=TYPE mirror support: internal/shared/none
1578 [TYPE=internal]
1579 --with-replicators=TYPE replicator support: internal/shared/none
1580 [TYPE=none]
1581 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1582 The following cluster manager combinations are valid:
a946372e
AK
1583 * cman,gulm (RHEL4 or equivalent)
1584 * cman (RHEL5 or equivalent)
1585 * cman,corosync,openais (or selection of them)
1091650a 1586 * singlenode (localhost only)
a946372e
AK
1587 * all (autodetect)
1588 * none (disable build)
71082be4 1589 [TYPE=none]
8c4e8a18
FDN
1590 --with-clvmd-pidfile=PATH
1591 clvmd pidfile [/var/run/clvmd.pid]
71082be4
ZK
1592 --with-cmirrord-pidfile=PATH
1593 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1594 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1595 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1596 --with-confdir=DIR configuration files in DIR [/etc]
1597 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1598 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1599 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1600 --with-udev-prefix=UPREFIX
1601 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1602 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1603 --with-dmeventd-pidfile=PATH
1604 dmeventd pidfile [/var/run/dmeventd.pid]
1605 --with-dmeventd-path=PATH
1606 dmeventd path [EPREFIX/sbin/dmeventd]
8bae0a1e 1607 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4
ZK
1608 --with-default-system-dir=DIR
1609 default LVM system directory [/etc/lvm]
1610 --with-default-archive-subdir=SUBDIR
1611 default metadata archive subdir [archive]
1612 --with-default-backup-subdir=SUBDIR
1613 default metadata backup subdir [backup]
1614 --with-default-cache-subdir=SUBDIR
1615 default metadata cache subdir [cache]
1616 --with-default-locking-dir=DIR
1617 default locking directory [/var/lock/lvm]
1618 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1619
1620Some influential environment variables:
1621 CC C compiler command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1624 nonstandard directory <lib dir>
25fbec5b 1625 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1626 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1627 you have headers in a nonstandard directory <include dir>
ad6254c5 1628 CPP C preprocessor
e2997b73 1629 PKG_CONFIG path to pkg-config utility
a946372e
AK
1630 PKGCONFIGINIT_CFLAGS
1631 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1632 PKGCONFIGINIT_LIBS
1633 linker flags for PKGCONFIGINIT, overriding pkg-config
1634 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1635 CCS_LIBS linker flags for CCS, overriding pkg-config
1636 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1637 GULM_LIBS linker flags for GULM, overriding pkg-config
1638 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1639 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1640 COROSYNC_CFLAGS
1641 C compiler flags for COROSYNC, overriding pkg-config
1642 COROSYNC_LIBS
1643 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1644 QUORUM_CFLAGS
1645 C compiler flags for QUORUM, overriding pkg-config
1646 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1647 SALCK_CFLAGS
1648 C compiler flags for SALCK, overriding pkg-config
1649 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1650 CONFDB_CFLAGS
1651 C compiler flags for CONFDB, overriding pkg-config
1652 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1653 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1654 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1655 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1656 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1657 SACKPT_CFLAGS
1658 C compiler flags for SACKPT, overriding pkg-config
1659 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1660
1661Use these variables to override the choices made by `configure' or to help
1662it to find libraries and programs with nonstandard names/locations.
1663
1664_ACEOF
7a197a62 1665ac_status=$?
ad6254c5
AK
1666fi
1667
1668if test "$ac_init_help" = "recursive"; then
1669 # If there are subdirs, report their specific --help.
ad6254c5 1670 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1671 test -d "$ac_dir" ||
1672 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1673 continue
ad6254c5
AK
1674 ac_builddir=.
1675
7a197a62
AK
1676case "$ac_dir" in
1677.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678*)
ec6a6fbe 1679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1680 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1682 case $ac_top_builddir_sub in
1683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1685 esac ;;
1686esac
1687ac_abs_top_builddir=$ac_pwd
1688ac_abs_builddir=$ac_pwd$ac_dir_suffix
1689# for backward compatibility:
1690ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1691
1692case $srcdir in
7a197a62 1693 .) # We are building in place.
ad6254c5 1694 ac_srcdir=.
7a197a62
AK
1695 ac_top_srcdir=$ac_top_builddir_sub
1696 ac_abs_top_srcdir=$ac_pwd ;;
1697 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1698 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1699 ac_top_srcdir=$srcdir
1700 ac_abs_top_srcdir=$srcdir ;;
1701 *) # Relative name.
1702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1703 ac_top_srcdir=$ac_top_build_prefix$srcdir
1704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1705esac
7a197a62
AK
1706ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1707
1708 cd "$ac_dir" || { ac_status=$?; continue; }
1709 # Check for guested configure.
1710 if test -f "$ac_srcdir/configure.gnu"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1713 elif test -f "$ac_srcdir/configure"; then
1714 echo &&
1715 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1716 else
ec6a6fbe 1717 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1718 fi || ac_status=$?
1719 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1720 done
1721fi
1722
7a197a62 1723test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1724if $ac_init_version; then
1725 cat <<\_ACEOF
7a197a62 1726configure
ec6a6fbe 1727generated by GNU Autoconf 2.63
ad6254c5 1728
7a197a62 1729Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17302002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1731This configure script is free software; the Free Software Foundation
1732gives unlimited permission to copy, distribute and modify it.
1733_ACEOF
7a197a62 1734 exit
ad6254c5 1735fi
7a197a62 1736cat >config.log <<_ACEOF
ad6254c5
AK
1737This file contains any messages produced by compilers while
1738running configure, to aid debugging if configure makes a mistake.
1739
1740It was created by $as_me, which was
ec6a6fbe 1741generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1742
1743 $ $0 $@
1744
1745_ACEOF
7a197a62 1746exec 5>>config.log
ad6254c5
AK
1747{
1748cat <<_ASUNAME
1749## --------- ##
1750## Platform. ##
1751## --------- ##
1752
1753hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1754uname -m = `(uname -m) 2>/dev/null || echo unknown`
1755uname -r = `(uname -r) 2>/dev/null || echo unknown`
1756uname -s = `(uname -s) 2>/dev/null || echo unknown`
1757uname -v = `(uname -v) 2>/dev/null || echo unknown`
1758
1759/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1760/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1761
1762/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1763/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1764/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1765/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1766/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1767/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1768/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1769
1770_ASUNAME
1771
1772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1773for as_dir in $PATH
1774do
1775 IFS=$as_save_IFS
1776 test -z "$as_dir" && as_dir=.
ec6a6fbe 1777 $as_echo "PATH: $as_dir"
ad6254c5 1778done
7a197a62 1779IFS=$as_save_IFS
ad6254c5
AK
1780
1781} >&5
1782
1783cat >&5 <<_ACEOF
1784
1785
1786## ----------- ##
1787## Core tests. ##
1788## ----------- ##
1789
1790_ACEOF
1791
1792
1793# Keep a trace of the command line.
1794# Strip out --no-create and --no-recursion so they do not pile up.
1795# Strip out --silent because we don't want to record it for future runs.
1796# Also quote any args containing shell meta-characters.
1797# Make two passes to allow for proper duplicate-argument suppression.
1798ac_configure_args=
1799ac_configure_args0=
1800ac_configure_args1=
ad6254c5
AK
1801ac_must_keep_next=false
1802for ac_pass in 1 2
1803do
1804 for ac_arg
1805 do
1806 case $ac_arg in
1807 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1808 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1809 | -silent | --silent | --silen | --sile | --sil)
1810 continue ;;
7a197a62 1811 *\'*)
ec6a6fbe 1812 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1813 esac
1814 case $ac_pass in
1815 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1816 2)
1817 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1818 if test $ac_must_keep_next = true; then
8a2fc586 1819 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1820 else
8a2fc586
AK
1821 case $ac_arg in
1822 *=* | --config-cache | -C | -disable-* | --disable-* \
1823 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1824 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1825 | -with-* | --with-* | -without-* | --without-* | --x)
1826 case "$ac_configure_args0 " in
1827 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1828 esac
1829 ;;
1830 -* ) ac_must_keep_next=true ;;
1831 esac
ad6254c5 1832 fi
7a197a62 1833 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1834 ;;
1835 esac
1836 done
1837done
1838$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1839$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1840
1841# When interrupted or exit'd, cleanup temporary files, and complete
1842# config.log. We remove comments because anyway the quotes in there
1843# would cause problems or look ugly.
7a197a62
AK
1844# WARNING: Use '\'' to represent an apostrophe within the trap.
1845# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1846trap 'exit_status=$?
1847 # Save into config.log some information that might help in debugging.
1848 {
1849 echo
1850
1851 cat <<\_ASBOX
1852## ---------------- ##
1853## Cache variables. ##
1854## ---------------- ##
1855_ASBOX
1856 echo
1857 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1858(
1859 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1860 eval ac_val=\$$ac_var
1861 case $ac_val in #(
1862 *${as_nl}*)
1863 case $ac_var in #(
ec6a6fbe
AK
1864 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1865$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1866 esac
1867 case $ac_var in #(
1868 _ | IFS | as_nl) ;; #(
ec6a6fbe 1869 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1870 *) $as_unset $ac_var ;;
1871 esac ;;
1872 esac
1873 done
ad6254c5 1874 (set) 2>&1 |
7a197a62
AK
1875 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1876 *${as_nl}ac_space=\ *)
ad6254c5 1877 sed -n \
7a197a62
AK
1878 "s/'\''/'\''\\\\'\'''\''/g;
1879 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1880 ;; #(
ad6254c5 1881 *)
7a197a62 1882 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1883 ;;
7a197a62
AK
1884 esac |
1885 sort
1886)
ad6254c5
AK
1887 echo
1888
1889 cat <<\_ASBOX
1890## ----------------- ##
1891## Output variables. ##
1892## ----------------- ##
1893_ASBOX
1894 echo
1895 for ac_var in $ac_subst_vars
1896 do
7a197a62
AK
1897 eval ac_val=\$$ac_var
1898 case $ac_val in
ec6a6fbe 1899 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1900 esac
ec6a6fbe 1901 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1902 done | sort
1903 echo
1904
1905 if test -n "$ac_subst_files"; then
1906 cat <<\_ASBOX
7a197a62
AK
1907## ------------------- ##
1908## File substitutions. ##
1909## ------------------- ##
ad6254c5
AK
1910_ASBOX
1911 echo
1912 for ac_var in $ac_subst_files
1913 do
7a197a62
AK
1914 eval ac_val=\$$ac_var
1915 case $ac_val in
ec6a6fbe 1916 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1917 esac
ec6a6fbe 1918 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1919 done | sort
1920 echo
1921 fi
1922
1923 if test -s confdefs.h; then
1924 cat <<\_ASBOX
1925## ----------- ##
1926## confdefs.h. ##
1927## ----------- ##
1928_ASBOX
1929 echo
7a197a62 1930 cat confdefs.h
ad6254c5
AK
1931 echo
1932 fi
1933 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1934 $as_echo "$as_me: caught signal $ac_signal"
1935 $as_echo "$as_me: exit $exit_status"
ad6254c5 1936 } >&5
7a197a62
AK
1937 rm -f core *.core core.conftest.* &&
1938 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1939 exit $exit_status
7a197a62 1940' 0
ad6254c5
AK
1941for ac_signal in 1 2 13 15; do
1942 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1943done
1944ac_signal=0
1945
1946# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1947rm -f -r conftest* confdefs.h
ad6254c5
AK
1948
1949# Predefined preprocessor variables.
1950
1951cat >>confdefs.h <<_ACEOF
1952#define PACKAGE_NAME "$PACKAGE_NAME"
1953_ACEOF
1954
1955
1956cat >>confdefs.h <<_ACEOF
1957#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1958_ACEOF
1959
1960
1961cat >>confdefs.h <<_ACEOF
1962#define PACKAGE_VERSION "$PACKAGE_VERSION"
1963_ACEOF
8106cdd5 1964
ad6254c5
AK
1965
1966cat >>confdefs.h <<_ACEOF
1967#define PACKAGE_STRING "$PACKAGE_STRING"
1968_ACEOF
1969
1970
1971cat >>confdefs.h <<_ACEOF
1972#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1973_ACEOF
1974
1975
1976# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1977# Prefer an explicitly selected file to automatically selected ones.
1978ac_site_file1=NONE
1979ac_site_file2=NONE
7a197a62 1980if test -n "$CONFIG_SITE"; then
ec6a6fbe 1981 ac_site_file1=$CONFIG_SITE
7a197a62 1982elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1983 ac_site_file1=$prefix/share/config.site
1984 ac_site_file2=$prefix/etc/config.site
7a197a62 1985else
ec6a6fbe
AK
1986 ac_site_file1=$ac_default_prefix/share/config.site
1987 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1988fi
ec6a6fbe 1989for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1990do
ec6a6fbe 1991 test "x$ac_site_file" = xNONE && continue
795ca3e5 1992 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1993 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1994$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1995 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1996 . "$ac_site_file"
1997 fi
1998done
1999
2000if test -r "$cache_file"; then
ad6254c5
AK
2001 # Some versions of bash will fail to source /dev/null (special
2002 # files actually), so we avoid doing that.
2003 if test -f "$cache_file"; then
ec6a6fbe
AK
2004 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2005$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 2006 case $cache_file in
7a197a62
AK
2007 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2008 *) . "./$cache_file";;
ad6254c5
AK
2009 esac
2010 fi
795ca3e5 2011else
ec6a6fbe
AK
2012 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2013$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2014 >$cache_file
2015fi
2016
2017# Check that the precious variables saved in the cache have kept the same
2018# value.
2019ac_cache_corrupted=false
7a197a62 2020for ac_var in $ac_precious_vars; do
ad6254c5
AK
2021 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2022 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2023 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2024 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2025 case $ac_old_set,$ac_new_set in
2026 set,)
ec6a6fbe
AK
2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2028$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2029 ac_cache_corrupted=: ;;
2030 ,set)
ec6a6fbe
AK
2031 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2032$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2033 ac_cache_corrupted=: ;;
2034 ,);;
2035 *)
2036 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2037 # differences in whitespace do not lead to failure.
2038 ac_old_val_w=`echo x $ac_old_val`
2039 ac_new_val_w=`echo x $ac_new_val`
2040 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2041 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2042$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2043 ac_cache_corrupted=:
2044 else
2045 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2046$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2047 eval $ac_var=\$ac_old_val
2048 fi
2049 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2050$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2051 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2052$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2053 fi;;
2054 esac
2055 # Pass precious variables to config.status.
2056 if test "$ac_new_set" = set; then
2057 case $ac_new_val in
ec6a6fbe 2058 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2059 *) ac_arg=$ac_var=$ac_new_val ;;
2060 esac
2061 case " $ac_configure_args " in
2062 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2063 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2064 esac
2065 fi
2066done
2067if $ac_cache_corrupted; then
ec6a6fbe
AK
2068 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2070 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2071$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2072 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2073$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2074 { (exit 1); exit 1; }; }
795ca3e5
AK
2075fi
2076
ad6254c5
AK
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
7a197a62
AK
2093ac_ext=c
2094ac_cpp='$CPP $CPPFLAGS'
2095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2098
795ca3e5
AK
2099
2100
7a197a62 2101ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2102
2103
80992638 2104################################################################################
795ca3e5 2105ac_aux_dir=
7a197a62
AK
2106for ac_dir in autoconf "$srcdir"/autoconf; do
2107 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2108 ac_aux_dir=$ac_dir
2109 ac_install_sh="$ac_aux_dir/install-sh -c"
2110 break
7a197a62 2111 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/install.sh -c"
2114 break
7a197a62 2115 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/shtool install -c"
2118 break
795ca3e5
AK
2119 fi
2120done
2121if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2122 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2123$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2124 { (exit 1); exit 1; }; }
795ca3e5 2125fi
7a197a62
AK
2126
2127# These three variables are undocumented and unsupported,
2128# and are intended to be withdrawn in a future Autoconf release.
2129# They can cause serious problems if a builder's source tree is in a directory
2130# whose full name contains unusual characters.
2131ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2132ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2133ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2134
8ce0cbda
AK
2135
2136
ad6254c5 2137################################################################################
8ce0cbda 2138# Make sure we can run config.sub.
7a197a62 2139$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2140 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2141$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2142 { (exit 1); exit 1; }; }
2143
ec6a6fbe
AK
2144{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2145$as_echo_n "checking build system type... " >&6; }
ad6254c5 2146if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2147 $as_echo_n "(cached) " >&6
ad6254c5 2148else
7a197a62
AK
2149 ac_build_alias=$build_alias
2150test "x$ac_build_alias" = x &&
2151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2152test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2153 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2154$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2155 { (exit 1); exit 1; }; }
7a197a62 2156ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2157 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2158$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2159 { (exit 1); exit 1; }; }
2160
2161fi
ec6a6fbe
AK
2162{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2163$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2164case $ac_cv_build in
2165*-*-*) ;;
ec6a6fbe
AK
2166*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2167$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2168 { (exit 1); exit 1; }; };;
2169esac
ad6254c5 2170build=$ac_cv_build
7a197a62
AK
2171ac_save_IFS=$IFS; IFS='-'
2172set x $ac_cv_build
2173shift
2174build_cpu=$1
2175build_vendor=$2
2176shift; shift
2177# Remember, the first character of IFS is used to create $*,
2178# except with old shells:
2179build_os=$*
2180IFS=$ac_save_IFS
2181case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2182
2183
ec6a6fbe
AK
2184{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2185$as_echo_n "checking host system type... " >&6; }
ad6254c5 2186if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2187 $as_echo_n "(cached) " >&6
ad6254c5 2188else
7a197a62
AK
2189 if test "x$host_alias" = x; then
2190 ac_cv_host=$ac_cv_build
2191else
2192 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2193 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2194$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2195 { (exit 1); exit 1; }; }
7a197a62 2196fi
ad6254c5
AK
2197
2198fi
ec6a6fbe
AK
2199{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2200$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2201case $ac_cv_host in
2202*-*-*) ;;
ec6a6fbe
AK
2203*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2204$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2205 { (exit 1); exit 1; }; };;
2206esac
ad6254c5 2207host=$ac_cv_host
7a197a62
AK
2208ac_save_IFS=$IFS; IFS='-'
2209set x $ac_cv_host
2210shift
2211host_cpu=$1
2212host_vendor=$2
2213shift; shift
2214# Remember, the first character of IFS is used to create $*,
2215# except with old shells:
2216host_os=$*
2217IFS=$ac_save_IFS
2218case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2219
2220
ec6a6fbe
AK
2221{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2222$as_echo_n "checking target system type... " >&6; }
ad6254c5 2223if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2224 $as_echo_n "(cached) " >&6
ad6254c5 2225else
7a197a62
AK
2226 if test "x$target_alias" = x; then
2227 ac_cv_target=$ac_cv_host
2228else
2229 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2230 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2231$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2232 { (exit 1); exit 1; }; }
7a197a62 2233fi
8ce0cbda 2234
ad6254c5 2235fi
ec6a6fbe
AK
2236{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2237$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2238case $ac_cv_target in
2239*-*-*) ;;
ec6a6fbe
AK
2240*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2241$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2242 { (exit 1); exit 1; }; };;
2243esac
ad6254c5 2244target=$ac_cv_target
7a197a62
AK
2245ac_save_IFS=$IFS; IFS='-'
2246set x $ac_cv_target
2247shift
2248target_cpu=$1
2249target_vendor=$2
2250shift; shift
2251# Remember, the first character of IFS is used to create $*,
2252# except with old shells:
2253target_os=$*
2254IFS=$ac_save_IFS
2255case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2256
8ce0cbda 2257
ad6254c5
AK
2258# The aliases save the names the user supplied, while $host etc.
2259# will get canonicalized.
2260test -n "$target_alias" &&
8ce0cbda
AK
2261 test "$program_prefix$program_suffix$program_transform_name" = \
2262 NONENONEs,x,x, &&
2263 program_prefix=${target_alias}-
2264
8ce0cbda
AK
2265case "$host_os" in
2266 linux*)
7f54ef36 2267 CFLAGS="$CFLAGS"
8ce0cbda
AK
2268 COPTIMISE_FLAG="-O2"
2269 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2270 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2271 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2272 LDDEPS="$LDDEPS .export.sym"
2273 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2274 LIB_SUFFIX=so
8ce0cbda
AK
2275 DEVMAPPER=yes
2276 ODIRECT=yes
d0191583 2277 DM_IOCTLS=yes
8ce0cbda
AK
2278 SELINUX=yes
2279 CLUSTER=internal
93bd259b 2280 FSADM=yes
d0191583 2281 ;;
8ce0cbda
AK
2282 darwin*)
2283 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2284 COPTIMISE_FLAG="-O2"
2285 CLDFLAGS="$CLDFLAGS"
2286 CLDWHOLEARCHIVE="-all_load"
2287 CLDNOWHOLEARCHIVE=
d0191583 2288 LIB_SUFFIX=dylib
a653923f 2289 DEVMAPPER=yes
8ce0cbda 2290 ODIRECT=no
d0191583 2291 DM_IOCTLS=no
8ce0cbda
AK
2292 SELINUX=no
2293 CLUSTER=none
d0191583
JM
2294 FSADM=no
2295 ;;
8ce0cbda
AK
2296esac
2297
80992638 2298################################################################################
ec6a6fbe
AK
2299{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2300$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2301if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2302 $as_echo_n "(cached) " >&6
5951ef33
AK
2303else
2304 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2305 for ac_i in 1 2 3 4 5 6 7; do
2306 ac_script="$ac_script$as_nl$ac_script"
2307 done
ec6a6fbe 2308 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2309 $as_unset ac_script || ac_script=
ec6a6fbe 2310 if test -z "$SED"; then
5951ef33 2311 ac_path_SED_found=false
ec6a6fbe
AK
2312 # Loop through the user's path and test for each of PROGNAME-LIST
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_prog in sed gsed; do
ec6a6fbe
AK
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2321 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2322# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2323 # Check for GNU $ac_path_SED
2324case `"$ac_path_SED" --version 2>&1` in
2325*GNU*)
2326 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2327*)
2328 ac_count=0
ec6a6fbe 2329 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2330 while :
2331 do
2332 cat "conftest.in" "conftest.in" >"conftest.tmp"
2333 mv "conftest.tmp" "conftest.in"
2334 cp "conftest.in" "conftest.nl"
ec6a6fbe 2335 $as_echo '' >> "conftest.nl"
5951ef33
AK
2336 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2338 ac_count=`expr $ac_count + 1`
2339 if test $ac_count -gt ${ac_path_SED_max-0}; then
2340 # Best one so far, save it but keep looking for a better one
2341 ac_cv_path_SED="$ac_path_SED"
2342 ac_path_SED_max=$ac_count
2343 fi
2344 # 10*(2^10) chars as input seems more than enough
2345 test $ac_count -gt 10 && break
2346 done
2347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2348esac
2349
ec6a6fbe
AK
2350 $ac_path_SED_found && break 3
2351 done
5951ef33
AK
2352 done
2353done
5951ef33 2354IFS=$as_save_IFS
ec6a6fbe
AK
2355 if test -z "$ac_cv_path_SED"; then
2356 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2357$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2358 { (exit 1); exit 1; }; }
ec6a6fbe 2359 fi
5951ef33
AK
2360else
2361 ac_cv_path_SED=$SED
2362fi
2363
2364fi
ec6a6fbe
AK
2365{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2366$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2367 SED="$ac_cv_path_SED"
2368 rm -f conftest.sed
2369
ad6254c5 2370for ac_prog in gawk mawk nawk awk
795ca3e5 2371do
ad6254c5 2372 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2373set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2376if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2377 $as_echo_n "(cached) " >&6
795ca3e5
AK
2378else
2379 if test -n "$AWK"; then
2380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2381else
ad6254c5
AK
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2389 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2391 break 2
2392 fi
2393done
2394done
7a197a62 2395IFS=$as_save_IFS
ad6254c5 2396
795ca3e5
AK
2397fi
2398fi
ad6254c5 2399AWK=$ac_cv_prog_AWK
795ca3e5 2400if test -n "$AWK"; then
ec6a6fbe
AK
2401 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2402$as_echo "$AWK" >&6; }
795ca3e5 2403else
ec6a6fbe
AK
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405$as_echo "no" >&6; }
795ca3e5
AK
2406fi
2407
7a197a62 2408
ad6254c5
AK
2409 test -n "$AWK" && break
2410done
2411
2412ac_ext=c
2413ac_cpp='$CPP $CPPFLAGS'
2414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2416ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417if test -n "$ac_tool_prefix"; then
2418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2419set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2422if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2423 $as_echo_n "(cached) " >&6
ad6254c5
AK
2424else
2425 if test -n "$CC"; then
2426 ac_cv_prog_CC="$CC" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2435 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2437 break 2
2438 fi
2439done
8106cdd5 2440done
7a197a62 2441IFS=$as_save_IFS
8106cdd5 2442
ad6254c5
AK
2443fi
2444fi
2445CC=$ac_cv_prog_CC
2446if test -n "$CC"; then
ec6a6fbe
AK
2447 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2448$as_echo "$CC" >&6; }
ad6254c5 2449else
ec6a6fbe
AK
2450 { $as_echo "$as_me:$LINENO: result: no" >&5
2451$as_echo "no" >&6; }
ad6254c5
AK
2452fi
2453
7a197a62 2454
ad6254c5
AK
2455fi
2456if test -z "$ac_cv_prog_CC"; then
2457 ac_ct_CC=$CC
2458 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2459set dummy gcc; ac_word=$2
ec6a6fbe
AK
2460{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2461$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2463 $as_echo_n "(cached) " >&6
ad6254c5
AK
2464else
2465 if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467else
2468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2475 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2477 break 2
2478 fi
2479done
2480done
7a197a62 2481IFS=$as_save_IFS
ad6254c5
AK
2482
2483fi
2484fi
2485ac_ct_CC=$ac_cv_prog_ac_ct_CC
2486if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2487 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2488$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2489else
ec6a6fbe
AK
2490 { $as_echo "$as_me:$LINENO: result: no" >&5
2491$as_echo "no" >&6; }
ad6254c5
AK
2492fi
2493
7a197a62
AK
2494 if test "x$ac_ct_CC" = x; then
2495 CC=""
2496 else
2497 case $cross_compiling:$ac_tool_warned in
2498yes:)
ec6a6fbe
AK
2499{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2500$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2501ac_tool_warned=yes ;;
2502esac
2503 CC=$ac_ct_CC
2504 fi
ad6254c5
AK
2505else
2506 CC="$ac_cv_prog_CC"
2507fi
2508
2509if test -z "$CC"; then
7a197a62
AK
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2512set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2513{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2515if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2516 $as_echo_n "(cached) " >&6
8106cdd5
AK
2517else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520else
ad6254c5
AK
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2528 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2530 break 2
2531 fi
2532done
2533done
7a197a62 2534IFS=$as_save_IFS
ad6254c5 2535
8106cdd5
AK
2536fi
2537fi
ad6254c5 2538CC=$ac_cv_prog_CC
8106cdd5 2539if test -n "$CC"; then
ec6a6fbe
AK
2540 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2541$as_echo "$CC" >&6; }
ad6254c5 2542else
ec6a6fbe
AK
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544$as_echo "no" >&6; }
ad6254c5
AK
2545fi
2546
8106cdd5 2547
7a197a62 2548 fi
ad6254c5 2549fi
795ca3e5
AK
2550if test -z "$CC"; then
2551 # Extract the first word of "cc", so it can be a program name with args.
2552set dummy cc; ac_word=$2
ec6a6fbe
AK
2553{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2555if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2556 $as_echo_n "(cached) " >&6
795ca3e5
AK
2557else
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC="$CC" # Let the user override the test.
2560else
795ca3e5 2561 ac_prog_rejected=no
ad6254c5
AK
2562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563for as_dir in $PATH
2564do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2570 ac_prog_rejected=yes
2571 continue
2572 fi
2573 ac_cv_prog_CC="cc"
ec6a6fbe 2574 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2575 break 2
2576 fi
2577done
2578done
7a197a62 2579IFS=$as_save_IFS
ad6254c5 2580
795ca3e5
AK
2581if test $ac_prog_rejected = yes; then
2582 # We found a bogon in the path, so make sure we never use it.
2583 set dummy $ac_cv_prog_CC
2584 shift
ad6254c5 2585 if test $# != 0; then
795ca3e5
AK
2586 # We chose a different compiler from the bogus one.
2587 # However, it has the same basename, so the bogon will be chosen
2588 # first if we set CC to just the basename; use the full file name.
2589 shift
ad6254c5 2590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2591 fi
2592fi
2593fi
2594fi
ad6254c5 2595CC=$ac_cv_prog_CC
795ca3e5 2596if test -n "$CC"; then
ec6a6fbe
AK
2597 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2598$as_echo "$CC" >&6; }
795ca3e5 2599else
ec6a6fbe
AK
2600 { $as_echo "$as_me:$LINENO: result: no" >&5
2601$as_echo "no" >&6; }
795ca3e5
AK
2602fi
2603
7a197a62 2604
ad6254c5
AK
2605fi
2606if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
7a197a62 2608 for ac_prog in cl.exe
ad6254c5
AK
2609 do
2610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2611set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2612{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2613$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2614if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2615 $as_echo_n "(cached) " >&6
795ca3e5
AK
2616else
2617 if test -n "$CC"; then
2618 ac_cv_prog_CC="$CC" # Let the user override the test.
2619else
ad6254c5
AK
2620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
2625 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2628 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2629 break 2
2630 fi
2631done
2632done
7a197a62 2633IFS=$as_save_IFS
ad6254c5 2634
795ca3e5
AK
2635fi
2636fi
ad6254c5 2637CC=$ac_cv_prog_CC
795ca3e5 2638if test -n "$CC"; then
ec6a6fbe
AK
2639 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2640$as_echo "$CC" >&6; }
795ca3e5 2641else
ec6a6fbe
AK
2642 { $as_echo "$as_me:$LINENO: result: no" >&5
2643$as_echo "no" >&6; }
795ca3e5 2644fi
ad6254c5 2645
7a197a62 2646
ad6254c5
AK
2647 test -n "$CC" && break
2648 done
2649fi
2650if test -z "$CC"; then
2651 ac_ct_CC=$CC
7a197a62 2652 for ac_prog in cl.exe
ad6254c5
AK
2653do
2654 # Extract the first word of "$ac_prog", so it can be a program name with args.
2655set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2656{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2658if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2659 $as_echo_n "(cached) " >&6
ad6254c5
AK
2660else
2661 if test -n "$ac_ct_CC"; then
2662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2663else
2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2671 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2673 break 2
795ca3e5 2674 fi
ad6254c5
AK
2675done
2676done
7a197a62 2677IFS=$as_save_IFS
ad6254c5
AK
2678
2679fi
2680fi
2681ac_ct_CC=$ac_cv_prog_ac_ct_CC
2682if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2683 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2684$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2685else
ec6a6fbe
AK
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687$as_echo "no" >&6; }
795ca3e5
AK
2688fi
2689
7a197a62 2690
ad6254c5
AK
2691 test -n "$ac_ct_CC" && break
2692done
795ca3e5 2693
7a197a62
AK
2694 if test "x$ac_ct_CC" = x; then
2695 CC=""
2696 else
2697 case $cross_compiling:$ac_tool_warned in
2698yes:)
ec6a6fbe
AK
2699{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2701ac_tool_warned=yes ;;
2702esac
2703 CC=$ac_ct_CC
2704 fi
ad6254c5
AK
2705fi
2706
2707fi
2708
2709
ec6a6fbe
AK
2710test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2712{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2713See \`config.log' for more details." >&5
ec6a6fbe 2714$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2715See \`config.log' for more details." >&2;}
ec6a6fbe 2716 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2717
2718# Provide some information about the compiler.
ec6a6fbe
AK
2719$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2720set X $ac_compile
2721ac_compiler=$2
7a197a62
AK
2722{ (ac_try="$ac_compiler --version >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
ec6a6fbe
AK
2727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2728$as_echo "$ac_try_echo") >&5
7a197a62 2729 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2730 ac_status=$?
ec6a6fbe 2731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2732 (exit $ac_status); }
7a197a62
AK
2733{ (ac_try="$ac_compiler -v >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
ec6a6fbe
AK
2738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2739$as_echo "$ac_try_echo") >&5
7a197a62 2740 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2741 ac_status=$?
ec6a6fbe 2742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2743 (exit $ac_status); }
7a197a62
AK
2744{ (ac_try="$ac_compiler -V >&5"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
ec6a6fbe
AK
2749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2750$as_echo "$ac_try_echo") >&5
7a197a62 2751 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2752 ac_status=$?
ec6a6fbe 2753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2754 (exit $ac_status); }
2755
2756cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2757/* confdefs.h. */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h. */
2762
2763int
2764main ()
2765{
2766
2767 ;
2768 return 0;
2769}
2770_ACEOF
2771ac_clean_files_save=$ac_clean_files
ec6a6fbe 2772ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2773# Try to create an executable without -o first, disregard a.out.
2774# It will help us diagnose broken compilers, and finding out an intuition
2775# of exeext.
ec6a6fbe
AK
2776{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2777$as_echo_n "checking for C compiler default output file name... " >&6; }
2778ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2779
2780# The possible output files:
2781ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2782
7a197a62
AK
2783ac_rmfiles=
2784for ac_file in $ac_files
2785do
2786 case $ac_file in
ec6a6fbe 2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2788 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2789 esac
2790done
2791rm -f $ac_rmfiles
2792
2793if { (ac_try="$ac_link_default"
2794case "(($ac_try" in
2795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796 *) ac_try_echo=$ac_try;;
2797esac
ec6a6fbe
AK
2798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2799$as_echo "$ac_try_echo") >&5
7a197a62 2800 (eval "$ac_link_default") 2>&5
ad6254c5 2801 ac_status=$?
ec6a6fbe 2802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2803 (exit $ac_status); }; then
7a197a62
AK
2804 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2805# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2806# in a Makefile. We should not override ac_cv_exeext if it was cached,
2807# so that the user can short-circuit this test for compilers unknown to
2808# Autoconf.
25fbec5b 2809for ac_file in $ac_files ''
ad6254c5
AK
2810do
2811 test -f "$ac_file" || continue
2812 case $ac_file in
ec6a6fbe 2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2814 ;;
ad6254c5 2815 [ab].out )
8a2fc586
AK
2816 # We found the default executable, but exeext='' is most
2817 # certainly right.
2818 break;;
ad6254c5 2819 *.* )
7a197a62
AK
2820 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2821 then :; else
2822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823 fi
2824 # We set ac_cv_exeext here because the later test for it is not
2825 # safe: cross compilers may not add the suffix if given an `-o'
2826 # argument, so we may need to know it at that point already.
2827 # Even if this section looks crufty: it has the advantage of
2828 # actually working.
8a2fc586 2829 break;;
ad6254c5 2830 * )
8a2fc586 2831 break;;
ad6254c5
AK
2832 esac
2833done
7a197a62
AK
2834test "$ac_cv_exeext" = no && ac_cv_exeext=
2835
ad6254c5 2836else
25fbec5b
AK
2837 ac_file=''
2838fi
2839
ec6a6fbe
AK
2840{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2841$as_echo "$ac_file" >&6; }
25fbec5b 2842if test -z "$ac_file"; then
ec6a6fbe 2843 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2844sed 's/^/| /' conftest.$ac_ext >&5
2845
ec6a6fbe
AK
2846{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2847$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2848{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2849See \`config.log' for more details." >&5
ec6a6fbe 2850$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2851See \`config.log' for more details." >&2;}
ec6a6fbe 2852 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2853fi
2854
2855ac_exeext=$ac_cv_exeext
ad6254c5 2856
7a197a62 2857# Check that the compiler produces executables we can run. If not, either
ad6254c5 2858# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2859{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2860$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2861# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2862# If not cross compiling, check that we can run a simple program.
2863if test "$cross_compiling" != yes; then
2864 if { ac_try='./$ac_file'
7a197a62
AK
2865 { (case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868esac
ec6a6fbe
AK
2869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2870$as_echo "$ac_try_echo") >&5
7a197a62 2871 (eval "$ac_try") 2>&5
ad6254c5 2872 ac_status=$?
ec6a6fbe 2873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2874 (exit $ac_status); }; }; then
2875 cross_compiling=no
795ca3e5 2876 else
ad6254c5
AK
2877 if test "$cross_compiling" = maybe; then
2878 cross_compiling=yes
2879 else
ec6a6fbe
AK
2880 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2882{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2883If you meant to cross compile, use \`--host'.
2884See \`config.log' for more details." >&5
ec6a6fbe 2885$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2886If you meant to cross compile, use \`--host'.
2887See \`config.log' for more details." >&2;}
ec6a6fbe 2888 { (exit 1); exit 1; }; }; }
ad6254c5 2889 fi
795ca3e5 2890 fi
80992638 2891fi
ec6a6fbe
AK
2892{ $as_echo "$as_me:$LINENO: result: yes" >&5
2893$as_echo "yes" >&6; }
ad6254c5 2894
ec6a6fbe 2895rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2896ac_clean_files=$ac_clean_files_save
7a197a62 2897# Check that the compiler produces executables we can run. If not, either
ad6254c5 2898# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2899{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2900$as_echo_n "checking whether we are cross compiling... " >&6; }
2901{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2902$as_echo "$cross_compiling" >&6; }
7a197a62 2903
ec6a6fbe
AK
2904{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2905$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2906if { (ac_try="$ac_link"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
ec6a6fbe
AK
2911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2912$as_echo "$ac_try_echo") >&5
7a197a62 2913 (eval "$ac_link") 2>&5
ad6254c5 2914 ac_status=$?
ec6a6fbe 2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2916 (exit $ac_status); }; then
2917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2919# work properly (i.e., refer to `conftest.exe'), while it won't with
2920# `rm'.
2921for ac_file in conftest.exe conftest conftest.*; do
2922 test -f "$ac_file" || continue
2923 case $ac_file in
ec6a6fbe 2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2926 break;;
ad6254c5
AK
2927 * ) break;;
2928 esac
2929done
80992638 2930else
ec6a6fbe
AK
2931 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2934See \`config.log' for more details." >&5
ec6a6fbe 2935$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2936See \`config.log' for more details." >&2;}
ec6a6fbe 2937 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2938fi
2939
2940rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2941{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2942$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2943
2944rm -f conftest.$ac_ext
2945EXEEXT=$ac_cv_exeext
2946ac_exeext=$EXEEXT
ec6a6fbe
AK
2947{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2948$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2949if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2950 $as_echo_n "(cached) " >&6
795ca3e5 2951else
ad6254c5 2952 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2953/* confdefs.h. */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h. */
2958
2959int
2960main ()
2961{
2962
2963 ;
2964 return 0;
2965}
2966_ACEOF
2967rm -f conftest.o conftest.obj
7a197a62
AK
2968if { (ac_try="$ac_compile"
2969case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972esac
ec6a6fbe
AK
2973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974$as_echo "$ac_try_echo") >&5
7a197a62 2975 (eval "$ac_compile") 2>&5
ad6254c5 2976 ac_status=$?
ec6a6fbe 2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2978 (exit $ac_status); }; then
7a197a62
AK
2979 for ac_file in conftest.o conftest.obj conftest.*; do
2980 test -f "$ac_file" || continue;
ad6254c5 2981 case $ac_file in
ec6a6fbe 2982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2983 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2984 break;;
2985 esac
2986done
2987else
ec6a6fbe 2988 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2989sed 's/^/| /' conftest.$ac_ext >&5
2990
ec6a6fbe
AK
2991{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2993{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2994See \`config.log' for more details." >&5
ec6a6fbe 2995$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2996See \`config.log' for more details." >&2;}
ec6a6fbe 2997 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2998fi
2999
3000rm -f conftest.$ac_cv_objext conftest.$ac_ext
3001fi
ec6a6fbe
AK
3002{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3003$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
3004OBJEXT=$ac_cv_objext
3005ac_objext=$OBJEXT
ec6a6fbe
AK
3006{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3007$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 3008if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 3009 $as_echo_n "(cached) " >&6
ad6254c5
AK
3010else
3011 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017
3018int
3019main ()
3020{
3021#ifndef __GNUC__
3022 choke me
3023#endif
80992638 3024
ad6254c5
AK
3025 ;
3026 return 0;
3027}
3028_ACEOF
3029rm -f conftest.$ac_objext
7a197a62
AK
3030if { (ac_try="$ac_compile"
3031case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
ec6a6fbe
AK
3035eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3036$as_echo "$ac_try_echo") >&5
7a197a62 3037 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3038 ac_status=$?
8a2fc586
AK
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
ec6a6fbe 3042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3043 (exit $ac_status); } && {
3044 test -z "$ac_c_werror_flag" ||
3045 test ! -s conftest.err
3046 } && test -s conftest.$ac_objext; then
ad6254c5 3047 ac_compiler_gnu=yes
80992638 3048else
ec6a6fbe 3049 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
7a197a62 3052 ac_compiler_gnu=no
8106cdd5 3053fi
7a197a62
AK
3054
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3056ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3057
ad6254c5 3058fi
ec6a6fbe
AK
3059{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3060$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3061if test $ac_compiler_gnu = yes; then
3062 GCC=yes
3063else
3064 GCC=
3065fi
ad6254c5
AK
3066ac_test_CFLAGS=${CFLAGS+set}
3067ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3068{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3070if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3071 $as_echo_n "(cached) " >&6
795ca3e5 3072else
7a197a62
AK
3073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3075 ac_cv_prog_cc_g=no
3076 CFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
3083
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
7a197a62
AK
3093if { (ac_try="$ac_compile"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
ec6a6fbe
AK
3098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3099$as_echo "$ac_try_echo") >&5
7a197a62 3100 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3101 ac_status=$?
8a2fc586
AK
3102 grep -v '^ *+' conftest.er1 >conftest.err
3103 rm -f conftest.er1
3104 cat conftest.err >&5
ec6a6fbe 3105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
7a197a62
AK
3110 ac_cv_prog_cc_g=yes
3111else
ec6a6fbe 3112 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3113sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 CFLAGS=""
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122
3123int
3124main ()
3125{
3126
3127 ;
3128 return 0;
3129}
3130_ACEOF
3131rm -f conftest.$ac_objext
3132if { (ac_try="$ac_compile"
3133case "(($ac_try" in
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3136esac
ec6a6fbe
AK
3137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3138$as_echo "$ac_try_echo") >&5
7a197a62 3139 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3140 ac_status=$?
7a197a62
AK
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
ec6a6fbe 3144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
7a197a62
AK
3149 :
3150else
ec6a6fbe 3151 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3152sed 's/^/| /' conftest.$ac_ext >&5
3153
3154 ac_c_werror_flag=$ac_save_c_werror_flag
3155 CFLAGS="-g"
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162
3163int
3164main ()
3165{
3166
3167 ;
3168 return 0;
3169}
3170_ACEOF
3171rm -f conftest.$ac_objext
3172if { (ac_try="$ac_compile"
3173case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
ec6a6fbe
AK
3177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3178$as_echo "$ac_try_echo") >&5
7a197a62 3179 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3180 ac_status=$?
7a197a62
AK
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
ec6a6fbe 3184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3185 (exit $ac_status); } && {
3186 test -z "$ac_c_werror_flag" ||
3187 test ! -s conftest.err
3188 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3189 ac_cv_prog_cc_g=yes
3190else
ec6a6fbe 3191 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3192sed 's/^/| /' conftest.$ac_ext >&5
80992638 3193
7a197a62
AK
3194
3195fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3201fi
7a197a62
AK
3202
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3205fi
ec6a6fbe
AK
3206{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3207$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3208if test "$ac_test_CFLAGS" = set; then
ad6254c5 3209 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3210elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3212 CFLAGS="-g -O2"
3213 else
3214 CFLAGS="-g"
3215 fi
3216else
3217 if test "$GCC" = yes; then
3218 CFLAGS="-O2"
3219 else
3220 CFLAGS=
3221 fi
3222fi
ec6a6fbe
AK
3223{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3225if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3226 $as_echo_n "(cached) " >&6
ad6254c5 3227else
7a197a62 3228 ac_cv_prog_cc_c89=no
ad6254c5
AK
3229ac_save_CC=$CC
3230cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
3236#include <stdarg.h>
3237#include <stdio.h>
3238#include <sys/types.h>
3239#include <sys/stat.h>
3240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241struct buf { int x; };
3242FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243static char *e (p, i)
3244 char **p;
3245 int i;
3246{
3247 return p[i];
3248}
3249static char *f (char * (*g) (char **, int), char **p, ...)
3250{
3251 char *s;
3252 va_list v;
3253 va_start (v,p);
3254 s = g (p, va_arg (v,int));
3255 va_end (v);
3256 return s;
3257}
8a2fc586
AK
3258
3259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3262 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3265 that's true only with -std. */
8a2fc586
AK
3266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267
7a197a62
AK
3268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3270#define FOO(x) 'x'
3271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272
ad6254c5
AK
3273int test (int i, double x);
3274struct s1 {int (*f) (int a);};
3275struct s2 {int (*f) (double a);};
3276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277int argc;
3278char **argv;
3279int
3280main ()
3281{
3282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 ;
3284 return 0;
3285}
3286_ACEOF
7a197a62
AK
3287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3289do
3290 CC="$ac_save_CC $ac_arg"
3291 rm -f conftest.$ac_objext
7a197a62
AK
3292if { (ac_try="$ac_compile"
3293case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296esac
ec6a6fbe
AK
3297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3298$as_echo "$ac_try_echo") >&5
7a197a62 3299 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3300 ac_status=$?
8a2fc586
AK
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
ec6a6fbe 3304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3305 (exit $ac_status); } && {
3306 test -z "$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 } && test -s conftest.$ac_objext; then
7a197a62 3309 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3310else
ec6a6fbe 3311 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3312sed 's/^/| /' conftest.$ac_ext >&5
3313
7a197a62 3314
ad6254c5 3315fi
7a197a62
AK
3316
3317rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3319done
7a197a62 3320rm -f conftest.$ac_ext
ad6254c5
AK
3321CC=$ac_save_CC
3322
3323fi
7a197a62
AK
3324# AC_CACHE_VAL
3325case "x$ac_cv_prog_cc_c89" in
3326 x)
ec6a6fbe
AK
3327 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3328$as_echo "none needed" >&6; } ;;
7a197a62 3329 xno)
ec6a6fbe
AK
3330 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3331$as_echo "unsupported" >&6; } ;;
ad6254c5 3332 *)
7a197a62 3333 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3334 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3335$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3336esac
3337
ad6254c5 3338
ad6254c5
AK
3339ac_ext=c
3340ac_cpp='$CPP $CPPFLAGS'
3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3344
d0191583
JM
3345
3346
3347ac_ext=c
3348ac_cpp='$CPP $CPPFLAGS'
3349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3352{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3353$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3354# On Suns, sometimes $CPP names a directory.
3355if test -n "$CPP" && test -d "$CPP"; then
3356 CPP=
3357fi
3358if test -z "$CPP"; then
3359 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3360 $as_echo_n "(cached) " >&6
ad6254c5 3361else
d0191583
JM
3362 # Double quotes because CPP needs to be expanded
3363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3364 do
3365 ac_preproc_ok=false
3366for ac_c_preproc_warn_flag in '' yes
ad6254c5 3367do
d0191583
JM
3368 # Use a header file that comes with gcc, so configuring glibc
3369 # with a fresh cross-compiler works.
3370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371 # <limits.h> exists even on freestanding compilers.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h. */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h. */
3380#ifdef __STDC__
3381# include <limits.h>
3382#else
3383# include <assert.h>
3384#endif
3385 Syntax error
3386_ACEOF
3387if { (ac_try="$ac_cpp conftest.$ac_ext"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
ad6254c5 3391esac
ec6a6fbe
AK
3392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3393$as_echo "$ac_try_echo") >&5
d0191583
JM
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395 ac_status=$?
3396 grep -v '^ *+' conftest.er1 >conftest.err
3397 rm -f conftest.er1
3398 cat conftest.err >&5
ec6a6fbe 3399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3400 (exit $ac_status); } >/dev/null && {
3401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 }; then
3404 :
3405else
ec6a6fbe 3406 $as_echo "$as_me: failed program was:" >&5
d0191583 3407sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3408
d0191583
JM
3409 # Broken: fails on valid input.
3410continue
795ca3e5 3411fi
795ca3e5 3412
d0191583 3413rm -f conftest.err conftest.$ac_ext
795ca3e5 3414
d0191583
JM
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h. */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h. */
3423#include <ac_nonexistent.h>
3424_ACEOF
3425if { (ac_try="$ac_cpp conftest.$ac_ext"
3426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
ec6a6fbe
AK
3430eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431$as_echo "$ac_try_echo") >&5
d0191583
JM
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 ac_status=$?
3434 grep -v '^ *+' conftest.er1 >conftest.err
3435 rm -f conftest.er1
3436 cat conftest.err >&5
ec6a6fbe 3437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3438 (exit $ac_status); } >/dev/null && {
3439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 }; then
3442 # Broken: success on invalid input.
3443continue
3444else
ec6a6fbe 3445 $as_echo "$as_me: failed program was:" >&5
d0191583 3446sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3447
d0191583
JM
3448 # Passes both tests.
3449ac_preproc_ok=:
3450break
3451fi
795ca3e5 3452
d0191583
JM
3453rm -f conftest.err conftest.$ac_ext
3454
3455done
3456# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3457rm -f conftest.err conftest.$ac_ext
3458if $ac_preproc_ok; then
3459 break
795ca3e5
AK
3460fi
3461
d0191583
JM
3462 done
3463 ac_cv_prog_CPP=$CPP
3464
3465fi
3466 CPP=$ac_cv_prog_CPP
795ca3e5 3467else
d0191583
JM
3468 ac_cv_prog_CPP=$CPP
3469fi
ec6a6fbe
AK
3470{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3471$as_echo "$CPP" >&6; }
d0191583
JM
3472ac_preproc_ok=false
3473for ac_c_preproc_warn_flag in '' yes
3474do
3475 # Use a header file that comes with gcc, so configuring glibc
3476 # with a fresh cross-compiler works.
3477 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3478 # <limits.h> exists even on freestanding compilers.
3479 # On the NeXT, cc -E runs the code through the compiler's parser,
3480 # not just through cpp. "Syntax error" is here to catch this case.
3481 cat >conftest.$ac_ext <<_ACEOF
3482/* confdefs.h. */
ad6254c5 3483_ACEOF
d0191583
JM
3484cat confdefs.h >>conftest.$ac_ext
3485cat >>conftest.$ac_ext <<_ACEOF
3486/* end confdefs.h. */
3487#ifdef __STDC__
3488# include <limits.h>
3489#else
3490# include <assert.h>
3491#endif
3492 Syntax error
3493_ACEOF
3494if { (ac_try="$ac_cpp conftest.$ac_ext"
3495case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
7a197a62 3498esac
ec6a6fbe
AK
3499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3500$as_echo "$ac_try_echo") >&5
d0191583
JM
3501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
ec6a6fbe 3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3507 (exit $ac_status); } >/dev/null && {
3508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 }; then
3511 :
795ca3e5 3512else
ec6a6fbe 3513 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3514sed 's/^/| /' conftest.$ac_ext >&5
3515
3516 # Broken: fails on valid input.
3517continue
795ca3e5
AK
3518fi
3519
d0191583
JM
3520rm -f conftest.err conftest.$ac_ext
3521
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3525/* confdefs.h. */
3526_ACEOF
3527cat confdefs.h >>conftest.$ac_ext
3528cat >>conftest.$ac_ext <<_ACEOF
3529/* end confdefs.h. */
3530#include <ac_nonexistent.h>
3531_ACEOF
3532if { (ac_try="$ac_cpp conftest.$ac_ext"
3533case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536esac
ec6a6fbe
AK
3537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3538$as_echo "$ac_try_echo") >&5
d0191583
JM
3539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3540 ac_status=$?
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
ec6a6fbe 3544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3545 (exit $ac_status); } >/dev/null && {
3546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3547 test ! -s conftest.err
3548 }; then
3549 # Broken: success on invalid input.
3550continue
795ca3e5 3551else
ec6a6fbe 3552 $as_echo "$as_me: failed program was:" >&5
d0191583 3553sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3554
d0191583
JM
3555 # Passes both tests.
3556ac_preproc_ok=:
3557break
795ca3e5 3558fi
d0191583
JM
3559
3560rm -f conftest.err conftest.$ac_ext
3561
3562done
3563# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3564rm -f conftest.err conftest.$ac_ext
3565if $ac_preproc_ok; then
3566 :
8106cdd5 3567else
ec6a6fbe
AK
3568 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3571See \`config.log' for more details." >&5
ec6a6fbe 3572$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3573See \`config.log' for more details." >&2;}
ec6a6fbe 3574 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3575fi
3576
d0191583
JM
3577ac_ext=c
3578ac_cpp='$CPP $CPPFLAGS'
3579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582
7a197a62 3583
ec6a6fbe
AK
3584{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3585$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3586if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3587 $as_echo_n "(cached) " >&6
ad6254c5 3588else
ec6a6fbe 3589 if test -z "$GREP"; then
d0191583 3590 ac_path_GREP_found=false
ec6a6fbe
AK
3591 # Loop through the user's path and test for each of PROGNAME-LIST
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3593for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3594do
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
d0191583 3597 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3600 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3601# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3602 # Check for GNU $ac_path_GREP
3603case `"$ac_path_GREP" --version 2>&1` in
3604*GNU*)
3605 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3606*)
3607 ac_count=0
ec6a6fbe 3608 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3609 while :
3610 do
3611 cat "conftest.in" "conftest.in" >"conftest.tmp"
3612 mv "conftest.tmp" "conftest.in"
3613 cp "conftest.in" "conftest.nl"
ec6a6fbe 3614 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3615 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3617 ac_count=`expr $ac_count + 1`
3618 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3619 # Best one so far, save it but keep looking for a better one
3620 ac_cv_path_GREP="$ac_path_GREP"
3621 ac_path_GREP_max=$ac_count
3622 fi
3623 # 10*(2^10) chars as input seems more than enough
3624 test $ac_count -gt 10 && break
3625 done
3626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3627esac
3628
ec6a6fbe
AK
3629 $ac_path_GREP_found && break 3
3630 done
d0191583 3631 done
ad6254c5 3632done
7a197a62 3633IFS=$as_save_IFS
ec6a6fbe
AK
3634 if test -z "$ac_cv_path_GREP"; then
3635 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3636$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3637 { (exit 1); exit 1; }; }
ec6a6fbe 3638 fi
80992638 3639else
d0191583 3640 ac_cv_path_GREP=$GREP
8106cdd5 3641fi
8106cdd5 3642
80992638 3643fi
ec6a6fbe
AK
3644{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3645$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3646 GREP="$ac_cv_path_GREP"
795ca3e5 3647
d0191583 3648
ec6a6fbe
AK
3649{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3650$as_echo_n "checking for egrep... " >&6; }
d0191583 3651if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3652 $as_echo_n "(cached) " >&6
8a2fc586 3653else
d0191583
JM
3654 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3655 then ac_cv_path_EGREP="$GREP -E"
3656 else
ec6a6fbe 3657 if test -z "$EGREP"; then
d0191583 3658 ac_path_EGREP_found=false
ec6a6fbe
AK
3659 # Loop through the user's path and test for each of PROGNAME-LIST
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3661for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3662do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
d0191583 3665 for ac_prog in egrep; do
ec6a6fbe
AK
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3669# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3670 # Check for GNU $ac_path_EGREP
3671case `"$ac_path_EGREP" --version 2>&1` in
3672*GNU*)
3673 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3674*)
3675 ac_count=0
ec6a6fbe 3676 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3677 while :
3678 do
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
ec6a6fbe 3682 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3683 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3684 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3685 ac_count=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_EGREP="$ac_path_EGREP"
3689 ac_path_EGREP_max=$ac_count
3690 fi
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3693 done
3694 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3695esac
8a2fc586 3696
ec6a6fbe
AK
3697 $ac_path_EGREP_found && break 3
3698 done
d0191583 3699 done
8a2fc586 3700done
7a197a62 3701IFS=$as_save_IFS
ec6a6fbe
AK
3702 if test -z "$ac_cv_path_EGREP"; then
3703 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3704$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3705 { (exit 1); exit 1; }; }
ec6a6fbe 3706 fi
d0191583
JM
3707else
3708 ac_cv_path_EGREP=$EGREP
3709fi
ad6254c5 3710
d0191583
JM
3711 fi
3712fi
ec6a6fbe
AK
3713{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3714$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3715 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3716
3717
d0191583 3718if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3719 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3720$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3721if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3722 $as_echo_n "(cached) " >&6
8106cdd5 3723else
d0191583 3724 ac_pattern="Autoconf.*'x'"
ad6254c5 3725 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3726/* confdefs.h. */
3727_ACEOF
3728cat confdefs.h >>conftest.$ac_ext
3729cat >>conftest.$ac_ext <<_ACEOF
3730/* end confdefs.h. */
d0191583
JM
3731#include <sgtty.h>
3732Autoconf TIOCGETP
ad6254c5 3733_ACEOF
d0191583
JM
3734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3735 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3736 ac_cv_prog_gcc_traditional=yes
8106cdd5 3737else
d0191583 3738 ac_cv_prog_gcc_traditional=no
80992638 3739fi
d0191583 3740rm -f conftest*
ad6254c5 3741
8106cdd5 3742
d0191583
JM
3743 if test $ac_cv_prog_gcc_traditional = no; then
3744 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3745/* confdefs.h. */
3746_ACEOF
3747cat confdefs.h >>conftest.$ac_ext
3748cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h. */
d0191583
JM
3750#include <termio.h>
3751Autoconf TCGETA
ad6254c5 3752_ACEOF
d0191583
JM
3753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3754 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3755 ac_cv_prog_gcc_traditional=yes
7a197a62 3756fi
d0191583 3757rm -f conftest*
795ca3e5 3758
d0191583 3759 fi
795ca3e5 3760fi
ec6a6fbe
AK
3761{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3762$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3763 if test $ac_cv_prog_gcc_traditional = yes; then
3764 CC="$CC -traditional"
3765 fi
795ca3e5
AK
3766fi
3767
d0191583
JM
3768# Find a good install program. We prefer a C program (faster),
3769# so one script is as good as another. But avoid the broken or
3770# incompatible versions:
3771# SysV /etc/install, /usr/sbin/install
3772# SunOS /usr/etc/install
3773# IRIX /sbin/install
3774# AIX /bin/install
3775# AmigaOS /C/install, which installs bootblocks on floppy discs
3776# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3777# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3778# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3779# OS/2's system install, which has a completely different semantic
3780# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3781# Reject install programs that cannot install multiple files.
3782{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3783$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3784if test -z "$INSTALL"; then
3785if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3786 $as_echo_n "(cached) " >&6
ad6254c5 3787else
d0191583
JM
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 # Account for people who put trailing slashes in PATH elements.
3794case $as_dir/ in
3795 ./ | .// | /cC/* | \
3796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3797 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3798 /usr/ucb/* ) ;;
3799 *)
3800 # OSF1 and SCO ODT 3.0 have their own names for install.
3801 # Don't use installbsd from OSF since it installs stuff as root
3802 # by default.
3803 for ac_prog in ginstall scoinst install; do
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3806 if test $ac_prog = install &&
3807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3808 # AIX install. It has an incompatible calling convention.
3809 :
3810 elif test $ac_prog = install &&
3811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3812 # program-specific install script used by HP pwplus--don't use.
3813 :
3814 else
ec6a6fbe
AK
3815 rm -rf conftest.one conftest.two conftest.dir
3816 echo one > conftest.one
3817 echo two > conftest.two
3818 mkdir conftest.dir
3819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3820 test -s conftest.one && test -s conftest.two &&
3821 test -s conftest.dir/conftest.one &&
3822 test -s conftest.dir/conftest.two
3823 then
3824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3825 break 3
3826 fi
d0191583
JM
3827 fi
3828 fi
3829 done
3830 done
3831 ;;
3832esac
ec6a6fbe 3833
d0191583
JM
3834done
3835IFS=$as_save_IFS
80992638 3836
ec6a6fbe 3837rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3838
3839fi
3840 if test "${ac_cv_path_install+set}" = set; then
3841 INSTALL=$ac_cv_path_install
7a197a62 3842 else
d0191583
JM
3843 # As a last resort, use the slow shell script. Don't cache a
3844 # value for INSTALL within a source directory, because that will
3845 # break other packages using the cache if that directory is
3846 # removed, or if the value is a relative name.
3847 INSTALL=$ac_install_sh
7a197a62 3848 fi
d0191583 3849fi
ec6a6fbe
AK
3850{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3851$as_echo "$INSTALL" >&6; }
ad6254c5 3852
d0191583
JM
3853# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3854# It thinks the first close brace ends the variable substitution.
3855test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3856
d0191583 3857test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3858
d0191583
JM
3859test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3860
ec6a6fbe
AK
3861{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3862$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3863LN_S=$as_ln_s
3864if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3865 { $as_echo "$as_me:$LINENO: result: yes" >&5
3866$as_echo "yes" >&6; }
d0191583 3867else
ec6a6fbe
AK
3868 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3869$as_echo "no, using $LN_S" >&6; }
795ca3e5 3870fi
d0191583 3871
ec6a6fbe
AK
3872{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3873$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3874set x ${MAKE-make}
3875ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3876if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3877 $as_echo_n "(cached) " >&6
7a197a62 3878else
d0191583
JM
3879 cat >conftest.make <<\_ACEOF
3880SHELL = /bin/sh
3881all:
3882 @echo '@@@%%%=$(MAKE)=@@@%%%'
3883_ACEOF
3884# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3885case `${MAKE-make} -f conftest.make 2>/dev/null` in
3886 *@@@%%%=?*=@@@%%%*)
3887 eval ac_cv_prog_make_${ac_make}_set=yes;;
3888 *)
3889 eval ac_cv_prog_make_${ac_make}_set=no;;
3890esac
3891rm -f conftest.make
ad6254c5 3892fi
d0191583 3893if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3894 { $as_echo "$as_me:$LINENO: result: yes" >&5
3895$as_echo "yes" >&6; }
d0191583
JM
3896 SET_MAKE=
3897else
ec6a6fbe
AK
3898 { $as_echo "$as_me:$LINENO: result: no" >&5
3899$as_echo "no" >&6; }
d0191583 3900 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3901fi
8106cdd5 3902
ec6a6fbe
AK
3903{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3904$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3905if test -z "$MKDIR_P"; then
3906 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3907 $as_echo_n "(cached) " >&6
5556819a
AK
3908else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3911do
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_prog in mkdir gmkdir; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3917 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3918 'mkdir (GNU coreutils) '* | \
3919 'mkdir (coreutils) '* | \
3920 'mkdir (fileutils) '4.1*)
3921 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3922 break 3;;
3923 esac
3924 done
3925 done
3926done
3927IFS=$as_save_IFS
3928
3929fi
3930
3931 if test "${ac_cv_path_mkdir+set}" = set; then
3932 MKDIR_P="$ac_cv_path_mkdir -p"
3933 else
3934 # As a last resort, use the slow shell script. Don't cache a
3935 # value for MKDIR_P within a source directory, because that will
3936 # break other packages using the cache if that directory is
3937 # removed, or if the value is a relative name.
3938 test -d ./--version && rmdir ./--version
3939 MKDIR_P="$ac_install_sh -d"
3940 fi
3941fi
ec6a6fbe
AK
3942{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3943$as_echo "$MKDIR_P" >&6; }
5556819a 3944
d0191583
JM
3945if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3948{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3950if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3951 $as_echo_n "(cached) " >&6
d0191583
JM
3952else
3953 if test -n "$RANLIB"; then
3954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3965 break 2
3966 fi
3967done
3968done
3969IFS=$as_save_IFS
8106cdd5 3970
795ca3e5 3971fi
d0191583
JM
3972fi
3973RANLIB=$ac_cv_prog_RANLIB
3974if test -n "$RANLIB"; then
ec6a6fbe
AK
3975 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3976$as_echo "$RANLIB" >&6; }
d0191583 3977else
ec6a6fbe
AK
3978 { $as_echo "$as_me:$LINENO: result: no" >&5
3979$as_echo "no" >&6; }
d0191583
JM
3980fi
3981
8106cdd5 3982
ad6254c5 3983fi
d0191583
JM
3984if test -z "$ac_cv_prog_RANLIB"; then
3985 ac_ct_RANLIB=$RANLIB
3986 # Extract the first word of "ranlib", so it can be a program name with args.
3987set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3989$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3990if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3991 $as_echo_n "(cached) " >&6
ad6254c5 3992else
d0191583
JM
3993 if test -n "$ac_ct_RANLIB"; then
3994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
8106cdd5 3998do
d0191583
JM
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 4004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4005 break 2
4006 fi
4007done
4008done
4009IFS=$as_save_IFS
4010
4011fi
4012fi
4013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4014if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4015 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4016$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4017else
ec6a6fbe
AK
4018 { $as_echo "$as_me:$LINENO: result: no" >&5
4019$as_echo "no" >&6; }
d0191583 4020fi
ad6254c5 4021
d0191583
JM
4022 if test "x$ac_ct_RANLIB" = x; then
4023 RANLIB=":"
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026yes:)
ec6a6fbe
AK
4027{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4029ac_tool_warned=yes ;;
4030esac
4031 RANLIB=$ac_ct_RANLIB
4032 fi
4033else
4034 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4035fi
7a197a62 4036
d0191583
JM
4037# Extract the first word of "cflow", so it can be a program name with args.
4038set dummy cflow; ac_word=$2
ec6a6fbe
AK
4039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4041if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4042 $as_echo_n "(cached) " >&6
d0191583
JM
4043else
4044 case $CFLOW_CMD in
4045 [\\/]* | ?:[\\/]*)
4046 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4047 ;;
4048 *)
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4058 break 2
4059 fi
4060done
4061done
4062IFS=$as_save_IFS
ad6254c5 4063
d0191583 4064 ;;
7a197a62 4065esac
d0191583
JM
4066fi
4067CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4068if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4069 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4070$as_echo "$CFLOW_CMD" >&6; }
80992638 4071else
ec6a6fbe
AK
4072 { $as_echo "$as_me:$LINENO: result: no" >&5
4073$as_echo "no" >&6; }
795ca3e5 4074fi
7a197a62 4075
ad6254c5 4076
d0191583
JM
4077# Extract the first word of "cscope", so it can be a program name with args.
4078set dummy cscope; ac_word=$2
ec6a6fbe
AK
4079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4080$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4081if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4082 $as_echo_n "(cached) " >&6
d0191583
JM
4083else
4084 case $CSCOPE_CMD in
4085 [\\/]* | ?:[\\/]*)
4086 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4087 ;;
4088 *)
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092 IFS=$as_save_IFS
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4098 break 2
4099 fi
795ca3e5 4100done
d0191583
JM
4101done
4102IFS=$as_save_IFS
795ca3e5 4103
d0191583
JM
4104 ;;
4105esac
ad6254c5 4106fi
d0191583
JM
4107CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4108if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4109 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4110$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4111else
ec6a6fbe
AK
4112 { $as_echo "$as_me:$LINENO: result: no" >&5
4113$as_echo "no" >&6; }
795ca3e5 4114fi
ad6254c5 4115
7a197a62 4116
ad6254c5 4117
d0191583
JM
4118################################################################################
4119
4120
4121
4122
4123
4124ac_header_dirent=no
4125for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4126 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4127{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4128$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4130 $as_echo_n "(cached) " >&6
d0191583 4131else
ad6254c5 4132 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4133/* confdefs.h. */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h. */
d0191583
JM
4138#include <sys/types.h>
4139#include <$ac_hdr>
4140
4141int
4142main ()
4143{
4144if ((DIR *) 0)
4145return 0;
4146 ;
4147 return 0;
4148}
ad6254c5 4149_ACEOF
d0191583
JM
4150rm -f conftest.$ac_objext
4151if { (ac_try="$ac_compile"
7a197a62
AK
4152case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
ec6a6fbe
AK
4156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4157$as_echo "$ac_try_echo") >&5
d0191583 4158 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4159 ac_status=$?
4160 grep -v '^ *+' conftest.er1 >conftest.err
4161 rm -f conftest.er1
4162 cat conftest.err >&5
ec6a6fbe 4163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4164 (exit $ac_status); } && {
4165 test -z "$ac_c_werror_flag" ||
25fbec5b 4166 test ! -s conftest.err
d0191583
JM
4167 } && test -s conftest.$ac_objext; then
4168 eval "$as_ac_Header=yes"
ad6254c5 4169else
ec6a6fbe 4170 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4171sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4172
d0191583 4173 eval "$as_ac_Header=no"
795ca3e5 4174fi
7a197a62 4175
d0191583 4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4177fi
ec6a6fbe
AK
4178ac_res=`eval 'as_val=${'$as_ac_Header'}
4179 $as_echo "$as_val"'`
4180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4181$as_echo "$ac_res" >&6; }
4182as_val=`eval 'as_val=${'$as_ac_Header'}
4183 $as_echo "$as_val"'`
4184 if test "x$as_val" = x""yes; then
d0191583 4185 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4186#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4187_ACEOF
795ca3e5 4188
d0191583
JM
4189ac_header_dirent=$ac_hdr; break
4190fi
ad6254c5 4191
d0191583
JM
4192done
4193# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4194if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4195 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4196$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4197if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4198 $as_echo_n "(cached) " >&6
ad6254c5 4199else
d0191583
JM
4200 ac_func_search_save_LIBS=$LIBS
4201cat >conftest.$ac_ext <<_ACEOF
4202/* confdefs.h. */
4203_ACEOF
4204cat confdefs.h >>conftest.$ac_ext
4205cat >>conftest.$ac_ext <<_ACEOF
4206/* end confdefs.h. */
ad6254c5 4207
d0191583
JM
4208/* Override any GCC internal prototype to avoid an error.
4209 Use char because int might match the return type of a GCC
4210 builtin and then its argument prototype would still apply. */
4211#ifdef __cplusplus
4212extern "C"
4213#endif
4214char opendir ();
4215int
4216main ()
4217{
4218return opendir ();
4219 ;
4220 return 0;
4221}
4222_ACEOF
4223for ac_lib in '' dir; do
4224 if test -z "$ac_lib"; then
4225 ac_res="none required"
4226 else
4227 ac_res=-l$ac_lib
4228 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4229 fi
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231if { (ac_try="$ac_link"
4232case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
ec6a6fbe
AK
4236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4237$as_echo "$ac_try_echo") >&5
d0191583
JM
4238 (eval "$ac_link") 2>conftest.er1
4239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
ec6a6fbe 4243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4244 (exit $ac_status); } && {
4245 test -z "$ac_c_werror_flag" ||
4246 test ! -s conftest.err
ec6a6fbe
AK
4247 } && test -s conftest$ac_exeext && {
4248 test "$cross_compiling" = yes ||
4249 $as_test_x conftest$ac_exeext
4250 }; then
d0191583
JM
4251 ac_cv_search_opendir=$ac_res
4252else
ec6a6fbe 4253 $as_echo "$as_me: failed program was:" >&5
d0191583 4254sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4255
ad6254c5 4256
795ca3e5 4257fi
ad6254c5 4258
ec6a6fbe 4259rm -rf conftest.dSYM
d0191583
JM
4260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4261 conftest$ac_exeext
4262 if test "${ac_cv_search_opendir+set}" = set; then
4263 break
7a197a62 4264fi
d0191583
JM
4265done
4266if test "${ac_cv_search_opendir+set}" = set; then
4267 :
7a197a62 4268else
d0191583 4269 ac_cv_search_opendir=no
7a197a62 4270fi
d0191583
JM
4271rm conftest.$ac_ext
4272LIBS=$ac_func_search_save_LIBS
7a197a62 4273fi
ec6a6fbe
AK
4274{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4275$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4276ac_res=$ac_cv_search_opendir
4277if test "$ac_res" != no; then
4278 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4279
d0191583 4280fi
7a197a62 4281
7a197a62 4282else
ec6a6fbe
AK
4283 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4284$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4285if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4286 $as_echo_n "(cached) " >&6
7a197a62 4287else
d0191583
JM
4288 ac_func_search_save_LIBS=$LIBS
4289cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
7a197a62 4295
d0191583
JM
4296/* Override any GCC internal prototype to avoid an error.
4297 Use char because int might match the return type of a GCC
4298 builtin and then its argument prototype would still apply. */
4299#ifdef __cplusplus
4300extern "C"
4301#endif
4302char opendir ();
4303int
4304main ()
4305{
4306return opendir ();
4307 ;
4308 return 0;
4309}
4310_ACEOF
4311for ac_lib in '' x; do
4312 if test -z "$ac_lib"; then
4313 ac_res="none required"
4314 else
4315 ac_res=-l$ac_lib
4316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4317 fi
4318 rm -f conftest.$ac_objext conftest$ac_exeext
4319if { (ac_try="$ac_link"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
ec6a6fbe
AK
4324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4325$as_echo "$ac_try_echo") >&5
d0191583
JM
4326 (eval "$ac_link") 2>conftest.er1
4327 ac_status=$?
4328 grep -v '^ *+' conftest.er1 >conftest.err
4329 rm -f conftest.er1
4330 cat conftest.err >&5
ec6a6fbe 4331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
ec6a6fbe
AK
4335 } && test -s conftest$ac_exeext && {
4336 test "$cross_compiling" = yes ||
4337 $as_test_x conftest$ac_exeext
4338 }; then
d0191583
JM
4339 ac_cv_search_opendir=$ac_res
4340else
ec6a6fbe 4341 $as_echo "$as_me: failed program was:" >&5
d0191583 4342sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4343
4344
4345fi
4346
ec6a6fbe 4347rm -rf conftest.dSYM
d0191583
JM
4348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4349 conftest$ac_exeext
4350 if test "${ac_cv_search_opendir+set}" = set; then
4351 break
7a197a62 4352fi
d0191583
JM
4353done
4354if test "${ac_cv_search_opendir+set}" = set; then
4355 :
7a197a62 4356else
d0191583 4357 ac_cv_search_opendir=no
7a197a62 4358fi
d0191583
JM
4359rm conftest.$ac_ext
4360LIBS=$ac_func_search_save_LIBS
4361fi
ec6a6fbe
AK
4362{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4363$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4364ac_res=$ac_cv_search_opendir
4365if test "$ac_res" != no; then
4366 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4367
7a197a62 4368fi
7a197a62 4369
d0191583 4370fi
7a197a62 4371
ec6a6fbe
AK
4372{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4373$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4374if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4375 $as_echo_n "(cached) " >&6
7a197a62
AK
4376else
4377 cat >conftest.$ac_ext <<_ACEOF
4378/* confdefs.h. */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h. */
4383#include <stdlib.h>
4384#include <stdarg.h>
4385#include <string.h>
4386#include <float.h>
4387
4388int
4389main ()
4390{
4391
4392 ;
4393 return 0;
4394}
4395_ACEOF
4396rm -f conftest.$ac_objext
4397if { (ac_try="$ac_compile"
4398case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
ec6a6fbe
AK
4402eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4403$as_echo "$ac_try_echo") >&5
7a197a62
AK
4404 (eval "$ac_compile") 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
ec6a6fbe 4409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4410 (exit $ac_status); } && {
4411 test -z "$ac_c_werror_flag" ||
4412 test ! -s conftest.err
4413 } && test -s conftest.$ac_objext; then
7a197a62
AK
4414 ac_cv_header_stdc=yes
4415else
ec6a6fbe 4416 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4417sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 ac_cv_header_stdc=no
4420fi
4421
4422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423
4424if test $ac_cv_header_stdc = yes; then
4425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4426 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4427/* confdefs.h. */
4428_ACEOF
4429cat confdefs.h >>conftest.$ac_ext
4430cat >>conftest.$ac_ext <<_ACEOF
4431/* end confdefs.h. */
4432#include <string.h>
8106cdd5 4433
ad6254c5
AK
4434_ACEOF
4435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "memchr" >/dev/null 2>&1; then
4437 :
4438else
4439 ac_cv_header_stdc=no
80992638 4440fi
ad6254c5 4441rm -f conftest*
795ca3e5
AK
4442
4443fi
4444
ad6254c5
AK
4445if test $ac_cv_header_stdc = yes; then
4446 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4447 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4448/* confdefs.h. */
4449_ACEOF
4450cat confdefs.h >>conftest.$ac_ext
4451cat >>conftest.$ac_ext <<_ACEOF
4452/* end confdefs.h. */
80992638 4453#include <stdlib.h>
ad6254c5
AK
4454
4455_ACEOF
80992638 4456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4457 $EGREP "free" >/dev/null 2>&1; then
4458 :
795ca3e5 4459else
ad6254c5 4460 ac_cv_header_stdc=no
795ca3e5 4461fi
80992638 4462rm -f conftest*
8106cdd5 4463
795ca3e5
AK
4464fi
4465
ad6254c5
AK
4466if test $ac_cv_header_stdc = yes; then
4467 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4468 if test "$cross_compiling" = yes; then
4469 :
795ca3e5 4470else
ad6254c5 4471 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4472/* confdefs.h. */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h. */
4477#include <ctype.h>
7a197a62 4478#include <stdlib.h>
ad6254c5
AK
4479#if ((' ' & 0x0FF) == 0x020)
4480# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4481# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4482#else
4483# define ISLOWER(c) \
8a2fc586
AK
4484 (('a' <= (c) && (c) <= 'i') \
4485 || ('j' <= (c) && (c) <= 'r') \
4486 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4487# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4488#endif
ad6254c5
AK
4489
4490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4491int
4492main ()
4493{
4494 int i;
4495 for (i = 0; i < 256; i++)
4496 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4497 || toupper (i) != TOUPPER (i))
7a197a62
AK
4498 return 2;
4499 return 0;
ad6254c5
AK
4500}
4501_ACEOF
4502rm -f conftest$ac_exeext
7a197a62
AK
4503if { (ac_try="$ac_link"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
ec6a6fbe
AK
4508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4509$as_echo "$ac_try_echo") >&5
7a197a62 4510 (eval "$ac_link") 2>&5
ad6254c5 4511 ac_status=$?
ec6a6fbe 4512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4514 { (case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517esac
ec6a6fbe
AK
4518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4519$as_echo "$ac_try_echo") >&5
7a197a62 4520 (eval "$ac_try") 2>&5
ad6254c5 4521 ac_status=$?
ec6a6fbe 4522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4523 (exit $ac_status); }; }; then
4524 :
795ca3e5 4525else
ec6a6fbe
AK
4526 $as_echo "$as_me: program exited with status $ac_status" >&5
4527$as_echo "$as_me: failed program was:" >&5
ad6254c5 4528sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4529
ad6254c5
AK
4530( exit $ac_status )
4531ac_cv_header_stdc=no
80992638 4532fi
ec6a6fbe 4533rm -rf conftest.dSYM
7a197a62 4534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4535fi
7a197a62
AK
4536
4537
ad6254c5
AK
4538fi
4539fi
ec6a6fbe
AK
4540{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4541$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4542if test $ac_cv_header_stdc = yes; then
4543
4544cat >>confdefs.h <<\_ACEOF
4545#define STDC_HEADERS 1
4546_ACEOF
795ca3e5
AK
4547
4548fi
4549
d911ec67 4550# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4551
ad6254c5 4552
7a197a62 4553
8106cdd5 4554
795ca3e5 4555
795ca3e5 4556
d911ec67
AK
4557
4558
4559
4560for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4561 inttypes.h stdint.h unistd.h
4562do
4563as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4564{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4565$as_echo_n "checking for $ac_header... " >&6; }
4566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4567 $as_echo_n "(cached) " >&6
795ca3e5 4568else
ad6254c5 4569 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
d911ec67 4575$ac_includes_default
ad6254c5 4576
d911ec67 4577#include <$ac_header>
ad6254c5
AK
4578_ACEOF
4579rm -f conftest.$ac_objext
7a197a62
AK
4580if { (ac_try="$ac_compile"
4581case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
ec6a6fbe
AK
4585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4586$as_echo "$ac_try_echo") >&5
7a197a62 4587 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4588 ac_status=$?
8a2fc586
AK
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
ec6a6fbe 4592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4593 (exit $ac_status); } && {
4594 test -z "$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 } && test -s conftest.$ac_objext; then
d911ec67 4597 eval "$as_ac_Header=yes"
795ca3e5 4598else
ec6a6fbe 4599 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4600sed 's/^/| /' conftest.$ac_ext >&5
4601
d911ec67 4602 eval "$as_ac_Header=no"
795ca3e5 4603fi
7a197a62
AK
4604
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4606fi
d911ec67
AK
4607ac_res=`eval 'as_val=${'$as_ac_Header'}
4608 $as_echo "$as_val"'`
4609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4610$as_echo "$ac_res" >&6; }
4611as_val=`eval 'as_val=${'$as_ac_Header'}
4612 $as_echo "$as_val"'`
4613 if test "x$as_val" = x""yes; then
4614 cat >>confdefs.h <<_ACEOF
4615#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4616_ACEOF
b896caa1 4617
8106cdd5 4618fi
b896caa1 4619
d911ec67 4620done
d0191583
JM
4621
4622
d911ec67
AK
4623{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4624$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4625if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4626 $as_echo_n "(cached) " >&6
d0191583
JM
4627else
4628 cat >conftest.$ac_ext <<_ACEOF
4629/* confdefs.h. */
4630_ACEOF
4631cat confdefs.h >>conftest.$ac_ext
4632cat >>conftest.$ac_ext <<_ACEOF
4633/* end confdefs.h. */
d911ec67
AK
4634#include <sys/types.h>
4635int
4636main ()
4637{
4638return makedev(0, 0);
4639 ;
4640 return 0;
4641}
d0191583 4642_ACEOF
d911ec67
AK
4643rm -f conftest.$ac_objext conftest$ac_exeext
4644if { (ac_try="$ac_link"
d0191583
JM
4645case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648esac
ec6a6fbe
AK
4649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4650$as_echo "$ac_try_echo") >&5
d911ec67 4651 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
ec6a6fbe 4656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
d911ec67
AK
4660 } && test -s conftest$ac_exeext && {
4661 test "$cross_compiling" = yes ||
4662 $as_test_x conftest$ac_exeext
4663 }; then
4664 ac_cv_header_sys_types_h_makedev=yes
d0191583 4665else
ec6a6fbe 4666 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4667sed 's/^/| /' conftest.$ac_ext >&5
4668
d911ec67 4669 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4670fi
4671
d911ec67
AK
4672rm -rf conftest.dSYM
4673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4674 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4675
4676fi
d911ec67
AK
4677{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4678$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4679
d911ec67
AK
4680if test $ac_cv_header_sys_types_h_makedev = no; then
4681if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4682 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4683$as_echo_n "checking for sys/mkdev.h... " >&6; }
4684if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4685 $as_echo_n "(cached) " >&6
d0191583 4686fi
d911ec67
AK
4687{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4688$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4689else
d0191583 4690 # Is the header compilable?
d911ec67
AK
4691{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4692$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4693cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699$ac_includes_default
d911ec67 4700#include <sys/mkdev.h>
ad6254c5
AK
4701_ACEOF
4702rm -f conftest.$ac_objext
7a197a62
AK
4703if { (ac_try="$ac_compile"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
ec6a6fbe
AK
4708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4709$as_echo "$ac_try_echo") >&5
7a197a62 4710 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4711 ac_status=$?
8a2fc586
AK
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
ec6a6fbe 4715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest.$ac_objext; then
d0191583 4720 ac_header_compiler=yes
ad6254c5 4721else
ec6a6fbe 4722 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4723sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4724
d0191583 4725 ac_header_compiler=no
ad6254c5 4726fi
7a197a62
AK
4727
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4729{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4730$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4731
4732# Is the header present?
d911ec67
AK
4733{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4734$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4735cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
d911ec67 4741#include <sys/mkdev.h>
d0191583
JM
4742_ACEOF
4743if { (ac_try="$ac_cpp conftest.$ac_ext"
4744case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747esac
ec6a6fbe
AK
4748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749$as_echo "$ac_try_echo") >&5
d0191583
JM
4750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
ec6a6fbe 4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4756 (exit $ac_status); } >/dev/null && {
4757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 }; then
4760 ac_header_preproc=yes
4761else
ec6a6fbe 4762 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_header_preproc=no
4766fi
4767
4768rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4769{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4770$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4771
4772# So? What about this header?
4773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4774 yes:no: )
d911ec67
AK
4775 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4776$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4778$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4779 ac_header_preproc=yes
4780 ;;
4781 no:yes:* )
d911ec67
AK
4782 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4783$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4785$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4787$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4789$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4791$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4793$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4794
4795 ;;
4796esac
d911ec67
AK
4797{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4798$as_echo_n "checking for sys/mkdev.h... " >&6; }
4799if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4800 $as_echo_n "(cached) " >&6
d0191583 4801else
d911ec67 4802 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4803fi
d911ec67
AK
4804{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4805$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4806
4807fi
d911ec67
AK
4808if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4809
4810cat >>confdefs.h <<\_ACEOF
4811#define MAJOR_IN_MKDEV 1
ad6254c5 4812_ACEOF
a38df97f 4813
80992638
AK
4814fi
4815
80992638 4816
5a52dca9 4817
d911ec67
AK
4818 if test $ac_cv_header_sys_mkdev_h = no; then
4819 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4820 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4821$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4822if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4823 $as_echo_n "(cached) " >&6
ad6254c5 4824fi
d911ec67
AK
4825{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4826$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4827else
4828 # Is the header compilable?
d911ec67
AK
4829{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4830$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4831cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4832/* confdefs.h. */
4833_ACEOF
4834cat confdefs.h >>conftest.$ac_ext
4835cat >>conftest.$ac_ext <<_ACEOF
4836/* end confdefs.h. */
4837$ac_includes_default
d911ec67 4838#include <sys/sysmacros.h>
ad6254c5
AK
4839_ACEOF
4840rm -f conftest.$ac_objext
7a197a62
AK
4841if { (ac_try="$ac_compile"
4842case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845esac
ec6a6fbe
AK
4846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4847$as_echo "$ac_try_echo") >&5
7a197a62 4848 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4849 ac_status=$?
8a2fc586
AK
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
ec6a6fbe 4853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.$ac_objext; then
fc54be10
AK
4858 ac_header_compiler=yes
4859else
ec6a6fbe 4860 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4861sed 's/^/| /' conftest.$ac_ext >&5
4862
4863 ac_header_compiler=no
4864fi
4865
4866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4867{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4868$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4869
4870# Is the header present?
d911ec67
AK
4871{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4872$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4873cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4874/* confdefs.h. */
4875_ACEOF
4876cat confdefs.h >>conftest.$ac_ext
4877cat >>conftest.$ac_ext <<_ACEOF
4878/* end confdefs.h. */
d911ec67 4879#include <sys/sysmacros.h>
ad6254c5 4880_ACEOF
7a197a62
AK
4881if { (ac_try="$ac_cpp conftest.$ac_ext"
4882case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885esac
ec6a6fbe
AK
4886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887$as_echo "$ac_try_echo") >&5
7a197a62 4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
ec6a6fbe 4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4894 (exit $ac_status); } >/dev/null && {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 }; then
ad6254c5
AK
4898 ac_header_preproc=yes
4899else
ec6a6fbe 4900 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4901sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 ac_header_preproc=no
4904fi
7a197a62 4905
ad6254c5 4906rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4907{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4908$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4909
4910# So? What about this header?
8a2fc586
AK
4911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4912 yes:no: )
d911ec67
AK
4913 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4914$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4915 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4916$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4917 ac_header_preproc=yes
ad6254c5 4918 ;;
8a2fc586 4919 no:yes:* )
d911ec67
AK
4920 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4921$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4922 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4923$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4925$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4926 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4927$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4928 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4929$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4930 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4931$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4932
ad6254c5
AK
4933 ;;
4934esac
d911ec67
AK
4935{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4936$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4937if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4938 $as_echo_n "(cached) " >&6
ad6254c5 4939else
d911ec67 4940 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4941fi
d911ec67
AK
4942{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4943$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4944
4945fi
d911ec67
AK
4946if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4947
4948cat >>confdefs.h <<\_ACEOF
4949#define MAJOR_IN_SYSMACROS 1
ad6254c5 4950_ACEOF
b896caa1 4951
80992638
AK
4952fi
4953
d8ac0fbc 4954
d911ec67
AK
4955 fi
4956fi
d8ac0fbc 4957
d911ec67
AK
4958{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4959$as_echo_n "checking for ANSI C header files... " >&6; }
4960if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4961 $as_echo_n "(cached) " >&6
ad6254c5 4962else
d911ec67 4963 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4964/* confdefs.h. */
4965_ACEOF
4966cat confdefs.h >>conftest.$ac_ext
4967cat >>conftest.$ac_ext <<_ACEOF
4968/* end confdefs.h. */
d911ec67
AK
4969#include <stdlib.h>
4970#include <stdarg.h>
4971#include <string.h>
4972#include <float.h>
4973
4974int
4975main ()
4976{
4977
4978 ;
4979 return 0;
4980}
ad6254c5
AK
4981_ACEOF
4982rm -f conftest.$ac_objext
7a197a62
AK
4983if { (ac_try="$ac_compile"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
ec6a6fbe
AK
4988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989$as_echo "$ac_try_echo") >&5
7a197a62 4990 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4991 ac_status=$?
8a2fc586
AK
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
ec6a6fbe 4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4996 (exit $ac_status); } && {
4997 test -z "$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 } && test -s conftest.$ac_objext; then
d911ec67 5000 ac_cv_header_stdc=yes
ad6254c5 5001else
ec6a6fbe 5002 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
d911ec67 5005 ac_cv_header_stdc=no
ad6254c5 5006fi
7a197a62
AK
5007
5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5009
d911ec67
AK
5010if test $ac_cv_header_stdc = yes; then
5011 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5012 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
d911ec67
AK
5018#include <string.h>
5019
ad6254c5 5020_ACEOF
d911ec67
AK
5021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5022 $EGREP "memchr" >/dev/null 2>&1; then
5023 :
5024else
5025 ac_cv_header_stdc=no
5026fi
5027rm -f conftest*
5028
5029fi
5030
5031if test $ac_cv_header_stdc = yes; then
5032 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5033 cat >conftest.$ac_ext <<_ACEOF
5034/* confdefs.h. */
5035_ACEOF
5036cat confdefs.h >>conftest.$ac_ext
5037cat >>conftest.$ac_ext <<_ACEOF
5038/* end confdefs.h. */
5039#include <stdlib.h>
5040
5041_ACEOF
5042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043 $EGREP "free" >/dev/null 2>&1; then
5044 :
5045else
5046 ac_cv_header_stdc=no
5047fi
5048rm -f conftest*
5049
5050fi
5051
5052if test $ac_cv_header_stdc = yes; then
5053 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5054 if test "$cross_compiling" = yes; then
5055 :
5056else
5057 cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h. */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h. */
5063#include <ctype.h>
5064#include <stdlib.h>
5065#if ((' ' & 0x0FF) == 0x020)
5066# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5067# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068#else
5069# define ISLOWER(c) \
5070 (('a' <= (c) && (c) <= 'i') \
5071 || ('j' <= (c) && (c) <= 'r') \
5072 || ('s' <= (c) && (c) <= 'z'))
5073# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5074#endif
5075
5076#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5077int
5078main ()
5079{
5080 int i;
5081 for (i = 0; i < 256; i++)
5082 if (XOR (islower (i), ISLOWER (i))
5083 || toupper (i) != TOUPPER (i))
5084 return 2;
5085 return 0;
5086}
5087_ACEOF
5088rm -f conftest$ac_exeext
5089if { (ac_try="$ac_link"
7a197a62
AK
5090case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5093esac
ec6a6fbe
AK
5094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5095$as_echo "$ac_try_echo") >&5
d911ec67
AK
5096 (eval "$ac_link") 2>&5
5097 ac_status=$?
5098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5100 { (case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5105$as_echo "$ac_try_echo") >&5
5106 (eval "$ac_try") 2>&5
5107 ac_status=$?
5108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; }; then
5110 :
5111else
5112 $as_echo "$as_me: program exited with status $ac_status" >&5
5113$as_echo "$as_me: failed program was:" >&5
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
5116( exit $ac_status )
5117ac_cv_header_stdc=no
5118fi
5119rm -rf conftest.dSYM
5120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5121fi
5122
5123
5124fi
5125fi
5126{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5127$as_echo "$ac_cv_header_stdc" >&6; }
5128if test $ac_cv_header_stdc = yes; then
5129
5130cat >>confdefs.h <<\_ACEOF
5131#define STDC_HEADERS 1
5132_ACEOF
5133
5134fi
5135
5136{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5137$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5138if test "${ac_cv_header_sys_wait_h+set}" = set; then
5139 $as_echo_n "(cached) " >&6
5140else
5141 cat >conftest.$ac_ext <<_ACEOF
5142/* confdefs.h. */
5143_ACEOF
5144cat confdefs.h >>conftest.$ac_ext
5145cat >>conftest.$ac_ext <<_ACEOF
5146/* end confdefs.h. */
5147#include <sys/types.h>
5148#include <sys/wait.h>
5149#ifndef WEXITSTATUS
5150# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5151#endif
5152#ifndef WIFEXITED
5153# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5154#endif
5155
5156int
5157main ()
5158{
5159 int s;
5160 wait (&s);
5161 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5162 ;
5163 return 0;
5164}
5165_ACEOF
5166rm -f conftest.$ac_objext
5167if { (ac_try="$ac_compile"
5168case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5173$as_echo "$ac_try_echo") >&5
5174 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
ec6a6fbe 5179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5180 (exit $ac_status); } && {
5181 test -z "$ac_c_werror_flag" ||
25fbec5b 5182 test ! -s conftest.err
d911ec67
AK
5183 } && test -s conftest.$ac_objext; then
5184 ac_cv_header_sys_wait_h=yes
ad6254c5 5185else
ec6a6fbe 5186 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5187sed 's/^/| /' conftest.$ac_ext >&5
5188
d911ec67 5189 ac_cv_header_sys_wait_h=no
ad6254c5 5190fi
7a197a62 5191
d911ec67
AK
5192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5193fi
5194{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5195$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5196if test $ac_cv_header_sys_wait_h = yes; then
5197
5198cat >>confdefs.h <<\_ACEOF
5199#define HAVE_SYS_WAIT_H 1
5200_ACEOF
5201
5202fi
5203
5204{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5205$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5206if test "${ac_cv_header_time+set}" = set; then
5207 $as_echo_n "(cached) " >&6
5208else
5209 cat >conftest.$ac_ext <<_ACEOF
5210/* confdefs.h. */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h. */
5215#include <sys/types.h>
5216#include <sys/time.h>
5217#include <time.h>
5218
5219int
5220main ()
5221{
5222if ((struct tm *) 0)
5223return 0;
5224 ;
5225 return 0;
5226}
5227_ACEOF
5228rm -f conftest.$ac_objext
5229if { (ac_try="$ac_compile"
5230case "(($ac_try" in
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5233esac
5234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5235$as_echo "$ac_try_echo") >&5
5236 (eval "$ac_compile") 2>conftest.er1
5237 ac_status=$?
5238 grep -v '^ *+' conftest.er1 >conftest.err
5239 rm -f conftest.er1
5240 cat conftest.err >&5
5241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); } && {
5243 test -z "$ac_c_werror_flag" ||
5244 test ! -s conftest.err
5245 } && test -s conftest.$ac_objext; then
5246 ac_cv_header_time=yes
5247else
5248 $as_echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251 ac_cv_header_time=no
5252fi
5253
5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255fi
5256{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5257$as_echo "$ac_cv_header_time" >&6; }
5258if test $ac_cv_header_time = yes; then
5259
5260cat >>confdefs.h <<\_ACEOF
5261#define TIME_WITH_SYS_TIME 1
5262_ACEOF
5263
5264fi
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5282 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5283 sys/wait.h time.h
5284do
5285as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5288$as_echo_n "checking for $ac_header... " >&6; }
5289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5290 $as_echo_n "(cached) " >&6
5291fi
5292ac_res=`eval 'as_val=${'$as_ac_Header'}
5293 $as_echo "$as_val"'`
5294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5295$as_echo "$ac_res" >&6; }
5296else
5297 # Is the header compilable?
5298{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5299$as_echo_n "checking $ac_header usability... " >&6; }
5300cat >conftest.$ac_ext <<_ACEOF
5301/* confdefs.h. */
5302_ACEOF
5303cat confdefs.h >>conftest.$ac_ext
5304cat >>conftest.$ac_ext <<_ACEOF
5305/* end confdefs.h. */
5306$ac_includes_default
5307#include <$ac_header>
5308_ACEOF
5309rm -f conftest.$ac_objext
5310if { (ac_try="$ac_compile"
5311case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5316$as_echo "$ac_try_echo") >&5
5317 (eval "$ac_compile") 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.$ac_objext; then
5327 ac_header_compiler=yes
5328else
5329 $as_echo "$as_me: failed program was:" >&5
5330sed 's/^/| /' conftest.$ac_ext >&5
5331
5332 ac_header_compiler=no
5333fi
5334
5335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5337$as_echo "$ac_header_compiler" >&6; }
5338
5339# Is the header present?
5340{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5341$as_echo_n "checking $ac_header presence... " >&6; }
5342cat >conftest.$ac_ext <<_ACEOF
5343/* confdefs.h. */
5344_ACEOF
5345cat confdefs.h >>conftest.$ac_ext
5346cat >>conftest.$ac_ext <<_ACEOF
5347/* end confdefs.h. */
5348#include <$ac_header>
5349_ACEOF
5350if { (ac_try="$ac_cpp conftest.$ac_ext"
5351case "(($ac_try" in
5352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353 *) ac_try_echo=$ac_try;;
5354esac
5355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5356$as_echo "$ac_try_echo") >&5
5357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5358 ac_status=$?
5359 grep -v '^ *+' conftest.er1 >conftest.err
5360 rm -f conftest.er1
5361 cat conftest.err >&5
5362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } >/dev/null && {
5364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5365 test ! -s conftest.err
5366 }; then
5367 ac_header_preproc=yes
5368else
5369 $as_echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372 ac_header_preproc=no
5373fi
5374
5375rm -f conftest.err conftest.$ac_ext
5376{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5377$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5378
5379# So? What about this header?
8a2fc586
AK
5380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5381 yes:no: )
ec6a6fbe
AK
5382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5383$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5385$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5386 ac_header_preproc=yes
ad6254c5 5387 ;;
8a2fc586 5388 no:yes:* )
ec6a6fbe
AK
5389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5390$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5392$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5394$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5396$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5398$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5400$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5401
ad6254c5
AK
5402 ;;
5403esac
d911ec67
AK
5404{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5405$as_echo_n "checking for $ac_header... " >&6; }
5406if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5407 $as_echo_n "(cached) " >&6
5408else
5409 eval "$as_ac_Header=\$ac_header_preproc"
5410fi
5411ac_res=`eval 'as_val=${'$as_ac_Header'}
5412 $as_echo "$as_val"'`
5413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5414$as_echo "$ac_res" >&6; }
5415
5416fi
5417as_val=`eval 'as_val=${'$as_ac_Header'}
5418 $as_echo "$as_val"'`
5419 if test "x$as_val" = x""yes; then
5420 cat >>confdefs.h <<_ACEOF
5421#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5422_ACEOF
5423
5424else
5425 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5426$as_echo "$as_me: error: bailing out" >&2;}
5427 { (exit 1); exit 1; }; }
5428fi
5429
5430done
5431
5432
5433case "$host_os" in
5434 linux*)
5435
5436
5437
5438for ac_header in asm/byteorder.h linux/fs.h malloc.h
5439do
5440as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5443$as_echo_n "checking for $ac_header... " >&6; }
5444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445 $as_echo_n "(cached) " >&6
5446fi
5447ac_res=`eval 'as_val=${'$as_ac_Header'}
5448 $as_echo "$as_val"'`
5449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5450$as_echo "$ac_res" >&6; }
5451else
5452 # Is the header compilable?
5453{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5454$as_echo_n "checking $ac_header usability... " >&6; }
5455cat >conftest.$ac_ext <<_ACEOF
5456/* confdefs.h. */
5457_ACEOF
5458cat confdefs.h >>conftest.$ac_ext
5459cat >>conftest.$ac_ext <<_ACEOF
5460/* end confdefs.h. */
5461$ac_includes_default
5462#include <$ac_header>
5463_ACEOF
5464rm -f conftest.$ac_objext
5465if { (ac_try="$ac_compile"
5466case "(($ac_try" in
5467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5468 *) ac_try_echo=$ac_try;;
5469esac
5470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5471$as_echo "$ac_try_echo") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_c_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_header_compiler=yes
5483else
5484 $as_echo "$as_me: failed program was:" >&5
5485sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_header_compiler=no
5488fi
5489
5490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5492$as_echo "$ac_header_compiler" >&6; }
5493
5494# Is the header present?
5495{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5496$as_echo_n "checking $ac_header presence... " >&6; }
5497cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h. */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h. */
5503#include <$ac_header>
5504_ACEOF
5505if { (ac_try="$ac_cpp conftest.$ac_ext"
5506case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5511$as_echo "$ac_try_echo") >&5
5512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null && {
5519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5520 test ! -s conftest.err
5521 }; then
5522 ac_header_preproc=yes
5523else
5524 $as_echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527 ac_header_preproc=no
5528fi
5529
5530rm -f conftest.err conftest.$ac_ext
5531{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5532$as_echo "$ac_header_preproc" >&6; }
5533
5534# So? What about this header?
5535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5536 yes:no: )
5537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5538$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5540$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5541 ac_header_preproc=yes
5542 ;;
5543 no:yes:* )
5544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5545$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5547$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5549$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5551$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5553$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5555$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5556
5557 ;;
5558esac
5559{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5560$as_echo_n "checking for $ac_header... " >&6; }
5561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5562 $as_echo_n "(cached) " >&6
5563else
5564 eval "$as_ac_Header=\$ac_header_preproc"
5565fi
5566ac_res=`eval 'as_val=${'$as_ac_Header'}
5567 $as_echo "$as_val"'`
5568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5569$as_echo "$ac_res" >&6; }
5570
5571fi
5572as_val=`eval 'as_val=${'$as_ac_Header'}
5573 $as_echo "$as_val"'`
5574 if test "x$as_val" = x""yes; then
5575 cat >>confdefs.h <<_ACEOF
5576#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5577_ACEOF
5578
5579else
5580 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5581$as_echo "$as_me: error: bailing out" >&2;}
5582 { (exit 1); exit 1; }; }
5583fi
5584
5585done
5586 ;;
5587 darwin*)
5588
5589
5590for ac_header in machine/endian.h sys/disk.h
5591do
5592as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5595$as_echo_n "checking for $ac_header... " >&6; }
5596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 $as_echo_n "(cached) " >&6
5598fi
5599ac_res=`eval 'as_val=${'$as_ac_Header'}
5600 $as_echo "$as_val"'`
5601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5602$as_echo "$ac_res" >&6; }
5603else
5604 # Is the header compilable?
5605{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5606$as_echo_n "checking $ac_header usability... " >&6; }
5607cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613$ac_includes_default
5614#include <$ac_header>
5615_ACEOF
5616rm -f conftest.$ac_objext
5617if { (ac_try="$ac_compile"
5618case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621esac
5622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5623$as_echo "$ac_try_echo") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 ac_header_compiler=yes
5635else
5636 $as_echo "$as_me: failed program was:" >&5
5637sed 's/^/| /' conftest.$ac_ext >&5
5638
5639 ac_header_compiler=no
5640fi
5641
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5644$as_echo "$ac_header_compiler" >&6; }
5645
5646# Is the header present?
5647{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5648$as_echo_n "checking $ac_header presence... " >&6; }
5649cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */
5655#include <$ac_header>
5656_ACEOF
5657if { (ac_try="$ac_cpp conftest.$ac_ext"
5658case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661esac
5662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5663$as_echo "$ac_try_echo") >&5
5664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null && {
5671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 }; then
5674 ac_header_preproc=yes
5675else
5676 $as_echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
5679 ac_header_preproc=no
5680fi
5681
5682rm -f conftest.err conftest.$ac_ext
5683{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5684$as_echo "$ac_header_preproc" >&6; }
5685
5686# So? What about this header?
5687case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5688 yes:no: )
5689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5690$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5692$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5693 ac_header_preproc=yes
5694 ;;
5695 no:yes:* )
5696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5697$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5699$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5701$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5703$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5705$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5707$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5708
5709 ;;
5710esac
5711{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5712$as_echo_n "checking for $ac_header... " >&6; }
5713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5714 $as_echo_n "(cached) " >&6
5715else
5716 eval "$as_ac_Header=\$ac_header_preproc"
5717fi
5718ac_res=`eval 'as_val=${'$as_ac_Header'}
5719 $as_echo "$as_val"'`
5720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5721$as_echo "$ac_res" >&6; }
5722
5723fi
5724as_val=`eval 'as_val=${'$as_ac_Header'}
5725 $as_echo "$as_val"'`
5726 if test "x$as_val" = x""yes; then
5727 cat >>confdefs.h <<_ACEOF
5728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5729_ACEOF
5730
5731else
5732 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5733$as_echo "$as_me: error: bailing out" >&2;}
5734 { (exit 1); exit 1; }; }
5735fi
5736
5737done
5738 ;;
5739esac
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5758 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5759 sys/types.h unistd.h
5760do
5761as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5764$as_echo_n "checking for $ac_header... " >&6; }
5765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 $as_echo_n "(cached) " >&6
5767fi
5768ac_res=`eval 'as_val=${'$as_ac_Header'}
5769 $as_echo "$as_val"'`
5770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5771$as_echo "$ac_res" >&6; }
5772else
5773 # Is the header compilable?
5774{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5775$as_echo_n "checking $ac_header usability... " >&6; }
5776cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782$ac_includes_default
5783#include <$ac_header>
5784_ACEOF
5785rm -f conftest.$ac_objext
5786if { (ac_try="$ac_compile"
5787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5792$as_echo "$ac_try_echo") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_header_compiler=yes
5804else
5805 $as_echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808 ac_header_compiler=no
5809fi
5810
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5813$as_echo "$ac_header_compiler" >&6; }
5814
5815# Is the header present?
5816{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5817$as_echo_n "checking $ac_header presence... " >&6; }
5818cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824#include <$ac_header>
5825_ACEOF
5826if { (ac_try="$ac_cpp conftest.$ac_ext"
5827case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5830esac
5831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5832$as_echo "$ac_try_echo") >&5
5833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5834 ac_status=$?
5835 grep -v '^ *+' conftest.er1 >conftest.err
5836 rm -f conftest.er1
5837 cat conftest.err >&5
5838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } >/dev/null && {
5840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 }; then
5843 ac_header_preproc=yes
5844else
5845 $as_echo "$as_me: failed program was:" >&5
5846sed 's/^/| /' conftest.$ac_ext >&5
5847
5848 ac_header_preproc=no
5849fi
5850
5851rm -f conftest.err conftest.$ac_ext
5852{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5853$as_echo "$ac_header_preproc" >&6; }
5854
5855# So? What about this header?
5856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5857 yes:no: )
5858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5859$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5861$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5862 ac_header_preproc=yes
5863 ;;
5864 no:yes:* )
5865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5866$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5868$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5870$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5872$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5874$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5876$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5877
5878 ;;
5879esac
5880{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5881$as_echo_n "checking for $ac_header... " >&6; }
5882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 $as_echo_n "(cached) " >&6
5884else
5885 eval "$as_ac_Header=\$ac_header_preproc"
5886fi
5887ac_res=`eval 'as_val=${'$as_ac_Header'}
5888 $as_echo "$as_val"'`
5889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5890$as_echo "$ac_res" >&6; }
5891
5892fi
5893as_val=`eval 'as_val=${'$as_ac_Header'}
5894 $as_echo "$as_val"'`
5895 if test "x$as_val" = x""yes; then
5896 cat >>confdefs.h <<_ACEOF
5897#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5898_ACEOF
5899
5900else
5901 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5902$as_echo "$as_me: error: bailing out" >&2;}
5903 { (exit 1); exit 1; }; }
5904fi
5905
5906done
5907
5908
5909
5910for ac_header in termios.h sys/statvfs.h
5911do
5912as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5915$as_echo_n "checking for $ac_header... " >&6; }
5916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5917 $as_echo_n "(cached) " >&6
5918fi
5919ac_res=`eval 'as_val=${'$as_ac_Header'}
5920 $as_echo "$as_val"'`
5921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5922$as_echo "$ac_res" >&6; }
5923else
5924 # Is the header compilable?
5925{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926$as_echo_n "checking $ac_header usability... " >&6; }
5927cat >conftest.$ac_ext <<_ACEOF
5928/* confdefs.h. */
5929_ACEOF
5930cat confdefs.h >>conftest.$ac_ext
5931cat >>conftest.$ac_ext <<_ACEOF
5932/* end confdefs.h. */
5933$ac_includes_default
5934#include <$ac_header>
5935_ACEOF
5936rm -f conftest.$ac_objext
5937if { (ac_try="$ac_compile"
5938case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941esac
5942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5943$as_echo "$ac_try_echo") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5945 ac_status=$?
5946 grep -v '^ *+' conftest.er1 >conftest.err
5947 rm -f conftest.er1
5948 cat conftest.err >&5
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } && {
5951 test -z "$ac_c_werror_flag" ||
5952 test ! -s conftest.err
5953 } && test -s conftest.$ac_objext; then
5954 ac_header_compiler=yes
5955else
5956 $as_echo "$as_me: failed program was:" >&5
5957sed 's/^/| /' conftest.$ac_ext >&5
5958
5959 ac_header_compiler=no
5960fi
5961
5962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5963{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5964$as_echo "$ac_header_compiler" >&6; }
5965
5966# Is the header present?
5967{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5968$as_echo_n "checking $ac_header presence... " >&6; }
5969cat >conftest.$ac_ext <<_ACEOF
5970/* confdefs.h. */
5971_ACEOF
5972cat confdefs.h >>conftest.$ac_ext
5973cat >>conftest.$ac_ext <<_ACEOF
5974/* end confdefs.h. */
5975#include <$ac_header>
5976_ACEOF
5977if { (ac_try="$ac_cpp conftest.$ac_ext"
5978case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983$as_echo "$ac_try_echo") >&5
5984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } >/dev/null && {
5991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5992 test ! -s conftest.err
5993 }; then
5994 ac_header_preproc=yes
5995else
5996 $as_echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_header_preproc=no
6000fi
6001
6002rm -f conftest.err conftest.$ac_ext
6003{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6004$as_echo "$ac_header_preproc" >&6; }
6005
6006# So? What about this header?
6007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6008 yes:no: )
6009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6010$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6012$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6013 ac_header_preproc=yes
6014 ;;
6015 no:yes:* )
6016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6017$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6019$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6021$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6023$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6025$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6027$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6028
6029 ;;
6030esac
6031{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6032$as_echo_n "checking for $ac_header... " >&6; }
6033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6034 $as_echo_n "(cached) " >&6
6035else
6036 eval "$as_ac_Header=\$ac_header_preproc"
6037fi
6038ac_res=`eval 'as_val=${'$as_ac_Header'}
6039 $as_echo "$as_val"'`
6040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6041$as_echo "$ac_res" >&6; }
6042
6043fi
6044as_val=`eval 'as_val=${'$as_ac_Header'}
6045 $as_echo "$as_val"'`
6046 if test "x$as_val" = x""yes; then
6047 cat >>confdefs.h <<_ACEOF
6048#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6049_ACEOF
6050
6051fi
6052
6053done
6054
6055
6056################################################################################
6057{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6058$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6059if test "${ac_cv_c_const+set}" = set; then
6060 $as_echo_n "(cached) " >&6
6061else
6062 cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h. */
6068
6069int
6070main ()
6071{
6072/* FIXME: Include the comments suggested by Paul. */
6073#ifndef __cplusplus
6074 /* Ultrix mips cc rejects this. */
6075 typedef int charset[2];
6076 const charset cs;
6077 /* SunOS 4.1.1 cc rejects this. */
6078 char const *const *pcpcc;
6079 char **ppc;
6080 /* NEC SVR4.0.2 mips cc rejects this. */
6081 struct point {int x, y;};
6082 static struct point const zero = {0,0};
6083 /* AIX XL C 1.02.0.0 rejects this.
6084 It does not let you subtract one const X* pointer from another in
6085 an arm of an if-expression whose if-part is not a constant
6086 expression */
6087 const char *g = "string";
6088 pcpcc = &g + (g ? g-g : 0);
6089 /* HPUX 7.0 cc rejects these. */
6090 ++pcpcc;
6091 ppc = (char**) pcpcc;
6092 pcpcc = (char const *const *) ppc;
6093 { /* SCO 3.2v4 cc rejects this. */
6094 char *t;
6095 char const *s = 0 ? (char *) 0 : (char const *) 0;
6096
6097 *t++ = 0;
6098 if (s) return 0;
6099 }
6100 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6101 int x[] = {25, 17};
6102 const int *foo = &x[0];
6103 ++foo;
6104 }
6105 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6106 typedef const int *iptr;
6107 iptr p = 0;
6108 ++p;
6109 }
6110 { /* AIX XL C 1.02.0.0 rejects this saying
6111 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6112 struct s { int j; const int *ap[3]; };
6113 struct s *b; b->j = 5;
6114 }
6115 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6116 const int foo = 10;
6117 if (!foo) return 0;
6118 }
6119 return !cs[0] && !zero.x;
6120#endif
6121
6122 ;
6123 return 0;
6124}
6125_ACEOF
6126rm -f conftest.$ac_objext
6127if { (ac_try="$ac_compile"
6128case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131esac
6132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6133$as_echo "$ac_try_echo") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6135 ac_status=$?
6136 grep -v '^ *+' conftest.er1 >conftest.err
6137 rm -f conftest.er1
6138 cat conftest.err >&5
6139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6144 ac_cv_c_const=yes
6145else
6146 $as_echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ac_cv_c_const=no
6150fi
6151
6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153fi
6154{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6155$as_echo "$ac_cv_c_const" >&6; }
6156if test $ac_cv_c_const = no; then
6157
6158cat >>confdefs.h <<\_ACEOF
6159#define const /**/
6160_ACEOF
6161
6162fi
6163
6164{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6165$as_echo_n "checking for inline... " >&6; }
6166if test "${ac_cv_c_inline+set}" = set; then
6167 $as_echo_n "(cached) " >&6
6168else
6169 ac_cv_c_inline=no
6170for ac_kw in inline __inline__ __inline; do
6171 cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */
6177#ifndef __cplusplus
6178typedef int foo_t;
6179static $ac_kw foo_t static_foo () {return 0; }
6180$ac_kw foo_t foo () {return 0; }
6181#endif
6182
6183_ACEOF
6184rm -f conftest.$ac_objext
6185if { (ac_try="$ac_compile"
6186case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191$as_echo "$ac_try_echo") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.$ac_objext; then
6202 ac_cv_c_inline=$ac_kw
6203else
6204 $as_echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207
6208fi
6209
6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6211 test "$ac_cv_c_inline" != no && break
6212done
6213
6214fi
6215{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6216$as_echo "$ac_cv_c_inline" >&6; }
6217
6218
6219case $ac_cv_c_inline in
6220 inline | yes) ;;
6221 *)
6222 case $ac_cv_c_inline in
6223 no) ac_val=;;
6224 *) ac_val=$ac_cv_c_inline;;
6225 esac
6226 cat >>confdefs.h <<_ACEOF
6227#ifndef __cplusplus
6228#define inline $ac_val
6229#endif
6230_ACEOF
6231 ;;
6232esac
6233
6234{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6235$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6236if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6237 $as_echo_n "(cached) " >&6
6238else
6239 cat >conftest.$ac_ext <<_ACEOF
6240/* confdefs.h. */
6241_ACEOF
6242cat confdefs.h >>conftest.$ac_ext
6243cat >>conftest.$ac_ext <<_ACEOF
6244/* end confdefs.h. */
6245$ac_includes_default
6246int
6247main ()
6248{
6249static struct stat ac_aggr;
6250if (ac_aggr.st_rdev)
6251return 0;
6252 ;
6253 return 0;
6254}
6255_ACEOF
6256rm -f conftest.$ac_objext
6257if { (ac_try="$ac_compile"
6258case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261esac
6262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6263$as_echo "$ac_try_echo") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.$ac_objext; then
6274 ac_cv_member_struct_stat_st_rdev=yes
6275else
6276 $as_echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 cat >conftest.$ac_ext <<_ACEOF
6280/* confdefs.h. */
6281_ACEOF
6282cat confdefs.h >>conftest.$ac_ext
6283cat >>conftest.$ac_ext <<_ACEOF
6284/* end confdefs.h. */
6285$ac_includes_default
6286int
6287main ()
6288{
6289static struct stat ac_aggr;
6290if (sizeof ac_aggr.st_rdev)
6291return 0;
6292 ;
6293 return 0;
6294}
6295_ACEOF
6296rm -f conftest.$ac_objext
6297if { (ac_try="$ac_compile"
6298case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
6302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303$as_echo "$ac_try_echo") >&5
6304 (eval "$ac_compile") 2>conftest.er1
6305 ac_status=$?
6306 grep -v '^ *+' conftest.er1 >conftest.err
6307 rm -f conftest.er1
6308 cat conftest.err >&5
6309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } && {
6311 test -z "$ac_c_werror_flag" ||
6312 test ! -s conftest.err
6313 } && test -s conftest.$ac_objext; then
6314 ac_cv_member_struct_stat_st_rdev=yes
6315else
6316 $as_echo "$as_me: failed program was:" >&5
6317sed 's/^/| /' conftest.$ac_ext >&5
6318
6319 ac_cv_member_struct_stat_st_rdev=no
6320fi
6321
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326fi
6327{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6328$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6329if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6330
6331cat >>confdefs.h <<_ACEOF
6332#define HAVE_STRUCT_STAT_ST_RDEV 1
6333_ACEOF
6334
6335
6336fi
6337
6338{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6339$as_echo_n "checking for off_t... " >&6; }
6340if test "${ac_cv_type_off_t+set}" = set; then
6341 $as_echo_n "(cached) " >&6
6342else
6343 ac_cv_type_off_t=no
6344cat >conftest.$ac_ext <<_ACEOF
6345/* confdefs.h. */
6346_ACEOF
6347cat confdefs.h >>conftest.$ac_ext
6348cat >>conftest.$ac_ext <<_ACEOF
6349/* end confdefs.h. */
6350$ac_includes_default
6351int
6352main ()
6353{
6354if (sizeof (off_t))
6355 return 0;
6356 ;
6357 return 0;
6358}
6359_ACEOF
6360rm -f conftest.$ac_objext
6361if { (ac_try="$ac_compile"
6362case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365esac
6366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6367$as_echo "$ac_try_echo") >&5
6368 (eval "$ac_compile") 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && {
6375 test -z "$ac_c_werror_flag" ||
6376 test ! -s conftest.err
6377 } && test -s conftest.$ac_objext; then
6378 cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384$ac_includes_default
6385int
6386main ()
6387{
6388if (sizeof ((off_t)))
6389 return 0;
6390 ;
6391 return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext
6395if { (ac_try="$ac_compile"
6396case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401$as_echo "$ac_try_echo") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6403 ac_status=$?
6404 grep -v '^ *+' conftest.er1 >conftest.err
6405 rm -f conftest.er1
6406 cat conftest.err >&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6412 :
6413else
6414 $as_echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_cv_type_off_t=yes
6418fi
6419
6420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421else
6422 $as_echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425
6426fi
6427
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429fi
6430{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6431$as_echo "$ac_cv_type_off_t" >&6; }
6432if test "x$ac_cv_type_off_t" = x""yes; then
6433 :
6434else
6435
6436cat >>confdefs.h <<_ACEOF
6437#define off_t long int
6438_ACEOF
6439
6440fi
6441
6442{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6443$as_echo_n "checking for pid_t... " >&6; }
6444if test "${ac_cv_type_pid_t+set}" = set; then
6445 $as_echo_n "(cached) " >&6
6446else
6447 ac_cv_type_pid_t=no
6448cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h. */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h. */
6454$ac_includes_default
6455int
6456main ()
6457{
6458if (sizeof (pid_t))
6459 return 0;
6460 ;
6461 return 0;
6462}
6463_ACEOF
6464rm -f conftest.$ac_objext
6465if { (ac_try="$ac_compile"
6466case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6469esac
6470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6471$as_echo "$ac_try_echo") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h. */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h. */
6488$ac_includes_default
6489int
6490main ()
6491{
6492if (sizeof ((pid_t)))
6493 return 0;
6494 ;
6495 return 0;
6496}
6497_ACEOF
6498rm -f conftest.$ac_objext
6499if { (ac_try="$ac_compile"
6500case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503esac
6504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6505$as_echo "$ac_try_echo") >&5
6506 (eval "$ac_compile") 2>conftest.er1
6507 ac_status=$?
6508 grep -v '^ *+' conftest.er1 >conftest.err
6509 rm -f conftest.er1
6510 cat conftest.err >&5
6511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } && {
6513 test -z "$ac_c_werror_flag" ||
6514 test ! -s conftest.err
6515 } && test -s conftest.$ac_objext; then
6516 :
6517else
6518 $as_echo "$as_me: failed program was:" >&5
6519sed 's/^/| /' conftest.$ac_ext >&5
6520
6521 ac_cv_type_pid_t=yes
6522fi
6523
6524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525else
6526 $as_echo "$as_me: failed program was:" >&5
6527sed 's/^/| /' conftest.$ac_ext >&5
6528
6529
6530fi
6531
6532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533fi
6534{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6535$as_echo "$ac_cv_type_pid_t" >&6; }
6536if test "x$ac_cv_type_pid_t" = x""yes; then
6537 :
6538else
6539
6540cat >>confdefs.h <<_ACEOF
6541#define pid_t int
6542_ACEOF
6543
6544fi
6545
6546{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6547$as_echo_n "checking return type of signal handlers... " >&6; }
6548if test "${ac_cv_type_signal+set}" = set; then
6549 $as_echo_n "(cached) " >&6
6550else
6551 cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h. */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h. */
6557#include <sys/types.h>
6558#include <signal.h>
6559
6560int
6561main ()
6562{
6563return *(signal (0, 0)) (0) == 1;
6564 ;
6565 return 0;
6566}
6567_ACEOF
6568rm -f conftest.$ac_objext
6569if { (ac_try="$ac_compile"
6570case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573esac
6574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575$as_echo "$ac_try_echo") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 ac_cv_type_signal=int
6587else
6588 $as_echo "$as_me: failed program was:" >&5
6589sed 's/^/| /' conftest.$ac_ext >&5
6590
6591 ac_cv_type_signal=void
6592fi
6593
6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595fi
6596{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6597$as_echo "$ac_cv_type_signal" >&6; }
6598
6599cat >>confdefs.h <<_ACEOF
6600#define RETSIGTYPE $ac_cv_type_signal
6601_ACEOF
6602
6603
6604{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6605$as_echo_n "checking for size_t... " >&6; }
6606if test "${ac_cv_type_size_t+set}" = set; then
6607 $as_echo_n "(cached) " >&6
6608else
6609 ac_cv_type_size_t=no
6610cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h. */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h. */
6616$ac_includes_default
6617int
6618main ()
6619{
6620if (sizeof (size_t))
6621 return 0;
6622 ;
6623 return 0;
6624}
6625_ACEOF
6626rm -f conftest.$ac_objext
6627if { (ac_try="$ac_compile"
6628case "(($ac_try" in
6629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630 *) ac_try_echo=$ac_try;;
6631esac
6632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633$as_echo "$ac_try_echo") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 cat >conftest.$ac_ext <<_ACEOF
6645/* confdefs.h. */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
6649/* end confdefs.h. */
6650$ac_includes_default
6651int
6652main ()
6653{
6654if (sizeof ((size_t)))
6655 return 0;
6656 ;
6657 return 0;
6658}
6659_ACEOF
6660rm -f conftest.$ac_objext
6661if { (ac_try="$ac_compile"
6662case "(($ac_try" in
6663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6664 *) ac_try_echo=$ac_try;;
6665esac
6666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6667$as_echo "$ac_try_echo") >&5
6668 (eval "$ac_compile") 2>conftest.er1
6669 ac_status=$?
6670 grep -v '^ *+' conftest.er1 >conftest.err
6671 rm -f conftest.er1
6672 cat conftest.err >&5
6673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); } && {
6675 test -z "$ac_c_werror_flag" ||
6676 test ! -s conftest.err
6677 } && test -s conftest.$ac_objext; then
6678 :
ad6254c5 6679else
d911ec67
AK
6680 $as_echo "$as_me: failed program was:" >&5
6681sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6682
d911ec67 6683 ac_cv_type_size_t=yes
ad6254c5 6684fi
4922197a 6685
d911ec67 6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6687else
d911ec67
AK
6688 $as_echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6690
6691
d911ec67 6692fi
d0191583 6693
d911ec67
AK
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695fi
6696{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6697$as_echo "$ac_cv_type_size_t" >&6; }
6698if test "x$ac_cv_type_size_t" = x""yes; then
6699 :
6700else
d0191583 6701
d911ec67
AK
6702cat >>confdefs.h <<_ACEOF
6703#define size_t unsigned int
6704_ACEOF
d0191583 6705
d911ec67 6706fi
d0191583 6707
d911ec67
AK
6708{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6709$as_echo_n "checking for mode_t... " >&6; }
6710if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6711 $as_echo_n "(cached) " >&6
795ca3e5 6712else
d911ec67 6713 ac_cv_type_mode_t=no
ad6254c5 6714cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6715/* confdefs.h. */
6716_ACEOF
6717cat confdefs.h >>conftest.$ac_ext
6718cat >>conftest.$ac_ext <<_ACEOF
6719/* end confdefs.h. */
6720$ac_includes_default
d911ec67
AK
6721int
6722main ()
6723{
6724if (sizeof (mode_t))
6725 return 0;
6726 ;
6727 return 0;
6728}
ad6254c5
AK
6729_ACEOF
6730rm -f conftest.$ac_objext
7a197a62
AK
6731if { (ac_try="$ac_compile"
6732case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735esac
ec6a6fbe
AK
6736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737$as_echo "$ac_try_echo") >&5
7a197a62 6738 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6739 ac_status=$?
8a2fc586
AK
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
ec6a6fbe 6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
d911ec67 6748 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6749/* confdefs.h. */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h. */
d911ec67
AK
6754$ac_includes_default
6755int
6756main ()
6757{
6758if (sizeof ((mode_t)))
6759 return 0;
6760 ;
6761 return 0;
6762}
ad6254c5 6763_ACEOF
d911ec67
AK
6764rm -f conftest.$ac_objext
6765if { (ac_try="$ac_compile"
7a197a62
AK
6766case "(($ac_try" in
6767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6768 *) ac_try_echo=$ac_try;;
6769esac
ec6a6fbe
AK
6770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6771$as_echo "$ac_try_echo") >&5
d911ec67 6772 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
ec6a6fbe 6777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
25fbec5b 6780 test ! -s conftest.err
d911ec67
AK
6781 } && test -s conftest.$ac_objext; then
6782 :
ad6254c5 6783else
ec6a6fbe 6784 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6785sed 's/^/| /' conftest.$ac_ext >&5
6786
d911ec67 6787 ac_cv_type_mode_t=yes
ad6254c5 6788fi
7a197a62 6789
d911ec67
AK
6790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791else
6792 $as_echo "$as_me: failed program was:" >&5
6793sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6794
7a197a62 6795
80992638
AK
6796fi
6797
d911ec67 6798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6799fi
d911ec67
AK
6800{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6801$as_echo "$ac_cv_type_mode_t" >&6; }
6802if test "x$ac_cv_type_mode_t" = x""yes; then
6803 :
795ca3e5 6804else
80992638 6805
d911ec67
AK
6806cat >>confdefs.h <<_ACEOF
6807#define mode_t int
6808_ACEOF
ad6254c5 6809
d911ec67 6810fi
795ca3e5 6811
d0191583 6812
d911ec67
AK
6813 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6814$as_echo_n "checking for int8_t... " >&6; }
6815if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6816 $as_echo_n "(cached) " >&6
ad6254c5 6817else
d911ec67
AK
6818 ac_cv_c_int8_t=no
6819 for ac_type in 'int8_t' 'int' 'long int' \
6820 'long long int' 'short int' 'signed char'; do
6821 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6822/* confdefs.h. */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h. */
6827$ac_includes_default
d911ec67
AK
6828int
6829main ()
6830{
6831static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6832test_array [0] = 0
6833
6834 ;
6835 return 0;
6836}
ad6254c5
AK
6837_ACEOF
6838rm -f conftest.$ac_objext
7a197a62
AK
6839if { (ac_try="$ac_compile"
6840case "(($ac_try" in
6841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6842 *) ac_try_echo=$ac_try;;
6843esac
ec6a6fbe
AK
6844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6845$as_echo "$ac_try_echo") >&5
7a197a62 6846 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6847 ac_status=$?
8a2fc586
AK
6848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
ec6a6fbe 6851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6852 (exit $ac_status); } && {
6853 test -z "$ac_c_werror_flag" ||
6854 test ! -s conftest.err
6855 } && test -s conftest.$ac_objext; then
d911ec67 6856 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6857/* confdefs.h. */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h. */
d911ec67
AK
6862$ac_includes_default
6863int
6864main ()
6865{
6866static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6867 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6868test_array [0] = 0
6869
6870 ;
6871 return 0;
6872}
ad6254c5 6873_ACEOF
d911ec67
AK
6874rm -f conftest.$ac_objext
6875if { (ac_try="$ac_compile"
7a197a62
AK
6876case "(($ac_try" in
6877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6878 *) ac_try_echo=$ac_try;;
6879esac
ec6a6fbe
AK
6880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6881$as_echo "$ac_try_echo") >&5
d911ec67 6882 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6883 ac_status=$?
6884 grep -v '^ *+' conftest.er1 >conftest.err
6885 rm -f conftest.er1
6886 cat conftest.err >&5
ec6a6fbe 6887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
25fbec5b 6890 test ! -s conftest.err
d911ec67
AK
6891 } && test -s conftest.$ac_objext; then
6892 :
ad6254c5 6893else
ec6a6fbe 6894 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6895sed 's/^/| /' conftest.$ac_ext >&5
6896
d911ec67
AK
6897 case $ac_type in
6898 int8_t) ac_cv_c_int8_t=yes ;;
6899 *) ac_cv_c_int8_t=$ac_type ;;
6900esac
ad6254c5 6901
d911ec67 6902fi
7a197a62 6903
d911ec67 6904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6905else
d911ec67
AK
6906 $as_echo "$as_me: failed program was:" >&5
6907sed 's/^/| /' conftest.$ac_ext >&5
6908
b896caa1 6909
ad6254c5 6910fi
ad6254c5 6911
d911ec67
AK
6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 test "$ac_cv_c_int8_t" != no && break
6914 done
80992638 6915fi
d911ec67
AK
6916{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6917$as_echo "$ac_cv_c_int8_t" >&6; }
6918 case $ac_cv_c_int8_t in #(
6919 no|yes) ;; #(
6920 *)
80992638 6921
d911ec67
AK
6922cat >>confdefs.h <<_ACEOF
6923#define int8_t $ac_cv_c_int8_t
6924_ACEOF
6925;;
6926 esac
d0191583 6927
d3c8211f 6928
d911ec67
AK
6929 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6930$as_echo_n "checking for int16_t... " >&6; }
6931if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6932 $as_echo_n "(cached) " >&6
d3c8211f 6933else
d911ec67
AK
6934 ac_cv_c_int16_t=no
6935 for ac_type in 'int16_t' 'int' 'long int' \
6936 'long long int' 'short int' 'signed char'; do
6937 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6938/* confdefs.h. */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h. */
d911ec67 6943$ac_includes_default
ad6254c5
AK
6944int
6945main ()
6946{
d911ec67
AK
6947static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6948test_array [0] = 0
ad6254c5
AK
6949
6950 ;
6951 return 0;
6952}
6953_ACEOF
6954rm -f conftest.$ac_objext
7a197a62
AK
6955if { (ac_try="$ac_compile"
6956case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959esac
ec6a6fbe
AK
6960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961$as_echo "$ac_try_echo") >&5
7a197a62 6962 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6963 ac_status=$?
8a2fc586
AK
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
ec6a6fbe 6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
ad6254c5 6972 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6973/* confdefs.h. */
6974_ACEOF
6975cat confdefs.h >>conftest.$ac_ext
6976cat >>conftest.$ac_ext <<_ACEOF
6977/* end confdefs.h. */
d911ec67
AK
6978$ac_includes_default
6979int
6980main ()
6981{
6982static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6983 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6984test_array [0] = 0
80992638 6985
d911ec67
AK
6986 ;
6987 return 0;
6988}
ad6254c5
AK
6989_ACEOF
6990rm -f conftest.$ac_objext
7a197a62
AK
6991if { (ac_try="$ac_compile"
6992case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995esac
ec6a6fbe
AK
6996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997$as_echo "$ac_try_echo") >&5
7a197a62 6998 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6999 ac_status=$?
8a2fc586
AK
7000 grep -v '^ *+' conftest.er1 >conftest.err
7001 rm -f conftest.er1
7002 cat conftest.err >&5
ec6a6fbe 7003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
d911ec67 7008 :
ad6254c5 7009else
ec6a6fbe 7010 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7011sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7012
d911ec67
AK
7013 case $ac_type in
7014 int16_t) ac_cv_c_int16_t=yes ;;
7015 *) ac_cv_c_int16_t=$ac_type ;;
7016esac
7a197a62 7017
8ce0cbda 7018fi
7a197a62
AK
7019
7020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7021else
7022 $as_echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7024
8a2fc586 7025
d911ec67 7026fi
8a2fc586 7027
d911ec67
AK
7028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7029 test "$ac_cv_c_int16_t" != no && break
7030 done
7031fi
7032{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7033$as_echo "$ac_cv_c_int16_t" >&6; }
7034 case $ac_cv_c_int16_t in #(
7035 no|yes) ;; #(
8a2fc586 7036 *)
d911ec67
AK
7037
7038cat >>confdefs.h <<_ACEOF
7039#define int16_t $ac_cv_c_int16_t
c1c065a3 7040_ACEOF
d911ec67
AK
7041;;
7042 esac
d0191583 7043
d911ec67
AK
7044
7045 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7046$as_echo_n "checking for int32_t... " >&6; }
7047if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7048 $as_echo_n "(cached) " >&6
d0191583 7049else
d911ec67
AK
7050 ac_cv_c_int32_t=no
7051 for ac_type in 'int32_t' 'int' 'long int' \
7052 'long long int' 'short int' 'signed char'; do
7053 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7054/* confdefs.h. */
7055_ACEOF
7056cat confdefs.h >>conftest.$ac_ext
7057cat >>conftest.$ac_ext <<_ACEOF
7058/* end confdefs.h. */
7059$ac_includes_default
7060int
7061main ()
7062{
d911ec67
AK
7063static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7064test_array [0] = 0
7065
d0191583
JM
7066 ;
7067 return 0;
7068}
7069_ACEOF
7070rm -f conftest.$ac_objext
7071if { (ac_try="$ac_compile"
7072case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075esac
ec6a6fbe
AK
7076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077$as_echo "$ac_try_echo") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
d911ec67 7088 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7089/* confdefs.h. */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h. */
7094$ac_includes_default
7095int
7096main ()
7097{
d911ec67
AK
7098static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7099 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7100test_array [0] = 0
7101
ec6a6fbe
AK
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106rm -f conftest.$ac_objext
7107if { (ac_try="$ac_compile"
7108case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111esac
7112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7113$as_echo "$ac_try_echo") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
d911ec67 7124 :
ec6a6fbe
AK
7125else
7126 $as_echo "$as_me: failed program was:" >&5
7127sed 's/^/| /' conftest.$ac_ext >&5
7128
d911ec67
AK
7129 case $ac_type in
7130 int32_t) ac_cv_c_int32_t=yes ;;
7131 *) ac_cv_c_int32_t=$ac_type ;;
7132esac
7133
ec6a6fbe
AK
7134fi
7135
7136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7137else
7138 $as_echo "$as_me: failed program was:" >&5
7139sed 's/^/| /' conftest.$ac_ext >&5
7140
7141
ec6a6fbe
AK
7142fi
7143
7144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7145 test "$ac_cv_c_int32_t" != no && break
7146 done
ec6a6fbe 7147fi
d911ec67
AK
7148{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7149$as_echo "$ac_cv_c_int32_t" >&6; }
7150 case $ac_cv_c_int32_t in #(
7151 no|yes) ;; #(
7152 *)
ec6a6fbe
AK
7153
7154cat >>confdefs.h <<_ACEOF
d911ec67 7155#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7156_ACEOF
d911ec67
AK
7157;;
7158 esac
ec6a6fbe
AK
7159
7160
d911ec67
AK
7161 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7162$as_echo_n "checking for int64_t... " >&6; }
7163if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7164 $as_echo_n "(cached) " >&6
7165else
d911ec67
AK
7166 ac_cv_c_int64_t=no
7167 for ac_type in 'int64_t' 'int' 'long int' \
7168 'long long int' 'short int' 'signed char'; do
7169 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7170/* confdefs.h. */
7171_ACEOF
7172cat confdefs.h >>conftest.$ac_ext
7173cat >>conftest.$ac_ext <<_ACEOF
7174/* end confdefs.h. */
7175$ac_includes_default
7176int
7177main ()
7178{
d911ec67
AK
7179static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7180test_array [0] = 0
7181
ec6a6fbe
AK
7182 ;
7183 return 0;
7184}
7185_ACEOF
7186rm -f conftest.$ac_objext
7187if { (ac_try="$ac_compile"
7188case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191esac
7192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7193$as_echo "$ac_try_echo") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7195 ac_status=$?
7196 grep -v '^ *+' conftest.er1 >conftest.err
7197 rm -f conftest.er1
7198 cat conftest.err >&5
7199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 cat >conftest.$ac_ext <<_ACEOF
7205/* confdefs.h. */
7206_ACEOF
7207cat confdefs.h >>conftest.$ac_ext
7208cat >>conftest.$ac_ext <<_ACEOF
7209/* end confdefs.h. */
7210$ac_includes_default
7211int
7212main ()
7213{
d911ec67
AK
7214static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7215 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7216test_array [0] = 0
7217
ec6a6fbe
AK
7218 ;
7219 return 0;
7220}
7221_ACEOF
7222rm -f conftest.$ac_objext
7223if { (ac_try="$ac_compile"
7224case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227esac
7228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229$as_echo "$ac_try_echo") >&5
7230 (eval "$ac_compile") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest.$ac_objext; then
7240 :
7241else
7242 $as_echo "$as_me: failed program was:" >&5
7243sed 's/^/| /' conftest.$ac_ext >&5
7244
d911ec67
AK
7245 case $ac_type in
7246 int64_t) ac_cv_c_int64_t=yes ;;
7247 *) ac_cv_c_int64_t=$ac_type ;;
7248esac
7249
ec6a6fbe
AK
7250fi
7251
7252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253else
7254 $as_echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257
7258fi
7259
7260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7261 test "$ac_cv_c_int64_t" != no && break
7262 done
ec6a6fbe 7263fi
d911ec67
AK
7264{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7265$as_echo "$ac_cv_c_int64_t" >&6; }
7266 case $ac_cv_c_int64_t in #(
7267 no|yes) ;; #(
7268 *)
ec6a6fbe
AK
7269
7270cat >>confdefs.h <<_ACEOF
d911ec67 7271#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7272_ACEOF
d911ec67
AK
7273;;
7274 esac
ec6a6fbe 7275
d911ec67
AK
7276{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7277$as_echo_n "checking for ssize_t... " >&6; }
7278if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7279 $as_echo_n "(cached) " >&6
7280else
d911ec67 7281 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7282cat >conftest.$ac_ext <<_ACEOF
7283/* confdefs.h. */
7284_ACEOF
7285cat confdefs.h >>conftest.$ac_ext
7286cat >>conftest.$ac_ext <<_ACEOF
7287/* end confdefs.h. */
7288$ac_includes_default
7289int
7290main ()
7291{
d911ec67 7292if (sizeof (ssize_t))
ec6a6fbe
AK
7293 return 0;
7294 ;
7295 return 0;
7296}
7297_ACEOF
7298rm -f conftest.$ac_objext
7299if { (ac_try="$ac_compile"
7300case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303esac
7304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7305$as_echo "$ac_try_echo") >&5
d0191583
JM
7306 (eval "$ac_compile") 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
ec6a6fbe 7311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
ec6a6fbe 7316 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7317/* confdefs.h. */
7318_ACEOF
7319cat confdefs.h >>conftest.$ac_ext
7320cat >>conftest.$ac_ext <<_ACEOF
7321/* end confdefs.h. */
7322$ac_includes_default
7323int
7324main ()
7325{
d911ec67 7326if (sizeof ((ssize_t)))
ec6a6fbe 7327 return 0;
d0191583
JM
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332rm -f conftest.$ac_objext
7333if { (ac_try="$ac_compile"
7334case "(($ac_try" in
7335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7336 *) ac_try_echo=$ac_try;;
7337esac
ec6a6fbe
AK
7338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7339$as_echo "$ac_try_echo") >&5
d0191583
JM
7340 (eval "$ac_compile") 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
ec6a6fbe 7345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest.$ac_objext; then
ec6a6fbe 7350 :
d0191583 7351else
ec6a6fbe 7352 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7353sed 's/^/| /' conftest.$ac_ext >&5
7354
d911ec67 7355 ac_cv_type_ssize_t=yes
d0191583
JM
7356fi
7357
7358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7359else
7360 $as_echo "$as_me: failed program was:" >&5
7361sed 's/^/| /' conftest.$ac_ext >&5
7362
7363
d0191583
JM
7364fi
7365
7366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367fi
d911ec67
AK
7368{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7369$as_echo "$ac_cv_type_ssize_t" >&6; }
7370if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7371 :
7372else
d0191583
JM
7373
7374cat >>confdefs.h <<_ACEOF
d911ec67 7375#define ssize_t int
d0191583
JM
7376_ACEOF
7377
d0191583 7378fi
8ce0cbda 7379
d911ec67
AK
7380{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7381$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7382if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7383 $as_echo_n "(cached) " >&6
ad6254c5 7384else
b145d876
ZK
7385 cat >conftest.$ac_ext <<_ACEOF
7386/* confdefs.h. */
7387_ACEOF
7388cat confdefs.h >>conftest.$ac_ext
7389cat >>conftest.$ac_ext <<_ACEOF
7390/* end confdefs.h. */
ec6a6fbe 7391#include <sys/types.h>
ec6a6fbe 7392
ad6254c5 7393_ACEOF
d911ec67
AK
7394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7395 $EGREP "uid_t" >/dev/null 2>&1; then
7396 ac_cv_type_uid_t=yes
b145d876 7397else
d911ec67 7398 ac_cv_type_uid_t=no
ad6254c5 7399fi
d911ec67 7400rm -f conftest*
b145d876 7401
b145d876 7402fi
d911ec67
AK
7403{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7404$as_echo "$ac_cv_type_uid_t" >&6; }
7405if test $ac_cv_type_uid_t = no; then
80992638 7406
d911ec67
AK
7407cat >>confdefs.h <<\_ACEOF
7408#define uid_t int
ad6254c5 7409_ACEOF
199e490e 7410
b896caa1 7411
d911ec67
AK
7412cat >>confdefs.h <<\_ACEOF
7413#define gid_t int
7414_ACEOF
7415
7416fi
7417
7418
7419 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7420$as_echo_n "checking for uint8_t... " >&6; }
7421if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7422 $as_echo_n "(cached) " >&6
ad6254c5 7423else
d911ec67
AK
7424 ac_cv_c_uint8_t=no
7425 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7426 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7427 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7428/* confdefs.h. */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h. */
7433$ac_includes_default
7434int
7435main ()
7436{
d911ec67
AK
7437static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7438test_array [0] = 0
7439
ad6254c5
AK
7440 ;
7441 return 0;
7442}
7443_ACEOF
7444rm -f conftest.$ac_objext
7a197a62
AK
7445if { (ac_try="$ac_compile"
7446case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449esac
ec6a6fbe
AK
7450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7451$as_echo "$ac_try_echo") >&5
7a197a62 7452 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7453 ac_status=$?
8a2fc586
AK
7454 grep -v '^ *+' conftest.er1 >conftest.err
7455 rm -f conftest.er1
7456 cat conftest.err >&5
ec6a6fbe 7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7458 (exit $ac_status); } && {
7459 test -z "$ac_c_werror_flag" ||
7460 test ! -s conftest.err
7461 } && test -s conftest.$ac_objext; then
d911ec67
AK
7462 case $ac_type in
7463 uint8_t) ac_cv_c_uint8_t=yes ;;
7464 *) ac_cv_c_uint8_t=$ac_type ;;
7465esac
7466
7467else
7468 $as_echo "$as_me: failed program was:" >&5
7469sed 's/^/| /' conftest.$ac_ext >&5
7470
7471
7472fi
7473
7474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 test "$ac_cv_c_uint8_t" != no && break
7476 done
7477fi
7478{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7479$as_echo "$ac_cv_c_uint8_t" >&6; }
7480 case $ac_cv_c_uint8_t in #(
7481 no|yes) ;; #(
7482 *)
7483
7484cat >>confdefs.h <<\_ACEOF
7485#define _UINT8_T 1
7486_ACEOF
7487
7488
7489cat >>confdefs.h <<_ACEOF
7490#define uint8_t $ac_cv_c_uint8_t
7491_ACEOF
7492;;
7493 esac
7494
7495
7496 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7497$as_echo_n "checking for uint16_t... " >&6; }
7498if test "${ac_cv_c_uint16_t+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7500else
7501 ac_cv_c_uint16_t=no
7502 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7503 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7504 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7505/* confdefs.h. */
7506_ACEOF
7507cat confdefs.h >>conftest.$ac_ext
7508cat >>conftest.$ac_ext <<_ACEOF
7509/* end confdefs.h. */
ec6a6fbe 7510$ac_includes_default
d0191583
JM
7511int
7512main ()
7513{
d911ec67
AK
7514static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7515test_array [0] = 0
7516
d0191583
JM
7517 ;
7518 return 0;
7519}
7520_ACEOF
7521rm -f conftest.$ac_objext
7522if { (ac_try="$ac_compile"
7523case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526esac
ec6a6fbe
AK
7527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7528$as_echo "$ac_try_echo") >&5
d0191583
JM
7529 (eval "$ac_compile") 2>conftest.er1
7530 ac_status=$?
7531 grep -v '^ *+' conftest.er1 >conftest.err
7532 rm -f conftest.er1
7533 cat conftest.err >&5
ec6a6fbe 7534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7535 (exit $ac_status); } && {
7536 test -z "$ac_c_werror_flag" ||
7537 test ! -s conftest.err
7538 } && test -s conftest.$ac_objext; then
d911ec67
AK
7539 case $ac_type in
7540 uint16_t) ac_cv_c_uint16_t=yes ;;
7541 *) ac_cv_c_uint16_t=$ac_type ;;
7542esac
ec6a6fbe 7543
ec6a6fbe
AK
7544else
7545 $as_echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7548
d0191583
JM
7549fi
7550
7551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7552 test "$ac_cv_c_uint16_t" != no && break
7553 done
d0191583 7554fi
d911ec67
AK
7555{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7556$as_echo "$ac_cv_c_uint16_t" >&6; }
7557 case $ac_cv_c_uint16_t in #(
7558 no|yes) ;; #(
7559 *)
7560
d0191583
JM
7561
7562cat >>confdefs.h <<_ACEOF
d911ec67 7563#define uint16_t $ac_cv_c_uint16_t
d0191583 7564_ACEOF
d911ec67
AK
7565;;
7566 esac
d0191583
JM
7567
7568
d911ec67
AK
7569 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7570$as_echo_n "checking for uint32_t... " >&6; }
7571if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7572 $as_echo_n "(cached) " >&6
8106cdd5 7573else
d911ec67
AK
7574 ac_cv_c_uint32_t=no
7575 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7576 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7577 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7578/* confdefs.h. */
7579_ACEOF
7580cat confdefs.h >>conftest.$ac_ext
7581cat >>conftest.$ac_ext <<_ACEOF
7582/* end confdefs.h. */
7583$ac_includes_default
7584int
7585main ()
7586{
d911ec67
AK
7587static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7588test_array [0] = 0
7589
ad6254c5
AK
7590 ;
7591 return 0;
7592}
7593_ACEOF
7594rm -f conftest.$ac_objext
7a197a62
AK
7595if { (ac_try="$ac_compile"
7596case "(($ac_try" in
7597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598 *) ac_try_echo=$ac_try;;
7599esac
ec6a6fbe
AK
7600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601$as_echo "$ac_try_echo") >&5
7a197a62 7602 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7603 ac_status=$?
8a2fc586
AK
7604 grep -v '^ *+' conftest.er1 >conftest.err
7605 rm -f conftest.er1
7606 cat conftest.err >&5
ec6a6fbe 7607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.$ac_objext; then
d911ec67
AK
7612 case $ac_type in
7613 uint32_t) ac_cv_c_uint32_t=yes ;;
7614 *) ac_cv_c_uint32_t=$ac_type ;;
7615esac
7616
7617else
7618 $as_echo "$as_me: failed program was:" >&5
7619sed 's/^/| /' conftest.$ac_ext >&5
7620
7621
7622fi
7623
7624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7625 test "$ac_cv_c_uint32_t" != no && break
7626 done
7627fi
7628{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7629$as_echo "$ac_cv_c_uint32_t" >&6; }
7630 case $ac_cv_c_uint32_t in #(
7631 no|yes) ;; #(
7632 *)
7633
7634cat >>confdefs.h <<\_ACEOF
7635#define _UINT32_T 1
7636_ACEOF
7637
7638
7639cat >>confdefs.h <<_ACEOF
7640#define uint32_t $ac_cv_c_uint32_t
7641_ACEOF
7642;;
7643 esac
7644
7645
7646 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7647$as_echo_n "checking for uint64_t... " >&6; }
7648if test "${ac_cv_c_uint64_t+set}" = set; then
7649 $as_echo_n "(cached) " >&6
7650else
7651 ac_cv_c_uint64_t=no
7652 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7653 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7654 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7655/* confdefs.h. */
7656_ACEOF
7657cat confdefs.h >>conftest.$ac_ext
7658cat >>conftest.$ac_ext <<_ACEOF
7659/* end confdefs.h. */
7660$ac_includes_default
7661int
7662main ()
7663{
d911ec67
AK
7664static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7665test_array [0] = 0
7666
ad6254c5
AK
7667 ;
7668 return 0;
7669}
7670_ACEOF
7671rm -f conftest.$ac_objext
7a197a62
AK
7672if { (ac_try="$ac_compile"
7673case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676esac
ec6a6fbe
AK
7677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7678$as_echo "$ac_try_echo") >&5
7a197a62 7679 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7680 ac_status=$?
8a2fc586
AK
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
ec6a6fbe 7684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest.$ac_objext; then
d911ec67
AK
7689 case $ac_type in
7690 uint64_t) ac_cv_c_uint64_t=yes ;;
7691 *) ac_cv_c_uint64_t=$ac_type ;;
7692esac
ec6a6fbe 7693
fddafd51 7694else
ec6a6fbe 7695 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7696sed 's/^/| /' conftest.$ac_ext >&5
7697
ec6a6fbe 7698
80992638 7699fi
7a197a62
AK
7700
7701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7702 test "$ac_cv_c_uint64_t" != no && break
7703 done
ad6254c5 7704fi
d911ec67
AK
7705{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7706$as_echo "$ac_cv_c_uint64_t" >&6; }
7707 case $ac_cv_c_uint64_t in #(
7708 no|yes) ;; #(
7709 *)
80992638 7710
d911ec67
AK
7711cat >>confdefs.h <<\_ACEOF
7712#define _UINT64_T 1
ad6254c5
AK
7713_ACEOF
7714
d911ec67
AK
7715
7716cat >>confdefs.h <<_ACEOF
7717#define uint64_t $ac_cv_c_uint64_t
7718_ACEOF
7719;;
7720 esac
ad6254c5 7721
ec6a6fbe
AK
7722{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7723$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7724if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7725 $as_echo_n "(cached) " >&6
ad6254c5
AK
7726else
7727 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7728/* confdefs.h. */
7729_ACEOF
7730cat confdefs.h >>conftest.$ac_ext
7731cat >>conftest.$ac_ext <<_ACEOF
7732/* end confdefs.h. */
7733$ac_includes_default
7734int
7735main ()
7736{
7737static struct stat ac_aggr;
7738if (ac_aggr.st_rdev)
7739return 0;
7740 ;
7741 return 0;
7742}
7743_ACEOF
7744rm -f conftest.$ac_objext
7a197a62
AK
7745if { (ac_try="$ac_compile"
7746case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749esac
ec6a6fbe
AK
7750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7751$as_echo "$ac_try_echo") >&5
7a197a62 7752 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7753 ac_status=$?
8a2fc586
AK
7754 grep -v '^ *+' conftest.er1 >conftest.err
7755 rm -f conftest.er1
7756 cat conftest.err >&5
ec6a6fbe 7757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7758 (exit $ac_status); } && {
7759 test -z "$ac_c_werror_flag" ||
7760 test ! -s conftest.err
7761 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7762 ac_cv_member_struct_stat_st_rdev=yes
7763else
ec6a6fbe 7764 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7765sed 's/^/| /' conftest.$ac_ext >&5
7766
7a197a62 7767 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7768/* confdefs.h. */
7769_ACEOF
7770cat confdefs.h >>conftest.$ac_ext
7771cat >>conftest.$ac_ext <<_ACEOF
7772/* end confdefs.h. */
7773$ac_includes_default
7774int
7775main ()
7776{
7777static struct stat ac_aggr;
7778if (sizeof ac_aggr.st_rdev)
7779return 0;
7780 ;
7781 return 0;
7782}
7783_ACEOF
7784rm -f conftest.$ac_objext
7a197a62
AK
7785if { (ac_try="$ac_compile"
7786case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789esac
ec6a6fbe
AK
7790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7791$as_echo "$ac_try_echo") >&5
7a197a62 7792 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7793 ac_status=$?
8a2fc586
AK
7794 grep -v '^ *+' conftest.er1 >conftest.err
7795 rm -f conftest.er1
7796 cat conftest.err >&5
ec6a6fbe 7797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7798 (exit $ac_status); } && {
7799 test -z "$ac_c_werror_flag" ||
7800 test ! -s conftest.err
7801 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7802 ac_cv_member_struct_stat_st_rdev=yes
7803else
ec6a6fbe 7804 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7805sed 's/^/| /' conftest.$ac_ext >&5
7806
7a197a62 7807 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7808fi
7a197a62
AK
7809
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7811fi
7a197a62
AK
7812
7813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7814fi
ec6a6fbe
AK
7815{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7816$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7817if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7818
7819cat >>confdefs.h <<_ACEOF
7820#define HAVE_STRUCT_STAT_ST_RDEV 1
7821_ACEOF
7822
7823
ad6254c5
AK
7824fi
7825
ec6a6fbe
AK
7826{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7827$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7828if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7829 $as_echo_n "(cached) " >&6
ad6254c5
AK
7830else
7831 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7832/* confdefs.h. */
7833_ACEOF
7834cat confdefs.h >>conftest.$ac_ext
7835cat >>conftest.$ac_ext <<_ACEOF
7836/* end confdefs.h. */
7837#include <sys/types.h>
7838#include <time.h>
7839
7840int
7841main ()
7842{
25fbec5b
AK
7843struct tm tm;
7844 int *p = &tm.tm_sec;
ec6a6fbe 7845 return !p;
ad6254c5
AK
7846 ;
7847 return 0;
7848}
7849_ACEOF
7850rm -f conftest.$ac_objext
7a197a62
AK
7851if { (ac_try="$ac_compile"
7852case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
ec6a6fbe
AK
7856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7857$as_echo "$ac_try_echo") >&5
7a197a62 7858 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7859 ac_status=$?
8a2fc586
AK
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
ec6a6fbe 7863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
d911ec67
AK
7867 } && test -s conftest.$ac_objext; then
7868 ac_cv_struct_tm=time.h
7869else
7870 $as_echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 ac_cv_struct_tm=sys/time.h
7874fi
7875
7876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877fi
7878{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7879$as_echo "$ac_cv_struct_tm" >&6; }
7880if test $ac_cv_struct_tm = sys/time.h; then
7881
7882cat >>confdefs.h <<\_ACEOF
7883#define TM_IN_SYS_TIME 1
7884_ACEOF
7885
7886fi
7887
7888
7889################################################################################
7890{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7891$as_echo_n "checking for library containing floor... " >&6; }
7892if test "${ac_cv_search_floor+set}" = set; then
7893 $as_echo_n "(cached) " >&6
7894else
7895 ac_func_search_save_LIBS=$LIBS
7896cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h. */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
7901/* end confdefs.h. */
7902
7903/* Override any GCC internal prototype to avoid an error.
7904 Use char because int might match the return type of a GCC
7905 builtin and then its argument prototype would still apply. */
7906#ifdef __cplusplus
7907extern "C"
7908#endif
7909char floor ();
7910int
7911main ()
7912{
7913return floor ();
7914 ;
7915 return 0;
7916}
7917_ACEOF
7918for ac_lib in '' m; do
7919 if test -z "$ac_lib"; then
7920 ac_res="none required"
7921 else
7922 ac_res=-l$ac_lib
7923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7924 fi
7925 rm -f conftest.$ac_objext conftest$ac_exeext
7926if { (ac_try="$ac_link"
7927case "(($ac_try" in
7928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929 *) ac_try_echo=$ac_try;;
7930esac
7931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7932$as_echo "$ac_try_echo") >&5
7933 (eval "$ac_link") 2>conftest.er1
7934 ac_status=$?
7935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
7938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } && {
7940 test -z "$ac_c_werror_flag" ||
7941 test ! -s conftest.err
7942 } && test -s conftest$ac_exeext && {
7943 test "$cross_compiling" = yes ||
7944 $as_test_x conftest$ac_exeext
7945 }; then
7946 ac_cv_search_floor=$ac_res
ad6254c5 7947else
ec6a6fbe 7948 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7949sed 's/^/| /' conftest.$ac_ext >&5
7950
7a197a62 7951
ad6254c5 7952fi
ad6254c5 7953
d911ec67
AK
7954rm -rf conftest.dSYM
7955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7956 conftest$ac_exeext
7957 if test "${ac_cv_search_floor+set}" = set; then
7958 break
7959fi
7960done
7961if test "${ac_cv_search_floor+set}" = set; then
7962 :
7963else
7964 ac_cv_search_floor=no
7965fi
7966rm conftest.$ac_ext
7967LIBS=$ac_func_search_save_LIBS
7968fi
7969{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7970$as_echo "$ac_cv_search_floor" >&6; }
7971ac_res=$ac_cv_search_floor
7972if test "$ac_res" != no; then
7973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7974
d911ec67
AK
7975else
7976 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7977$as_echo "$as_me: error: bailing out" >&2;}
7978 { (exit 1); exit 1; }; }
ad6254c5 7979fi
809fae91 7980
795ca3e5 7981
ad6254c5
AK
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
d0191583
JM
7996
7997
7998
d911ec67
AK
7999
8000
8001
8002
8003
8004
8005
8006for ac_func in floor ftruncate gethostname getpagesize \
8007 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8008 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8009 strstr strtol strtoul uname
ad6254c5 8010do
ec6a6fbe
AK
8011as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8012{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8013$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8015 $as_echo_n "(cached) " >&6
795ca3e5 8016else
ad6254c5 8017 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8018/* confdefs.h. */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h. */
8a2fc586
AK
8023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8025#define $ac_func innocuous_$ac_func
8026
ad6254c5
AK
8027/* System header to define __stub macros and hopefully few prototypes,
8028 which can conflict with char $ac_func (); below.
8029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8030 <limits.h> exists even on freestanding compilers. */
8a2fc586 8031
ad6254c5
AK
8032#ifdef __STDC__
8033# include <limits.h>
8034#else
8035# include <assert.h>
8036#endif
8a2fc586
AK
8037
8038#undef $ac_func
8039
7a197a62
AK
8040/* Override any GCC internal prototype to avoid an error.
8041 Use char because int might match the return type of a GCC
8042 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8043#ifdef __cplusplus
8044extern "C"
ad6254c5 8045#endif
ad6254c5
AK
8046char $ac_func ();
8047/* The GNU C library defines this for functions which it implements
8048 to always fail with ENOSYS. Some functions are actually named
8049 something starting with __ and the normal name is an alias. */
7a197a62 8050#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8051choke me
ad6254c5
AK
8052#endif
8053
8054int
8055main ()
8056{
7a197a62 8057return $ac_func ();
ad6254c5
AK
8058 ;
8059 return 0;
8060}
8061_ACEOF
8062rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8063if { (ac_try="$ac_link"
8064case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
ec6a6fbe
AK
8068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069$as_echo "$ac_try_echo") >&5
7a197a62 8070 (eval "$ac_link") 2>conftest.er1
ad6254c5 8071 ac_status=$?
8a2fc586
AK
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
ec6a6fbe 8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
ec6a6fbe
AK
8079 } && test -s conftest$ac_exeext && {
8080 test "$cross_compiling" = yes ||
8081 $as_test_x conftest$ac_exeext
8082 }; then
fc54be10
AK
8083 eval "$as_ac_var=yes"
8084else
ec6a6fbe 8085 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8086sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 eval "$as_ac_var=no"
8089fi
8090
ec6a6fbe 8091rm -rf conftest.dSYM
25fbec5b 8092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8093 conftest$ac_exeext conftest.$ac_ext
8094fi
ec6a6fbe
AK
8095ac_res=`eval 'as_val=${'$as_ac_var'}
8096 $as_echo "$as_val"'`
8097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8098$as_echo "$ac_res" >&6; }
8099as_val=`eval 'as_val=${'$as_ac_var'}
8100 $as_echo "$as_val"'`
8101 if test "x$as_val" = x""yes; then
ad6254c5 8102 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8103#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8104_ACEOF
8105
8106else
ec6a6fbe
AK
8107 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8108$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8109 { (exit 1); exit 1; }; }
8110fi
8111done
795ca3e5 8112
a0f9708e
AK
8113
8114for ac_func in siginterrupt
8115do
8116as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8117{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8118$as_echo_n "checking for $ac_func... " >&6; }
8119if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8120 $as_echo_n "(cached) " >&6
8121else
8122 cat >conftest.$ac_ext <<_ACEOF
8123/* confdefs.h. */
8124_ACEOF
8125cat confdefs.h >>conftest.$ac_ext
8126cat >>conftest.$ac_ext <<_ACEOF
8127/* end confdefs.h. */
8128/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8130#define $ac_func innocuous_$ac_func
8131
8132/* System header to define __stub macros and hopefully few prototypes,
8133 which can conflict with char $ac_func (); below.
8134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8135 <limits.h> exists even on freestanding compilers. */
8136
8137#ifdef __STDC__
8138# include <limits.h>
8139#else
8140# include <assert.h>
8141#endif
8142
8143#undef $ac_func
8144
8145/* Override any GCC internal prototype to avoid an error.
8146 Use char because int might match the return type of a GCC
8147 builtin and then its argument prototype would still apply. */
8148#ifdef __cplusplus
8149extern "C"
8150#endif
8151char $ac_func ();
8152/* The GNU C library defines this for functions which it implements
8153 to always fail with ENOSYS. Some functions are actually named
8154 something starting with __ and the normal name is an alias. */
8155#if defined __stub_$ac_func || defined __stub___$ac_func
8156choke me
8157#endif
8158
8159int
8160main ()
8161{
8162return $ac_func ();
8163 ;
8164 return 0;
8165}
8166_ACEOF
8167rm -f conftest.$ac_objext conftest$ac_exeext
8168if { (ac_try="$ac_link"
8169case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172esac
8173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8174$as_echo "$ac_try_echo") >&5
8175 (eval "$ac_link") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest$ac_exeext && {
8185 test "$cross_compiling" = yes ||
8186 $as_test_x conftest$ac_exeext
8187 }; then
8188 eval "$as_ac_var=yes"
8189else
8190 $as_echo "$as_me: failed program was:" >&5
8191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 eval "$as_ac_var=no"
8194fi
8195
8196rm -rf conftest.dSYM
8197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8198 conftest$ac_exeext conftest.$ac_ext
8199fi
8200ac_res=`eval 'as_val=${'$as_ac_var'}
8201 $as_echo "$as_val"'`
8202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8203$as_echo "$ac_res" >&6; }
8204as_val=`eval 'as_val=${'$as_ac_var'}
8205 $as_echo "$as_val"'`
8206 if test "x$as_val" = x""yes; then
8207 cat >>confdefs.h <<_ACEOF
8208#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209_ACEOF
8210
8211fi
8212done
8213
ad6254c5
AK
8214# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8215# for constant arguments. Useless!
ec6a6fbe
AK
8216{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8217$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8218if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8219 $as_echo_n "(cached) " >&6
ad6254c5
AK
8220else
8221 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8222/* confdefs.h. */
8223_ACEOF
8224cat confdefs.h >>conftest.$ac_ext
8225cat >>conftest.$ac_ext <<_ACEOF
8226/* end confdefs.h. */
8227#include <alloca.h>
8228int
8229main ()
8230{
8231char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8232 if (p) return 0;
ad6254c5
AK
8233 ;
8234 return 0;
8235}
8236_ACEOF
8237rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8238if { (ac_try="$ac_link"
8239case "(($ac_try" in
8240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8241 *) ac_try_echo=$ac_try;;
8242esac
ec6a6fbe
AK
8243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8244$as_echo "$ac_try_echo") >&5
7a197a62 8245 (eval "$ac_link") 2>conftest.er1
ad6254c5 8246 ac_status=$?
8a2fc586
AK
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
ec6a6fbe 8250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
ec6a6fbe
AK
8254 } && test -s conftest$ac_exeext && {
8255 test "$cross_compiling" = yes ||
8256 $as_test_x conftest$ac_exeext
8257 }; then
ad6254c5
AK
8258 ac_cv_working_alloca_h=yes
8259else
ec6a6fbe 8260 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8261sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8262
7a197a62 8263 ac_cv_working_alloca_h=no
ad6254c5 8264fi
7a197a62 8265
ec6a6fbe 8266rm -rf conftest.dSYM
25fbec5b 8267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8268 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8269fi
ec6a6fbe
AK
8270{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8271$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8272if test $ac_cv_working_alloca_h = yes; then
8273
8274cat >>confdefs.h <<\_ACEOF
8275#define HAVE_ALLOCA_H 1
8276_ACEOF
8277
8278fi
8279
ec6a6fbe
AK
8280{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8281$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8282if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8283 $as_echo_n "(cached) " >&6
ad6254c5
AK
8284else
8285 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8286/* confdefs.h. */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h. */
8291#ifdef __GNUC__
8292# define alloca __builtin_alloca
8293#else
8294# ifdef _MSC_VER
8295# include <malloc.h>
8296# define alloca _alloca
8297# else
25fbec5b 8298# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8299# include <alloca.h>
8300# else
8301# ifdef _AIX
8302 #pragma alloca
8303# else
8304# ifndef alloca /* predefined by HP cc +Olibcalls */
8305char *alloca ();
8306# endif
8307# endif
8308# endif
8309# endif
8310#endif
8311
8312int
8313main ()
8314{
8315char *p = (char *) alloca (1);
7a197a62 8316 if (p) return 0;
ad6254c5
AK
8317 ;
8318 return 0;
8319}
8320_ACEOF
8321rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8322if { (ac_try="$ac_link"
8323case "(($ac_try" in
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8326esac
ec6a6fbe
AK
8327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8328$as_echo "$ac_try_echo") >&5
7a197a62 8329 (eval "$ac_link") 2>conftest.er1
ad6254c5 8330 ac_status=$?
8a2fc586
AK
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
ec6a6fbe 8334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8335 (exit $ac_status); } && {
8336 test -z "$ac_c_werror_flag" ||
8337 test ! -s conftest.err
ec6a6fbe
AK
8338 } && test -s conftest$ac_exeext && {
8339 test "$cross_compiling" = yes ||
8340 $as_test_x conftest$ac_exeext
8341 }; then
ad6254c5
AK
8342 ac_cv_func_alloca_works=yes
8343else
ec6a6fbe 8344 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8345sed 's/^/| /' conftest.$ac_ext >&5
8346
7a197a62 8347 ac_cv_func_alloca_works=no
ad6254c5 8348fi
7a197a62 8349
ec6a6fbe 8350rm -rf conftest.dSYM
25fbec5b 8351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8352 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8353fi
ec6a6fbe
AK
8354{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8355$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8356
8357if test $ac_cv_func_alloca_works = yes; then
8358
8359cat >>confdefs.h <<\_ACEOF
8360#define HAVE_ALLOCA 1
8361_ACEOF
8362
8363else
8364 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8365# that cause trouble. Some versions do not even contain alloca or
8366# contain a buggy version. If you still want to use their alloca,
8367# use ar to extract alloca.o from them instead of compiling alloca.c.
8368
7a197a62 8369ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8370
8371cat >>confdefs.h <<\_ACEOF
8372#define C_ALLOCA 1
8373_ACEOF
8374
8375
ec6a6fbe
AK
8376{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8377$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8378if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8379 $as_echo_n "(cached) " >&6
ad6254c5
AK
8380else
8381 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8382/* confdefs.h. */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h. */
7a197a62 8387#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8388webecray
8389#else
8390wenotbecray
8391#endif
8392
8393_ACEOF
795ca3e5 8394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8395 $EGREP "webecray" >/dev/null 2>&1; then
8396 ac_cv_os_cray=yes
8397else
8398 ac_cv_os_cray=no
795ca3e5
AK
8399fi
8400rm -f conftest*
8401
795ca3e5 8402fi
ec6a6fbe
AK
8403{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8404$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8405if test $ac_cv_os_cray = yes; then
8406 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8408{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8409$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8411 $as_echo_n "(cached) " >&6
ad6254c5
AK
8412else
8413 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8414/* confdefs.h. */
8415_ACEOF
8416cat confdefs.h >>conftest.$ac_ext
8417cat >>conftest.$ac_ext <<_ACEOF
8418/* end confdefs.h. */
8a2fc586
AK
8419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8421#define $ac_func innocuous_$ac_func
8422
ad6254c5
AK
8423/* System header to define __stub macros and hopefully few prototypes,
8424 which can conflict with char $ac_func (); below.
8425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8426 <limits.h> exists even on freestanding compilers. */
8a2fc586 8427
ad6254c5
AK
8428#ifdef __STDC__
8429# include <limits.h>
8430#else
8431# include <assert.h>
8432#endif
8a2fc586
AK
8433
8434#undef $ac_func
8435
7a197a62
AK
8436/* Override any GCC internal prototype to avoid an error.
8437 Use char because int might match the return type of a GCC
8438 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8439#ifdef __cplusplus
8440extern "C"
ad6254c5 8441#endif
ad6254c5
AK
8442char $ac_func ();
8443/* The GNU C library defines this for functions which it implements
8444 to always fail with ENOSYS. Some functions are actually named
8445 something starting with __ and the normal name is an alias. */
7a197a62 8446#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8447choke me
ad6254c5
AK
8448#endif
8449
8450int
8451main ()
8452{
7a197a62 8453return $ac_func ();
ad6254c5
AK
8454 ;
8455 return 0;
8456}
8457_ACEOF
8458rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8459if { (ac_try="$ac_link"
8460case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463esac
ec6a6fbe
AK
8464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465$as_echo "$ac_try_echo") >&5
7a197a62 8466 (eval "$ac_link") 2>conftest.er1
ad6254c5 8467 ac_status=$?
8a2fc586
AK
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
ec6a6fbe 8471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8472 (exit $ac_status); } && {
8473 test -z "$ac_c_werror_flag" ||
8474 test ! -s conftest.err
ec6a6fbe
AK
8475 } && test -s conftest$ac_exeext && {
8476 test "$cross_compiling" = yes ||
8477 $as_test_x conftest$ac_exeext
8478 }; then
ad6254c5
AK
8479 eval "$as_ac_var=yes"
8480else
ec6a6fbe 8481 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8482sed 's/^/| /' conftest.$ac_ext >&5
8483
7a197a62 8484 eval "$as_ac_var=no"
ad6254c5 8485fi
7a197a62 8486
ec6a6fbe 8487rm -rf conftest.dSYM
25fbec5b 8488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8489 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8490fi
ec6a6fbe
AK
8491ac_res=`eval 'as_val=${'$as_ac_var'}
8492 $as_echo "$as_val"'`
8493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8494$as_echo "$ac_res" >&6; }
8495as_val=`eval 'as_val=${'$as_ac_var'}
8496 $as_echo "$as_val"'`
8497 if test "x$as_val" = x""yes; then
80992638 8498
ad6254c5
AK
8499cat >>confdefs.h <<_ACEOF
8500#define CRAY_STACKSEG_END $ac_func
8501_ACEOF
8502
8503 break
8504fi
8505
8506 done
8507fi
8508
ec6a6fbe
AK
8509{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8510$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8511if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8512 $as_echo_n "(cached) " >&6
ad6254c5
AK
8513else
8514 if test "$cross_compiling" = yes; then
8515 ac_cv_c_stack_direction=0
8516else
8517 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
7a197a62 8523$ac_includes_default
ad6254c5
AK
8524int
8525find_stack_direction ()
8526{
8527 static char *addr = 0;
8528 auto char dummy;
8529 if (addr == 0)
8530 {
8531 addr = &dummy;
8532 return find_stack_direction ();
8533 }
8534 else
8535 return (&dummy > addr) ? 1 : -1;
8536}
8537
8538int
8539main ()
8540{
7a197a62 8541 return find_stack_direction () < 0;
ad6254c5
AK
8542}
8543_ACEOF
8544rm -f conftest$ac_exeext
7a197a62
AK
8545if { (ac_try="$ac_link"
8546case "(($ac_try" in
8547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548 *) ac_try_echo=$ac_try;;
8549esac
ec6a6fbe
AK
8550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8551$as_echo "$ac_try_echo") >&5
7a197a62 8552 (eval "$ac_link") 2>&5
ad6254c5 8553 ac_status=$?
ec6a6fbe 8554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8555 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8556 { (case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559esac
ec6a6fbe
AK
8560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561$as_echo "$ac_try_echo") >&5
7a197a62 8562 (eval "$ac_try") 2>&5
ad6254c5 8563 ac_status=$?
ec6a6fbe 8564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8565 (exit $ac_status); }; }; then
8566 ac_cv_c_stack_direction=1
8567else
ec6a6fbe
AK
8568 $as_echo "$as_me: program exited with status $ac_status" >&5
8569$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8570sed 's/^/| /' conftest.$ac_ext >&5
8571
8572( exit $ac_status )
8573ac_cv_c_stack_direction=-1
8574fi
ec6a6fbe 8575rm -rf conftest.dSYM
7a197a62 8576rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8577fi
7a197a62
AK
8578
8579
ad6254c5 8580fi
ec6a6fbe
AK
8581{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8582$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8583
d911ec67
AK
8584cat >>confdefs.h <<_ACEOF
8585#define STACK_DIRECTION $ac_cv_c_stack_direction
8586_ACEOF
8587
8588
8589fi
8590
8591{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8592$as_echo_n "checking whether closedir returns void... " >&6; }
8593if test "${ac_cv_func_closedir_void+set}" = set; then
8594 $as_echo_n "(cached) " >&6
8595else
8596 if test "$cross_compiling" = yes; then
8597 ac_cv_func_closedir_void=yes
8598else
8599 cat >conftest.$ac_ext <<_ACEOF
8600/* confdefs.h. */
8601_ACEOF
8602cat confdefs.h >>conftest.$ac_ext
8603cat >>conftest.$ac_ext <<_ACEOF
8604/* end confdefs.h. */
8605$ac_includes_default
8606#include <$ac_header_dirent>
8607#ifndef __cplusplus
8608int closedir ();
8609#endif
8610
8611int
8612main ()
8613{
8614return closedir (opendir (".")) != 0;
8615 ;
8616 return 0;
8617}
8618_ACEOF
8619rm -f conftest$ac_exeext
8620if { (ac_try="$ac_link"
8621case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624esac
8625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8626$as_echo "$ac_try_echo") >&5
8627 (eval "$ac_link") 2>&5
8628 ac_status=$?
8629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8631 { (case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8636$as_echo "$ac_try_echo") >&5
8637 (eval "$ac_try") 2>&5
8638 ac_status=$?
8639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8641 ac_cv_func_closedir_void=no
8642else
8643 $as_echo "$as_me: program exited with status $ac_status" >&5
8644$as_echo "$as_me: failed program was:" >&5
8645sed 's/^/| /' conftest.$ac_ext >&5
8646
8647( exit $ac_status )
8648ac_cv_func_closedir_void=yes
8649fi
8650rm -rf conftest.dSYM
8651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8652fi
8653
8654
8655fi
8656{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8657$as_echo "$ac_cv_func_closedir_void" >&6; }
8658if test $ac_cv_func_closedir_void = yes; then
8659
8660cat >>confdefs.h <<\_ACEOF
8661#define CLOSEDIR_VOID 1
8662_ACEOF
8663
8664fi
8665
8666
8667for ac_header in unistd.h
8668do
8669as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8672$as_echo_n "checking for $ac_header... " >&6; }
8673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8674 $as_echo_n "(cached) " >&6
8675fi
8676ac_res=`eval 'as_val=${'$as_ac_Header'}
8677 $as_echo "$as_val"'`
8678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8679$as_echo "$ac_res" >&6; }
8680else
8681 # Is the header compilable?
8682{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8683$as_echo_n "checking $ac_header usability... " >&6; }
8684cat >conftest.$ac_ext <<_ACEOF
8685/* confdefs.h. */
8686_ACEOF
8687cat confdefs.h >>conftest.$ac_ext
8688cat >>conftest.$ac_ext <<_ACEOF
8689/* end confdefs.h. */
8690$ac_includes_default
8691#include <$ac_header>
8692_ACEOF
8693rm -f conftest.$ac_objext
8694if { (ac_try="$ac_compile"
8695case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8700$as_echo "$ac_try_echo") >&5
8701 (eval "$ac_compile") 2>conftest.er1
8702 ac_status=$?
8703 grep -v '^ *+' conftest.er1 >conftest.err
8704 rm -f conftest.er1
8705 cat conftest.err >&5
8706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); } && {
8708 test -z "$ac_c_werror_flag" ||
8709 test ! -s conftest.err
8710 } && test -s conftest.$ac_objext; then
8711 ac_header_compiler=yes
8712else
8713 $as_echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_header_compiler=no
8717fi
8718
8719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8721$as_echo "$ac_header_compiler" >&6; }
8722
8723# Is the header present?
8724{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8725$as_echo_n "checking $ac_header presence... " >&6; }
8726cat >conftest.$ac_ext <<_ACEOF
8727/* confdefs.h. */
8728_ACEOF
8729cat confdefs.h >>conftest.$ac_ext
8730cat >>conftest.$ac_ext <<_ACEOF
8731/* end confdefs.h. */
8732#include <$ac_header>
8733_ACEOF
8734if { (ac_try="$ac_cpp conftest.$ac_ext"
8735case "(($ac_try" in
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8738esac
8739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8740$as_echo "$ac_try_echo") >&5
8741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8742 ac_status=$?
8743 grep -v '^ *+' conftest.er1 >conftest.err
8744 rm -f conftest.er1
8745 cat conftest.err >&5
8746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } >/dev/null && {
8748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 }; then
8751 ac_header_preproc=yes
8752else
8753 $as_echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 ac_header_preproc=no
8757fi
8758
8759rm -f conftest.err conftest.$ac_ext
8760{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8761$as_echo "$ac_header_preproc" >&6; }
8762
8763# So? What about this header?
8764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8765 yes:no: )
8766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8767$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8769$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8770 ac_header_preproc=yes
8771 ;;
8772 no:yes:* )
8773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8774$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8776$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8778$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8780$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8782$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8784$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8785
8786 ;;
8787esac
8788{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8789$as_echo_n "checking for $ac_header... " >&6; }
8790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8791 $as_echo_n "(cached) " >&6
8792else
8793 eval "$as_ac_Header=\$ac_header_preproc"
8794fi
8795ac_res=`eval 'as_val=${'$as_ac_Header'}
8796 $as_echo "$as_val"'`
8797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8798$as_echo "$ac_res" >&6; }
8799
8800fi
8801as_val=`eval 'as_val=${'$as_ac_Header'}
8802 $as_echo "$as_val"'`
8803 if test "x$as_val" = x""yes; then
8804 cat >>confdefs.h <<_ACEOF
8805#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8806_ACEOF
8807
ad6254c5
AK
8808fi
8809
d911ec67
AK
8810done
8811
8812{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8813$as_echo_n "checking for working chown... " >&6; }
8814if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8815 $as_echo_n "(cached) " >&6
ad6254c5
AK
8816else
8817 if test "$cross_compiling" = yes; then
d911ec67 8818 ac_cv_func_chown_works=no
ad6254c5
AK
8819else
8820 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826$ac_includes_default
d911ec67 8827#include <fcntl.h>
ad6254c5
AK
8828
8829int
8830main ()
8831{
d911ec67
AK
8832 char *f = "conftest.chown";
8833 struct stat before, after;
8834
8835 if (creat (f, 0600) < 0)
8836 return 1;
8837 if (stat (f, &before) < 0)
8838 return 1;
8839 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8840 return 1;
8841 if (stat (f, &after) < 0)
8842 return 1;
8843 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8844
ad6254c5
AK
8845 ;
8846 return 0;
8847}
8848_ACEOF
8849rm -f conftest$ac_exeext
7a197a62
AK
8850if { (ac_try="$ac_link"
8851case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8854esac
ec6a6fbe
AK
8855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856$as_echo "$ac_try_echo") >&5
7a197a62 8857 (eval "$ac_link") 2>&5
ad6254c5 8858 ac_status=$?
ec6a6fbe 8859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8861 { (case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
ec6a6fbe
AK
8865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866$as_echo "$ac_try_echo") >&5
7a197a62 8867 (eval "$ac_try") 2>&5
ad6254c5 8868 ac_status=$?
ec6a6fbe 8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8870 (exit $ac_status); }; }; then
d911ec67 8871 ac_cv_func_chown_works=yes
ad6254c5 8872else
ec6a6fbe
AK
8873 $as_echo "$as_me: program exited with status $ac_status" >&5
8874$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8875sed 's/^/| /' conftest.$ac_ext >&5
8876
8877( exit $ac_status )
d911ec67 8878ac_cv_func_chown_works=no
ad6254c5 8879fi
ec6a6fbe 8880rm -rf conftest.dSYM
7a197a62 8881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8882fi
7a197a62
AK
8883
8884
d911ec67
AK
8885rm -f conftest.chown
8886
ad6254c5 8887fi
d911ec67
AK
8888{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8889$as_echo "$ac_cv_func_chown_works" >&6; }
8890if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8891
8892cat >>confdefs.h <<\_ACEOF
d911ec67 8893#define HAVE_CHOWN 1
ad6254c5
AK
8894_ACEOF
8895
8896fi
8897
8898
7a197a62 8899for ac_header in vfork.h
ad6254c5 8900do
ec6a6fbe 8901as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8904$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8905if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8906 $as_echo_n "(cached) " >&6
ad6254c5 8907fi
ec6a6fbe
AK
8908ac_res=`eval 'as_val=${'$as_ac_Header'}
8909 $as_echo "$as_val"'`
8910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8911$as_echo "$ac_res" >&6; }
ad6254c5
AK
8912else
8913 # Is the header compilable?
ec6a6fbe
AK
8914{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8915$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8916cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8917/* confdefs.h. */
8918_ACEOF
8919cat confdefs.h >>conftest.$ac_ext
8920cat >>conftest.$ac_ext <<_ACEOF
8921/* end confdefs.h. */
8922$ac_includes_default
8923#include <$ac_header>
8924_ACEOF
8925rm -f conftest.$ac_objext
7a197a62
AK
8926if { (ac_try="$ac_compile"
8927case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930esac
ec6a6fbe
AK
8931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932$as_echo "$ac_try_echo") >&5
7a197a62 8933 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8934 ac_status=$?
8a2fc586
AK
8935 grep -v '^ *+' conftest.er1 >conftest.err
8936 rm -f conftest.er1
8937 cat conftest.err >&5
ec6a6fbe 8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8943 ac_header_compiler=yes
8944else
ec6a6fbe 8945 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8946sed 's/^/| /' conftest.$ac_ext >&5
8947
7a197a62 8948 ac_header_compiler=no
ad6254c5 8949fi
7a197a62
AK
8950
8951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8952{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8953$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8954
8955# Is the header present?
ec6a6fbe
AK
8956{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8957$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8958cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8959/* confdefs.h. */
8960_ACEOF
8961cat confdefs.h >>conftest.$ac_ext
8962cat >>conftest.$ac_ext <<_ACEOF
8963/* end confdefs.h. */
8964#include <$ac_header>
8965_ACEOF
7a197a62
AK
8966if { (ac_try="$ac_cpp conftest.$ac_ext"
8967case "(($ac_try" in
8968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8969 *) ac_try_echo=$ac_try;;
8970esac
ec6a6fbe
AK
8971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8972$as_echo "$ac_try_echo") >&5
7a197a62 8973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8974 ac_status=$?
8975 grep -v '^ *+' conftest.er1 >conftest.err
8976 rm -f conftest.er1
8977 cat conftest.err >&5
ec6a6fbe 8978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8979 (exit $ac_status); } >/dev/null && {
8980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8981 test ! -s conftest.err
8982 }; then
ad6254c5
AK
8983 ac_header_preproc=yes
8984else
ec6a6fbe 8985 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8986sed 's/^/| /' conftest.$ac_ext >&5
8987
8988 ac_header_preproc=no
8989fi
7a197a62 8990
ad6254c5 8991rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8992{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8993$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8994
8995# So? What about this header?
8a2fc586
AK
8996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8997 yes:no: )
ec6a6fbe
AK
8998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8999$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9001$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9002 ac_header_preproc=yes
ad6254c5 9003 ;;
8a2fc586 9004 no:yes:* )
ec6a6fbe
AK
9005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9006$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9008$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9010$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9012$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9014$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9016$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9017
ad6254c5
AK
9018 ;;
9019esac
ec6a6fbe
AK
9020{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9021$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9022if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9023 $as_echo_n "(cached) " >&6
ad6254c5 9024else
8a2fc586 9025 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9026fi
ec6a6fbe
AK
9027ac_res=`eval 'as_val=${'$as_ac_Header'}
9028 $as_echo "$as_val"'`
9029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9030$as_echo "$ac_res" >&6; }
ad6254c5 9031
795ca3e5 9032fi
ec6a6fbe
AK
9033as_val=`eval 'as_val=${'$as_ac_Header'}
9034 $as_echo "$as_val"'`
9035 if test "x$as_val" = x""yes; then
ad6254c5 9036 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9037#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9038_ACEOF
9039
9040fi
9041
9042done
795ca3e5 9043
ad6254c5
AK
9044
9045
9046for ac_func in fork vfork
9047do
ec6a6fbe
AK
9048as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9049{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9050$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9052 $as_echo_n "(cached) " >&6
795ca3e5 9053else
ad6254c5 9054 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */
8a2fc586
AK
9060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9062#define $ac_func innocuous_$ac_func
9063
ad6254c5
AK
9064/* System header to define __stub macros and hopefully few prototypes,
9065 which can conflict with char $ac_func (); below.
9066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9067 <limits.h> exists even on freestanding compilers. */
8a2fc586 9068
ad6254c5
AK
9069#ifdef __STDC__
9070# include <limits.h>
9071#else
9072# include <assert.h>
795ca3e5 9073#endif
8a2fc586
AK
9074
9075#undef $ac_func
9076
7a197a62
AK
9077/* Override any GCC internal prototype to avoid an error.
9078 Use char because int might match the return type of a GCC
9079 builtin and then its argument prototype would still apply. */
795ca3e5 9080#ifdef __cplusplus
ad6254c5 9081extern "C"
ad6254c5 9082#endif
ad6254c5
AK
9083char $ac_func ();
9084/* The GNU C library defines this for functions which it implements
9085 to always fail with ENOSYS. Some functions are actually named
9086 something starting with __ and the normal name is an alias. */
7a197a62 9087#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9088choke me
795ca3e5
AK
9089#endif
9090
ad6254c5
AK
9091int
9092main ()
9093{
7a197a62 9094return $ac_func ();
ad6254c5
AK
9095 ;
9096 return 0;
9097}
9098_ACEOF
9099rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9100if { (ac_try="$ac_link"
9101case "(($ac_try" in
9102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9103 *) ac_try_echo=$ac_try;;
9104esac
ec6a6fbe
AK
9105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9106$as_echo "$ac_try_echo") >&5
7a197a62 9107 (eval "$ac_link") 2>conftest.er1
ad6254c5 9108 ac_status=$?
8a2fc586
AK
9109 grep -v '^ *+' conftest.er1 >conftest.err
9110 rm -f conftest.er1
9111 cat conftest.err >&5
ec6a6fbe 9112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9113 (exit $ac_status); } && {
9114 test -z "$ac_c_werror_flag" ||
9115 test ! -s conftest.err
ec6a6fbe
AK
9116 } && test -s conftest$ac_exeext && {
9117 test "$cross_compiling" = yes ||
9118 $as_test_x conftest$ac_exeext
9119 }; then
ad6254c5 9120 eval "$as_ac_var=yes"
795ca3e5 9121else
ec6a6fbe 9122 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9123sed 's/^/| /' conftest.$ac_ext >&5
9124
7a197a62 9125 eval "$as_ac_var=no"
795ca3e5 9126fi
7a197a62 9127
ec6a6fbe 9128rm -rf conftest.dSYM
25fbec5b 9129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9130 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9131fi
ec6a6fbe
AK
9132ac_res=`eval 'as_val=${'$as_ac_var'}
9133 $as_echo "$as_val"'`
9134 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9135$as_echo "$ac_res" >&6; }
9136as_val=`eval 'as_val=${'$as_ac_var'}
9137 $as_echo "$as_val"'`
9138 if test "x$as_val" = x""yes; then
ad6254c5 9139 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9140#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9141_ACEOF
9142
9143fi
9144done
9145
9146if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9147 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9148$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9149if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9150 $as_echo_n "(cached) " >&6
ad6254c5
AK
9151else
9152 if test "$cross_compiling" = yes; then
9153 ac_cv_func_fork_works=cross
9154else
9155 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161$ac_includes_default
9162int
9163main ()
9164{
9165
9166 /* By Ruediger Kuhlmann. */
9167 return fork () < 0;
9168
9169 ;
9170 return 0;
9171}
ad6254c5
AK
9172_ACEOF
9173rm -f conftest$ac_exeext
7a197a62
AK
9174if { (ac_try="$ac_link"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
ec6a6fbe
AK
9179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9180$as_echo "$ac_try_echo") >&5
7a197a62 9181 (eval "$ac_link") 2>&5
ad6254c5 9182 ac_status=$?
ec6a6fbe 9183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9185 { (case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188esac
ec6a6fbe
AK
9189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9190$as_echo "$ac_try_echo") >&5
7a197a62 9191 (eval "$ac_try") 2>&5
ad6254c5 9192 ac_status=$?
ec6a6fbe 9193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9194 (exit $ac_status); }; }; then
9195 ac_cv_func_fork_works=yes
9196else
ec6a6fbe
AK
9197 $as_echo "$as_me: program exited with status $ac_status" >&5
9198$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9199sed 's/^/| /' conftest.$ac_ext >&5
9200
9201( exit $ac_status )
9202ac_cv_func_fork_works=no
9203fi
ec6a6fbe 9204rm -rf conftest.dSYM
7a197a62 9205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9206fi
7a197a62
AK
9207
9208
ad6254c5 9209fi
ec6a6fbe
AK
9210{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9211$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9212
9213else
9214 ac_cv_func_fork_works=$ac_cv_func_fork
9215fi
9216if test "x$ac_cv_func_fork_works" = xcross; then
9217 case $host in
9218 *-*-amigaos* | *-*-msdosdjgpp*)
9219 # Override, as these systems have only a dummy fork() stub
9220 ac_cv_func_fork_works=no
9221 ;;
9222 *)
9223 ac_cv_func_fork_works=yes
9224 ;;
9225 esac
ec6a6fbe
AK
9226 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9227$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9228fi
9229ac_cv_func_vfork_works=$ac_cv_func_vfork
9230if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9231 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9232$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9233if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9234 $as_echo_n "(cached) " >&6
ad6254c5
AK
9235else
9236 if test "$cross_compiling" = yes; then
9237 ac_cv_func_vfork_works=cross
9238else
9239 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9240/* confdefs.h. */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h. */
9245/* Thanks to Paul Eggert for this test. */
7a197a62 9246$ac_includes_default
ad6254c5 9247#include <sys/wait.h>
25fbec5b 9248#ifdef HAVE_VFORK_H
ad6254c5
AK
9249# include <vfork.h>
9250#endif
9251/* On some sparc systems, changes by the child to local and incoming
9252 argument registers are propagated back to the parent. The compiler
9253 is told about this with #include <vfork.h>, but some compilers
9254 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9255 static variable whose address is put into a register that is
9256 clobbered by the vfork. */
9257static void
9258#ifdef __cplusplus
9259sparc_address_test (int arg)
9260# else
9261sparc_address_test (arg) int arg;
9262#endif
9263{
9264 static pid_t child;
9265 if (!child) {
9266 child = vfork ();
9267 if (child < 0) {
9268 perror ("vfork");
9269 _exit(2);
9270 }
9271 if (!child) {
9272 arg = getpid();
9273 write(-1, "", 0);
9274 _exit (arg);
9275 }
9276 }
9277}
9278
9279int
9280main ()
9281{
9282 pid_t parent = getpid ();
9283 pid_t child;
9284
9285 sparc_address_test (0);
9286
9287 child = vfork ();
9288
9289 if (child == 0) {
9290 /* Here is another test for sparc vfork register problems. This
9291 test uses lots of local variables, at least as many local
9292 variables as main has allocated so far including compiler
9293 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9294 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9295 reuse the register of parent for one of the local variables,
9296 since it will think that parent can't possibly be used any more
9297 in this routine. Assigning to the local variable will thus
9298 munge parent in the parent process. */
9299 pid_t
9300 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9301 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9302 /* Convince the compiler that p..p7 are live; otherwise, it might
9303 use the same hardware register for all 8 local variables. */
9304 if (p != p1 || p != p2 || p != p3 || p != p4
9305 || p != p5 || p != p6 || p != p7)
9306 _exit(1);
9307
9308 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9309 from child file descriptors. If the child closes a descriptor
9310 before it execs or exits, this munges the parent's descriptor
9311 as well. Test for this by closing stdout in the child. */
9312 _exit(close(fileno(stdout)) != 0);
9313 } else {
9314 int status;
9315 struct stat st;
9316
9317 while (wait(&status) != child)
9318 ;
7a197a62 9319 return (
ad6254c5
AK
9320 /* Was there some problem with vforking? */
9321 child < 0
9322
9323 /* Did the child fail? (This shouldn't happen.) */
9324 || status
9325
9326 /* Did the vfork/compiler bug occur? */
9327 || parent != getpid()
9328
9329 /* Did the file descriptor bug occur? */
9330 || fstat(fileno(stdout), &st) != 0
9331 );
9332 }
9333}
9334_ACEOF
9335rm -f conftest$ac_exeext
7a197a62
AK
9336if { (ac_try="$ac_link"
9337case "(($ac_try" in
9338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339 *) ac_try_echo=$ac_try;;
9340esac
ec6a6fbe
AK
9341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9342$as_echo "$ac_try_echo") >&5
7a197a62 9343 (eval "$ac_link") 2>&5
ad6254c5 9344 ac_status=$?
ec6a6fbe 9345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9347 { (case "(($ac_try" in
9348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349 *) ac_try_echo=$ac_try;;
9350esac
ec6a6fbe
AK
9351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9352$as_echo "$ac_try_echo") >&5
7a197a62 9353 (eval "$ac_try") 2>&5
ad6254c5 9354 ac_status=$?
ec6a6fbe 9355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9356 (exit $ac_status); }; }; then
9357 ac_cv_func_vfork_works=yes
9358else
ec6a6fbe
AK
9359 $as_echo "$as_me: program exited with status $ac_status" >&5
9360$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9361sed 's/^/| /' conftest.$ac_ext >&5
9362
9363( exit $ac_status )
9364ac_cv_func_vfork_works=no
9365fi
ec6a6fbe 9366rm -rf conftest.dSYM
7a197a62 9367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9368fi
7a197a62
AK
9369
9370
ad6254c5 9371fi
ec6a6fbe
AK
9372{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9373$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9374
9375fi;
9376if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9377 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9378 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9379$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9380fi
9381
9382if test "x$ac_cv_func_vfork_works" = xyes; then
9383
9384cat >>confdefs.h <<\_ACEOF
9385#define HAVE_WORKING_VFORK 1
9386_ACEOF
9387
9388else
9389
9390cat >>confdefs.h <<\_ACEOF
9391#define vfork fork
9392_ACEOF
9393
9394fi
9395if test "x$ac_cv_func_fork_works" = xyes; then
9396
9397cat >>confdefs.h <<\_ACEOF
9398#define HAVE_WORKING_FORK 1
9399_ACEOF
9400
9401fi
9402
ec6a6fbe
AK
9403{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9404$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9405if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9406 $as_echo_n "(cached) " >&6
ad6254c5
AK
9407else
9408 rm -f conftest.sym conftest.file
9409echo >conftest.file
9410if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9411 if test "$cross_compiling" = yes; then
9412 ac_cv_func_lstat_dereferences_slashed_symlink=no
9413else
9414 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9415/* confdefs.h. */
9416_ACEOF
9417cat confdefs.h >>conftest.$ac_ext
9418cat >>conftest.$ac_ext <<_ACEOF
9419/* end confdefs.h. */
9420$ac_includes_default
9421int
9422main ()
9423{
9424struct stat sbuf;
9425 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9426 That is better in the sense that it means we will not
9427 have to compile and use the lstat wrapper. */
7a197a62 9428 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9429 ;
9430 return 0;
9431}
9432_ACEOF
9433rm -f conftest$ac_exeext
7a197a62
AK
9434if { (ac_try="$ac_link"
9435case "(($ac_try" in
9436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437 *) ac_try_echo=$ac_try;;
9438esac
ec6a6fbe
AK
9439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9440$as_echo "$ac_try_echo") >&5
7a197a62 9441 (eval "$ac_link") 2>&5
ad6254c5 9442 ac_status=$?
ec6a6fbe 9443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9445 { (case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448esac
ec6a6fbe
AK
9449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9450$as_echo "$ac_try_echo") >&5
7a197a62 9451 (eval "$ac_try") 2>&5
ad6254c5 9452 ac_status=$?
ec6a6fbe 9453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9454 (exit $ac_status); }; }; then
9455 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9456else
ec6a6fbe
AK
9457 $as_echo "$as_me: program exited with status $ac_status" >&5
9458$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461( exit $ac_status )
9462ac_cv_func_lstat_dereferences_slashed_symlink=no
9463fi
ec6a6fbe 9464rm -rf conftest.dSYM
7a197a62 9465rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9466fi
7a197a62
AK
9467
9468
ad6254c5
AK
9469else
9470 # If the `ln -s' command failed, then we probably don't even
9471 # have an lstat function.
9472 ac_cv_func_lstat_dereferences_slashed_symlink=no
9473fi
9474rm -f conftest.sym conftest.file
9475
9476fi
ec6a6fbe
AK
9477{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9478$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9479
9480test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9481
9482cat >>confdefs.h <<_ACEOF
9483#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9484_ACEOF
9485
9486
9487if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9488 case " $LIBOBJS " in
8a2fc586 9489 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9490 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9491 ;;
8a2fc586
AK
9492esac
9493
ad6254c5
AK
9494fi
9495
ec6a6fbe
AK
9496{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9497$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9498if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9499 $as_echo_n "(cached) " >&6
ad6254c5
AK
9500else
9501 if test "$cross_compiling" = yes; then
9502 ac_cv_func_lstat_empty_string_bug=yes
9503else
9504 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9505/* confdefs.h. */
9506_ACEOF
9507cat confdefs.h >>conftest.$ac_ext
9508cat >>conftest.$ac_ext <<_ACEOF
9509/* end confdefs.h. */
9510$ac_includes_default
9511int
9512main ()
9513{
9514struct stat sbuf;
7a197a62 9515 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9516 ;
9517 return 0;
9518}
9519_ACEOF
9520rm -f conftest$ac_exeext
7a197a62
AK
9521if { (ac_try="$ac_link"
9522case "(($ac_try" in
9523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9525esac
ec6a6fbe
AK
9526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9527$as_echo "$ac_try_echo") >&5
7a197a62 9528 (eval "$ac_link") 2>&5
ad6254c5 9529 ac_status=$?
ec6a6fbe 9530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9532 { (case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535esac
ec6a6fbe
AK
9536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9537$as_echo "$ac_try_echo") >&5
7a197a62 9538 (eval "$ac_try") 2>&5
ad6254c5 9539 ac_status=$?
ec6a6fbe 9540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9541 (exit $ac_status); }; }; then
7a197a62 9542 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9543else
ec6a6fbe
AK
9544 $as_echo "$as_me: program exited with status $ac_status" >&5
9545$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9546sed 's/^/| /' conftest.$ac_ext >&5
9547
9548( exit $ac_status )
7a197a62 9549ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9550fi
ec6a6fbe 9551rm -rf conftest.dSYM
7a197a62 9552rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9553fi
7a197a62
AK
9554
9555
ad6254c5 9556fi
ec6a6fbe
AK
9557{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9558$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9559if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9560 case " $LIBOBJS " in
8a2fc586 9561 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9562 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9563 ;;
8a2fc586
AK
9564esac
9565
ad6254c5
AK
9566
9567cat >>confdefs.h <<_ACEOF
9568#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9569_ACEOF
9570
9571fi
9572
9573
9574for ac_header in stdlib.h
9575do
ec6a6fbe 9576as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9579$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9580if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9581 $as_echo_n "(cached) " >&6
ad6254c5 9582fi
ec6a6fbe
AK
9583ac_res=`eval 'as_val=${'$as_ac_Header'}
9584 $as_echo "$as_val"'`
9585 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9586$as_echo "$ac_res" >&6; }
ad6254c5
AK
9587else
9588 # Is the header compilable?
ec6a6fbe
AK
9589{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9590$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9591cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9592/* confdefs.h. */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h. */
9597$ac_includes_default
9598#include <$ac_header>
9599_ACEOF
9600rm -f conftest.$ac_objext
7a197a62
AK
9601if { (ac_try="$ac_compile"
9602case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605esac
ec6a6fbe
AK
9606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9607$as_echo "$ac_try_echo") >&5
7a197a62 9608 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9609 ac_status=$?
8a2fc586
AK
9610 grep -v '^ *+' conftest.er1 >conftest.err
9611 rm -f conftest.er1
9612 cat conftest.err >&5
ec6a6fbe 9613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9614 (exit $ac_status); } && {
9615 test -z "$ac_c_werror_flag" ||
9616 test ! -s conftest.err
9617 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9618 ac_header_compiler=yes
9619else
ec6a6fbe 9620 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9621sed 's/^/| /' conftest.$ac_ext >&5
9622
7a197a62 9623 ac_header_compiler=no
ad6254c5 9624fi
7a197a62
AK
9625
9626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9627{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9628$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9629
9630# Is the header present?
ec6a6fbe
AK
9631{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9632$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9633cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9634/* confdefs.h. */
9635_ACEOF
9636cat confdefs.h >>conftest.$ac_ext
9637cat >>conftest.$ac_ext <<_ACEOF
9638/* end confdefs.h. */
9639#include <$ac_header>
9640_ACEOF
7a197a62
AK
9641if { (ac_try="$ac_cpp conftest.$ac_ext"
9642case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645esac
ec6a6fbe
AK
9646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9647$as_echo "$ac_try_echo") >&5
7a197a62 9648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
ec6a6fbe 9653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9654 (exit $ac_status); } >/dev/null && {
9655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9656 test ! -s conftest.err
9657 }; then
ad6254c5
AK
9658 ac_header_preproc=yes
9659else
ec6a6fbe 9660 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9661sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_header_preproc=no
9664fi
7a197a62 9665
ad6254c5 9666rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9667{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9668$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9669
9670# So? What about this header?
8a2fc586
AK
9671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9672 yes:no: )
ec6a6fbe
AK
9673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9674$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9676$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9677 ac_header_preproc=yes
ad6254c5 9678 ;;
8a2fc586 9679 no:yes:* )
ec6a6fbe
AK
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9681$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9683$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9685$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9687$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9689$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9691$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9692
ad6254c5
AK
9693 ;;
9694esac
ec6a6fbe
AK
9695{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9696$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9698 $as_echo_n "(cached) " >&6
ad6254c5 9699else
8a2fc586 9700 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9701fi
ec6a6fbe
AK
9702ac_res=`eval 'as_val=${'$as_ac_Header'}
9703 $as_echo "$as_val"'`
9704 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9705$as_echo "$ac_res" >&6; }
ad6254c5
AK
9706
9707fi
ec6a6fbe
AK
9708as_val=`eval 'as_val=${'$as_ac_Header'}
9709 $as_echo "$as_val"'`
9710 if test "x$as_val" = x""yes; then
ad6254c5 9711 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9712#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9713_ACEOF
9714
9715fi
9716
9717done
9718
ec6a6fbe
AK
9719{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9720$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9721if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9722 $as_echo_n "(cached) " >&6
ad6254c5
AK
9723else
9724 if test "$cross_compiling" = yes; then
9725 ac_cv_func_malloc_0_nonnull=no
9726else
9727 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9728/* confdefs.h. */
9729_ACEOF
9730cat confdefs.h >>conftest.$ac_ext
9731cat >>conftest.$ac_ext <<_ACEOF
9732/* end confdefs.h. */
25fbec5b 9733#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9734# include <stdlib.h>
9735#else
9736char *malloc ();
9737#endif
9738
9739int
9740main ()
9741{
7a197a62 9742return ! malloc (0);
ad6254c5
AK
9743 ;
9744 return 0;
9745}
9746_ACEOF
9747rm -f conftest$ac_exeext
7a197a62
AK
9748if { (ac_try="$ac_link"
9749case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
ec6a6fbe
AK
9753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754$as_echo "$ac_try_echo") >&5
7a197a62 9755 (eval "$ac_link") 2>&5
ad6254c5 9756 ac_status=$?
ec6a6fbe 9757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9759 { (case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762esac
ec6a6fbe
AK
9763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9764$as_echo "$ac_try_echo") >&5
7a197a62 9765 (eval "$ac_try") 2>&5
ad6254c5 9766 ac_status=$?
ec6a6fbe 9767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9768 (exit $ac_status); }; }; then
9769 ac_cv_func_malloc_0_nonnull=yes
9770else
ec6a6fbe
AK
9771 $as_echo "$as_me: program exited with status $ac_status" >&5
9772$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9773sed 's/^/| /' conftest.$ac_ext >&5
9774
9775( exit $ac_status )
9776ac_cv_func_malloc_0_nonnull=no
9777fi
ec6a6fbe 9778rm -rf conftest.dSYM
7a197a62 9779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9780fi
7a197a62
AK
9781
9782
ad6254c5 9783fi
ec6a6fbe
AK
9784{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9785$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9786if test $ac_cv_func_malloc_0_nonnull = yes; then
9787
9788cat >>confdefs.h <<\_ACEOF
9789#define HAVE_MALLOC 1
9790_ACEOF
9791
9792else
9793 cat >>confdefs.h <<\_ACEOF
9794#define HAVE_MALLOC 0
9795_ACEOF
9796
7a197a62 9797 case " $LIBOBJS " in
8a2fc586 9798 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9799 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9800 ;;
8a2fc586
AK
9801esac
9802
ad6254c5
AK
9803
9804cat >>confdefs.h <<\_ACEOF
9805#define malloc rpl_malloc
9806_ACEOF
9807
9808fi
9809
9810
9811
ec6a6fbe
AK
9812{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9813$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9814if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9815 $as_echo_n "(cached) " >&6
ad6254c5
AK
9816else
9817 if test "$cross_compiling" = yes; then
9818 ac_cv_func_memcmp_working=no
9819else
9820 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9821/* confdefs.h. */
9822_ACEOF
9823cat confdefs.h >>conftest.$ac_ext
9824cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */
8a2fc586 9826$ac_includes_default
ad6254c5
AK
9827int
9828main ()
9829{
9830
9831 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9832 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9833 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9834 return 1;
ad6254c5
AK
9835
9836 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9837 or more and with at least one buffer not starting on a 4-byte boundary.
9838 William Lewis provided this test program. */
9839 {
9840 char foo[21];
9841 char bar[21];
9842 int i;
9843 for (i = 0; i < 4; i++)
9844 {
8a2fc586
AK
9845 char *a = foo + i;
9846 char *b = bar + i;
9847 strcpy (a, "--------01111111");
9848 strcpy (b, "--------10000000");
9849 if (memcmp (a, b, 16) >= 0)
7a197a62 9850 return 1;
ad6254c5 9851 }
7a197a62 9852 return 0;
ad6254c5
AK
9853 }
9854
9855 ;
9856 return 0;
9857}
9858_ACEOF
9859rm -f conftest$ac_exeext
7a197a62
AK
9860if { (ac_try="$ac_link"
9861case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864esac
ec6a6fbe
AK
9865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9866$as_echo "$ac_try_echo") >&5
7a197a62 9867 (eval "$ac_link") 2>&5
ad6254c5 9868 ac_status=$?
ec6a6fbe 9869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9871 { (case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874esac
ec6a6fbe
AK
9875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9876$as_echo "$ac_try_echo") >&5
7a197a62 9877 (eval "$ac_try") 2>&5
ad6254c5 9878 ac_status=$?
ec6a6fbe 9879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9880 (exit $ac_status); }; }; then
9881 ac_cv_func_memcmp_working=yes
9882else
ec6a6fbe
AK
9883 $as_echo "$as_me: program exited with status $ac_status" >&5
9884$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9885sed 's/^/| /' conftest.$ac_ext >&5
9886
9887( exit $ac_status )
9888ac_cv_func_memcmp_working=no
9889fi
ec6a6fbe 9890rm -rf conftest.dSYM
7a197a62 9891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9892fi
7a197a62
AK
9893
9894
ad6254c5 9895fi
ec6a6fbe
AK
9896{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9897$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9898test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9899 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9900 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9901 ;;
8a2fc586
AK
9902esac
9903
ad6254c5
AK
9904
9905
9906
9907for ac_header in stdlib.h unistd.h
9908do
ec6a6fbe 9909as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9912$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9914 $as_echo_n "(cached) " >&6
ad6254c5 9915fi
ec6a6fbe
AK
9916ac_res=`eval 'as_val=${'$as_ac_Header'}
9917 $as_echo "$as_val"'`
9918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9919$as_echo "$ac_res" >&6; }
ad6254c5
AK
9920else
9921 # Is the header compilable?
ec6a6fbe
AK
9922{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9923$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9924cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9925/* confdefs.h. */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
9930$ac_includes_default
9931#include <$ac_header>
9932_ACEOF
9933rm -f conftest.$ac_objext
7a197a62
AK
9934if { (ac_try="$ac_compile"
9935case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938esac
ec6a6fbe
AK
9939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9940$as_echo "$ac_try_echo") >&5
7a197a62 9941 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9942 ac_status=$?
8a2fc586
AK
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
ec6a6fbe 9946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9951 ac_header_compiler=yes
9952else
ec6a6fbe 9953 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9954sed 's/^/| /' conftest.$ac_ext >&5
9955
7a197a62 9956 ac_header_compiler=no
ad6254c5 9957fi
7a197a62
AK
9958
9959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9960{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9961$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9962
9963# Is the header present?
ec6a6fbe
AK
9964{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9965$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9966cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9967/* confdefs.h. */
9968_ACEOF
9969cat confdefs.h >>conftest.$ac_ext
9970cat >>conftest.$ac_ext <<_ACEOF
9971/* end confdefs.h. */
9972#include <$ac_header>
9973_ACEOF
7a197a62
AK
9974if { (ac_try="$ac_cpp conftest.$ac_ext"
9975case "(($ac_try" in
9976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9977 *) ac_try_echo=$ac_try;;
9978esac
ec6a6fbe
AK
9979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9980$as_echo "$ac_try_echo") >&5
7a197a62 9981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9982 ac_status=$?
9983 grep -v '^ *+' conftest.er1 >conftest.err
9984 rm -f conftest.er1
9985 cat conftest.err >&5
ec6a6fbe 9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9987 (exit $ac_status); } >/dev/null && {
9988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9989 test ! -s conftest.err
9990 }; then
ad6254c5
AK
9991 ac_header_preproc=yes
9992else
ec6a6fbe 9993 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9994sed 's/^/| /' conftest.$ac_ext >&5
9995
9996 ac_header_preproc=no
9997fi
7a197a62 9998
ad6254c5 9999rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
10000{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10001$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
10002
10003# So? What about this header?
8a2fc586
AK
10004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10005 yes:no: )
ec6a6fbe
AK
10006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10007$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10009$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10010 ac_header_preproc=yes
ad6254c5 10011 ;;
8a2fc586 10012 no:yes:* )
ec6a6fbe
AK
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10014$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10016$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10018$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10020$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10022$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10024$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10025
ad6254c5
AK
10026 ;;
10027esac
ec6a6fbe
AK
10028{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10029$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10031 $as_echo_n "(cached) " >&6
ad6254c5 10032else
8a2fc586 10033 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10034fi
ec6a6fbe
AK
10035ac_res=`eval 'as_val=${'$as_ac_Header'}
10036 $as_echo "$as_val"'`
10037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10038$as_echo "$ac_res" >&6; }
ad6254c5
AK
10039
10040fi
ec6a6fbe
AK
10041as_val=`eval 'as_val=${'$as_ac_Header'}
10042 $as_echo "$as_val"'`
10043 if test "x$as_val" = x""yes; then
ad6254c5 10044 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10046_ACEOF
10047
10048fi
10049
10050done
10051
10052
10053for ac_func in getpagesize
10054do
ec6a6fbe
AK
10055as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10056{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10057$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10058if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10059 $as_echo_n "(cached) " >&6
ad6254c5
AK
10060else
10061 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10062/* confdefs.h. */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h. */
8a2fc586
AK
10067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10069#define $ac_func innocuous_$ac_func
10070
ad6254c5
AK
10071/* System header to define __stub macros and hopefully few prototypes,
10072 which can conflict with char $ac_func (); below.
10073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10074 <limits.h> exists even on freestanding compilers. */
8a2fc586 10075
ad6254c5
AK
10076#ifdef __STDC__
10077# include <limits.h>
10078#else
10079# include <assert.h>
10080#endif
8a2fc586
AK
10081
10082#undef $ac_func
10083
7a197a62
AK
10084/* Override any GCC internal prototype to avoid an error.
10085 Use char because int might match the return type of a GCC
10086 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10087#ifdef __cplusplus
10088extern "C"
ad6254c5 10089#endif
ad6254c5
AK
10090char $ac_func ();
10091/* The GNU C library defines this for functions which it implements
10092 to always fail with ENOSYS. Some functions are actually named
10093 something starting with __ and the normal name is an alias. */
7a197a62 10094#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10095choke me
ad6254c5
AK
10096#endif
10097
10098int
10099main ()
10100{
7a197a62 10101return $ac_func ();
ad6254c5
AK
10102 ;
10103 return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10107if { (ac_try="$ac_link"
10108case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
ec6a6fbe
AK
10112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10113$as_echo "$ac_try_echo") >&5
7a197a62 10114 (eval "$ac_link") 2>conftest.er1
ad6254c5 10115 ac_status=$?
8a2fc586
AK
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
ec6a6fbe 10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
ec6a6fbe
AK
10123 } && test -s conftest$ac_exeext && {
10124 test "$cross_compiling" = yes ||
10125 $as_test_x conftest$ac_exeext
10126 }; then
ad6254c5
AK
10127 eval "$as_ac_var=yes"
10128else
ec6a6fbe 10129 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
7a197a62 10132 eval "$as_ac_var=no"
ad6254c5 10133fi
7a197a62 10134
ec6a6fbe 10135rm -rf conftest.dSYM
25fbec5b 10136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10137 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10138fi
ec6a6fbe
AK
10139ac_res=`eval 'as_val=${'$as_ac_var'}
10140 $as_echo "$as_val"'`
10141 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10142$as_echo "$ac_res" >&6; }
10143as_val=`eval 'as_val=${'$as_ac_var'}
10144 $as_echo "$as_val"'`
10145 if test "x$as_val" = x""yes; then
ad6254c5 10146 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10147#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10148_ACEOF
10149
10150fi
10151done
10152
ec6a6fbe
AK
10153{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10154$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10155if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10156 $as_echo_n "(cached) " >&6
ad6254c5
AK
10157else
10158 if test "$cross_compiling" = yes; then
10159 ac_cv_func_mmap_fixed_mapped=no
10160else
10161 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10162/* confdefs.h. */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h. */
10167$ac_includes_default
10168/* malloc might have been renamed as rpl_malloc. */
10169#undef malloc
10170
10171/* Thanks to Mike Haertel and Jim Avera for this test.
10172 Here is a matrix of mmap possibilities:
10173 mmap private not fixed
10174 mmap private fixed at somewhere currently unmapped
10175 mmap private fixed at somewhere already mapped
10176 mmap shared not fixed
10177 mmap shared fixed at somewhere currently unmapped
10178 mmap shared fixed at somewhere already mapped
10179 For private mappings, we should verify that changes cannot be read()
10180 back from the file, nor mmap's back from the file at a different
10181 address. (There have been systems where private was not correctly
10182 implemented like the infamous i386 svr4.0, and systems where the
10183 VM page cache was not coherent with the file system buffer cache
10184 like early versions of FreeBSD and possibly contemporary NetBSD.)
10185 For shared mappings, we should conversely verify that changes get
10186 propagated back to all the places they're supposed to be.
10187
10188 Grep wants private fixed already mapped.
10189 The main things grep needs to know about mmap are:
10190 * does it exist and is it safe to write into the mmap'd area
10191 * how to use it (BSD variants) */
10192
10193#include <fcntl.h>
10194#include <sys/mman.h>
10195
25fbec5b 10196#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10197char *malloc ();
10198#endif
10199
10200/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10201#ifndef HAVE_GETPAGESIZE
ad6254c5 10202/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10203# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10204# define HAVE_SYS_PARAM_H 1
10205# endif
10206
10207# ifdef _SC_PAGESIZE
10208# define getpagesize() sysconf(_SC_PAGESIZE)
10209# else /* no _SC_PAGESIZE */
25fbec5b 10210# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10211# include <sys/param.h>
10212# ifdef EXEC_PAGESIZE
10213# define getpagesize() EXEC_PAGESIZE
10214# else /* no EXEC_PAGESIZE */
10215# ifdef NBPG
10216# define getpagesize() NBPG * CLSIZE
10217# ifndef CLSIZE
10218# define CLSIZE 1
10219# endif /* no CLSIZE */
10220# else /* no NBPG */
10221# ifdef NBPC
10222# define getpagesize() NBPC
10223# else /* no NBPC */
10224# ifdef PAGESIZE
10225# define getpagesize() PAGESIZE
10226# endif /* PAGESIZE */
10227# endif /* no NBPC */
10228# endif /* no NBPG */
10229# endif /* no EXEC_PAGESIZE */
10230# else /* no HAVE_SYS_PARAM_H */
10231# define getpagesize() 8192 /* punt totally */
10232# endif /* no HAVE_SYS_PARAM_H */
10233# endif /* no _SC_PAGESIZE */
10234
10235#endif /* no HAVE_GETPAGESIZE */
10236
10237int
10238main ()
10239{
10240 char *data, *data2, *data3;
10241 int i, pagesize;
10242 int fd;
10243
10244 pagesize = getpagesize ();
10245
10246 /* First, make a file with some known garbage in it. */
10247 data = (char *) malloc (pagesize);
10248 if (!data)
7a197a62 10249 return 1;
ad6254c5
AK
10250 for (i = 0; i < pagesize; ++i)
10251 *(data + i) = rand ();
10252 umask (0);
10253 fd = creat ("conftest.mmap", 0600);
10254 if (fd < 0)
7a197a62 10255 return 1;
ad6254c5 10256 if (write (fd, data, pagesize) != pagesize)
7a197a62 10257 return 1;
ad6254c5
AK
10258 close (fd);
10259
10260 /* Next, try to mmap the file at a fixed address which already has
10261 something else allocated at it. If we can, also make sure that
10262 we see the same garbage. */
10263 fd = open ("conftest.mmap", O_RDWR);
10264 if (fd < 0)
7a197a62 10265 return 1;
ad6254c5
AK
10266 data2 = (char *) malloc (2 * pagesize);
10267 if (!data2)
7a197a62
AK
10268 return 1;
10269 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10270 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10271 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10272 return 1;
ad6254c5
AK
10273 for (i = 0; i < pagesize; ++i)
10274 if (*(data + i) != *(data2 + i))
7a197a62 10275 return 1;
ad6254c5 10276
d911ec67
AK
10277 /* Finally, make sure that changes to the mapped area do not
10278 percolate back to the file as seen by read(). (This is a bug on
10279 some variants of i386 svr4.0.) */
10280 for (i = 0; i < pagesize; ++i)
10281 *(data2 + i) = *(data2 + i) + 1;
10282 data3 = (char *) malloc (pagesize);
10283 if (!data3)
10284 return 1;
10285 if (read (fd, data3, pagesize) != pagesize)
10286 return 1;
10287 for (i = 0; i < pagesize; ++i)
10288 if (*(data + i) != *(data3 + i))
10289 return 1;
10290 close (fd);
10291 return 0;
10292}
10293_ACEOF
10294rm -f conftest$ac_exeext
10295if { (ac_try="$ac_link"
10296case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299esac
10300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301$as_echo "$ac_try_echo") >&5
10302 (eval "$ac_link") 2>&5
10303 ac_status=$?
10304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10306 { (case "(($ac_try" in
10307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308 *) ac_try_echo=$ac_try;;
10309esac
10310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10311$as_echo "$ac_try_echo") >&5
10312 (eval "$ac_try") 2>&5
10313 ac_status=$?
10314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); }; }; then
10316 ac_cv_func_mmap_fixed_mapped=yes
10317else
10318 $as_echo "$as_me: program exited with status $ac_status" >&5
10319$as_echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
10322( exit $ac_status )
10323ac_cv_func_mmap_fixed_mapped=no
10324fi
10325rm -rf conftest.dSYM
10326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10327fi
10328
10329
10330fi
10331{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10332$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10333if test $ac_cv_func_mmap_fixed_mapped = yes; then
10334
10335cat >>confdefs.h <<\_ACEOF
10336#define HAVE_MMAP 1
10337_ACEOF
10338
10339fi
10340rm -f conftest.mmap
10341
10342
10343for ac_header in stdlib.h
10344do
10345as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10348$as_echo_n "checking for $ac_header... " >&6; }
10349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10350 $as_echo_n "(cached) " >&6
10351fi
10352ac_res=`eval 'as_val=${'$as_ac_Header'}
10353 $as_echo "$as_val"'`
10354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10355$as_echo "$ac_res" >&6; }
10356else
10357 # Is the header compilable?
10358{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10359$as_echo_n "checking $ac_header usability... " >&6; }
10360cat >conftest.$ac_ext <<_ACEOF
10361/* confdefs.h. */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h. */
10366$ac_includes_default
10367#include <$ac_header>
10368_ACEOF
10369rm -f conftest.$ac_objext
10370if { (ac_try="$ac_compile"
10371case "(($ac_try" in
10372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10373 *) ac_try_echo=$ac_try;;
10374esac
10375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10376$as_echo "$ac_try_echo") >&5
10377 (eval "$ac_compile") 2>conftest.er1
10378 ac_status=$?
10379 grep -v '^ *+' conftest.er1 >conftest.err
10380 rm -f conftest.er1
10381 cat conftest.err >&5
10382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); } && {
10384 test -z "$ac_c_werror_flag" ||
10385 test ! -s conftest.err
10386 } && test -s conftest.$ac_objext; then
10387 ac_header_compiler=yes
10388else
10389 $as_echo "$as_me: failed program was:" >&5
10390sed 's/^/| /' conftest.$ac_ext >&5
10391
10392 ac_header_compiler=no
10393fi
10394
10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397$as_echo "$ac_header_compiler" >&6; }
10398
10399# Is the header present?
10400{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401$as_echo_n "checking $ac_header presence... " >&6; }
10402cat >conftest.$ac_ext <<_ACEOF
10403/* confdefs.h. */
10404_ACEOF
10405cat confdefs.h >>conftest.$ac_ext
10406cat >>conftest.$ac_ext <<_ACEOF
10407/* end confdefs.h. */
10408#include <$ac_header>
10409_ACEOF
10410if { (ac_try="$ac_cpp conftest.$ac_ext"
10411case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10414esac
10415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10416$as_echo "$ac_try_echo") >&5
10417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10418 ac_status=$?
10419 grep -v '^ *+' conftest.er1 >conftest.err
10420 rm -f conftest.er1
10421 cat conftest.err >&5
10422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); } >/dev/null && {
10424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10425 test ! -s conftest.err
10426 }; then
10427 ac_header_preproc=yes
10428else
10429 $as_echo "$as_me: failed program was:" >&5
10430sed 's/^/| /' conftest.$ac_ext >&5
10431
10432 ac_header_preproc=no
10433fi
10434
10435rm -f conftest.err conftest.$ac_ext
10436{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10437$as_echo "$ac_header_preproc" >&6; }
10438
10439# So? What about this header?
10440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441 yes:no: )
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10443$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10445$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10446 ac_header_preproc=yes
10447 ;;
10448 no:yes:* )
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10450$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10452$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10454$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10456$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10460$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10461
10462 ;;
10463esac
10464{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10465$as_echo_n "checking for $ac_header... " >&6; }
10466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10467 $as_echo_n "(cached) " >&6
10468else
10469 eval "$as_ac_Header=\$ac_header_preproc"
10470fi
10471ac_res=`eval 'as_val=${'$as_ac_Header'}
10472 $as_echo "$as_val"'`
10473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10474$as_echo "$ac_res" >&6; }
10475
10476fi
10477as_val=`eval 'as_val=${'$as_ac_Header'}
10478 $as_echo "$as_val"'`
10479 if test "x$as_val" = x""yes; then
10480 cat >>confdefs.h <<_ACEOF
10481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10482_ACEOF
10483
10484fi
10485
10486done
10487
10488{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10489$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10490if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10491 $as_echo_n "(cached) " >&6
10492else
10493 if test "$cross_compiling" = yes; then
10494 ac_cv_func_realloc_0_nonnull=no
10495else
10496 cat >conftest.$ac_ext <<_ACEOF
10497/* confdefs.h. */
10498_ACEOF
10499cat confdefs.h >>conftest.$ac_ext
10500cat >>conftest.$ac_ext <<_ACEOF
10501/* end confdefs.h. */
10502#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10503# include <stdlib.h>
10504#else
10505char *realloc ();
10506#endif
10507
10508int
10509main ()
10510{
10511return ! realloc (0, 0);
10512 ;
7a197a62 10513 return 0;
ad6254c5
AK
10514}
10515_ACEOF
10516rm -f conftest$ac_exeext
7a197a62
AK
10517if { (ac_try="$ac_link"
10518case "(($ac_try" in
10519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10521esac
ec6a6fbe
AK
10522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10523$as_echo "$ac_try_echo") >&5
7a197a62 10524 (eval "$ac_link") 2>&5
ad6254c5 10525 ac_status=$?
ec6a6fbe 10526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10531esac
ec6a6fbe
AK
10532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10533$as_echo "$ac_try_echo") >&5
7a197a62 10534 (eval "$ac_try") 2>&5
ad6254c5 10535 ac_status=$?
ec6a6fbe 10536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10537 (exit $ac_status); }; }; then
d911ec67 10538 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10539else
ec6a6fbe
AK
10540 $as_echo "$as_me: program exited with status $ac_status" >&5
10541$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10542sed 's/^/| /' conftest.$ac_ext >&5
10543
10544( exit $ac_status )
d911ec67 10545ac_cv_func_realloc_0_nonnull=no
ad6254c5 10546fi
ec6a6fbe 10547rm -rf conftest.dSYM
7a197a62 10548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10549fi
7a197a62
AK
10550
10551
ad6254c5 10552fi
d911ec67
AK
10553{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10554$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10555if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10556
10557cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10558#define HAVE_REALLOC 1
10559_ACEOF
10560
10561else
10562 cat >>confdefs.h <<\_ACEOF
10563#define HAVE_REALLOC 0
10564_ACEOF
10565
10566 case " $LIBOBJS " in
10567 *" realloc.$ac_objext "* ) ;;
10568 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10569 ;;
10570esac
10571
10572
10573cat >>confdefs.h <<\_ACEOF
10574#define realloc rpl_realloc
ad6254c5
AK
10575_ACEOF
10576
10577fi
d911ec67
AK
10578
10579
ad6254c5 10580
ec6a6fbe
AK
10581{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10582$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10583if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10584 $as_echo_n "(cached) " >&6
ad6254c5
AK
10585else
10586 if test "$cross_compiling" = yes; then
10587 ac_cv_func_stat_empty_string_bug=yes
10588else
10589 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10590/* confdefs.h. */
10591_ACEOF
10592cat confdefs.h >>conftest.$ac_ext
10593cat >>conftest.$ac_ext <<_ACEOF
10594/* end confdefs.h. */
10595$ac_includes_default
10596int
10597main ()
10598{
10599struct stat sbuf;
7a197a62 10600 return stat ("", &sbuf) == 0;
ad6254c5
AK
10601 ;
10602 return 0;
10603}
10604_ACEOF
10605rm -f conftest$ac_exeext
7a197a62
AK
10606if { (ac_try="$ac_link"
10607case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10610esac
ec6a6fbe
AK
10611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10612$as_echo "$ac_try_echo") >&5
7a197a62 10613 (eval "$ac_link") 2>&5
ad6254c5 10614 ac_status=$?
ec6a6fbe 10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10617 { (case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620esac
ec6a6fbe
AK
10621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10622$as_echo "$ac_try_echo") >&5
7a197a62 10623 (eval "$ac_try") 2>&5
ad6254c5 10624 ac_status=$?
ec6a6fbe 10625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10626 (exit $ac_status); }; }; then
7a197a62 10627 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10628else
ec6a6fbe
AK
10629 $as_echo "$as_me: program exited with status $ac_status" >&5
10630$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10631sed 's/^/| /' conftest.$ac_ext >&5
10632
10633( exit $ac_status )
7a197a62 10634ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10635fi
ec6a6fbe 10636rm -rf conftest.dSYM
7a197a62 10637rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10638fi
7a197a62
AK
10639
10640
ad6254c5 10641fi
ec6a6fbe
AK
10642{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10643$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10644if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10645 case " $LIBOBJS " in
8a2fc586 10646 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10647 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10648 ;;
8a2fc586
AK
10649esac
10650
ad6254c5
AK
10651
10652cat >>confdefs.h <<_ACEOF
10653#define HAVE_STAT_EMPTY_STRING_BUG 1
10654_ACEOF
10655
10656fi
10657
ec6a6fbe
AK
10658{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10659$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10660if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10661 $as_echo_n "(cached) " >&6
ad6254c5
AK
10662else
10663 if test "$cross_compiling" = yes; then
10664 ac_cv_func_strtod=no
10665else
10666 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
10672
7a197a62
AK
10673$ac_includes_default
10674#ifndef strtod
ad6254c5 10675double strtod ();
7a197a62 10676#endif
ad6254c5
AK
10677int
10678main()
10679{
10680 {
10681 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10682 char *string = " +69";
10683 char *term;
10684 double value;
10685 value = strtod (string, &term);
10686 if (value != 69 || term != (string + 4))
7a197a62 10687 return 1;
ad6254c5
AK
10688 }
10689
10690 {
10691 /* Under Solaris 2.4, strtod returns the wrong value for the
10692 terminating character under some conditions. */
10693 char *string = "NaN";
10694 char *term;
10695 strtod (string, &term);
10696 if (term != string && *(term - 1) == 0)
7a197a62 10697 return 1;
ad6254c5 10698 }
7a197a62 10699 return 0;
ad6254c5
AK
10700}
10701
10702_ACEOF
10703rm -f conftest$ac_exeext
7a197a62
AK
10704if { (ac_try="$ac_link"
10705case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708esac
ec6a6fbe
AK
10709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710$as_echo "$ac_try_echo") >&5
7a197a62 10711 (eval "$ac_link") 2>&5
ad6254c5 10712 ac_status=$?
ec6a6fbe 10713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718esac
ec6a6fbe
AK
10719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10720$as_echo "$ac_try_echo") >&5
7a197a62 10721 (eval "$ac_try") 2>&5
ad6254c5 10722 ac_status=$?
ec6a6fbe 10723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10724 (exit $ac_status); }; }; then
10725 ac_cv_func_strtod=yes
10726else
ec6a6fbe
AK
10727 $as_echo "$as_me: program exited with status $ac_status" >&5
10728$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10729sed 's/^/| /' conftest.$ac_ext >&5
10730
10731( exit $ac_status )
10732ac_cv_func_strtod=no
10733fi
ec6a6fbe 10734rm -rf conftest.dSYM
7a197a62 10735rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10736fi
7a197a62
AK
10737
10738
ad6254c5 10739fi
ec6a6fbe
AK
10740{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10741$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10742if test $ac_cv_func_strtod = no; then
7a197a62 10743 case " $LIBOBJS " in
8a2fc586 10744 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10745 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10746 ;;
8a2fc586
AK
10747esac
10748
ec6a6fbe
AK
10749{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10750$as_echo_n "checking for pow... " >&6; }
ad6254c5 10751if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10752 $as_echo_n "(cached) " >&6
ad6254c5
AK
10753else
10754 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
8a2fc586
AK
10760/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10762#define pow innocuous_pow
10763
ad6254c5
AK
10764/* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char pow (); below.
10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10767 <limits.h> exists even on freestanding compilers. */
8a2fc586 10768
ad6254c5
AK
10769#ifdef __STDC__
10770# include <limits.h>
10771#else
10772# include <assert.h>
10773#endif
8a2fc586
AK
10774
10775#undef pow
10776
7a197a62
AK
10777/* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10780#ifdef __cplusplus
10781extern "C"
ad6254c5 10782#endif
ad6254c5
AK
10783char pow ();
10784/* The GNU C library defines this for functions which it implements
10785 to always fail with ENOSYS. Some functions are actually named
10786 something starting with __ and the normal name is an alias. */
7a197a62 10787#if defined __stub_pow || defined __stub___pow
ad6254c5 10788choke me
ad6254c5
AK
10789#endif
10790
10791int
10792main ()
10793{
7a197a62 10794return pow ();
ad6254c5
AK
10795 ;
10796 return 0;
10797}
10798_ACEOF
10799rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10800if { (ac_try="$ac_link"
10801case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
ec6a6fbe
AK
10805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806$as_echo "$ac_try_echo") >&5
7a197a62 10807 (eval "$ac_link") 2>conftest.er1
ad6254c5 10808 ac_status=$?
8a2fc586
AK
10809 grep -v '^ *+' conftest.er1 >conftest.err
10810 rm -f conftest.er1
10811 cat conftest.err >&5
ec6a6fbe 10812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
ec6a6fbe
AK
10816 } && test -s conftest$ac_exeext && {
10817 test "$cross_compiling" = yes ||
10818 $as_test_x conftest$ac_exeext
10819 }; then
ad6254c5
AK
10820 ac_cv_func_pow=yes
10821else
ec6a6fbe 10822 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
7a197a62 10825 ac_cv_func_pow=no
ad6254c5 10826fi
7a197a62 10827
ec6a6fbe 10828rm -rf conftest.dSYM
25fbec5b 10829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10830 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10831fi
ec6a6fbe
AK
10832{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10833$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10834
10835if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10836 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10837$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10838if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10839 $as_echo_n "(cached) " >&6
ad6254c5
AK
10840else
10841 ac_check_lib_save_LIBS=$LIBS
10842LIBS="-lm $LIBS"
10843cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849
7a197a62
AK
10850/* Override any GCC internal prototype to avoid an error.
10851 Use char because int might match the return type of a GCC
10852 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10853#ifdef __cplusplus
10854extern "C"
10855#endif
ad6254c5
AK
10856char pow ();
10857int
10858main ()
10859{
7a197a62 10860return pow ();
ad6254c5
AK
10861 ;
10862 return 0;
10863}
10864_ACEOF
10865rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10866if { (ac_try="$ac_link"
10867case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
ec6a6fbe
AK
10871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10872$as_echo "$ac_try_echo") >&5
7a197a62 10873 (eval "$ac_link") 2>conftest.er1
ad6254c5 10874 ac_status=$?
8a2fc586
AK
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
ec6a6fbe 10878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10879 (exit $ac_status); } && {
10880 test -z "$ac_c_werror_flag" ||
10881 test ! -s conftest.err
ec6a6fbe
AK
10882 } && test -s conftest$ac_exeext && {
10883 test "$cross_compiling" = yes ||
10884 $as_test_x conftest$ac_exeext
10885 }; then
ad6254c5
AK
10886 ac_cv_lib_m_pow=yes
10887else
ec6a6fbe 10888 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10889sed 's/^/| /' conftest.$ac_ext >&5
10890
7a197a62 10891 ac_cv_lib_m_pow=no
ad6254c5 10892fi
7a197a62 10893
ec6a6fbe 10894rm -rf conftest.dSYM
25fbec5b 10895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10896 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10897LIBS=$ac_check_lib_save_LIBS
d0191583 10898fi
ec6a6fbe
AK
10899{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10900$as_echo "$ac_cv_lib_m_pow" >&6; }
10901if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10902 POW_LIB=-lm
10903else
ec6a6fbe
AK
10904 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10905$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10906fi
72b2cb61 10907
d0191583 10908fi
72b2cb61 10909
ad6254c5
AK
10910fi
10911
ad6254c5 10912
d0191583
JM
10913for ac_func in vprintf
10914do
ec6a6fbe
AK
10915as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10916{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10917$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10919 $as_echo_n "(cached) " >&6
ad6254c5 10920else
d0191583
JM
10921 cat >conftest.$ac_ext <<_ACEOF
10922/* confdefs.h. */
10923_ACEOF
10924cat confdefs.h >>conftest.$ac_ext
10925cat >>conftest.$ac_ext <<_ACEOF
10926/* end confdefs.h. */
10927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10929#define $ac_func innocuous_$ac_func
7a197a62 10930
d0191583
JM
10931/* System header to define __stub macros and hopefully few prototypes,
10932 which can conflict with char $ac_func (); below.
10933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10934 <limits.h> exists even on freestanding compilers. */
ad6254c5 10935
d0191583
JM
10936#ifdef __STDC__
10937# include <limits.h>
10938#else
10939# include <assert.h>
10940#endif
ad6254c5 10941
d0191583 10942#undef $ac_func
72b2cb61 10943
d0191583
JM
10944/* Override any GCC internal prototype to avoid an error.
10945 Use char because int might match the return type of a GCC
10946 builtin and then its argument prototype would still apply. */
10947#ifdef __cplusplus
10948extern "C"
10949#endif
10950char $ac_func ();
10951/* The GNU C library defines this for functions which it implements
10952 to always fail with ENOSYS. Some functions are actually named
10953 something starting with __ and the normal name is an alias. */
10954#if defined __stub_$ac_func || defined __stub___$ac_func
10955choke me
10956#endif
10957
10958int
10959main ()
10960{
10961return $ac_func ();
10962 ;
10963 return 0;
10964}
72b2cb61 10965_ACEOF
d0191583
JM
10966rm -f conftest.$ac_objext conftest$ac_exeext
10967if { (ac_try="$ac_link"
10968case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971esac
ec6a6fbe
AK
10972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10973$as_echo "$ac_try_echo") >&5
d0191583
JM
10974 (eval "$ac_link") 2>conftest.er1
10975 ac_status=$?
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
ec6a6fbe 10979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10980 (exit $ac_status); } && {
10981 test -z "$ac_c_werror_flag" ||
10982 test ! -s conftest.err
ec6a6fbe
AK
10983 } && test -s conftest$ac_exeext && {
10984 test "$cross_compiling" = yes ||
10985 $as_test_x conftest$ac_exeext
10986 }; then
d0191583
JM
10987 eval "$as_ac_var=yes"
10988else
ec6a6fbe 10989 $as_echo "$as_me: failed program was:" >&5
d0191583 10990sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10991
d0191583 10992 eval "$as_ac_var=no"
ad6254c5
AK
10993fi
10994
ec6a6fbe 10995rm -rf conftest.dSYM
d0191583
JM
10996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10997 conftest$ac_exeext conftest.$ac_ext
7a197a62 10998fi
ec6a6fbe
AK
10999ac_res=`eval 'as_val=${'$as_ac_var'}
11000 $as_echo "$as_val"'`
11001 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11002$as_echo "$ac_res" >&6; }
11003as_val=`eval 'as_val=${'$as_ac_var'}
11004 $as_echo "$as_val"'`
11005 if test "x$as_val" = x""yes; then
d0191583 11006 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11007#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 11008_ACEOF
7a197a62 11009
ec6a6fbe
AK
11010{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11011$as_echo_n "checking for _doprnt... " >&6; }
d0191583 11012if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 11013 $as_echo_n "(cached) " >&6
ad6254c5 11014else
d0191583
JM
11015 cat >conftest.$ac_ext <<_ACEOF
11016/* confdefs.h. */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
11020/* end confdefs.h. */
11021/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11023#define _doprnt innocuous__doprnt
7a197a62 11024
d0191583
JM
11025/* System header to define __stub macros and hopefully few prototypes,
11026 which can conflict with char _doprnt (); below.
11027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11028 <limits.h> exists even on freestanding compilers. */
ad6254c5 11029
d0191583
JM
11030#ifdef __STDC__
11031# include <limits.h>
11032#else
11033# include <assert.h>
11034#endif
72b2cb61 11035
d0191583
JM
11036#undef _doprnt
11037
11038/* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041#ifdef __cplusplus
11042extern "C"
11043#endif
11044char _doprnt ();
11045/* The GNU C library defines this for functions which it implements
11046 to always fail with ENOSYS. Some functions are actually named
11047 something starting with __ and the normal name is an alias. */
11048#if defined __stub__doprnt || defined __stub____doprnt
11049choke me
11050#endif
11051
11052int
11053main ()
11054{
11055return _doprnt ();
11056 ;
11057 return 0;
11058}
72b2cb61 11059_ACEOF
d0191583
JM
11060rm -f conftest.$ac_objext conftest$ac_exeext
11061if { (ac_try="$ac_link"
11062case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
ec6a6fbe
AK
11066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067$as_echo "$ac_try_echo") >&5
d0191583
JM
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
ec6a6fbe 11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
ec6a6fbe
AK
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11080 }; then
d0191583
JM
11081 ac_cv_func__doprnt=yes
11082else
ec6a6fbe 11083 $as_echo "$as_me: failed program was:" >&5
d0191583 11084sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11085
d0191583 11086 ac_cv_func__doprnt=no
ad6254c5
AK
11087fi
11088
ec6a6fbe 11089rm -rf conftest.dSYM
d0191583
JM
11090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
7a197a62 11092fi
ec6a6fbe
AK
11093{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11094$as_echo "$ac_cv_func__doprnt" >&6; }
11095if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11096
d0191583
JM
11097cat >>confdefs.h <<\_ACEOF
11098#define HAVE_DOPRNT 1
11099_ACEOF
ad6254c5 11100
7a197a62
AK
11101fi
11102
d0191583
JM
11103fi
11104done
8b1a3214 11105
ad6254c5 11106
7a197a62 11107
9c961554 11108################################################################################
ec6a6fbe
AK
11109{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11110$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11111# Check whether --enable-static_link was given.
11112if test "${enable_static_link+set}" = set; then
11113 enableval=$enable_static_link; STATIC_LINK=$enableval
11114else
11115 STATIC_LINK=no
11116fi
11117
ec6a6fbe
AK
11118{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11119$as_echo "$STATIC_LINK" >&6; }
9c961554 11120
d0191583 11121################################################################################
ad6254c5 11122
ad6254c5
AK
11123
11124################################################################################
ec6a6fbe
AK
11125{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11126$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11127
11128# Check whether --with-user was given.
11129if test "${with_user+set}" = set; then
71082be4 11130 withval=$with_user; OWNER=$withval
7a197a62
AK
11131fi
11132
ec6a6fbe
AK
11133{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11134$as_echo "$OWNER" >&6; }
ad6254c5 11135
d0191583 11136if test x$OWNER != x; then
23b059e7 11137 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11138fi
11139
11140################################################################################
ec6a6fbe
AK
11141{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11142$as_echo_n "checking group owner... " >&6; }
ad6254c5 11143
d0191583
JM
11144# Check whether --with-group was given.
11145if test "${with_group+set}" = set; then
71082be4 11146 withval=$with_group; GROUP=$withval
7a197a62
AK
11147fi
11148
ec6a6fbe
AK
11149{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11150$as_echo "$GROUP" >&6; }
d0191583
JM
11151
11152if test x$GROUP != x; then
23b059e7 11153 INSTALL="$INSTALL -g $GROUP"
d0191583 11154fi
ad6254c5 11155
24bbc4d7 11156################################################################################
ec6a6fbe
AK
11157{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11158$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11159
11160
11161# Check whether --with-device-uid was given.
11162if test "${with_device_uid+set}" = set; then
71082be4 11163 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11164else
71082be4 11165 DM_DEVICE_UID=0
24bbc4d7
AK
11166fi
11167
ec6a6fbe
AK
11168{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11169$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11170
11171################################################################################
ec6a6fbe
AK
11172{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11173$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11174
11175
11176# Check whether --with-device-gid was given.
11177if test "${with_device_gid+set}" = set; then
71082be4 11178 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11179else
71082be4 11180 DM_DEVICE_GID=0
24bbc4d7
AK
11181fi
11182
ec6a6fbe
AK
11183{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11184$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11185
93bd259b 11186################################################################################
ec6a6fbe
AK
11187{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11188$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11189
11190
11191# Check whether --with-device-mode was given.
11192if test "${with_device_mode+set}" = set; then
71082be4 11193 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11194else
71082be4 11195 DM_DEVICE_MODE=0600
93bd259b
AK
11196fi
11197
ec6a6fbe
AK
11198{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11199$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11200
ad6254c5 11201################################################################################
ec6a6fbe
AK
11202{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11203$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11204# Check whether --enable-lvm1_fallback was given.
11205if test "${enable_lvm1_fallback+set}" = set; then
11206 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11207else
11208 LVM1_FALLBACK=no
7a197a62
AK
11209fi
11210
ec6a6fbe
AK
11211{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11212$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11213
d0191583 11214if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11215
11216cat >>confdefs.h <<\_ACEOF
d0191583 11217#define LVM1_FALLBACK 1
72b2cb61
AK
11218_ACEOF
11219
ad6254c5
AK
11220fi
11221
11222################################################################################
ec6a6fbe
AK
11223{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11224$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11225
11226# Check whether --with-lvm1 was given.
11227if test "${with_lvm1+set}" = set; then
71082be4 11228 withval=$with_lvm1; LVM1=$withval
d0191583 11229else
71082be4 11230 LVM1=internal
7a197a62
AK
11231fi
11232
ec6a6fbe
AK
11233{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11234$as_echo "$LVM1" >&6; }
ad6254c5 11235
d0191583 11236if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11237 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11238" >&5
ec6a6fbe 11239$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11240" >&2;}
11241 { (exit 1); exit 1; }; }
11242fi;
11243
11244if test x$LVM1 = xinternal; then
72b2cb61
AK
11245
11246cat >>confdefs.h <<\_ACEOF
d0191583 11247#define LVM1_INTERNAL 1
72b2cb61
AK
11248_ACEOF
11249
ad6254c5
AK
11250fi
11251
11252################################################################################
ec6a6fbe
AK
11253{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11254$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11255
11256# Check whether --with-pool was given.
11257if test "${with_pool+set}" = set; then
71082be4 11258 withval=$with_pool; POOL=$withval
ad6254c5 11259else
71082be4 11260 POOL=internal
7a197a62
AK
11261fi
11262
ec6a6fbe
AK
11263{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11264$as_echo "$POOL" >&6; }
ad6254c5 11265
d0191583 11266if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11267 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11268" >&5
ec6a6fbe 11269$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11270" >&2;}
11271 { (exit 1); exit 1; }; }
11272fi;
7a197a62 11273
d0191583
JM
11274if test x$POOL = xinternal; then
11275
11276cat >>confdefs.h <<\_ACEOF
11277#define POOL_INTERNAL 1
11278_ACEOF
11279
11280fi
ad6254c5 11281
06f62ad1 11282################################################################################
ec6a6fbe
AK
11283{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11284$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11285
11286# Check whether --with-cluster was given.
11287if test "${with_cluster+set}" = set; then
71082be4 11288 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11289fi
11290
ec6a6fbe
AK
11291{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11292$as_echo "$CLUSTER" >&6; }
06f62ad1 11293
d0191583 11294if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11295 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11296" >&5
ec6a6fbe 11297$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11298" >&2;}
11299 { (exit 1); exit 1; }; }
d0191583 11300fi;
06f62ad1 11301
d0191583 11302if test x$CLUSTER = xinternal; then
72b2cb61
AK
11303
11304cat >>confdefs.h <<\_ACEOF
d0191583 11305#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11306_ACEOF
11307
15d91f5a 11308fi
ad6254c5
AK
11309
11310################################################################################
ec6a6fbe
AK
11311{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11312$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11313
d0191583
JM
11314# Check whether --with-snapshots was given.
11315if test "${with_snapshots+set}" = set; then
71082be4 11316 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11317else
71082be4 11318 SNAPSHOTS=internal
ad6254c5
AK
11319fi
11320
ec6a6fbe
AK
11321{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11322$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11323
d0191583 11324if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11325 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11326" >&5
ec6a6fbe 11327$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11328" >&2;}
11329 { (exit 1); exit 1; }; }
11330fi;
11331
11332if test x$SNAPSHOTS = xinternal; then
11333
11334cat >>confdefs.h <<\_ACEOF
11335#define SNAPSHOT_INTERNAL 1
11336_ACEOF
ad6254c5 11337
ad6254c5 11338fi
7a197a62 11339
d0191583 11340################################################################################
ec6a6fbe
AK
11341{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11342$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11343
11344# Check whether --with-mirrors was given.
11345if test "${with_mirrors+set}" = set; then
71082be4 11346 withval=$with_mirrors; MIRRORS=$withval
d0191583 11347else
71082be4 11348 MIRRORS=internal
ad6254c5 11349fi
ad6254c5 11350
ec6a6fbe
AK
11351{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11352$as_echo "$MIRRORS" >&6; }
ad6254c5 11353
d0191583 11354if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11355 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11356" >&5
ec6a6fbe 11357$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11358" >&2;}
11359 { (exit 1); exit 1; }; }
11360fi;
ad6254c5 11361
d0191583 11362if test x$MIRRORS = xinternal; then
ad6254c5 11363
d0191583
JM
11364cat >>confdefs.h <<\_ACEOF
11365#define MIRRORED_INTERNAL 1
ad6254c5 11366_ACEOF
8a2fc586 11367
d0191583 11368fi
8a2fc586 11369
8fea97b7
ZK
11370################################################################################
11371{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11372$as_echo_n "checking whether to include replicators... " >&6; }
11373
11374# Check whether --with-replicators was given.
11375if test "${with_replicators+set}" = set; then
11376 withval=$with_replicators; REPLICATORS=$withval
11377else
71082be4 11378 REPLICATORS=none
8fea97b7
ZK
11379fi
11380
11381{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11382$as_echo "$REPLICATORS" >&6; }
11383
11384case "$REPLICATORS" in
11385 none|shared) ;;
11386 internal)
11387cat >>confdefs.h <<\_ACEOF
11388#define REPLICATOR_INTERNAL 1
11389_ACEOF
11390 ;;
11391 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11392$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11393 { (exit 1); exit 1; }; } ;;
11394esac
11395
d0191583 11396################################################################################
ec6a6fbe
AK
11397{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11398$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11399# Check whether --enable-readline was given.
11400if test "${enable_readline+set}" = set; then
11401 enableval=$enable_readline; READLINE=$enableval
11402else
06e459df 11403 READLINE=maybe
d0191583 11404fi
8a2fc586 11405
ec6a6fbe
AK
11406{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11407$as_echo "$READLINE" >&6; }
8a2fc586 11408
d0191583 11409################################################################################
ec6a6fbe
AK
11410{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11411$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11412# Check whether --enable-realtime was given.
11413if test "${enable_realtime+set}" = set; then
11414 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11415fi
ad6254c5 11416
ec6a6fbe
AK
11417{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11418$as_echo "$REALTIME" >&6; }
d0191583
JM
11419
11420################################################################################
90c80887 11421pkg_config_init() {
e2997b73
AK
11422
11423
11424if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11425 if test -n "$ac_tool_prefix"; then
11426 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11427set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11428{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11429$as_echo_n "checking for $ac_word... " >&6; }
11430if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11431 $as_echo_n "(cached) " >&6
11432else
11433 case $PKG_CONFIG in
11434 [\\/]* | ?:[\\/]*)
11435 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11436 ;;
11437 *)
11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $PATH
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11445 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449done
11450done
11451IFS=$as_save_IFS
11452
11453 ;;
11454esac
11455fi
11456PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11457if test -n "$PKG_CONFIG"; then
11458 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11459$as_echo "$PKG_CONFIG" >&6; }
11460else
11461 { $as_echo "$as_me:$LINENO: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465
11466fi
11467if test -z "$ac_cv_path_PKG_CONFIG"; then
11468 ac_pt_PKG_CONFIG=$PKG_CONFIG
11469 # Extract the first word of "pkg-config", so it can be a program name with args.
11470set dummy pkg-config; ac_word=$2
11471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11472$as_echo_n "checking for $ac_word... " >&6; }
11473if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11474 $as_echo_n "(cached) " >&6
11475else
11476 case $ac_pt_PKG_CONFIG in
11477 [\\/]* | ?:[\\/]*)
11478 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11479 ;;
11480 *)
11481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11482for as_dir in $PATH
11483do
11484 IFS=$as_save_IFS
11485 test -z "$as_dir" && as_dir=.
11486 for ac_exec_ext in '' $ac_executable_extensions; do
11487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11488 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11489 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11490 break 2
11491 fi
11492done
11493done
11494IFS=$as_save_IFS
11495
11496 ;;
11497esac
11498fi
11499ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11500if test -n "$ac_pt_PKG_CONFIG"; then
11501 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11502$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11503else
11504 { $as_echo "$as_me:$LINENO: result: no" >&5
11505$as_echo "no" >&6; }
11506fi
11507
11508 if test "x$ac_pt_PKG_CONFIG" = x; then
11509 PKG_CONFIG=""
11510 else
11511 case $cross_compiling:$ac_tool_warned in
11512yes:)
11513{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11514$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11515ac_tool_warned=yes ;;
11516esac
11517 PKG_CONFIG=$ac_pt_PKG_CONFIG
11518 fi
11519else
11520 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11521fi
11522
11523fi
11524if test -n "$PKG_CONFIG"; then
11525 _pkg_min_version=0.9.0
11526 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11527$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11528 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11529 { $as_echo "$as_me:$LINENO: result: yes" >&5
11530$as_echo "yes" >&6; }
11531 else
11532 { $as_echo "$as_me:$LINENO: result: no" >&5
11533$as_echo "no" >&6; }
11534 PKG_CONFIG=""
11535 fi
8c4e8a18 11536
e2997b73
AK
11537fi
11538
11539pkg_failed=no
a946372e
AK
11540{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11541$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11542
a946372e
AK
11543if test -n "$PKGCONFIGINIT_CFLAGS"; then
11544 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11545 elif test -n "$PKG_CONFIG"; then
11546 if test -n "$PKG_CONFIG" && \
a946372e
AK
11547 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11548 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11549 ac_status=$?
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); }; then
a946372e 11552 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11553else
11554 pkg_failed=yes
11555fi
11556 else
11557 pkg_failed=untried
11558fi
a946372e
AK
11559if test -n "$PKGCONFIGINIT_LIBS"; then
11560 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11561 elif test -n "$PKG_CONFIG"; then
11562 if test -n "$PKG_CONFIG" && \
a946372e
AK
11563 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11564 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11565 ac_status=$?
11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; then
a946372e 11568 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11569else
11570 pkg_failed=yes
11571fi
11572 else
11573 pkg_failed=untried
11574fi
11575
11576
11577
11578if test $pkg_failed = yes; then
11579
11580if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11581 _pkg_short_errors_supported=yes
11582else
11583 _pkg_short_errors_supported=no
11584fi
11585 if test $_pkg_short_errors_supported = yes; then
a946372e 11586 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11587 else
a946372e 11588 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11589 fi
11590 # Put the nasty error message in config.log where it belongs
a946372e 11591 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11592
8c4e8a18
FDN
11593 { $as_echo "$as_me:$LINENO: result: no" >&5
11594$as_echo "no" >&6; }
11595 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11596$as_echo "pkg-config initialized" >&6; }
e2997b73 11597elif test $pkg_failed = untried; then
a946372e
AK
11598 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11599$as_echo "pkg-config initialized" >&6; }
e2997b73 11600else
a946372e
AK
11601 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11602 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11603 { $as_echo "$as_me:$LINENO: result: yes" >&5
11604$as_echo "yes" >&6; }
8c4e8a18 11605 :
e2997b73 11606fi
90c80887
AK
11607 PKGCONFIG_INIT=1
11608}
11609
11610################################################################################
11611{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11612$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11613
11614# Check whether --with-clvmd was given.
11615if test "${with_clvmd+set}" = set; then
71082be4 11616 withval=$with_clvmd; CLVMD=$withval
90c80887 11617else
71082be4 11618 CLVMD=none
90c80887
AK
11619fi
11620
11621if test x$CLVMD = xyes; then
11622 CLVMD=all
11623fi
11624{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11625$as_echo "$CLVMD" >&6; }
11626
11627if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11628 CLUSTER=internal
11629fi
11630
11631if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11632 pkg_config_init
11633fi
11634
11635
11636if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11637 BUILDGULM=yes
11638fi
11639if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11640 BUILDCOROSYNC=yes
11641fi
11642if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11643 BUILDOPENAIS=yes
11644fi
11645if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11646 BUILDCMAN=yes
11647fi
11648
11649if test x$BUILDGULM = xyes; then
11650 if test x$BUILDCOROSYNC = xyes || \
11651 test x$BUILDOPENAIS = xyes; then
11652 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11653$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11654 { (exit 1); exit 1; }; }
11655 fi
a946372e 11656fi
e2997b73 11657
a946372e
AK
11658soft_bailout() {
11659 NOTFOUND=1
11660}
e2997b73 11661
a946372e
AK
11662hard_bailout() {
11663 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11664$as_echo "$as_me: error: bailing out" >&2;}
11665 { (exit 1); exit 1; }; }
11666}
11667
11668if test x$CLVMD = xall; then
11669 bailout=soft_bailout
11670 BUILDGULM=yes
11671 BUILDCMAN=yes
11672 BUILDCOROSYNC=yes
11673 BUILDOPENAIS=yes
e2997b73 11674else
a946372e 11675 bailout=hard_bailout
e2997b73 11676fi
a946372e
AK
11677
11678check_lib_no_libs() {
11679 lib_no_libs_arg1=$1
11680 shift
11681 lib_no_libs_arg2=$1
11682 shift
11683 lib_no_libs_args=$@
11684
11685as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11686{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11687$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11688if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11689 $as_echo_n "(cached) " >&6
11690else
11691 ac_check_lib_save_LIBS=$LIBS
11692LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11693cat >conftest.$ac_ext <<_ACEOF
11694/* confdefs.h. */
11695_ACEOF
11696cat confdefs.h >>conftest.$ac_ext
11697cat >>conftest.$ac_ext <<_ACEOF
11698/* end confdefs.h. */
11699
11700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
11703#ifdef __cplusplus
11704extern "C"
11705#endif
11706char $lib_no_libs_arg2 ();
11707int
11708main ()
11709{
11710return $lib_no_libs_arg2 ();
11711 ;
11712 return 0;
11713}
11714_ACEOF
11715rm -f conftest.$ac_objext conftest$ac_exeext
11716if { (ac_try="$ac_link"
11717case "(($ac_try" in
11718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719 *) ac_try_echo=$ac_try;;
11720esac
11721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11722$as_echo "$ac_try_echo") >&5
11723 (eval "$ac_link") 2>conftest.er1
e2997b73 11724 ac_status=$?
a946372e
AK
11725 grep -v '^ *+' conftest.er1 >conftest.err
11726 rm -f conftest.er1
11727 cat conftest.err >&5
e2997b73 11728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11729 (exit $ac_status); } && {
11730 test -z "$ac_c_werror_flag" ||
11731 test ! -s conftest.err
11732 } && test -s conftest$ac_exeext && {
11733 test "$cross_compiling" = yes ||
11734 $as_test_x conftest$ac_exeext
11735 }; then
11736 eval "$as_ac_Lib=yes"
e2997b73 11737else
a946372e
AK
11738 $as_echo "$as_me: failed program was:" >&5
11739sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11740
a946372e
AK
11741 eval "$as_ac_Lib=no"
11742fi
e2997b73 11743
a946372e
AK
11744rm -rf conftest.dSYM
11745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11746 conftest$ac_exeext conftest.$ac_ext
11747LIBS=$ac_check_lib_save_LIBS
11748fi
11749ac_res=`eval 'as_val=${'$as_ac_Lib'}
11750 $as_echo "$as_val"'`
11751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11752$as_echo "$ac_res" >&6; }
11753as_val=`eval 'as_val=${'$as_ac_Lib'}
11754 $as_echo "$as_val"'`
11755 if test "x$as_val" = x""yes; then
11756 cat >>confdefs.h <<_ACEOF
11757#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11758_ACEOF
e2997b73 11759
a946372e 11760 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11761
e2997b73 11762else
a946372e 11763 $bailout
e2997b73 11764fi
e2997b73 11765
a946372e
AK
11766 LIBS=$ac_check_lib_save_LIBS
11767}
11768
11769if test x$BUILDGULM = xyes; then
e2997b73
AK
11770
11771pkg_failed=no
a946372e
AK
11772{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11773$as_echo_n "checking for CCS... " >&6; }
e2997b73 11774
a946372e
AK
11775if test -n "$CCS_CFLAGS"; then
11776 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11777 elif test -n "$PKG_CONFIG"; then
11778 if test -n "$PKG_CONFIG" && \
a946372e
AK
11779 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11780 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11781 ac_status=$?
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; then
a946372e 11784 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11785else
11786 pkg_failed=yes
11787fi
11788 else
11789 pkg_failed=untried
11790fi
a946372e
AK
11791if test -n "$CCS_LIBS"; then
11792 pkg_cv_CCS_LIBS="$CCS_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11801else
11802 pkg_failed=yes
11803fi
11804 else
11805 pkg_failed=untried
11806fi
11807
11808
11809
11810if test $pkg_failed = yes; then
11811
11812if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11813 _pkg_short_errors_supported=yes
11814else
11815 _pkg_short_errors_supported=no
11816fi
11817 if test $_pkg_short_errors_supported = yes; then
a946372e 11818 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11819 else
a946372e 11820 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11821 fi
11822 # Put the nasty error message in config.log where it belongs
a946372e 11823 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11824
8c4e8a18
FDN
11825 { $as_echo "$as_me:$LINENO: result: no" >&5
11826$as_echo "no" >&6; }
11827 NOTFOUND=0
e2997b73 11828
a946372e
AK
11829for ac_header in ccs.h
11830do
11831as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11834$as_echo_n "checking for $ac_header... " >&6; }
11835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11836 $as_echo_n "(cached) " >&6
d0191583 11837fi
a946372e
AK
11838ac_res=`eval 'as_val=${'$as_ac_Header'}
11839 $as_echo "$as_val"'`
11840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11841$as_echo "$ac_res" >&6; }
fc54be10 11842else
a946372e
AK
11843 # Is the header compilable?
11844{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11845$as_echo_n "checking $ac_header usability... " >&6; }
11846cat >conftest.$ac_ext <<_ACEOF
11847/* confdefs.h. */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h. */
11852$ac_includes_default
11853#include <$ac_header>
11854_ACEOF
11855rm -f conftest.$ac_objext
11856if { (ac_try="$ac_compile"
11857case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11862$as_echo "$ac_try_echo") >&5
11863 (eval "$ac_compile") 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } && {
11870 test -z "$ac_c_werror_flag" ||
11871 test ! -s conftest.err
11872 } && test -s conftest.$ac_objext; then
11873 ac_header_compiler=yes
11874else
11875 $as_echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11877
a946372e 11878 ac_header_compiler=no
d0191583
JM
11879fi
11880
a946372e
AK
11881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11883$as_echo "$ac_header_compiler" >&6; }
fddafd51 11884
a946372e
AK
11885# Is the header present?
11886{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11887$as_echo_n "checking $ac_header presence... " >&6; }
11888cat >conftest.$ac_ext <<_ACEOF
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
11894#include <$ac_header>
11895_ACEOF
11896if { (ac_try="$ac_cpp conftest.$ac_ext"
11897case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11900esac
11901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11902$as_echo "$ac_try_echo") >&5
11903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } >/dev/null && {
11910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 }; then
11913 ac_header_preproc=yes
11914else
11915 $as_echo "$as_me: failed program was:" >&5
11916sed 's/^/| /' conftest.$ac_ext >&5
11917
11918 ac_header_preproc=no
11919fi
11920
11921rm -f conftest.err conftest.$ac_ext
11922{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11923$as_echo "$ac_header_preproc" >&6; }
11924
11925# So? What about this header?
11926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11927 yes:no: )
11928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11929$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11931$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11932 ac_header_preproc=yes
11933 ;;
11934 no:yes:* )
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11940$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11942$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11944$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11946$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11947
11948 ;;
11949esac
11950{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11951$as_echo_n "checking for $ac_header... " >&6; }
11952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11953 $as_echo_n "(cached) " >&6
11954else
11955 eval "$as_ac_Header=\$ac_header_preproc"
11956fi
11957ac_res=`eval 'as_val=${'$as_ac_Header'}
11958 $as_echo "$as_val"'`
11959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11960$as_echo "$ac_res" >&6; }
11961
11962fi
11963as_val=`eval 'as_val=${'$as_ac_Header'}
11964 $as_echo "$as_val"'`
11965 if test "x$as_val" = x""yes; then
11966 cat >>confdefs.h <<_ACEOF
11967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11968_ACEOF
11969
11970else
11971 $bailout
11972fi
11973
11974done
11975
11976 check_lib_no_libs ccs ccs_connect
11977 if test $NOTFOUND = 0; then
11978 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11979$as_echo "no pkg for libccs, using -lccs" >&6; }
11980 CCS_LIBS="-lccs"
11981 HAVE_CCS=yes
11982 fi
11983elif test $pkg_failed = untried; then
11984 NOTFOUND=0
11985
11986for ac_header in ccs.h
11987do
11988as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11991$as_echo_n "checking for $ac_header... " >&6; }
11992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11993 $as_echo_n "(cached) " >&6
11994fi
11995ac_res=`eval 'as_val=${'$as_ac_Header'}
11996 $as_echo "$as_val"'`
11997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11998$as_echo "$ac_res" >&6; }
11999else
12000 # Is the header compilable?
12001{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12002$as_echo_n "checking $ac_header usability... " >&6; }
12003cat >conftest.$ac_ext <<_ACEOF
12004/* confdefs.h. */
12005_ACEOF
12006cat confdefs.h >>conftest.$ac_ext
12007cat >>conftest.$ac_ext <<_ACEOF
12008/* end confdefs.h. */
12009$ac_includes_default
12010#include <$ac_header>
12011_ACEOF
12012rm -f conftest.$ac_objext
12013if { (ac_try="$ac_compile"
12014case "(($ac_try" in
12015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12016 *) ac_try_echo=$ac_try;;
12017esac
12018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12019$as_echo "$ac_try_echo") >&5
12020 (eval "$ac_compile") 2>conftest.er1
12021 ac_status=$?
12022 grep -v '^ *+' conftest.er1 >conftest.err
12023 rm -f conftest.er1
12024 cat conftest.err >&5
12025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } && {
12027 test -z "$ac_c_werror_flag" ||
12028 test ! -s conftest.err
12029 } && test -s conftest.$ac_objext; then
12030 ac_header_compiler=yes
12031else
12032 $as_echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035 ac_header_compiler=no
12036fi
12037
12038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12039{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12040$as_echo "$ac_header_compiler" >&6; }
12041
12042# Is the header present?
12043{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12044$as_echo_n "checking $ac_header presence... " >&6; }
12045cat >conftest.$ac_ext <<_ACEOF
12046/* confdefs.h. */
12047_ACEOF
12048cat confdefs.h >>conftest.$ac_ext
12049cat >>conftest.$ac_ext <<_ACEOF
12050/* end confdefs.h. */
12051#include <$ac_header>
12052_ACEOF
12053if { (ac_try="$ac_cpp conftest.$ac_ext"
12054case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057esac
12058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12059$as_echo "$ac_try_echo") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12061 ac_status=$?
12062 grep -v '^ *+' conftest.er1 >conftest.err
12063 rm -f conftest.er1
12064 cat conftest.err >&5
12065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null && {
12067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 }; then
12070 ac_header_preproc=yes
12071else
12072 $as_echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 ac_header_preproc=no
12076fi
12077
12078rm -f conftest.err conftest.$ac_ext
12079{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12080$as_echo "$ac_header_preproc" >&6; }
12081
12082# So? What about this header?
12083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12084 yes:no: )
12085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12086$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12088$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12089 ac_header_preproc=yes
12090 ;;
12091 no:yes:* )
12092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12093$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12095$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12097$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12099$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12101$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12103$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12104
12105 ;;
12106esac
12107{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12108$as_echo_n "checking for $ac_header... " >&6; }
12109if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111else
12112 eval "$as_ac_Header=\$ac_header_preproc"
12113fi
12114ac_res=`eval 'as_val=${'$as_ac_Header'}
12115 $as_echo "$as_val"'`
12116 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12117$as_echo "$ac_res" >&6; }
12118
12119fi
12120as_val=`eval 'as_val=${'$as_ac_Header'}
12121 $as_echo "$as_val"'`
12122 if test "x$as_val" = x""yes; then
12123 cat >>confdefs.h <<_ACEOF
12124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125_ACEOF
12126
12127else
12128 $bailout
12129fi
12130
12131done
12132
12133 check_lib_no_libs ccs ccs_connect
12134 if test $NOTFOUND = 0; then
12135 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12136$as_echo "no pkg for libccs, using -lccs" >&6; }
12137 CCS_LIBS="-lccs"
12138 HAVE_CCS=yes
12139 fi
12140else
12141 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12142 CCS_LIBS=$pkg_cv_CCS_LIBS
12143 { $as_echo "$as_me:$LINENO: result: yes" >&5
12144$as_echo "yes" >&6; }
12145 HAVE_CCS=yes
12146fi
12147
12148pkg_failed=no
12149{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12150$as_echo_n "checking for GULM... " >&6; }
12151
12152if test -n "$GULM_CFLAGS"; then
12153 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12154 elif test -n "$PKG_CONFIG"; then
12155 if test -n "$PKG_CONFIG" && \
12156 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12157 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12158 ac_status=$?
12159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); }; then
12161 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12162else
12163 pkg_failed=yes
12164fi
12165 else
12166 pkg_failed=untried
12167fi
12168if test -n "$GULM_LIBS"; then
12169 pkg_cv_GULM_LIBS="$GULM_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12178else
12179 pkg_failed=yes
12180fi
12181 else
12182 pkg_failed=untried
12183fi
12184
12185
12186
12187if test $pkg_failed = yes; then
12188
12189if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12190 _pkg_short_errors_supported=yes
12191else
12192 _pkg_short_errors_supported=no
12193fi
12194 if test $_pkg_short_errors_supported = yes; then
12195 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12196 else
12197 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12198 fi
12199 # Put the nasty error message in config.log where it belongs
12200 echo "$GULM_PKG_ERRORS" >&5
12201
8c4e8a18
FDN
12202 { $as_echo "$as_me:$LINENO: result: no" >&5
12203$as_echo "no" >&6; }
12204 NOTFOUND=0
a946372e
AK
12205
12206for ac_header in libgulm.h
12207do
12208as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12211$as_echo_n "checking for $ac_header... " >&6; }
12212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213 $as_echo_n "(cached) " >&6
12214fi
12215ac_res=`eval 'as_val=${'$as_ac_Header'}
12216 $as_echo "$as_val"'`
12217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12218$as_echo "$ac_res" >&6; }
12219else
12220 # Is the header compilable?
12221{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12222$as_echo_n "checking $ac_header usability... " >&6; }
12223cat >conftest.$ac_ext <<_ACEOF
12224/* confdefs.h. */
12225_ACEOF
12226cat confdefs.h >>conftest.$ac_ext
12227cat >>conftest.$ac_ext <<_ACEOF
12228/* end confdefs.h. */
12229$ac_includes_default
12230#include <$ac_header>
12231_ACEOF
12232rm -f conftest.$ac_objext
12233if { (ac_try="$ac_compile"
12234case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12237esac
12238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239$as_echo "$ac_try_echo") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 ac_header_compiler=yes
12251else
12252 $as_echo "$as_me: failed program was:" >&5
12253sed 's/^/| /' conftest.$ac_ext >&5
12254
12255 ac_header_compiler=no
12256fi
12257
12258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12259{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12260$as_echo "$ac_header_compiler" >&6; }
12261
12262# Is the header present?
12263{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12264$as_echo_n "checking $ac_header presence... " >&6; }
12265cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
12270/* end confdefs.h. */
12271#include <$ac_header>
12272_ACEOF
12273if { (ac_try="$ac_cpp conftest.$ac_ext"
12274case "(($ac_try" in
12275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276 *) ac_try_echo=$ac_try;;
12277esac
12278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12279$as_echo "$ac_try_echo") >&5
12280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12281 ac_status=$?
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
12285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } >/dev/null && {
12287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 }; then
12290 ac_header_preproc=yes
12291else
12292 $as_echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
12295 ac_header_preproc=no
12296fi
12297
12298rm -f conftest.err conftest.$ac_ext
12299{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12300$as_echo "$ac_header_preproc" >&6; }
12301
12302# So? What about this header?
12303case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12304 yes:no: )
12305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12306$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12308$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12309 ac_header_preproc=yes
12310 ;;
12311 no:yes:* )
12312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12313$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12315$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12317$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12319$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12321$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12323$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12324
12325 ;;
12326esac
12327{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12328$as_echo_n "checking for $ac_header... " >&6; }
12329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12330 $as_echo_n "(cached) " >&6
12331else
12332 eval "$as_ac_Header=\$ac_header_preproc"
12333fi
12334ac_res=`eval 'as_val=${'$as_ac_Header'}
12335 $as_echo "$as_val"'`
12336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12337$as_echo "$ac_res" >&6; }
12338
12339fi
12340as_val=`eval 'as_val=${'$as_ac_Header'}
12341 $as_echo "$as_val"'`
12342 if test "x$as_val" = x""yes; then
12343 cat >>confdefs.h <<_ACEOF
12344#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12345_ACEOF
12346
12347else
12348 $bailout
12349fi
12350
12351done
12352
12353 check_lib_no_libs gulm lg_core_login
12354 if test $NOTFOUND = 0; then
12355 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12356$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12357 GULM_LIBS="-lgulm"
12358 HAVE_GULM=yes
12359 fi
12360elif test $pkg_failed = untried; then
12361 NOTFOUND=0
12362
12363for ac_header in libgulm.h
12364do
12365as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12368$as_echo_n "checking for $ac_header... " >&6; }
12369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12370 $as_echo_n "(cached) " >&6
12371fi
12372ac_res=`eval 'as_val=${'$as_ac_Header'}
12373 $as_echo "$as_val"'`
12374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12375$as_echo "$ac_res" >&6; }
12376else
12377 # Is the header compilable?
12378{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12379$as_echo_n "checking $ac_header usability... " >&6; }
12380cat >conftest.$ac_ext <<_ACEOF
12381/* confdefs.h. */
12382_ACEOF
12383cat confdefs.h >>conftest.$ac_ext
12384cat >>conftest.$ac_ext <<_ACEOF
12385/* end confdefs.h. */
12386$ac_includes_default
12387#include <$ac_header>
12388_ACEOF
12389rm -f conftest.$ac_objext
12390if { (ac_try="$ac_compile"
12391case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394esac
12395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12396$as_echo "$ac_try_echo") >&5
12397 (eval "$ac_compile") 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest.$ac_objext; then
12407 ac_header_compiler=yes
12408else
12409 $as_echo "$as_me: failed program was:" >&5
12410sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 ac_header_compiler=no
12413fi
12414
12415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12417$as_echo "$ac_header_compiler" >&6; }
12418
12419# Is the header present?
12420{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12421$as_echo_n "checking $ac_header presence... " >&6; }
12422cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */
12428#include <$ac_header>
12429_ACEOF
12430if { (ac_try="$ac_cpp conftest.$ac_ext"
12431case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12436$as_echo "$ac_try_echo") >&5
12437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12438 ac_status=$?
12439 grep -v '^ *+' conftest.er1 >conftest.err
12440 rm -f conftest.er1
12441 cat conftest.err >&5
12442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } >/dev/null && {
12444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12445 test ! -s conftest.err
12446 }; then
12447 ac_header_preproc=yes
12448else
12449 $as_echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 ac_header_preproc=no
12453fi
12454
12455rm -f conftest.err conftest.$ac_ext
12456{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12457$as_echo "$ac_header_preproc" >&6; }
12458
12459# So? What about this header?
12460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12461 yes:no: )
12462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12463$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12465$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12466 ac_header_preproc=yes
12467 ;;
12468 no:yes:* )
12469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12470$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12472$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12474$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12476$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12478$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12480$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12481
12482 ;;
12483esac
12484{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12485$as_echo_n "checking for $ac_header... " >&6; }
12486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 $as_echo_n "(cached) " >&6
12488else
12489 eval "$as_ac_Header=\$ac_header_preproc"
12490fi
12491ac_res=`eval 'as_val=${'$as_ac_Header'}
12492 $as_echo "$as_val"'`
12493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12494$as_echo "$ac_res" >&6; }
12495
12496fi
12497as_val=`eval 'as_val=${'$as_ac_Header'}
12498 $as_echo "$as_val"'`
12499 if test "x$as_val" = x""yes; then
12500 cat >>confdefs.h <<_ACEOF
12501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12502_ACEOF
12503
12504else
12505 $bailout
12506fi
12507
12508done
12509
12510 check_lib_no_libs gulm lg_core_login
12511 if test $NOTFOUND = 0; then
12512 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12513$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12514 GULM_LIBS="-lgulm"
12515 HAVE_GULM=yes
12516 fi
12517else
12518 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12519 GULM_LIBS=$pkg_cv_GULM_LIBS
12520 { $as_echo "$as_me:$LINENO: result: yes" >&5
12521$as_echo "yes" >&6; }
12522 HAVE_GULM=yes
12523fi
12524fi
12525
12526if test x$BUILDCMAN = xyes; then
12527
12528pkg_failed=no
12529{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12530$as_echo_n "checking for CMAN... " >&6; }
12531
12532if test -n "$CMAN_CFLAGS"; then
12533 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12534 elif test -n "$PKG_CONFIG"; then
12535 if test -n "$PKG_CONFIG" && \
12536 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12537 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12538 ac_status=$?
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; then
12541 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12542else
12543 pkg_failed=yes
12544fi
12545 else
12546 pkg_failed=untried
12547fi
12548if test -n "$CMAN_LIBS"; then
12549 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12558else
12559 pkg_failed=yes
12560fi
12561 else
12562 pkg_failed=untried
12563fi
12564
12565
12566
12567if test $pkg_failed = yes; then
12568
12569if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12570 _pkg_short_errors_supported=yes
12571else
12572 _pkg_short_errors_supported=no
12573fi
12574 if test $_pkg_short_errors_supported = yes; then
12575 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12576 else
12577 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12578 fi
12579 # Put the nasty error message in config.log where it belongs
12580 echo "$CMAN_PKG_ERRORS" >&5
12581
8c4e8a18
FDN
12582 { $as_echo "$as_me:$LINENO: result: no" >&5
12583$as_echo "no" >&6; }
12584 NOTFOUND=0
a946372e
AK
12585
12586for ac_header in libcman.h
12587do
12588as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12591$as_echo_n "checking for $ac_header... " >&6; }
12592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12593 $as_echo_n "(cached) " >&6
12594fi
12595ac_res=`eval 'as_val=${'$as_ac_Header'}
12596 $as_echo "$as_val"'`
12597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12598$as_echo "$ac_res" >&6; }
12599else
12600 # Is the header compilable?
12601{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12602$as_echo_n "checking $ac_header usability... " >&6; }
12603cat >conftest.$ac_ext <<_ACEOF
12604/* confdefs.h. */
12605_ACEOF
12606cat confdefs.h >>conftest.$ac_ext
12607cat >>conftest.$ac_ext <<_ACEOF
12608/* end confdefs.h. */
12609$ac_includes_default
12610#include <$ac_header>
12611_ACEOF
12612rm -f conftest.$ac_objext
12613if { (ac_try="$ac_compile"
12614case "(($ac_try" in
12615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616 *) ac_try_echo=$ac_try;;
12617esac
12618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12619$as_echo "$ac_try_echo") >&5
12620 (eval "$ac_compile") 2>conftest.er1
12621 ac_status=$?
12622 grep -v '^ *+' conftest.er1 >conftest.err
12623 rm -f conftest.er1
12624 cat conftest.err >&5
12625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest.$ac_objext; then
12630 ac_header_compiler=yes
12631else
12632 $as_echo "$as_me: failed program was:" >&5
12633sed 's/^/| /' conftest.$ac_ext >&5
12634
12635 ac_header_compiler=no
12636fi
12637
12638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12639{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12640$as_echo "$ac_header_compiler" >&6; }
12641
12642# Is the header present?
12643{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12644$as_echo_n "checking $ac_header presence... " >&6; }
12645cat >conftest.$ac_ext <<_ACEOF
12646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
12651#include <$ac_header>
12652_ACEOF
12653if { (ac_try="$ac_cpp conftest.$ac_ext"
12654case "(($ac_try" in
12655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656 *) ac_try_echo=$ac_try;;
12657esac
12658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12659$as_echo "$ac_try_echo") >&5
12660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } >/dev/null && {
12667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12668 test ! -s conftest.err
12669 }; then
12670 ac_header_preproc=yes
12671else
12672 $as_echo "$as_me: failed program was:" >&5
12673sed 's/^/| /' conftest.$ac_ext >&5
12674
12675 ac_header_preproc=no
12676fi
12677
12678rm -f conftest.err conftest.$ac_ext
12679{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12680$as_echo "$ac_header_preproc" >&6; }
12681
12682# So? What about this header?
12683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12684 yes:no: )
12685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12686$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12688$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12689 ac_header_preproc=yes
12690 ;;
12691 no:yes:* )
12692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12693$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12695$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12697$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12699$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12701$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12703$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12704
12705 ;;
12706esac
12707{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12708$as_echo_n "checking for $ac_header... " >&6; }
12709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12710 $as_echo_n "(cached) " >&6
12711else
12712 eval "$as_ac_Header=\$ac_header_preproc"
12713fi
12714ac_res=`eval 'as_val=${'$as_ac_Header'}
12715 $as_echo "$as_val"'`
12716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12717$as_echo "$ac_res" >&6; }
12718
12719fi
12720as_val=`eval 'as_val=${'$as_ac_Header'}
12721 $as_echo "$as_val"'`
12722 if test "x$as_val" = x""yes; then
12723 cat >>confdefs.h <<_ACEOF
12724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12725_ACEOF
12726
12727else
12728 $bailout
12729fi
12730
12731done
12732
12733 check_lib_no_libs cman cman_init
12734 if test $NOTFOUND = 0; then
12735 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12736$as_echo "no pkg for libcman, using -lcman" >&6; }
12737 CMAN_LIBS="-lcman"
12738 HAVE_CMAN=yes
12739 fi
12740elif test $pkg_failed = untried; then
12741 NOTFOUND=0
12742
12743for ac_header in libcman.h
12744do
12745as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12748$as_echo_n "checking for $ac_header... " >&6; }
12749if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12750 $as_echo_n "(cached) " >&6
12751fi
12752ac_res=`eval 'as_val=${'$as_ac_Header'}
12753 $as_echo "$as_val"'`
12754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12755$as_echo "$ac_res" >&6; }
12756else
12757 # Is the header compilable?
12758{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12759$as_echo_n "checking $ac_header usability... " >&6; }
12760cat >conftest.$ac_ext <<_ACEOF
12761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h. */
12766$ac_includes_default
12767#include <$ac_header>
12768_ACEOF
12769rm -f conftest.$ac_objext
12770if { (ac_try="$ac_compile"
12771case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12776$as_echo "$ac_try_echo") >&5
12777 (eval "$ac_compile") 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } && {
12784 test -z "$ac_c_werror_flag" ||
12785 test ! -s conftest.err
12786 } && test -s conftest.$ac_objext; then
12787 ac_header_compiler=yes
12788else
12789 $as_echo "$as_me: failed program was:" >&5
12790sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_header_compiler=no
12793fi
12794
12795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12797$as_echo "$ac_header_compiler" >&6; }
12798
12799# Is the header present?
12800{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12801$as_echo_n "checking $ac_header presence... " >&6; }
12802cat >conftest.$ac_ext <<_ACEOF
12803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
12808#include <$ac_header>
12809_ACEOF
12810if { (ac_try="$ac_cpp conftest.$ac_ext"
12811case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12814esac
12815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12816$as_echo "$ac_try_echo") >&5
12817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12818 ac_status=$?
12819 grep -v '^ *+' conftest.er1 >conftest.err
12820 rm -f conftest.er1
12821 cat conftest.err >&5
12822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); } >/dev/null && {
12824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12825 test ! -s conftest.err
12826 }; then
12827 ac_header_preproc=yes
12828else
12829 $as_echo "$as_me: failed program was:" >&5
12830sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 ac_header_preproc=no
12833fi
12834
12835rm -f conftest.err conftest.$ac_ext
12836{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12837$as_echo "$ac_header_preproc" >&6; }
12838
12839# So? What about this header?
12840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12841 yes:no: )
12842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12843$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12845$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12846 ac_header_preproc=yes
12847 ;;
12848 no:yes:* )
12849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12850$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12852$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12854$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12856$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12858$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12860$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12861
12862 ;;
12863esac
12864{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12865$as_echo_n "checking for $ac_header... " >&6; }
12866if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12867 $as_echo_n "(cached) " >&6
12868else
12869 eval "$as_ac_Header=\$ac_header_preproc"
12870fi
12871ac_res=`eval 'as_val=${'$as_ac_Header'}
12872 $as_echo "$as_val"'`
12873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12874$as_echo "$ac_res" >&6; }
12875
12876fi
12877as_val=`eval 'as_val=${'$as_ac_Header'}
12878 $as_echo "$as_val"'`
12879 if test "x$as_val" = x""yes; then
12880 cat >>confdefs.h <<_ACEOF
12881#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12882_ACEOF
12883
12884else
12885 $bailout
12886fi
12887
12888done
12889
12890 check_lib_no_libs cman cman_init
12891 if test $NOTFOUND = 0; then
12892 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12893$as_echo "no pkg for libcman, using -lcman" >&6; }
12894 CMAN_LIBS="-lcman"
12895 HAVE_CMAN=yes
12896 fi
12897else
12898 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12899 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12900 { $as_echo "$as_me:$LINENO: result: yes" >&5
12901$as_echo "yes" >&6; }
12902 HAVE_CMAN=yes
12903fi
12904 CHECKCONFDB=yes
12905 CHECKDLM=yes
12906fi
12907
12908if test x$BUILDCOROSYNC = xyes || \
12909 test x$BUILDOPENAIS = xyes; then
12910
12911pkg_failed=no
12912{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12913$as_echo_n "checking for COROSYNC... " >&6; }
12914
12915if test -n "$COROSYNC_CFLAGS"; then
12916 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12917 elif test -n "$PKG_CONFIG"; then
12918 if test -n "$PKG_CONFIG" && \
12919 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12920 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12921 ac_status=$?
12922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; then
12924 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12925else
12926 pkg_failed=yes
12927fi
12928 else
12929 pkg_failed=untried
12930fi
12931if test -n "$COROSYNC_LIBS"; then
12932 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
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_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12941else
12942 pkg_failed=yes
12943fi
12944 else
12945 pkg_failed=untried
12946fi
12947
12948
12949
12950if test $pkg_failed = yes; then
12951
12952if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12953 _pkg_short_errors_supported=yes
12954else
12955 _pkg_short_errors_supported=no
12956fi
12957 if test $_pkg_short_errors_supported = yes; then
12958 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12959 else
12960 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12961 fi
12962 # Put the nasty error message in config.log where it belongs
12963 echo "$COROSYNC_PKG_ERRORS" >&5
12964
8c4e8a18 12965 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12966$as_echo "no" >&6; }
8c4e8a18
FDN
12967 $bailout
12968elif test $pkg_failed = untried; then
a946372e
AK
12969 $bailout
12970else
12971 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12972 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12973 { $as_echo "$as_me:$LINENO: result: yes" >&5
12974$as_echo "yes" >&6; }
12975 HAVE_COROSYNC=yes
12976fi
12977 CHECKCONFDB=yes
12978fi
12979
12980if test x$BUILDCOROSYNC = xyes; then
12981
12982pkg_failed=no
12983{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12984$as_echo_n "checking for QUORUM... " >&6; }
12985
12986if test -n "$QUORUM_CFLAGS"; then
12987 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12988 elif test -n "$PKG_CONFIG"; then
12989 if test -n "$PKG_CONFIG" && \
12990 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12991 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12992 ac_status=$?
12993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; then
12995 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12996else
12997 pkg_failed=yes
12998fi
12999 else
13000 pkg_failed=untried
13001fi
13002if test -n "$QUORUM_LIBS"; then
13003 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13012else
13013 pkg_failed=yes
13014fi
13015 else
13016 pkg_failed=untried
13017fi
13018
13019
13020
13021if test $pkg_failed = yes; then
13022
13023if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13024 _pkg_short_errors_supported=yes
13025else
13026 _pkg_short_errors_supported=no
13027fi
13028 if test $_pkg_short_errors_supported = yes; then
13029 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13030 else
13031 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13032 fi
13033 # Put the nasty error message in config.log where it belongs
13034 echo "$QUORUM_PKG_ERRORS" >&5
13035
8c4e8a18 13036 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13037$as_echo "no" >&6; }
8c4e8a18
FDN
13038 $bailout
13039elif test $pkg_failed = untried; then
a946372e
AK
13040 $bailout
13041else
13042 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13043 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13044 { $as_echo "$as_me:$LINENO: result: yes" >&5
13045$as_echo "yes" >&6; }
13046 HAVE_QUORUM=yes
13047fi
13048 CHECKCPG=yes
13049 CHECKDLM=yes
13050fi
13051
13052if test x$BUILDOPENAIS = xyes; then
13053
13054pkg_failed=no
13055{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13056$as_echo_n "checking for SALCK... " >&6; }
13057
13058if test -n "$SALCK_CFLAGS"; then
13059 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13060 elif test -n "$PKG_CONFIG"; then
13061 if test -n "$PKG_CONFIG" && \
13062 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13063 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13064 ac_status=$?
13065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; then
13067 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13068else
13069 pkg_failed=yes
13070fi
13071 else
13072 pkg_failed=untried
13073fi
13074if test -n "$SALCK_LIBS"; then
13075 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13084else
13085 pkg_failed=yes
13086fi
13087 else
13088 pkg_failed=untried
13089fi
13090
13091
13092
13093if test $pkg_failed = yes; then
13094
13095if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13096 _pkg_short_errors_supported=yes
13097else
13098 _pkg_short_errors_supported=no
13099fi
13100 if test $_pkg_short_errors_supported = yes; then
13101 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13102 else
13103 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13104 fi
13105 # Put the nasty error message in config.log where it belongs
13106 echo "$SALCK_PKG_ERRORS" >&5
13107
8c4e8a18 13108 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13109$as_echo "no" >&6; }
8c4e8a18
FDN
13110 $bailout
13111elif test $pkg_failed = untried; then
a946372e
AK
13112 $bailout
13113else
13114 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13115 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13116 { $as_echo "$as_me:$LINENO: result: yes" >&5
13117$as_echo "yes" >&6; }
13118 HAVE_SALCK=yes
13119fi
13120 CHECKCPG=yes
13121fi
13122
13123
13124
13125if test x$CHECKCONFDB = xyes; then
13126
13127pkg_failed=no
13128{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13129$as_echo_n "checking for CONFDB... " >&6; }
13130
13131if test -n "$CONFDB_CFLAGS"; then
13132 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13133 elif test -n "$PKG_CONFIG"; then
13134 if test -n "$PKG_CONFIG" && \
13135 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13136 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13137 ac_status=$?
13138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }; then
13140 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13141else
13142 pkg_failed=yes
13143fi
13144 else
13145 pkg_failed=untried
13146fi
13147if test -n "$CONFDB_LIBS"; then
13148 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13157else
13158 pkg_failed=yes
13159fi
13160 else
13161 pkg_failed=untried
13162fi
13163
13164
13165
13166if test $pkg_failed = yes; then
13167
13168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13169 _pkg_short_errors_supported=yes
13170else
13171 _pkg_short_errors_supported=no
13172fi
13173 if test $_pkg_short_errors_supported = yes; then
13174 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13175 else
13176 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13177 fi
13178 # Put the nasty error message in config.log where it belongs
13179 echo "$CONFDB_PKG_ERRORS" >&5
13180
8c4e8a18 13181 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13182$as_echo "no" >&6; }
8c4e8a18
FDN
13183 HAVE_CONFDB=no
13184elif test $pkg_failed = untried; then
a946372e
AK
13185 HAVE_CONFDB=no
13186else
13187 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13188 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13189 { $as_echo "$as_me:$LINENO: result: yes" >&5
13190$as_echo "yes" >&6; }
13191 HAVE_CONFDB=yes
13192fi
13193
13194
13195for ac_header in corosync/confdb.h
13196do
13197as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13200$as_echo_n "checking for $ac_header... " >&6; }
13201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13202 $as_echo_n "(cached) " >&6
13203fi
13204ac_res=`eval 'as_val=${'$as_ac_Header'}
13205 $as_echo "$as_val"'`
13206 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13207$as_echo "$ac_res" >&6; }
13208else
13209 # Is the header compilable?
13210{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13211$as_echo_n "checking $ac_header usability... " >&6; }
13212cat >conftest.$ac_ext <<_ACEOF
13213/* confdefs.h. */
13214_ACEOF
13215cat confdefs.h >>conftest.$ac_ext
13216cat >>conftest.$ac_ext <<_ACEOF
13217/* end confdefs.h. */
13218$ac_includes_default
13219#include <$ac_header>
13220_ACEOF
13221rm -f conftest.$ac_objext
13222if { (ac_try="$ac_compile"
13223case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13226esac
13227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13228$as_echo "$ac_try_echo") >&5
13229 (eval "$ac_compile") 2>conftest.er1
13230 ac_status=$?
13231 grep -v '^ *+' conftest.er1 >conftest.err
13232 rm -f conftest.er1
13233 cat conftest.err >&5
13234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_c_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest.$ac_objext; then
13239 ac_header_compiler=yes
13240else
13241 $as_echo "$as_me: failed program was:" >&5
13242sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_header_compiler=no
13245fi
13246
13247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13249$as_echo "$ac_header_compiler" >&6; }
13250
13251# Is the header present?
13252{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13253$as_echo_n "checking $ac_header presence... " >&6; }
13254cat >conftest.$ac_ext <<_ACEOF
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260#include <$ac_header>
13261_ACEOF
13262if { (ac_try="$ac_cpp conftest.$ac_ext"
13263case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266esac
13267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13268$as_echo "$ac_try_echo") >&5
13269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } >/dev/null && {
13276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13278 }; then
13279 ac_header_preproc=yes
13280else
13281 $as_echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_header_preproc=no
13285fi
13286
13287rm -f conftest.err conftest.$ac_ext
13288{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13289$as_echo "$ac_header_preproc" >&6; }
13290
13291# So? What about this header?
13292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13293 yes:no: )
13294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13295$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13297$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13298 ac_header_preproc=yes
13299 ;;
13300 no:yes:* )
13301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13302$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13304$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13306$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13308$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13310$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13312$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13313
13314 ;;
13315esac
13316{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13317$as_echo_n "checking for $ac_header... " >&6; }
13318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13319 $as_echo_n "(cached) " >&6
13320else
13321 eval "$as_ac_Header=\$ac_header_preproc"
13322fi
13323ac_res=`eval 'as_val=${'$as_ac_Header'}
13324 $as_echo "$as_val"'`
13325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13326$as_echo "$ac_res" >&6; }
13327
13328fi
13329as_val=`eval 'as_val=${'$as_ac_Header'}
13330 $as_echo "$as_val"'`
13331 if test "x$as_val" = x""yes; then
13332 cat >>confdefs.h <<_ACEOF
13333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13334_ACEOF
13335 HAVE_CONFDB_H=yes
13336else
13337 HAVE_CONFDB_H=no
13338fi
13339
13340done
13341
13342
13343 if test x$HAVE_CONFDB != xyes && \
13344 test x$HAVE_CONFDB_H = xyes; then
13345 check_lib_no_libs confdb confdb_initialize
13346 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13347$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13348 CONFDB_LIBS="-lconfdb"
13349 HAVE_CONFDB=yes
13350 fi
13351
13352 if test x$BUILDCOROSYNC = xyes && \
13353 test x$HAVE_CONFDB != xyes &&
13354 test x$CLVMD != xall; then
13355 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13356$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13357 { (exit 1); exit 1; }; }
13358 fi
13359fi
13360
13361if test x$CHECKCPG = xyes; then
13362
13363pkg_failed=no
13364{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13365$as_echo_n "checking for CPG... " >&6; }
13366
13367if test -n "$CPG_CFLAGS"; then
13368 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13369 elif test -n "$PKG_CONFIG"; then
13370 if test -n "$PKG_CONFIG" && \
13371 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13372 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13373 ac_status=$?
13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; then
13376 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13377else
13378 pkg_failed=yes
13379fi
13380 else
13381 pkg_failed=untried
13382fi
13383if test -n "$CPG_LIBS"; then
13384 pkg_cv_CPG_LIBS="$CPG_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13393else
13394 pkg_failed=yes
13395fi
13396 else
13397 pkg_failed=untried
13398fi
13399
13400
13401
13402if test $pkg_failed = yes; then
13403
13404if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13405 _pkg_short_errors_supported=yes
13406else
13407 _pkg_short_errors_supported=no
13408fi
13409 if test $_pkg_short_errors_supported = yes; then
13410 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13411 else
13412 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13413 fi
13414 # Put the nasty error message in config.log where it belongs
13415 echo "$CPG_PKG_ERRORS" >&5
13416
8c4e8a18 13417 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13418$as_echo "no" >&6; }
8c4e8a18
FDN
13419 $bailout
13420elif test $pkg_failed = untried; then
a946372e
AK
13421 $bailout
13422else
13423 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13424 CPG_LIBS=$pkg_cv_CPG_LIBS
13425 { $as_echo "$as_me:$LINENO: result: yes" >&5
13426$as_echo "yes" >&6; }
13427 HAVE_CPG=yes
13428fi
13429fi
13430
13431if test x$CHECKDLM = xyes; then
13432
13433pkg_failed=no
13434{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13435$as_echo_n "checking for DLM... " >&6; }
13436
13437if test -n "$DLM_CFLAGS"; then
13438 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13439 elif test -n "$PKG_CONFIG"; then
13440 if test -n "$PKG_CONFIG" && \
13441 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13442 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13443 ac_status=$?
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; then
13446 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13447else
13448 pkg_failed=yes
13449fi
13450 else
13451 pkg_failed=untried
13452fi
13453if test -n "$DLM_LIBS"; then
13454 pkg_cv_DLM_LIBS="$DLM_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13463else
13464 pkg_failed=yes
13465fi
13466 else
13467 pkg_failed=untried
13468fi
13469
13470
13471
13472if test $pkg_failed = yes; then
13473
13474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13475 _pkg_short_errors_supported=yes
13476else
13477 _pkg_short_errors_supported=no
13478fi
13479 if test $_pkg_short_errors_supported = yes; then
13480 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13481 else
13482 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13483 fi
13484 # Put the nasty error message in config.log where it belongs
13485 echo "$DLM_PKG_ERRORS" >&5
13486
8c4e8a18
FDN
13487 { $as_echo "$as_me:$LINENO: result: no" >&5
13488$as_echo "no" >&6; }
13489 NOTFOUND=0
a946372e
AK
13490
13491for ac_header in libdlm.h
13492do
13493as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13496$as_echo_n "checking for $ac_header... " >&6; }
13497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13498 $as_echo_n "(cached) " >&6
13499fi
13500ac_res=`eval 'as_val=${'$as_ac_Header'}
13501 $as_echo "$as_val"'`
13502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13503$as_echo "$ac_res" >&6; }
13504else
13505 # Is the header compilable?
13506{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13507$as_echo_n "checking $ac_header usability... " >&6; }
13508cat >conftest.$ac_ext <<_ACEOF
13509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
13513/* end confdefs.h. */
13514$ac_includes_default
13515#include <$ac_header>
13516_ACEOF
13517rm -f conftest.$ac_objext
13518if { (ac_try="$ac_compile"
13519case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13522esac
13523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13524$as_echo "$ac_try_echo") >&5
13525 (eval "$ac_compile") 2>conftest.er1
13526 ac_status=$?
13527 grep -v '^ *+' conftest.er1 >conftest.err
13528 rm -f conftest.er1
13529 cat conftest.err >&5
13530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } && {
13532 test -z "$ac_c_werror_flag" ||
13533 test ! -s conftest.err
13534 } && test -s conftest.$ac_objext; then
13535 ac_header_compiler=yes
13536else
13537 $as_echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 ac_header_compiler=no
13541fi
13542
13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13545$as_echo "$ac_header_compiler" >&6; }
13546
13547# Is the header present?
13548{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13549$as_echo_n "checking $ac_header presence... " >&6; }
13550cat >conftest.$ac_ext <<_ACEOF
13551/* confdefs.h. */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
13555/* end confdefs.h. */
13556#include <$ac_header>
13557_ACEOF
13558if { (ac_try="$ac_cpp conftest.$ac_ext"
13559case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562esac
13563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13564$as_echo "$ac_try_echo") >&5
13565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13566 ac_status=$?
13567 grep -v '^ *+' conftest.er1 >conftest.err
13568 rm -f conftest.er1
13569 cat conftest.err >&5
13570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); } >/dev/null && {
13572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13573 test ! -s conftest.err
13574 }; then
13575 ac_header_preproc=yes
13576else
13577 $as_echo "$as_me: failed program was:" >&5
13578sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 ac_header_preproc=no
13581fi
13582
13583rm -f conftest.err conftest.$ac_ext
13584{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13585$as_echo "$ac_header_preproc" >&6; }
13586
13587# So? What about this header?
13588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13589 yes:no: )
13590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13591$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13593$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13594 ac_header_preproc=yes
13595 ;;
13596 no:yes:* )
13597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13598$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13600$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13602$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13604$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13606$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13608$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13609
13610 ;;
13611esac
13612{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13613$as_echo_n "checking for $ac_header... " >&6; }
13614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13615 $as_echo_n "(cached) " >&6
13616else
13617 eval "$as_ac_Header=\$ac_header_preproc"
13618fi
13619ac_res=`eval 'as_val=${'$as_ac_Header'}
13620 $as_echo "$as_val"'`
13621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13622$as_echo "$ac_res" >&6; }
13623
13624fi
13625as_val=`eval 'as_val=${'$as_ac_Header'}
13626 $as_echo "$as_val"'`
13627 if test "x$as_val" = x""yes; then
13628 cat >>confdefs.h <<_ACEOF
13629#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13630_ACEOF
13631
13632else
13633 $bailout
13634fi
13635
13636done
13637
13638 check_lib_no_libs dlm dlm_lock -lpthread
13639 if test $NOTFOUND = 0; then
13640 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13641$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13642 DLM_LIBS="-ldlm -lpthread"
13643 HAVE_DLM=yes
13644 fi
13645elif test $pkg_failed = untried; then
13646 NOTFOUND=0
13647
13648for ac_header in libdlm.h
13649do
13650as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13653$as_echo_n "checking for $ac_header... " >&6; }
13654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13655 $as_echo_n "(cached) " >&6
13656fi
13657ac_res=`eval 'as_val=${'$as_ac_Header'}
13658 $as_echo "$as_val"'`
13659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13660$as_echo "$ac_res" >&6; }
13661else
13662 # Is the header compilable?
13663{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13664$as_echo_n "checking $ac_header usability... " >&6; }
13665cat >conftest.$ac_ext <<_ACEOF
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671$ac_includes_default
13672#include <$ac_header>
13673_ACEOF
13674rm -f conftest.$ac_objext
13675if { (ac_try="$ac_compile"
13676case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679esac
13680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13681$as_echo "$ac_try_echo") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13683 ac_status=$?
13684 grep -v '^ *+' conftest.er1 >conftest.err
13685 rm -f conftest.er1
13686 cat conftest.err >&5
13687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13692 ac_header_compiler=yes
13693else
13694 $as_echo "$as_me: failed program was:" >&5
13695sed 's/^/| /' conftest.$ac_ext >&5
13696
13697 ac_header_compiler=no
13698fi
13699
13700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13701{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702$as_echo "$ac_header_compiler" >&6; }
13703
13704# Is the header present?
13705{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706$as_echo_n "checking $ac_header presence... " >&6; }
13707cat >conftest.$ac_ext <<_ACEOF
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713#include <$ac_header>
13714_ACEOF
13715if { (ac_try="$ac_cpp conftest.$ac_ext"
13716case "(($ac_try" in
13717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13718 *) ac_try_echo=$ac_try;;
13719esac
13720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13721$as_echo "$ac_try_echo") >&5
13722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev/null && {
13729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 }; then
13732 ac_header_preproc=yes
13733else
13734 $as_echo "$as_me: failed program was:" >&5
13735sed 's/^/| /' conftest.$ac_ext >&5
13736
13737 ac_header_preproc=no
13738fi
13739
13740rm -f conftest.err conftest.$ac_ext
13741{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13742$as_echo "$ac_header_preproc" >&6; }
13743
13744# So? What about this header?
13745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 yes:no: )
13747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13748$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13750$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13751 ac_header_preproc=yes
13752 ;;
13753 no:yes:* )
13754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13755$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13757$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13759$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13761$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13765$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13766
13767 ;;
13768esac
13769{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13770$as_echo_n "checking for $ac_header... " >&6; }
13771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13772 $as_echo_n "(cached) " >&6
13773else
13774 eval "$as_ac_Header=\$ac_header_preproc"
13775fi
13776ac_res=`eval 'as_val=${'$as_ac_Header'}
13777 $as_echo "$as_val"'`
13778 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13779$as_echo "$ac_res" >&6; }
13780
13781fi
13782as_val=`eval 'as_val=${'$as_ac_Header'}
13783 $as_echo "$as_val"'`
13784 if test "x$as_val" = x""yes; then
13785 cat >>confdefs.h <<_ACEOF
13786#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13787_ACEOF
13788
13789else
13790 $bailout
13791fi
13792
13793done
13794
13795 check_lib_no_libs dlm dlm_lock -lpthread
13796 if test $NOTFOUND = 0; then
13797 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13798$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13799 DLM_LIBS="-ldlm -lpthread"
13800 HAVE_DLM=yes
13801 fi
13802else
13803 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13804 DLM_LIBS=$pkg_cv_DLM_LIBS
13805 { $as_echo "$as_me:$LINENO: result: yes" >&5
13806$as_echo "yes" >&6; }
13807 HAVE_DLM=yes
13808fi
13809fi
13810
13811if test x$CLVMD = xall; then
8c222979 13812 CLVMD=none
a946372e
AK
13813 if test x$HAVE_CCS = xyes && \
13814 test x$HAVE_GULM = xyes; then
8c222979
FDN
13815 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13816$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13817 CLVMD="$CLVMD,gulm"
a946372e
AK
13818 fi
13819 if test x$HAVE_CMAN = xyes && \
13820 test x$HAVE_DLM = xyes; then
8c222979
FDN
13821 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13822$as_echo "Enabling clvmd cman cluster manager" >&6; }
13823 CLVMD="$CLVMD,cman"
a946372e
AK
13824 fi
13825 if test x$HAVE_COROSYNC = xyes && \
13826 test x$HAVE_QUORUM = xyes && \
13827 test x$HAVE_CPG = xyes && \
13828 test x$HAVE_DLM = xyes && \
13829 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13830 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13831$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13832 CLVMD="$CLVMD,corosync"
a946372e
AK
13833 fi
13834 if test x$HAVE_COROSYNC = xyes && \
13835 test x$HAVE_CPG = xyes && \
13836 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13837 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13838$as_echo "Enabling clvmd openais cluster manager" >&6; }
13839 CLVMD="$CLVMD,openais"
13840 fi
13841 if test x$CLVMD = xnone; then
13842 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13843$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13844 fi
a946372e
AK
13845fi
13846
8c4e8a18
FDN
13847################################################################################
13848if test "x$CLVMD" != xnone; then
13849
13850# Check whether --with-clvmd-pidfile was given.
13851if test "${with_clvmd_pidfile+set}" = set; then
13852 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13853else
13854 CLVMD_PIDFILE="/var/run/clvmd.pid"
13855fi
13856
13857
13858cat >>confdefs.h <<_ACEOF
13859#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13860_ACEOF
13861
13862fi
13863
a946372e 13864################################################################################
66fd4529
AK
13865{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13866$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13867# Check whether --enable-cmirrord was given.
13868if test "${enable_cmirrord+set}" = set; then
13869 enableval=$enable_cmirrord; CMIRRORD=$enableval
13870else
13871 CMIRRORD=no
13872fi
13873
13874{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13875$as_echo "$CMIRRORD" >&6; }
13876
13877BUILD_CMIRRORD=$CMIRRORD
13878
13879################################################################################
66fd4529
AK
13880if test "x$BUILD_CMIRRORD" = xyes; then
13881
13882# Check whether --with-cmirrord-pidfile was given.
13883if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13884 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13885else
71082be4 13886 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13887fi
13888
71082be4
ZK
13889
13890cat >>confdefs.h <<_ACEOF
13891#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13892_ACEOF
13893
66fd4529 13894fi
a946372e 13895
66fd4529
AK
13896################################################################################
13897if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13898 if test x$PKGCONFIG_INIT != x1; then
13899 pkg_config_init
13900 fi
13901
13902pkg_failed=no
13903{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13904$as_echo_n "checking for SACKPT... " >&6; }
13905
13906if test -n "$SACKPT_CFLAGS"; then
13907 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13908 elif test -n "$PKG_CONFIG"; then
13909 if test -n "$PKG_CONFIG" && \
13910 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13911 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; then
13915 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13916else
13917 pkg_failed=yes
13918fi
13919 else
13920 pkg_failed=untried
13921fi
13922if test -n "$SACKPT_LIBS"; then
13923 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13924 elif test -n "$PKG_CONFIG"; then
13925 if test -n "$PKG_CONFIG" && \
13926 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13927 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13928 ac_status=$?
13929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; then
13931 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13932else
13933 pkg_failed=yes
13934fi
13935 else
13936 pkg_failed=untried
13937fi
13938
13939
13940
13941if test $pkg_failed = yes; then
13942
13943if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13944 _pkg_short_errors_supported=yes
13945else
13946 _pkg_short_errors_supported=no
13947fi
13948 if test $_pkg_short_errors_supported = yes; then
13949 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13950 else
13951 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13952 fi
13953 # Put the nasty error message in config.log where it belongs
13954 echo "$SACKPT_PKG_ERRORS" >&5
13955
13956 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13957
13958$SACKPT_PKG_ERRORS
13959
13960Consider adjusting the PKG_CONFIG_PATH environment variable if you
13961installed software in a non-standard prefix.
13962
13963Alternatively, you may set the environment variables SACKPT_CFLAGS
13964and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13965See the pkg-config man page for more details.
13966" >&5
90c80887
AK
13967$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13968
13969$SACKPT_PKG_ERRORS
13970
13971Consider adjusting the PKG_CONFIG_PATH environment variable if you
13972installed software in a non-standard prefix.
13973
13974Alternatively, you may set the environment variables SACKPT_CFLAGS
13975and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13976See the pkg-config man page for more details.
13977" >&2;}
90c80887
AK
13978 { (exit 1); exit 1; }; }
13979elif test $pkg_failed = untried; then
13980 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13982{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13983is in your PATH or set the PKG_CONFIG environment variable to the full
13984path to pkg-config.
13985
13986Alternatively, you may set the environment variables SACKPT_CFLAGS
13987and SACKPT_LIBS to avoid the need to call pkg-config.
13988See the pkg-config man page for more details.
13989
13990To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13991See \`config.log' for more details." >&5
13992$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13993is in your PATH or set the PKG_CONFIG environment variable to the full
13994path to pkg-config.
13995
13996Alternatively, you may set the environment variables SACKPT_CFLAGS
13997and SACKPT_LIBS to avoid the need to call pkg-config.
13998See the pkg-config man page for more details.
13999
14000To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14001See \`config.log' for more details." >&2;}
14002 { (exit 1); exit 1; }; }; }
14003else
14004 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14005 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14006 { $as_echo "$as_me:$LINENO: result: yes" >&5
14007$as_echo "yes" >&6; }
8c4e8a18 14008 :
90c80887
AK
14009fi
14010 if test x$HAVE_CPG != xyes; then
a946372e
AK
14011
14012pkg_failed=no
14013{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
14014$as_echo_n "checking for CPG... " >&6; }
14015
14016if test -n "$CPG_CFLAGS"; then
14017 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14018 elif test -n "$PKG_CONFIG"; then
14019 if test -n "$PKG_CONFIG" && \
14020 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14021 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14022 ac_status=$?
14023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; then
14025 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14026else
14027 pkg_failed=yes
14028fi
14029 else
14030 pkg_failed=untried
14031fi
14032if test -n "$CPG_LIBS"; then
14033 pkg_cv_CPG_LIBS="$CPG_LIBS"
14034 elif test -n "$PKG_CONFIG"; then
14035 if test -n "$PKG_CONFIG" && \
14036 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14037 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14038 ac_status=$?
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; then
14041 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14042else
14043 pkg_failed=yes
14044fi
14045 else
14046 pkg_failed=untried
14047fi
14048
14049
14050
14051if test $pkg_failed = yes; then
14052
14053if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14054 _pkg_short_errors_supported=yes
14055else
14056 _pkg_short_errors_supported=no
14057fi
14058 if test $_pkg_short_errors_supported = yes; then
14059 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14060 else
14061 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14062 fi
14063 # Put the nasty error message in config.log where it belongs
14064 echo "$CPG_PKG_ERRORS" >&5
14065
90c80887
AK
14066 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14067
14068$CPG_PKG_ERRORS
14069
14070Consider adjusting the PKG_CONFIG_PATH environment variable if you
14071installed software in a non-standard prefix.
14072
14073Alternatively, you may set the environment variables CPG_CFLAGS
14074and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14075See the pkg-config man page for more details.
14076" >&5
90c80887
AK
14077$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14078
14079$CPG_PKG_ERRORS
14080
14081Consider adjusting the PKG_CONFIG_PATH environment variable if you
14082installed software in a non-standard prefix.
14083
14084Alternatively, you may set the environment variables CPG_CFLAGS
14085and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14086See the pkg-config man page for more details.
14087" >&2;}
90c80887 14088 { (exit 1); exit 1; }; }
a946372e 14089elif test $pkg_failed = untried; then
90c80887
AK
14090 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14092{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14093is in your PATH or set the PKG_CONFIG environment variable to the full
14094path to pkg-config.
14095
14096Alternatively, you may set the environment variables CPG_CFLAGS
14097and CPG_LIBS to avoid the need to call pkg-config.
14098See the pkg-config man page for more details.
14099
14100To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14101See \`config.log' for more details." >&5
14102$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14103is in your PATH or set the PKG_CONFIG environment variable to the full
14104path to pkg-config.
14105
14106Alternatively, you may set the environment variables CPG_CFLAGS
14107and CPG_LIBS to avoid the need to call pkg-config.
14108See the pkg-config man page for more details.
14109
14110To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14111See \`config.log' for more details." >&2;}
14112 { (exit 1); exit 1; }; }; }
a946372e
AK
14113else
14114 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14115 CPG_LIBS=$pkg_cv_CPG_LIBS
14116 { $as_echo "$as_me:$LINENO: result: yes" >&5
14117$as_echo "yes" >&6; }
8c4e8a18 14118 :
a946372e 14119fi
90c80887 14120 fi
a946372e
AK
14121fi
14122
14123################################################################################
14124{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14125$as_echo_n "checking whether to enable debugging... " >&6; }
14126# Check whether --enable-debug was given.
14127if test "${enable_debug+set}" = set; then
14128 enableval=$enable_debug; DEBUG=$enableval
14129else
14130 DEBUG=no
14131fi
14132
14133{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14134$as_echo "$DEBUG" >&6; }
14135
14136if test x$DEBUG = xyes; then
14137 COPTIMISE_FLAG=
14138else
14139 CSCOPE_CMD=
14140fi
14141
14142################################################################################
14143{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14144$as_echo_n "checking for C optimisation flag... " >&6; }
14145
14146# Check whether --with-optimisation was given.
14147if test "${with_optimisation+set}" = set; then
71082be4 14148 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14149fi
14150
14151{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14152$as_echo "$COPTIMISE_FLAG" >&6; }
14153
14154################################################################################
14155{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14156$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14157# Check whether --enable-profiling was given.
14158if test "${enable_profiling+set}" = set; then
5556819a 14159 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14160else
5556819a 14161 PROFILING=no
fddafd51
ZK
14162fi
14163
ec6a6fbe
AK
14164{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14165$as_echo "$PROFILING" >&6; }
5556819a
AK
14166
14167if test "x$PROFILING" = xyes; then
14168 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14169 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14170set dummy lcov; ac_word=$2
ec6a6fbe
AK
14171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14172$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14173if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14174 $as_echo_n "(cached) " >&6
fddafd51
ZK
14175else
14176 case $LCOV in
14177 [\\/]* | ?:[\\/]*)
14178 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14179 ;;
14180 *)
14181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14182for as_dir in $PATH
14183do
14184 IFS=$as_save_IFS
14185 test -z "$as_dir" && as_dir=.
14186 for ac_exec_ext in '' $ac_executable_extensions; do
14187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14188 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14190 break 2
14191 fi
14192done
14193done
14194IFS=$as_save_IFS
14195
14196 ;;
14197esac
14198fi
14199LCOV=$ac_cv_path_LCOV
14200if test -n "$LCOV"; then
ec6a6fbe
AK
14201 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14202$as_echo "$LCOV" >&6; }
fddafd51 14203else
ec6a6fbe
AK
14204 { $as_echo "$as_me:$LINENO: result: no" >&5
14205$as_echo "no" >&6; }
fddafd51
ZK
14206fi
14207
14208
5556819a 14209 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14210set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14211{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14212$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14213if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14214 $as_echo_n "(cached) " >&6
fddafd51
ZK
14215else
14216 case $GENHTML in
14217 [\\/]* | ?:[\\/]*)
14218 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14219 ;;
14220 *)
14221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14222for as_dir in $PATH
14223do
14224 IFS=$as_save_IFS
14225 test -z "$as_dir" && as_dir=.
14226 for ac_exec_ext in '' $ac_executable_extensions; do
14227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14228 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14229 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14230 break 2
14231 fi
14232done
14233done
14234IFS=$as_save_IFS
14235
14236 ;;
14237esac
14238fi
14239GENHTML=$ac_cv_path_GENHTML
14240if test -n "$GENHTML"; then
ec6a6fbe
AK
14241 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14242$as_echo "$GENHTML" >&6; }
fddafd51 14243else
ec6a6fbe
AK
14244 { $as_echo "$as_me:$LINENO: result: no" >&5
14245$as_echo "no" >&6; }
fddafd51
ZK
14246fi
14247
14248
fd4728e1 14249 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14250 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14251$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14252 { (exit 1); exit 1; }; }
14253 fi
fd4728e1
ZK
14254 # Extract the first word of "genpng", so it can be a program name with args.
14255set dummy genpng; ac_word=$2
14256{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14257$as_echo_n "checking for $ac_word... " >&6; }
14258if test "${ac_cv_path_GENPNG+set}" = set; then
14259 $as_echo_n "(cached) " >&6
14260else
14261 case $GENPNG in
14262 [\\/]* | ?:[\\/]*)
14263 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14264 ;;
14265 *)
14266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14267for as_dir in $PATH
14268do
14269 IFS=$as_save_IFS
14270 test -z "$as_dir" && as_dir=.
14271 for ac_exec_ext in '' $ac_executable_extensions; do
14272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14273 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14275 break 2
14276 fi
14277done
14278done
14279IFS=$as_save_IFS
14280
14281 ;;
14282esac
14283fi
14284GENPNG=$ac_cv_path_GENPNG
14285if test -n "$GENPNG"; then
14286 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14287$as_echo "$GENPNG" >&6; }
14288else
14289 { $as_echo "$as_me:$LINENO: result: no" >&5
14290$as_echo "no" >&6; }
14291fi
14292
14293
14294 if test -n "$GENPNG"; then
14295 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14296$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14297 if $GENPNG --help > /dev/null 2>&1 ; then
14298 { $as_echo "$as_me:$LINENO: result: ok" >&5
14299$as_echo "ok" >&6; }
14300 GENHTML="$GENHTML --frames"
14301 else
14302 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14303$as_echo "not supported" >&6; }
14304 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14305$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14306 GENPNG=
14307 fi
14308 fi
5556819a 14309fi
d0191583 14310
54b362f9
AK
14311################################################################################
14312{ $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14313$as_echo_n "checking whether to enable unit testing... " >&6; }
14314# Check whether --enable-testing was given.
14315if test "${enable_testing+set}" = set; then
14316 enableval=$enable_testing; TESTING=$enableval
14317else
14318 TESTING=no
14319fi
14320
14321{ $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14322$as_echo "$TESTING" >&6; }
14323
14324if test "$TESTING" = yes; then
14325 # Extract the first word of "ruby1.9", so it can be a program name with args.
14326set dummy ruby1.9; ac_word=$2
14327{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14328$as_echo_n "checking for $ac_word... " >&6; }
14329if test "${ac_cv_path_RUBY19+set}" = set; then
14330 $as_echo_n "(cached) " >&6
14331else
14332 case $RUBY19 in
14333 [\\/]* | ?:[\\/]*)
14334 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14335 ;;
14336 *)
14337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14338for as_dir in $PATH
14339do
14340 IFS=$as_save_IFS
14341 test -z "$as_dir" && as_dir=.
14342 for ac_exec_ext in '' $ac_executable_extensions; do
14343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14344 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14346 break 2
14347 fi
14348done
14349done
14350IFS=$as_save_IFS
14351
14352 ;;
14353esac
14354fi
14355RUBY19=$ac_cv_path_RUBY19
14356if test -n "$RUBY19"; then
14357 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14358$as_echo "$RUBY19" >&6; }
14359else
14360 { $as_echo "$as_me:$LINENO: result: no" >&5
14361$as_echo "no" >&6; }
14362fi
14363
14364
14365 # Extract the first word of "valgrind", so it can be a program name with args.
14366set dummy valgrind; ac_word=$2
14367{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14368$as_echo_n "checking for $ac_word... " >&6; }
14369if test "${ac_cv_path_VALGRIND+set}" = set; then
14370 $as_echo_n "(cached) " >&6
14371else
14372 case $VALGRIND in
14373 [\\/]* | ?:[\\/]*)
14374 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14375 ;;
14376 *)
14377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14378for as_dir in $PATH
14379do
14380 IFS=$as_save_IFS
14381 test -z "$as_dir" && as_dir=.
14382 for ac_exec_ext in '' $ac_executable_extensions; do
14383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14384 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14386 break 2
14387 fi
14388done
14389done
14390IFS=$as_save_IFS
14391
14392 ;;
14393esac
14394fi
14395VALGRIND=$ac_cv_path_VALGRIND
14396if test -n "$VALGRIND"; then
14397 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14398$as_echo "$VALGRIND" >&6; }
14399else
14400 { $as_echo "$as_me:$LINENO: result: no" >&5
14401$as_echo "no" >&6; }
14402fi
14403
14404
14405 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14406 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14407$as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14408 { (exit 1); exit 1; }; }
14409 fi
14410fi
14411
d1e8046f
AK
14412################################################################################
14413{ $as_echo "$as_me:$LINENO: checking whether to enable valgrind awareness of pools" >&5
14414$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
14415# Check whether --enable-valgrind_pool was given.
14416if test "${enable_valgrind_pool+set}" = set; then
14417 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
14418else
14419 VALGRIND_POOL=no
14420fi
14421
14422{ $as_echo "$as_me:$LINENO: result: $VALGRIND_POOL" >&5
14423$as_echo "$VALGRIND_POOL" >&6; }
14424
14425if test "$VALGRIND_POOL" = yes; then
14426
14427for ac_header in valgrind/memcheck.h
14428do
14429as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14432$as_echo_n "checking for $ac_header... " >&6; }
14433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14434 $as_echo_n "(cached) " >&6
14435fi
14436ac_res=`eval 'as_val=${'$as_ac_Header'}
14437 $as_echo "$as_val"'`
14438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14439$as_echo "$ac_res" >&6; }
14440else
14441 # Is the header compilable?
14442{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14443$as_echo_n "checking $ac_header usability... " >&6; }
14444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450$ac_includes_default
14451#include <$ac_header>
14452_ACEOF
14453rm -f conftest.$ac_objext
14454if { (ac_try="$ac_compile"
14455case "(($ac_try" in
14456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457 *) ac_try_echo=$ac_try;;
14458esac
14459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14460$as_echo "$ac_try_echo") >&5
14461 (eval "$ac_compile") 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } && {
14468 test -z "$ac_c_werror_flag" ||
14469 test ! -s conftest.err
14470 } && test -s conftest.$ac_objext; then
14471 ac_header_compiler=yes
14472else
14473 $as_echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 ac_header_compiler=no
14477fi
14478
14479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14481$as_echo "$ac_header_compiler" >&6; }
14482
14483# Is the header present?
14484{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14485$as_echo_n "checking $ac_header presence... " >&6; }
14486cat >conftest.$ac_ext <<_ACEOF
14487/* confdefs.h. */
14488_ACEOF
14489cat confdefs.h >>conftest.$ac_ext
14490cat >>conftest.$ac_ext <<_ACEOF
14491/* end confdefs.h. */
14492#include <$ac_header>
14493_ACEOF
14494if { (ac_try="$ac_cpp conftest.$ac_ext"
14495case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498esac
14499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14500$as_echo "$ac_try_echo") >&5
14501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14502 ac_status=$?
14503 grep -v '^ *+' conftest.er1 >conftest.err
14504 rm -f conftest.er1
14505 cat conftest.err >&5
14506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); } >/dev/null && {
14508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14509 test ! -s conftest.err
14510 }; then
14511 ac_header_preproc=yes
14512else
14513 $as_echo "$as_me: failed program was:" >&5
14514sed 's/^/| /' conftest.$ac_ext >&5
14515
14516 ac_header_preproc=no
14517fi
14518
14519rm -f conftest.err conftest.$ac_ext
14520{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14521$as_echo "$ac_header_preproc" >&6; }
14522
14523# So? What about this header?
14524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14525 yes:no: )
14526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14527$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14529$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14530 ac_header_preproc=yes
14531 ;;
14532 no:yes:* )
14533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14534$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14536$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14538$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14540$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14542$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14544$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14545
14546 ;;
14547esac
14548{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14549$as_echo_n "checking for $ac_header... " >&6; }
14550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14551 $as_echo_n "(cached) " >&6
14552else
14553 eval "$as_ac_Header=\$ac_header_preproc"
14554fi
14555ac_res=`eval 'as_val=${'$as_ac_Header'}
14556 $as_echo "$as_val"'`
14557 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14558$as_echo "$ac_res" >&6; }
14559
14560fi
14561as_val=`eval 'as_val=${'$as_ac_Header'}
14562 $as_echo "$as_val"'`
14563 if test "x$as_val" = x""yes; then
14564 cat >>confdefs.h <<_ACEOF
14565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14566_ACEOF
14567
14568else
14569 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
14570$as_echo "$as_me: error: bailing out" >&2;}
14571 { (exit 1); exit 1; }; }
14572fi
14573
14574done
14575
14576
14577cat >>confdefs.h <<\_ACEOF
14578#define VALGRIND_POOL 1
14579_ACEOF
14580
14581fi
14582
d0191583 14583################################################################################
ec6a6fbe
AK
14584{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14585$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14586# Check whether --enable-devmapper was given.
14587if test "${enable_devmapper+set}" = set; then
14588 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14589fi
14590
ec6a6fbe
AK
14591{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14592$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14593
14594if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14595
14596cat >>confdefs.h <<\_ACEOF
d0191583 14597#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14598_ACEOF
14599
14600fi
14601
a5f46f6a
AK
14602################################################################################
14603{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14604$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14605# Check whether --enable-udev_sync was given.
14606if test "${enable_udev_sync+set}" = set; then
14607 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14608else
14609 UDEV_SYNC=no
14610fi
14611
14612{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14613$as_echo "$UDEV_SYNC" >&6; }
14614
90c80887
AK
14615if test x$UDEV_SYNC = xyes; then
14616 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14617$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14618if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14619 $as_echo_n "(cached) " >&6
14620else
14621 ac_check_lib_save_LIBS=$LIBS
14622LIBS="-ludev $LIBS"
14623cat >conftest.$ac_ext <<_ACEOF
14624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629
14630/* Override any GCC internal prototype to avoid an error.
14631 Use char because int might match the return type of a GCC
14632 builtin and then its argument prototype would still apply. */
14633#ifdef __cplusplus
14634extern "C"
14635#endif
14636char udev_queue_get_udev_is_active ();
14637int
14638main ()
14639{
14640return udev_queue_get_udev_is_active ();
14641 ;
14642 return 0;
14643}
14644_ACEOF
14645rm -f conftest.$ac_objext conftest$ac_exeext
14646if { (ac_try="$ac_link"
14647case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650esac
14651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14652$as_echo "$ac_try_echo") >&5
14653 (eval "$ac_link") 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } && {
14660 test -z "$ac_c_werror_flag" ||
14661 test ! -s conftest.err
14662 } && test -s conftest$ac_exeext && {
14663 test "$cross_compiling" = yes ||
14664 $as_test_x conftest$ac_exeext
14665 }; then
14666 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14667else
14668 $as_echo "$as_me: failed program was:" >&5
14669sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14672fi
14673
14674rm -rf conftest.dSYM
14675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14676 conftest$ac_exeext conftest.$ac_ext
14677LIBS=$ac_check_lib_save_LIBS
14678fi
14679{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14680$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14681if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14682 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14683else
5161ecb9
PR
14684 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14685$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14686 { (exit 1); exit 1; }; }
90c80887
AK
14687fi
14688
14689
90c80887 14690cat >>confdefs.h <<\_ACEOF
5161ecb9 14691#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14692_ACEOF
14693
90c80887
AK
14694fi
14695
5161ecb9
PR
14696{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14697$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14698# Check whether --enable-udev_rules was given.
14699if test "${enable_udev_rules+set}" = set; then
14700 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14701else
14702 UDEV_RULES=$UDEV_SYNC
14703fi
14704
14705{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14706$as_echo "$UDEV_RULES" >&6; }
14707
93bd259b
AK
14708################################################################################
14709# Check whether --enable-compat was given.
14710if test "${enable_compat+set}" = set; then
14711 enableval=$enable_compat; DM_COMPAT=$enableval
14712else
14713 DM_COMPAT=no
14714fi
14715
14716
95eaa683
AK
14717################################################################################
14718# Check whether --enable-units-compat was given.
14719if test "${enable_units_compat+set}" = set; then
14720 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14721else
14722 UNITS_COMPAT=no
14723fi
14724
14725
14726if test x$UNITS_COMPAT = xyes; then
14727
14728cat >>confdefs.h <<\_ACEOF
14729#define DEFAULT_SI_UNIT_CONSISTENCY 0
14730_ACEOF
14731
14732fi
14733
93bd259b
AK
14734################################################################################
14735# Check whether --enable-ioctl was given.
14736if test "${enable_ioctl+set}" = set; then
14737 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14738fi
14739
14740
d0191583 14741################################################################################
ec6a6fbe
AK
14742{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14743$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14744# Check whether --enable-o_direct was given.
14745if test "${enable_o_direct+set}" = set; then
14746 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14747fi
ad6254c5 14748
ec6a6fbe
AK
14749{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14750$as_echo "$ODIRECT" >&6; }
ad6254c5 14751
d0191583 14752if test x$ODIRECT = xyes; then
ad6254c5 14753
d0191583
JM
14754cat >>confdefs.h <<\_ACEOF
14755#define O_DIRECT_SUPPORT 1
14756_ACEOF
ad6254c5 14757
d0191583 14758fi
ad6254c5 14759
572fefeb
AK
14760################################################################################
14761{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14762$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14763# Check whether --enable-applib was given.
14764if test "${enable_applib+set}" = set; then
14765 enableval=$enable_applib; APPLIB=$enableval
14766else
14767 APPLIB=no
14768fi
14769
14770{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14771$as_echo "$APPLIB" >&6; }
14772
14773test x$APPLIB = xyes \
14774 && LVM2APP_LIB=-llvm2app \
14775 || LVM2APP_LIB=
14776
d0191583 14777################################################################################
ec6a6fbe
AK
14778{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14779$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14780# Check whether --enable-cmdlib was given.
14781if test "${enable_cmdlib+set}" = set; then
14782 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14783else
d0191583
JM
14784 CMDLIB=no
14785fi
8a2fc586 14786
ec6a6fbe
AK
14787{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14788$as_echo "$CMDLIB" >&6; }
8a2fc586 14789
2a9a80c9 14790test x$CMDLIB = xyes \
d179cc7a
JM
14791 && LVM2CMD_LIB=-llvm2cmd \
14792 || LVM2CMD_LIB=
14793
93bd259b
AK
14794################################################################################
14795# Check whether --enable-pkgconfig was given.
14796if test "${enable_pkgconfig+set}" = set; then
14797 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14798else
14799 PKGCONFIG=no
14800fi
14801
2a9a80c9 14802
23b059e7
ZK
14803################################################################################
14804# Check whether --enable-write_install was given.
14805if test "${enable_write_install+set}" = set; then
14806 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14807else
14808 WRITE_INSTALL=no
14809fi
14810
14811
d0191583 14812################################################################################
ec6a6fbe
AK
14813{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14814$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14815# Check whether --enable-fsadm was given.
14816if test "${enable_fsadm+set}" = set; then
14817 enableval=$enable_fsadm; FSADM=$enableval
14818fi
8a2fc586 14819
ec6a6fbe
AK
14820{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14821$as_echo "$FSADM" >&6; }
8a2fc586 14822
d0191583 14823################################################################################
ec6a6fbe
AK
14824{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14825$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14826# Check whether --enable-dmeventd was given.
14827if test "${enable_dmeventd+set}" = set; then
14828 enableval=$enable_dmeventd; DMEVENTD=$enableval
14829fi
ad6254c5 14830
ec6a6fbe
AK
14831{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14832$as_echo "$DMEVENTD" >&6; }
ad6254c5 14833
93bd259b
AK
14834BUILD_DMEVENTD=$DMEVENTD
14835
2a9a80c9
PR
14836if test x$DMEVENTD = xyes; then
14837 if test x$MIRRORS != xinternal; then
ec6a6fbe 14838 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14839 " >&5
ec6a6fbe 14840$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14841 " >&2;}
d0191583 14842 { (exit 1); exit 1; }; }
2a9a80c9
PR
14843 fi
14844 if test x$CMDLIB = xno; then
ec6a6fbe 14845 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14846 " >&5
ec6a6fbe 14847$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14848 " >&2;}
14849 { (exit 1); exit 1; }; }
14850 fi
ad6254c5 14851fi
7a197a62 14852
d0191583
JM
14853if test x$DMEVENTD = xyes; then
14854
14855cat >>confdefs.h <<\_ACEOF
14856#define DMEVENTD 1
ad6254c5
AK
14857_ACEOF
14858
ad6254c5 14859fi
93bd259b
AK
14860
14861################################################################################
14862
ec6a6fbe
AK
14863{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14864$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14865if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14866 $as_echo_n "(cached) " >&6
93bd259b
AK
14867else
14868 ac_check_lib_save_LIBS=$LIBS
14869LIBS="-lc $LIBS"
14870cat >conftest.$ac_ext <<_ACEOF
14871/* confdefs.h. */
14872_ACEOF
14873cat confdefs.h >>conftest.$ac_ext
14874cat >>conftest.$ac_ext <<_ACEOF
14875/* end confdefs.h. */
14876
14877/* Override any GCC internal prototype to avoid an error.
14878 Use char because int might match the return type of a GCC
14879 builtin and then its argument prototype would still apply. */
14880#ifdef __cplusplus
14881extern "C"
14882#endif
14883char getline ();
14884int
14885main ()
14886{
14887return getline ();
14888 ;
14889 return 0;
14890}
14891_ACEOF
14892rm -f conftest.$ac_objext conftest$ac_exeext
14893if { (ac_try="$ac_link"
14894case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897esac
ec6a6fbe
AK
14898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14899$as_echo "$ac_try_echo") >&5
93bd259b
AK
14900 (eval "$ac_link") 2>conftest.er1
14901 ac_status=$?
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
ec6a6fbe 14905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14906 (exit $ac_status); } && {
14907 test -z "$ac_c_werror_flag" ||
14908 test ! -s conftest.err
ec6a6fbe
AK
14909 } && test -s conftest$ac_exeext && {
14910 test "$cross_compiling" = yes ||
14911 $as_test_x conftest$ac_exeext
14912 }; then
93bd259b
AK
14913 ac_cv_lib_c_getline=yes
14914else
ec6a6fbe 14915 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14916sed 's/^/| /' conftest.$ac_ext >&5
14917
14918 ac_cv_lib_c_getline=no
14919fi
14920
ec6a6fbe 14921rm -rf conftest.dSYM
93bd259b
AK
14922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14923 conftest$ac_exeext conftest.$ac_ext
14924LIBS=$ac_check_lib_save_LIBS
14925fi
ec6a6fbe
AK
14926{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14927$as_echo "$ac_cv_lib_c_getline" >&6; }
14928if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14929
14930cat >>confdefs.h <<\_ACEOF
14931#define HAVE_GETLINE 1
14932_ACEOF
14933
14934fi
14935
14936
14937################################################################################
14938
ec6a6fbe
AK
14939{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14940$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14941if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14942 $as_echo_n "(cached) " >&6
93bd259b
AK
14943else
14944 ac_check_lib_save_LIBS=$LIBS
14945LIBS="-lc $LIBS"
14946cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952
14953/* Override any GCC internal prototype to avoid an error.
14954 Use char because int might match the return type of a GCC
14955 builtin and then its argument prototype would still apply. */
14956#ifdef __cplusplus
14957extern "C"
14958#endif
14959char canonicalize_file_name ();
14960int
14961main ()
14962{
14963return canonicalize_file_name ();
14964 ;
14965 return 0;
14966}
14967_ACEOF
14968rm -f conftest.$ac_objext conftest$ac_exeext
14969if { (ac_try="$ac_link"
14970case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973esac
ec6a6fbe
AK
14974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14975$as_echo "$ac_try_echo") >&5
93bd259b
AK
14976 (eval "$ac_link") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
ec6a6fbe 14981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
ec6a6fbe
AK
14985 } && test -s conftest$ac_exeext && {
14986 test "$cross_compiling" = yes ||
14987 $as_test_x conftest$ac_exeext
14988 }; then
93bd259b
AK
14989 ac_cv_lib_c_canonicalize_file_name=yes
14990else
ec6a6fbe 14991 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14992sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 ac_cv_lib_c_canonicalize_file_name=no
14995fi
14996
ec6a6fbe 14997rm -rf conftest.dSYM
93bd259b
AK
14998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999 conftest$ac_exeext conftest.$ac_ext
15000LIBS=$ac_check_lib_save_LIBS
15001fi
ec6a6fbe
AK
15002{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
15003$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
15004if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
15005
15006cat >>confdefs.h <<\_ACEOF
15007#define HAVE_CANONICALIZE_FILE_NAME 1
15008_ACEOF
15009
15010fi
15011
15012
d0191583
JM
15013################################################################################
15014if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
15015 then exec_prefix="";
15016fi;
ad6254c5 15017
ad6254c5 15018################################################################################
ec6a6fbe
AK
15019{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15020$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 15021if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 15022 $as_echo_n "(cached) " >&6
ad6254c5
AK
15023else
15024 ac_check_lib_save_LIBS=$LIBS
15025LIBS="-ldl $LIBS"
15026cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15027/* confdefs.h. */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
15031/* end confdefs.h. */
15032
7a197a62
AK
15033/* Override any GCC internal prototype to avoid an error.
15034 Use char because int might match the return type of a GCC
15035 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15036#ifdef __cplusplus
15037extern "C"
15038#endif
ad6254c5
AK
15039char dlopen ();
15040int
15041main ()
15042{
7a197a62 15043return dlopen ();
ad6254c5
AK
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15049if { (ac_try="$ac_link"
15050case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053esac
ec6a6fbe
AK
15054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15055$as_echo "$ac_try_echo") >&5
7a197a62 15056 (eval "$ac_link") 2>conftest.er1
ad6254c5 15057 ac_status=$?
8a2fc586
AK
15058 grep -v '^ *+' conftest.er1 >conftest.err
15059 rm -f conftest.er1
15060 cat conftest.err >&5
ec6a6fbe 15061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
ec6a6fbe
AK
15065 } && test -s conftest$ac_exeext && {
15066 test "$cross_compiling" = yes ||
15067 $as_test_x conftest$ac_exeext
15068 }; then
ad6254c5
AK
15069 ac_cv_lib_dl_dlopen=yes
15070else
ec6a6fbe 15071 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15072sed 's/^/| /' conftest.$ac_ext >&5
15073
7a197a62 15074 ac_cv_lib_dl_dlopen=no
ad6254c5 15075fi
7a197a62 15076
ec6a6fbe 15077rm -rf conftest.dSYM
25fbec5b 15078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15079 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15080LIBS=$ac_check_lib_save_LIBS
15081fi
ec6a6fbe
AK
15082{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15083$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15084if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 15085
72b2cb61
AK
15086
15087cat >>confdefs.h <<\_ACEOF
15088#define HAVE_LIBDL 1
15089_ACEOF
15090
19a2c6e0
ZK
15091 DL_LIBS="-ldl"
15092 HAVE_LIBDL=yes
ad6254c5 15093else
19a2c6e0
ZK
15094
15095 DL_LIBS=
ad6254c5
AK
15096 HAVE_LIBDL=no
15097fi
15098
19a2c6e0 15099
ad6254c5
AK
15100################################################################################
15101if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
15102 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
15103 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 15104 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 15105" >&5
ec6a6fbe 15106$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
15107" >&2;}
15108 { (exit 1); exit 1; }; }
15109fi
15110
f30875db
ZK
15111################################################################################
15112if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
15113 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
15114$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
15115if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
15116 $as_echo_n "(cached) " >&6
15117else
15118 ac_check_lib_save_LIBS=$LIBS
15119LIBS="-lpthread $LIBS"
15120cat >conftest.$ac_ext <<_ACEOF
15121/* confdefs.h. */
15122_ACEOF
15123cat confdefs.h >>conftest.$ac_ext
15124cat >>conftest.$ac_ext <<_ACEOF
15125/* end confdefs.h. */
15126
15127/* Override any GCC internal prototype to avoid an error.
15128 Use char because int might match the return type of a GCC
15129 builtin and then its argument prototype would still apply. */
15130#ifdef __cplusplus
15131extern "C"
15132#endif
15133char pthread_mutex_lock ();
15134int
15135main ()
15136{
15137return pthread_mutex_lock ();
15138 ;
15139 return 0;
15140}
15141_ACEOF
15142rm -f conftest.$ac_objext conftest$ac_exeext
15143if { (ac_try="$ac_link"
15144case "(($ac_try" in
15145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146 *) ac_try_echo=$ac_try;;
15147esac
15148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15149$as_echo "$ac_try_echo") >&5
15150 (eval "$ac_link") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext && {
15160 test "$cross_compiling" = yes ||
15161 $as_test_x conftest$ac_exeext
15162 }; then
15163 ac_cv_lib_pthread_pthread_mutex_lock=yes
15164else
15165 $as_echo "$as_me: failed program was:" >&5
15166sed 's/^/| /' conftest.$ac_ext >&5
15167
15168 ac_cv_lib_pthread_pthread_mutex_lock=no
15169fi
15170
15171rm -rf conftest.dSYM
15172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15173 conftest$ac_exeext conftest.$ac_ext
15174LIBS=$ac_check_lib_save_LIBS
15175fi
15176{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15177$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15178if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15179 PTHREAD_LIBS="-lpthread"
15180else
15181 hard_bailout
15182fi
15183
15184fi
15185
d0191583 15186################################################################################
ec6a6fbe
AK
15187{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15188$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
15189# Check whether --enable-selinux was given.
15190if test "${enable_selinux+set}" = set; then
15191 enableval=$enable_selinux; SELINUX=$enableval
15192fi
15193
ec6a6fbe
AK
15194{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15195$as_echo "$SELINUX" >&6; }
d0191583 15196
ad6254c5
AK
15197################################################################################
15198if test x$SELINUX = xyes; then
ec6a6fbe
AK
15199 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15200$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 15201if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 15202 $as_echo_n "(cached) " >&6
8a2fc586
AK
15203else
15204 ac_check_lib_save_LIBS=$LIBS
15205LIBS="-lsepol $LIBS"
15206cat >conftest.$ac_ext <<_ACEOF
15207/* confdefs.h. */
15208_ACEOF
15209cat confdefs.h >>conftest.$ac_ext
15210cat >>conftest.$ac_ext <<_ACEOF
15211/* end confdefs.h. */
15212
7a197a62
AK
15213/* Override any GCC internal prototype to avoid an error.
15214 Use char because int might match the return type of a GCC
15215 builtin and then its argument prototype would still apply. */
8a2fc586
AK
15216#ifdef __cplusplus
15217extern "C"
15218#endif
8a2fc586
AK
15219char sepol_check_context ();
15220int
15221main ()
15222{
7a197a62 15223return sepol_check_context ();
8a2fc586
AK
15224 ;
15225 return 0;
15226}
15227_ACEOF
15228rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15229if { (ac_try="$ac_link"
15230case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233esac
ec6a6fbe
AK
15234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15235$as_echo "$ac_try_echo") >&5
7a197a62 15236 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
15237 ac_status=$?
15238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
ec6a6fbe 15241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15242 (exit $ac_status); } && {
15243 test -z "$ac_c_werror_flag" ||
15244 test ! -s conftest.err
ec6a6fbe
AK
15245 } && test -s conftest$ac_exeext && {
15246 test "$cross_compiling" = yes ||
15247 $as_test_x conftest$ac_exeext
15248 }; then
8a2fc586
AK
15249 ac_cv_lib_sepol_sepol_check_context=yes
15250else
ec6a6fbe 15251 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
15252sed 's/^/| /' conftest.$ac_ext >&5
15253
7a197a62 15254 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 15255fi
7a197a62 15256
ec6a6fbe 15257rm -rf conftest.dSYM
25fbec5b 15258rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
15259 conftest$ac_exeext conftest.$ac_ext
15260LIBS=$ac_check_lib_save_LIBS
15261fi
ec6a6fbe
AK
15262{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15263$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15264if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 15265
d0191583
JM
15266
15267cat >>confdefs.h <<\_ACEOF
15268#define HAVE_SEPOL 1
15269_ACEOF
15270
f8f6ec92
ZK
15271 SELINUX_LIBS="-lsepol"
15272fi
15273
8a2fc586 15274
ec6a6fbe
AK
15275 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15276$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 15277if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 15278 $as_echo_n "(cached) " >&6
ad6254c5
AK
15279else
15280 ac_check_lib_save_LIBS=$LIBS
15281LIBS="-lselinux $LIBS"
15282cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15283/* confdefs.h. */
15284_ACEOF
15285cat confdefs.h >>conftest.$ac_ext
15286cat >>conftest.$ac_ext <<_ACEOF
15287/* end confdefs.h. */
15288
7a197a62
AK
15289/* Override any GCC internal prototype to avoid an error.
15290 Use char because int might match the return type of a GCC
15291 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15292#ifdef __cplusplus
15293extern "C"
15294#endif
ad6254c5
AK
15295char is_selinux_enabled ();
15296int
15297main ()
15298{
7a197a62 15299return is_selinux_enabled ();
ad6254c5
AK
15300 ;
15301 return 0;
15302}
15303_ACEOF
15304rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15305if { (ac_try="$ac_link"
15306case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309esac
ec6a6fbe
AK
15310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311$as_echo "$ac_try_echo") >&5
7a197a62 15312 (eval "$ac_link") 2>conftest.er1
ad6254c5 15313 ac_status=$?
8a2fc586
AK
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
ec6a6fbe 15317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15318 (exit $ac_status); } && {
15319 test -z "$ac_c_werror_flag" ||
15320 test ! -s conftest.err
ec6a6fbe
AK
15321 } && test -s conftest$ac_exeext && {
15322 test "$cross_compiling" = yes ||
15323 $as_test_x conftest$ac_exeext
15324 }; then
ad6254c5
AK
15325 ac_cv_lib_selinux_is_selinux_enabled=yes
15326else
ec6a6fbe 15327 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15328sed 's/^/| /' conftest.$ac_ext >&5
15329
7a197a62 15330 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15331fi
7a197a62 15332
ec6a6fbe 15333rm -rf conftest.dSYM
25fbec5b 15334rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15335 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15336LIBS=$ac_check_lib_save_LIBS
15337fi
ec6a6fbe
AK
15338{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15339$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15340if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15341
72b2cb61 15342
f8f6ec92
ZK
15343for ac_header in selinux/selinux.h
15344do
15345as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15347 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15348$as_echo_n "checking for $ac_header... " >&6; }
15349if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15350 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15351fi
15352ac_res=`eval 'as_val=${'$as_ac_Header'}
15353 $as_echo "$as_val"'`
15354 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15355$as_echo "$ac_res" >&6; }
66e941e8 15356else
f8f6ec92
ZK
15357 # Is the header compilable?
15358{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15359$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15360cat >conftest.$ac_ext <<_ACEOF
15361/* confdefs.h. */
15362_ACEOF
15363cat confdefs.h >>conftest.$ac_ext
15364cat >>conftest.$ac_ext <<_ACEOF
15365/* end confdefs.h. */
f8f6ec92
ZK
15366$ac_includes_default
15367#include <$ac_header>
66e941e8 15368_ACEOF
f8f6ec92
ZK
15369rm -f conftest.$ac_objext
15370if { (ac_try="$ac_compile"
66e941e8
JM
15371case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374esac
ec6a6fbe
AK
15375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15376$as_echo "$ac_try_echo") >&5
f8f6ec92 15377 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
ec6a6fbe 15382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
f8f6ec92
ZK
15386 } && test -s conftest.$ac_objext; then
15387 ac_header_compiler=yes
15388else
15389 $as_echo "$as_me: failed program was:" >&5
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
15392 ac_header_compiler=no
15393fi
15394
15395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15397$as_echo "$ac_header_compiler" >&6; }
15398
15399# Is the header present?
15400{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15401$as_echo_n "checking $ac_header presence... " >&6; }
15402cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408#include <$ac_header>
15409_ACEOF
15410if { (ac_try="$ac_cpp conftest.$ac_ext"
15411case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15414esac
15415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15416$as_echo "$ac_try_echo") >&5
15417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } >/dev/null && {
15424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15425 test ! -s conftest.err
ec6a6fbe 15426 }; then
f8f6ec92 15427 ac_header_preproc=yes
66e941e8 15428else
ec6a6fbe 15429 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15430sed 's/^/| /' conftest.$ac_ext >&5
15431
f8f6ec92
ZK
15432 ac_header_preproc=no
15433fi
15434
15435rm -f conftest.err conftest.$ac_ext
15436{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15437$as_echo "$ac_header_preproc" >&6; }
15438
15439# So? What about this header?
15440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15441 yes:no: )
15442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15443$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15445$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15446 ac_header_preproc=yes
15447 ;;
15448 no:yes:* )
15449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15450$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15452$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15454$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15456$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15458$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15460$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15461
f8f6ec92
ZK
15462 ;;
15463esac
15464{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15465$as_echo_n "checking for $ac_header... " >&6; }
15466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15467 $as_echo_n "(cached) " >&6
15468else
15469 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15470fi
f8f6ec92
ZK
15471ac_res=`eval 'as_val=${'$as_ac_Header'}
15472 $as_echo "$as_val"'`
15473 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15474$as_echo "$ac_res" >&6; }
66e941e8 15475
66e941e8 15476fi
f8f6ec92
ZK
15477as_val=`eval 'as_val=${'$as_ac_Header'}
15478 $as_echo "$as_val"'`
15479 if test "x$as_val" = x""yes; then
15480 cat >>confdefs.h <<_ACEOF
15481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15482_ACEOF
15483
66e941e8 15484else
f8f6ec92 15485 hard_bailout
66e941e8 15486fi
f8f6ec92
ZK
15487
15488done
15489
15490
15491cat >>confdefs.h <<\_ACEOF
15492#define HAVE_SELINUX 1
15493_ACEOF
15494
15495 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15496 SELINUX_PC="libselinux"
f8f6ec92
ZK
15497 HAVE_SELINUX=yes
15498else
15499
15500 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15501$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15502 SELINUX_LIBS=
f7f0854e 15503 SELINUX_PC=
f8f6ec92 15504 HAVE_SELINUX=no
66e941e8
JM
15505fi
15506
ad6254c5
AK
15507fi
15508
8b1a3214
AK
15509################################################################################
15510if test x$REALTIME = xyes; then
ec6a6fbe
AK
15511 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15512$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15513if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15514 $as_echo_n "(cached) " >&6
8b1a3214
AK
15515else
15516 ac_check_lib_save_LIBS=$LIBS
15517LIBS="-lrt $LIBS"
15518cat >conftest.$ac_ext <<_ACEOF
15519/* confdefs.h. */
15520_ACEOF
15521cat confdefs.h >>conftest.$ac_ext
15522cat >>conftest.$ac_ext <<_ACEOF
15523/* end confdefs.h. */
15524
7a197a62
AK
15525/* Override any GCC internal prototype to avoid an error.
15526 Use char because int might match the return type of a GCC
15527 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15528#ifdef __cplusplus
15529extern "C"
15530#endif
8b1a3214
AK
15531char clock_gettime ();
15532int
15533main ()
15534{
7a197a62 15535return clock_gettime ();
8b1a3214
AK
15536 ;
15537 return 0;
15538}
15539_ACEOF
15540rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15541if { (ac_try="$ac_link"
15542case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15545esac
ec6a6fbe
AK
15546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15547$as_echo "$ac_try_echo") >&5
7a197a62 15548 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15549 ac_status=$?
15550 grep -v '^ *+' conftest.er1 >conftest.err
15551 rm -f conftest.er1
15552 cat conftest.err >&5
ec6a6fbe 15553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15554 (exit $ac_status); } && {
15555 test -z "$ac_c_werror_flag" ||
15556 test ! -s conftest.err
ec6a6fbe
AK
15557 } && test -s conftest$ac_exeext && {
15558 test "$cross_compiling" = yes ||
15559 $as_test_x conftest$ac_exeext
15560 }; then
8b1a3214
AK
15561 ac_cv_lib_rt_clock_gettime=yes
15562else
ec6a6fbe 15563 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15564sed 's/^/| /' conftest.$ac_ext >&5
15565
7a197a62 15566 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15567fi
7a197a62 15568
ec6a6fbe 15569rm -rf conftest.dSYM
25fbec5b 15570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15571 conftest$ac_exeext conftest.$ac_ext
15572LIBS=$ac_check_lib_save_LIBS
15573fi
ec6a6fbe
AK
15574{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15575$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15576if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15577 HAVE_REALTIME=yes
15578else
15579 HAVE_REALTIME=no
15580fi
15581
8b1a3214
AK
15582
15583 if test x$HAVE_REALTIME = xyes; then
15584
15585cat >>confdefs.h <<\_ACEOF
15586#define HAVE_REALTIME 1
15587_ACEOF
15588
15589 LIBS="-lrt $LIBS"
15590 else
ec6a6fbe
AK
15591 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15592$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15593 fi
15594fi
15595
ad6254c5
AK
15596################################################################################
15597
15598for ac_header in getopt.h
15599do
ec6a6fbe 15600as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15603$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15605 $as_echo_n "(cached) " >&6
ad6254c5 15606fi
ec6a6fbe
AK
15607ac_res=`eval 'as_val=${'$as_ac_Header'}
15608 $as_echo "$as_val"'`
15609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15610$as_echo "$ac_res" >&6; }
ad6254c5
AK
15611else
15612 # Is the header compilable?
ec6a6fbe
AK
15613{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15614$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15615cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15616/* confdefs.h. */
15617_ACEOF
15618cat confdefs.h >>conftest.$ac_ext
15619cat >>conftest.$ac_ext <<_ACEOF
15620/* end confdefs.h. */
15621$ac_includes_default
15622#include <$ac_header>
15623_ACEOF
15624rm -f conftest.$ac_objext
7a197a62
AK
15625if { (ac_try="$ac_compile"
15626case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
ec6a6fbe
AK
15630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15631$as_echo "$ac_try_echo") >&5
7a197a62 15632 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15633 ac_status=$?
8a2fc586
AK
15634 grep -v '^ *+' conftest.er1 >conftest.err
15635 rm -f conftest.er1
15636 cat conftest.err >&5
ec6a6fbe 15637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15638 (exit $ac_status); } && {
15639 test -z "$ac_c_werror_flag" ||
15640 test ! -s conftest.err
15641 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15642 ac_header_compiler=yes
15643else
ec6a6fbe 15644 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15645sed 's/^/| /' conftest.$ac_ext >&5
15646
7a197a62 15647 ac_header_compiler=no
ad6254c5 15648fi
7a197a62
AK
15649
15650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15651{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15652$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15653
15654# Is the header present?
ec6a6fbe
AK
15655{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15656$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15657cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15658/* confdefs.h. */
15659_ACEOF
15660cat confdefs.h >>conftest.$ac_ext
15661cat >>conftest.$ac_ext <<_ACEOF
15662/* end confdefs.h. */
15663#include <$ac_header>
15664_ACEOF
7a197a62
AK
15665if { (ac_try="$ac_cpp conftest.$ac_ext"
15666case "(($ac_try" in
15667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668 *) ac_try_echo=$ac_try;;
15669esac
ec6a6fbe
AK
15670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15671$as_echo "$ac_try_echo") >&5
7a197a62 15672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15673 ac_status=$?
15674 grep -v '^ *+' conftest.er1 >conftest.err
15675 rm -f conftest.er1
15676 cat conftest.err >&5
ec6a6fbe 15677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15678 (exit $ac_status); } >/dev/null && {
15679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 }; then
ad6254c5
AK
15682 ac_header_preproc=yes
15683else
ec6a6fbe 15684 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15685sed 's/^/| /' conftest.$ac_ext >&5
15686
15687 ac_header_preproc=no
15688fi
7a197a62 15689
ad6254c5 15690rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15691{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15692$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15693
15694# So? What about this header?
8a2fc586
AK
15695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15696 yes:no: )
ec6a6fbe
AK
15697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15698$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15700$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15701 ac_header_preproc=yes
ad6254c5 15702 ;;
8a2fc586 15703 no:yes:* )
ec6a6fbe
AK
15704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15705$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15707$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15709$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15711$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15713$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15715$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15716
ad6254c5
AK
15717 ;;
15718esac
ec6a6fbe
AK
15719{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15720$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15721if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15722 $as_echo_n "(cached) " >&6
ad6254c5 15723else
8a2fc586 15724 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15725fi
ec6a6fbe
AK
15726ac_res=`eval 'as_val=${'$as_ac_Header'}
15727 $as_echo "$as_val"'`
15728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15729$as_echo "$ac_res" >&6; }
ad6254c5
AK
15730
15731fi
ec6a6fbe
AK
15732as_val=`eval 'as_val=${'$as_ac_Header'}
15733 $as_echo "$as_val"'`
15734 if test "x$as_val" = x""yes; then
ad6254c5 15735 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15736#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15737_ACEOF
72b2cb61
AK
15738
15739cat >>confdefs.h <<\_ACEOF
15740#define HAVE_GETOPTLONG 1
15741_ACEOF
15742
ad6254c5
AK
15743fi
15744
15745done
15746
15747
15748################################################################################
06e459df 15749if test x$READLINE != xno; then
539f4a77
ZK
15750 lvm_saved_libs=$LIBS
15751 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15752$as_echo_n "checking for library containing tgetent... " >&6; }
15753if test "${ac_cv_search_tgetent+set}" = set; then
15754 $as_echo_n "(cached) " >&6
15755else
15756 ac_func_search_save_LIBS=$LIBS
15757cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
bc1024f8 15763
539f4a77
ZK
15764/* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15767#ifdef __cplusplus
15768extern "C"
15769#endif
15770char tgetent ();
15771int
15772main ()
15773{
15774return tgetent ();
15775 ;
15776 return 0;
15777}
15778_ACEOF
15779for ac_lib in '' tinfo ncurses curses termcap termlib; do
15780 if test -z "$ac_lib"; then
15781 ac_res="none required"
15782 else
15783 ac_res=-l$ac_lib
15784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15785 fi
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787if { (ac_try="$ac_link"
15788case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
15792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15793$as_echo "$ac_try_echo") >&5
15794 (eval "$ac_link") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest$ac_exeext && {
15804 test "$cross_compiling" = yes ||
15805 $as_test_x conftest$ac_exeext
15806 }; then
15807 ac_cv_search_tgetent=$ac_res
15808else
15809 $as_echo "$as_me: failed program was:" >&5
15810sed 's/^/| /' conftest.$ac_ext >&5
15811
15812
15813fi
15814
15815rm -rf conftest.dSYM
15816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817 conftest$ac_exeext
15818 if test "${ac_cv_search_tgetent+set}" = set; then
15819 break
15820fi
15821done
15822if test "${ac_cv_search_tgetent+set}" = set; then
15823 :
15824else
15825 ac_cv_search_tgetent=no
15826fi
15827rm conftest.$ac_ext
15828LIBS=$ac_func_search_save_LIBS
15829fi
15830{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15831$as_echo "$ac_cv_search_tgetent" >&6; }
15832ac_res=$ac_cv_search_tgetent
15833if test "$ac_res" != no; then
15834 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15835 READLINE_LIBS=$ac_cv_search_tgetent
15836else
15837
15838 if test "$READLINE" = yes; then
15839 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15840--enable-readline option (which is enabled by default). Either disable readline
15841support with --disable-readline or download and install termcap from:
15842 ftp.gnu.org/gnu/termcap
15843Note: if you are using precompiled packages you will also need the development
15844 package as well (which may be called termcap-devel or something similar).
15845Note: (n)curses also seems to work as a substitute for termcap. This was
15846 not found either - but you could try installing that as well." >&5
15847$as_echo "$as_me: error: termcap could not be found which is required for the
15848--enable-readline option (which is enabled by default). Either disable readline
15849support with --disable-readline or download and install termcap from:
15850 ftp.gnu.org/gnu/termcap
15851Note: if you are using precompiled packages you will also need the development
15852 package as well (which may be called termcap-devel or something similar).
15853Note: (n)curses also seems to work as a substitute for termcap. This was
15854 not found either - but you could try installing that as well." >&2;}
15855 { (exit 1); exit 1; }; }
15856 fi
15857fi
15858
15859 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15860$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15861if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15862 $as_echo_n "(cached) " >&6
ad6254c5
AK
15863else
15864 ac_check_lib_save_LIBS=$LIBS
15865LIBS="-lreadline $LIBS"
15866cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15867/* confdefs.h. */
15868_ACEOF
15869cat confdefs.h >>conftest.$ac_ext
15870cat >>conftest.$ac_ext <<_ACEOF
15871/* end confdefs.h. */
15872
7a197a62
AK
15873/* Override any GCC internal prototype to avoid an error.
15874 Use char because int might match the return type of a GCC
15875 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15876#ifdef __cplusplus
15877extern "C"
15878#endif
ad6254c5
AK
15879char readline ();
15880int
15881main ()
15882{
7a197a62 15883return readline ();
ad6254c5
AK
15884 ;
15885 return 0;
15886}
15887_ACEOF
15888rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15889if { (ac_try="$ac_link"
15890case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15893esac
ec6a6fbe
AK
15894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15895$as_echo "$ac_try_echo") >&5
7a197a62 15896 (eval "$ac_link") 2>conftest.er1
ad6254c5 15897 ac_status=$?
8a2fc586
AK
15898 grep -v '^ *+' conftest.er1 >conftest.err
15899 rm -f conftest.er1
15900 cat conftest.err >&5
ec6a6fbe 15901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15902 (exit $ac_status); } && {
15903 test -z "$ac_c_werror_flag" ||
15904 test ! -s conftest.err
ec6a6fbe
AK
15905 } && test -s conftest$ac_exeext && {
15906 test "$cross_compiling" = yes ||
15907 $as_test_x conftest$ac_exeext
15908 }; then
ad6254c5
AK
15909 ac_cv_lib_readline_readline=yes
15910else
ec6a6fbe 15911 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15912sed 's/^/| /' conftest.$ac_ext >&5
15913
7a197a62 15914 ac_cv_lib_readline_readline=no
ad6254c5 15915fi
7a197a62 15916
ec6a6fbe 15917rm -rf conftest.dSYM
25fbec5b 15918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15919 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15920LIBS=$ac_check_lib_save_LIBS
15921fi
ec6a6fbe
AK
15922{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15923$as_echo "$ac_cv_lib_readline_readline" >&6; }
15924if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15925
15926
15927cat >>confdefs.h <<\_ACEOF
15928#define READLINE_SUPPORT 1
bc1024f8
JM
15929_ACEOF
15930
539f4a77
ZK
15931 LIBS=$lvm_saved_libs
15932 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15933$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15934if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15935 $as_echo_n "(cached) " >&6
15936else
15937 ac_check_lib_save_LIBS=$LIBS
15938LIBS="-lreadline $LIBS"
15939cat >conftest.$ac_ext <<_ACEOF
15940/* confdefs.h. */
15941_ACEOF
15942cat confdefs.h >>conftest.$ac_ext
15943cat >>conftest.$ac_ext <<_ACEOF
15944/* end confdefs.h. */
bc1024f8 15945
539f4a77
ZK
15946/* Override any GCC internal prototype to avoid an error.
15947 Use char because int might match the return type of a GCC
15948 builtin and then its argument prototype would still apply. */
15949#ifdef __cplusplus
15950extern "C"
15951#endif
15952char rl_line_buffer ();
15953int
15954main ()
15955{
15956return rl_line_buffer ();
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest.$ac_objext conftest$ac_exeext
15962if { (ac_try="$ac_link"
15963case "(($ac_try" in
15964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15965 *) ac_try_echo=$ac_try;;
15966esac
15967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15968$as_echo "$ac_try_echo") >&5
15969 (eval "$ac_link") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest$ac_exeext && {
15979 test "$cross_compiling" = yes ||
15980 $as_test_x conftest$ac_exeext
15981 }; then
15982 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 15983else
539f4a77
ZK
15984 $as_echo "$as_me: failed program was:" >&5
15985sed 's/^/| /' conftest.$ac_ext >&5
15986
15987 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15988fi
15989
539f4a77
ZK
15990rm -rf conftest.dSYM
15991rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15992 conftest$ac_exeext conftest.$ac_ext
15993LIBS=$ac_check_lib_save_LIBS
15994fi
15995{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15996$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15997if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15998 READLINE_LIBS="-lreadline"
15999else
16000
16001 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
16002$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
16003 READLINE_LIBS="-lreadline $READLINE_LIBS"
16004
16005fi
16006
16007else
16008
16009 READLINE_LIBS=
16010 if test "$READLINE" = yes; then
16011 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
16012--enable-readline option (which is enabled by default). Either disable readline
16013support with --disable-readline or download and install readline from:
16014 ftp.gnu.org/gnu/readline
16015Note: if you are using precompiled packages you will also need the development
539f4a77 16016package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 16017$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
16018--enable-readline option (which is enabled by default). Either disable readline
16019support with --disable-readline or download and install readline from:
16020 ftp.gnu.org/gnu/readline
16021Note: if you are using precompiled packages you will also need the development
539f4a77 16022package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 16023 { (exit 1); exit 1; }; }
539f4a77
ZK
16024 fi
16025fi
16026
16027 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
16028
16029for ac_func in rl_completion_matches
16030do
ec6a6fbe
AK
16031as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16032{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16033$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 16034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16035 $as_echo_n "(cached) " >&6
ad6254c5
AK
16036else
16037 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
bc1024f8 16043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 16044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 16045#define $ac_func innocuous_$ac_func
8a2fc586 16046
ad6254c5 16047/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 16048 which can conflict with char $ac_func (); below.
ad6254c5
AK
16049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16050 <limits.h> exists even on freestanding compilers. */
8a2fc586 16051
ad6254c5
AK
16052#ifdef __STDC__
16053# include <limits.h>
16054#else
16055# include <assert.h>
16056#endif
8a2fc586 16057
bc1024f8 16058#undef $ac_func
8a2fc586 16059
7a197a62
AK
16060/* Override any GCC internal prototype to avoid an error.
16061 Use char because int might match the return type of a GCC
16062 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16063#ifdef __cplusplus
16064extern "C"
ad6254c5 16065#endif
bc1024f8 16066char $ac_func ();
ad6254c5
AK
16067/* The GNU C library defines this for functions which it implements
16068 to always fail with ENOSYS. Some functions are actually named
16069 something starting with __ and the normal name is an alias. */
bc1024f8 16070#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 16071choke me
ad6254c5
AK
16072#endif
16073
16074int
16075main ()
16076{
bc1024f8 16077return $ac_func ();
ad6254c5
AK
16078 ;
16079 return 0;
16080}
16081_ACEOF
16082rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16083if { (ac_try="$ac_link"
16084case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16087esac
ec6a6fbe
AK
16088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16089$as_echo "$ac_try_echo") >&5
7a197a62 16090 (eval "$ac_link") 2>conftest.er1
ad6254c5 16091 ac_status=$?
8a2fc586
AK
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
ec6a6fbe 16095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16096 (exit $ac_status); } && {
16097 test -z "$ac_c_werror_flag" ||
16098 test ! -s conftest.err
ec6a6fbe
AK
16099 } && test -s conftest$ac_exeext && {
16100 test "$cross_compiling" = yes ||
16101 $as_test_x conftest$ac_exeext
16102 }; then
bc1024f8 16103 eval "$as_ac_var=yes"
ad6254c5 16104else
ec6a6fbe 16105 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16106sed 's/^/| /' conftest.$ac_ext >&5
16107
bc1024f8 16108 eval "$as_ac_var=no"
ad6254c5 16109fi
7a197a62 16110
ec6a6fbe 16111rm -rf conftest.dSYM
25fbec5b 16112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16113 conftest$ac_exeext conftest.$ac_ext
ad6254c5 16114fi
ec6a6fbe
AK
16115ac_res=`eval 'as_val=${'$as_ac_var'}
16116 $as_echo "$as_val"'`
16117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16118$as_echo "$ac_res" >&6; }
16119as_val=`eval 'as_val=${'$as_ac_var'}
16120 $as_echo "$as_val"'`
16121 if test "x$as_val" = x""yes; then
bc1024f8 16122 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16123#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
16124_ACEOF
16125
16126fi
bc1024f8 16127done
ad6254c5 16128
539f4a77 16129 LIBS=$lvm_saved_libs
ad6254c5
AK
16130fi
16131
16132################################################################################
ec6a6fbe
AK
16133{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
16134$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 16135# Check whether --enable-nls was given.
ad6254c5 16136if test "${enable_nls+set}" = set; then
7a197a62 16137 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
16138else
16139 INTL=no
7a197a62
AK
16140fi
16141
ec6a6fbe
AK
16142{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
16143$as_echo "$INTL" >&6; }
ad6254c5
AK
16144
16145if test x$INTL = xyes; then
93bd259b 16146# FIXME - Move this - can be device-mapper too
ad6254c5
AK
16147 INTL_PACKAGE="lvm2"
16148 # Extract the first word of "msgfmt", so it can be a program name with args.
16149set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
16150{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16151$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 16152if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 16153 $as_echo_n "(cached) " >&6
ad6254c5
AK
16154else
16155 case $MSGFMT in
16156 [\\/]* | ?:[\\/]*)
16157 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16158 ;;
16159 *)
16160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161for as_dir in $PATH
16162do
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
16165 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 16166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 16167 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 16168 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
16169 break 2
16170 fi
16171done
16172done
7a197a62 16173IFS=$as_save_IFS
ad6254c5
AK
16174
16175 ;;
16176esac
16177fi
16178MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 16179if test -n "$MSGFMT"; then
ec6a6fbe
AK
16180 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16181$as_echo "$MSGFMT" >&6; }
ad6254c5 16182else
ec6a6fbe
AK
16183 { $as_echo "$as_me:$LINENO: result: no" >&5
16184$as_echo "no" >&6; }
ad6254c5
AK
16185fi
16186
7a197a62 16187
ad6254c5 16188 if [ "x$MSGFMT" == x ];
ec6a6fbe 16189 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 16190 " >&5
ec6a6fbe 16191$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
16192 " >&2;}
16193 { (exit 1); exit 1; }; }
16194 fi;
16195
16196
7a197a62 16197# Check whether --with-localedir was given.
ad6254c5 16198if test "${with_localedir+set}" = set; then
71082be4 16199 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 16200else
71082be4 16201 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
16202fi
16203
ad6254c5
AK
16204fi
16205
16206################################################################################
16207
7a197a62 16208# Check whether --with-confdir was given.
ad6254c5 16209if test "${with_confdir+set}" = set; then
71082be4 16210 withval=$with_confdir; CONFDIR=$withval
ad6254c5 16211else
71082be4 16212 CONFDIR="/etc"
7a197a62
AK
16213fi
16214
ad6254c5
AK
16215
16216
7a197a62 16217# Check whether --with-staticdir was given.
ad6254c5 16218if test "${with_staticdir+set}" = set; then
71082be4 16219 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 16220else
71082be4 16221 STATICDIR='${exec_prefix}/sbin'
7a197a62 16222fi
ad6254c5 16223
33f732c5 16224
7a197a62 16225
68f2de6d
AK
16226# Check whether --with-usrlibdir was given.
16227if test "${with_usrlibdir+set}" = set; then
71082be4 16228 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 16229else
71082be4 16230 usrlibdir='${prefix}/lib'
68f2de6d
AK
16231fi
16232
16233
16234
16235# Check whether --with-usrsbindir was given.
16236if test "${with_usrsbindir+set}" = set; then
71082be4 16237 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 16238else
71082be4 16239 usrsbindir='${prefix}/sbin'
68f2de6d
AK
16240fi
16241
16242
a5f46f6a
AK
16243################################################################################
16244
16245# Check whether --with-udev_prefix was given.
16246if test "${with_udev_prefix+set}" = set; then
71082be4 16247 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 16248else
71082be4 16249 udev_prefix='${exec_prefix}'
a5f46f6a
AK
16250fi
16251
16252
78ce7acc
AK
16253
16254# Check whether --with-udevdir was given.
16255if test "${with_udevdir+set}" = set; then
71082be4 16256 withval=$with_udevdir; udevdir=$withval
78ce7acc 16257else
71082be4 16258 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
16259fi
16260
a5f46f6a 16261
ad6254c5
AK
16262################################################################################
16263if test x$READLINE = xyes; then
16264
16265
16266for ac_header in readline/readline.h readline/history.h
16267do
ec6a6fbe 16268as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16270 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16271$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16273 $as_echo_n "(cached) " >&6
ad6254c5 16274fi
ec6a6fbe
AK
16275ac_res=`eval 'as_val=${'$as_ac_Header'}
16276 $as_echo "$as_val"'`
16277 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16278$as_echo "$ac_res" >&6; }
ad6254c5
AK
16279else
16280 # Is the header compilable?
ec6a6fbe
AK
16281{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16282$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16283cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289$ac_includes_default
16290#include <$ac_header>
16291_ACEOF
16292rm -f conftest.$ac_objext
7a197a62
AK
16293if { (ac_try="$ac_compile"
16294case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297esac
ec6a6fbe
AK
16298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16299$as_echo "$ac_try_echo") >&5
7a197a62 16300 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16301 ac_status=$?
8a2fc586
AK
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
ec6a6fbe 16305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16306 (exit $ac_status); } && {
16307 test -z "$ac_c_werror_flag" ||
16308 test ! -s conftest.err
16309 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16310 ac_header_compiler=yes
16311else
ec6a6fbe 16312 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16313sed 's/^/| /' conftest.$ac_ext >&5
16314
7a197a62 16315 ac_header_compiler=no
ad6254c5 16316fi
7a197a62
AK
16317
16318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16319{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16320$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16321
16322# Is the header present?
ec6a6fbe
AK
16323{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16324$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16325cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331#include <$ac_header>
16332_ACEOF
7a197a62
AK
16333if { (ac_try="$ac_cpp conftest.$ac_ext"
16334case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337esac
ec6a6fbe
AK
16338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16339$as_echo "$ac_try_echo") >&5
7a197a62 16340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
ec6a6fbe 16345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16346 (exit $ac_status); } >/dev/null && {
16347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 }; then
ad6254c5
AK
16350 ac_header_preproc=yes
16351else
ec6a6fbe 16352 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16353sed 's/^/| /' conftest.$ac_ext >&5
16354
16355 ac_header_preproc=no
16356fi
7a197a62 16357
ad6254c5 16358rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16359{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16360$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16361
16362# So? What about this header?
8a2fc586
AK
16363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16364 yes:no: )
ec6a6fbe
AK
16365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16366$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16368$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16369 ac_header_preproc=yes
ad6254c5 16370 ;;
8a2fc586 16371 no:yes:* )
ec6a6fbe
AK
16372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16373$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16375$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16377$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16379$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16381$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16383$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16384
ad6254c5
AK
16385 ;;
16386esac
ec6a6fbe
AK
16387{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16388$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16390 $as_echo_n "(cached) " >&6
ad6254c5 16391else
8a2fc586 16392 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16393fi
ec6a6fbe
AK
16394ac_res=`eval 'as_val=${'$as_ac_Header'}
16395 $as_echo "$as_val"'`
16396 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16397$as_echo "$ac_res" >&6; }
ad6254c5
AK
16398
16399fi
ec6a6fbe
AK
16400as_val=`eval 'as_val=${'$as_ac_Header'}
16401 $as_echo "$as_val"'`
16402 if test "x$as_val" = x""yes; then
ad6254c5 16403 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16404#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16405_ACEOF
16406
16407else
ec6a6fbe
AK
16408 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16409$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16410 { (exit 1); exit 1; }; }
16411fi
16412
16413done
16414
16415fi
16416
5c7fc7c4 16417if test x$CLVMD != xnone; then
ad6254c5
AK
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428for 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
16429do
ec6a6fbe 16430as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16433$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16435 $as_echo_n "(cached) " >&6
ad6254c5 16436fi
ec6a6fbe
AK
16437ac_res=`eval 'as_val=${'$as_ac_Header'}
16438 $as_echo "$as_val"'`
16439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16440$as_echo "$ac_res" >&6; }
ad6254c5
AK
16441else
16442 # Is the header compilable?
ec6a6fbe
AK
16443{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16444$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16445cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452#include <$ac_header>
16453_ACEOF
16454rm -f conftest.$ac_objext
7a197a62
AK
16455if { (ac_try="$ac_compile"
16456case "(($ac_try" in
16457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16458 *) ac_try_echo=$ac_try;;
16459esac
ec6a6fbe
AK
16460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16461$as_echo "$ac_try_echo") >&5
7a197a62 16462 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16463 ac_status=$?
8a2fc586
AK
16464 grep -v '^ *+' conftest.er1 >conftest.err
16465 rm -f conftest.er1
16466 cat conftest.err >&5
ec6a6fbe 16467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16468 (exit $ac_status); } && {
16469 test -z "$ac_c_werror_flag" ||
16470 test ! -s conftest.err
16471 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16472 ac_header_compiler=yes
16473else
ec6a6fbe 16474 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
7a197a62 16477 ac_header_compiler=no
ad6254c5 16478fi
7a197a62
AK
16479
16480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16481{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16482$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16483
16484# Is the header present?
ec6a6fbe
AK
16485{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16486$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16487cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16488/* confdefs.h. */
16489_ACEOF
16490cat confdefs.h >>conftest.$ac_ext
16491cat >>conftest.$ac_ext <<_ACEOF
16492/* end confdefs.h. */
16493#include <$ac_header>
16494_ACEOF
7a197a62
AK
16495if { (ac_try="$ac_cpp conftest.$ac_ext"
16496case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499esac
ec6a6fbe
AK
16500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16501$as_echo "$ac_try_echo") >&5
7a197a62 16502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16503 ac_status=$?
16504 grep -v '^ *+' conftest.er1 >conftest.err
16505 rm -f conftest.er1
16506 cat conftest.err >&5
ec6a6fbe 16507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16508 (exit $ac_status); } >/dev/null && {
16509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16510 test ! -s conftest.err
16511 }; then
ad6254c5
AK
16512 ac_header_preproc=yes
16513else
ec6a6fbe 16514 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16515sed 's/^/| /' conftest.$ac_ext >&5
16516
16517 ac_header_preproc=no
16518fi
7a197a62 16519
ad6254c5 16520rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16521{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16522$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16523
16524# So? What about this header?
8a2fc586
AK
16525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16526 yes:no: )
ec6a6fbe
AK
16527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16528$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16530$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16531 ac_header_preproc=yes
ad6254c5 16532 ;;
8a2fc586 16533 no:yes:* )
ec6a6fbe
AK
16534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16535$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16537$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16539$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16541$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16543$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16545$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16546
ad6254c5
AK
16547 ;;
16548esac
ec6a6fbe
AK
16549{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16550$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16552 $as_echo_n "(cached) " >&6
ad6254c5 16553else
8a2fc586 16554 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16555fi
ec6a6fbe
AK
16556ac_res=`eval 'as_val=${'$as_ac_Header'}
16557 $as_echo "$as_val"'`
16558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16559$as_echo "$ac_res" >&6; }
ad6254c5
AK
16560
16561fi
ec6a6fbe
AK
16562as_val=`eval 'as_val=${'$as_ac_Header'}
16563 $as_echo "$as_val"'`
16564 if test "x$as_val" = x""yes; then
ad6254c5 16565 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16566#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16567_ACEOF
16568
16569else
ec6a6fbe
AK
16570 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16571$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16572 { (exit 1); exit 1; }; }
795ca3e5
AK
16573fi
16574
ad6254c5
AK
16575done
16576
16577
795ca3e5 16578
8106cdd5 16579
ad6254c5
AK
16580
16581
16582for ac_func in dup2 getmntent memmove select socket
16583do
ec6a6fbe
AK
16584as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16585{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16586$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16587if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16588 $as_echo_n "(cached) " >&6
795ca3e5 16589else
ad6254c5 16590 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16591/* confdefs.h. */
16592_ACEOF
16593cat confdefs.h >>conftest.$ac_ext
16594cat >>conftest.$ac_ext <<_ACEOF
16595/* end confdefs.h. */
8a2fc586
AK
16596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16598#define $ac_func innocuous_$ac_func
16599
795ca3e5 16600/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16601 which can conflict with char $ac_func (); below.
16602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16603 <limits.h> exists even on freestanding compilers. */
8a2fc586 16604
ad6254c5
AK
16605#ifdef __STDC__
16606# include <limits.h>
16607#else
16608# include <assert.h>
16609#endif
8a2fc586
AK
16610
16611#undef $ac_func
16612
7a197a62
AK
16613/* Override any GCC internal prototype to avoid an error.
16614 Use char because int might match the return type of a GCC
16615 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16616#ifdef __cplusplus
16617extern "C"
ad6254c5 16618#endif
ad6254c5 16619char $ac_func ();
795ca3e5
AK
16620/* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
7a197a62 16623#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16624choke me
795ca3e5
AK
16625#endif
16626
ad6254c5
AK
16627int
16628main ()
16629{
7a197a62 16630return $ac_func ();
ad6254c5
AK
16631 ;
16632 return 0;
16633}
16634_ACEOF
16635rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16636if { (ac_try="$ac_link"
16637case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640esac
ec6a6fbe
AK
16641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16642$as_echo "$ac_try_echo") >&5
7a197a62 16643 (eval "$ac_link") 2>conftest.er1
ad6254c5 16644 ac_status=$?
8a2fc586
AK
16645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
ec6a6fbe 16648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16649 (exit $ac_status); } && {
16650 test -z "$ac_c_werror_flag" ||
16651 test ! -s conftest.err
ec6a6fbe
AK
16652 } && test -s conftest$ac_exeext && {
16653 test "$cross_compiling" = yes ||
16654 $as_test_x conftest$ac_exeext
16655 }; then
ad6254c5 16656 eval "$as_ac_var=yes"
795ca3e5 16657else
ec6a6fbe 16658 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16659sed 's/^/| /' conftest.$ac_ext >&5
16660
7a197a62 16661 eval "$as_ac_var=no"
80992638 16662fi
7a197a62 16663
ec6a6fbe 16664rm -rf conftest.dSYM
25fbec5b 16665rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16666 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16667fi
ec6a6fbe
AK
16668ac_res=`eval 'as_val=${'$as_ac_var'}
16669 $as_echo "$as_val"'`
16670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16671$as_echo "$ac_res" >&6; }
16672as_val=`eval 'as_val=${'$as_ac_var'}
16673 $as_echo "$as_val"'`
16674 if test "x$as_val" = x""yes; then
ad6254c5 16675 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16676#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16677_ACEOF
80992638
AK
16678
16679else
ec6a6fbe
AK
16680 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16681$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16682 { (exit 1); exit 1; }; }
8106cdd5 16683fi
ad6254c5 16684done
795ca3e5 16685
25fbec5b
AK
16686 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16687# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16688{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16689$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16690if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16691 $as_echo_n "(cached) " >&6
25fbec5b
AK
16692else
16693 ac_func_search_save_LIBS=$LIBS
16694cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
80992638 16700
7a197a62
AK
16701/* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
ad6254c5 16703 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16704#ifdef __cplusplus
16705extern "C"
16706#endif
25fbec5b 16707char getmntent ();
ad6254c5
AK
16708int
16709main ()
16710{
25fbec5b 16711return getmntent ();
ad6254c5
AK
16712 ;
16713 return 0;
16714}
16715_ACEOF
25fbec5b
AK
16716for ac_lib in '' sun seq gen; do
16717 if test -z "$ac_lib"; then
16718 ac_res="none required"
16719 else
16720 ac_res=-l$ac_lib
16721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16722 fi
16723 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16724if { (ac_try="$ac_link"
16725case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16728esac
ec6a6fbe
AK
16729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16730$as_echo "$ac_try_echo") >&5
7a197a62 16731 (eval "$ac_link") 2>conftest.er1
ad6254c5 16732 ac_status=$?
8a2fc586
AK
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
ec6a6fbe 16736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16737 (exit $ac_status); } && {
16738 test -z "$ac_c_werror_flag" ||
16739 test ! -s conftest.err
ec6a6fbe
AK
16740 } && test -s conftest$ac_exeext && {
16741 test "$cross_compiling" = yes ||
16742 $as_test_x conftest$ac_exeext
16743 }; then
25fbec5b 16744 ac_cv_search_getmntent=$ac_res
80992638 16745else
ec6a6fbe 16746 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16747sed 's/^/| /' conftest.$ac_ext >&5
16748
25fbec5b 16749
795ca3e5
AK
16750fi
16751
ec6a6fbe 16752rm -rf conftest.dSYM
25fbec5b
AK
16753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16754 conftest$ac_exeext
16755 if test "${ac_cv_search_getmntent+set}" = set; then
16756 break
795ca3e5 16757fi
25fbec5b
AK
16758done
16759if test "${ac_cv_search_getmntent+set}" = set; then
16760 :
16761else
16762 ac_cv_search_getmntent=no
16763fi
16764rm conftest.$ac_ext
16765LIBS=$ac_func_search_save_LIBS
16766fi
ec6a6fbe
AK
16767{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16768$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16769ac_res=$ac_cv_search_getmntent
16770if test "$ac_res" != no; then
16771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16772 ac_cv_func_getmntent=yes
16773
16774cat >>confdefs.h <<\_ACEOF
9c961554 16775#define HAVE_GETMNTENT 1
ad6254c5 16776_ACEOF
795ca3e5 16777
25fbec5b
AK
16778else
16779 ac_cv_func_getmntent=no
795ca3e5 16780fi
795ca3e5
AK
16781
16782
ad6254c5
AK
16783
16784
16785for ac_header in sys/select.h sys/socket.h
16786do
ec6a6fbe 16787as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16788if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16790$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16792 $as_echo_n "(cached) " >&6
ad6254c5 16793fi
ec6a6fbe
AK
16794ac_res=`eval 'as_val=${'$as_ac_Header'}
16795 $as_echo "$as_val"'`
16796 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16797$as_echo "$ac_res" >&6; }
795ca3e5 16798else
ad6254c5 16799 # Is the header compilable?
ec6a6fbe
AK
16800{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16801$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16802cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16803/* confdefs.h. */
16804_ACEOF
16805cat confdefs.h >>conftest.$ac_ext
16806cat >>conftest.$ac_ext <<_ACEOF
16807/* end confdefs.h. */
16808$ac_includes_default
16809#include <$ac_header>
16810_ACEOF
16811rm -f conftest.$ac_objext
7a197a62
AK
16812if { (ac_try="$ac_compile"
16813case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16816esac
ec6a6fbe
AK
16817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16818$as_echo "$ac_try_echo") >&5
7a197a62 16819 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16820 ac_status=$?
8a2fc586
AK
16821 grep -v '^ *+' conftest.er1 >conftest.err
16822 rm -f conftest.er1
16823 cat conftest.err >&5
ec6a6fbe 16824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16825 (exit $ac_status); } && {
16826 test -z "$ac_c_werror_flag" ||
16827 test ! -s conftest.err
16828 } && test -s conftest.$ac_objext; then
ad6254c5 16829 ac_header_compiler=yes
80992638 16830else
ec6a6fbe 16831 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16832sed 's/^/| /' conftest.$ac_ext >&5
16833
7a197a62 16834 ac_header_compiler=no
ad6254c5 16835fi
7a197a62
AK
16836
16837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16838{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16839$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16840
16841# Is the header present?
ec6a6fbe
AK
16842{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16843$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16844cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16845/* confdefs.h. */
16846_ACEOF
16847cat confdefs.h >>conftest.$ac_ext
16848cat >>conftest.$ac_ext <<_ACEOF
16849/* end confdefs.h. */
16850#include <$ac_header>
16851_ACEOF
7a197a62
AK
16852if { (ac_try="$ac_cpp conftest.$ac_ext"
16853case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
ec6a6fbe
AK
16857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16858$as_echo "$ac_try_echo") >&5
7a197a62 16859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
ec6a6fbe 16864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16865 (exit $ac_status); } >/dev/null && {
16866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16867 test ! -s conftest.err
16868 }; then
ad6254c5
AK
16869 ac_header_preproc=yes
16870else
ec6a6fbe 16871 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16872sed 's/^/| /' conftest.$ac_ext >&5
16873
16874 ac_header_preproc=no
16875fi
7a197a62 16876
ad6254c5 16877rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16878{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16879$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16880
16881# So? What about this header?
8a2fc586
AK
16882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16883 yes:no: )
ec6a6fbe
AK
16884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16885$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16887$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16888 ac_header_preproc=yes
ad6254c5 16889 ;;
8a2fc586 16890 no:yes:* )
ec6a6fbe
AK
16891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16892$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16894$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16896$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16898$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16900$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16902$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16903
ad6254c5
AK
16904 ;;
16905esac
ec6a6fbe
AK
16906{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16907$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16909 $as_echo_n "(cached) " >&6
ad6254c5 16910else
8a2fc586 16911 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16912fi
ec6a6fbe
AK
16913ac_res=`eval 'as_val=${'$as_ac_Header'}
16914 $as_echo "$as_val"'`
16915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16916$as_echo "$ac_res" >&6; }
8106cdd5 16917
795ca3e5 16918fi
ec6a6fbe
AK
16919as_val=`eval 'as_val=${'$as_ac_Header'}
16920 $as_echo "$as_val"'`
16921 if test "x$as_val" = x""yes; then
ad6254c5 16922 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16924_ACEOF
16925
795ca3e5
AK
16926fi
16927
ad6254c5
AK
16928done
16929
ec6a6fbe
AK
16930{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16931$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16932if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16933 $as_echo_n "(cached) " >&6
26e7f2e0 16934else
ad6254c5 16935 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16936 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16937 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16938 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
16944$ac_includes_default
25fbec5b 16945#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16946# include <sys/select.h>
16947#endif
25fbec5b 16948#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16949# include <sys/socket.h>
16950#endif
16951
16952int
16953main ()
16954{
16955extern int select ($ac_arg1,
8a2fc586
AK
16956 $ac_arg234, $ac_arg234, $ac_arg234,
16957 $ac_arg5);
ad6254c5
AK
16958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext
7a197a62
AK
16963if { (ac_try="$ac_compile"
16964case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967esac
ec6a6fbe
AK
16968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16969$as_echo "$ac_try_echo") >&5
7a197a62 16970 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16971 ac_status=$?
8a2fc586
AK
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
ec6a6fbe 16975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16976 (exit $ac_status); } && {
16977 test -z "$ac_c_werror_flag" ||
16978 test ! -s conftest.err
16979 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16980 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16981else
ec6a6fbe 16982 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16983sed 's/^/| /' conftest.$ac_ext >&5
16984
7a197a62 16985
ad6254c5 16986fi
7a197a62
AK
16987
16988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16989 done
16990 done
16991done
16992# Provide a safe default value.
16993: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16994
26e7f2e0 16995fi
ec6a6fbe
AK
16996{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16997$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
16998ac_save_IFS=$IFS; IFS=','
16999set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
17000IFS=$ac_save_IFS
17001shift
17002
17003cat >>confdefs.h <<_ACEOF
17004#define SELECT_TYPE_ARG1 $1
17005_ACEOF
17006
17007
17008cat >>confdefs.h <<_ACEOF
17009#define SELECT_TYPE_ARG234 ($2)
17010_ACEOF
17011
17012
17013cat >>confdefs.h <<_ACEOF
17014#define SELECT_TYPE_ARG5 ($3)
17015_ACEOF
17016
80992638 17017rm -f conftest*
80992638 17018
8106cdd5 17019fi
ad6254c5 17020
ad6254c5
AK
17021if test x$CLUSTER != xnone; then
17022
17023
17024for ac_header in sys/socket.h sys/un.h
b896caa1 17025do
ec6a6fbe 17026as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17029$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17031 $as_echo_n "(cached) " >&6
ad6254c5 17032fi
ec6a6fbe
AK
17033ac_res=`eval 'as_val=${'$as_ac_Header'}
17034 $as_echo "$as_val"'`
17035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17036$as_echo "$ac_res" >&6; }
ad6254c5
AK
17037else
17038 # Is the header compilable?
ec6a6fbe
AK
17039{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17040$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17041cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17042/* confdefs.h. */
17043_ACEOF
17044cat confdefs.h >>conftest.$ac_ext
17045cat >>conftest.$ac_ext <<_ACEOF
17046/* end confdefs.h. */
17047$ac_includes_default
17048#include <$ac_header>
17049_ACEOF
17050rm -f conftest.$ac_objext
7a197a62
AK
17051if { (ac_try="$ac_compile"
17052case "(($ac_try" in
17053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17054 *) ac_try_echo=$ac_try;;
17055esac
ec6a6fbe
AK
17056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17057$as_echo "$ac_try_echo") >&5
7a197a62 17058 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17059 ac_status=$?
8a2fc586
AK
17060 grep -v '^ *+' conftest.er1 >conftest.err
17061 rm -f conftest.er1
17062 cat conftest.err >&5
ec6a6fbe 17063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17068 ac_header_compiler=yes
17069else
ec6a6fbe 17070 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17071sed 's/^/| /' conftest.$ac_ext >&5
17072
7a197a62 17073 ac_header_compiler=no
ad6254c5 17074fi
7a197a62
AK
17075
17076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17077{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17078$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17079
17080# Is the header present?
ec6a6fbe
AK
17081{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17082$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17083cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089#include <$ac_header>
17090_ACEOF
7a197a62
AK
17091if { (ac_try="$ac_cpp conftest.$ac_ext"
17092case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17095esac
ec6a6fbe
AK
17096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097$as_echo "$ac_try_echo") >&5
7a197a62 17098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
ec6a6fbe 17103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17104 (exit $ac_status); } >/dev/null && {
17105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 }; then
ad6254c5
AK
17108 ac_header_preproc=yes
17109else
ec6a6fbe 17110 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17111sed 's/^/| /' conftest.$ac_ext >&5
17112
17113 ac_header_preproc=no
17114fi
7a197a62 17115
ad6254c5 17116rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17117{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17118$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17119
17120# So? What about this header?
8a2fc586
AK
17121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17122 yes:no: )
ec6a6fbe
AK
17123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17124$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17126$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17127 ac_header_preproc=yes
ad6254c5 17128 ;;
8a2fc586 17129 no:yes:* )
ec6a6fbe
AK
17130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17131$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17133$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17135$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17137$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17139$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17141$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17142
ad6254c5
AK
17143 ;;
17144esac
ec6a6fbe
AK
17145{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17146$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17147if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17148 $as_echo_n "(cached) " >&6
ad6254c5 17149else
8a2fc586 17150 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 17151fi
ec6a6fbe
AK
17152ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17155$as_echo "$ac_res" >&6; }
ad6254c5
AK
17156
17157fi
ec6a6fbe
AK
17158as_val=`eval 'as_val=${'$as_ac_Header'}
17159 $as_echo "$as_val"'`
17160 if test "x$as_val" = x""yes; then
ad6254c5 17161 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17162#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
17163_ACEOF
17164
80992638 17165else
ec6a6fbe
AK
17166 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17167$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17168 { (exit 1); exit 1; }; }
b896caa1 17169fi
ad6254c5 17170
b896caa1
AK
17171done
17172
17173
ad6254c5
AK
17174for ac_func in socket
17175do
ec6a6fbe
AK
17176as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17177{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17178$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 17179if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17180 $as_echo_n "(cached) " >&6
795ca3e5 17181else
ad6254c5 17182 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17183/* confdefs.h. */
17184_ACEOF
17185cat confdefs.h >>conftest.$ac_ext
17186cat >>conftest.$ac_ext <<_ACEOF
17187/* end confdefs.h. */
8a2fc586
AK
17188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190#define $ac_func innocuous_$ac_func
17191
ad6254c5
AK
17192/* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char $ac_func (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
8a2fc586 17196
ad6254c5
AK
17197#ifdef __STDC__
17198# include <limits.h>
17199#else
17200# include <assert.h>
17201#endif
8a2fc586
AK
17202
17203#undef $ac_func
17204
7a197a62
AK
17205/* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
ad6254c5
AK
17208#ifdef __cplusplus
17209extern "C"
ad6254c5 17210#endif
ad6254c5
AK
17211char $ac_func ();
17212/* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
7a197a62 17215#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 17216choke me
ad6254c5
AK
17217#endif
17218
17219int
17220main ()
17221{
7a197a62 17222return $ac_func ();
ad6254c5
AK
17223 ;
17224 return 0;
17225}
17226_ACEOF
17227rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
17228if { (ac_try="$ac_link"
17229case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17232esac
ec6a6fbe
AK
17233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17234$as_echo "$ac_try_echo") >&5
7a197a62 17235 (eval "$ac_link") 2>conftest.er1
ad6254c5 17236 ac_status=$?
8a2fc586
AK
17237 grep -v '^ *+' conftest.er1 >conftest.err
17238 rm -f conftest.er1
17239 cat conftest.err >&5
ec6a6fbe 17240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
ec6a6fbe
AK
17244 } && test -s conftest$ac_exeext && {
17245 test "$cross_compiling" = yes ||
17246 $as_test_x conftest$ac_exeext
17247 }; then
ad6254c5
AK
17248 eval "$as_ac_var=yes"
17249else
ec6a6fbe 17250 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17251sed 's/^/| /' conftest.$ac_ext >&5
17252
7a197a62 17253 eval "$as_ac_var=no"
ad6254c5 17254fi
7a197a62 17255
ec6a6fbe 17256rm -rf conftest.dSYM
25fbec5b 17257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 17258 conftest$ac_exeext conftest.$ac_ext
ad6254c5 17259fi
ec6a6fbe
AK
17260ac_res=`eval 'as_val=${'$as_ac_var'}
17261 $as_echo "$as_val"'`
17262 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17263$as_echo "$ac_res" >&6; }
17264as_val=`eval 'as_val=${'$as_ac_var'}
17265 $as_echo "$as_val"'`
17266 if test "x$as_val" = x""yes; then
ad6254c5 17267 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17268#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
17269_ACEOF
17270
17271else
ec6a6fbe
AK
17272 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17273$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
17274 { (exit 1); exit 1; }; }
17275fi
17276done
17277
17278fi
17279
d911ec67
AK
17280if test x$DMEVENTD = xyes; then
17281
17282for ac_header in arpa/inet.h
17283do
17284as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17287$as_echo_n "checking for $ac_header... " >&6; }
17288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17289 $as_echo_n "(cached) " >&6
17290fi
17291ac_res=`eval 'as_val=${'$as_ac_Header'}
17292 $as_echo "$as_val"'`
17293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17294$as_echo "$ac_res" >&6; }
17295else
17296 # Is the header compilable?
17297{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17298$as_echo_n "checking $ac_header usability... " >&6; }
17299cat >conftest.$ac_ext <<_ACEOF
17300/* confdefs.h. */
17301_ACEOF
17302cat confdefs.h >>conftest.$ac_ext
17303cat >>conftest.$ac_ext <<_ACEOF
17304/* end confdefs.h. */
17305$ac_includes_default
17306#include <$ac_header>
17307_ACEOF
17308rm -f conftest.$ac_objext
17309if { (ac_try="$ac_compile"
17310case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313esac
17314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17315$as_echo "$ac_try_echo") >&5
17316 (eval "$ac_compile") 2>conftest.er1
17317 ac_status=$?
17318 grep -v '^ *+' conftest.er1 >conftest.err
17319 rm -f conftest.er1
17320 cat conftest.err >&5
17321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); } && {
17323 test -z "$ac_c_werror_flag" ||
17324 test ! -s conftest.err
17325 } && test -s conftest.$ac_objext; then
17326 ac_header_compiler=yes
17327else
17328 $as_echo "$as_me: failed program was:" >&5
17329sed 's/^/| /' conftest.$ac_ext >&5
17330
17331 ac_header_compiler=no
17332fi
17333
17334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17335{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17336$as_echo "$ac_header_compiler" >&6; }
17337
17338# Is the header present?
17339{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17340$as_echo_n "checking $ac_header presence... " >&6; }
17341cat >conftest.$ac_ext <<_ACEOF
17342/* confdefs.h. */
17343_ACEOF
17344cat confdefs.h >>conftest.$ac_ext
17345cat >>conftest.$ac_ext <<_ACEOF
17346/* end confdefs.h. */
17347#include <$ac_header>
17348_ACEOF
17349if { (ac_try="$ac_cpp conftest.$ac_ext"
17350case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17353esac
17354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17355$as_echo "$ac_try_echo") >&5
17356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } >/dev/null && {
17363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 }; then
17366 ac_header_preproc=yes
17367else
17368 $as_echo "$as_me: failed program was:" >&5
17369sed 's/^/| /' conftest.$ac_ext >&5
17370
17371 ac_header_preproc=no
17372fi
17373
17374rm -f conftest.err conftest.$ac_ext
17375{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17376$as_echo "$ac_header_preproc" >&6; }
17377
17378# So? What about this header?
17379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17380 yes:no: )
17381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17382$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17384$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17385 ac_header_preproc=yes
17386 ;;
17387 no:yes:* )
17388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17389$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17391$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17393$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17395$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17397$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17399$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17400
17401 ;;
17402esac
17403{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17404$as_echo_n "checking for $ac_header... " >&6; }
17405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17406 $as_echo_n "(cached) " >&6
17407else
17408 eval "$as_ac_Header=\$ac_header_preproc"
17409fi
17410ac_res=`eval 'as_val=${'$as_ac_Header'}
17411 $as_echo "$as_val"'`
17412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17413$as_echo "$ac_res" >&6; }
17414
17415fi
17416as_val=`eval 'as_val=${'$as_ac_Header'}
17417 $as_echo "$as_val"'`
17418 if test "x$as_val" = x""yes; then
17419 cat >>confdefs.h <<_ACEOF
17420#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17421_ACEOF
17422
17423else
17424 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17425$as_echo "$as_me: error: bailing out" >&2;}
17426 { (exit 1); exit 1; }; }
17427fi
17428
17429done
17430
17431fi
17432
ad6254c5
AK
17433if test x$HAVE_LIBDL = xyes; then
17434
17435for ac_header in dlfcn.h
17436do
ec6a6fbe 17437as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17439 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17440$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17442 $as_echo_n "(cached) " >&6
ad6254c5 17443fi
ec6a6fbe
AK
17444ac_res=`eval 'as_val=${'$as_ac_Header'}
17445 $as_echo "$as_val"'`
17446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17447$as_echo "$ac_res" >&6; }
ad6254c5
AK
17448else
17449 # Is the header compilable?
ec6a6fbe
AK
17450{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17451$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17452cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17453/* confdefs.h. */
17454_ACEOF
17455cat confdefs.h >>conftest.$ac_ext
17456cat >>conftest.$ac_ext <<_ACEOF
17457/* end confdefs.h. */
17458$ac_includes_default
17459#include <$ac_header>
17460_ACEOF
17461rm -f conftest.$ac_objext
7a197a62
AK
17462if { (ac_try="$ac_compile"
17463case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17466esac
ec6a6fbe
AK
17467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17468$as_echo "$ac_try_echo") >&5
7a197a62 17469 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17470 ac_status=$?
8a2fc586
AK
17471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
ec6a6fbe 17474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17475 (exit $ac_status); } && {
17476 test -z "$ac_c_werror_flag" ||
17477 test ! -s conftest.err
17478 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17479 ac_header_compiler=yes
17480else
ec6a6fbe 17481 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17482sed 's/^/| /' conftest.$ac_ext >&5
17483
7a197a62 17484 ac_header_compiler=no
ad6254c5 17485fi
7a197a62
AK
17486
17487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17488{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17489$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17490
17491# Is the header present?
ec6a6fbe
AK
17492{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17493$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17494cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17495/* confdefs.h. */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h. */
17500#include <$ac_header>
17501_ACEOF
7a197a62
AK
17502if { (ac_try="$ac_cpp conftest.$ac_ext"
17503case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17506esac
ec6a6fbe
AK
17507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17508$as_echo "$ac_try_echo") >&5
7a197a62 17509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17510 ac_status=$?
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
ec6a6fbe 17514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17515 (exit $ac_status); } >/dev/null && {
17516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17517 test ! -s conftest.err
17518 }; then
ad6254c5
AK
17519 ac_header_preproc=yes
17520else
ec6a6fbe 17521 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17522sed 's/^/| /' conftest.$ac_ext >&5
17523
17524 ac_header_preproc=no
17525fi
7a197a62 17526
ad6254c5 17527rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17528{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17529$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17530
17531# So? What about this header?
8a2fc586
AK
17532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17533 yes:no: )
ec6a6fbe
AK
17534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17535$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17537$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17538 ac_header_preproc=yes
ad6254c5 17539 ;;
8a2fc586 17540 no:yes:* )
ec6a6fbe
AK
17541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17542$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17544$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17546$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17548$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17550$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17552$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17553
ad6254c5
AK
17554 ;;
17555esac
ec6a6fbe
AK
17556{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17557$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17559 $as_echo_n "(cached) " >&6
ad6254c5 17560else
8a2fc586 17561 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17562fi
ec6a6fbe
AK
17563ac_res=`eval 'as_val=${'$as_ac_Header'}
17564 $as_echo "$as_val"'`
17565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17566$as_echo "$ac_res" >&6; }
80992638 17567
8106cdd5 17568fi
ec6a6fbe
AK
17569as_val=`eval 'as_val=${'$as_ac_Header'}
17570 $as_echo "$as_val"'`
17571 if test "x$as_val" = x""yes; then
ad6254c5 17572 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17574_ACEOF
795ca3e5
AK
17575
17576else
ec6a6fbe
AK
17577 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17578$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17579 { (exit 1); exit 1; }; }
795ca3e5
AK
17580fi
17581
ad6254c5 17582done
80992638 17583
ad6254c5 17584fi
80992638 17585
ad6254c5 17586if test x$INTL = xyes; then
83912faa 17587
ad6254c5
AK
17588for ac_header in libintl.h
17589do
ec6a6fbe 17590as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17593$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17595 $as_echo_n "(cached) " >&6
ad6254c5 17596fi
ec6a6fbe
AK
17597ac_res=`eval 'as_val=${'$as_ac_Header'}
17598 $as_echo "$as_val"'`
17599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17600$as_echo "$ac_res" >&6; }
83912faa 17601else
ad6254c5 17602 # Is the header compilable?
ec6a6fbe
AK
17603{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17604$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17605cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
17611$ac_includes_default
17612#include <$ac_header>
17613_ACEOF
17614rm -f conftest.$ac_objext
7a197a62
AK
17615if { (ac_try="$ac_compile"
17616case "(($ac_try" in
17617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618 *) ac_try_echo=$ac_try;;
17619esac
ec6a6fbe
AK
17620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17621$as_echo "$ac_try_echo") >&5
7a197a62 17622 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17623 ac_status=$?
8a2fc586
AK
17624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
ec6a6fbe 17627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17628 (exit $ac_status); } && {
17629 test -z "$ac_c_werror_flag" ||
17630 test ! -s conftest.err
17631 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17632 ac_header_compiler=yes
17633else
ec6a6fbe 17634 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17635sed 's/^/| /' conftest.$ac_ext >&5
17636
7a197a62 17637 ac_header_compiler=no
ad6254c5 17638fi
7a197a62
AK
17639
17640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17641{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17642$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17643
17644# Is the header present?
ec6a6fbe
AK
17645{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17646$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17647cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17648/* confdefs.h. */
17649_ACEOF
17650cat confdefs.h >>conftest.$ac_ext
17651cat >>conftest.$ac_ext <<_ACEOF
17652/* end confdefs.h. */
17653#include <$ac_header>
17654_ACEOF
7a197a62
AK
17655if { (ac_try="$ac_cpp conftest.$ac_ext"
17656case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17659esac
ec6a6fbe
AK
17660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17661$as_echo "$ac_try_echo") >&5
7a197a62 17662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17663 ac_status=$?
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
ec6a6fbe 17667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17668 (exit $ac_status); } >/dev/null && {
17669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17670 test ! -s conftest.err
17671 }; then
ad6254c5
AK
17672 ac_header_preproc=yes
17673else
ec6a6fbe 17674 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17675sed 's/^/| /' conftest.$ac_ext >&5
17676
17677 ac_header_preproc=no
17678fi
7a197a62 17679
ad6254c5 17680rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17681{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17682$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17683
17684# So? What about this header?
8a2fc586
AK
17685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17686 yes:no: )
ec6a6fbe
AK
17687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17688$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17690$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17691 ac_header_preproc=yes
ad6254c5 17692 ;;
8a2fc586 17693 no:yes:* )
ec6a6fbe
AK
17694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17695$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17697$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17699$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17701$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17703$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17705$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17706
ad6254c5
AK
17707 ;;
17708esac
ec6a6fbe
AK
17709{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17710$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17712 $as_echo_n "(cached) " >&6
80992638 17713else
8a2fc586 17714 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17715fi
ec6a6fbe
AK
17716ac_res=`eval 'as_val=${'$as_ac_Header'}
17717 $as_echo "$as_val"'`
17718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17719$as_echo "$ac_res" >&6; }
83912faa 17720
69792976 17721fi
ec6a6fbe
AK
17722as_val=`eval 'as_val=${'$as_ac_Header'}
17723 $as_echo "$as_val"'`
17724 if test "x$as_val" = x""yes; then
ad6254c5 17725 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17727_ACEOF
69792976 17728
69792976 17729else
ec6a6fbe
AK
17730 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17731$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17732 { (exit 1); exit 1; }; }
80992638
AK
17733fi
17734
ad6254c5 17735done
69792976 17736
ad6254c5
AK
17737fi
17738
a5f46f6a
AK
17739if test x$UDEV_SYNC = xyes; then
17740
17741
17742for ac_header in sys/ipc.h sys/sem.h
17743do
17744as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17747$as_echo_n "checking for $ac_header... " >&6; }
17748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17749 $as_echo_n "(cached) " >&6
17750fi
17751ac_res=`eval 'as_val=${'$as_ac_Header'}
17752 $as_echo "$as_val"'`
17753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17754$as_echo "$ac_res" >&6; }
17755else
17756 # Is the header compilable?
17757{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17758$as_echo_n "checking $ac_header usability... " >&6; }
17759cat >conftest.$ac_ext <<_ACEOF
17760/* confdefs.h. */
17761_ACEOF
17762cat confdefs.h >>conftest.$ac_ext
17763cat >>conftest.$ac_ext <<_ACEOF
17764/* end confdefs.h. */
17765$ac_includes_default
17766#include <$ac_header>
17767_ACEOF
17768rm -f conftest.$ac_objext
17769if { (ac_try="$ac_compile"
17770case "(($ac_try" in
17771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772 *) ac_try_echo=$ac_try;;
17773esac
17774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17775$as_echo "$ac_try_echo") >&5
17776 (eval "$ac_compile") 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest.$ac_objext; then
17786 ac_header_compiler=yes
17787else
17788 $as_echo "$as_me: failed program was:" >&5
17789sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_header_compiler=no
17792fi
17793
17794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17796$as_echo "$ac_header_compiler" >&6; }
17797
17798# Is the header present?
17799{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17800$as_echo_n "checking $ac_header presence... " >&6; }
17801cat >conftest.$ac_ext <<_ACEOF
17802/* confdefs.h. */
17803_ACEOF
17804cat confdefs.h >>conftest.$ac_ext
17805cat >>conftest.$ac_ext <<_ACEOF
17806/* end confdefs.h. */
17807#include <$ac_header>
17808_ACEOF
17809if { (ac_try="$ac_cpp conftest.$ac_ext"
17810case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813esac
17814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17815$as_echo "$ac_try_echo") >&5
17816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17817 ac_status=$?
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
17821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } >/dev/null && {
17823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17824 test ! -s conftest.err
17825 }; then
17826 ac_header_preproc=yes
17827else
17828 $as_echo "$as_me: failed program was:" >&5
17829sed 's/^/| /' conftest.$ac_ext >&5
17830
17831 ac_header_preproc=no
17832fi
17833
17834rm -f conftest.err conftest.$ac_ext
17835{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17836$as_echo "$ac_header_preproc" >&6; }
17837
17838# So? What about this header?
17839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17840 yes:no: )
17841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17842$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17844$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17845 ac_header_preproc=yes
17846 ;;
17847 no:yes:* )
17848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17849$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17851$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17853$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17855$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17857$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17859$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17860
17861 ;;
17862esac
17863{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17864$as_echo_n "checking for $ac_header... " >&6; }
17865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17866 $as_echo_n "(cached) " >&6
17867else
17868 eval "$as_ac_Header=\$ac_header_preproc"
17869fi
17870ac_res=`eval 'as_val=${'$as_ac_Header'}
17871 $as_echo "$as_val"'`
17872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17873$as_echo "$ac_res" >&6; }
17874
17875fi
17876as_val=`eval 'as_val=${'$as_ac_Header'}
17877 $as_echo "$as_val"'`
17878 if test "x$as_val" = x""yes; then
17879 cat >>confdefs.h <<_ACEOF
17880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17881_ACEOF
17882
17883else
17884 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17885$as_echo "$as_me: error: bailing out" >&2;}
17886 { (exit 1); exit 1; }; }
17887fi
17888
17889done
17890
17891fi
17892
a653923f
AK
17893################################################################################
17894# Extract the first word of "modprobe", so it can be a program name with args.
17895set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17897$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17898if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17899 $as_echo_n "(cached) " >&6
72b2cb61
AK
17900else
17901 case $MODPROBE_CMD in
17902 [\\/]* | ?:[\\/]*)
17903 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17904 ;;
17905 *)
17906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17907for as_dir in $PATH
17908do
17909 IFS=$as_save_IFS
17910 test -z "$as_dir" && as_dir=.
17911 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17913 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17915 break 2
17916 fi
17917done
17918done
7a197a62 17919IFS=$as_save_IFS
72b2cb61
AK
17920
17921 ;;
17922esac
17923fi
17924MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17925if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17926 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17927$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17928else
ec6a6fbe
AK
17929 { $as_echo "$as_me:$LINENO: result: no" >&5
17930$as_echo "no" >&6; }
72b2cb61
AK
17931fi
17932
a653923f 17933
7a197a62 17934
a653923f 17935if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17936
17937cat >>confdefs.h <<_ACEOF
17938#define MODPROBE_CMD "$MODPROBE_CMD"
17939_ACEOF
17940
a653923f
AK
17941fi
17942
b5c2529b 17943
a9b601e2
ZK
17944lvm_exec_prefix=$exec_prefix
17945test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17946test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17947
b5c2529b 17948cat >>confdefs.h <<_ACEOF
a9b601e2 17949#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17950_ACEOF
17951
17952
17953if test "$CLVMD" != none; then
17954 clvmd_prefix=$ac_default_prefix
17955 test "$prefix" != NONE && clvmd_prefix=$prefix
17956
17957cat >>confdefs.h <<_ACEOF
17958#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17959_ACEOF
17960
17961fi
17962
80992638 17963################################################################################
93bd259b
AK
17964if test "$BUILD_DMEVENTD" = yes; then
17965
17966# Check whether --with-dmeventd-pidfile was given.
17967if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17968 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17969else
71082be4 17970 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17971fi
17972
93bd259b 17973
71082be4
ZK
17974cat >>confdefs.h <<_ACEOF
17975#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17976_ACEOF
93bd259b 17977
71082be4 17978fi
93bd259b
AK
17979
17980if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17981
17982# Check whether --with-dmeventd-path was given.
17983if test "${with_dmeventd_path+set}" = set; then
71082be4 17984 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 17985else
71082be4 17986 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17987fi
17988
93bd259b 17989
71082be4
ZK
17990cat >>confdefs.h <<_ACEOF
17991#define DMEVENTD_PATH "$DMEVENTD_PATH"
17992_ACEOF
3399ae32 17993
71082be4 17994fi
3399ae32 17995
8bae0a1e
AK
17996
17997
17998
17999# Check whether --with-default-run-dir was given.
18000if test "${with_default_run_dir+set}" = set; then
18001 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
18002else
18003 DEFAULT_RUN_DIR="/var/run/lvm"
18004fi
18005
18006cat >>confdefs.h <<_ACEOF
18007#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
18008_ACEOF
18009
18010
71082be4 18011################################################################################
3399ae32
AK
18012
18013# Check whether --with-default-system-dir was given.
18014if test "${with_default_system_dir+set}" = set; then
71082be4 18015 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 18016else
71082be4 18017 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
18018fi
18019
71082be4 18020
3399ae32
AK
18021cat >>confdefs.h <<_ACEOF
18022#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
18023_ACEOF
18024
18025
18026
3399ae32
AK
18027# Check whether --with-default-archive-subdir was given.
18028if test "${with_default_archive_subdir+set}" = set; then
71082be4 18029 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 18030else
71082be4 18031 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
18032fi
18033
71082be4 18034
3399ae32
AK
18035cat >>confdefs.h <<_ACEOF
18036#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
18037_ACEOF
18038
18039
18040
3399ae32
AK
18041# Check whether --with-default-backup-subdir was given.
18042if test "${with_default_backup_subdir+set}" = set; then
71082be4 18043 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 18044else
71082be4 18045 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
18046fi
18047
71082be4 18048
3399ae32
AK
18049cat >>confdefs.h <<_ACEOF
18050#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
18051_ACEOF
18052
18053
18054
3399ae32
AK
18055# Check whether --with-default-cache-subdir was given.
18056if test "${with_default_cache_subdir+set}" = set; then
71082be4 18057 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 18058else
71082be4 18059 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
18060fi
18061
71082be4 18062
3399ae32
AK
18063cat >>confdefs.h <<_ACEOF
18064#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
18065_ACEOF
18066
18067
18068
3399ae32
AK
18069# Check whether --with-default-locking-dir was given.
18070if test "${with_default_locking_dir+set}" = set; then
71082be4 18071 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 18072else
71082be4 18073 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
18074fi
18075
71082be4 18076
3399ae32
AK
18077cat >>confdefs.h <<_ACEOF
18078#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
18079_ACEOF
18080
18081
93bd259b 18082################################################################################
ec6a6fbe
AK
18083{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
18084$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
18085
18086# Check whether --with-interface was given.
18087if test "${with_interface+set}" = set; then
71082be4 18088 withval=$with_interface; interface=$withval
93bd259b 18089else
71082be4 18090 interface=ioctl
93bd259b
AK
18091fi
18092
18093if [ "x$interface" != xioctl ];
18094then
ec6a6fbe
AK
18095 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
18096$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
18097 { (exit 1); exit 1; }; }
18098fi
ec6a6fbe
AK
18099{ $as_echo "$as_me:$LINENO: result: $interface" >&5
18100$as_echo "$interface" >&6; }
93bd259b
AK
18101
18102################################################################################
db8b5af9 18103DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
18104
18105cat >>confdefs.h <<_ACEOF
18106#define DM_LIB_VERSION $DM_LIB_VERSION
18107_ACEOF
18108
18109
db8b5af9 18110DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 18111
db8b5af9 18112LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 18113
db8b5af9 18114VER=`cat "$srcdir"/VERSION`
bf456146 18115LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
18116VER=`echo "$VER" | $AWK '{print $1}'`
18117LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
18118VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
18119LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
18120LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
18121LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
18122LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 18123
80992638 18124################################################################################
fae0c576 18125
83912faa 18126
795ca3e5
AK
18127
18128
18129
18130
18131
18132
5a52dca9 18133
8ef2b021 18134
199e490e 18135
69792976
AK
18136
18137
18138
d0191583 18139
69792976 18140
8106cdd5
AK
18141
18142
18143
18144
18145
d68a82ec 18146
036f273a 18147
7d1552c9 18148
8106cdd5 18149
0a62c911 18150
8106cdd5 18151
4a7f3eb2 18152
4922197a
AK
18153
18154
d8ac0fbc 18155
1a9ea74d 18156
8a2fc586
AK
18157
18158
d0191583 18159
93bd259b
AK
18160
18161
18162
18163
18164
d0191583
JM
18165
18166
18167
18168
18169
8a2fc586 18170
19a2c6e0 18171
f7f0854e
ZK
18172
18173
3ceb7608 18174
8ce0cbda 18175
8b1a3214 18176
ec6a6fbe
AK
18177
18178
18179
18180
e2997b73
AK
18181
18182
18183
18184
18185
18186
a946372e
AK
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
ec6a6fbe 18198
33f732c5 18199
66e941e8 18200
d3c8211f 18201
7e3fe830 18202
a5f46f6a
AK
18203
18204
18205
572fefeb 18206
90c80887 18207
3399ae32
AK
18208
18209
18210
18211
18212
90c80887 18213
bf456146 18214
e1b8a236 18215
0878503f 18216
8fea97b7 18217
54b362f9 18218
b1f08e51 18219
d1e8046f 18220
68f2de6d
AK
18221
18222
80992638 18223################################################################################
d1e8046f 18224ac_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 18225
ad6254c5 18226cat >confcache <<\_ACEOF
795ca3e5
AK
18227# This file is a shell script that caches the results of configure
18228# tests run on this system so they can be shared between configure
ad6254c5
AK
18229# scripts and configure runs, see configure's option --config-cache.
18230# It is not useful on other systems. If it contains results you don't
18231# want to keep, you may remove or edit it.
795ca3e5 18232#
ad6254c5
AK
18233# config.status only pays attention to the cache file if you give it
18234# the --recheck option to rerun configure.
795ca3e5 18235#
ad6254c5
AK
18236# `ac_cv_env_foo' variables (set or unset) will be overridden when
18237# loading this file, other *unset* `ac_cv_foo' will be assigned the
18238# following values.
18239
18240_ACEOF
18241
795ca3e5
AK
18242# The following way of writing the cache mishandles newlines in values,
18243# but we know of no workaround that is simple, portable, and efficient.
7a197a62 18244# So, we kill variables containing newlines.
795ca3e5
AK
18245# Ultrix sh set writes to stderr and can't be redirected directly,
18246# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
18247(
18248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18249 eval ac_val=\$$ac_var
18250 case $ac_val in #(
18251 *${as_nl}*)
18252 case $ac_var in #(
ec6a6fbe
AK
18253 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18254$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
18255 esac
18256 case $ac_var in #(
18257 _ | IFS | as_nl) ;; #(
ec6a6fbe 18258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
18259 *) $as_unset $ac_var ;;
18260 esac ;;
18261 esac
18262 done
18263
ad6254c5 18264 (set) 2>&1 |
7a197a62
AK
18265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18266 *${as_nl}ac_space=\ *)
ad6254c5
AK
18267 # `set' does not quote correctly, so add quotes (double-quote
18268 # substitution turns \\\\ into \\, and sed turns \\ into \).
18269 sed -n \
8a2fc586
AK
18270 "s/'/'\\\\''/g;
18271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 18272 ;; #(
ad6254c5
AK
18273 *)
18274 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 18275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 18276 ;;
7a197a62
AK
18277 esac |
18278 sort
18279) |
ad6254c5 18280 sed '
7a197a62 18281 /^ac_cv_env_/b end
ad6254c5 18282 t clear
7a197a62 18283 :clear
ad6254c5
AK
18284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18285 t end
7a197a62
AK
18286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18287 :end' >>confcache
18288if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18289 if test -w "$cache_file"; then
18290 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
18291 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18292$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 18293 cat confcache >$cache_file
795ca3e5 18294 else
ec6a6fbe
AK
18295 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18296$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
18297 fi
18298fi
18299rm -f confcache
18300
795ca3e5
AK
18301test "x$prefix" = xNONE && prefix=$ac_default_prefix
18302# Let make expand exec_prefix.
18303test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18304
72b2cb61 18305DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18306
18307ac_libobjs=
18308ac_ltlibobjs=
18309for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18310 # 1. Remove the extension, and $U if already installed.
7a197a62 18311 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18312 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18313 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18314 # will be set to the directory where LIBOBJS objects are built.
18315 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18316 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18317done
18318LIBOBJS=$ac_libobjs
80992638 18319
ad6254c5
AK
18320LTLIBOBJS=$ac_ltlibobjs
18321
18322
18323
18324: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18325ac_write_fail=0
ad6254c5
AK
18326ac_clean_files_save=$ac_clean_files
18327ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18328{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18329$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18330cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18331#! $SHELL
18332# Generated by $as_me.
795ca3e5 18333# Run this file to recreate the current configuration.
795ca3e5 18334# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18335# configure, is in config.log if it exists.
18336
18337debug=false
18338ac_cs_recheck=false
18339ac_cs_silent=false
18340SHELL=\${CONFIG_SHELL-$SHELL}
18341_ACEOF
18342
ec6a6fbe 18343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18344## --------------------- ##
18345## M4sh Initialization. ##
18346## --------------------- ##
18347
25fbec5b
AK
18348# Be more Bourne compatible
18349DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18350if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18351 emulate sh
18352 NULLCMD=:
ec6a6fbe 18353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18354 # is contrary to our usage. Disable this feature.
18355 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18356 setopt NO_GLOB_SUBST
18357else
25fbec5b
AK
18358 case `(set -o) 2>/dev/null` in
18359 *posix*) set -o posix ;;
18360esac
18361
7a197a62 18362fi
25fbec5b
AK
18363
18364
7a197a62
AK
18365
18366
18367# PATH needs CR
18368# Avoid depending upon Character Ranges.
18369as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18370as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18371as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18372as_cr_digits='0123456789'
18373as_cr_alnum=$as_cr_Letters$as_cr_digits
18374
ec6a6fbe
AK
18375as_nl='
18376'
18377export as_nl
18378# Printing a long string crashes Solaris 7 /usr/bin/printf.
18379as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18380as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18381as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18382if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18383 as_echo='printf %s\n'
18384 as_echo_n='printf %s'
18385else
18386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18388 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18389 else
ec6a6fbe
AK
18390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18391 as_echo_n_body='eval
18392 arg=$1;
18393 case $arg in
18394 *"$as_nl"*)
18395 expr "X$arg" : "X\\(.*\\)$as_nl";
18396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18397 esac;
18398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18399 '
18400 export as_echo_n_body
18401 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18402 fi
ec6a6fbe
AK
18403 export as_echo_body
18404 as_echo='sh -c $as_echo_body as_echo'
18405fi
18406
18407# The user is always right.
18408if test "${PATH_SEPARATOR+set}" != set; then
18409 PATH_SEPARATOR=:
18410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18412 PATH_SEPARATOR=';'
18413 }
ad6254c5
AK
18414fi
18415
18416# Support unset when possible.
8a2fc586 18417if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18418 as_unset=unset
18419else
18420 as_unset=false
18421fi
8106cdd5 18422
ad6254c5 18423
7a197a62
AK
18424# IFS
18425# We need space, tab and new line, in precisely that order. Quoting is
18426# there to prevent editors from complaining about space-tab.
18427# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18428# splitting by setting IFS to empty value.)
7a197a62
AK
18429IFS=" "" $as_nl"
18430
18431# Find who we are. Look in the path if we contain no directory separator.
18432case $0 in
18433 *[\\/]* ) as_myself=$0 ;;
18434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18435for as_dir in $PATH
18436do
18437 IFS=$as_save_IFS
18438 test -z "$as_dir" && as_dir=.
18439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18440done
18441IFS=$as_save_IFS
18442
18443 ;;
18444esac
18445# We did not find ourselves, most probably we were run as `sh COMMAND'
18446# in which case we are not to be found in the path.
18447if test "x$as_myself" = x; then
18448 as_myself=$0
18449fi
18450if test ! -f "$as_myself"; then
ec6a6fbe 18451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18452 { (exit 1); exit 1; }
18453fi
18454
ad6254c5 18455# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18456for as_var in ENV MAIL MAILPATH
18457do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18458done
ad6254c5
AK
18459PS1='$ '
18460PS2='> '
18461PS4='+ '
18462
18463# NLS nuisances.
ec6a6fbe
AK
18464LC_ALL=C
18465export LC_ALL
18466LANGUAGE=C
18467export LANGUAGE
8106cdd5 18468
ad6254c5 18469# Required to use basename.
7a197a62
AK
18470if expr a : '\(a\)' >/dev/null 2>&1 &&
18471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18472 as_expr=expr
18473else
18474 as_expr=false
18475fi
8106cdd5 18476
7a197a62 18477if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18478 as_basename=basename
18479else
18480 as_basename=false
18481fi
18482
18483
18484# Name of the executable.
7a197a62 18485as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18486$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18487 X"$0" : 'X\(//\)$' \| \
7a197a62 18488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18489$as_echo X/"$0" |
7a197a62
AK
18490 sed '/^.*\/\([^/][^/]*\)\/*$/{
18491 s//\1/
18492 q
18493 }
18494 /^X\/\(\/\/\)$/{
18495 s//\1/
18496 q
18497 }
18498 /^X\/\(\/\).*/{
18499 s//\1/
18500 q
18501 }
18502 s/.*/./; q'`
ad6254c5 18503
7a197a62
AK
18504# CDPATH.
18505$as_unset CDPATH
ad6254c5
AK
18506
18507
ad6254c5 18508
ad6254c5
AK
18509 as_lineno_1=$LINENO
18510 as_lineno_2=$LINENO
ad6254c5 18511 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18512 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18513
ad6254c5
AK
18514 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18515 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18516 # line-number line after each line using $LINENO; the second 'sed'
18517 # does the real work. The second script uses 'N' to pair each
18518 # line-number line with the line containing $LINENO, and appends
18519 # trailing '-' during substitution so that $LINENO is not a special
18520 # case at line end.
ad6254c5 18521 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18522 # scripts with optimization help from Paolo Bonzini. Blame Lee
18523 # E. McMahon (1931-1989) for sed's syntax. :-)
18524 sed -n '
18525 p
18526 /[$]LINENO/=
18527 ' <$as_myself |
ad6254c5 18528 sed '
7a197a62
AK
18529 s/[$]LINENO.*/&-/
18530 t lineno
18531 b
18532 :lineno
ad6254c5 18533 N
7a197a62
AK
18534 :loop
18535 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18536 t loop
7a197a62 18537 s/-\n.*//
ad6254c5 18538 ' >$as_me.lineno &&
7a197a62 18539 chmod +x "$as_me.lineno" ||
ec6a6fbe 18540 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18541 { (exit 1); exit 1; }; }
18542
18543 # Don't try to exec as it changes $[0], causing all sort of problems
18544 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18545 # original and so on. Autoconf is especially sensitive to this).
18546 . "./$as_me.lineno"
ad6254c5
AK
18547 # Exit status is that of the last command.
18548 exit
18549}
18550
18551
7a197a62
AK
18552if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18553 as_dirname=dirname
18554else
18555 as_dirname=false
18556fi
18557
18558ECHO_C= ECHO_N= ECHO_T=
18559case `echo -n x` in
18560-n*)
18561 case `echo 'x\c'` in
18562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18563 *) ECHO_C='\c';;
18564 esac;;
18565*)
18566 ECHO_N='-n';;
ad6254c5 18567esac
7a197a62
AK
18568if expr a : '\(a\)' >/dev/null 2>&1 &&
18569 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18570 as_expr=expr
18571else
18572 as_expr=false
18573fi
80992638 18574
ad6254c5 18575rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18576if test -d conf$$.dir; then
18577 rm -f conf$$.dir/conf$$.file
18578else
18579 rm -f conf$$.dir
ec6a6fbe
AK
18580 mkdir conf$$.dir 2>/dev/null
18581fi
18582if (echo >conf$$.file) 2>/dev/null; then
18583 if ln -s conf$$.file conf$$ 2>/dev/null; then
18584 as_ln_s='ln -s'
18585 # ... but there are two gotchas:
18586 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18587 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18588 # In both cases, we have to default to `cp -p'.
18589 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18590 as_ln_s='cp -p'
18591 elif ln conf$$.file conf$$ 2>/dev/null; then
18592 as_ln_s=ln
18593 else
ad6254c5 18594 as_ln_s='cp -p'
ec6a6fbe 18595 fi
ad6254c5
AK
18596else
18597 as_ln_s='cp -p'
18598fi
7a197a62
AK
18599rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18600rmdir conf$$.dir 2>/dev/null
8106cdd5 18601
ad6254c5
AK
18602if mkdir -p . 2>/dev/null; then
18603 as_mkdir_p=:
18604else
8a2fc586 18605 test -d ./-p && rmdir ./-p
ad6254c5
AK
18606 as_mkdir_p=false
18607fi
18608
25fbec5b
AK
18609if test -x / >/dev/null 2>&1; then
18610 as_test_x='test -x'
7a197a62 18611else
25fbec5b
AK
18612 if ls -dL / >/dev/null 2>&1; then
18613 as_ls_L_option=L
18614 else
18615 as_ls_L_option=
18616 fi
18617 as_test_x='
18618 eval sh -c '\''
18619 if test -d "$1"; then
ec6a6fbe 18620 test -d "$1/.";
25fbec5b
AK
18621 else
18622 case $1 in
ec6a6fbe 18623 -*)set "./$1";;
25fbec5b
AK
18624 esac;
18625 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18626 ???[sx]*):;;*)false;;esac;fi
18627 '\'' sh
18628 '
7a197a62 18629fi
25fbec5b 18630as_executable_p=$as_test_x
ad6254c5
AK
18631
18632# Sed expression to map a string onto a valid CPP name.
8a2fc586 18633as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18634
18635# Sed expression to map a string onto a valid variable name.
8a2fc586 18636as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18637
18638
ad6254c5
AK
18639exec 6>&1
18640
7a197a62 18641# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18642# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18643# values after options handling.
18644ac_log="
ad6254c5 18645This file was extended by $as_me, which was
ec6a6fbe 18646generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18647
18648 CONFIG_FILES = $CONFIG_FILES
18649 CONFIG_HEADERS = $CONFIG_HEADERS
18650 CONFIG_LINKS = $CONFIG_LINKS
18651 CONFIG_COMMANDS = $CONFIG_COMMANDS
18652 $ $0 $@
18653
7a197a62
AK
18654on `(hostname || uname -n) 2>/dev/null | sed 1q`
18655"
18656
ad6254c5
AK
18657_ACEOF
18658
ec6a6fbe
AK
18659case $ac_config_files in *"
18660"*) set x $ac_config_files; shift; ac_config_files=$*;;
18661esac
18662
18663case $ac_config_headers in *"
18664"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18665esac
18666
18667
18668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18669# Files that config.status was made for.
68f2de6d
AK
18670config_files="$ac_config_files"
18671config_headers="$ac_config_headers"
ad6254c5 18672
7a197a62 18673_ACEOF
ad6254c5 18674
ec6a6fbe 18675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18676ac_cs_usage="\
18677\`$as_me' instantiates files from templates according to the
18678current configuration.
18679
ec6a6fbe 18680Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18681
18682 -h, --help print this help, then exit
25fbec5b 18683 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18684 -q, --quiet, --silent
18685 do not print progress messages
ad6254c5
AK
18686 -d, --debug don't remove temporary files
18687 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18688 --file=FILE[:TEMPLATE]
18689 instantiate the configuration file FILE
18690 --header=FILE[:TEMPLATE]
18691 instantiate the configuration header FILE
ad6254c5
AK
18692
18693Configuration files:
18694$config_files
18695
72b2cb61
AK
18696Configuration headers:
18697$config_headers
18698
ad6254c5 18699Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18700
7a197a62 18701_ACEOF
ec6a6fbe 18702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18703ac_cs_version="\\
18704config.status
ec6a6fbe
AK
18705configured by $0, generated by GNU Autoconf 2.63,
18706 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18707
ec6a6fbe 18708Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18709This config.status script is free software; the Free Software Foundation
18710gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18711
18712ac_pwd='$ac_pwd'
18713srcdir='$srcdir'
18714INSTALL='$INSTALL'
fddafd51 18715MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18716AWK='$AWK'
18717test -n "\$AWK" || AWK=awk
ad6254c5
AK
18718_ACEOF
18719
ec6a6fbe
AK
18720cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18721# The default lists apply if the user does not specify any file.
ad6254c5
AK
18722ac_need_defaults=:
18723while test $# != 0
18724do
18725 case $1 in
18726 --*=*)
7a197a62
AK
18727 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18728 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18729 ac_shift=:
18730 ;;
7a197a62 18731 *)
ad6254c5
AK
18732 ac_option=$1
18733 ac_optarg=$2
18734 ac_shift=shift
18735 ;;
ad6254c5
AK
18736 esac
18737
18738 case $ac_option in
18739 # Handling of the options.
ad6254c5
AK
18740 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18741 ac_cs_recheck=: ;;
7a197a62 18742 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18743 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18744 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18745 debug=: ;;
18746 --file | --fil | --fi | --f )
18747 $ac_shift
ec6a6fbe
AK
18748 case $ac_optarg in
18749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18750 esac
18751 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18752 ac_need_defaults=false;;
18753 --header | --heade | --head | --hea )
18754 $ac_shift
ec6a6fbe
AK
18755 case $ac_optarg in
18756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18757 esac
18758 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18759 ac_need_defaults=false;;
7a197a62
AK
18760 --he | --h)
18761 # Conflict between --help and --header
ec6a6fbe 18762 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18763Try \`$0 --help' for more information." >&2
18764 { (exit 1); exit 1; }; };;
18765 --help | --hel | -h )
ec6a6fbe 18766 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18768 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18769 ac_cs_silent=: ;;
18770
18771 # This is an error.
ec6a6fbe 18772 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18773Try \`$0 --help' for more information." >&2
ad6254c5
AK
18774 { (exit 1); exit 1; }; } ;;
18775
7a197a62
AK
18776 *) ac_config_targets="$ac_config_targets $1"
18777 ac_need_defaults=false ;;
ad6254c5
AK
18778
18779 esac
18780 shift
18781done
18782
18783ac_configure_extra_args=
18784
18785if $ac_cs_silent; then
18786 exec 6>/dev/null
18787 ac_configure_extra_args="$ac_configure_extra_args --silent"
18788fi
18789
18790_ACEOF
ec6a6fbe 18791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18792if \$ac_cs_recheck; then
ec6a6fbe
AK
18793 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18794 shift
18795 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18796 CONFIG_SHELL='$SHELL'
7a197a62 18797 export CONFIG_SHELL
ec6a6fbe 18798 exec "\$@"
ad6254c5
AK
18799fi
18800
18801_ACEOF
ec6a6fbe 18802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18803exec 5>>config.log
18804{
18805 echo
18806 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18807## Running $as_me. ##
18808_ASBOX
ec6a6fbe 18809 $as_echo "$ac_log"
7a197a62 18810} >&5
ad6254c5 18811
7a197a62 18812_ACEOF
ec6a6fbe 18813cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18814_ACEOF
ad6254c5 18815
ec6a6fbe 18816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18817
18818# Handling of arguments.
ad6254c5
AK
18819for ac_config_target in $ac_config_targets
18820do
7a197a62
AK
18821 case $ac_config_target in
18822 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18823 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18824 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18825 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18826 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18827 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18828 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18829 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18830 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18831 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18832 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18833 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18834 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18835 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18836 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18837 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18838 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18839 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18840 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18841 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18842 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18843 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18844 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18845 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18846 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18847 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18848 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18849 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18850 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18851 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18852 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18853 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18854 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18855 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18856 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18857 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18858 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18859 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
18860 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18861 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 18862 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 18863
ec6a6fbe
AK
18864 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18865$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18866 { (exit 1); exit 1; }; };;
80992638 18867 esac
ad6254c5
AK
18868done
18869
7a197a62 18870
ad6254c5
AK
18871# If the user did not use the arguments to specify the items to instantiate,
18872# then the envvar interface is used. Set only those that are not.
18873# We use the long form for the default assignment because of an extremely
18874# bizarre bug on SunOS 4.1.3.
18875if $ac_need_defaults; then
18876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18878fi
18879
18880# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18881# simply because there is no reason against having it here, and in addition,
ad6254c5 18882# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18883# Hook for its removal unless debugging.
18884# Note that there is a small window in which the directory will not be cleaned:
18885# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18886$debug ||
18887{
7a197a62
AK
18888 tmp=
18889 trap 'exit_status=$?
18890 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18891' 0
ad6254c5
AK
18892 trap '{ (exit 1); exit 1; }' 1 2 13 15
18893}
ad6254c5
AK
18894# Create a (secure) tmp directory for tmp files.
18895
18896{
7a197a62 18897 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18898 test -n "$tmp" && test -d "$tmp"
18899} ||
18900{
7a197a62
AK
18901 tmp=./conf$$-$RANDOM
18902 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18903} ||
18904{
ec6a6fbe 18905 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18906 { (exit 1); exit 1; }
18907}
18908
ec6a6fbe
AK
18909# Set up the scripts for CONFIG_FILES section.
18910# No need to generate them if there are no CONFIG_FILES.
18911# This happens for instance with `./config.status config.h'.
1995c9ff 18912if test -n "$CONFIG_FILES"; then
7a197a62 18913
68f2de6d 18914
ec6a6fbe
AK
18915ac_cr='\r'
18916ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18917if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18918 ac_cs_awk_cr='\\r'
18919else
18920 ac_cs_awk_cr=$ac_cr
1995c9ff 18921fi
7a197a62 18922
ec6a6fbe 18923echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18924_ACEOF
7a197a62 18925
8106cdd5 18926
ec6a6fbe
AK
18927{
18928 echo "cat >conf$$subs.awk <<_ACEOF" &&
18929 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18930 echo "_ACEOF"
18931} >conf$$subs.sh ||
18932 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18933$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18934 { (exit 1); exit 1; }; }
18935ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18936ac_delim='%!_!# '
18937for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18938 . ./conf$$subs.sh ||
18939 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18940$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18941 { (exit 1); exit 1; }; }
18942
18943 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18944 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18945 break
18946 elif $ac_last_try; then
ec6a6fbe
AK
18947 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18948$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18949 { (exit 1); exit 1; }; }
18950 else
18951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18952 fi
18953done
ec6a6fbe
AK
18954rm -f conf$$subs.sh
18955
18956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18957cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18958_ACEOF
18959sed -n '
18960h
18961s/^/S["/; s/!.*/"]=/
18962p
18963g
18964s/^[^!]*!//
18965:repl
18966t repl
18967s/'"$ac_delim"'$//
18968t delim
18969:nl
18970h
18971s/\(.\{148\}\).*/\1/
18972t more1
18973s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18974p
18975n
18976b repl
18977:more1
18978s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18979p
18980g
18981s/.\{148\}//
18982t nl
18983:delim
18984h
18985s/\(.\{148\}\).*/\1/
18986t more2
18987s/["\\]/\\&/g; s/^/"/; s/$/"/
18988p
18989b
18990:more2
18991s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18992p
18993g
18994s/.\{148\}//
18995t delim
18996' <conf$$subs.awk | sed '
18997/^[^""]/{
18998 N
18999 s/\n//
19000}
19001' >>$CONFIG_STATUS || ac_write_fail=1
19002rm -f conf$$subs.awk
19003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19004_ACAWK
19005cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19006 for (key in S) S_is_set[key] = 1
19007 FS = "\a"
7a197a62 19008
ec6a6fbe
AK
19009}
19010{
19011 line = $ 0
19012 nfields = split(line, field, "@")
19013 substed = 0
19014 len = length(field[1])
19015 for (i = 2; i < nfields; i++) {
19016 key = field[i]
19017 keylen = length(key)
19018 if (S_is_set[key]) {
19019 value = S[key]
19020 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19021 len += length(value) + length(field[++i])
19022 substed = 1
19023 } else
19024 len += 1 + keylen
19025 }
19026
19027 print line
19028}
fddafd51 19029
ec6a6fbe 19030_ACAWK
1995c9ff 19031_ACEOF
ec6a6fbe
AK
19032cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19033if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19034 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19035else
19036 cat
19037fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19038 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
19039$as_echo "$as_me: error: could not setup config files machinery" >&2;}
19040 { (exit 1); exit 1; }; }
7a197a62
AK
19041_ACEOF
19042
7a197a62
AK
19043# VPATH may cause trouble with some makes, so we remove $(srcdir),
19044# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19045# trailing colons and then remove the whole line if VPATH becomes empty
19046# (actually we leave an empty line to preserve line numbers).
19047if test "x$srcdir" = x.; then
19048 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19049s/:*\$(srcdir):*/:/
19050s/:*\${srcdir}:*/:/
19051s/:*@srcdir@:*/:/
19052s/^\([^=]*=[ ]*\):*/\1/
19053s/:*$//
19054s/^[^=]*=[ ]*$//
19055}'
19056fi
19057
ec6a6fbe 19058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19059fi # test -n "$CONFIG_FILES"
19060
ec6a6fbe
AK
19061# Set up the scripts for CONFIG_HEADERS section.
19062# No need to generate them if there are no CONFIG_HEADERS.
19063# This happens for instance with `./config.status Makefile'.
19064if test -n "$CONFIG_HEADERS"; then
19065cat >"$tmp/defines.awk" <<\_ACAWK ||
19066BEGIN {
19067_ACEOF
19068
19069# Transform confdefs.h into an awk script `defines.awk', embedded as
19070# here-document in config.status, that substitutes the proper values into
19071# config.h.in to produce config.h.
19072
19073# Create a delimiter string that does not exist in confdefs.h, to ease
19074# handling of long lines.
19075ac_delim='%!_!# '
19076for ac_last_try in false false :; do
19077 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19078 if test -z "$ac_t"; then
19079 break
19080 elif $ac_last_try; then
19081 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
19082$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
19083 { (exit 1); exit 1; }; }
19084 else
19085 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19086 fi
19087done
19088
19089# For the awk script, D is an array of macro values keyed by name,
19090# likewise P contains macro parameters if any. Preserve backslash
19091# newline sequences.
19092
19093ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19094sed -n '
19095s/.\{148\}/&'"$ac_delim"'/g
19096t rset
19097:rset
19098s/^[ ]*#[ ]*define[ ][ ]*/ /
19099t def
19100d
19101:def
19102s/\\$//
19103t bsnl
19104s/["\\]/\\&/g
19105s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19106D["\1"]=" \3"/p
19107s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19108d
19109:bsnl
19110s/["\\]/\\&/g
19111s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19112D["\1"]=" \3\\\\\\n"\\/p
19113t cont
19114s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19115t cont
19116d
19117:cont
19118n
19119s/.\{148\}/&'"$ac_delim"'/g
19120t clear
19121:clear
19122s/\\$//
19123t bsnlc
19124s/["\\]/\\&/g; s/^/"/; s/$/"/p
19125d
19126:bsnlc
19127s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19128b cont
19129' <confdefs.h | sed '
19130s/'"$ac_delim"'/"\\\
19131"/g' >>$CONFIG_STATUS || ac_write_fail=1
19132
19133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19134 for (key in D) D_is_set[key] = 1
19135 FS = "\a"
19136}
19137/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19138 line = \$ 0
19139 split(line, arg, " ")
19140 if (arg[1] == "#") {
19141 defundef = arg[2]
19142 mac1 = arg[3]
19143 } else {
19144 defundef = substr(arg[1], 2)
19145 mac1 = arg[2]
19146 }
19147 split(mac1, mac2, "(") #)
19148 macro = mac2[1]
19149 prefix = substr(line, 1, index(line, defundef) - 1)
19150 if (D_is_set[macro]) {
19151 # Preserve the white space surrounding the "#".
19152 print prefix "define", macro P[macro] D[macro]
19153 next
19154 } else {
19155 # Replace #undef with comments. This is necessary, for example,
19156 # in the case of _POSIX_SOURCE, which is predefined and required
19157 # on some systems where configure will not decide to define it.
19158 if (defundef == "undef") {
19159 print "/*", prefix defundef, macro, "*/"
19160 next
19161 }
19162 }
19163}
19164{ print }
19165_ACAWK
19166_ACEOF
19167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19168 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
19169$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
19170 { (exit 1); exit 1; }; }
19171fi # test -n "$CONFIG_HEADERS"
19172
7a197a62 19173
ec6a6fbe
AK
19174eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
19175shift
19176for ac_tag
7a197a62
AK
19177do
19178 case $ac_tag in
19179 :[FHLC]) ac_mode=$ac_tag; continue;;
19180 esac
19181 case $ac_mode$ac_tag in
19182 :[FHL]*:*);;
ec6a6fbe
AK
19183 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19184$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
19185 { (exit 1); exit 1; }; };;
19186 :[FH]-) ac_tag=-:-;;
19187 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19188 esac
19189 ac_save_IFS=$IFS
19190 IFS=:
19191 set x $ac_tag
19192 IFS=$ac_save_IFS
19193 shift
19194 ac_file=$1
19195 shift
19196
19197 case $ac_mode in
19198 :L) ac_source=$1;;
19199 :[FH])
19200 ac_file_inputs=
19201 for ac_f
19202 do
19203 case $ac_f in
19204 -) ac_f="$tmp/stdin";;
19205 *) # Look for the file first in the build tree, then in the source tree
19206 # (if the path is not absolute). The absolute path cannot be DOS-style,
19207 # because $ac_f cannot contain `:'.
19208 test -f "$ac_f" ||
19209 case $ac_f in
19210 [\\/$]*) false;;
19211 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19212 esac ||
ec6a6fbe
AK
19213 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19214$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
19215 { (exit 1); exit 1; }; };;
19216 esac
ec6a6fbe
AK
19217 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19218 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
19219 done
19220
19221 # Let's still pretend it is `configure' which instantiates (i.e., don't
19222 # use $as_me), people would be surprised to read:
19223 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
19224 configure_input='Generated from '`
19225 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19226 `' by configure.'
7a197a62
AK
19227 if test x"$ac_file" != x-; then
19228 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
19229 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19230$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 19231 fi
ec6a6fbe
AK
19232 # Neutralize special characters interpreted by sed in replacement strings.
19233 case $configure_input in #(
19234 *\&* | *\|* | *\\* )
19235 ac_sed_conf_input=`$as_echo "$configure_input" |
19236 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19237 *) ac_sed_conf_input=$configure_input;;
19238 esac
7a197a62
AK
19239
19240 case $ac_tag in
ec6a6fbe
AK
19241 *:-:* | *:-) cat >"$tmp/stdin" \
19242 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19243$as_echo "$as_me: error: could not create $ac_file" >&2;}
19244 { (exit 1); exit 1; }; } ;;
7a197a62
AK
19245 esac
19246 ;;
80992638 19247 esac
8106cdd5 19248
7a197a62 19249 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 19250$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19251 X"$ac_file" : 'X\(//\)[^/]' \| \
19252 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 19253 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19254$as_echo X"$ac_file" |
7a197a62
AK
19255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19256 s//\1/
19257 q
19258 }
19259 /^X\(\/\/\)[^/].*/{
19260 s//\1/
19261 q
19262 }
19263 /^X\(\/\/\)$/{
19264 s//\1/
19265 q
19266 }
19267 /^X\(\/\).*/{
19268 s//\1/
19269 q
19270 }
19271 s/.*/./; q'`
19272 { as_dir="$ac_dir"
19273 case $as_dir in #(
19274 -*) as_dir=./$as_dir;;
19275 esac
19276 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 19277 as_dirs=
7a197a62
AK
19278 while :; do
19279 case $as_dir in #(
ec6a6fbe 19280 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
19281 *) as_qdir=$as_dir;;
19282 esac
19283 as_dirs="'$as_qdir' $as_dirs"
19284 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 19285$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19286 X"$as_dir" : 'X\(//\)[^/]' \| \
19287 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 19288 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19289$as_echo X"$as_dir" |
7a197a62
AK
19290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19291 s//\1/
19292 q
19293 }
19294 /^X\(\/\/\)[^/].*/{
19295 s//\1/
19296 q
19297 }
19298 /^X\(\/\/\)$/{
19299 s//\1/
19300 q
19301 }
19302 /^X\(\/\).*/{
19303 s//\1/
19304 q
19305 }
19306 s/.*/./; q'`
19307 test -d "$as_dir" && break
ad6254c5 19308 done
7a197a62 19309 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19310 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19311$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19312 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19313 ac_builddir=.
19314
7a197a62
AK
19315case "$ac_dir" in
19316.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19317*)
ec6a6fbe 19318 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19319 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19320 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19321 case $ac_top_builddir_sub in
19322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19324 esac ;;
19325esac
19326ac_abs_top_builddir=$ac_pwd
19327ac_abs_builddir=$ac_pwd$ac_dir_suffix
19328# for backward compatibility:
19329ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19330
19331case $srcdir in
7a197a62 19332 .) # We are building in place.
ad6254c5 19333 ac_srcdir=.
7a197a62
AK
19334 ac_top_srcdir=$ac_top_builddir_sub
19335 ac_abs_top_srcdir=$ac_pwd ;;
19336 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19337 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19338 ac_top_srcdir=$srcdir
19339 ac_abs_top_srcdir=$srcdir ;;
19340 *) # Relative name.
19341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19342 ac_top_srcdir=$ac_top_build_prefix$srcdir
19343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19344esac
7a197a62 19345ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19346
ad6254c5 19347
7a197a62
AK
19348 case $ac_mode in
19349 :F)
19350 #
19351 # CONFIG_FILE
19352 #
ad6254c5
AK
19353
19354 case $INSTALL in
19355 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19356 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19357 esac
fddafd51
ZK
19358 ac_MKDIR_P=$MKDIR_P
19359 case $MKDIR_P in
19360 [\\/$]* | ?:[\\/]* ) ;;
19361 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19362 esac
7a197a62 19363_ACEOF
795ca3e5 19364
ec6a6fbe 19365cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19366# If the template does not know about datarootdir, expand it.
19367# FIXME: This hack should be removed a few years after 2.60.
19368ac_datarootdir_hack=; ac_datarootdir_seen=
19369
ec6a6fbe
AK
19370ac_sed_dataroot='
19371/datarootdir/ {
7a197a62
AK
19372 p
19373 q
19374}
19375/@datadir@/p
19376/@docdir@/p
19377/@infodir@/p
19378/@localedir@/p
19379/@mandir@/p
ec6a6fbe
AK
19380'
19381case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19382*datarootdir*) ac_datarootdir_seen=yes;;
19383*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19384 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19385$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19386_ACEOF
ec6a6fbe 19387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19388 ac_datarootdir_hack='
19389 s&@datadir@&$datadir&g
19390 s&@docdir@&$docdir&g
19391 s&@infodir@&$infodir&g
19392 s&@localedir@&$localedir&g
19393 s&@mandir@&$mandir&g
19394 s&\\\${datarootdir}&$datarootdir&g' ;;
19395esac
19396_ACEOF
19397
19398# Neutralize VPATH when `$srcdir' = `.'.
19399# Shell code in configure.ac might set extrasub.
19400# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19402ac_sed_extra="$ac_vpsub
ad6254c5
AK
19403$extrasub
19404_ACEOF
ec6a6fbe 19405cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19406:t
19407/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19408s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19409s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19410s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19411s&@srcdir@&$ac_srcdir&;t t
19412s&@abs_srcdir@&$ac_abs_srcdir&;t t
19413s&@top_srcdir@&$ac_top_srcdir&;t t
19414s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19415s&@builddir@&$ac_builddir&;t t
19416s&@abs_builddir@&$ac_abs_builddir&;t t
19417s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19418s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19419s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19420$ac_datarootdir_hack
ec6a6fbe
AK
19421"
19422eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19423 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19424$as_echo "$as_me: error: could not create $ac_file" >&2;}
19425 { (exit 1); exit 1; }; }
7a197a62
AK
19426
19427test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19428 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19429 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19430 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19431which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19432$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19433which seems to be undefined. Please make sure it is defined." >&2;}
19434
19435 rm -f "$tmp/stdin"
72b2cb61 19436 case $ac_file in
ec6a6fbe
AK
19437 -) cat "$tmp/out" && rm -f "$tmp/out";;
19438 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19439 esac \
19440 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19441$as_echo "$as_me: error: could not create $ac_file" >&2;}
19442 { (exit 1); exit 1; }; }
7a197a62
AK
19443 ;;
19444 :H)
19445 #
19446 # CONFIG_HEADER
19447 #
72b2cb61 19448 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19449 {
19450 $as_echo "/* $configure_input */" \
19451 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19452 } >"$tmp/config.h" \
19453 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19454$as_echo "$as_me: error: could not create $ac_file" >&2;}
19455 { (exit 1); exit 1; }; }
19456 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19457 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19458$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19459 else
ec6a6fbe
AK
19460 rm -f "$ac_file"
19461 mv "$tmp/config.h" "$ac_file" \
19462 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19463$as_echo "$as_me: error: could not create $ac_file" >&2;}
19464 { (exit 1); exit 1; }; }
72b2cb61
AK
19465 fi
19466 else
ec6a6fbe
AK
19467 $as_echo "/* $configure_input */" \
19468 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19469 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19470$as_echo "$as_me: error: could not create -" >&2;}
19471 { (exit 1); exit 1; }; }
72b2cb61 19472 fi
7a197a62
AK
19473 ;;
19474
19475
19476 esac
19477
19478done # for ac_tag
795ca3e5 19479
795ca3e5 19480
ad6254c5
AK
19481{ (exit 0); exit 0; }
19482_ACEOF
795ca3e5 19483chmod +x $CONFIG_STATUS
ad6254c5
AK
19484ac_clean_files=$ac_clean_files_save
19485
ec6a6fbe
AK
19486test $ac_write_fail = 0 ||
19487 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19488$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19489 { (exit 1); exit 1; }; }
19490
ad6254c5
AK
19491
19492# configure is writing to config.log, and then calls config.status.
19493# config.status does its own redirection, appending to config.log.
19494# Unfortunately, on DOS this fails, as config.log is still kept open
19495# by configure, so config.status won't be able to write to it; its
19496# output is simply discarded. So we exec the FD to /dev/null,
19497# effectively closing config.log, so it can be properly (re)opened and
19498# appended to by config.status. When coming back to configure, we
19499# need to make the FD available again.
19500if test "$no_create" != yes; then
19501 ac_cs_success=:
19502 ac_config_status_args=
19503 test "$silent" = yes &&
19504 ac_config_status_args="$ac_config_status_args --quiet"
19505 exec 5>/dev/null
19506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19507 exec 5>>config.log
19508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19509 # would make configure fail if this is the last instruction.
19510 $ac_cs_success || { (exit 1); exit 1; }
19511fi
ec6a6fbe
AK
19512if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19513 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19514$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19515fi
795ca3e5 19516
2dc95e1c
AK
19517
19518if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19519 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19520$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19521fi
This page took 2.349824 seconds and 5 git commands to generate.