]> sourceware.org Git - lvm2.git/blame - configure
Fix wrong number of mirror log at allocate policy
[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
691DMEVENTD
19a2c6e0 692DL_LIBS
ec6a6fbe 693DEVMAPPER
3399ae32
AK
694DEFAULT_LOCK_DIR
695DEFAULT_CACHE_SUBDIR
696DEFAULT_BACKUP_SUBDIR
697DEFAULT_ARCHIVE_SUBDIR
698DEFAULT_SYS_DIR
ec6a6fbe
AK
699DEBUG
700COPTIMISE_FLAG
e2997b73 701CONFDIR
ec6a6fbe
AK
702CMDLIB
703CLVMD
704CLUSTER
705CLDWHOLEARCHIVE
706CLDNOWHOLEARCHIVE
707CLDFLAGS
708BUILD_DMEVENTD
66fd4529 709BUILD_CMIRRORD
572fefeb 710APPLIB
ec6a6fbe
AK
711MODPROBE_CMD
712MSGFMT
713LVM2CMD_LIB
572fefeb 714LVM2APP_LIB
54b362f9
AK
715VALGRIND
716RUBY19
fd4728e1 717GENPNG
ec6a6fbe
AK
718GENHTML
719LCOV
90c80887
AK
720SACKPT_LIBS
721SACKPT_CFLAGS
a946372e
AK
722DLM_LIBS
723DLM_CFLAGS
e2997b73
AK
724CPG_LIBS
725CPG_CFLAGS
726CONFDB_LIBS
727CONFDB_CFLAGS
a946372e
AK
728SALCK_LIBS
729SALCK_CFLAGS
e2997b73
AK
730QUORUM_LIBS
731QUORUM_CFLAGS
a946372e
AK
732COROSYNC_LIBS
733COROSYNC_CFLAGS
734CMAN_LIBS
735CMAN_CFLAGS
736GULM_LIBS
737GULM_CFLAGS
738CCS_LIBS
739CCS_CFLAGS
740PKGCONFIGINIT_LIBS
741PKGCONFIGINIT_CFLAGS
e2997b73 742PKG_CONFIG
ec6a6fbe
AK
743POW_LIB
744LIBOBJS
745ALLOCA
746CSCOPE_CMD
747CFLOW_CMD
748RANLIB
749MKDIR_P
750SET_MAKE
751LN_S
752INSTALL_DATA
753INSTALL_SCRIPT
754INSTALL_PROGRAM
755EGREP
756GREP
757CPP
758OBJEXT
759EXEEXT
760ac_ct_CC
761CPPFLAGS
762LDFLAGS
763CFLAGS
764CC
765AWK
766SED
767target_os
768target_vendor
769target_cpu
770target
771host_os
772host_vendor
773host_cpu
774host
775build_os
776build_vendor
777build_cpu
778build
779target_alias
780host_alias
781build_alias
782LIBS
783ECHO_T
784ECHO_N
785ECHO_C
786DEFS
787mandir
788localedir
789libdir
790psdir
791pdfdir
792dvidir
793htmldir
794infodir
795docdir
796oldincludedir
797includedir
798localstatedir
799sharedstatedir
800sysconfdir
801datadir
802datarootdir
803libexecdir
804sbindir
805bindir
806program_transform_name
807prefix
808exec_prefix
809PACKAGE_BUGREPORT
810PACKAGE_STRING
811PACKAGE_VERSION
812PACKAGE_TARNAME
813PACKAGE_NAME
814PATH_SEPARATOR
815SHELL'
ad6254c5 816ac_subst_files=''
ec6a6fbe
AK
817ac_user_opts='
818enable_option_checking
819enable_static_link
820with_user
821with_group
822with_device_uid
823with_device_gid
824with_device_mode
825enable_lvm1_fallback
826with_lvm1
827with_pool
828with_cluster
829with_snapshots
830with_mirrors
8fea97b7 831with_replicators
ec6a6fbe
AK
832enable_readline
833enable_realtime
834with_clvmd
8c4e8a18 835with_clvmd_pidfile
66fd4529
AK
836enable_cmirrord
837with_cmirrord_pidfile
ec6a6fbe
AK
838enable_debug
839with_optimisation
840enable_profiling
54b362f9 841enable_testing
ec6a6fbe 842enable_devmapper
a5f46f6a
AK
843enable_udev_sync
844enable_udev_rules
ec6a6fbe 845enable_compat
95eaa683 846enable_units_compat
ec6a6fbe
AK
847enable_ioctl
848enable_o_direct
572fefeb 849enable_applib
ec6a6fbe
AK
850enable_cmdlib
851enable_pkgconfig
23b059e7 852enable_write_install
ec6a6fbe
AK
853enable_fsadm
854enable_dmeventd
855enable_selinux
856enable_nls
857with_localedir
858with_confdir
859with_staticdir
860with_usrlibdir
861with_usrsbindir
a5f46f6a 862with_udev_prefix
78ce7acc 863with_udevdir
ec6a6fbe
AK
864with_dmeventd_pidfile
865with_dmeventd_path
8bae0a1e 866with_default_run_dir
3399ae32
AK
867with_default_system_dir
868with_default_archive_subdir
869with_default_backup_subdir
870with_default_cache_subdir
871with_default_locking_dir
ec6a6fbe
AK
872with_interface
873'
7a197a62
AK
874 ac_precious_vars='build_alias
875host_alias
876target_alias
877CC
878CFLAGS
879LDFLAGS
25fbec5b 880LIBS
7a197a62 881CPPFLAGS
e2997b73
AK
882CPP
883PKG_CONFIG
a946372e
AK
884PKGCONFIGINIT_CFLAGS
885PKGCONFIGINIT_LIBS
886CCS_CFLAGS
887CCS_LIBS
888GULM_CFLAGS
889GULM_LIBS
890CMAN_CFLAGS
891CMAN_LIBS
892COROSYNC_CFLAGS
893COROSYNC_LIBS
e2997b73
AK
894QUORUM_CFLAGS
895QUORUM_LIBS
a946372e
AK
896SALCK_CFLAGS
897SALCK_LIBS
e2997b73
AK
898CONFDB_CFLAGS
899CONFDB_LIBS
900CPG_CFLAGS
a946372e
AK
901CPG_LIBS
902DLM_CFLAGS
90c80887
AK
903DLM_LIBS
904SACKPT_CFLAGS
905SACKPT_LIBS'
7a197a62 906
795ca3e5
AK
907
908# Initialize some variables set by options.
ad6254c5
AK
909ac_init_help=
910ac_init_version=false
ec6a6fbe
AK
911ac_unrecognized_opts=
912ac_unrecognized_sep=
795ca3e5
AK
913# The variables have the same names as the options, with
914# dashes changed to underlines.
ad6254c5 915cache_file=/dev/null
795ca3e5 916exec_prefix=NONE
795ca3e5 917no_create=
795ca3e5
AK
918no_recursion=
919prefix=NONE
920program_prefix=NONE
921program_suffix=NONE
922program_transform_name=s,x,x,
923silent=
924site=
925srcdir=
795ca3e5
AK
926verbose=
927x_includes=NONE
928x_libraries=NONE
ad6254c5
AK
929
930# Installation directory options.
931# These are left unexpanded so users can "make install exec_prefix=/foo"
932# and all the variables that are supposed to be based on exec_prefix
933# by default will actually change.
934# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 935# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
936bindir='${exec_prefix}/bin'
937sbindir='${exec_prefix}/sbin'
938libexecdir='${exec_prefix}/libexec'
7a197a62
AK
939datarootdir='${prefix}/share'
940datadir='${datarootdir}'
795ca3e5
AK
941sysconfdir='${prefix}/etc'
942sharedstatedir='${prefix}/com'
943localstatedir='${prefix}/var'
795ca3e5
AK
944includedir='${prefix}/include'
945oldincludedir='/usr/include'
7a197a62
AK
946docdir='${datarootdir}/doc/${PACKAGE}'
947infodir='${datarootdir}/info'
948htmldir='${docdir}'
949dvidir='${docdir}'
950pdfdir='${docdir}'
951psdir='${docdir}'
952libdir='${exec_prefix}/lib'
953localedir='${datarootdir}/locale'
954mandir='${datarootdir}/man'
795ca3e5 955
795ca3e5 956ac_prev=
7a197a62 957ac_dashdash=
795ca3e5
AK
958for ac_option
959do
795ca3e5
AK
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
7a197a62 962 eval $ac_prev=\$ac_option
795ca3e5
AK
963 ac_prev=
964 continue
965 fi
966
7a197a62
AK
967 case $ac_option in
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *) ac_optarg=yes ;;
970 esac
795ca3e5
AK
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
7a197a62
AK
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
795ca3e5
AK
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 981 bindir=$ac_optarg ;;
795ca3e5
AK
982
983 -build | --build | --buil | --bui | --bu)
ad6254c5 984 ac_prev=build_alias ;;
795ca3e5 985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 986 build_alias=$ac_optarg ;;
795ca3e5
AK
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
795ca3e5 997
7a197a62 998 -datadir | --datadir | --datadi | --datad)
795ca3e5 999 ac_prev=datadir ;;
7a197a62 1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1001 datadir=$ac_optarg ;;
795ca3e5 1002
7a197a62
AK
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
795ca3e5 1010 -disable-* | --disable-*)
ec6a6fbe 1011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1012 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1015 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"enable_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
7a197a62
AK
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
795ca3e5
AK
1036
1037 -enable-* | --enable-*)
ec6a6fbe 1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1039 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1042 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1043 ac_useropt_orig=$ac_useropt
1044 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1046 *"
1047"enable_$ac_useropt"
1048"*) ;;
1049 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep=', ';;
1051 esac
1052 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1053
1054 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1055 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1056 | --exec | --exe | --ex)
1057 ac_prev=exec_prefix ;;
1058 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1059 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1060 | --exec=* | --exe=* | --ex=*)
ad6254c5 1061 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1062
1063 -gas | --gas | --ga | --g)
1064 # Obsolete; use --with-gas.
1065 with_gas=yes ;;
1066
ad6254c5
AK
1067 -help | --help | --hel | --he | -h)
1068 ac_init_help=long ;;
1069 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1070 ac_init_help=recursive ;;
1071 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1072 ac_init_help=short ;;
795ca3e5
AK
1073
1074 -host | --host | --hos | --ho)
ad6254c5 1075 ac_prev=host_alias ;;
795ca3e5 1076 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1077 host_alias=$ac_optarg ;;
795ca3e5 1078
7a197a62
AK
1079 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1080 ac_prev=htmldir ;;
1081 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1082 | --ht=*)
1083 htmldir=$ac_optarg ;;
1084
795ca3e5
AK
1085 -includedir | --includedir | --includedi | --included | --include \
1086 | --includ | --inclu | --incl | --inc)
1087 ac_prev=includedir ;;
1088 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1089 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1090 includedir=$ac_optarg ;;
795ca3e5
AK
1091
1092 -infodir | --infodir | --infodi | --infod | --info | --inf)
1093 ac_prev=infodir ;;
1094 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1095 infodir=$ac_optarg ;;
795ca3e5
AK
1096
1097 -libdir | --libdir | --libdi | --libd)
1098 ac_prev=libdir ;;
1099 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1100 libdir=$ac_optarg ;;
795ca3e5
AK
1101
1102 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1103 | --libexe | --libex | --libe)
1104 ac_prev=libexecdir ;;
1105 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1106 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1107 libexecdir=$ac_optarg ;;
795ca3e5 1108
7a197a62
AK
1109 -localedir | --localedir | --localedi | --localed | --locale)
1110 ac_prev=localedir ;;
1111 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1112 localedir=$ac_optarg ;;
1113
795ca3e5 1114 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1115 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1116 ac_prev=localstatedir ;;
1117 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1118 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1119 localstatedir=$ac_optarg ;;
795ca3e5
AK
1120
1121 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1122 ac_prev=mandir ;;
1123 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1124 mandir=$ac_optarg ;;
795ca3e5
AK
1125
1126 -nfp | --nfp | --nf)
1127 # Obsolete; use --without-fp.
1128 with_fp=no ;;
1129
1130 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1131 | --no-cr | --no-c | -n)
795ca3e5
AK
1132 no_create=yes ;;
1133
1134 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1135 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1136 no_recursion=yes ;;
1137
1138 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1139 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1140 | --oldin | --oldi | --old | --ol | --o)
1141 ac_prev=oldincludedir ;;
1142 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1143 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1144 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1145 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1146
1147 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1148 ac_prev=prefix ;;
1149 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1150 prefix=$ac_optarg ;;
795ca3e5
AK
1151
1152 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1153 | --program-pre | --program-pr | --program-p)
1154 ac_prev=program_prefix ;;
1155 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1156 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1157 program_prefix=$ac_optarg ;;
795ca3e5
AK
1158
1159 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1160 | --program-suf | --program-su | --program-s)
1161 ac_prev=program_suffix ;;
1162 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1163 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1164 program_suffix=$ac_optarg ;;
795ca3e5
AK
1165
1166 -program-transform-name | --program-transform-name \
1167 | --program-transform-nam | --program-transform-na \
1168 | --program-transform-n | --program-transform- \
1169 | --program-transform | --program-transfor \
1170 | --program-transfo | --program-transf \
1171 | --program-trans | --program-tran \
1172 | --progr-tra | --program-tr | --program-t)
1173 ac_prev=program_transform_name ;;
1174 -program-transform-name=* | --program-transform-name=* \
1175 | --program-transform-nam=* | --program-transform-na=* \
1176 | --program-transform-n=* | --program-transform-=* \
1177 | --program-transform=* | --program-transfor=* \
1178 | --program-transfo=* | --program-transf=* \
1179 | --program-trans=* | --program-tran=* \
1180 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1181 program_transform_name=$ac_optarg ;;
795ca3e5 1182
7a197a62
AK
1183 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1184 ac_prev=pdfdir ;;
1185 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1186 pdfdir=$ac_optarg ;;
1187
1188 -psdir | --psdir | --psdi | --psd | --ps)
1189 ac_prev=psdir ;;
1190 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1191 psdir=$ac_optarg ;;
1192
795ca3e5
AK
1193 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1194 | -silent | --silent | --silen | --sile | --sil)
1195 silent=yes ;;
1196
1197 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1198 ac_prev=sbindir ;;
1199 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1200 | --sbi=* | --sb=*)
ad6254c5 1201 sbindir=$ac_optarg ;;
795ca3e5
AK
1202
1203 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1204 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1205 | --sharedst | --shareds | --shared | --share | --shar \
1206 | --sha | --sh)
1207 ac_prev=sharedstatedir ;;
1208 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1209 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1210 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1211 | --sha=* | --sh=*)
ad6254c5 1212 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1213
1214 -site | --site | --sit)
1215 ac_prev=site ;;
1216 -site=* | --site=* | --sit=*)
ad6254c5 1217 site=$ac_optarg ;;
795ca3e5
AK
1218
1219 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1220 ac_prev=srcdir ;;
1221 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1222 srcdir=$ac_optarg ;;
795ca3e5
AK
1223
1224 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1225 | --syscon | --sysco | --sysc | --sys | --sy)
1226 ac_prev=sysconfdir ;;
1227 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1228 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1229 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1230
1231 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1232 ac_prev=target_alias ;;
795ca3e5 1233 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1234 target_alias=$ac_optarg ;;
795ca3e5
AK
1235
1236 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1237 verbose=yes ;;
1238
ad6254c5
AK
1239 -version | --version | --versio | --versi | --vers | -V)
1240 ac_init_version=: ;;
795ca3e5
AK
1241
1242 -with-* | --with-*)
ec6a6fbe 1243 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1244 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1247 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1251 *"
1252"with_$ac_useropt"
1253"*) ;;
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1256 esac
1257 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1258
1259 -without-* | --without-*)
ec6a6fbe 1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1261 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1264 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1265 ac_useropt_orig=$ac_useropt
1266 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1268 *"
1269"with_$ac_useropt"
1270"*) ;;
1271 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep=', ';;
1273 esac
1274 eval with_$ac_useropt=no ;;
795ca3e5
AK
1275
1276 --x)
1277 # Obsolete; use --with-x.
1278 with_x=yes ;;
1279
1280 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281 | --x-incl | --x-inc | --x-in | --x-i)
1282 ac_prev=x_includes ;;
1283 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1285 x_includes=$ac_optarg ;;
795ca3e5
AK
1286
1287 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1288 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289 ac_prev=x_libraries ;;
1290 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1292 x_libraries=$ac_optarg ;;
795ca3e5 1293
ec6a6fbe 1294 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1295Try \`$0 --help' for more information." >&2
1296 { (exit 1); exit 1; }; }
795ca3e5
AK
1297 ;;
1298
ad6254c5
AK
1299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1303 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1304 { (exit 1); exit 1; }; }
7a197a62 1305 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1306 export $ac_envvar ;;
1307
795ca3e5 1308 *)
ad6254c5 1309 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1313 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1314 ;;
1315
1316 esac
1317done
1318
1319if test -n "$ac_prev"; then
ad6254c5 1320 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1321 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1322 { (exit 1); exit 1; }; }
795ca3e5 1323fi
795ca3e5 1324
ec6a6fbe
AK
1325if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
1328 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1329 { (exit 1); exit 1; }; } ;;
1330 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 esac
1332fi
1333
1334# Check all directory arguments for consistency.
7a197a62
AK
1335for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
795ca3e5 1339do
7a197a62 1340 eval ac_val=\$$ac_var
ec6a6fbe
AK
1341 # Remove trailing slashes.
1342 case $ac_val in
1343 */ )
1344 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1345 eval $ac_var=\$ac_val;;
1346 esac
1347 # Be sure to have absolute directory names.
ad6254c5 1348 case $ac_val in
7a197a62
AK
1349 [\\/$]* | ?:[\\/]* ) continue;;
1350 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1351 esac
ec6a6fbe 1352 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1353 { (exit 1); exit 1; }; }
795ca3e5
AK
1354done
1355
ad6254c5
AK
1356# There might be people who depend on the old broken behavior: `$host'
1357# used to hold the argument of --host etc.
1358# FIXME: To remove some day.
1359build=$build_alias
1360host=$host_alias
1361target=$target_alias
1362
1363# FIXME: To remove some day.
1364if test "x$host_alias" != x; then
1365 if test "x$build_alias" = x; then
1366 cross_compiling=maybe
ec6a6fbe 1367 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1368 If a cross compiler is detected then cross compile mode will be used." >&2
1369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1371 fi
1372fi
8106cdd5 1373
ad6254c5
AK
1374ac_tool_prefix=
1375test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377test "$silent" = yes && exec 6>/dev/null
795ca3e5 1378
795ca3e5 1379
7a197a62
AK
1380ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381ac_ls_di=`ls -di .` &&
1382ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1383 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1384 { (exit 1); exit 1; }; }
1385test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1386 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1387 { (exit 1); exit 1; }; }
1388
1389
795ca3e5
AK
1390# Find the source files, if location was not specified.
1391if test -z "$srcdir"; then
1392 ac_srcdir_defaulted=yes
7a197a62 1393 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1394 ac_confdir=`$as_dirname -- "$as_myself" ||
1395$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399$as_echo X"$as_myself" |
7a197a62
AK
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 s//\1/
1402 q
1403 }
1404 /^X\(\/\/\)[^/].*/{
1405 s//\1/
1406 q
1407 }
1408 /^X\(\/\/\)$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\).*/{
1413 s//\1/
1414 q
1415 }
1416 s/.*/./; q'`
795ca3e5 1417 srcdir=$ac_confdir
7a197a62 1418 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1419 srcdir=..
1420 fi
1421else
1422 ac_srcdir_defaulted=no
1423fi
7a197a62
AK
1424if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1426 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1427 { (exit 1); exit 1; }; }
795ca3e5 1428fi
7a197a62
AK
1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
ec6a6fbe 1431 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1432 { (exit 1); exit 1; }; }
7a197a62
AK
1433 pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
ad6254c5
AK
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458\`configure' configures this package to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE. See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477
ad6254c5
AK
1478Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1480 [$ac_default_prefix]
ad6254c5 1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1482 [PREFIX]
ad6254c5
AK
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
ec6a6fbe
AK
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1511_ACEOF
1512
1513 cat <<\_ACEOF
1514
1515System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518 --target=TARGET configure for building compilers for TARGET [HOST]
1519_ACEOF
1520fi
1521
1522if test -n "$ac_init_help"; then
1523
1524 cat <<\_ACEOF
1525
1526Optional Features:
ec6a6fbe 1527 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1530 --enable-static_link use this to link the tools to their libraries
1531 statically (default is dynamic linking
1532 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1533 device-mapper is missing from the kernel
71082be4
ZK
1534 --disable-readline disable readline support
1535 --enable-realtime enable realtime clock support
1536 --enable-cmirrord enable the cluster mirror log daemon
1537 --enable-debug enable debugging
1538 --enable-profiling gather gcov profiling data
54b362f9 1539 --enable-testing enable testing targets in the makefile
71082be4
ZK
1540 --disable-devmapper disable LVM2 device-mapper interaction
1541 --enable-udev_sync enable synchronisation with udev processing
1542 --enable-udev_rules install rule files needed for udev synchronisation
1543 --enable-compat enable support for old device-mapper versions
1544 --enable-units-compat enable output compatibility with old versions that
1545 that do not use KiB-style unit suffixes
1546 --disable-driver disable calls to device-mapper in the kernel
1547 --disable-o_direct disable O_DIRECT
1548 --enable-applib build application library
1549 --enable-cmdlib build shared command library
1550 --enable-pkgconfig install pkgconfig support
1551 --enable-write_install install user writable files
1552 --disable-fsadm disable fsadm
1553 --enable-dmeventd enable the device-mapper event daemon
1554 --disable-selinux disable selinux support
1555 --enable-nls enable Native Language Support
ad6254c5
AK
1556
1557Optional Packages:
1558 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1559 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1560 --with-user=USER set the owner of installed files [USER=]
1561 --with-group=GROUP set the group owner of installed files [GROUP=]
1562 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1563 --with-device-gid=GID set the group used for new device nodes [GID=0]
1564 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1565 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1566 [TYPE=internal]
ad6254c5 1567 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1568 [TYPE=internal]
1569 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1570 [TYPE=internal]
1571 --with-snapshots=TYPE snapshot support: internal/shared/none
1572 [TYPE=internal]
1573 --with-mirrors=TYPE mirror support: internal/shared/none
1574 [TYPE=internal]
1575 --with-replicators=TYPE replicator support: internal/shared/none
1576 [TYPE=none]
1577 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1578 The following cluster manager combinations are valid:
a946372e
AK
1579 * cman,gulm (RHEL4 or equivalent)
1580 * cman (RHEL5 or equivalent)
1581 * cman,corosync,openais (or selection of them)
1091650a 1582 * singlenode (localhost only)
a946372e
AK
1583 * all (autodetect)
1584 * none (disable build)
71082be4 1585 [TYPE=none]
8c4e8a18
FDN
1586 --with-clvmd-pidfile=PATH
1587 clvmd pidfile [/var/run/clvmd.pid]
71082be4
ZK
1588 --with-cmirrord-pidfile=PATH
1589 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1590 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1591 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1592 --with-confdir=DIR configuration files in DIR [/etc]
1593 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1594 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1595 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1596 --with-udev-prefix=UPREFIX
1597 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1598 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1599 --with-dmeventd-pidfile=PATH
1600 dmeventd pidfile [/var/run/dmeventd.pid]
1601 --with-dmeventd-path=PATH
1602 dmeventd path [EPREFIX/sbin/dmeventd]
8bae0a1e 1603 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4
ZK
1604 --with-default-system-dir=DIR
1605 default LVM system directory [/etc/lvm]
1606 --with-default-archive-subdir=SUBDIR
1607 default metadata archive subdir [archive]
1608 --with-default-backup-subdir=SUBDIR
1609 default metadata backup subdir [backup]
1610 --with-default-cache-subdir=SUBDIR
1611 default metadata cache subdir [cache]
1612 --with-default-locking-dir=DIR
1613 default locking directory [/var/lock/lvm]
1614 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1615
1616Some influential environment variables:
1617 CC C compiler command
1618 CFLAGS C compiler flags
1619 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1620 nonstandard directory <lib dir>
25fbec5b 1621 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1622 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623 you have headers in a nonstandard directory <include dir>
ad6254c5 1624 CPP C preprocessor
e2997b73 1625 PKG_CONFIG path to pkg-config utility
a946372e
AK
1626 PKGCONFIGINIT_CFLAGS
1627 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1628 PKGCONFIGINIT_LIBS
1629 linker flags for PKGCONFIGINIT, overriding pkg-config
1630 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1631 CCS_LIBS linker flags for CCS, overriding pkg-config
1632 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1633 GULM_LIBS linker flags for GULM, overriding pkg-config
1634 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1635 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1636 COROSYNC_CFLAGS
1637 C compiler flags for COROSYNC, overriding pkg-config
1638 COROSYNC_LIBS
1639 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1640 QUORUM_CFLAGS
1641 C compiler flags for QUORUM, overriding pkg-config
1642 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1643 SALCK_CFLAGS
1644 C compiler flags for SALCK, overriding pkg-config
1645 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1646 CONFDB_CFLAGS
1647 C compiler flags for CONFDB, overriding pkg-config
1648 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1649 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1650 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1651 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1652 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1653 SACKPT_CFLAGS
1654 C compiler flags for SACKPT, overriding pkg-config
1655 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1656
1657Use these variables to override the choices made by `configure' or to help
1658it to find libraries and programs with nonstandard names/locations.
1659
1660_ACEOF
7a197a62 1661ac_status=$?
ad6254c5
AK
1662fi
1663
1664if test "$ac_init_help" = "recursive"; then
1665 # If there are subdirs, report their specific --help.
ad6254c5 1666 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1667 test -d "$ac_dir" ||
1668 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1669 continue
ad6254c5
AK
1670 ac_builddir=.
1671
7a197a62
AK
1672case "$ac_dir" in
1673.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1674*)
ec6a6fbe 1675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1676 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1678 case $ac_top_builddir_sub in
1679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1681 esac ;;
1682esac
1683ac_abs_top_builddir=$ac_pwd
1684ac_abs_builddir=$ac_pwd$ac_dir_suffix
1685# for backward compatibility:
1686ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1687
1688case $srcdir in
7a197a62 1689 .) # We are building in place.
ad6254c5 1690 ac_srcdir=.
7a197a62
AK
1691 ac_top_srcdir=$ac_top_builddir_sub
1692 ac_abs_top_srcdir=$ac_pwd ;;
1693 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1694 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1695 ac_top_srcdir=$srcdir
1696 ac_abs_top_srcdir=$srcdir ;;
1697 *) # Relative name.
1698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1699 ac_top_srcdir=$ac_top_build_prefix$srcdir
1700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1701esac
7a197a62
AK
1702ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1703
1704 cd "$ac_dir" || { ac_status=$?; continue; }
1705 # Check for guested configure.
1706 if test -f "$ac_srcdir/configure.gnu"; then
1707 echo &&
1708 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1709 elif test -f "$ac_srcdir/configure"; then
1710 echo &&
1711 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1712 else
ec6a6fbe 1713 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1714 fi || ac_status=$?
1715 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1716 done
1717fi
1718
7a197a62 1719test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1720if $ac_init_version; then
1721 cat <<\_ACEOF
7a197a62 1722configure
ec6a6fbe 1723generated by GNU Autoconf 2.63
ad6254c5 1724
7a197a62 1725Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17262002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1727This configure script is free software; the Free Software Foundation
1728gives unlimited permission to copy, distribute and modify it.
1729_ACEOF
7a197a62 1730 exit
ad6254c5 1731fi
7a197a62 1732cat >config.log <<_ACEOF
ad6254c5
AK
1733This file contains any messages produced by compilers while
1734running configure, to aid debugging if configure makes a mistake.
1735
1736It was created by $as_me, which was
ec6a6fbe 1737generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1738
1739 $ $0 $@
1740
1741_ACEOF
7a197a62 1742exec 5>>config.log
ad6254c5
AK
1743{
1744cat <<_ASUNAME
1745## --------- ##
1746## Platform. ##
1747## --------- ##
1748
1749hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1750uname -m = `(uname -m) 2>/dev/null || echo unknown`
1751uname -r = `(uname -r) 2>/dev/null || echo unknown`
1752uname -s = `(uname -s) 2>/dev/null || echo unknown`
1753uname -v = `(uname -v) 2>/dev/null || echo unknown`
1754
1755/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1756/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1757
1758/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1759/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1760/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1761/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1762/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1763/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1764/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1765
1766_ASUNAME
1767
1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
ec6a6fbe 1773 $as_echo "PATH: $as_dir"
ad6254c5 1774done
7a197a62 1775IFS=$as_save_IFS
ad6254c5
AK
1776
1777} >&5
1778
1779cat >&5 <<_ACEOF
1780
1781
1782## ----------- ##
1783## Core tests. ##
1784## ----------- ##
1785
1786_ACEOF
1787
1788
1789# Keep a trace of the command line.
1790# Strip out --no-create and --no-recursion so they do not pile up.
1791# Strip out --silent because we don't want to record it for future runs.
1792# Also quote any args containing shell meta-characters.
1793# Make two passes to allow for proper duplicate-argument suppression.
1794ac_configure_args=
1795ac_configure_args0=
1796ac_configure_args1=
ad6254c5
AK
1797ac_must_keep_next=false
1798for ac_pass in 1 2
1799do
1800 for ac_arg
1801 do
1802 case $ac_arg in
1803 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1804 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1805 | -silent | --silent | --silen | --sile | --sil)
1806 continue ;;
7a197a62 1807 *\'*)
ec6a6fbe 1808 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1809 esac
1810 case $ac_pass in
1811 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1812 2)
1813 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1814 if test $ac_must_keep_next = true; then
8a2fc586 1815 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1816 else
8a2fc586
AK
1817 case $ac_arg in
1818 *=* | --config-cache | -C | -disable-* | --disable-* \
1819 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1820 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1821 | -with-* | --with-* | -without-* | --without-* | --x)
1822 case "$ac_configure_args0 " in
1823 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1824 esac
1825 ;;
1826 -* ) ac_must_keep_next=true ;;
1827 esac
ad6254c5 1828 fi
7a197a62 1829 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1830 ;;
1831 esac
1832 done
1833done
1834$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1835$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1836
1837# When interrupted or exit'd, cleanup temporary files, and complete
1838# config.log. We remove comments because anyway the quotes in there
1839# would cause problems or look ugly.
7a197a62
AK
1840# WARNING: Use '\'' to represent an apostrophe within the trap.
1841# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1842trap 'exit_status=$?
1843 # Save into config.log some information that might help in debugging.
1844 {
1845 echo
1846
1847 cat <<\_ASBOX
1848## ---------------- ##
1849## Cache variables. ##
1850## ---------------- ##
1851_ASBOX
1852 echo
1853 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1854(
1855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1856 eval ac_val=\$$ac_var
1857 case $ac_val in #(
1858 *${as_nl}*)
1859 case $ac_var in #(
ec6a6fbe
AK
1860 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1861$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1862 esac
1863 case $ac_var in #(
1864 _ | IFS | as_nl) ;; #(
ec6a6fbe 1865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1866 *) $as_unset $ac_var ;;
1867 esac ;;
1868 esac
1869 done
ad6254c5 1870 (set) 2>&1 |
7a197a62
AK
1871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1872 *${as_nl}ac_space=\ *)
ad6254c5 1873 sed -n \
7a197a62
AK
1874 "s/'\''/'\''\\\\'\'''\''/g;
1875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1876 ;; #(
ad6254c5 1877 *)
7a197a62 1878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1879 ;;
7a197a62
AK
1880 esac |
1881 sort
1882)
ad6254c5
AK
1883 echo
1884
1885 cat <<\_ASBOX
1886## ----------------- ##
1887## Output variables. ##
1888## ----------------- ##
1889_ASBOX
1890 echo
1891 for ac_var in $ac_subst_vars
1892 do
7a197a62
AK
1893 eval ac_val=\$$ac_var
1894 case $ac_val in
ec6a6fbe 1895 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1896 esac
ec6a6fbe 1897 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1898 done | sort
1899 echo
1900
1901 if test -n "$ac_subst_files"; then
1902 cat <<\_ASBOX
7a197a62
AK
1903## ------------------- ##
1904## File substitutions. ##
1905## ------------------- ##
ad6254c5
AK
1906_ASBOX
1907 echo
1908 for ac_var in $ac_subst_files
1909 do
7a197a62
AK
1910 eval ac_val=\$$ac_var
1911 case $ac_val in
ec6a6fbe 1912 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1913 esac
ec6a6fbe 1914 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1915 done | sort
1916 echo
1917 fi
1918
1919 if test -s confdefs.h; then
1920 cat <<\_ASBOX
1921## ----------- ##
1922## confdefs.h. ##
1923## ----------- ##
1924_ASBOX
1925 echo
7a197a62 1926 cat confdefs.h
ad6254c5
AK
1927 echo
1928 fi
1929 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1930 $as_echo "$as_me: caught signal $ac_signal"
1931 $as_echo "$as_me: exit $exit_status"
ad6254c5 1932 } >&5
7a197a62
AK
1933 rm -f core *.core core.conftest.* &&
1934 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1935 exit $exit_status
7a197a62 1936' 0
ad6254c5
AK
1937for ac_signal in 1 2 13 15; do
1938 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1939done
1940ac_signal=0
1941
1942# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1943rm -f -r conftest* confdefs.h
ad6254c5
AK
1944
1945# Predefined preprocessor variables.
1946
1947cat >>confdefs.h <<_ACEOF
1948#define PACKAGE_NAME "$PACKAGE_NAME"
1949_ACEOF
1950
1951
1952cat >>confdefs.h <<_ACEOF
1953#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1954_ACEOF
1955
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_VERSION "$PACKAGE_VERSION"
1959_ACEOF
8106cdd5 1960
ad6254c5
AK
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_STRING "$PACKAGE_STRING"
1964_ACEOF
1965
1966
1967cat >>confdefs.h <<_ACEOF
1968#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1969_ACEOF
1970
1971
1972# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1973# Prefer an explicitly selected file to automatically selected ones.
1974ac_site_file1=NONE
1975ac_site_file2=NONE
7a197a62 1976if test -n "$CONFIG_SITE"; then
ec6a6fbe 1977 ac_site_file1=$CONFIG_SITE
7a197a62 1978elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1979 ac_site_file1=$prefix/share/config.site
1980 ac_site_file2=$prefix/etc/config.site
7a197a62 1981else
ec6a6fbe
AK
1982 ac_site_file1=$ac_default_prefix/share/config.site
1983 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1984fi
ec6a6fbe 1985for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1986do
ec6a6fbe 1987 test "x$ac_site_file" = xNONE && continue
795ca3e5 1988 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1989 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1990$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1991 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1992 . "$ac_site_file"
1993 fi
1994done
1995
1996if test -r "$cache_file"; then
ad6254c5
AK
1997 # Some versions of bash will fail to source /dev/null (special
1998 # files actually), so we avoid doing that.
1999 if test -f "$cache_file"; then
ec6a6fbe
AK
2000 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2001$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 2002 case $cache_file in
7a197a62
AK
2003 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2004 *) . "./$cache_file";;
ad6254c5
AK
2005 esac
2006 fi
795ca3e5 2007else
ec6a6fbe
AK
2008 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2009$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2010 >$cache_file
2011fi
2012
2013# Check that the precious variables saved in the cache have kept the same
2014# value.
2015ac_cache_corrupted=false
7a197a62 2016for ac_var in $ac_precious_vars; do
ad6254c5
AK
2017 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2018 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2019 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2020 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2021 case $ac_old_set,$ac_new_set in
2022 set,)
ec6a6fbe
AK
2023 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2024$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2025 ac_cache_corrupted=: ;;
2026 ,set)
ec6a6fbe
AK
2027 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2028$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2029 ac_cache_corrupted=: ;;
2030 ,);;
2031 *)
2032 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2033 # differences in whitespace do not lead to failure.
2034 ac_old_val_w=`echo x $ac_old_val`
2035 ac_new_val_w=`echo x $ac_new_val`
2036 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2037 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2038$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2039 ac_cache_corrupted=:
2040 else
2041 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2042$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2043 eval $ac_var=\$ac_old_val
2044 fi
2045 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2046$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2047 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2048$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2049 fi;;
2050 esac
2051 # Pass precious variables to config.status.
2052 if test "$ac_new_set" = set; then
2053 case $ac_new_val in
ec6a6fbe 2054 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2055 *) ac_arg=$ac_var=$ac_new_val ;;
2056 esac
2057 case " $ac_configure_args " in
2058 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2059 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2060 esac
2061 fi
2062done
2063if $ac_cache_corrupted; then
ec6a6fbe
AK
2064 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2065$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2066 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2067$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2068 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2069$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2070 { (exit 1); exit 1; }; }
795ca3e5
AK
2071fi
2072
ad6254c5
AK
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
7a197a62
AK
2089ac_ext=c
2090ac_cpp='$CPP $CPPFLAGS'
2091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2094
795ca3e5
AK
2095
2096
7a197a62 2097ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2098
2099
80992638 2100################################################################################
795ca3e5 2101ac_aux_dir=
7a197a62
AK
2102for ac_dir in autoconf "$srcdir"/autoconf; do
2103 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2104 ac_aux_dir=$ac_dir
2105 ac_install_sh="$ac_aux_dir/install-sh -c"
2106 break
7a197a62 2107 elif 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/shtool"; then
ad6254c5
AK
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/shtool install -c"
2114 break
795ca3e5
AK
2115 fi
2116done
2117if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2118 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2119$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2120 { (exit 1); exit 1; }; }
795ca3e5 2121fi
7a197a62
AK
2122
2123# These three variables are undocumented and unsupported,
2124# and are intended to be withdrawn in a future Autoconf release.
2125# They can cause serious problems if a builder's source tree is in a directory
2126# whose full name contains unusual characters.
2127ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2128ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2129ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2130
8ce0cbda
AK
2131
2132
ad6254c5 2133################################################################################
8ce0cbda 2134# Make sure we can run config.sub.
7a197a62 2135$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2136 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2137$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2138 { (exit 1); exit 1; }; }
2139
ec6a6fbe
AK
2140{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2141$as_echo_n "checking build system type... " >&6; }
ad6254c5 2142if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2143 $as_echo_n "(cached) " >&6
ad6254c5 2144else
7a197a62
AK
2145 ac_build_alias=$build_alias
2146test "x$ac_build_alias" = x &&
2147 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2148test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2149 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2150$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2151 { (exit 1); exit 1; }; }
7a197a62 2152ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2153 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2154$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2155 { (exit 1); exit 1; }; }
2156
2157fi
ec6a6fbe
AK
2158{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2159$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2160case $ac_cv_build in
2161*-*-*) ;;
ec6a6fbe
AK
2162*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2163$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2164 { (exit 1); exit 1; }; };;
2165esac
ad6254c5 2166build=$ac_cv_build
7a197a62
AK
2167ac_save_IFS=$IFS; IFS='-'
2168set x $ac_cv_build
2169shift
2170build_cpu=$1
2171build_vendor=$2
2172shift; shift
2173# Remember, the first character of IFS is used to create $*,
2174# except with old shells:
2175build_os=$*
2176IFS=$ac_save_IFS
2177case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2178
2179
ec6a6fbe
AK
2180{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2181$as_echo_n "checking host system type... " >&6; }
ad6254c5 2182if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2183 $as_echo_n "(cached) " >&6
ad6254c5 2184else
7a197a62
AK
2185 if test "x$host_alias" = x; then
2186 ac_cv_host=$ac_cv_build
2187else
2188 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2189 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2190$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2191 { (exit 1); exit 1; }; }
7a197a62 2192fi
ad6254c5
AK
2193
2194fi
ec6a6fbe
AK
2195{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2196$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2197case $ac_cv_host in
2198*-*-*) ;;
ec6a6fbe
AK
2199*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2200$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2201 { (exit 1); exit 1; }; };;
2202esac
ad6254c5 2203host=$ac_cv_host
7a197a62
AK
2204ac_save_IFS=$IFS; IFS='-'
2205set x $ac_cv_host
2206shift
2207host_cpu=$1
2208host_vendor=$2
2209shift; shift
2210# Remember, the first character of IFS is used to create $*,
2211# except with old shells:
2212host_os=$*
2213IFS=$ac_save_IFS
2214case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2215
2216
ec6a6fbe
AK
2217{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2218$as_echo_n "checking target system type... " >&6; }
ad6254c5 2219if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2220 $as_echo_n "(cached) " >&6
ad6254c5 2221else
7a197a62
AK
2222 if test "x$target_alias" = x; then
2223 ac_cv_target=$ac_cv_host
2224else
2225 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2226 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2227$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2228 { (exit 1); exit 1; }; }
7a197a62 2229fi
8ce0cbda 2230
ad6254c5 2231fi
ec6a6fbe
AK
2232{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2233$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2234case $ac_cv_target in
2235*-*-*) ;;
ec6a6fbe
AK
2236*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2237$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2238 { (exit 1); exit 1; }; };;
2239esac
ad6254c5 2240target=$ac_cv_target
7a197a62
AK
2241ac_save_IFS=$IFS; IFS='-'
2242set x $ac_cv_target
2243shift
2244target_cpu=$1
2245target_vendor=$2
2246shift; shift
2247# Remember, the first character of IFS is used to create $*,
2248# except with old shells:
2249target_os=$*
2250IFS=$ac_save_IFS
2251case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2252
8ce0cbda 2253
ad6254c5
AK
2254# The aliases save the names the user supplied, while $host etc.
2255# will get canonicalized.
2256test -n "$target_alias" &&
8ce0cbda
AK
2257 test "$program_prefix$program_suffix$program_transform_name" = \
2258 NONENONEs,x,x, &&
2259 program_prefix=${target_alias}-
2260
8ce0cbda
AK
2261case "$host_os" in
2262 linux*)
7f54ef36 2263 CFLAGS="$CFLAGS"
8ce0cbda
AK
2264 COPTIMISE_FLAG="-O2"
2265 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2266 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2267 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2268 LDDEPS="$LDDEPS .export.sym"
2269 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2270 LIB_SUFFIX=so
8ce0cbda
AK
2271 DEVMAPPER=yes
2272 ODIRECT=yes
d0191583 2273 DM_IOCTLS=yes
8ce0cbda
AK
2274 SELINUX=yes
2275 CLUSTER=internal
93bd259b 2276 FSADM=yes
d0191583 2277 ;;
8ce0cbda
AK
2278 darwin*)
2279 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2280 COPTIMISE_FLAG="-O2"
2281 CLDFLAGS="$CLDFLAGS"
2282 CLDWHOLEARCHIVE="-all_load"
2283 CLDNOWHOLEARCHIVE=
d0191583 2284 LIB_SUFFIX=dylib
a653923f 2285 DEVMAPPER=yes
8ce0cbda 2286 ODIRECT=no
d0191583 2287 DM_IOCTLS=no
8ce0cbda
AK
2288 SELINUX=no
2289 CLUSTER=none
d0191583
JM
2290 FSADM=no
2291 ;;
8ce0cbda
AK
2292esac
2293
80992638 2294################################################################################
ec6a6fbe
AK
2295{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2296$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2297if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2298 $as_echo_n "(cached) " >&6
5951ef33
AK
2299else
2300 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2301 for ac_i in 1 2 3 4 5 6 7; do
2302 ac_script="$ac_script$as_nl$ac_script"
2303 done
ec6a6fbe 2304 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2305 $as_unset ac_script || ac_script=
ec6a6fbe 2306 if test -z "$SED"; then
5951ef33 2307 ac_path_SED_found=false
ec6a6fbe
AK
2308 # Loop through the user's path and test for each of PROGNAME-LIST
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2310for as_dir in $PATH
2311do
2312 IFS=$as_save_IFS
2313 test -z "$as_dir" && as_dir=.
2314 for ac_prog in sed gsed; do
ec6a6fbe
AK
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2317 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2318# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2319 # Check for GNU $ac_path_SED
2320case `"$ac_path_SED" --version 2>&1` in
2321*GNU*)
2322 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2323*)
2324 ac_count=0
ec6a6fbe 2325 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2326 while :
2327 do
2328 cat "conftest.in" "conftest.in" >"conftest.tmp"
2329 mv "conftest.tmp" "conftest.in"
2330 cp "conftest.in" "conftest.nl"
ec6a6fbe 2331 $as_echo '' >> "conftest.nl"
5951ef33
AK
2332 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2333 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2334 ac_count=`expr $ac_count + 1`
2335 if test $ac_count -gt ${ac_path_SED_max-0}; then
2336 # Best one so far, save it but keep looking for a better one
2337 ac_cv_path_SED="$ac_path_SED"
2338 ac_path_SED_max=$ac_count
2339 fi
2340 # 10*(2^10) chars as input seems more than enough
2341 test $ac_count -gt 10 && break
2342 done
2343 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2344esac
2345
ec6a6fbe
AK
2346 $ac_path_SED_found && break 3
2347 done
5951ef33
AK
2348 done
2349done
5951ef33 2350IFS=$as_save_IFS
ec6a6fbe
AK
2351 if test -z "$ac_cv_path_SED"; then
2352 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2353$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2354 { (exit 1); exit 1; }; }
ec6a6fbe 2355 fi
5951ef33
AK
2356else
2357 ac_cv_path_SED=$SED
2358fi
2359
2360fi
ec6a6fbe
AK
2361{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2362$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2363 SED="$ac_cv_path_SED"
2364 rm -f conftest.sed
2365
ad6254c5 2366for ac_prog in gawk mawk nawk awk
795ca3e5 2367do
ad6254c5 2368 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2369set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2372if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2373 $as_echo_n "(cached) " >&6
795ca3e5
AK
2374else
2375 if test -n "$AWK"; then
2376 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2377else
ad6254c5
AK
2378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2385 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2387 break 2
2388 fi
2389done
2390done
7a197a62 2391IFS=$as_save_IFS
ad6254c5 2392
795ca3e5
AK
2393fi
2394fi
ad6254c5 2395AWK=$ac_cv_prog_AWK
795ca3e5 2396if test -n "$AWK"; then
ec6a6fbe
AK
2397 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2398$as_echo "$AWK" >&6; }
795ca3e5 2399else
ec6a6fbe
AK
2400 { $as_echo "$as_me:$LINENO: result: no" >&5
2401$as_echo "no" >&6; }
795ca3e5
AK
2402fi
2403
7a197a62 2404
ad6254c5
AK
2405 test -n "$AWK" && break
2406done
2407
2408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2415set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2416{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2417$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2418if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2419 $as_echo_n "(cached) " >&6
ad6254c5
AK
2420else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2433 break 2
2434 fi
2435done
8106cdd5 2436done
7a197a62 2437IFS=$as_save_IFS
8106cdd5 2438
ad6254c5
AK
2439fi
2440fi
2441CC=$ac_cv_prog_CC
2442if test -n "$CC"; then
ec6a6fbe
AK
2443 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2444$as_echo "$CC" >&6; }
ad6254c5 2445else
ec6a6fbe
AK
2446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447$as_echo "no" >&6; }
ad6254c5
AK
2448fi
2449
7a197a62 2450
ad6254c5
AK
2451fi
2452if test -z "$ac_cv_prog_CC"; then
2453 ac_ct_CC=$CC
2454 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2455set dummy gcc; ac_word=$2
ec6a6fbe
AK
2456{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2457$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2458if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2459 $as_echo_n "(cached) " >&6
ad6254c5
AK
2460else
2461 if test -n "$ac_ct_CC"; then
2462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2463else
2464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2471 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2472 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2473 break 2
2474 fi
2475done
2476done
7a197a62 2477IFS=$as_save_IFS
ad6254c5
AK
2478
2479fi
2480fi
2481ac_ct_CC=$ac_cv_prog_ac_ct_CC
2482if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2483 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2484$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2485else
ec6a6fbe
AK
2486 { $as_echo "$as_me:$LINENO: result: no" >&5
2487$as_echo "no" >&6; }
ad6254c5
AK
2488fi
2489
7a197a62
AK
2490 if test "x$ac_ct_CC" = x; then
2491 CC=""
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494yes:)
ec6a6fbe
AK
2495{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2497ac_tool_warned=yes ;;
2498esac
2499 CC=$ac_ct_CC
2500 fi
ad6254c5
AK
2501else
2502 CC="$ac_cv_prog_CC"
2503fi
2504
2505if test -z "$CC"; then
7a197a62
AK
2506 if test -n "$ac_tool_prefix"; then
2507 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2508set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2509{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2510$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2511if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2512 $as_echo_n "(cached) " >&6
8106cdd5
AK
2513else
2514 if test -n "$CC"; then
2515 ac_cv_prog_CC="$CC" # Let the user override the test.
2516else
ad6254c5
AK
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2524 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2526 break 2
2527 fi
2528done
2529done
7a197a62 2530IFS=$as_save_IFS
ad6254c5 2531
8106cdd5
AK
2532fi
2533fi
ad6254c5 2534CC=$ac_cv_prog_CC
8106cdd5 2535if test -n "$CC"; then
ec6a6fbe
AK
2536 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2537$as_echo "$CC" >&6; }
ad6254c5 2538else
ec6a6fbe
AK
2539 { $as_echo "$as_me:$LINENO: result: no" >&5
2540$as_echo "no" >&6; }
ad6254c5
AK
2541fi
2542
8106cdd5 2543
7a197a62 2544 fi
ad6254c5 2545fi
795ca3e5
AK
2546if test -z "$CC"; then
2547 # Extract the first word of "cc", so it can be a program name with args.
2548set dummy cc; ac_word=$2
ec6a6fbe
AK
2549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2550$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2551if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2552 $as_echo_n "(cached) " >&6
795ca3e5
AK
2553else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556else
795ca3e5 2557 ac_prog_rejected=no
ad6254c5
AK
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561 IFS=$as_save_IFS
2562 test -z "$as_dir" && as_dir=.
2563 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2565 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2566 ac_prog_rejected=yes
2567 continue
2568 fi
2569 ac_cv_prog_CC="cc"
ec6a6fbe 2570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2571 break 2
2572 fi
2573done
2574done
7a197a62 2575IFS=$as_save_IFS
ad6254c5 2576
795ca3e5
AK
2577if test $ac_prog_rejected = yes; then
2578 # We found a bogon in the path, so make sure we never use it.
2579 set dummy $ac_cv_prog_CC
2580 shift
ad6254c5 2581 if test $# != 0; then
795ca3e5
AK
2582 # We chose a different compiler from the bogus one.
2583 # However, it has the same basename, so the bogon will be chosen
2584 # first if we set CC to just the basename; use the full file name.
2585 shift
ad6254c5 2586 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2587 fi
2588fi
2589fi
2590fi
ad6254c5 2591CC=$ac_cv_prog_CC
795ca3e5 2592if test -n "$CC"; then
ec6a6fbe
AK
2593 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2594$as_echo "$CC" >&6; }
795ca3e5 2595else
ec6a6fbe
AK
2596 { $as_echo "$as_me:$LINENO: result: no" >&5
2597$as_echo "no" >&6; }
795ca3e5
AK
2598fi
2599
7a197a62 2600
ad6254c5
AK
2601fi
2602if test -z "$CC"; then
2603 if test -n "$ac_tool_prefix"; then
7a197a62 2604 for ac_prog in cl.exe
ad6254c5
AK
2605 do
2606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2607set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2608{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2609$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2610if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2611 $as_echo_n "(cached) " >&6
795ca3e5
AK
2612else
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2615else
ad6254c5
AK
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2624 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2625 break 2
2626 fi
2627done
2628done
7a197a62 2629IFS=$as_save_IFS
ad6254c5 2630
795ca3e5
AK
2631fi
2632fi
ad6254c5 2633CC=$ac_cv_prog_CC
795ca3e5 2634if test -n "$CC"; then
ec6a6fbe
AK
2635 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2636$as_echo "$CC" >&6; }
795ca3e5 2637else
ec6a6fbe
AK
2638 { $as_echo "$as_me:$LINENO: result: no" >&5
2639$as_echo "no" >&6; }
795ca3e5 2640fi
ad6254c5 2641
7a197a62 2642
ad6254c5
AK
2643 test -n "$CC" && break
2644 done
2645fi
2646if test -z "$CC"; then
2647 ac_ct_CC=$CC
7a197a62 2648 for ac_prog in cl.exe
ad6254c5
AK
2649do
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2652{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2655 $as_echo_n "(cached) " >&6
ad6254c5
AK
2656else
2657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2659else
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2667 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2668 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2669 break 2
795ca3e5 2670 fi
ad6254c5
AK
2671done
2672done
7a197a62 2673IFS=$as_save_IFS
ad6254c5
AK
2674
2675fi
2676fi
2677ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2679 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2680$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2681else
ec6a6fbe
AK
2682 { $as_echo "$as_me:$LINENO: result: no" >&5
2683$as_echo "no" >&6; }
795ca3e5
AK
2684fi
2685
7a197a62 2686
ad6254c5
AK
2687 test -n "$ac_ct_CC" && break
2688done
795ca3e5 2689
7a197a62
AK
2690 if test "x$ac_ct_CC" = x; then
2691 CC=""
2692 else
2693 case $cross_compiling:$ac_tool_warned in
2694yes:)
ec6a6fbe
AK
2695{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2697ac_tool_warned=yes ;;
2698esac
2699 CC=$ac_ct_CC
2700 fi
ad6254c5
AK
2701fi
2702
2703fi
2704
2705
ec6a6fbe
AK
2706test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2709See \`config.log' for more details." >&5
ec6a6fbe 2710$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2711See \`config.log' for more details." >&2;}
ec6a6fbe 2712 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2713
2714# Provide some information about the compiler.
ec6a6fbe
AK
2715$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2716set X $ac_compile
2717ac_compiler=$2
7a197a62
AK
2718{ (ac_try="$ac_compiler --version >&5"
2719case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
ec6a6fbe
AK
2723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2724$as_echo "$ac_try_echo") >&5
7a197a62 2725 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2726 ac_status=$?
ec6a6fbe 2727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2728 (exit $ac_status); }
7a197a62
AK
2729{ (ac_try="$ac_compiler -v >&5"
2730case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
ec6a6fbe
AK
2734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2735$as_echo "$ac_try_echo") >&5
7a197a62 2736 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2737 ac_status=$?
ec6a6fbe 2738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2739 (exit $ac_status); }
7a197a62
AK
2740{ (ac_try="$ac_compiler -V >&5"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
ec6a6fbe
AK
2745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2746$as_echo "$ac_try_echo") >&5
7a197a62 2747 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2748 ac_status=$?
ec6a6fbe 2749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2750 (exit $ac_status); }
2751
2752cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2753/* confdefs.h. */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h. */
2758
2759int
2760main ()
2761{
2762
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767ac_clean_files_save=$ac_clean_files
ec6a6fbe 2768ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2769# Try to create an executable without -o first, disregard a.out.
2770# It will help us diagnose broken compilers, and finding out an intuition
2771# of exeext.
ec6a6fbe
AK
2772{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2773$as_echo_n "checking for C compiler default output file name... " >&6; }
2774ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2775
2776# The possible output files:
2777ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2778
7a197a62
AK
2779ac_rmfiles=
2780for ac_file in $ac_files
2781do
2782 case $ac_file in
ec6a6fbe 2783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2784 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2785 esac
2786done
2787rm -f $ac_rmfiles
2788
2789if { (ac_try="$ac_link_default"
2790case "(($ac_try" in
2791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792 *) ac_try_echo=$ac_try;;
2793esac
ec6a6fbe
AK
2794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2795$as_echo "$ac_try_echo") >&5
7a197a62 2796 (eval "$ac_link_default") 2>&5
ad6254c5 2797 ac_status=$?
ec6a6fbe 2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2799 (exit $ac_status); }; then
7a197a62
AK
2800 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2801# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2802# in a Makefile. We should not override ac_cv_exeext if it was cached,
2803# so that the user can short-circuit this test for compilers unknown to
2804# Autoconf.
25fbec5b 2805for ac_file in $ac_files ''
ad6254c5
AK
2806do
2807 test -f "$ac_file" || continue
2808 case $ac_file in
ec6a6fbe 2809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2810 ;;
ad6254c5 2811 [ab].out )
8a2fc586
AK
2812 # We found the default executable, but exeext='' is most
2813 # certainly right.
2814 break;;
ad6254c5 2815 *.* )
7a197a62
AK
2816 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2817 then :; else
2818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2819 fi
2820 # We set ac_cv_exeext here because the later test for it is not
2821 # safe: cross compilers may not add the suffix if given an `-o'
2822 # argument, so we may need to know it at that point already.
2823 # Even if this section looks crufty: it has the advantage of
2824 # actually working.
8a2fc586 2825 break;;
ad6254c5 2826 * )
8a2fc586 2827 break;;
ad6254c5
AK
2828 esac
2829done
7a197a62
AK
2830test "$ac_cv_exeext" = no && ac_cv_exeext=
2831
ad6254c5 2832else
25fbec5b
AK
2833 ac_file=''
2834fi
2835
ec6a6fbe
AK
2836{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2837$as_echo "$ac_file" >&6; }
25fbec5b 2838if test -z "$ac_file"; then
ec6a6fbe 2839 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
ec6a6fbe
AK
2842{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2843$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2844{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2845See \`config.log' for more details." >&5
ec6a6fbe 2846$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2847See \`config.log' for more details." >&2;}
ec6a6fbe 2848 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2849fi
2850
2851ac_exeext=$ac_cv_exeext
ad6254c5 2852
7a197a62 2853# Check that the compiler produces executables we can run. If not, either
ad6254c5 2854# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2855{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2856$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2857# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2858# If not cross compiling, check that we can run a simple program.
2859if test "$cross_compiling" != yes; then
2860 if { ac_try='./$ac_file'
7a197a62
AK
2861 { (case "(($ac_try" in
2862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863 *) ac_try_echo=$ac_try;;
2864esac
ec6a6fbe
AK
2865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2866$as_echo "$ac_try_echo") >&5
7a197a62 2867 (eval "$ac_try") 2>&5
ad6254c5 2868 ac_status=$?
ec6a6fbe 2869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2870 (exit $ac_status); }; }; then
2871 cross_compiling=no
795ca3e5 2872 else
ad6254c5
AK
2873 if test "$cross_compiling" = maybe; then
2874 cross_compiling=yes
2875 else
ec6a6fbe
AK
2876 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2878{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2879If you meant to cross compile, use \`--host'.
2880See \`config.log' for more details." >&5
ec6a6fbe 2881$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2882If you meant to cross compile, use \`--host'.
2883See \`config.log' for more details." >&2;}
ec6a6fbe 2884 { (exit 1); exit 1; }; }; }
ad6254c5 2885 fi
795ca3e5 2886 fi
80992638 2887fi
ec6a6fbe
AK
2888{ $as_echo "$as_me:$LINENO: result: yes" >&5
2889$as_echo "yes" >&6; }
ad6254c5 2890
ec6a6fbe 2891rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2892ac_clean_files=$ac_clean_files_save
7a197a62 2893# Check that the compiler produces executables we can run. If not, either
ad6254c5 2894# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2895{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2896$as_echo_n "checking whether we are cross compiling... " >&6; }
2897{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2898$as_echo "$cross_compiling" >&6; }
7a197a62 2899
ec6a6fbe
AK
2900{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2901$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2902if { (ac_try="$ac_link"
2903case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906esac
ec6a6fbe
AK
2907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908$as_echo "$ac_try_echo") >&5
7a197a62 2909 (eval "$ac_link") 2>&5
ad6254c5 2910 ac_status=$?
ec6a6fbe 2911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2912 (exit $ac_status); }; then
2913 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2914# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2915# work properly (i.e., refer to `conftest.exe'), while it won't with
2916# `rm'.
2917for ac_file in conftest.exe conftest conftest.*; do
2918 test -f "$ac_file" || continue
2919 case $ac_file in
ec6a6fbe 2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2921 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2922 break;;
ad6254c5
AK
2923 * ) break;;
2924 esac
2925done
80992638 2926else
ec6a6fbe
AK
2927 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2928$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2929{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2930See \`config.log' for more details." >&5
ec6a6fbe 2931$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2932See \`config.log' for more details." >&2;}
ec6a6fbe 2933 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2934fi
2935
2936rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2937{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2938$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2939
2940rm -f conftest.$ac_ext
2941EXEEXT=$ac_cv_exeext
2942ac_exeext=$EXEEXT
ec6a6fbe
AK
2943{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2944$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2945if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2946 $as_echo_n "(cached) " >&6
795ca3e5 2947else
ad6254c5 2948 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2949/* confdefs.h. */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h. */
2954
2955int
2956main ()
2957{
2958
2959 ;
2960 return 0;
2961}
2962_ACEOF
2963rm -f conftest.o conftest.obj
7a197a62
AK
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2968esac
ec6a6fbe
AK
2969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2970$as_echo "$ac_try_echo") >&5
7a197a62 2971 (eval "$ac_compile") 2>&5
ad6254c5 2972 ac_status=$?
ec6a6fbe 2973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2974 (exit $ac_status); }; then
7a197a62
AK
2975 for ac_file in conftest.o conftest.obj conftest.*; do
2976 test -f "$ac_file" || continue;
ad6254c5 2977 case $ac_file in
ec6a6fbe 2978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2979 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2980 break;;
2981 esac
2982done
2983else
ec6a6fbe 2984 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2985sed 's/^/| /' conftest.$ac_ext >&5
2986
ec6a6fbe
AK
2987{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2989{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2990See \`config.log' for more details." >&5
ec6a6fbe 2991$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2992See \`config.log' for more details." >&2;}
ec6a6fbe 2993 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2994fi
2995
2996rm -f conftest.$ac_cv_objext conftest.$ac_ext
2997fi
ec6a6fbe
AK
2998{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2999$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
3000OBJEXT=$ac_cv_objext
3001ac_objext=$OBJEXT
ec6a6fbe
AK
3002{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3003$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 3004if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 3005 $as_echo_n "(cached) " >&6
ad6254c5
AK
3006else
3007 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
3013
3014int
3015main ()
3016{
3017#ifndef __GNUC__
3018 choke me
3019#endif
80992638 3020
ad6254c5
AK
3021 ;
3022 return 0;
3023}
3024_ACEOF
3025rm -f conftest.$ac_objext
7a197a62
AK
3026if { (ac_try="$ac_compile"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
ec6a6fbe
AK
3031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3032$as_echo "$ac_try_echo") >&5
7a197a62 3033 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3034 ac_status=$?
8a2fc586
AK
3035 grep -v '^ *+' conftest.er1 >conftest.err
3036 rm -f conftest.er1
3037 cat conftest.err >&5
ec6a6fbe 3038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3039 (exit $ac_status); } && {
3040 test -z "$ac_c_werror_flag" ||
3041 test ! -s conftest.err
3042 } && test -s conftest.$ac_objext; then
ad6254c5 3043 ac_compiler_gnu=yes
80992638 3044else
ec6a6fbe 3045 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
7a197a62 3048 ac_compiler_gnu=no
8106cdd5 3049fi
7a197a62
AK
3050
3051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3052ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3053
ad6254c5 3054fi
ec6a6fbe
AK
3055{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3056$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3057if test $ac_compiler_gnu = yes; then
3058 GCC=yes
3059else
3060 GCC=
3061fi
ad6254c5
AK
3062ac_test_CFLAGS=${CFLAGS+set}
3063ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3064{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3065$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3066if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3067 $as_echo_n "(cached) " >&6
795ca3e5 3068else
7a197a62
AK
3069 ac_save_c_werror_flag=$ac_c_werror_flag
3070 ac_c_werror_flag=yes
3071 ac_cv_prog_cc_g=no
3072 CFLAGS="-g"
3073 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */
3079
3080int
3081main ()
3082{
3083
3084 ;
3085 return 0;
3086}
3087_ACEOF
3088rm -f conftest.$ac_objext
7a197a62
AK
3089if { (ac_try="$ac_compile"
3090case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
ec6a6fbe
AK
3094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3095$as_echo "$ac_try_echo") >&5
7a197a62 3096 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3097 ac_status=$?
8a2fc586
AK
3098 grep -v '^ *+' conftest.er1 >conftest.err
3099 rm -f conftest.er1
3100 cat conftest.err >&5
ec6a6fbe 3101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3102 (exit $ac_status); } && {
3103 test -z "$ac_c_werror_flag" ||
3104 test ! -s conftest.err
3105 } && test -s conftest.$ac_objext; then
7a197a62
AK
3106 ac_cv_prog_cc_g=yes
3107else
ec6a6fbe 3108 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3109sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 CFLAGS=""
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118
3119int
3120main ()
3121{
3122
3123 ;
3124 return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
ec6a6fbe
AK
3133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3134$as_echo "$ac_try_echo") >&5
7a197a62 3135 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3136 ac_status=$?
7a197a62
AK
3137 grep -v '^ *+' conftest.er1 >conftest.err
3138 rm -f conftest.er1
3139 cat conftest.err >&5
ec6a6fbe 3140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3141 (exit $ac_status); } && {
3142 test -z "$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3144 } && test -s conftest.$ac_objext; then
7a197a62
AK
3145 :
3146else
ec6a6fbe 3147 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150 ac_c_werror_flag=$ac_save_c_werror_flag
3151 CFLAGS="-g"
3152 cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h. */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext
3168if { (ac_try="$ac_compile"
3169case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
ec6a6fbe
AK
3173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3174$as_echo "$ac_try_echo") >&5
7a197a62 3175 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3176 ac_status=$?
7a197a62
AK
3177 grep -v '^ *+' conftest.er1 >conftest.err
3178 rm -f conftest.er1
3179 cat conftest.err >&5
ec6a6fbe 3180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3185 ac_cv_prog_cc_g=yes
3186else
ec6a6fbe 3187 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3188sed 's/^/| /' conftest.$ac_ext >&5
80992638 3189
7a197a62
AK
3190
3191fi
3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
3195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3197fi
7a197a62
AK
3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3201fi
ec6a6fbe
AK
3202{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3203$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3204if test "$ac_test_CFLAGS" = set; then
ad6254c5 3205 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3206elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3208 CFLAGS="-g -O2"
3209 else
3210 CFLAGS="-g"
3211 fi
3212else
3213 if test "$GCC" = yes; then
3214 CFLAGS="-O2"
3215 else
3216 CFLAGS=
3217 fi
3218fi
ec6a6fbe
AK
3219{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3220$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3221if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3222 $as_echo_n "(cached) " >&6
ad6254c5 3223else
7a197a62 3224 ac_cv_prog_cc_c89=no
ad6254c5
AK
3225ac_save_CC=$CC
3226cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232#include <stdarg.h>
3233#include <stdio.h>
3234#include <sys/types.h>
3235#include <sys/stat.h>
3236/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237struct buf { int x; };
3238FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239static char *e (p, i)
3240 char **p;
3241 int i;
3242{
3243 return p[i];
3244}
3245static char *f (char * (*g) (char **, int), char **p, ...)
3246{
3247 char *s;
3248 va_list v;
3249 va_start (v,p);
3250 s = g (p, va_arg (v,int));
3251 va_end (v);
3252 return s;
3253}
8a2fc586
AK
3254
3255/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3258 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3261 that's true only with -std. */
8a2fc586
AK
3262int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
7a197a62
AK
3264/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265 inside strings and character constants. */
3266#define FOO(x) 'x'
3267int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
ad6254c5
AK
3269int test (int i, double x);
3270struct s1 {int (*f) (int a);};
3271struct s2 {int (*f) (double a);};
3272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273int argc;
3274char **argv;
3275int
3276main ()
3277{
3278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 ;
3280 return 0;
3281}
3282_ACEOF
7a197a62
AK
3283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3285do
3286 CC="$ac_save_CC $ac_arg"
3287 rm -f conftest.$ac_objext
7a197a62
AK
3288if { (ac_try="$ac_compile"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
ec6a6fbe
AK
3293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3294$as_echo "$ac_try_echo") >&5
7a197a62 3295 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3296 ac_status=$?
8a2fc586
AK
3297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
ec6a6fbe 3300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3301 (exit $ac_status); } && {
3302 test -z "$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3304 } && test -s conftest.$ac_objext; then
7a197a62 3305 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3306else
ec6a6fbe 3307 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
7a197a62 3310
ad6254c5 3311fi
7a197a62
AK
3312
3313rm -f core conftest.err conftest.$ac_objext
3314 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3315done
7a197a62 3316rm -f conftest.$ac_ext
ad6254c5
AK
3317CC=$ac_save_CC
3318
3319fi
7a197a62
AK
3320# AC_CACHE_VAL
3321case "x$ac_cv_prog_cc_c89" in
3322 x)
ec6a6fbe
AK
3323 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3324$as_echo "none needed" >&6; } ;;
7a197a62 3325 xno)
ec6a6fbe
AK
3326 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3327$as_echo "unsupported" >&6; } ;;
ad6254c5 3328 *)
7a197a62 3329 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3331$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3332esac
3333
ad6254c5 3334
ad6254c5
AK
3335ac_ext=c
3336ac_cpp='$CPP $CPPFLAGS'
3337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3340
d0191583
JM
3341
3342
3343ac_ext=c
3344ac_cpp='$CPP $CPPFLAGS'
3345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3347ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3348{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3349$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3350# On Suns, sometimes $CPP names a directory.
3351if test -n "$CPP" && test -d "$CPP"; then
3352 CPP=
3353fi
3354if test -z "$CPP"; then
3355 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3356 $as_echo_n "(cached) " >&6
ad6254c5 3357else
d0191583
JM
3358 # Double quotes because CPP needs to be expanded
3359 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3360 do
3361 ac_preproc_ok=false
3362for ac_c_preproc_warn_flag in '' yes
ad6254c5 3363do
d0191583
JM
3364 # Use a header file that comes with gcc, so configuring glibc
3365 # with a fresh cross-compiler works.
3366 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3367 # <limits.h> exists even on freestanding compilers.
3368 # On the NeXT, cc -E runs the code through the compiler's parser,
3369 # not just through cpp. "Syntax error" is here to catch this case.
3370 cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h. */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h. */
3376#ifdef __STDC__
3377# include <limits.h>
3378#else
3379# include <assert.h>
3380#endif
3381 Syntax error
3382_ACEOF
3383if { (ac_try="$ac_cpp conftest.$ac_ext"
3384case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
ad6254c5 3387esac
ec6a6fbe
AK
3388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389$as_echo "$ac_try_echo") >&5
d0191583
JM
3390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
ec6a6fbe 3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3396 (exit $ac_status); } >/dev/null && {
3397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 }; then
3400 :
3401else
ec6a6fbe 3402 $as_echo "$as_me: failed program was:" >&5
d0191583 3403sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3404
d0191583
JM
3405 # Broken: fails on valid input.
3406continue
795ca3e5 3407fi
795ca3e5 3408
d0191583 3409rm -f conftest.err conftest.$ac_ext
795ca3e5 3410
d0191583
JM
3411 # OK, works on sane cases. Now check whether nonexistent headers
3412 # can be detected and how.
3413 cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h. */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h. */
3419#include <ac_nonexistent.h>
3420_ACEOF
3421if { (ac_try="$ac_cpp conftest.$ac_ext"
3422case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425esac
ec6a6fbe
AK
3426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427$as_echo "$ac_try_echo") >&5
d0191583
JM
3428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
ec6a6fbe 3433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3434 (exit $ac_status); } >/dev/null && {
3435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 }; then
3438 # Broken: success on invalid input.
3439continue
3440else
ec6a6fbe 3441 $as_echo "$as_me: failed program was:" >&5
d0191583 3442sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3443
d0191583
JM
3444 # Passes both tests.
3445ac_preproc_ok=:
3446break
3447fi
795ca3e5 3448
d0191583
JM
3449rm -f conftest.err conftest.$ac_ext
3450
3451done
3452# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3453rm -f conftest.err conftest.$ac_ext
3454if $ac_preproc_ok; then
3455 break
795ca3e5
AK
3456fi
3457
d0191583
JM
3458 done
3459 ac_cv_prog_CPP=$CPP
3460
3461fi
3462 CPP=$ac_cv_prog_CPP
795ca3e5 3463else
d0191583
JM
3464 ac_cv_prog_CPP=$CPP
3465fi
ec6a6fbe
AK
3466{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3467$as_echo "$CPP" >&6; }
d0191583
JM
3468ac_preproc_ok=false
3469for ac_c_preproc_warn_flag in '' yes
3470do
3471 # Use a header file that comes with gcc, so configuring glibc
3472 # with a fresh cross-compiler works.
3473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3474 # <limits.h> exists even on freestanding compilers.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.$ac_ext <<_ACEOF
3478/* confdefs.h. */
ad6254c5 3479_ACEOF
d0191583
JM
3480cat confdefs.h >>conftest.$ac_ext
3481cat >>conftest.$ac_ext <<_ACEOF
3482/* end confdefs.h. */
3483#ifdef __STDC__
3484# include <limits.h>
3485#else
3486# include <assert.h>
3487#endif
3488 Syntax error
3489_ACEOF
3490if { (ac_try="$ac_cpp conftest.$ac_ext"
3491case "(($ac_try" in
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
7a197a62 3494esac
ec6a6fbe
AK
3495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3496$as_echo "$ac_try_echo") >&5
d0191583
JM
3497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3498 ac_status=$?
3499 grep -v '^ *+' conftest.er1 >conftest.err
3500 rm -f conftest.er1
3501 cat conftest.err >&5
ec6a6fbe 3502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3503 (exit $ac_status); } >/dev/null && {
3504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3505 test ! -s conftest.err
3506 }; then
3507 :
795ca3e5 3508else
ec6a6fbe 3509 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 # Broken: fails on valid input.
3513continue
795ca3e5
AK
3514fi
3515
d0191583
JM
3516rm -f conftest.err conftest.$ac_ext
3517
3518 # OK, works on sane cases. Now check whether nonexistent headers
3519 # can be detected and how.
3520 cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h. */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h. */
3526#include <ac_nonexistent.h>
3527_ACEOF
3528if { (ac_try="$ac_cpp conftest.$ac_ext"
3529case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532esac
ec6a6fbe
AK
3533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3534$as_echo "$ac_try_echo") >&5
d0191583
JM
3535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
ec6a6fbe 3540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3541 (exit $ac_status); } >/dev/null && {
3542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 }; then
3545 # Broken: success on invalid input.
3546continue
795ca3e5 3547else
ec6a6fbe 3548 $as_echo "$as_me: failed program was:" >&5
d0191583 3549sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3550
d0191583
JM
3551 # Passes both tests.
3552ac_preproc_ok=:
3553break
795ca3e5 3554fi
d0191583
JM
3555
3556rm -f conftest.err conftest.$ac_ext
3557
3558done
3559# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3560rm -f conftest.err conftest.$ac_ext
3561if $ac_preproc_ok; then
3562 :
8106cdd5 3563else
ec6a6fbe
AK
3564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3565$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3567See \`config.log' for more details." >&5
ec6a6fbe 3568$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3569See \`config.log' for more details." >&2;}
ec6a6fbe 3570 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3571fi
3572
d0191583
JM
3573ac_ext=c
3574ac_cpp='$CPP $CPPFLAGS'
3575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3577ac_compiler_gnu=$ac_cv_c_compiler_gnu
3578
7a197a62 3579
ec6a6fbe
AK
3580{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3581$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3582if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3583 $as_echo_n "(cached) " >&6
ad6254c5 3584else
ec6a6fbe 3585 if test -z "$GREP"; then
d0191583 3586 ac_path_GREP_found=false
ec6a6fbe
AK
3587 # Loop through the user's path and test for each of PROGNAME-LIST
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3589for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3590do
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
d0191583 3593 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3594 for ac_exec_ext in '' $ac_executable_extensions; do
3595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3597# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3598 # Check for GNU $ac_path_GREP
3599case `"$ac_path_GREP" --version 2>&1` in
3600*GNU*)
3601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3602*)
3603 ac_count=0
ec6a6fbe 3604 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3605 while :
3606 do
3607 cat "conftest.in" "conftest.in" >"conftest.tmp"
3608 mv "conftest.tmp" "conftest.in"
3609 cp "conftest.in" "conftest.nl"
ec6a6fbe 3610 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3613 ac_count=`expr $ac_count + 1`
3614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3615 # Best one so far, save it but keep looking for a better one
3616 ac_cv_path_GREP="$ac_path_GREP"
3617 ac_path_GREP_max=$ac_count
3618 fi
3619 # 10*(2^10) chars as input seems more than enough
3620 test $ac_count -gt 10 && break
3621 done
3622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3623esac
3624
ec6a6fbe
AK
3625 $ac_path_GREP_found && break 3
3626 done
d0191583 3627 done
ad6254c5 3628done
7a197a62 3629IFS=$as_save_IFS
ec6a6fbe
AK
3630 if test -z "$ac_cv_path_GREP"; then
3631 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3632$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3633 { (exit 1); exit 1; }; }
ec6a6fbe 3634 fi
80992638 3635else
d0191583 3636 ac_cv_path_GREP=$GREP
8106cdd5 3637fi
8106cdd5 3638
80992638 3639fi
ec6a6fbe
AK
3640{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3641$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3642 GREP="$ac_cv_path_GREP"
795ca3e5 3643
d0191583 3644
ec6a6fbe
AK
3645{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3646$as_echo_n "checking for egrep... " >&6; }
d0191583 3647if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3648 $as_echo_n "(cached) " >&6
8a2fc586 3649else
d0191583
JM
3650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3651 then ac_cv_path_EGREP="$GREP -E"
3652 else
ec6a6fbe 3653 if test -z "$EGREP"; then
d0191583 3654 ac_path_EGREP_found=false
ec6a6fbe
AK
3655 # Loop through the user's path and test for each of PROGNAME-LIST
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3657for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
d0191583 3661 for ac_prog in egrep; do
ec6a6fbe
AK
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3664 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3665# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3666 # Check for GNU $ac_path_EGREP
3667case `"$ac_path_EGREP" --version 2>&1` in
3668*GNU*)
3669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3670*)
3671 ac_count=0
ec6a6fbe 3672 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3673 while :
3674 do
3675 cat "conftest.in" "conftest.in" >"conftest.tmp"
3676 mv "conftest.tmp" "conftest.in"
3677 cp "conftest.in" "conftest.nl"
ec6a6fbe 3678 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3681 ac_count=`expr $ac_count + 1`
3682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3683 # Best one so far, save it but keep looking for a better one
3684 ac_cv_path_EGREP="$ac_path_EGREP"
3685 ac_path_EGREP_max=$ac_count
3686 fi
3687 # 10*(2^10) chars as input seems more than enough
3688 test $ac_count -gt 10 && break
3689 done
3690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3691esac
8a2fc586 3692
ec6a6fbe
AK
3693 $ac_path_EGREP_found && break 3
3694 done
d0191583 3695 done
8a2fc586 3696done
7a197a62 3697IFS=$as_save_IFS
ec6a6fbe
AK
3698 if test -z "$ac_cv_path_EGREP"; then
3699 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3700$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3701 { (exit 1); exit 1; }; }
ec6a6fbe 3702 fi
d0191583
JM
3703else
3704 ac_cv_path_EGREP=$EGREP
3705fi
ad6254c5 3706
d0191583
JM
3707 fi
3708fi
ec6a6fbe
AK
3709{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3710$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3711 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3712
3713
d0191583 3714if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3715 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3716$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3717if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3718 $as_echo_n "(cached) " >&6
8106cdd5 3719else
d0191583 3720 ac_pattern="Autoconf.*'x'"
ad6254c5 3721 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3722/* confdefs.h. */
3723_ACEOF
3724cat confdefs.h >>conftest.$ac_ext
3725cat >>conftest.$ac_ext <<_ACEOF
3726/* end confdefs.h. */
d0191583
JM
3727#include <sgtty.h>
3728Autoconf TIOCGETP
ad6254c5 3729_ACEOF
d0191583
JM
3730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3731 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3732 ac_cv_prog_gcc_traditional=yes
8106cdd5 3733else
d0191583 3734 ac_cv_prog_gcc_traditional=no
80992638 3735fi
d0191583 3736rm -f conftest*
ad6254c5 3737
8106cdd5 3738
d0191583
JM
3739 if test $ac_cv_prog_gcc_traditional = no; then
3740 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
d0191583
JM
3746#include <termio.h>
3747Autoconf TCGETA
ad6254c5 3748_ACEOF
d0191583
JM
3749if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3750 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3751 ac_cv_prog_gcc_traditional=yes
7a197a62 3752fi
d0191583 3753rm -f conftest*
795ca3e5 3754
d0191583 3755 fi
795ca3e5 3756fi
ec6a6fbe
AK
3757{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3758$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3759 if test $ac_cv_prog_gcc_traditional = yes; then
3760 CC="$CC -traditional"
3761 fi
795ca3e5
AK
3762fi
3763
d0191583
JM
3764# Find a good install program. We prefer a C program (faster),
3765# so one script is as good as another. But avoid the broken or
3766# incompatible versions:
3767# SysV /etc/install, /usr/sbin/install
3768# SunOS /usr/etc/install
3769# IRIX /sbin/install
3770# AIX /bin/install
3771# AmigaOS /C/install, which installs bootblocks on floppy discs
3772# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3773# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3774# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3775# OS/2's system install, which has a completely different semantic
3776# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3777# Reject install programs that cannot install multiple files.
3778{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3779$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3780if test -z "$INSTALL"; then
3781if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3782 $as_echo_n "(cached) " >&6
ad6254c5 3783else
d0191583
JM
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 # Account for people who put trailing slashes in PATH elements.
3790case $as_dir/ in
3791 ./ | .// | /cC/* | \
3792 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3793 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3794 /usr/ucb/* ) ;;
3795 *)
3796 # OSF1 and SCO ODT 3.0 have their own names for install.
3797 # Don't use installbsd from OSF since it installs stuff as root
3798 # by default.
3799 for ac_prog in ginstall scoinst install; do
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3802 if test $ac_prog = install &&
3803 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3804 # AIX install. It has an incompatible calling convention.
3805 :
3806 elif test $ac_prog = install &&
3807 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3808 # program-specific install script used by HP pwplus--don't use.
3809 :
3810 else
ec6a6fbe
AK
3811 rm -rf conftest.one conftest.two conftest.dir
3812 echo one > conftest.one
3813 echo two > conftest.two
3814 mkdir conftest.dir
3815 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3816 test -s conftest.one && test -s conftest.two &&
3817 test -s conftest.dir/conftest.one &&
3818 test -s conftest.dir/conftest.two
3819 then
3820 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3821 break 3
3822 fi
d0191583
JM
3823 fi
3824 fi
3825 done
3826 done
3827 ;;
3828esac
ec6a6fbe 3829
d0191583
JM
3830done
3831IFS=$as_save_IFS
80992638 3832
ec6a6fbe 3833rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3834
3835fi
3836 if test "${ac_cv_path_install+set}" = set; then
3837 INSTALL=$ac_cv_path_install
7a197a62 3838 else
d0191583
JM
3839 # As a last resort, use the slow shell script. Don't cache a
3840 # value for INSTALL within a source directory, because that will
3841 # break other packages using the cache if that directory is
3842 # removed, or if the value is a relative name.
3843 INSTALL=$ac_install_sh
7a197a62 3844 fi
d0191583 3845fi
ec6a6fbe
AK
3846{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3847$as_echo "$INSTALL" >&6; }
ad6254c5 3848
d0191583
JM
3849# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3850# It thinks the first close brace ends the variable substitution.
3851test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3852
d0191583 3853test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3854
d0191583
JM
3855test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3856
ec6a6fbe
AK
3857{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3858$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3859LN_S=$as_ln_s
3860if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3861 { $as_echo "$as_me:$LINENO: result: yes" >&5
3862$as_echo "yes" >&6; }
d0191583 3863else
ec6a6fbe
AK
3864 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3865$as_echo "no, using $LN_S" >&6; }
795ca3e5 3866fi
d0191583 3867
ec6a6fbe
AK
3868{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3869$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3870set x ${MAKE-make}
3871ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3872if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3873 $as_echo_n "(cached) " >&6
7a197a62 3874else
d0191583
JM
3875 cat >conftest.make <<\_ACEOF
3876SHELL = /bin/sh
3877all:
3878 @echo '@@@%%%=$(MAKE)=@@@%%%'
3879_ACEOF
3880# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3881case `${MAKE-make} -f conftest.make 2>/dev/null` in
3882 *@@@%%%=?*=@@@%%%*)
3883 eval ac_cv_prog_make_${ac_make}_set=yes;;
3884 *)
3885 eval ac_cv_prog_make_${ac_make}_set=no;;
3886esac
3887rm -f conftest.make
ad6254c5 3888fi
d0191583 3889if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3890 { $as_echo "$as_me:$LINENO: result: yes" >&5
3891$as_echo "yes" >&6; }
d0191583
JM
3892 SET_MAKE=
3893else
ec6a6fbe
AK
3894 { $as_echo "$as_me:$LINENO: result: no" >&5
3895$as_echo "no" >&6; }
d0191583 3896 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3897fi
8106cdd5 3898
ec6a6fbe
AK
3899{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3900$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3901if test -z "$MKDIR_P"; then
3902 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3903 $as_echo_n "(cached) " >&6
5556819a
AK
3904else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_prog in mkdir gmkdir; do
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3913 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3914 'mkdir (GNU coreutils) '* | \
3915 'mkdir (coreutils) '* | \
3916 'mkdir (fileutils) '4.1*)
3917 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3918 break 3;;
3919 esac
3920 done
3921 done
3922done
3923IFS=$as_save_IFS
3924
3925fi
3926
3927 if test "${ac_cv_path_mkdir+set}" = set; then
3928 MKDIR_P="$ac_cv_path_mkdir -p"
3929 else
3930 # As a last resort, use the slow shell script. Don't cache a
3931 # value for MKDIR_P within a source directory, because that will
3932 # break other packages using the cache if that directory is
3933 # removed, or if the value is a relative name.
3934 test -d ./--version && rmdir ./--version
3935 MKDIR_P="$ac_install_sh -d"
3936 fi
3937fi
ec6a6fbe
AK
3938{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3939$as_echo "$MKDIR_P" >&6; }
5556819a 3940
d0191583
JM
3941if test -n "$ac_tool_prefix"; then
3942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3943set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3945$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3946if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3947 $as_echo_n "(cached) " >&6
d0191583
JM
3948else
3949 if test -n "$RANLIB"; then
3950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3960 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3961 break 2
3962 fi
3963done
3964done
3965IFS=$as_save_IFS
8106cdd5 3966
795ca3e5 3967fi
d0191583
JM
3968fi
3969RANLIB=$ac_cv_prog_RANLIB
3970if test -n "$RANLIB"; then
ec6a6fbe
AK
3971 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3972$as_echo "$RANLIB" >&6; }
d0191583 3973else
ec6a6fbe
AK
3974 { $as_echo "$as_me:$LINENO: result: no" >&5
3975$as_echo "no" >&6; }
d0191583
JM
3976fi
3977
8106cdd5 3978
ad6254c5 3979fi
d0191583
JM
3980if test -z "$ac_cv_prog_RANLIB"; then
3981 ac_ct_RANLIB=$RANLIB
3982 # Extract the first word of "ranlib", so it can be a program name with args.
3983set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3985$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3986if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3987 $as_echo_n "(cached) " >&6
ad6254c5 3988else
d0191583
JM
3989 if test -n "$ac_ct_RANLIB"; then
3990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
8106cdd5 3994do
d0191583
JM
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 4000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4001 break 2
4002 fi
4003done
4004done
4005IFS=$as_save_IFS
4006
4007fi
4008fi
4009ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4010if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4011 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4012$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4013else
ec6a6fbe
AK
4014 { $as_echo "$as_me:$LINENO: result: no" >&5
4015$as_echo "no" >&6; }
d0191583 4016fi
ad6254c5 4017
d0191583
JM
4018 if test "x$ac_ct_RANLIB" = x; then
4019 RANLIB=":"
4020 else
4021 case $cross_compiling:$ac_tool_warned in
4022yes:)
ec6a6fbe
AK
4023{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4024$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4025ac_tool_warned=yes ;;
4026esac
4027 RANLIB=$ac_ct_RANLIB
4028 fi
4029else
4030 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4031fi
7a197a62 4032
d0191583
JM
4033# Extract the first word of "cflow", so it can be a program name with args.
4034set dummy cflow; ac_word=$2
ec6a6fbe
AK
4035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4036$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4037if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4038 $as_echo_n "(cached) " >&6
d0191583
JM
4039else
4040 case $CFLOW_CMD in
4041 [\\/]* | ?:[\\/]*)
4042 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4043 ;;
4044 *)
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4054 break 2
4055 fi
4056done
4057done
4058IFS=$as_save_IFS
ad6254c5 4059
d0191583 4060 ;;
7a197a62 4061esac
d0191583
JM
4062fi
4063CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4064if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4065 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4066$as_echo "$CFLOW_CMD" >&6; }
80992638 4067else
ec6a6fbe
AK
4068 { $as_echo "$as_me:$LINENO: result: no" >&5
4069$as_echo "no" >&6; }
795ca3e5 4070fi
7a197a62 4071
ad6254c5 4072
d0191583
JM
4073# Extract the first word of "cscope", so it can be a program name with args.
4074set dummy cscope; ac_word=$2
ec6a6fbe
AK
4075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4076$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4077if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4078 $as_echo_n "(cached) " >&6
d0191583
JM
4079else
4080 case $CSCOPE_CMD in
4081 [\\/]* | ?:[\\/]*)
4082 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4083 ;;
4084 *)
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH
4087do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4094 break 2
4095 fi
795ca3e5 4096done
d0191583
JM
4097done
4098IFS=$as_save_IFS
795ca3e5 4099
d0191583
JM
4100 ;;
4101esac
ad6254c5 4102fi
d0191583
JM
4103CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4104if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4105 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4106$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4107else
ec6a6fbe
AK
4108 { $as_echo "$as_me:$LINENO: result: no" >&5
4109$as_echo "no" >&6; }
795ca3e5 4110fi
ad6254c5 4111
7a197a62 4112
ad6254c5 4113
d0191583
JM
4114################################################################################
4115
4116
4117
4118
4119
4120ac_header_dirent=no
4121for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4122 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4123{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4124$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4126 $as_echo_n "(cached) " >&6
d0191583 4127else
ad6254c5 4128 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
d0191583
JM
4134#include <sys/types.h>
4135#include <$ac_hdr>
4136
4137int
4138main ()
4139{
4140if ((DIR *) 0)
4141return 0;
4142 ;
4143 return 0;
4144}
ad6254c5 4145_ACEOF
d0191583
JM
4146rm -f conftest.$ac_objext
4147if { (ac_try="$ac_compile"
7a197a62
AK
4148case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
ec6a6fbe
AK
4152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4153$as_echo "$ac_try_echo") >&5
d0191583 4154 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4155 ac_status=$?
4156 grep -v '^ *+' conftest.er1 >conftest.err
4157 rm -f conftest.er1
4158 cat conftest.err >&5
ec6a6fbe 4159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4160 (exit $ac_status); } && {
4161 test -z "$ac_c_werror_flag" ||
25fbec5b 4162 test ! -s conftest.err
d0191583
JM
4163 } && test -s conftest.$ac_objext; then
4164 eval "$as_ac_Header=yes"
ad6254c5 4165else
ec6a6fbe 4166 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4167sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4168
d0191583 4169 eval "$as_ac_Header=no"
795ca3e5 4170fi
7a197a62 4171
d0191583 4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4173fi
ec6a6fbe
AK
4174ac_res=`eval 'as_val=${'$as_ac_Header'}
4175 $as_echo "$as_val"'`
4176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4177$as_echo "$ac_res" >&6; }
4178as_val=`eval 'as_val=${'$as_ac_Header'}
4179 $as_echo "$as_val"'`
4180 if test "x$as_val" = x""yes; then
d0191583 4181 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4182#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4183_ACEOF
795ca3e5 4184
d0191583
JM
4185ac_header_dirent=$ac_hdr; break
4186fi
ad6254c5 4187
d0191583
JM
4188done
4189# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4190if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4191 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4192$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4193if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4194 $as_echo_n "(cached) " >&6
ad6254c5 4195else
d0191583
JM
4196 ac_func_search_save_LIBS=$LIBS
4197cat >conftest.$ac_ext <<_ACEOF
4198/* confdefs.h. */
4199_ACEOF
4200cat confdefs.h >>conftest.$ac_ext
4201cat >>conftest.$ac_ext <<_ACEOF
4202/* end confdefs.h. */
ad6254c5 4203
d0191583
JM
4204/* Override any GCC internal prototype to avoid an error.
4205 Use char because int might match the return type of a GCC
4206 builtin and then its argument prototype would still apply. */
4207#ifdef __cplusplus
4208extern "C"
4209#endif
4210char opendir ();
4211int
4212main ()
4213{
4214return opendir ();
4215 ;
4216 return 0;
4217}
4218_ACEOF
4219for ac_lib in '' dir; do
4220 if test -z "$ac_lib"; then
4221 ac_res="none required"
4222 else
4223 ac_res=-l$ac_lib
4224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4225 fi
4226 rm -f conftest.$ac_objext conftest$ac_exeext
4227if { (ac_try="$ac_link"
4228case "(($ac_try" in
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
ec6a6fbe
AK
4232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4233$as_echo "$ac_try_echo") >&5
d0191583
JM
4234 (eval "$ac_link") 2>conftest.er1
4235 ac_status=$?
4236 grep -v '^ *+' conftest.er1 >conftest.err
4237 rm -f conftest.er1
4238 cat conftest.err >&5
ec6a6fbe 4239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4240 (exit $ac_status); } && {
4241 test -z "$ac_c_werror_flag" ||
4242 test ! -s conftest.err
ec6a6fbe
AK
4243 } && test -s conftest$ac_exeext && {
4244 test "$cross_compiling" = yes ||
4245 $as_test_x conftest$ac_exeext
4246 }; then
d0191583
JM
4247 ac_cv_search_opendir=$ac_res
4248else
ec6a6fbe 4249 $as_echo "$as_me: failed program was:" >&5
d0191583 4250sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4251
ad6254c5 4252
795ca3e5 4253fi
ad6254c5 4254
ec6a6fbe 4255rm -rf conftest.dSYM
d0191583
JM
4256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4257 conftest$ac_exeext
4258 if test "${ac_cv_search_opendir+set}" = set; then
4259 break
7a197a62 4260fi
d0191583
JM
4261done
4262if test "${ac_cv_search_opendir+set}" = set; then
4263 :
7a197a62 4264else
d0191583 4265 ac_cv_search_opendir=no
7a197a62 4266fi
d0191583
JM
4267rm conftest.$ac_ext
4268LIBS=$ac_func_search_save_LIBS
7a197a62 4269fi
ec6a6fbe
AK
4270{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4271$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4272ac_res=$ac_cv_search_opendir
4273if test "$ac_res" != no; then
4274 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4275
d0191583 4276fi
7a197a62 4277
7a197a62 4278else
ec6a6fbe
AK
4279 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4280$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4281if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4282 $as_echo_n "(cached) " >&6
7a197a62 4283else
d0191583
JM
4284 ac_func_search_save_LIBS=$LIBS
4285cat >conftest.$ac_ext <<_ACEOF
4286/* confdefs.h. */
4287_ACEOF
4288cat confdefs.h >>conftest.$ac_ext
4289cat >>conftest.$ac_ext <<_ACEOF
4290/* end confdefs.h. */
7a197a62 4291
d0191583
JM
4292/* Override any GCC internal prototype to avoid an error.
4293 Use char because int might match the return type of a GCC
4294 builtin and then its argument prototype would still apply. */
4295#ifdef __cplusplus
4296extern "C"
4297#endif
4298char opendir ();
4299int
4300main ()
4301{
4302return opendir ();
4303 ;
4304 return 0;
4305}
4306_ACEOF
4307for ac_lib in '' x; do
4308 if test -z "$ac_lib"; then
4309 ac_res="none required"
4310 else
4311 ac_res=-l$ac_lib
4312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4313 fi
4314 rm -f conftest.$ac_objext conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
ec6a6fbe
AK
4320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4321$as_echo "$ac_try_echo") >&5
d0191583
JM
4322 (eval "$ac_link") 2>conftest.er1
4323 ac_status=$?
4324 grep -v '^ *+' conftest.er1 >conftest.err
4325 rm -f conftest.er1
4326 cat conftest.err >&5
ec6a6fbe 4327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4328 (exit $ac_status); } && {
4329 test -z "$ac_c_werror_flag" ||
4330 test ! -s conftest.err
ec6a6fbe
AK
4331 } && test -s conftest$ac_exeext && {
4332 test "$cross_compiling" = yes ||
4333 $as_test_x conftest$ac_exeext
4334 }; then
d0191583
JM
4335 ac_cv_search_opendir=$ac_res
4336else
ec6a6fbe 4337 $as_echo "$as_me: failed program was:" >&5
d0191583 4338sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4339
4340
4341fi
4342
ec6a6fbe 4343rm -rf conftest.dSYM
d0191583
JM
4344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4345 conftest$ac_exeext
4346 if test "${ac_cv_search_opendir+set}" = set; then
4347 break
7a197a62 4348fi
d0191583
JM
4349done
4350if test "${ac_cv_search_opendir+set}" = set; then
4351 :
7a197a62 4352else
d0191583 4353 ac_cv_search_opendir=no
7a197a62 4354fi
d0191583
JM
4355rm conftest.$ac_ext
4356LIBS=$ac_func_search_save_LIBS
4357fi
ec6a6fbe
AK
4358{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4359$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4360ac_res=$ac_cv_search_opendir
4361if test "$ac_res" != no; then
4362 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4363
7a197a62 4364fi
7a197a62 4365
d0191583 4366fi
7a197a62 4367
ec6a6fbe
AK
4368{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4369$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4370if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4371 $as_echo_n "(cached) " >&6
7a197a62
AK
4372else
4373 cat >conftest.$ac_ext <<_ACEOF
4374/* confdefs.h. */
4375_ACEOF
4376cat confdefs.h >>conftest.$ac_ext
4377cat >>conftest.$ac_ext <<_ACEOF
4378/* end confdefs.h. */
4379#include <stdlib.h>
4380#include <stdarg.h>
4381#include <string.h>
4382#include <float.h>
4383
4384int
4385main ()
4386{
4387
4388 ;
4389 return 0;
4390}
4391_ACEOF
4392rm -f conftest.$ac_objext
4393if { (ac_try="$ac_compile"
4394case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
ec6a6fbe
AK
4398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4399$as_echo "$ac_try_echo") >&5
7a197a62
AK
4400 (eval "$ac_compile") 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
ec6a6fbe 4405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4406 (exit $ac_status); } && {
4407 test -z "$ac_c_werror_flag" ||
4408 test ! -s conftest.err
4409 } && test -s conftest.$ac_objext; then
7a197a62
AK
4410 ac_cv_header_stdc=yes
4411else
ec6a6fbe 4412 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4413sed 's/^/| /' conftest.$ac_ext >&5
4414
4415 ac_cv_header_stdc=no
4416fi
4417
4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4419
4420if test $ac_cv_header_stdc = yes; then
4421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4422 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4423/* confdefs.h. */
4424_ACEOF
4425cat confdefs.h >>conftest.$ac_ext
4426cat >>conftest.$ac_ext <<_ACEOF
4427/* end confdefs.h. */
4428#include <string.h>
8106cdd5 4429
ad6254c5
AK
4430_ACEOF
4431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 $EGREP "memchr" >/dev/null 2>&1; then
4433 :
4434else
4435 ac_cv_header_stdc=no
80992638 4436fi
ad6254c5 4437rm -f conftest*
795ca3e5
AK
4438
4439fi
4440
ad6254c5
AK
4441if test $ac_cv_header_stdc = yes; then
4442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4443 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
80992638 4449#include <stdlib.h>
ad6254c5
AK
4450
4451_ACEOF
80992638 4452if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4453 $EGREP "free" >/dev/null 2>&1; then
4454 :
795ca3e5 4455else
ad6254c5 4456 ac_cv_header_stdc=no
795ca3e5 4457fi
80992638 4458rm -f conftest*
8106cdd5 4459
795ca3e5
AK
4460fi
4461
ad6254c5
AK
4462if test $ac_cv_header_stdc = yes; then
4463 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4464 if test "$cross_compiling" = yes; then
4465 :
795ca3e5 4466else
ad6254c5 4467 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4468/* confdefs.h. */
4469_ACEOF
4470cat confdefs.h >>conftest.$ac_ext
4471cat >>conftest.$ac_ext <<_ACEOF
4472/* end confdefs.h. */
4473#include <ctype.h>
7a197a62 4474#include <stdlib.h>
ad6254c5
AK
4475#if ((' ' & 0x0FF) == 0x020)
4476# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4477# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4478#else
4479# define ISLOWER(c) \
8a2fc586
AK
4480 (('a' <= (c) && (c) <= 'i') \
4481 || ('j' <= (c) && (c) <= 'r') \
4482 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4483# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4484#endif
ad6254c5
AK
4485
4486#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4487int
4488main ()
4489{
4490 int i;
4491 for (i = 0; i < 256; i++)
4492 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4493 || toupper (i) != TOUPPER (i))
7a197a62
AK
4494 return 2;
4495 return 0;
ad6254c5
AK
4496}
4497_ACEOF
4498rm -f conftest$ac_exeext
7a197a62
AK
4499if { (ac_try="$ac_link"
4500case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503esac
ec6a6fbe
AK
4504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4505$as_echo "$ac_try_echo") >&5
7a197a62 4506 (eval "$ac_link") 2>&5
ad6254c5 4507 ac_status=$?
ec6a6fbe 4508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4510 { (case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513esac
ec6a6fbe
AK
4514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4515$as_echo "$ac_try_echo") >&5
7a197a62 4516 (eval "$ac_try") 2>&5
ad6254c5 4517 ac_status=$?
ec6a6fbe 4518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4519 (exit $ac_status); }; }; then
4520 :
795ca3e5 4521else
ec6a6fbe
AK
4522 $as_echo "$as_me: program exited with status $ac_status" >&5
4523$as_echo "$as_me: failed program was:" >&5
ad6254c5 4524sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4525
ad6254c5
AK
4526( exit $ac_status )
4527ac_cv_header_stdc=no
80992638 4528fi
ec6a6fbe 4529rm -rf conftest.dSYM
7a197a62 4530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4531fi
7a197a62
AK
4532
4533
ad6254c5
AK
4534fi
4535fi
ec6a6fbe
AK
4536{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4537$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4538if test $ac_cv_header_stdc = yes; then
4539
4540cat >>confdefs.h <<\_ACEOF
4541#define STDC_HEADERS 1
4542_ACEOF
795ca3e5
AK
4543
4544fi
4545
d911ec67 4546# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4547
ad6254c5 4548
7a197a62 4549
8106cdd5 4550
795ca3e5 4551
795ca3e5 4552
d911ec67
AK
4553
4554
4555
4556for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4557 inttypes.h stdint.h unistd.h
4558do
4559as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4561$as_echo_n "checking for $ac_header... " >&6; }
4562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4563 $as_echo_n "(cached) " >&6
795ca3e5 4564else
ad6254c5 4565 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4566/* confdefs.h. */
4567_ACEOF
4568cat confdefs.h >>conftest.$ac_ext
4569cat >>conftest.$ac_ext <<_ACEOF
4570/* end confdefs.h. */
d911ec67 4571$ac_includes_default
ad6254c5 4572
d911ec67 4573#include <$ac_header>
ad6254c5
AK
4574_ACEOF
4575rm -f conftest.$ac_objext
7a197a62
AK
4576if { (ac_try="$ac_compile"
4577case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
ec6a6fbe
AK
4581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582$as_echo "$ac_try_echo") >&5
7a197a62 4583 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4584 ac_status=$?
8a2fc586
AK
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
ec6a6fbe 4588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4589 (exit $ac_status); } && {
4590 test -z "$ac_c_werror_flag" ||
4591 test ! -s conftest.err
4592 } && test -s conftest.$ac_objext; then
d911ec67 4593 eval "$as_ac_Header=yes"
795ca3e5 4594else
ec6a6fbe 4595 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
d911ec67 4598 eval "$as_ac_Header=no"
795ca3e5 4599fi
7a197a62
AK
4600
4601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4602fi
d911ec67
AK
4603ac_res=`eval 'as_val=${'$as_ac_Header'}
4604 $as_echo "$as_val"'`
4605 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4606$as_echo "$ac_res" >&6; }
4607as_val=`eval 'as_val=${'$as_ac_Header'}
4608 $as_echo "$as_val"'`
4609 if test "x$as_val" = x""yes; then
4610 cat >>confdefs.h <<_ACEOF
4611#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4612_ACEOF
b896caa1 4613
8106cdd5 4614fi
b896caa1 4615
d911ec67 4616done
d0191583
JM
4617
4618
d911ec67
AK
4619{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4620$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4621if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4622 $as_echo_n "(cached) " >&6
d0191583
JM
4623else
4624 cat >conftest.$ac_ext <<_ACEOF
4625/* confdefs.h. */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */
d911ec67
AK
4630#include <sys/types.h>
4631int
4632main ()
4633{
4634return makedev(0, 0);
4635 ;
4636 return 0;
4637}
d0191583 4638_ACEOF
d911ec67
AK
4639rm -f conftest.$ac_objext conftest$ac_exeext
4640if { (ac_try="$ac_link"
d0191583
JM
4641case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644esac
ec6a6fbe
AK
4645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4646$as_echo "$ac_try_echo") >&5
d911ec67 4647 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
ec6a6fbe 4652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
d911ec67
AK
4656 } && test -s conftest$ac_exeext && {
4657 test "$cross_compiling" = yes ||
4658 $as_test_x conftest$ac_exeext
4659 }; then
4660 ac_cv_header_sys_types_h_makedev=yes
d0191583 4661else
ec6a6fbe 4662 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4663sed 's/^/| /' conftest.$ac_ext >&5
4664
d911ec67 4665 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4666fi
4667
d911ec67
AK
4668rm -rf conftest.dSYM
4669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4670 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4671
4672fi
d911ec67
AK
4673{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4674$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4675
d911ec67
AK
4676if test $ac_cv_header_sys_types_h_makedev = no; then
4677if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4678 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4679$as_echo_n "checking for sys/mkdev.h... " >&6; }
4680if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4681 $as_echo_n "(cached) " >&6
d0191583 4682fi
d911ec67
AK
4683{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4684$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4685else
d0191583 4686 # Is the header compilable?
d911ec67
AK
4687{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4688$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4689cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4690/* confdefs.h. */
4691_ACEOF
4692cat confdefs.h >>conftest.$ac_ext
4693cat >>conftest.$ac_ext <<_ACEOF
4694/* end confdefs.h. */
4695$ac_includes_default
d911ec67 4696#include <sys/mkdev.h>
ad6254c5
AK
4697_ACEOF
4698rm -f conftest.$ac_objext
7a197a62
AK
4699if { (ac_try="$ac_compile"
4700case "(($ac_try" in
4701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702 *) ac_try_echo=$ac_try;;
4703esac
ec6a6fbe
AK
4704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4705$as_echo "$ac_try_echo") >&5
7a197a62 4706 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4707 ac_status=$?
8a2fc586
AK
4708 grep -v '^ *+' conftest.er1 >conftest.err
4709 rm -f conftest.er1
4710 cat conftest.err >&5
ec6a6fbe 4711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4712 (exit $ac_status); } && {
4713 test -z "$ac_c_werror_flag" ||
4714 test ! -s conftest.err
4715 } && test -s conftest.$ac_objext; then
d0191583 4716 ac_header_compiler=yes
ad6254c5 4717else
ec6a6fbe 4718 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4719sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4720
d0191583 4721 ac_header_compiler=no
ad6254c5 4722fi
7a197a62
AK
4723
4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4725{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4726$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4727
4728# Is the header present?
d911ec67
AK
4729{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4730$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4731cat >conftest.$ac_ext <<_ACEOF
4732/* confdefs.h. */
4733_ACEOF
4734cat confdefs.h >>conftest.$ac_ext
4735cat >>conftest.$ac_ext <<_ACEOF
4736/* end confdefs.h. */
d911ec67 4737#include <sys/mkdev.h>
d0191583
JM
4738_ACEOF
4739if { (ac_try="$ac_cpp conftest.$ac_ext"
4740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
ec6a6fbe
AK
4744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4745$as_echo "$ac_try_echo") >&5
d0191583
JM
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4747 ac_status=$?
4748 grep -v '^ *+' conftest.er1 >conftest.err
4749 rm -f conftest.er1
4750 cat conftest.err >&5
ec6a6fbe 4751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4752 (exit $ac_status); } >/dev/null && {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 }; then
4756 ac_header_preproc=yes
4757else
ec6a6fbe 4758 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4759sed 's/^/| /' conftest.$ac_ext >&5
4760
4761 ac_header_preproc=no
4762fi
4763
4764rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4765{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4766$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4767
4768# So? What about this header?
4769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4770 yes:no: )
d911ec67
AK
4771 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4772$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4774$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4775 ac_header_preproc=yes
4776 ;;
4777 no:yes:* )
d911ec67
AK
4778 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4779$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4781$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4782 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4783$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4785$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4787$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4789$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4790
4791 ;;
4792esac
d911ec67
AK
4793{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4794$as_echo_n "checking for sys/mkdev.h... " >&6; }
4795if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4796 $as_echo_n "(cached) " >&6
d0191583 4797else
d911ec67 4798 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4799fi
d911ec67
AK
4800{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4801$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4802
4803fi
d911ec67
AK
4804if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4805
4806cat >>confdefs.h <<\_ACEOF
4807#define MAJOR_IN_MKDEV 1
ad6254c5 4808_ACEOF
a38df97f 4809
80992638
AK
4810fi
4811
80992638 4812
5a52dca9 4813
d911ec67
AK
4814 if test $ac_cv_header_sys_mkdev_h = no; then
4815 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4816 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4817$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4818if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4819 $as_echo_n "(cached) " >&6
ad6254c5 4820fi
d911ec67
AK
4821{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4822$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4823else
4824 # Is the header compilable?
d911ec67
AK
4825{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4826$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4827cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4828/* confdefs.h. */
4829_ACEOF
4830cat confdefs.h >>conftest.$ac_ext
4831cat >>conftest.$ac_ext <<_ACEOF
4832/* end confdefs.h. */
4833$ac_includes_default
d911ec67 4834#include <sys/sysmacros.h>
ad6254c5
AK
4835_ACEOF
4836rm -f conftest.$ac_objext
7a197a62
AK
4837if { (ac_try="$ac_compile"
4838case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841esac
ec6a6fbe
AK
4842eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4843$as_echo "$ac_try_echo") >&5
7a197a62 4844 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4845 ac_status=$?
8a2fc586
AK
4846 grep -v '^ *+' conftest.er1 >conftest.err
4847 rm -f conftest.er1
4848 cat conftest.err >&5
ec6a6fbe 4849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4850 (exit $ac_status); } && {
4851 test -z "$ac_c_werror_flag" ||
4852 test ! -s conftest.err
4853 } && test -s conftest.$ac_objext; then
fc54be10
AK
4854 ac_header_compiler=yes
4855else
ec6a6fbe 4856 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4857sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 ac_header_compiler=no
4860fi
4861
4862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4863{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4864$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4865
4866# Is the header present?
d911ec67
AK
4867{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4868$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4869cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
d911ec67 4875#include <sys/sysmacros.h>
ad6254c5 4876_ACEOF
7a197a62
AK
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
ec6a6fbe
AK
4882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4883$as_echo "$ac_try_echo") >&5
7a197a62 4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
ec6a6fbe 4889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4890 (exit $ac_status); } >/dev/null && {
4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 }; then
ad6254c5
AK
4894 ac_header_preproc=yes
4895else
ec6a6fbe 4896 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 ac_header_preproc=no
4900fi
7a197a62 4901
ad6254c5 4902rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4903{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4904$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4905
4906# So? What about this header?
8a2fc586
AK
4907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4908 yes:no: )
d911ec67
AK
4909 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4910$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4911 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4912$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4913 ac_header_preproc=yes
ad6254c5 4914 ;;
8a2fc586 4915 no:yes:* )
d911ec67
AK
4916 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4917$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4918 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4919$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4920 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4921$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4922 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4923$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4924 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4925$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4926 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4927$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4928
ad6254c5
AK
4929 ;;
4930esac
d911ec67
AK
4931{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4932$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4933if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4934 $as_echo_n "(cached) " >&6
ad6254c5 4935else
d911ec67 4936 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4937fi
d911ec67
AK
4938{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4939$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4940
4941fi
d911ec67
AK
4942if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4943
4944cat >>confdefs.h <<\_ACEOF
4945#define MAJOR_IN_SYSMACROS 1
ad6254c5 4946_ACEOF
b896caa1 4947
80992638
AK
4948fi
4949
d8ac0fbc 4950
d911ec67
AK
4951 fi
4952fi
d8ac0fbc 4953
d911ec67
AK
4954{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4955$as_echo_n "checking for ANSI C header files... " >&6; }
4956if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4957 $as_echo_n "(cached) " >&6
ad6254c5 4958else
d911ec67 4959 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4960/* confdefs.h. */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h. */
d911ec67
AK
4965#include <stdlib.h>
4966#include <stdarg.h>
4967#include <string.h>
4968#include <float.h>
4969
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
ad6254c5
AK
4977_ACEOF
4978rm -f conftest.$ac_objext
7a197a62
AK
4979if { (ac_try="$ac_compile"
4980case "(($ac_try" in
4981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982 *) ac_try_echo=$ac_try;;
4983esac
ec6a6fbe
AK
4984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4985$as_echo "$ac_try_echo") >&5
7a197a62 4986 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4987 ac_status=$?
8a2fc586
AK
4988 grep -v '^ *+' conftest.er1 >conftest.err
4989 rm -f conftest.er1
4990 cat conftest.err >&5
ec6a6fbe 4991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4992 (exit $ac_status); } && {
4993 test -z "$ac_c_werror_flag" ||
4994 test ! -s conftest.err
4995 } && test -s conftest.$ac_objext; then
d911ec67 4996 ac_cv_header_stdc=yes
ad6254c5 4997else
ec6a6fbe 4998 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4999sed 's/^/| /' conftest.$ac_ext >&5
5000
d911ec67 5001 ac_cv_header_stdc=no
ad6254c5 5002fi
7a197a62
AK
5003
5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5005
d911ec67
AK
5006if test $ac_cv_header_stdc = yes; then
5007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5008 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
d911ec67
AK
5014#include <string.h>
5015
ad6254c5 5016_ACEOF
d911ec67
AK
5017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5018 $EGREP "memchr" >/dev/null 2>&1; then
5019 :
5020else
5021 ac_cv_header_stdc=no
5022fi
5023rm -f conftest*
5024
5025fi
5026
5027if test $ac_cv_header_stdc = yes; then
5028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5029 cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
5035#include <stdlib.h>
5036
5037_ACEOF
5038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039 $EGREP "free" >/dev/null 2>&1; then
5040 :
5041else
5042 ac_cv_header_stdc=no
5043fi
5044rm -f conftest*
5045
5046fi
5047
5048if test $ac_cv_header_stdc = yes; then
5049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5050 if test "$cross_compiling" = yes; then
5051 :
5052else
5053 cat >conftest.$ac_ext <<_ACEOF
5054/* confdefs.h. */
5055_ACEOF
5056cat confdefs.h >>conftest.$ac_ext
5057cat >>conftest.$ac_ext <<_ACEOF
5058/* end confdefs.h. */
5059#include <ctype.h>
5060#include <stdlib.h>
5061#if ((' ' & 0x0FF) == 0x020)
5062# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5063# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5064#else
5065# define ISLOWER(c) \
5066 (('a' <= (c) && (c) <= 'i') \
5067 || ('j' <= (c) && (c) <= 'r') \
5068 || ('s' <= (c) && (c) <= 'z'))
5069# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5070#endif
5071
5072#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5073int
5074main ()
5075{
5076 int i;
5077 for (i = 0; i < 256; i++)
5078 if (XOR (islower (i), ISLOWER (i))
5079 || toupper (i) != TOUPPER (i))
5080 return 2;
5081 return 0;
5082}
5083_ACEOF
5084rm -f conftest$ac_exeext
5085if { (ac_try="$ac_link"
7a197a62
AK
5086case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089esac
ec6a6fbe
AK
5090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091$as_echo "$ac_try_echo") >&5
d911ec67
AK
5092 (eval "$ac_link") 2>&5
5093 ac_status=$?
5094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5096 { (case "(($ac_try" in
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5099esac
5100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5101$as_echo "$ac_try_echo") >&5
5102 (eval "$ac_try") 2>&5
5103 ac_status=$?
5104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 :
5107else
5108 $as_echo "$as_me: program exited with status $ac_status" >&5
5109$as_echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112( exit $ac_status )
5113ac_cv_header_stdc=no
5114fi
5115rm -rf conftest.dSYM
5116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5117fi
5118
5119
5120fi
5121fi
5122{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5123$as_echo "$ac_cv_header_stdc" >&6; }
5124if test $ac_cv_header_stdc = yes; then
5125
5126cat >>confdefs.h <<\_ACEOF
5127#define STDC_HEADERS 1
5128_ACEOF
5129
5130fi
5131
5132{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5133$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5134if test "${ac_cv_header_sys_wait_h+set}" = set; then
5135 $as_echo_n "(cached) " >&6
5136else
5137 cat >conftest.$ac_ext <<_ACEOF
5138/* confdefs.h. */
5139_ACEOF
5140cat confdefs.h >>conftest.$ac_ext
5141cat >>conftest.$ac_ext <<_ACEOF
5142/* end confdefs.h. */
5143#include <sys/types.h>
5144#include <sys/wait.h>
5145#ifndef WEXITSTATUS
5146# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5147#endif
5148#ifndef WIFEXITED
5149# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5150#endif
5151
5152int
5153main ()
5154{
5155 int s;
5156 wait (&s);
5157 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162rm -f conftest.$ac_objext
5163if { (ac_try="$ac_compile"
5164case "(($ac_try" in
5165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166 *) ac_try_echo=$ac_try;;
5167esac
5168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5169$as_echo "$ac_try_echo") >&5
5170 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
ec6a6fbe 5175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5176 (exit $ac_status); } && {
5177 test -z "$ac_c_werror_flag" ||
25fbec5b 5178 test ! -s conftest.err
d911ec67
AK
5179 } && test -s conftest.$ac_objext; then
5180 ac_cv_header_sys_wait_h=yes
ad6254c5 5181else
ec6a6fbe 5182 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5183sed 's/^/| /' conftest.$ac_ext >&5
5184
d911ec67 5185 ac_cv_header_sys_wait_h=no
ad6254c5 5186fi
7a197a62 5187
d911ec67
AK
5188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189fi
5190{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5191$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5192if test $ac_cv_header_sys_wait_h = yes; then
5193
5194cat >>confdefs.h <<\_ACEOF
5195#define HAVE_SYS_WAIT_H 1
5196_ACEOF
5197
5198fi
5199
5200{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5201$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5202if test "${ac_cv_header_time+set}" = set; then
5203 $as_echo_n "(cached) " >&6
5204else
5205 cat >conftest.$ac_ext <<_ACEOF
5206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
5211#include <sys/types.h>
5212#include <sys/time.h>
5213#include <time.h>
5214
5215int
5216main ()
5217{
5218if ((struct tm *) 0)
5219return 0;
5220 ;
5221 return 0;
5222}
5223_ACEOF
5224rm -f conftest.$ac_objext
5225if { (ac_try="$ac_compile"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5231$as_echo "$ac_try_echo") >&5
5232 (eval "$ac_compile") 2>conftest.er1
5233 ac_status=$?
5234 grep -v '^ *+' conftest.er1 >conftest.err
5235 rm -f conftest.er1
5236 cat conftest.err >&5
5237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238 (exit $ac_status); } && {
5239 test -z "$ac_c_werror_flag" ||
5240 test ! -s conftest.err
5241 } && test -s conftest.$ac_objext; then
5242 ac_cv_header_time=yes
5243else
5244 $as_echo "$as_me: failed program was:" >&5
5245sed 's/^/| /' conftest.$ac_ext >&5
5246
5247 ac_cv_header_time=no
5248fi
5249
5250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251fi
5252{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5253$as_echo "$ac_cv_header_time" >&6; }
5254if test $ac_cv_header_time = yes; then
5255
5256cat >>confdefs.h <<\_ACEOF
5257#define TIME_WITH_SYS_TIME 1
5258_ACEOF
5259
5260fi
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5278 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5279 sys/wait.h time.h
5280do
5281as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5282if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5284$as_echo_n "checking for $ac_header... " >&6; }
5285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5286 $as_echo_n "(cached) " >&6
5287fi
5288ac_res=`eval 'as_val=${'$as_ac_Header'}
5289 $as_echo "$as_val"'`
5290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5291$as_echo "$ac_res" >&6; }
5292else
5293 # Is the header compilable?
5294{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5295$as_echo_n "checking $ac_header usability... " >&6; }
5296cat >conftest.$ac_ext <<_ACEOF
5297/* confdefs.h. */
5298_ACEOF
5299cat confdefs.h >>conftest.$ac_ext
5300cat >>conftest.$ac_ext <<_ACEOF
5301/* end confdefs.h. */
5302$ac_includes_default
5303#include <$ac_header>
5304_ACEOF
5305rm -f conftest.$ac_objext
5306if { (ac_try="$ac_compile"
5307case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310esac
5311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5312$as_echo "$ac_try_echo") >&5
5313 (eval "$ac_compile") 2>conftest.er1
5314 ac_status=$?
5315 grep -v '^ *+' conftest.er1 >conftest.err
5316 rm -f conftest.er1
5317 cat conftest.err >&5
5318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); } && {
5320 test -z "$ac_c_werror_flag" ||
5321 test ! -s conftest.err
5322 } && test -s conftest.$ac_objext; then
5323 ac_header_compiler=yes
5324else
5325 $as_echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_header_compiler=no
5329fi
5330
5331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5333$as_echo "$ac_header_compiler" >&6; }
5334
5335# Is the header present?
5336{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5337$as_echo_n "checking $ac_header presence... " >&6; }
5338cat >conftest.$ac_ext <<_ACEOF
5339/* confdefs.h. */
5340_ACEOF
5341cat confdefs.h >>conftest.$ac_ext
5342cat >>conftest.$ac_ext <<_ACEOF
5343/* end confdefs.h. */
5344#include <$ac_header>
5345_ACEOF
5346if { (ac_try="$ac_cpp conftest.$ac_ext"
5347case "(($ac_try" in
5348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5349 *) ac_try_echo=$ac_try;;
5350esac
5351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5352$as_echo "$ac_try_echo") >&5
5353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } >/dev/null && {
5360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 }; then
5363 ac_header_preproc=yes
5364else
5365 $as_echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_header_preproc=no
5369fi
5370
5371rm -f conftest.err conftest.$ac_ext
5372{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5373$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5374
5375# So? What about this header?
8a2fc586
AK
5376case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5377 yes:no: )
ec6a6fbe
AK
5378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5379$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5381$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5382 ac_header_preproc=yes
ad6254c5 5383 ;;
8a2fc586 5384 no:yes:* )
ec6a6fbe
AK
5385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5386$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5388$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5390$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5392$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5394$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5396$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5397
ad6254c5
AK
5398 ;;
5399esac
d911ec67
AK
5400{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5401$as_echo_n "checking for $ac_header... " >&6; }
5402if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5403 $as_echo_n "(cached) " >&6
5404else
5405 eval "$as_ac_Header=\$ac_header_preproc"
5406fi
5407ac_res=`eval 'as_val=${'$as_ac_Header'}
5408 $as_echo "$as_val"'`
5409 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5410$as_echo "$ac_res" >&6; }
5411
5412fi
5413as_val=`eval 'as_val=${'$as_ac_Header'}
5414 $as_echo "$as_val"'`
5415 if test "x$as_val" = x""yes; then
5416 cat >>confdefs.h <<_ACEOF
5417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418_ACEOF
5419
5420else
5421 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5422$as_echo "$as_me: error: bailing out" >&2;}
5423 { (exit 1); exit 1; }; }
5424fi
5425
5426done
5427
5428
5429case "$host_os" in
5430 linux*)
5431
5432
5433
5434for ac_header in asm/byteorder.h linux/fs.h malloc.h
5435do
5436as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5437if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5439$as_echo_n "checking for $ac_header... " >&6; }
5440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5441 $as_echo_n "(cached) " >&6
5442fi
5443ac_res=`eval 'as_val=${'$as_ac_Header'}
5444 $as_echo "$as_val"'`
5445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5446$as_echo "$ac_res" >&6; }
5447else
5448 # Is the header compilable?
5449{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5450$as_echo_n "checking $ac_header usability... " >&6; }
5451cat >conftest.$ac_ext <<_ACEOF
5452/* confdefs.h. */
5453_ACEOF
5454cat confdefs.h >>conftest.$ac_ext
5455cat >>conftest.$ac_ext <<_ACEOF
5456/* end confdefs.h. */
5457$ac_includes_default
5458#include <$ac_header>
5459_ACEOF
5460rm -f conftest.$ac_objext
5461if { (ac_try="$ac_compile"
5462case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465esac
5466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5467$as_echo "$ac_try_echo") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 ac_header_compiler=yes
5479else
5480 $as_echo "$as_me: failed program was:" >&5
5481sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_header_compiler=no
5484fi
5485
5486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5488$as_echo "$ac_header_compiler" >&6; }
5489
5490# Is the header present?
5491{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5492$as_echo_n "checking $ac_header presence... " >&6; }
5493cat >conftest.$ac_ext <<_ACEOF
5494/* confdefs.h. */
5495_ACEOF
5496cat confdefs.h >>conftest.$ac_ext
5497cat >>conftest.$ac_ext <<_ACEOF
5498/* end confdefs.h. */
5499#include <$ac_header>
5500_ACEOF
5501if { (ac_try="$ac_cpp conftest.$ac_ext"
5502case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505esac
5506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507$as_echo "$ac_try_echo") >&5
5508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } >/dev/null && {
5515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 }; then
5518 ac_header_preproc=yes
5519else
5520 $as_echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_header_preproc=no
5524fi
5525
5526rm -f conftest.err conftest.$ac_ext
5527{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5528$as_echo "$ac_header_preproc" >&6; }
5529
5530# So? What about this header?
5531case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5532 yes:no: )
5533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5534$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5536$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5537 ac_header_preproc=yes
5538 ;;
5539 no:yes:* )
5540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5541$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5543$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5545$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5547$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5549$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5551$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5552
5553 ;;
5554esac
5555{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5556$as_echo_n "checking for $ac_header... " >&6; }
5557if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5558 $as_echo_n "(cached) " >&6
5559else
5560 eval "$as_ac_Header=\$ac_header_preproc"
5561fi
5562ac_res=`eval 'as_val=${'$as_ac_Header'}
5563 $as_echo "$as_val"'`
5564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5565$as_echo "$ac_res" >&6; }
5566
5567fi
5568as_val=`eval 'as_val=${'$as_ac_Header'}
5569 $as_echo "$as_val"'`
5570 if test "x$as_val" = x""yes; then
5571 cat >>confdefs.h <<_ACEOF
5572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5573_ACEOF
5574
5575else
5576 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5577$as_echo "$as_me: error: bailing out" >&2;}
5578 { (exit 1); exit 1; }; }
5579fi
5580
5581done
5582 ;;
5583 darwin*)
5584
5585
5586for ac_header in machine/endian.h sys/disk.h
5587do
5588as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5590 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5591$as_echo_n "checking for $ac_header... " >&6; }
5592if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5593 $as_echo_n "(cached) " >&6
5594fi
5595ac_res=`eval 'as_val=${'$as_ac_Header'}
5596 $as_echo "$as_val"'`
5597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5598$as_echo "$ac_res" >&6; }
5599else
5600 # Is the header compilable?
5601{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5602$as_echo_n "checking $ac_header usability... " >&6; }
5603cat >conftest.$ac_ext <<_ACEOF
5604/* confdefs.h. */
5605_ACEOF
5606cat confdefs.h >>conftest.$ac_ext
5607cat >>conftest.$ac_ext <<_ACEOF
5608/* end confdefs.h. */
5609$ac_includes_default
5610#include <$ac_header>
5611_ACEOF
5612rm -f conftest.$ac_objext
5613if { (ac_try="$ac_compile"
5614case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5619$as_echo "$ac_try_echo") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_header_compiler=yes
5631else
5632 $as_echo "$as_me: failed program was:" >&5
5633sed 's/^/| /' conftest.$ac_ext >&5
5634
5635 ac_header_compiler=no
5636fi
5637
5638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5640$as_echo "$ac_header_compiler" >&6; }
5641
5642# Is the header present?
5643{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5644$as_echo_n "checking $ac_header presence... " >&6; }
5645cat >conftest.$ac_ext <<_ACEOF
5646/* confdefs.h. */
5647_ACEOF
5648cat confdefs.h >>conftest.$ac_ext
5649cat >>conftest.$ac_ext <<_ACEOF
5650/* end confdefs.h. */
5651#include <$ac_header>
5652_ACEOF
5653if { (ac_try="$ac_cpp conftest.$ac_ext"
5654case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657esac
5658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659$as_echo "$ac_try_echo") >&5
5660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } >/dev/null && {
5667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 }; then
5670 ac_header_preproc=yes
5671else
5672 $as_echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 ac_header_preproc=no
5676fi
5677
5678rm -f conftest.err conftest.$ac_ext
5679{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5680$as_echo "$ac_header_preproc" >&6; }
5681
5682# So? What about this header?
5683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5684 yes:no: )
5685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5686$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5688$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5689 ac_header_preproc=yes
5690 ;;
5691 no:yes:* )
5692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5693$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5695$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5697$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5699$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5701$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5703$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5704
5705 ;;
5706esac
5707{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5708$as_echo_n "checking for $ac_header... " >&6; }
5709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5710 $as_echo_n "(cached) " >&6
5711else
5712 eval "$as_ac_Header=\$ac_header_preproc"
5713fi
5714ac_res=`eval 'as_val=${'$as_ac_Header'}
5715 $as_echo "$as_val"'`
5716 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5717$as_echo "$ac_res" >&6; }
5718
5719fi
5720as_val=`eval 'as_val=${'$as_ac_Header'}
5721 $as_echo "$as_val"'`
5722 if test "x$as_val" = x""yes; then
5723 cat >>confdefs.h <<_ACEOF
5724#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5725_ACEOF
5726
5727else
5728 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5729$as_echo "$as_me: error: bailing out" >&2;}
5730 { (exit 1); exit 1; }; }
5731fi
5732
5733done
5734 ;;
5735esac
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5754 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5755 sys/types.h unistd.h
5756do
5757as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5758if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5759 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5760$as_echo_n "checking for $ac_header... " >&6; }
5761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5762 $as_echo_n "(cached) " >&6
5763fi
5764ac_res=`eval 'as_val=${'$as_ac_Header'}
5765 $as_echo "$as_val"'`
5766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5767$as_echo "$ac_res" >&6; }
5768else
5769 # Is the header compilable?
5770{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5771$as_echo_n "checking $ac_header usability... " >&6; }
5772cat >conftest.$ac_ext <<_ACEOF
5773/* confdefs.h. */
5774_ACEOF
5775cat confdefs.h >>conftest.$ac_ext
5776cat >>conftest.$ac_ext <<_ACEOF
5777/* end confdefs.h. */
5778$ac_includes_default
5779#include <$ac_header>
5780_ACEOF
5781rm -f conftest.$ac_objext
5782if { (ac_try="$ac_compile"
5783case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786esac
5787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5788$as_echo "$ac_try_echo") >&5
5789 (eval "$ac_compile") 2>conftest.er1
5790 ac_status=$?
5791 grep -v '^ *+' conftest.er1 >conftest.err
5792 rm -f conftest.er1
5793 cat conftest.err >&5
5794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); } && {
5796 test -z "$ac_c_werror_flag" ||
5797 test ! -s conftest.err
5798 } && test -s conftest.$ac_objext; then
5799 ac_header_compiler=yes
5800else
5801 $as_echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_header_compiler=no
5805fi
5806
5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5809$as_echo "$ac_header_compiler" >&6; }
5810
5811# Is the header present?
5812{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5813$as_echo_n "checking $ac_header presence... " >&6; }
5814cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h. */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h. */
5820#include <$ac_header>
5821_ACEOF
5822if { (ac_try="$ac_cpp conftest.$ac_ext"
5823case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826esac
5827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828$as_echo "$ac_try_echo") >&5
5829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } >/dev/null && {
5836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 }; then
5839 ac_header_preproc=yes
5840else
5841 $as_echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 ac_header_preproc=no
5845fi
5846
5847rm -f conftest.err conftest.$ac_ext
5848{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5849$as_echo "$ac_header_preproc" >&6; }
5850
5851# So? What about this header?
5852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5853 yes:no: )
5854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5855$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5857$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5858 ac_header_preproc=yes
5859 ;;
5860 no:yes:* )
5861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5862$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5864$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5866$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5868$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5870$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5871 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5872$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5873
5874 ;;
5875esac
5876{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5877$as_echo_n "checking for $ac_header... " >&6; }
5878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5879 $as_echo_n "(cached) " >&6
5880else
5881 eval "$as_ac_Header=\$ac_header_preproc"
5882fi
5883ac_res=`eval 'as_val=${'$as_ac_Header'}
5884 $as_echo "$as_val"'`
5885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5886$as_echo "$ac_res" >&6; }
5887
5888fi
5889as_val=`eval 'as_val=${'$as_ac_Header'}
5890 $as_echo "$as_val"'`
5891 if test "x$as_val" = x""yes; then
5892 cat >>confdefs.h <<_ACEOF
5893#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5894_ACEOF
5895
5896else
5897 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5898$as_echo "$as_me: error: bailing out" >&2;}
5899 { (exit 1); exit 1; }; }
5900fi
5901
5902done
5903
5904
5905
5906for ac_header in termios.h sys/statvfs.h
5907do
5908as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5910 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5911$as_echo_n "checking for $ac_header... " >&6; }
5912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5913 $as_echo_n "(cached) " >&6
5914fi
5915ac_res=`eval 'as_val=${'$as_ac_Header'}
5916 $as_echo "$as_val"'`
5917 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5918$as_echo "$ac_res" >&6; }
5919else
5920 # Is the header compilable?
5921{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5922$as_echo_n "checking $ac_header usability... " >&6; }
5923cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h. */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h. */
5929$ac_includes_default
5930#include <$ac_header>
5931_ACEOF
5932rm -f conftest.$ac_objext
5933if { (ac_try="$ac_compile"
5934case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5939$as_echo "$ac_try_echo") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 ac_header_compiler=yes
5951else
5952 $as_echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_header_compiler=no
5956fi
5957
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5960$as_echo "$ac_header_compiler" >&6; }
5961
5962# Is the header present?
5963{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5964$as_echo_n "checking $ac_header presence... " >&6; }
5965cat >conftest.$ac_ext <<_ACEOF
5966/* confdefs.h. */
5967_ACEOF
5968cat confdefs.h >>conftest.$ac_ext
5969cat >>conftest.$ac_ext <<_ACEOF
5970/* end confdefs.h. */
5971#include <$ac_header>
5972_ACEOF
5973if { (ac_try="$ac_cpp conftest.$ac_ext"
5974case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977esac
5978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5979$as_echo "$ac_try_echo") >&5
5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev/null && {
5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5989 }; then
5990 ac_header_preproc=yes
5991else
5992 $as_echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995 ac_header_preproc=no
5996fi
5997
5998rm -f conftest.err conftest.$ac_ext
5999{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6000$as_echo "$ac_header_preproc" >&6; }
6001
6002# So? What about this header?
6003case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6004 yes:no: )
6005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6006$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6008$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6009 ac_header_preproc=yes
6010 ;;
6011 no:yes:* )
6012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6013$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6015$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6017$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6019$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6021$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6023$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6024
6025 ;;
6026esac
6027{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6028$as_echo_n "checking for $ac_header... " >&6; }
6029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030 $as_echo_n "(cached) " >&6
6031else
6032 eval "$as_ac_Header=\$ac_header_preproc"
6033fi
6034ac_res=`eval 'as_val=${'$as_ac_Header'}
6035 $as_echo "$as_val"'`
6036 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6037$as_echo "$ac_res" >&6; }
6038
6039fi
6040as_val=`eval 'as_val=${'$as_ac_Header'}
6041 $as_echo "$as_val"'`
6042 if test "x$as_val" = x""yes; then
6043 cat >>confdefs.h <<_ACEOF
6044#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6045_ACEOF
6046
6047fi
6048
6049done
6050
6051
6052################################################################################
6053{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6054$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6055if test "${ac_cv_c_const+set}" = set; then
6056 $as_echo_n "(cached) " >&6
6057else
6058 cat >conftest.$ac_ext <<_ACEOF
6059/* confdefs.h. */
6060_ACEOF
6061cat confdefs.h >>conftest.$ac_ext
6062cat >>conftest.$ac_ext <<_ACEOF
6063/* end confdefs.h. */
6064
6065int
6066main ()
6067{
6068/* FIXME: Include the comments suggested by Paul. */
6069#ifndef __cplusplus
6070 /* Ultrix mips cc rejects this. */
6071 typedef int charset[2];
6072 const charset cs;
6073 /* SunOS 4.1.1 cc rejects this. */
6074 char const *const *pcpcc;
6075 char **ppc;
6076 /* NEC SVR4.0.2 mips cc rejects this. */
6077 struct point {int x, y;};
6078 static struct point const zero = {0,0};
6079 /* AIX XL C 1.02.0.0 rejects this.
6080 It does not let you subtract one const X* pointer from another in
6081 an arm of an if-expression whose if-part is not a constant
6082 expression */
6083 const char *g = "string";
6084 pcpcc = &g + (g ? g-g : 0);
6085 /* HPUX 7.0 cc rejects these. */
6086 ++pcpcc;
6087 ppc = (char**) pcpcc;
6088 pcpcc = (char const *const *) ppc;
6089 { /* SCO 3.2v4 cc rejects this. */
6090 char *t;
6091 char const *s = 0 ? (char *) 0 : (char const *) 0;
6092
6093 *t++ = 0;
6094 if (s) return 0;
6095 }
6096 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6097 int x[] = {25, 17};
6098 const int *foo = &x[0];
6099 ++foo;
6100 }
6101 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6102 typedef const int *iptr;
6103 iptr p = 0;
6104 ++p;
6105 }
6106 { /* AIX XL C 1.02.0.0 rejects this saying
6107 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6108 struct s { int j; const int *ap[3]; };
6109 struct s *b; b->j = 5;
6110 }
6111 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6112 const int foo = 10;
6113 if (!foo) return 0;
6114 }
6115 return !cs[0] && !zero.x;
6116#endif
6117
6118 ;
6119 return 0;
6120}
6121_ACEOF
6122rm -f conftest.$ac_objext
6123if { (ac_try="$ac_compile"
6124case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127esac
6128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129$as_echo "$ac_try_echo") >&5
6130 (eval "$ac_compile") 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_c_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest.$ac_objext; then
6140 ac_cv_c_const=yes
6141else
6142 $as_echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145 ac_cv_c_const=no
6146fi
6147
6148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6149fi
6150{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6151$as_echo "$ac_cv_c_const" >&6; }
6152if test $ac_cv_c_const = no; then
6153
6154cat >>confdefs.h <<\_ACEOF
6155#define const /**/
6156_ACEOF
6157
6158fi
6159
6160{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6161$as_echo_n "checking for inline... " >&6; }
6162if test "${ac_cv_c_inline+set}" = set; then
6163 $as_echo_n "(cached) " >&6
6164else
6165 ac_cv_c_inline=no
6166for ac_kw in inline __inline__ __inline; do
6167 cat >conftest.$ac_ext <<_ACEOF
6168/* confdefs.h. */
6169_ACEOF
6170cat confdefs.h >>conftest.$ac_ext
6171cat >>conftest.$ac_ext <<_ACEOF
6172/* end confdefs.h. */
6173#ifndef __cplusplus
6174typedef int foo_t;
6175static $ac_kw foo_t static_foo () {return 0; }
6176$ac_kw foo_t foo () {return 0; }
6177#endif
6178
6179_ACEOF
6180rm -f conftest.$ac_objext
6181if { (ac_try="$ac_compile"
6182case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
6186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6187$as_echo "$ac_try_echo") >&5
6188 (eval "$ac_compile") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.$ac_objext; then
6198 ac_cv_c_inline=$ac_kw
6199else
6200 $as_echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203
6204fi
6205
6206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 test "$ac_cv_c_inline" != no && break
6208done
6209
6210fi
6211{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6212$as_echo "$ac_cv_c_inline" >&6; }
6213
6214
6215case $ac_cv_c_inline in
6216 inline | yes) ;;
6217 *)
6218 case $ac_cv_c_inline in
6219 no) ac_val=;;
6220 *) ac_val=$ac_cv_c_inline;;
6221 esac
6222 cat >>confdefs.h <<_ACEOF
6223#ifndef __cplusplus
6224#define inline $ac_val
6225#endif
6226_ACEOF
6227 ;;
6228esac
6229
6230{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6231$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6232if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6233 $as_echo_n "(cached) " >&6
6234else
6235 cat >conftest.$ac_ext <<_ACEOF
6236/* confdefs.h. */
6237_ACEOF
6238cat confdefs.h >>conftest.$ac_ext
6239cat >>conftest.$ac_ext <<_ACEOF
6240/* end confdefs.h. */
6241$ac_includes_default
6242int
6243main ()
6244{
6245static struct stat ac_aggr;
6246if (ac_aggr.st_rdev)
6247return 0;
6248 ;
6249 return 0;
6250}
6251_ACEOF
6252rm -f conftest.$ac_objext
6253if { (ac_try="$ac_compile"
6254case "(($ac_try" in
6255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6256 *) ac_try_echo=$ac_try;;
6257esac
6258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6259$as_echo "$ac_try_echo") >&5
6260 (eval "$ac_compile") 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && {
6267 test -z "$ac_c_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
6270 ac_cv_member_struct_stat_st_rdev=yes
6271else
6272 $as_echo "$as_me: failed program was:" >&5
6273sed 's/^/| /' conftest.$ac_ext >&5
6274
6275 cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h. */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h. */
6281$ac_includes_default
6282int
6283main ()
6284{
6285static struct stat ac_aggr;
6286if (sizeof ac_aggr.st_rdev)
6287return 0;
6288 ;
6289 return 0;
6290}
6291_ACEOF
6292rm -f conftest.$ac_objext
6293if { (ac_try="$ac_compile"
6294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
6298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299$as_echo "$ac_try_echo") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
6310 ac_cv_member_struct_stat_st_rdev=yes
6311else
6312 $as_echo "$as_me: failed program was:" >&5
6313sed 's/^/| /' conftest.$ac_ext >&5
6314
6315 ac_cv_member_struct_stat_st_rdev=no
6316fi
6317
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319fi
6320
6321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322fi
6323{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6324$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6325if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6326
6327cat >>confdefs.h <<_ACEOF
6328#define HAVE_STRUCT_STAT_ST_RDEV 1
6329_ACEOF
6330
6331
6332fi
6333
6334{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6335$as_echo_n "checking for off_t... " >&6; }
6336if test "${ac_cv_type_off_t+set}" = set; then
6337 $as_echo_n "(cached) " >&6
6338else
6339 ac_cv_type_off_t=no
6340cat >conftest.$ac_ext <<_ACEOF
6341/* confdefs.h. */
6342_ACEOF
6343cat confdefs.h >>conftest.$ac_ext
6344cat >>conftest.$ac_ext <<_ACEOF
6345/* end confdefs.h. */
6346$ac_includes_default
6347int
6348main ()
6349{
6350if (sizeof (off_t))
6351 return 0;
6352 ;
6353 return 0;
6354}
6355_ACEOF
6356rm -f conftest.$ac_objext
6357if { (ac_try="$ac_compile"
6358case "(($ac_try" in
6359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360 *) ac_try_echo=$ac_try;;
6361esac
6362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6363$as_echo "$ac_try_echo") >&5
6364 (eval "$ac_compile") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_c_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest.$ac_objext; then
6374 cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
6380$ac_includes_default
6381int
6382main ()
6383{
6384if (sizeof ((off_t)))
6385 return 0;
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390rm -f conftest.$ac_objext
6391if { (ac_try="$ac_compile"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
6396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6397$as_echo "$ac_try_echo") >&5
6398 (eval "$ac_compile") 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest.$ac_objext; then
6408 :
6409else
6410 $as_echo "$as_me: failed program was:" >&5
6411sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 ac_cv_type_off_t=yes
6414fi
6415
6416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417else
6418 $as_echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421
6422fi
6423
6424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425fi
6426{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6427$as_echo "$ac_cv_type_off_t" >&6; }
6428if test "x$ac_cv_type_off_t" = x""yes; then
6429 :
6430else
6431
6432cat >>confdefs.h <<_ACEOF
6433#define off_t long int
6434_ACEOF
6435
6436fi
6437
6438{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6439$as_echo_n "checking for pid_t... " >&6; }
6440if test "${ac_cv_type_pid_t+set}" = set; then
6441 $as_echo_n "(cached) " >&6
6442else
6443 ac_cv_type_pid_t=no
6444cat >conftest.$ac_ext <<_ACEOF
6445/* confdefs.h. */
6446_ACEOF
6447cat confdefs.h >>conftest.$ac_ext
6448cat >>conftest.$ac_ext <<_ACEOF
6449/* end confdefs.h. */
6450$ac_includes_default
6451int
6452main ()
6453{
6454if (sizeof (pid_t))
6455 return 0;
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460rm -f conftest.$ac_objext
6461if { (ac_try="$ac_compile"
6462case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465esac
6466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6467$as_echo "$ac_try_echo") >&5
6468 (eval "$ac_compile") 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } && {
6475 test -z "$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 } && test -s conftest.$ac_objext; then
6478 cat >conftest.$ac_ext <<_ACEOF
6479/* confdefs.h. */
6480_ACEOF
6481cat confdefs.h >>conftest.$ac_ext
6482cat >>conftest.$ac_ext <<_ACEOF
6483/* end confdefs.h. */
6484$ac_includes_default
6485int
6486main ()
6487{
6488if (sizeof ((pid_t)))
6489 return 0;
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext
6495if { (ac_try="$ac_compile"
6496case "(($ac_try" in
6497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6498 *) ac_try_echo=$ac_try;;
6499esac
6500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6501$as_echo "$ac_try_echo") >&5
6502 (eval "$ac_compile") 2>conftest.er1
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && {
6509 test -z "$ac_c_werror_flag" ||
6510 test ! -s conftest.err
6511 } && test -s conftest.$ac_objext; then
6512 :
6513else
6514 $as_echo "$as_me: failed program was:" >&5
6515sed 's/^/| /' conftest.$ac_ext >&5
6516
6517 ac_cv_type_pid_t=yes
6518fi
6519
6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521else
6522 $as_echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
6524
6525
6526fi
6527
6528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529fi
6530{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6531$as_echo "$ac_cv_type_pid_t" >&6; }
6532if test "x$ac_cv_type_pid_t" = x""yes; then
6533 :
6534else
6535
6536cat >>confdefs.h <<_ACEOF
6537#define pid_t int
6538_ACEOF
6539
6540fi
6541
6542{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6543$as_echo_n "checking return type of signal handlers... " >&6; }
6544if test "${ac_cv_type_signal+set}" = set; then
6545 $as_echo_n "(cached) " >&6
6546else
6547 cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553#include <sys/types.h>
6554#include <signal.h>
6555
6556int
6557main ()
6558{
6559return *(signal (0, 0)) (0) == 1;
6560 ;
6561 return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext
6565if { (ac_try="$ac_compile"
6566case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
6570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6571$as_echo "$ac_try_echo") >&5
6572 (eval "$ac_compile") 2>conftest.er1
6573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
6577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && {
6579 test -z "$ac_c_werror_flag" ||
6580 test ! -s conftest.err
6581 } && test -s conftest.$ac_objext; then
6582 ac_cv_type_signal=int
6583else
6584 $as_echo "$as_me: failed program was:" >&5
6585sed 's/^/| /' conftest.$ac_ext >&5
6586
6587 ac_cv_type_signal=void
6588fi
6589
6590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6591fi
6592{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6593$as_echo "$ac_cv_type_signal" >&6; }
6594
6595cat >>confdefs.h <<_ACEOF
6596#define RETSIGTYPE $ac_cv_type_signal
6597_ACEOF
6598
6599
6600{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6601$as_echo_n "checking for size_t... " >&6; }
6602if test "${ac_cv_type_size_t+set}" = set; then
6603 $as_echo_n "(cached) " >&6
6604else
6605 ac_cv_type_size_t=no
6606cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h. */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h. */
6612$ac_includes_default
6613int
6614main ()
6615{
6616if (sizeof (size_t))
6617 return 0;
6618 ;
6619 return 0;
6620}
6621_ACEOF
6622rm -f conftest.$ac_objext
6623if { (ac_try="$ac_compile"
6624case "(($ac_try" in
6625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6626 *) ac_try_echo=$ac_try;;
6627esac
6628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6629$as_echo "$ac_try_echo") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.$ac_objext; then
6640 cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h. */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h. */
6646$ac_includes_default
6647int
6648main ()
6649{
6650if (sizeof ((size_t)))
6651 return 0;
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656rm -f conftest.$ac_objext
6657if { (ac_try="$ac_compile"
6658case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
6662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6663$as_echo "$ac_try_echo") >&5
6664 (eval "$ac_compile") 2>conftest.er1
6665 ac_status=$?
6666 grep -v '^ *+' conftest.er1 >conftest.err
6667 rm -f conftest.er1
6668 cat conftest.err >&5
6669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670 (exit $ac_status); } && {
6671 test -z "$ac_c_werror_flag" ||
6672 test ! -s conftest.err
6673 } && test -s conftest.$ac_objext; then
6674 :
ad6254c5 6675else
d911ec67
AK
6676 $as_echo "$as_me: failed program was:" >&5
6677sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6678
d911ec67 6679 ac_cv_type_size_t=yes
ad6254c5 6680fi
4922197a 6681
d911ec67 6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6683else
d911ec67
AK
6684 $as_echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6686
6687
d911ec67 6688fi
d0191583 6689
d911ec67
AK
6690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6691fi
6692{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6693$as_echo "$ac_cv_type_size_t" >&6; }
6694if test "x$ac_cv_type_size_t" = x""yes; then
6695 :
6696else
d0191583 6697
d911ec67
AK
6698cat >>confdefs.h <<_ACEOF
6699#define size_t unsigned int
6700_ACEOF
d0191583 6701
d911ec67 6702fi
d0191583 6703
d911ec67
AK
6704{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6705$as_echo_n "checking for mode_t... " >&6; }
6706if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6707 $as_echo_n "(cached) " >&6
795ca3e5 6708else
d911ec67 6709 ac_cv_type_mode_t=no
ad6254c5 6710cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6711/* confdefs.h. */
6712_ACEOF
6713cat confdefs.h >>conftest.$ac_ext
6714cat >>conftest.$ac_ext <<_ACEOF
6715/* end confdefs.h. */
6716$ac_includes_default
d911ec67
AK
6717int
6718main ()
6719{
6720if (sizeof (mode_t))
6721 return 0;
6722 ;
6723 return 0;
6724}
ad6254c5
AK
6725_ACEOF
6726rm -f conftest.$ac_objext
7a197a62
AK
6727if { (ac_try="$ac_compile"
6728case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731esac
ec6a6fbe
AK
6732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6733$as_echo "$ac_try_echo") >&5
7a197a62 6734 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6735 ac_status=$?
8a2fc586
AK
6736 grep -v '^ *+' conftest.er1 >conftest.err
6737 rm -f conftest.er1
6738 cat conftest.err >&5
ec6a6fbe 6739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6740 (exit $ac_status); } && {
6741 test -z "$ac_c_werror_flag" ||
6742 test ! -s conftest.err
6743 } && test -s conftest.$ac_objext; then
d911ec67 6744 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6745/* confdefs.h. */
6746_ACEOF
6747cat confdefs.h >>conftest.$ac_ext
6748cat >>conftest.$ac_ext <<_ACEOF
6749/* end confdefs.h. */
d911ec67
AK
6750$ac_includes_default
6751int
6752main ()
6753{
6754if (sizeof ((mode_t)))
6755 return 0;
6756 ;
6757 return 0;
6758}
ad6254c5 6759_ACEOF
d911ec67
AK
6760rm -f conftest.$ac_objext
6761if { (ac_try="$ac_compile"
7a197a62
AK
6762case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765esac
ec6a6fbe
AK
6766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6767$as_echo "$ac_try_echo") >&5
d911ec67 6768 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
ec6a6fbe 6773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6774 (exit $ac_status); } && {
6775 test -z "$ac_c_werror_flag" ||
25fbec5b 6776 test ! -s conftest.err
d911ec67
AK
6777 } && test -s conftest.$ac_objext; then
6778 :
ad6254c5 6779else
ec6a6fbe 6780 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
d911ec67 6783 ac_cv_type_mode_t=yes
ad6254c5 6784fi
7a197a62 6785
d911ec67
AK
6786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787else
6788 $as_echo "$as_me: failed program was:" >&5
6789sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6790
7a197a62 6791
80992638
AK
6792fi
6793
d911ec67 6794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6795fi
d911ec67
AK
6796{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6797$as_echo "$ac_cv_type_mode_t" >&6; }
6798if test "x$ac_cv_type_mode_t" = x""yes; then
6799 :
795ca3e5 6800else
80992638 6801
d911ec67
AK
6802cat >>confdefs.h <<_ACEOF
6803#define mode_t int
6804_ACEOF
ad6254c5 6805
d911ec67 6806fi
795ca3e5 6807
d0191583 6808
d911ec67
AK
6809 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6810$as_echo_n "checking for int8_t... " >&6; }
6811if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6812 $as_echo_n "(cached) " >&6
ad6254c5 6813else
d911ec67
AK
6814 ac_cv_c_int8_t=no
6815 for ac_type in 'int8_t' 'int' 'long int' \
6816 'long long int' 'short int' 'signed char'; do
6817 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6818/* confdefs.h. */
6819_ACEOF
6820cat confdefs.h >>conftest.$ac_ext
6821cat >>conftest.$ac_ext <<_ACEOF
6822/* end confdefs.h. */
6823$ac_includes_default
d911ec67
AK
6824int
6825main ()
6826{
6827static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6828test_array [0] = 0
6829
6830 ;
6831 return 0;
6832}
ad6254c5
AK
6833_ACEOF
6834rm -f conftest.$ac_objext
7a197a62
AK
6835if { (ac_try="$ac_compile"
6836case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839esac
ec6a6fbe
AK
6840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6841$as_echo "$ac_try_echo") >&5
7a197a62 6842 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6843 ac_status=$?
8a2fc586
AK
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
ec6a6fbe 6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
d911ec67 6852 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6853/* confdefs.h. */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h. */
d911ec67
AK
6858$ac_includes_default
6859int
6860main ()
6861{
6862static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6863 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6864test_array [0] = 0
6865
6866 ;
6867 return 0;
6868}
ad6254c5 6869_ACEOF
d911ec67
AK
6870rm -f conftest.$ac_objext
6871if { (ac_try="$ac_compile"
7a197a62
AK
6872case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875esac
ec6a6fbe
AK
6876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877$as_echo "$ac_try_echo") >&5
d911ec67 6878 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
ec6a6fbe 6883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
25fbec5b 6886 test ! -s conftest.err
d911ec67
AK
6887 } && test -s conftest.$ac_objext; then
6888 :
ad6254c5 6889else
ec6a6fbe 6890 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
d911ec67
AK
6893 case $ac_type in
6894 int8_t) ac_cv_c_int8_t=yes ;;
6895 *) ac_cv_c_int8_t=$ac_type ;;
6896esac
ad6254c5 6897
d911ec67 6898fi
7a197a62 6899
d911ec67 6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6901else
d911ec67
AK
6902 $as_echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
b896caa1 6905
ad6254c5 6906fi
ad6254c5 6907
d911ec67
AK
6908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909 test "$ac_cv_c_int8_t" != no && break
6910 done
80992638 6911fi
d911ec67
AK
6912{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6913$as_echo "$ac_cv_c_int8_t" >&6; }
6914 case $ac_cv_c_int8_t in #(
6915 no|yes) ;; #(
6916 *)
80992638 6917
d911ec67
AK
6918cat >>confdefs.h <<_ACEOF
6919#define int8_t $ac_cv_c_int8_t
6920_ACEOF
6921;;
6922 esac
d0191583 6923
d3c8211f 6924
d911ec67
AK
6925 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6926$as_echo_n "checking for int16_t... " >&6; }
6927if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6928 $as_echo_n "(cached) " >&6
d3c8211f 6929else
d911ec67
AK
6930 ac_cv_c_int16_t=no
6931 for ac_type in 'int16_t' 'int' 'long int' \
6932 'long long int' 'short int' 'signed char'; do
6933 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
d911ec67 6939$ac_includes_default
ad6254c5
AK
6940int
6941main ()
6942{
d911ec67
AK
6943static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6944test_array [0] = 0
ad6254c5
AK
6945
6946 ;
6947 return 0;
6948}
6949_ACEOF
6950rm -f conftest.$ac_objext
7a197a62
AK
6951if { (ac_try="$ac_compile"
6952case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955esac
ec6a6fbe
AK
6956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957$as_echo "$ac_try_echo") >&5
7a197a62 6958 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6959 ac_status=$?
8a2fc586
AK
6960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
ec6a6fbe 6963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6964 (exit $ac_status); } && {
6965 test -z "$ac_c_werror_flag" ||
6966 test ! -s conftest.err
6967 } && test -s conftest.$ac_objext; then
ad6254c5 6968 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
d911ec67
AK
6974$ac_includes_default
6975int
6976main ()
6977{
6978static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6979 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6980test_array [0] = 0
80992638 6981
d911ec67
AK
6982 ;
6983 return 0;
6984}
ad6254c5
AK
6985_ACEOF
6986rm -f conftest.$ac_objext
7a197a62
AK
6987if { (ac_try="$ac_compile"
6988case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991esac
ec6a6fbe
AK
6992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993$as_echo "$ac_try_echo") >&5
7a197a62 6994 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6995 ac_status=$?
8a2fc586
AK
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
ec6a6fbe 6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
d911ec67 7004 :
ad6254c5 7005else
ec6a6fbe 7006 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7007sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7008
d911ec67
AK
7009 case $ac_type in
7010 int16_t) ac_cv_c_int16_t=yes ;;
7011 *) ac_cv_c_int16_t=$ac_type ;;
7012esac
7a197a62 7013
8ce0cbda 7014fi
7a197a62
AK
7015
7016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7017else
7018 $as_echo "$as_me: failed program was:" >&5
7019sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7020
8a2fc586 7021
d911ec67 7022fi
8a2fc586 7023
d911ec67
AK
7024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 test "$ac_cv_c_int16_t" != no && break
7026 done
7027fi
7028{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7029$as_echo "$ac_cv_c_int16_t" >&6; }
7030 case $ac_cv_c_int16_t in #(
7031 no|yes) ;; #(
8a2fc586 7032 *)
d911ec67
AK
7033
7034cat >>confdefs.h <<_ACEOF
7035#define int16_t $ac_cv_c_int16_t
c1c065a3 7036_ACEOF
d911ec67
AK
7037;;
7038 esac
d0191583 7039
d911ec67
AK
7040
7041 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7042$as_echo_n "checking for int32_t... " >&6; }
7043if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7044 $as_echo_n "(cached) " >&6
d0191583 7045else
d911ec67
AK
7046 ac_cv_c_int32_t=no
7047 for ac_type in 'int32_t' 'int' 'long int' \
7048 'long long int' 'short int' 'signed char'; do
7049 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7050/* confdefs.h. */
7051_ACEOF
7052cat confdefs.h >>conftest.$ac_ext
7053cat >>conftest.$ac_ext <<_ACEOF
7054/* end confdefs.h. */
7055$ac_includes_default
7056int
7057main ()
7058{
d911ec67
AK
7059static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7060test_array [0] = 0
7061
d0191583
JM
7062 ;
7063 return 0;
7064}
7065_ACEOF
7066rm -f conftest.$ac_objext
7067if { (ac_try="$ac_compile"
7068case "(($ac_try" in
7069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7071esac
ec6a6fbe
AK
7072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7073$as_echo "$ac_try_echo") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7075 ac_status=$?
7076 grep -v '^ *+' conftest.er1 >conftest.err
7077 rm -f conftest.er1
7078 cat conftest.err >&5
7079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
d911ec67 7084 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7085/* confdefs.h. */
7086_ACEOF
7087cat confdefs.h >>conftest.$ac_ext
7088cat >>conftest.$ac_ext <<_ACEOF
7089/* end confdefs.h. */
7090$ac_includes_default
7091int
7092main ()
7093{
d911ec67
AK
7094static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7095 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7096test_array [0] = 0
7097
ec6a6fbe
AK
7098 ;
7099 return 0;
7100}
7101_ACEOF
7102rm -f conftest.$ac_objext
7103if { (ac_try="$ac_compile"
7104case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107esac
7108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109$as_echo "$ac_try_echo") >&5
7110 (eval "$ac_compile") 2>conftest.er1
7111 ac_status=$?
7112 grep -v '^ *+' conftest.er1 >conftest.err
7113 rm -f conftest.er1
7114 cat conftest.err >&5
7115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } && {
7117 test -z "$ac_c_werror_flag" ||
7118 test ! -s conftest.err
7119 } && test -s conftest.$ac_objext; then
d911ec67 7120 :
ec6a6fbe
AK
7121else
7122 $as_echo "$as_me: failed program was:" >&5
7123sed 's/^/| /' conftest.$ac_ext >&5
7124
d911ec67
AK
7125 case $ac_type in
7126 int32_t) ac_cv_c_int32_t=yes ;;
7127 *) ac_cv_c_int32_t=$ac_type ;;
7128esac
7129
ec6a6fbe
AK
7130fi
7131
7132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7133else
7134 $as_echo "$as_me: failed program was:" >&5
7135sed 's/^/| /' conftest.$ac_ext >&5
7136
7137
ec6a6fbe
AK
7138fi
7139
7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7141 test "$ac_cv_c_int32_t" != no && break
7142 done
ec6a6fbe 7143fi
d911ec67
AK
7144{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7145$as_echo "$ac_cv_c_int32_t" >&6; }
7146 case $ac_cv_c_int32_t in #(
7147 no|yes) ;; #(
7148 *)
ec6a6fbe
AK
7149
7150cat >>confdefs.h <<_ACEOF
d911ec67 7151#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7152_ACEOF
d911ec67
AK
7153;;
7154 esac
ec6a6fbe
AK
7155
7156
d911ec67
AK
7157 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7158$as_echo_n "checking for int64_t... " >&6; }
7159if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7160 $as_echo_n "(cached) " >&6
7161else
d911ec67
AK
7162 ac_cv_c_int64_t=no
7163 for ac_type in 'int64_t' 'int' 'long int' \
7164 'long long int' 'short int' 'signed char'; do
7165 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7166/* confdefs.h. */
7167_ACEOF
7168cat confdefs.h >>conftest.$ac_ext
7169cat >>conftest.$ac_ext <<_ACEOF
7170/* end confdefs.h. */
7171$ac_includes_default
7172int
7173main ()
7174{
d911ec67
AK
7175static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7176test_array [0] = 0
7177
ec6a6fbe
AK
7178 ;
7179 return 0;
7180}
7181_ACEOF
7182rm -f conftest.$ac_objext
7183if { (ac_try="$ac_compile"
7184case "(($ac_try" in
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7187esac
7188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189$as_echo "$ac_try_echo") >&5
7190 (eval "$ac_compile") 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest.$ac_objext; then
7200 cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206$ac_includes_default
7207int
7208main ()
7209{
d911ec67
AK
7210static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7211 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7212test_array [0] = 0
7213
ec6a6fbe
AK
7214 ;
7215 return 0;
7216}
7217_ACEOF
7218rm -f conftest.$ac_objext
7219if { (ac_try="$ac_compile"
7220case "(($ac_try" in
7221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222 *) ac_try_echo=$ac_try;;
7223esac
7224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7225$as_echo "$ac_try_echo") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7227 ac_status=$?
7228 grep -v '^ *+' conftest.er1 >conftest.err
7229 rm -f conftest.er1
7230 cat conftest.err >&5
7231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 :
7237else
7238 $as_echo "$as_me: failed program was:" >&5
7239sed 's/^/| /' conftest.$ac_ext >&5
7240
d911ec67
AK
7241 case $ac_type in
7242 int64_t) ac_cv_c_int64_t=yes ;;
7243 *) ac_cv_c_int64_t=$ac_type ;;
7244esac
7245
ec6a6fbe
AK
7246fi
7247
7248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249else
7250 $as_echo "$as_me: failed program was:" >&5
7251sed 's/^/| /' conftest.$ac_ext >&5
7252
7253
7254fi
7255
7256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7257 test "$ac_cv_c_int64_t" != no && break
7258 done
ec6a6fbe 7259fi
d911ec67
AK
7260{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7261$as_echo "$ac_cv_c_int64_t" >&6; }
7262 case $ac_cv_c_int64_t in #(
7263 no|yes) ;; #(
7264 *)
ec6a6fbe
AK
7265
7266cat >>confdefs.h <<_ACEOF
d911ec67 7267#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7268_ACEOF
d911ec67
AK
7269;;
7270 esac
ec6a6fbe 7271
d911ec67
AK
7272{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7273$as_echo_n "checking for ssize_t... " >&6; }
7274if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7275 $as_echo_n "(cached) " >&6
7276else
d911ec67 7277 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7278cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
7283/* end confdefs.h. */
7284$ac_includes_default
7285int
7286main ()
7287{
d911ec67 7288if (sizeof (ssize_t))
ec6a6fbe
AK
7289 return 0;
7290 ;
7291 return 0;
7292}
7293_ACEOF
7294rm -f conftest.$ac_objext
7295if { (ac_try="$ac_compile"
7296case "(($ac_try" in
7297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7298 *) ac_try_echo=$ac_try;;
7299esac
7300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7301$as_echo "$ac_try_echo") >&5
d0191583
JM
7302 (eval "$ac_compile") 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
ec6a6fbe 7307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7308 (exit $ac_status); } && {
7309 test -z "$ac_c_werror_flag" ||
7310 test ! -s conftest.err
7311 } && test -s conftest.$ac_objext; then
ec6a6fbe 7312 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7313/* confdefs.h. */
7314_ACEOF
7315cat confdefs.h >>conftest.$ac_ext
7316cat >>conftest.$ac_ext <<_ACEOF
7317/* end confdefs.h. */
7318$ac_includes_default
7319int
7320main ()
7321{
d911ec67 7322if (sizeof ((ssize_t)))
ec6a6fbe 7323 return 0;
d0191583
JM
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328rm -f conftest.$ac_objext
7329if { (ac_try="$ac_compile"
7330case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333esac
ec6a6fbe
AK
7334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7335$as_echo "$ac_try_echo") >&5
d0191583
JM
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
ec6a6fbe 7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
ec6a6fbe 7346 :
d0191583 7347else
ec6a6fbe 7348 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
d911ec67 7351 ac_cv_type_ssize_t=yes
d0191583
JM
7352fi
7353
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7355else
7356 $as_echo "$as_me: failed program was:" >&5
7357sed 's/^/| /' conftest.$ac_ext >&5
7358
7359
d0191583
JM
7360fi
7361
7362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7363fi
d911ec67
AK
7364{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7365$as_echo "$ac_cv_type_ssize_t" >&6; }
7366if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7367 :
7368else
d0191583
JM
7369
7370cat >>confdefs.h <<_ACEOF
d911ec67 7371#define ssize_t int
d0191583
JM
7372_ACEOF
7373
d0191583 7374fi
8ce0cbda 7375
d911ec67
AK
7376{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7377$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7378if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7379 $as_echo_n "(cached) " >&6
ad6254c5 7380else
b145d876
ZK
7381 cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h. */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */
ec6a6fbe 7387#include <sys/types.h>
ec6a6fbe 7388
ad6254c5 7389_ACEOF
d911ec67
AK
7390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7391 $EGREP "uid_t" >/dev/null 2>&1; then
7392 ac_cv_type_uid_t=yes
b145d876 7393else
d911ec67 7394 ac_cv_type_uid_t=no
ad6254c5 7395fi
d911ec67 7396rm -f conftest*
b145d876 7397
b145d876 7398fi
d911ec67
AK
7399{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7400$as_echo "$ac_cv_type_uid_t" >&6; }
7401if test $ac_cv_type_uid_t = no; then
80992638 7402
d911ec67
AK
7403cat >>confdefs.h <<\_ACEOF
7404#define uid_t int
ad6254c5 7405_ACEOF
199e490e 7406
b896caa1 7407
d911ec67
AK
7408cat >>confdefs.h <<\_ACEOF
7409#define gid_t int
7410_ACEOF
7411
7412fi
7413
7414
7415 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7416$as_echo_n "checking for uint8_t... " >&6; }
7417if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7418 $as_echo_n "(cached) " >&6
ad6254c5 7419else
d911ec67
AK
7420 ac_cv_c_uint8_t=no
7421 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7422 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7423 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7424/* confdefs.h. */
7425_ACEOF
7426cat confdefs.h >>conftest.$ac_ext
7427cat >>conftest.$ac_ext <<_ACEOF
7428/* end confdefs.h. */
7429$ac_includes_default
7430int
7431main ()
7432{
d911ec67
AK
7433static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7434test_array [0] = 0
7435
ad6254c5
AK
7436 ;
7437 return 0;
7438}
7439_ACEOF
7440rm -f conftest.$ac_objext
7a197a62
AK
7441if { (ac_try="$ac_compile"
7442case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445esac
ec6a6fbe
AK
7446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7447$as_echo "$ac_try_echo") >&5
7a197a62 7448 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7449 ac_status=$?
8a2fc586
AK
7450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
ec6a6fbe 7453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7454 (exit $ac_status); } && {
7455 test -z "$ac_c_werror_flag" ||
7456 test ! -s conftest.err
7457 } && test -s conftest.$ac_objext; then
d911ec67
AK
7458 case $ac_type in
7459 uint8_t) ac_cv_c_uint8_t=yes ;;
7460 *) ac_cv_c_uint8_t=$ac_type ;;
7461esac
7462
7463else
7464 $as_echo "$as_me: failed program was:" >&5
7465sed 's/^/| /' conftest.$ac_ext >&5
7466
7467
7468fi
7469
7470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 test "$ac_cv_c_uint8_t" != no && break
7472 done
7473fi
7474{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7475$as_echo "$ac_cv_c_uint8_t" >&6; }
7476 case $ac_cv_c_uint8_t in #(
7477 no|yes) ;; #(
7478 *)
7479
7480cat >>confdefs.h <<\_ACEOF
7481#define _UINT8_T 1
7482_ACEOF
7483
7484
7485cat >>confdefs.h <<_ACEOF
7486#define uint8_t $ac_cv_c_uint8_t
7487_ACEOF
7488;;
7489 esac
7490
7491
7492 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7493$as_echo_n "checking for uint16_t... " >&6; }
7494if test "${ac_cv_c_uint16_t+set}" = set; then
7495 $as_echo_n "(cached) " >&6
7496else
7497 ac_cv_c_uint16_t=no
7498 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7499 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7500 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
ec6a6fbe 7506$ac_includes_default
d0191583
JM
7507int
7508main ()
7509{
d911ec67
AK
7510static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7511test_array [0] = 0
7512
d0191583
JM
7513 ;
7514 return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext
7518if { (ac_try="$ac_compile"
7519case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522esac
ec6a6fbe
AK
7523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7524$as_echo "$ac_try_echo") >&5
d0191583
JM
7525 (eval "$ac_compile") 2>conftest.er1
7526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
ec6a6fbe 7530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest.$ac_objext; then
d911ec67
AK
7535 case $ac_type in
7536 uint16_t) ac_cv_c_uint16_t=yes ;;
7537 *) ac_cv_c_uint16_t=$ac_type ;;
7538esac
ec6a6fbe 7539
ec6a6fbe
AK
7540else
7541 $as_echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544
d0191583
JM
7545fi
7546
7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7548 test "$ac_cv_c_uint16_t" != no && break
7549 done
d0191583 7550fi
d911ec67
AK
7551{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7552$as_echo "$ac_cv_c_uint16_t" >&6; }
7553 case $ac_cv_c_uint16_t in #(
7554 no|yes) ;; #(
7555 *)
7556
d0191583
JM
7557
7558cat >>confdefs.h <<_ACEOF
d911ec67 7559#define uint16_t $ac_cv_c_uint16_t
d0191583 7560_ACEOF
d911ec67
AK
7561;;
7562 esac
d0191583
JM
7563
7564
d911ec67
AK
7565 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7566$as_echo_n "checking for uint32_t... " >&6; }
7567if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7568 $as_echo_n "(cached) " >&6
8106cdd5 7569else
d911ec67
AK
7570 ac_cv_c_uint32_t=no
7571 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7572 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7573 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7574/* confdefs.h. */
7575_ACEOF
7576cat confdefs.h >>conftest.$ac_ext
7577cat >>conftest.$ac_ext <<_ACEOF
7578/* end confdefs.h. */
7579$ac_includes_default
7580int
7581main ()
7582{
d911ec67
AK
7583static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7584test_array [0] = 0
7585
ad6254c5
AK
7586 ;
7587 return 0;
7588}
7589_ACEOF
7590rm -f conftest.$ac_objext
7a197a62
AK
7591if { (ac_try="$ac_compile"
7592case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595esac
ec6a6fbe
AK
7596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7597$as_echo "$ac_try_echo") >&5
7a197a62 7598 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7599 ac_status=$?
8a2fc586
AK
7600 grep -v '^ *+' conftest.er1 >conftest.err
7601 rm -f conftest.er1
7602 cat conftest.err >&5
ec6a6fbe 7603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7604 (exit $ac_status); } && {
7605 test -z "$ac_c_werror_flag" ||
7606 test ! -s conftest.err
7607 } && test -s conftest.$ac_objext; then
d911ec67
AK
7608 case $ac_type in
7609 uint32_t) ac_cv_c_uint32_t=yes ;;
7610 *) ac_cv_c_uint32_t=$ac_type ;;
7611esac
7612
7613else
7614 $as_echo "$as_me: failed program was:" >&5
7615sed 's/^/| /' conftest.$ac_ext >&5
7616
7617
7618fi
7619
7620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 test "$ac_cv_c_uint32_t" != no && break
7622 done
7623fi
7624{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7625$as_echo "$ac_cv_c_uint32_t" >&6; }
7626 case $ac_cv_c_uint32_t in #(
7627 no|yes) ;; #(
7628 *)
7629
7630cat >>confdefs.h <<\_ACEOF
7631#define _UINT32_T 1
7632_ACEOF
7633
7634
7635cat >>confdefs.h <<_ACEOF
7636#define uint32_t $ac_cv_c_uint32_t
7637_ACEOF
7638;;
7639 esac
7640
7641
7642 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7643$as_echo_n "checking for uint64_t... " >&6; }
7644if test "${ac_cv_c_uint64_t+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7646else
7647 ac_cv_c_uint64_t=no
7648 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7649 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7650 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7651/* confdefs.h. */
7652_ACEOF
7653cat confdefs.h >>conftest.$ac_ext
7654cat >>conftest.$ac_ext <<_ACEOF
7655/* end confdefs.h. */
7656$ac_includes_default
7657int
7658main ()
7659{
d911ec67
AK
7660static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7661test_array [0] = 0
7662
ad6254c5
AK
7663 ;
7664 return 0;
7665}
7666_ACEOF
7667rm -f conftest.$ac_objext
7a197a62
AK
7668if { (ac_try="$ac_compile"
7669case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672esac
ec6a6fbe
AK
7673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7674$as_echo "$ac_try_echo") >&5
7a197a62 7675 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7676 ac_status=$?
8a2fc586
AK
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
ec6a6fbe 7680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
d911ec67
AK
7685 case $ac_type in
7686 uint64_t) ac_cv_c_uint64_t=yes ;;
7687 *) ac_cv_c_uint64_t=$ac_type ;;
7688esac
ec6a6fbe 7689
fddafd51 7690else
ec6a6fbe 7691 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7692sed 's/^/| /' conftest.$ac_ext >&5
7693
ec6a6fbe 7694
80992638 7695fi
7a197a62
AK
7696
7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7698 test "$ac_cv_c_uint64_t" != no && break
7699 done
ad6254c5 7700fi
d911ec67
AK
7701{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7702$as_echo "$ac_cv_c_uint64_t" >&6; }
7703 case $ac_cv_c_uint64_t in #(
7704 no|yes) ;; #(
7705 *)
80992638 7706
d911ec67
AK
7707cat >>confdefs.h <<\_ACEOF
7708#define _UINT64_T 1
ad6254c5
AK
7709_ACEOF
7710
d911ec67
AK
7711
7712cat >>confdefs.h <<_ACEOF
7713#define uint64_t $ac_cv_c_uint64_t
7714_ACEOF
7715;;
7716 esac
ad6254c5 7717
ec6a6fbe
AK
7718{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7719$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7720if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7721 $as_echo_n "(cached) " >&6
ad6254c5
AK
7722else
7723 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729$ac_includes_default
7730int
7731main ()
7732{
7733static struct stat ac_aggr;
7734if (ac_aggr.st_rdev)
7735return 0;
7736 ;
7737 return 0;
7738}
7739_ACEOF
7740rm -f conftest.$ac_objext
7a197a62
AK
7741if { (ac_try="$ac_compile"
7742case "(($ac_try" in
7743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7744 *) ac_try_echo=$ac_try;;
7745esac
ec6a6fbe
AK
7746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7747$as_echo "$ac_try_echo") >&5
7a197a62 7748 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7749 ac_status=$?
8a2fc586
AK
7750 grep -v '^ *+' conftest.er1 >conftest.err
7751 rm -f conftest.er1
7752 cat conftest.err >&5
ec6a6fbe 7753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7754 (exit $ac_status); } && {
7755 test -z "$ac_c_werror_flag" ||
7756 test ! -s conftest.err
7757 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7758 ac_cv_member_struct_stat_st_rdev=yes
7759else
ec6a6fbe 7760 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7a197a62 7763 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7764/* confdefs.h. */
7765_ACEOF
7766cat confdefs.h >>conftest.$ac_ext
7767cat >>conftest.$ac_ext <<_ACEOF
7768/* end confdefs.h. */
7769$ac_includes_default
7770int
7771main ()
7772{
7773static struct stat ac_aggr;
7774if (sizeof ac_aggr.st_rdev)
7775return 0;
7776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
7a197a62
AK
7781if { (ac_try="$ac_compile"
7782case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
ec6a6fbe
AK
7786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7787$as_echo "$ac_try_echo") >&5
7a197a62 7788 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7789 ac_status=$?
8a2fc586
AK
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
ec6a6fbe 7793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7798 ac_cv_member_struct_stat_st_rdev=yes
7799else
ec6a6fbe 7800 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7a197a62 7803 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7804fi
7a197a62
AK
7805
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7807fi
7a197a62
AK
7808
7809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7810fi
ec6a6fbe
AK
7811{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7812$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7813if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7814
7815cat >>confdefs.h <<_ACEOF
7816#define HAVE_STRUCT_STAT_ST_RDEV 1
7817_ACEOF
7818
7819
ad6254c5
AK
7820fi
7821
ec6a6fbe
AK
7822{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7823$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7824if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7825 $as_echo_n "(cached) " >&6
ad6254c5
AK
7826else
7827 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7828/* confdefs.h. */
7829_ACEOF
7830cat confdefs.h >>conftest.$ac_ext
7831cat >>conftest.$ac_ext <<_ACEOF
7832/* end confdefs.h. */
7833#include <sys/types.h>
7834#include <time.h>
7835
7836int
7837main ()
7838{
25fbec5b
AK
7839struct tm tm;
7840 int *p = &tm.tm_sec;
ec6a6fbe 7841 return !p;
ad6254c5
AK
7842 ;
7843 return 0;
7844}
7845_ACEOF
7846rm -f conftest.$ac_objext
7a197a62
AK
7847if { (ac_try="$ac_compile"
7848case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851esac
ec6a6fbe
AK
7852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853$as_echo "$ac_try_echo") >&5
7a197a62 7854 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7855 ac_status=$?
8a2fc586
AK
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
ec6a6fbe 7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
d911ec67
AK
7863 } && test -s conftest.$ac_objext; then
7864 ac_cv_struct_tm=time.h
7865else
7866 $as_echo "$as_me: failed program was:" >&5
7867sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_cv_struct_tm=sys/time.h
7870fi
7871
7872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873fi
7874{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7875$as_echo "$ac_cv_struct_tm" >&6; }
7876if test $ac_cv_struct_tm = sys/time.h; then
7877
7878cat >>confdefs.h <<\_ACEOF
7879#define TM_IN_SYS_TIME 1
7880_ACEOF
7881
7882fi
7883
7884
7885################################################################################
7886{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7887$as_echo_n "checking for library containing floor... " >&6; }
7888if test "${ac_cv_search_floor+set}" = set; then
7889 $as_echo_n "(cached) " >&6
7890else
7891 ac_func_search_save_LIBS=$LIBS
7892cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h. */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h. */
7898
7899/* Override any GCC internal prototype to avoid an error.
7900 Use char because int might match the return type of a GCC
7901 builtin and then its argument prototype would still apply. */
7902#ifdef __cplusplus
7903extern "C"
7904#endif
7905char floor ();
7906int
7907main ()
7908{
7909return floor ();
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914for ac_lib in '' m; do
7915 if test -z "$ac_lib"; then
7916 ac_res="none required"
7917 else
7918 ac_res=-l$ac_lib
7919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7920 fi
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922if { (ac_try="$ac_link"
7923case "(($ac_try" in
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7926esac
7927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7928$as_echo "$ac_try_echo") >&5
7929 (eval "$ac_link") 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest$ac_exeext && {
7939 test "$cross_compiling" = yes ||
7940 $as_test_x conftest$ac_exeext
7941 }; then
7942 ac_cv_search_floor=$ac_res
ad6254c5 7943else
ec6a6fbe 7944 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7945sed 's/^/| /' conftest.$ac_ext >&5
7946
7a197a62 7947
ad6254c5 7948fi
ad6254c5 7949
d911ec67
AK
7950rm -rf conftest.dSYM
7951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7952 conftest$ac_exeext
7953 if test "${ac_cv_search_floor+set}" = set; then
7954 break
7955fi
7956done
7957if test "${ac_cv_search_floor+set}" = set; then
7958 :
7959else
7960 ac_cv_search_floor=no
7961fi
7962rm conftest.$ac_ext
7963LIBS=$ac_func_search_save_LIBS
7964fi
7965{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7966$as_echo "$ac_cv_search_floor" >&6; }
7967ac_res=$ac_cv_search_floor
7968if test "$ac_res" != no; then
7969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7970
d911ec67
AK
7971else
7972 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7973$as_echo "$as_me: error: bailing out" >&2;}
7974 { (exit 1); exit 1; }; }
ad6254c5 7975fi
809fae91 7976
795ca3e5 7977
ad6254c5
AK
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
d0191583
JM
7992
7993
7994
d911ec67
AK
7995
7996
7997
7998
7999
8000
8001
8002for ac_func in floor ftruncate gethostname getpagesize \
8003 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8004 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8005 strstr strtol strtoul uname
ad6254c5 8006do
ec6a6fbe
AK
8007as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8008{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8009$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8010if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8011 $as_echo_n "(cached) " >&6
795ca3e5 8012else
ad6254c5 8013 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8a2fc586
AK
8019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8021#define $ac_func innocuous_$ac_func
8022
ad6254c5
AK
8023/* System header to define __stub macros and hopefully few prototypes,
8024 which can conflict with char $ac_func (); below.
8025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8026 <limits.h> exists even on freestanding compilers. */
8a2fc586 8027
ad6254c5
AK
8028#ifdef __STDC__
8029# include <limits.h>
8030#else
8031# include <assert.h>
8032#endif
8a2fc586
AK
8033
8034#undef $ac_func
8035
7a197a62
AK
8036/* Override any GCC internal prototype to avoid an error.
8037 Use char because int might match the return type of a GCC
8038 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8039#ifdef __cplusplus
8040extern "C"
ad6254c5 8041#endif
ad6254c5
AK
8042char $ac_func ();
8043/* The GNU C library defines this for functions which it implements
8044 to always fail with ENOSYS. Some functions are actually named
8045 something starting with __ and the normal name is an alias. */
7a197a62 8046#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8047choke me
ad6254c5
AK
8048#endif
8049
8050int
8051main ()
8052{
7a197a62 8053return $ac_func ();
ad6254c5
AK
8054 ;
8055 return 0;
8056}
8057_ACEOF
8058rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8059if { (ac_try="$ac_link"
8060case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8063esac
ec6a6fbe
AK
8064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8065$as_echo "$ac_try_echo") >&5
7a197a62 8066 (eval "$ac_link") 2>conftest.er1
ad6254c5 8067 ac_status=$?
8a2fc586
AK
8068 grep -v '^ *+' conftest.er1 >conftest.err
8069 rm -f conftest.er1
8070 cat conftest.err >&5
ec6a6fbe 8071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
ec6a6fbe
AK
8075 } && test -s conftest$ac_exeext && {
8076 test "$cross_compiling" = yes ||
8077 $as_test_x conftest$ac_exeext
8078 }; then
fc54be10
AK
8079 eval "$as_ac_var=yes"
8080else
ec6a6fbe 8081 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 eval "$as_ac_var=no"
8085fi
8086
ec6a6fbe 8087rm -rf conftest.dSYM
25fbec5b 8088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8089 conftest$ac_exeext conftest.$ac_ext
8090fi
ec6a6fbe
AK
8091ac_res=`eval 'as_val=${'$as_ac_var'}
8092 $as_echo "$as_val"'`
8093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8094$as_echo "$ac_res" >&6; }
8095as_val=`eval 'as_val=${'$as_ac_var'}
8096 $as_echo "$as_val"'`
8097 if test "x$as_val" = x""yes; then
ad6254c5 8098 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8099#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8100_ACEOF
8101
8102else
ec6a6fbe
AK
8103 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8104$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8105 { (exit 1); exit 1; }; }
8106fi
8107done
795ca3e5 8108
a0f9708e
AK
8109
8110for ac_func in siginterrupt
8111do
8112as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8113{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8114$as_echo_n "checking for $ac_func... " >&6; }
8115if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8116 $as_echo_n "(cached) " >&6
8117else
8118 cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8126#define $ac_func innocuous_$ac_func
8127
8128/* System header to define __stub macros and hopefully few prototypes,
8129 which can conflict with char $ac_func (); below.
8130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8131 <limits.h> exists even on freestanding compilers. */
8132
8133#ifdef __STDC__
8134# include <limits.h>
8135#else
8136# include <assert.h>
8137#endif
8138
8139#undef $ac_func
8140
8141/* Override any GCC internal prototype to avoid an error.
8142 Use char because int might match the return type of a GCC
8143 builtin and then its argument prototype would still apply. */
8144#ifdef __cplusplus
8145extern "C"
8146#endif
8147char $ac_func ();
8148/* The GNU C library defines this for functions which it implements
8149 to always fail with ENOSYS. Some functions are actually named
8150 something starting with __ and the normal name is an alias. */
8151#if defined __stub_$ac_func || defined __stub___$ac_func
8152choke me
8153#endif
8154
8155int
8156main ()
8157{
8158return $ac_func ();
8159 ;
8160 return 0;
8161}
8162_ACEOF
8163rm -f conftest.$ac_objext conftest$ac_exeext
8164if { (ac_try="$ac_link"
8165case "(($ac_try" in
8166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167 *) ac_try_echo=$ac_try;;
8168esac
8169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8170$as_echo "$ac_try_echo") >&5
8171 (eval "$ac_link") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest$ac_exeext && {
8181 test "$cross_compiling" = yes ||
8182 $as_test_x conftest$ac_exeext
8183 }; then
8184 eval "$as_ac_var=yes"
8185else
8186 $as_echo "$as_me: failed program was:" >&5
8187sed 's/^/| /' conftest.$ac_ext >&5
8188
8189 eval "$as_ac_var=no"
8190fi
8191
8192rm -rf conftest.dSYM
8193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8194 conftest$ac_exeext conftest.$ac_ext
8195fi
8196ac_res=`eval 'as_val=${'$as_ac_var'}
8197 $as_echo "$as_val"'`
8198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8199$as_echo "$ac_res" >&6; }
8200as_val=`eval 'as_val=${'$as_ac_var'}
8201 $as_echo "$as_val"'`
8202 if test "x$as_val" = x""yes; then
8203 cat >>confdefs.h <<_ACEOF
8204#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8205_ACEOF
8206
8207fi
8208done
8209
ad6254c5
AK
8210# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8211# for constant arguments. Useless!
ec6a6fbe
AK
8212{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8213$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8214if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8215 $as_echo_n "(cached) " >&6
ad6254c5
AK
8216else
8217 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8218/* confdefs.h. */
8219_ACEOF
8220cat confdefs.h >>conftest.$ac_ext
8221cat >>conftest.$ac_ext <<_ACEOF
8222/* end confdefs.h. */
8223#include <alloca.h>
8224int
8225main ()
8226{
8227char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8228 if (p) return 0;
ad6254c5
AK
8229 ;
8230 return 0;
8231}
8232_ACEOF
8233rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8234if { (ac_try="$ac_link"
8235case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238esac
ec6a6fbe
AK
8239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8240$as_echo "$ac_try_echo") >&5
7a197a62 8241 (eval "$ac_link") 2>conftest.er1
ad6254c5 8242 ac_status=$?
8a2fc586
AK
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
ec6a6fbe 8246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
ec6a6fbe
AK
8250 } && test -s conftest$ac_exeext && {
8251 test "$cross_compiling" = yes ||
8252 $as_test_x conftest$ac_exeext
8253 }; then
ad6254c5
AK
8254 ac_cv_working_alloca_h=yes
8255else
ec6a6fbe 8256 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8257sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8258
7a197a62 8259 ac_cv_working_alloca_h=no
ad6254c5 8260fi
7a197a62 8261
ec6a6fbe 8262rm -rf conftest.dSYM
25fbec5b 8263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8264 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8265fi
ec6a6fbe
AK
8266{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8267$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8268if test $ac_cv_working_alloca_h = yes; then
8269
8270cat >>confdefs.h <<\_ACEOF
8271#define HAVE_ALLOCA_H 1
8272_ACEOF
8273
8274fi
8275
ec6a6fbe
AK
8276{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8277$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8278if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8279 $as_echo_n "(cached) " >&6
ad6254c5
AK
8280else
8281 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
8287#ifdef __GNUC__
8288# define alloca __builtin_alloca
8289#else
8290# ifdef _MSC_VER
8291# include <malloc.h>
8292# define alloca _alloca
8293# else
25fbec5b 8294# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8295# include <alloca.h>
8296# else
8297# ifdef _AIX
8298 #pragma alloca
8299# else
8300# ifndef alloca /* predefined by HP cc +Olibcalls */
8301char *alloca ();
8302# endif
8303# endif
8304# endif
8305# endif
8306#endif
8307
8308int
8309main ()
8310{
8311char *p = (char *) alloca (1);
7a197a62 8312 if (p) return 0;
ad6254c5
AK
8313 ;
8314 return 0;
8315}
8316_ACEOF
8317rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8318if { (ac_try="$ac_link"
8319case "(($ac_try" in
8320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321 *) ac_try_echo=$ac_try;;
8322esac
ec6a6fbe
AK
8323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8324$as_echo "$ac_try_echo") >&5
7a197a62 8325 (eval "$ac_link") 2>conftest.er1
ad6254c5 8326 ac_status=$?
8a2fc586
AK
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
ec6a6fbe 8330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8331 (exit $ac_status); } && {
8332 test -z "$ac_c_werror_flag" ||
8333 test ! -s conftest.err
ec6a6fbe
AK
8334 } && test -s conftest$ac_exeext && {
8335 test "$cross_compiling" = yes ||
8336 $as_test_x conftest$ac_exeext
8337 }; then
ad6254c5
AK
8338 ac_cv_func_alloca_works=yes
8339else
ec6a6fbe 8340 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8341sed 's/^/| /' conftest.$ac_ext >&5
8342
7a197a62 8343 ac_cv_func_alloca_works=no
ad6254c5 8344fi
7a197a62 8345
ec6a6fbe 8346rm -rf conftest.dSYM
25fbec5b 8347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8348 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8349fi
ec6a6fbe
AK
8350{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8351$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8352
8353if test $ac_cv_func_alloca_works = yes; then
8354
8355cat >>confdefs.h <<\_ACEOF
8356#define HAVE_ALLOCA 1
8357_ACEOF
8358
8359else
8360 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8361# that cause trouble. Some versions do not even contain alloca or
8362# contain a buggy version. If you still want to use their alloca,
8363# use ar to extract alloca.o from them instead of compiling alloca.c.
8364
7a197a62 8365ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8366
8367cat >>confdefs.h <<\_ACEOF
8368#define C_ALLOCA 1
8369_ACEOF
8370
8371
ec6a6fbe
AK
8372{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8373$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8374if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8375 $as_echo_n "(cached) " >&6
ad6254c5
AK
8376else
8377 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8378/* confdefs.h. */
8379_ACEOF
8380cat confdefs.h >>conftest.$ac_ext
8381cat >>conftest.$ac_ext <<_ACEOF
8382/* end confdefs.h. */
7a197a62 8383#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8384webecray
8385#else
8386wenotbecray
8387#endif
8388
8389_ACEOF
795ca3e5 8390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8391 $EGREP "webecray" >/dev/null 2>&1; then
8392 ac_cv_os_cray=yes
8393else
8394 ac_cv_os_cray=no
795ca3e5
AK
8395fi
8396rm -f conftest*
8397
795ca3e5 8398fi
ec6a6fbe
AK
8399{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8400$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8401if test $ac_cv_os_cray = yes; then
8402 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8403 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8404{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8405$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8406if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8407 $as_echo_n "(cached) " >&6
ad6254c5
AK
8408else
8409 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h. */
8a2fc586
AK
8415/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8417#define $ac_func innocuous_$ac_func
8418
ad6254c5
AK
8419/* System header to define __stub macros and hopefully few prototypes,
8420 which can conflict with char $ac_func (); below.
8421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8422 <limits.h> exists even on freestanding compilers. */
8a2fc586 8423
ad6254c5
AK
8424#ifdef __STDC__
8425# include <limits.h>
8426#else
8427# include <assert.h>
8428#endif
8a2fc586
AK
8429
8430#undef $ac_func
8431
7a197a62
AK
8432/* Override any GCC internal prototype to avoid an error.
8433 Use char because int might match the return type of a GCC
8434 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8435#ifdef __cplusplus
8436extern "C"
ad6254c5 8437#endif
ad6254c5
AK
8438char $ac_func ();
8439/* The GNU C library defines this for functions which it implements
8440 to always fail with ENOSYS. Some functions are actually named
8441 something starting with __ and the normal name is an alias. */
7a197a62 8442#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8443choke me
ad6254c5
AK
8444#endif
8445
8446int
8447main ()
8448{
7a197a62 8449return $ac_func ();
ad6254c5
AK
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8455if { (ac_try="$ac_link"
8456case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
ec6a6fbe
AK
8460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8461$as_echo "$ac_try_echo") >&5
7a197a62 8462 (eval "$ac_link") 2>conftest.er1
ad6254c5 8463 ac_status=$?
8a2fc586
AK
8464 grep -v '^ *+' conftest.er1 >conftest.err
8465 rm -f conftest.er1
8466 cat conftest.err >&5
ec6a6fbe 8467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
ec6a6fbe
AK
8471 } && test -s conftest$ac_exeext && {
8472 test "$cross_compiling" = yes ||
8473 $as_test_x conftest$ac_exeext
8474 }; then
ad6254c5
AK
8475 eval "$as_ac_var=yes"
8476else
ec6a6fbe 8477 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8478sed 's/^/| /' conftest.$ac_ext >&5
8479
7a197a62 8480 eval "$as_ac_var=no"
ad6254c5 8481fi
7a197a62 8482
ec6a6fbe 8483rm -rf conftest.dSYM
25fbec5b 8484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8485 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8486fi
ec6a6fbe
AK
8487ac_res=`eval 'as_val=${'$as_ac_var'}
8488 $as_echo "$as_val"'`
8489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8490$as_echo "$ac_res" >&6; }
8491as_val=`eval 'as_val=${'$as_ac_var'}
8492 $as_echo "$as_val"'`
8493 if test "x$as_val" = x""yes; then
80992638 8494
ad6254c5
AK
8495cat >>confdefs.h <<_ACEOF
8496#define CRAY_STACKSEG_END $ac_func
8497_ACEOF
8498
8499 break
8500fi
8501
8502 done
8503fi
8504
ec6a6fbe
AK
8505{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8506$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8507if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8508 $as_echo_n "(cached) " >&6
ad6254c5
AK
8509else
8510 if test "$cross_compiling" = yes; then
8511 ac_cv_c_stack_direction=0
8512else
8513 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8514/* confdefs.h. */
8515_ACEOF
8516cat confdefs.h >>conftest.$ac_ext
8517cat >>conftest.$ac_ext <<_ACEOF
8518/* end confdefs.h. */
7a197a62 8519$ac_includes_default
ad6254c5
AK
8520int
8521find_stack_direction ()
8522{
8523 static char *addr = 0;
8524 auto char dummy;
8525 if (addr == 0)
8526 {
8527 addr = &dummy;
8528 return find_stack_direction ();
8529 }
8530 else
8531 return (&dummy > addr) ? 1 : -1;
8532}
8533
8534int
8535main ()
8536{
7a197a62 8537 return find_stack_direction () < 0;
ad6254c5
AK
8538}
8539_ACEOF
8540rm -f conftest$ac_exeext
7a197a62
AK
8541if { (ac_try="$ac_link"
8542case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545esac
ec6a6fbe
AK
8546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8547$as_echo "$ac_try_echo") >&5
7a197a62 8548 (eval "$ac_link") 2>&5
ad6254c5 8549 ac_status=$?
ec6a6fbe 8550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555esac
ec6a6fbe
AK
8556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8557$as_echo "$ac_try_echo") >&5
7a197a62 8558 (eval "$ac_try") 2>&5
ad6254c5 8559 ac_status=$?
ec6a6fbe 8560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8561 (exit $ac_status); }; }; then
8562 ac_cv_c_stack_direction=1
8563else
ec6a6fbe
AK
8564 $as_echo "$as_me: program exited with status $ac_status" >&5
8565$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8566sed 's/^/| /' conftest.$ac_ext >&5
8567
8568( exit $ac_status )
8569ac_cv_c_stack_direction=-1
8570fi
ec6a6fbe 8571rm -rf conftest.dSYM
7a197a62 8572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8573fi
7a197a62
AK
8574
8575
ad6254c5 8576fi
ec6a6fbe
AK
8577{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8578$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8579
d911ec67
AK
8580cat >>confdefs.h <<_ACEOF
8581#define STACK_DIRECTION $ac_cv_c_stack_direction
8582_ACEOF
8583
8584
8585fi
8586
8587{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8588$as_echo_n "checking whether closedir returns void... " >&6; }
8589if test "${ac_cv_func_closedir_void+set}" = set; then
8590 $as_echo_n "(cached) " >&6
8591else
8592 if test "$cross_compiling" = yes; then
8593 ac_cv_func_closedir_void=yes
8594else
8595 cat >conftest.$ac_ext <<_ACEOF
8596/* confdefs.h. */
8597_ACEOF
8598cat confdefs.h >>conftest.$ac_ext
8599cat >>conftest.$ac_ext <<_ACEOF
8600/* end confdefs.h. */
8601$ac_includes_default
8602#include <$ac_header_dirent>
8603#ifndef __cplusplus
8604int closedir ();
8605#endif
8606
8607int
8608main ()
8609{
8610return closedir (opendir (".")) != 0;
8611 ;
8612 return 0;
8613}
8614_ACEOF
8615rm -f conftest$ac_exeext
8616if { (ac_try="$ac_link"
8617case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620esac
8621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8622$as_echo "$ac_try_echo") >&5
8623 (eval "$ac_link") 2>&5
8624 ac_status=$?
8625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8627 { (case "(($ac_try" in
8628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629 *) ac_try_echo=$ac_try;;
8630esac
8631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8632$as_echo "$ac_try_echo") >&5
8633 (eval "$ac_try") 2>&5
8634 ac_status=$?
8635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_func_closedir_void=no
8638else
8639 $as_echo "$as_me: program exited with status $ac_status" >&5
8640$as_echo "$as_me: failed program was:" >&5
8641sed 's/^/| /' conftest.$ac_ext >&5
8642
8643( exit $ac_status )
8644ac_cv_func_closedir_void=yes
8645fi
8646rm -rf conftest.dSYM
8647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8648fi
8649
8650
8651fi
8652{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8653$as_echo "$ac_cv_func_closedir_void" >&6; }
8654if test $ac_cv_func_closedir_void = yes; then
8655
8656cat >>confdefs.h <<\_ACEOF
8657#define CLOSEDIR_VOID 1
8658_ACEOF
8659
8660fi
8661
8662
8663for ac_header in unistd.h
8664do
8665as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8666if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8667 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8668$as_echo_n "checking for $ac_header... " >&6; }
8669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8670 $as_echo_n "(cached) " >&6
8671fi
8672ac_res=`eval 'as_val=${'$as_ac_Header'}
8673 $as_echo "$as_val"'`
8674 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8675$as_echo "$ac_res" >&6; }
8676else
8677 # Is the header compilable?
8678{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8679$as_echo_n "checking $ac_header usability... " >&6; }
8680cat >conftest.$ac_ext <<_ACEOF
8681/* confdefs.h. */
8682_ACEOF
8683cat confdefs.h >>conftest.$ac_ext
8684cat >>conftest.$ac_ext <<_ACEOF
8685/* end confdefs.h. */
8686$ac_includes_default
8687#include <$ac_header>
8688_ACEOF
8689rm -f conftest.$ac_objext
8690if { (ac_try="$ac_compile"
8691case "(($ac_try" in
8692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693 *) ac_try_echo=$ac_try;;
8694esac
8695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8696$as_echo "$ac_try_echo") >&5
8697 (eval "$ac_compile") 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } && {
8704 test -z "$ac_c_werror_flag" ||
8705 test ! -s conftest.err
8706 } && test -s conftest.$ac_objext; then
8707 ac_header_compiler=yes
8708else
8709 $as_echo "$as_me: failed program was:" >&5
8710sed 's/^/| /' conftest.$ac_ext >&5
8711
8712 ac_header_compiler=no
8713fi
8714
8715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8717$as_echo "$ac_header_compiler" >&6; }
8718
8719# Is the header present?
8720{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8721$as_echo_n "checking $ac_header presence... " >&6; }
8722cat >conftest.$ac_ext <<_ACEOF
8723/* confdefs.h. */
8724_ACEOF
8725cat confdefs.h >>conftest.$ac_ext
8726cat >>conftest.$ac_ext <<_ACEOF
8727/* end confdefs.h. */
8728#include <$ac_header>
8729_ACEOF
8730if { (ac_try="$ac_cpp conftest.$ac_ext"
8731case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8736$as_echo "$ac_try_echo") >&5
8737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8738 ac_status=$?
8739 grep -v '^ *+' conftest.er1 >conftest.err
8740 rm -f conftest.er1
8741 cat conftest.err >&5
8742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } >/dev/null && {
8744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8745 test ! -s conftest.err
8746 }; then
8747 ac_header_preproc=yes
8748else
8749 $as_echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752 ac_header_preproc=no
8753fi
8754
8755rm -f conftest.err conftest.$ac_ext
8756{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8757$as_echo "$ac_header_preproc" >&6; }
8758
8759# So? What about this header?
8760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8761 yes:no: )
8762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8763$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8765$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8766 ac_header_preproc=yes
8767 ;;
8768 no:yes:* )
8769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8770$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8772$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8774$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8776$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8778$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8780$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8781
8782 ;;
8783esac
8784{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8785$as_echo_n "checking for $ac_header... " >&6; }
8786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8787 $as_echo_n "(cached) " >&6
8788else
8789 eval "$as_ac_Header=\$ac_header_preproc"
8790fi
8791ac_res=`eval 'as_val=${'$as_ac_Header'}
8792 $as_echo "$as_val"'`
8793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8794$as_echo "$ac_res" >&6; }
8795
8796fi
8797as_val=`eval 'as_val=${'$as_ac_Header'}
8798 $as_echo "$as_val"'`
8799 if test "x$as_val" = x""yes; then
8800 cat >>confdefs.h <<_ACEOF
8801#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8802_ACEOF
8803
ad6254c5
AK
8804fi
8805
d911ec67
AK
8806done
8807
8808{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8809$as_echo_n "checking for working chown... " >&6; }
8810if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8811 $as_echo_n "(cached) " >&6
ad6254c5
AK
8812else
8813 if test "$cross_compiling" = yes; then
d911ec67 8814 ac_cv_func_chown_works=no
ad6254c5
AK
8815else
8816 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8817/* confdefs.h. */
8818_ACEOF
8819cat confdefs.h >>conftest.$ac_ext
8820cat >>conftest.$ac_ext <<_ACEOF
8821/* end confdefs.h. */
8822$ac_includes_default
d911ec67 8823#include <fcntl.h>
ad6254c5
AK
8824
8825int
8826main ()
8827{
d911ec67
AK
8828 char *f = "conftest.chown";
8829 struct stat before, after;
8830
8831 if (creat (f, 0600) < 0)
8832 return 1;
8833 if (stat (f, &before) < 0)
8834 return 1;
8835 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8836 return 1;
8837 if (stat (f, &after) < 0)
8838 return 1;
8839 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8840
ad6254c5
AK
8841 ;
8842 return 0;
8843}
8844_ACEOF
8845rm -f conftest$ac_exeext
7a197a62
AK
8846if { (ac_try="$ac_link"
8847case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850esac
ec6a6fbe
AK
8851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8852$as_echo "$ac_try_echo") >&5
7a197a62 8853 (eval "$ac_link") 2>&5
ad6254c5 8854 ac_status=$?
ec6a6fbe 8855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8857 { (case "(($ac_try" in
8858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8860esac
ec6a6fbe
AK
8861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8862$as_echo "$ac_try_echo") >&5
7a197a62 8863 (eval "$ac_try") 2>&5
ad6254c5 8864 ac_status=$?
ec6a6fbe 8865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8866 (exit $ac_status); }; }; then
d911ec67 8867 ac_cv_func_chown_works=yes
ad6254c5 8868else
ec6a6fbe
AK
8869 $as_echo "$as_me: program exited with status $ac_status" >&5
8870$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
8873( exit $ac_status )
d911ec67 8874ac_cv_func_chown_works=no
ad6254c5 8875fi
ec6a6fbe 8876rm -rf conftest.dSYM
7a197a62 8877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8878fi
7a197a62
AK
8879
8880
d911ec67
AK
8881rm -f conftest.chown
8882
ad6254c5 8883fi
d911ec67
AK
8884{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8885$as_echo "$ac_cv_func_chown_works" >&6; }
8886if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8887
8888cat >>confdefs.h <<\_ACEOF
d911ec67 8889#define HAVE_CHOWN 1
ad6254c5
AK
8890_ACEOF
8891
8892fi
8893
8894
7a197a62 8895for ac_header in vfork.h
ad6254c5 8896do
ec6a6fbe 8897as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8899 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8900$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8902 $as_echo_n "(cached) " >&6
ad6254c5 8903fi
ec6a6fbe
AK
8904ac_res=`eval 'as_val=${'$as_ac_Header'}
8905 $as_echo "$as_val"'`
8906 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8907$as_echo "$ac_res" >&6; }
ad6254c5
AK
8908else
8909 # Is the header compilable?
ec6a6fbe
AK
8910{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8911$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8912cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8913/* confdefs.h. */
8914_ACEOF
8915cat confdefs.h >>conftest.$ac_ext
8916cat >>conftest.$ac_ext <<_ACEOF
8917/* end confdefs.h. */
8918$ac_includes_default
8919#include <$ac_header>
8920_ACEOF
8921rm -f conftest.$ac_objext
7a197a62
AK
8922if { (ac_try="$ac_compile"
8923case "(($ac_try" in
8924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8925 *) ac_try_echo=$ac_try;;
8926esac
ec6a6fbe
AK
8927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8928$as_echo "$ac_try_echo") >&5
7a197a62 8929 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8930 ac_status=$?
8a2fc586
AK
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
ec6a6fbe 8934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8935 (exit $ac_status); } && {
8936 test -z "$ac_c_werror_flag" ||
8937 test ! -s conftest.err
8938 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8939 ac_header_compiler=yes
8940else
ec6a6fbe 8941 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8942sed 's/^/| /' conftest.$ac_ext >&5
8943
7a197a62 8944 ac_header_compiler=no
ad6254c5 8945fi
7a197a62
AK
8946
8947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8948{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8949$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8950
8951# Is the header present?
ec6a6fbe
AK
8952{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8953$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8954cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8955/* confdefs.h. */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h. */
8960#include <$ac_header>
8961_ACEOF
7a197a62
AK
8962if { (ac_try="$ac_cpp conftest.$ac_ext"
8963case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966esac
ec6a6fbe
AK
8967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8968$as_echo "$ac_try_echo") >&5
7a197a62 8969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
ec6a6fbe 8974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8975 (exit $ac_status); } >/dev/null && {
8976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 }; then
ad6254c5
AK
8979 ac_header_preproc=yes
8980else
ec6a6fbe 8981 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8982sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_header_preproc=no
8985fi
7a197a62 8986
ad6254c5 8987rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8988{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8989$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8990
8991# So? What about this header?
8a2fc586
AK
8992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8993 yes:no: )
ec6a6fbe
AK
8994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8995$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8996 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8997$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8998 ac_header_preproc=yes
ad6254c5 8999 ;;
8a2fc586 9000 no:yes:* )
ec6a6fbe
AK
9001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9002$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9004$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9006$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9008$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9010$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9012$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9013
ad6254c5
AK
9014 ;;
9015esac
ec6a6fbe
AK
9016{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9017$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9019 $as_echo_n "(cached) " >&6
ad6254c5 9020else
8a2fc586 9021 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9022fi
ec6a6fbe
AK
9023ac_res=`eval 'as_val=${'$as_ac_Header'}
9024 $as_echo "$as_val"'`
9025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9026$as_echo "$ac_res" >&6; }
ad6254c5 9027
795ca3e5 9028fi
ec6a6fbe
AK
9029as_val=`eval 'as_val=${'$as_ac_Header'}
9030 $as_echo "$as_val"'`
9031 if test "x$as_val" = x""yes; then
ad6254c5 9032 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9034_ACEOF
9035
9036fi
9037
9038done
795ca3e5 9039
ad6254c5
AK
9040
9041
9042for ac_func in fork vfork
9043do
ec6a6fbe
AK
9044as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9045{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9046$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9047if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9048 $as_echo_n "(cached) " >&6
795ca3e5 9049else
ad6254c5 9050 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9051/* confdefs.h. */
9052_ACEOF
9053cat confdefs.h >>conftest.$ac_ext
9054cat >>conftest.$ac_ext <<_ACEOF
9055/* end confdefs.h. */
8a2fc586
AK
9056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9058#define $ac_func innocuous_$ac_func
9059
ad6254c5
AK
9060/* System header to define __stub macros and hopefully few prototypes,
9061 which can conflict with char $ac_func (); below.
9062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9063 <limits.h> exists even on freestanding compilers. */
8a2fc586 9064
ad6254c5
AK
9065#ifdef __STDC__
9066# include <limits.h>
9067#else
9068# include <assert.h>
795ca3e5 9069#endif
8a2fc586
AK
9070
9071#undef $ac_func
9072
7a197a62
AK
9073/* Override any GCC internal prototype to avoid an error.
9074 Use char because int might match the return type of a GCC
9075 builtin and then its argument prototype would still apply. */
795ca3e5 9076#ifdef __cplusplus
ad6254c5 9077extern "C"
ad6254c5 9078#endif
ad6254c5
AK
9079char $ac_func ();
9080/* The GNU C library defines this for functions which it implements
9081 to always fail with ENOSYS. Some functions are actually named
9082 something starting with __ and the normal name is an alias. */
7a197a62 9083#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9084choke me
795ca3e5
AK
9085#endif
9086
ad6254c5
AK
9087int
9088main ()
9089{
7a197a62 9090return $ac_func ();
ad6254c5
AK
9091 ;
9092 return 0;
9093}
9094_ACEOF
9095rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9096if { (ac_try="$ac_link"
9097case "(($ac_try" in
9098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9099 *) ac_try_echo=$ac_try;;
9100esac
ec6a6fbe
AK
9101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9102$as_echo "$ac_try_echo") >&5
7a197a62 9103 (eval "$ac_link") 2>conftest.er1
ad6254c5 9104 ac_status=$?
8a2fc586
AK
9105 grep -v '^ *+' conftest.er1 >conftest.err
9106 rm -f conftest.er1
9107 cat conftest.err >&5
ec6a6fbe 9108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9109 (exit $ac_status); } && {
9110 test -z "$ac_c_werror_flag" ||
9111 test ! -s conftest.err
ec6a6fbe
AK
9112 } && test -s conftest$ac_exeext && {
9113 test "$cross_compiling" = yes ||
9114 $as_test_x conftest$ac_exeext
9115 }; then
ad6254c5 9116 eval "$as_ac_var=yes"
795ca3e5 9117else
ec6a6fbe 9118 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9119sed 's/^/| /' conftest.$ac_ext >&5
9120
7a197a62 9121 eval "$as_ac_var=no"
795ca3e5 9122fi
7a197a62 9123
ec6a6fbe 9124rm -rf conftest.dSYM
25fbec5b 9125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9126 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9127fi
ec6a6fbe
AK
9128ac_res=`eval 'as_val=${'$as_ac_var'}
9129 $as_echo "$as_val"'`
9130 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9131$as_echo "$ac_res" >&6; }
9132as_val=`eval 'as_val=${'$as_ac_var'}
9133 $as_echo "$as_val"'`
9134 if test "x$as_val" = x""yes; then
ad6254c5 9135 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9136#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9137_ACEOF
9138
9139fi
9140done
9141
9142if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9143 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9144$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9145if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9146 $as_echo_n "(cached) " >&6
ad6254c5
AK
9147else
9148 if test "$cross_compiling" = yes; then
9149 ac_cv_func_fork_works=cross
9150else
9151 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9152/* confdefs.h. */
9153_ACEOF
9154cat confdefs.h >>conftest.$ac_ext
9155cat >>conftest.$ac_ext <<_ACEOF
9156/* end confdefs.h. */
9157$ac_includes_default
9158int
9159main ()
9160{
9161
9162 /* By Ruediger Kuhlmann. */
9163 return fork () < 0;
9164
9165 ;
9166 return 0;
9167}
ad6254c5
AK
9168_ACEOF
9169rm -f conftest$ac_exeext
7a197a62
AK
9170if { (ac_try="$ac_link"
9171case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174esac
ec6a6fbe
AK
9175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9176$as_echo "$ac_try_echo") >&5
7a197a62 9177 (eval "$ac_link") 2>&5
ad6254c5 9178 ac_status=$?
ec6a6fbe 9179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9181 { (case "(($ac_try" in
9182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9184esac
ec6a6fbe
AK
9185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9186$as_echo "$ac_try_echo") >&5
7a197a62 9187 (eval "$ac_try") 2>&5
ad6254c5 9188 ac_status=$?
ec6a6fbe 9189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9190 (exit $ac_status); }; }; then
9191 ac_cv_func_fork_works=yes
9192else
ec6a6fbe
AK
9193 $as_echo "$as_me: program exited with status $ac_status" >&5
9194$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197( exit $ac_status )
9198ac_cv_func_fork_works=no
9199fi
ec6a6fbe 9200rm -rf conftest.dSYM
7a197a62 9201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9202fi
7a197a62
AK
9203
9204
ad6254c5 9205fi
ec6a6fbe
AK
9206{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9207$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9208
9209else
9210 ac_cv_func_fork_works=$ac_cv_func_fork
9211fi
9212if test "x$ac_cv_func_fork_works" = xcross; then
9213 case $host in
9214 *-*-amigaos* | *-*-msdosdjgpp*)
9215 # Override, as these systems have only a dummy fork() stub
9216 ac_cv_func_fork_works=no
9217 ;;
9218 *)
9219 ac_cv_func_fork_works=yes
9220 ;;
9221 esac
ec6a6fbe
AK
9222 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9223$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9224fi
9225ac_cv_func_vfork_works=$ac_cv_func_vfork
9226if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9227 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9228$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9229if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9230 $as_echo_n "(cached) " >&6
ad6254c5
AK
9231else
9232 if test "$cross_compiling" = yes; then
9233 ac_cv_func_vfork_works=cross
9234else
9235 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9236/* confdefs.h. */
9237_ACEOF
9238cat confdefs.h >>conftest.$ac_ext
9239cat >>conftest.$ac_ext <<_ACEOF
9240/* end confdefs.h. */
9241/* Thanks to Paul Eggert for this test. */
7a197a62 9242$ac_includes_default
ad6254c5 9243#include <sys/wait.h>
25fbec5b 9244#ifdef HAVE_VFORK_H
ad6254c5
AK
9245# include <vfork.h>
9246#endif
9247/* On some sparc systems, changes by the child to local and incoming
9248 argument registers are propagated back to the parent. The compiler
9249 is told about this with #include <vfork.h>, but some compilers
9250 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9251 static variable whose address is put into a register that is
9252 clobbered by the vfork. */
9253static void
9254#ifdef __cplusplus
9255sparc_address_test (int arg)
9256# else
9257sparc_address_test (arg) int arg;
9258#endif
9259{
9260 static pid_t child;
9261 if (!child) {
9262 child = vfork ();
9263 if (child < 0) {
9264 perror ("vfork");
9265 _exit(2);
9266 }
9267 if (!child) {
9268 arg = getpid();
9269 write(-1, "", 0);
9270 _exit (arg);
9271 }
9272 }
9273}
9274
9275int
9276main ()
9277{
9278 pid_t parent = getpid ();
9279 pid_t child;
9280
9281 sparc_address_test (0);
9282
9283 child = vfork ();
9284
9285 if (child == 0) {
9286 /* Here is another test for sparc vfork register problems. This
9287 test uses lots of local variables, at least as many local
9288 variables as main has allocated so far including compiler
9289 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9290 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9291 reuse the register of parent for one of the local variables,
9292 since it will think that parent can't possibly be used any more
9293 in this routine. Assigning to the local variable will thus
9294 munge parent in the parent process. */
9295 pid_t
9296 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9297 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9298 /* Convince the compiler that p..p7 are live; otherwise, it might
9299 use the same hardware register for all 8 local variables. */
9300 if (p != p1 || p != p2 || p != p3 || p != p4
9301 || p != p5 || p != p6 || p != p7)
9302 _exit(1);
9303
9304 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9305 from child file descriptors. If the child closes a descriptor
9306 before it execs or exits, this munges the parent's descriptor
9307 as well. Test for this by closing stdout in the child. */
9308 _exit(close(fileno(stdout)) != 0);
9309 } else {
9310 int status;
9311 struct stat st;
9312
9313 while (wait(&status) != child)
9314 ;
7a197a62 9315 return (
ad6254c5
AK
9316 /* Was there some problem with vforking? */
9317 child < 0
9318
9319 /* Did the child fail? (This shouldn't happen.) */
9320 || status
9321
9322 /* Did the vfork/compiler bug occur? */
9323 || parent != getpid()
9324
9325 /* Did the file descriptor bug occur? */
9326 || fstat(fileno(stdout), &st) != 0
9327 );
9328 }
9329}
9330_ACEOF
9331rm -f conftest$ac_exeext
7a197a62
AK
9332if { (ac_try="$ac_link"
9333case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336esac
ec6a6fbe
AK
9337eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9338$as_echo "$ac_try_echo") >&5
7a197a62 9339 (eval "$ac_link") 2>&5
ad6254c5 9340 ac_status=$?
ec6a6fbe 9341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9343 { (case "(($ac_try" in
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9346esac
ec6a6fbe
AK
9347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9348$as_echo "$ac_try_echo") >&5
7a197a62 9349 (eval "$ac_try") 2>&5
ad6254c5 9350 ac_status=$?
ec6a6fbe 9351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9352 (exit $ac_status); }; }; then
9353 ac_cv_func_vfork_works=yes
9354else
ec6a6fbe
AK
9355 $as_echo "$as_me: program exited with status $ac_status" >&5
9356$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9357sed 's/^/| /' conftest.$ac_ext >&5
9358
9359( exit $ac_status )
9360ac_cv_func_vfork_works=no
9361fi
ec6a6fbe 9362rm -rf conftest.dSYM
7a197a62 9363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9364fi
7a197a62
AK
9365
9366
ad6254c5 9367fi
ec6a6fbe
AK
9368{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9369$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9370
9371fi;
9372if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9373 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9374 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9375$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9376fi
9377
9378if test "x$ac_cv_func_vfork_works" = xyes; then
9379
9380cat >>confdefs.h <<\_ACEOF
9381#define HAVE_WORKING_VFORK 1
9382_ACEOF
9383
9384else
9385
9386cat >>confdefs.h <<\_ACEOF
9387#define vfork fork
9388_ACEOF
9389
9390fi
9391if test "x$ac_cv_func_fork_works" = xyes; then
9392
9393cat >>confdefs.h <<\_ACEOF
9394#define HAVE_WORKING_FORK 1
9395_ACEOF
9396
9397fi
9398
ec6a6fbe
AK
9399{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9400$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9401if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9402 $as_echo_n "(cached) " >&6
ad6254c5
AK
9403else
9404 rm -f conftest.sym conftest.file
9405echo >conftest.file
9406if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9407 if test "$cross_compiling" = yes; then
9408 ac_cv_func_lstat_dereferences_slashed_symlink=no
9409else
9410 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9411/* confdefs.h. */
9412_ACEOF
9413cat confdefs.h >>conftest.$ac_ext
9414cat >>conftest.$ac_ext <<_ACEOF
9415/* end confdefs.h. */
9416$ac_includes_default
9417int
9418main ()
9419{
9420struct stat sbuf;
9421 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9422 That is better in the sense that it means we will not
9423 have to compile and use the lstat wrapper. */
7a197a62 9424 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9425 ;
9426 return 0;
9427}
9428_ACEOF
9429rm -f conftest$ac_exeext
7a197a62
AK
9430if { (ac_try="$ac_link"
9431case "(($ac_try" in
9432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9433 *) ac_try_echo=$ac_try;;
9434esac
ec6a6fbe
AK
9435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9436$as_echo "$ac_try_echo") >&5
7a197a62 9437 (eval "$ac_link") 2>&5
ad6254c5 9438 ac_status=$?
ec6a6fbe 9439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9441 { (case "(($ac_try" in
9442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9444esac
ec6a6fbe
AK
9445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9446$as_echo "$ac_try_echo") >&5
7a197a62 9447 (eval "$ac_try") 2>&5
ad6254c5 9448 ac_status=$?
ec6a6fbe 9449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9450 (exit $ac_status); }; }; then
9451 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9452else
ec6a6fbe
AK
9453 $as_echo "$as_me: program exited with status $ac_status" >&5
9454$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9455sed 's/^/| /' conftest.$ac_ext >&5
9456
9457( exit $ac_status )
9458ac_cv_func_lstat_dereferences_slashed_symlink=no
9459fi
ec6a6fbe 9460rm -rf conftest.dSYM
7a197a62 9461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9462fi
7a197a62
AK
9463
9464
ad6254c5
AK
9465else
9466 # If the `ln -s' command failed, then we probably don't even
9467 # have an lstat function.
9468 ac_cv_func_lstat_dereferences_slashed_symlink=no
9469fi
9470rm -f conftest.sym conftest.file
9471
9472fi
ec6a6fbe
AK
9473{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9474$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9475
9476test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9477
9478cat >>confdefs.h <<_ACEOF
9479#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9480_ACEOF
9481
9482
9483if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9484 case " $LIBOBJS " in
8a2fc586 9485 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9486 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9487 ;;
8a2fc586
AK
9488esac
9489
ad6254c5
AK
9490fi
9491
ec6a6fbe
AK
9492{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9493$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9494if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9495 $as_echo_n "(cached) " >&6
ad6254c5
AK
9496else
9497 if test "$cross_compiling" = yes; then
9498 ac_cv_func_lstat_empty_string_bug=yes
9499else
9500 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9501/* confdefs.h. */
9502_ACEOF
9503cat confdefs.h >>conftest.$ac_ext
9504cat >>conftest.$ac_ext <<_ACEOF
9505/* end confdefs.h. */
9506$ac_includes_default
9507int
9508main ()
9509{
9510struct stat sbuf;
7a197a62 9511 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9512 ;
9513 return 0;
9514}
9515_ACEOF
9516rm -f conftest$ac_exeext
7a197a62
AK
9517if { (ac_try="$ac_link"
9518case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521esac
ec6a6fbe
AK
9522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9523$as_echo "$ac_try_echo") >&5
7a197a62 9524 (eval "$ac_link") 2>&5
ad6254c5 9525 ac_status=$?
ec6a6fbe 9526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9528 { (case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531esac
ec6a6fbe
AK
9532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533$as_echo "$ac_try_echo") >&5
7a197a62 9534 (eval "$ac_try") 2>&5
ad6254c5 9535 ac_status=$?
ec6a6fbe 9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9537 (exit $ac_status); }; }; then
7a197a62 9538 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9539else
ec6a6fbe
AK
9540 $as_echo "$as_me: program exited with status $ac_status" >&5
9541$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9542sed 's/^/| /' conftest.$ac_ext >&5
9543
9544( exit $ac_status )
7a197a62 9545ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9546fi
ec6a6fbe 9547rm -rf conftest.dSYM
7a197a62 9548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9549fi
7a197a62
AK
9550
9551
ad6254c5 9552fi
ec6a6fbe
AK
9553{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9554$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9555if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9556 case " $LIBOBJS " in
8a2fc586 9557 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9558 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9559 ;;
8a2fc586
AK
9560esac
9561
ad6254c5
AK
9562
9563cat >>confdefs.h <<_ACEOF
9564#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9565_ACEOF
9566
9567fi
9568
9569
9570for ac_header in stdlib.h
9571do
ec6a6fbe 9572as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9575$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9577 $as_echo_n "(cached) " >&6
ad6254c5 9578fi
ec6a6fbe
AK
9579ac_res=`eval 'as_val=${'$as_ac_Header'}
9580 $as_echo "$as_val"'`
9581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9582$as_echo "$ac_res" >&6; }
ad6254c5
AK
9583else
9584 # Is the header compilable?
ec6a6fbe
AK
9585{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9586$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9587cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9588/* confdefs.h. */
9589_ACEOF
9590cat confdefs.h >>conftest.$ac_ext
9591cat >>conftest.$ac_ext <<_ACEOF
9592/* end confdefs.h. */
9593$ac_includes_default
9594#include <$ac_header>
9595_ACEOF
9596rm -f conftest.$ac_objext
7a197a62
AK
9597if { (ac_try="$ac_compile"
9598case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601esac
ec6a6fbe
AK
9602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9603$as_echo "$ac_try_echo") >&5
7a197a62 9604 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9605 ac_status=$?
8a2fc586
AK
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
ec6a6fbe 9609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9614 ac_header_compiler=yes
9615else
ec6a6fbe 9616 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9617sed 's/^/| /' conftest.$ac_ext >&5
9618
7a197a62 9619 ac_header_compiler=no
ad6254c5 9620fi
7a197a62
AK
9621
9622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9623{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9624$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9625
9626# Is the header present?
ec6a6fbe
AK
9627{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9628$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9629cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9630/* confdefs.h. */
9631_ACEOF
9632cat confdefs.h >>conftest.$ac_ext
9633cat >>conftest.$ac_ext <<_ACEOF
9634/* end confdefs.h. */
9635#include <$ac_header>
9636_ACEOF
7a197a62
AK
9637if { (ac_try="$ac_cpp conftest.$ac_ext"
9638case "(($ac_try" in
9639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640 *) ac_try_echo=$ac_try;;
9641esac
ec6a6fbe
AK
9642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9643$as_echo "$ac_try_echo") >&5
7a197a62 9644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
ec6a6fbe 9649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9650 (exit $ac_status); } >/dev/null && {
9651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 }; then
ad6254c5
AK
9654 ac_header_preproc=yes
9655else
ec6a6fbe 9656 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9657sed 's/^/| /' conftest.$ac_ext >&5
9658
9659 ac_header_preproc=no
9660fi
7a197a62 9661
ad6254c5 9662rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9663{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9665
9666# So? What about this header?
8a2fc586
AK
9667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668 yes:no: )
ec6a6fbe
AK
9669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9673 ac_header_preproc=yes
ad6254c5 9674 ;;
8a2fc586 9675 no:yes:* )
ec6a6fbe
AK
9676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9679$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9683$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9688
ad6254c5
AK
9689 ;;
9690esac
ec6a6fbe
AK
9691{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9692$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9694 $as_echo_n "(cached) " >&6
ad6254c5 9695else
8a2fc586 9696 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9697fi
ec6a6fbe
AK
9698ac_res=`eval 'as_val=${'$as_ac_Header'}
9699 $as_echo "$as_val"'`
9700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9701$as_echo "$ac_res" >&6; }
ad6254c5
AK
9702
9703fi
ec6a6fbe
AK
9704as_val=`eval 'as_val=${'$as_ac_Header'}
9705 $as_echo "$as_val"'`
9706 if test "x$as_val" = x""yes; then
ad6254c5 9707 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9708#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9709_ACEOF
9710
9711fi
9712
9713done
9714
ec6a6fbe
AK
9715{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9716$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9717if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9718 $as_echo_n "(cached) " >&6
ad6254c5
AK
9719else
9720 if test "$cross_compiling" = yes; then
9721 ac_cv_func_malloc_0_nonnull=no
9722else
9723 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9724/* confdefs.h. */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h. */
25fbec5b 9729#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9730# include <stdlib.h>
9731#else
9732char *malloc ();
9733#endif
9734
9735int
9736main ()
9737{
7a197a62 9738return ! malloc (0);
ad6254c5
AK
9739 ;
9740 return 0;
9741}
9742_ACEOF
9743rm -f conftest$ac_exeext
7a197a62
AK
9744if { (ac_try="$ac_link"
9745case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
ec6a6fbe
AK
9749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750$as_echo "$ac_try_echo") >&5
7a197a62 9751 (eval "$ac_link") 2>&5
ad6254c5 9752 ac_status=$?
ec6a6fbe 9753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
ec6a6fbe
AK
9759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760$as_echo "$ac_try_echo") >&5
7a197a62 9761 (eval "$ac_try") 2>&5
ad6254c5 9762 ac_status=$?
ec6a6fbe 9763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9764 (exit $ac_status); }; }; then
9765 ac_cv_func_malloc_0_nonnull=yes
9766else
ec6a6fbe
AK
9767 $as_echo "$as_me: program exited with status $ac_status" >&5
9768$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9769sed 's/^/| /' conftest.$ac_ext >&5
9770
9771( exit $ac_status )
9772ac_cv_func_malloc_0_nonnull=no
9773fi
ec6a6fbe 9774rm -rf conftest.dSYM
7a197a62 9775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9776fi
7a197a62
AK
9777
9778
ad6254c5 9779fi
ec6a6fbe
AK
9780{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9781$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9782if test $ac_cv_func_malloc_0_nonnull = yes; then
9783
9784cat >>confdefs.h <<\_ACEOF
9785#define HAVE_MALLOC 1
9786_ACEOF
9787
9788else
9789 cat >>confdefs.h <<\_ACEOF
9790#define HAVE_MALLOC 0
9791_ACEOF
9792
7a197a62 9793 case " $LIBOBJS " in
8a2fc586 9794 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9795 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9796 ;;
8a2fc586
AK
9797esac
9798
ad6254c5
AK
9799
9800cat >>confdefs.h <<\_ACEOF
9801#define malloc rpl_malloc
9802_ACEOF
9803
9804fi
9805
9806
9807
ec6a6fbe
AK
9808{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9809$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9810if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9811 $as_echo_n "(cached) " >&6
ad6254c5
AK
9812else
9813 if test "$cross_compiling" = yes; then
9814 ac_cv_func_memcmp_working=no
9815else
9816 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9817/* confdefs.h. */
9818_ACEOF
9819cat confdefs.h >>conftest.$ac_ext
9820cat >>conftest.$ac_ext <<_ACEOF
9821/* end confdefs.h. */
8a2fc586 9822$ac_includes_default
ad6254c5
AK
9823int
9824main ()
9825{
9826
9827 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9828 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9829 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9830 return 1;
ad6254c5
AK
9831
9832 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9833 or more and with at least one buffer not starting on a 4-byte boundary.
9834 William Lewis provided this test program. */
9835 {
9836 char foo[21];
9837 char bar[21];
9838 int i;
9839 for (i = 0; i < 4; i++)
9840 {
8a2fc586
AK
9841 char *a = foo + i;
9842 char *b = bar + i;
9843 strcpy (a, "--------01111111");
9844 strcpy (b, "--------10000000");
9845 if (memcmp (a, b, 16) >= 0)
7a197a62 9846 return 1;
ad6254c5 9847 }
7a197a62 9848 return 0;
ad6254c5
AK
9849 }
9850
9851 ;
9852 return 0;
9853}
9854_ACEOF
9855rm -f conftest$ac_exeext
7a197a62
AK
9856if { (ac_try="$ac_link"
9857case "(($ac_try" in
9858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859 *) ac_try_echo=$ac_try;;
9860esac
ec6a6fbe
AK
9861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862$as_echo "$ac_try_echo") >&5
7a197a62 9863 (eval "$ac_link") 2>&5
ad6254c5 9864 ac_status=$?
ec6a6fbe 9865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9867 { (case "(($ac_try" in
9868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869 *) ac_try_echo=$ac_try;;
9870esac
ec6a6fbe
AK
9871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9872$as_echo "$ac_try_echo") >&5
7a197a62 9873 (eval "$ac_try") 2>&5
ad6254c5 9874 ac_status=$?
ec6a6fbe 9875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9876 (exit $ac_status); }; }; then
9877 ac_cv_func_memcmp_working=yes
9878else
ec6a6fbe
AK
9879 $as_echo "$as_me: program exited with status $ac_status" >&5
9880$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
9883( exit $ac_status )
9884ac_cv_func_memcmp_working=no
9885fi
ec6a6fbe 9886rm -rf conftest.dSYM
7a197a62 9887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9888fi
7a197a62
AK
9889
9890
ad6254c5 9891fi
ec6a6fbe
AK
9892{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9893$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9894test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9895 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9896 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9897 ;;
8a2fc586
AK
9898esac
9899
ad6254c5
AK
9900
9901
9902
9903for ac_header in stdlib.h unistd.h
9904do
ec6a6fbe 9905as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9908$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9910 $as_echo_n "(cached) " >&6
ad6254c5 9911fi
ec6a6fbe
AK
9912ac_res=`eval 'as_val=${'$as_ac_Header'}
9913 $as_echo "$as_val"'`
9914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9915$as_echo "$ac_res" >&6; }
ad6254c5
AK
9916else
9917 # Is the header compilable?
ec6a6fbe
AK
9918{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9919$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9920cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9921/* confdefs.h. */
9922_ACEOF
9923cat confdefs.h >>conftest.$ac_ext
9924cat >>conftest.$ac_ext <<_ACEOF
9925/* end confdefs.h. */
9926$ac_includes_default
9927#include <$ac_header>
9928_ACEOF
9929rm -f conftest.$ac_objext
7a197a62
AK
9930if { (ac_try="$ac_compile"
9931case "(($ac_try" in
9932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9933 *) ac_try_echo=$ac_try;;
9934esac
ec6a6fbe
AK
9935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9936$as_echo "$ac_try_echo") >&5
7a197a62 9937 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9938 ac_status=$?
8a2fc586
AK
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
ec6a6fbe 9942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9947 ac_header_compiler=yes
9948else
ec6a6fbe 9949 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9950sed 's/^/| /' conftest.$ac_ext >&5
9951
7a197a62 9952 ac_header_compiler=no
ad6254c5 9953fi
7a197a62
AK
9954
9955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9956{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9957$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9958
9959# Is the header present?
ec6a6fbe
AK
9960{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9961$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9962cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
9968#include <$ac_header>
9969_ACEOF
7a197a62
AK
9970if { (ac_try="$ac_cpp conftest.$ac_ext"
9971case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
ec6a6fbe
AK
9975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9976$as_echo "$ac_try_echo") >&5
7a197a62 9977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
ec6a6fbe 9982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9983 (exit $ac_status); } >/dev/null && {
9984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9985 test ! -s conftest.err
9986 }; then
ad6254c5
AK
9987 ac_header_preproc=yes
9988else
ec6a6fbe 9989 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9990sed 's/^/| /' conftest.$ac_ext >&5
9991
9992 ac_header_preproc=no
9993fi
7a197a62 9994
ad6254c5 9995rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9996{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9997$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9998
9999# So? What about this header?
8a2fc586
AK
10000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10001 yes:no: )
ec6a6fbe
AK
10002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10003$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10005$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10006 ac_header_preproc=yes
ad6254c5 10007 ;;
8a2fc586 10008 no:yes:* )
ec6a6fbe
AK
10009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10010$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10012$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10014$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10016$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10018$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10020$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10021
ad6254c5
AK
10022 ;;
10023esac
ec6a6fbe
AK
10024{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10025$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10027 $as_echo_n "(cached) " >&6
ad6254c5 10028else
8a2fc586 10029 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10030fi
ec6a6fbe
AK
10031ac_res=`eval 'as_val=${'$as_ac_Header'}
10032 $as_echo "$as_val"'`
10033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10034$as_echo "$ac_res" >&6; }
ad6254c5
AK
10035
10036fi
ec6a6fbe
AK
10037as_val=`eval 'as_val=${'$as_ac_Header'}
10038 $as_echo "$as_val"'`
10039 if test "x$as_val" = x""yes; then
ad6254c5 10040 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10041#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10042_ACEOF
10043
10044fi
10045
10046done
10047
10048
10049for ac_func in getpagesize
10050do
ec6a6fbe
AK
10051as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10052{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10053$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10055 $as_echo_n "(cached) " >&6
ad6254c5
AK
10056else
10057 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10058/* confdefs.h. */
10059_ACEOF
10060cat confdefs.h >>conftest.$ac_ext
10061cat >>conftest.$ac_ext <<_ACEOF
10062/* end confdefs.h. */
8a2fc586
AK
10063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10065#define $ac_func innocuous_$ac_func
10066
ad6254c5
AK
10067/* System header to define __stub macros and hopefully few prototypes,
10068 which can conflict with char $ac_func (); below.
10069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10070 <limits.h> exists even on freestanding compilers. */
8a2fc586 10071
ad6254c5
AK
10072#ifdef __STDC__
10073# include <limits.h>
10074#else
10075# include <assert.h>
10076#endif
8a2fc586
AK
10077
10078#undef $ac_func
10079
7a197a62
AK
10080/* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10083#ifdef __cplusplus
10084extern "C"
ad6254c5 10085#endif
ad6254c5
AK
10086char $ac_func ();
10087/* The GNU C library defines this for functions which it implements
10088 to always fail with ENOSYS. Some functions are actually named
10089 something starting with __ and the normal name is an alias. */
7a197a62 10090#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10091choke me
ad6254c5
AK
10092#endif
10093
10094int
10095main ()
10096{
7a197a62 10097return $ac_func ();
ad6254c5
AK
10098 ;
10099 return 0;
10100}
10101_ACEOF
10102rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10103if { (ac_try="$ac_link"
10104case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107esac
ec6a6fbe
AK
10108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109$as_echo "$ac_try_echo") >&5
7a197a62 10110 (eval "$ac_link") 2>conftest.er1
ad6254c5 10111 ac_status=$?
8a2fc586
AK
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
ec6a6fbe 10115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
ec6a6fbe
AK
10119 } && test -s conftest$ac_exeext && {
10120 test "$cross_compiling" = yes ||
10121 $as_test_x conftest$ac_exeext
10122 }; then
ad6254c5
AK
10123 eval "$as_ac_var=yes"
10124else
ec6a6fbe 10125 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
7a197a62 10128 eval "$as_ac_var=no"
ad6254c5 10129fi
7a197a62 10130
ec6a6fbe 10131rm -rf conftest.dSYM
25fbec5b 10132rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10133 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10134fi
ec6a6fbe
AK
10135ac_res=`eval 'as_val=${'$as_ac_var'}
10136 $as_echo "$as_val"'`
10137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10138$as_echo "$ac_res" >&6; }
10139as_val=`eval 'as_val=${'$as_ac_var'}
10140 $as_echo "$as_val"'`
10141 if test "x$as_val" = x""yes; then
ad6254c5 10142 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10143#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10144_ACEOF
10145
10146fi
10147done
10148
ec6a6fbe
AK
10149{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10150$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10151if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10152 $as_echo_n "(cached) " >&6
ad6254c5
AK
10153else
10154 if test "$cross_compiling" = yes; then
10155 ac_cv_func_mmap_fixed_mapped=no
10156else
10157 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10158/* confdefs.h. */
10159_ACEOF
10160cat confdefs.h >>conftest.$ac_ext
10161cat >>conftest.$ac_ext <<_ACEOF
10162/* end confdefs.h. */
10163$ac_includes_default
10164/* malloc might have been renamed as rpl_malloc. */
10165#undef malloc
10166
10167/* Thanks to Mike Haertel and Jim Avera for this test.
10168 Here is a matrix of mmap possibilities:
10169 mmap private not fixed
10170 mmap private fixed at somewhere currently unmapped
10171 mmap private fixed at somewhere already mapped
10172 mmap shared not fixed
10173 mmap shared fixed at somewhere currently unmapped
10174 mmap shared fixed at somewhere already mapped
10175 For private mappings, we should verify that changes cannot be read()
10176 back from the file, nor mmap's back from the file at a different
10177 address. (There have been systems where private was not correctly
10178 implemented like the infamous i386 svr4.0, and systems where the
10179 VM page cache was not coherent with the file system buffer cache
10180 like early versions of FreeBSD and possibly contemporary NetBSD.)
10181 For shared mappings, we should conversely verify that changes get
10182 propagated back to all the places they're supposed to be.
10183
10184 Grep wants private fixed already mapped.
10185 The main things grep needs to know about mmap are:
10186 * does it exist and is it safe to write into the mmap'd area
10187 * how to use it (BSD variants) */
10188
10189#include <fcntl.h>
10190#include <sys/mman.h>
10191
25fbec5b 10192#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10193char *malloc ();
10194#endif
10195
10196/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10197#ifndef HAVE_GETPAGESIZE
ad6254c5 10198/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10199# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10200# define HAVE_SYS_PARAM_H 1
10201# endif
10202
10203# ifdef _SC_PAGESIZE
10204# define getpagesize() sysconf(_SC_PAGESIZE)
10205# else /* no _SC_PAGESIZE */
25fbec5b 10206# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10207# include <sys/param.h>
10208# ifdef EXEC_PAGESIZE
10209# define getpagesize() EXEC_PAGESIZE
10210# else /* no EXEC_PAGESIZE */
10211# ifdef NBPG
10212# define getpagesize() NBPG * CLSIZE
10213# ifndef CLSIZE
10214# define CLSIZE 1
10215# endif /* no CLSIZE */
10216# else /* no NBPG */
10217# ifdef NBPC
10218# define getpagesize() NBPC
10219# else /* no NBPC */
10220# ifdef PAGESIZE
10221# define getpagesize() PAGESIZE
10222# endif /* PAGESIZE */
10223# endif /* no NBPC */
10224# endif /* no NBPG */
10225# endif /* no EXEC_PAGESIZE */
10226# else /* no HAVE_SYS_PARAM_H */
10227# define getpagesize() 8192 /* punt totally */
10228# endif /* no HAVE_SYS_PARAM_H */
10229# endif /* no _SC_PAGESIZE */
10230
10231#endif /* no HAVE_GETPAGESIZE */
10232
10233int
10234main ()
10235{
10236 char *data, *data2, *data3;
10237 int i, pagesize;
10238 int fd;
10239
10240 pagesize = getpagesize ();
10241
10242 /* First, make a file with some known garbage in it. */
10243 data = (char *) malloc (pagesize);
10244 if (!data)
7a197a62 10245 return 1;
ad6254c5
AK
10246 for (i = 0; i < pagesize; ++i)
10247 *(data + i) = rand ();
10248 umask (0);
10249 fd = creat ("conftest.mmap", 0600);
10250 if (fd < 0)
7a197a62 10251 return 1;
ad6254c5 10252 if (write (fd, data, pagesize) != pagesize)
7a197a62 10253 return 1;
ad6254c5
AK
10254 close (fd);
10255
10256 /* Next, try to mmap the file at a fixed address which already has
10257 something else allocated at it. If we can, also make sure that
10258 we see the same garbage. */
10259 fd = open ("conftest.mmap", O_RDWR);
10260 if (fd < 0)
7a197a62 10261 return 1;
ad6254c5
AK
10262 data2 = (char *) malloc (2 * pagesize);
10263 if (!data2)
7a197a62
AK
10264 return 1;
10265 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10266 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10267 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10268 return 1;
ad6254c5
AK
10269 for (i = 0; i < pagesize; ++i)
10270 if (*(data + i) != *(data2 + i))
7a197a62 10271 return 1;
ad6254c5 10272
d911ec67
AK
10273 /* Finally, make sure that changes to the mapped area do not
10274 percolate back to the file as seen by read(). (This is a bug on
10275 some variants of i386 svr4.0.) */
10276 for (i = 0; i < pagesize; ++i)
10277 *(data2 + i) = *(data2 + i) + 1;
10278 data3 = (char *) malloc (pagesize);
10279 if (!data3)
10280 return 1;
10281 if (read (fd, data3, pagesize) != pagesize)
10282 return 1;
10283 for (i = 0; i < pagesize; ++i)
10284 if (*(data + i) != *(data3 + i))
10285 return 1;
10286 close (fd);
10287 return 0;
10288}
10289_ACEOF
10290rm -f conftest$ac_exeext
10291if { (ac_try="$ac_link"
10292case "(($ac_try" in
10293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10294 *) ac_try_echo=$ac_try;;
10295esac
10296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10297$as_echo "$ac_try_echo") >&5
10298 (eval "$ac_link") 2>&5
10299 ac_status=$?
10300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10302 { (case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
10306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307$as_echo "$ac_try_echo") >&5
10308 (eval "$ac_try") 2>&5
10309 ac_status=$?
10310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_cv_func_mmap_fixed_mapped=yes
10313else
10314 $as_echo "$as_me: program exited with status $ac_status" >&5
10315$as_echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318( exit $ac_status )
10319ac_cv_func_mmap_fixed_mapped=no
10320fi
10321rm -rf conftest.dSYM
10322rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10323fi
10324
10325
10326fi
10327{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10328$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10329if test $ac_cv_func_mmap_fixed_mapped = yes; then
10330
10331cat >>confdefs.h <<\_ACEOF
10332#define HAVE_MMAP 1
10333_ACEOF
10334
10335fi
10336rm -f conftest.mmap
10337
10338
10339for ac_header in stdlib.h
10340do
10341as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10343 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10344$as_echo_n "checking for $ac_header... " >&6; }
10345if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10346 $as_echo_n "(cached) " >&6
10347fi
10348ac_res=`eval 'as_val=${'$as_ac_Header'}
10349 $as_echo "$as_val"'`
10350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10351$as_echo "$ac_res" >&6; }
10352else
10353 # Is the header compilable?
10354{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10355$as_echo_n "checking $ac_header usability... " >&6; }
10356cat >conftest.$ac_ext <<_ACEOF
10357/* confdefs.h. */
10358_ACEOF
10359cat confdefs.h >>conftest.$ac_ext
10360cat >>conftest.$ac_ext <<_ACEOF
10361/* end confdefs.h. */
10362$ac_includes_default
10363#include <$ac_header>
10364_ACEOF
10365rm -f conftest.$ac_objext
10366if { (ac_try="$ac_compile"
10367case "(($ac_try" in
10368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10369 *) ac_try_echo=$ac_try;;
10370esac
10371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10372$as_echo "$ac_try_echo") >&5
10373 (eval "$ac_compile") 2>conftest.er1
10374 ac_status=$?
10375 grep -v '^ *+' conftest.er1 >conftest.err
10376 rm -f conftest.er1
10377 cat conftest.err >&5
10378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && {
10380 test -z "$ac_c_werror_flag" ||
10381 test ! -s conftest.err
10382 } && test -s conftest.$ac_objext; then
10383 ac_header_compiler=yes
10384else
10385 $as_echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388 ac_header_compiler=no
10389fi
10390
10391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10392{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10393$as_echo "$ac_header_compiler" >&6; }
10394
10395# Is the header present?
10396{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10397$as_echo_n "checking $ac_header presence... " >&6; }
10398cat >conftest.$ac_ext <<_ACEOF
10399/* confdefs.h. */
10400_ACEOF
10401cat confdefs.h >>conftest.$ac_ext
10402cat >>conftest.$ac_ext <<_ACEOF
10403/* end confdefs.h. */
10404#include <$ac_header>
10405_ACEOF
10406if { (ac_try="$ac_cpp conftest.$ac_ext"
10407case "(($ac_try" in
10408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409 *) ac_try_echo=$ac_try;;
10410esac
10411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412$as_echo "$ac_try_echo") >&5
10413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10414 ac_status=$?
10415 grep -v '^ *+' conftest.er1 >conftest.err
10416 rm -f conftest.er1
10417 cat conftest.err >&5
10418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); } >/dev/null && {
10420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10421 test ! -s conftest.err
10422 }; then
10423 ac_header_preproc=yes
10424else
10425 $as_echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
10428 ac_header_preproc=no
10429fi
10430
10431rm -f conftest.err conftest.$ac_ext
10432{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10433$as_echo "$ac_header_preproc" >&6; }
10434
10435# So? What about this header?
10436case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10437 yes:no: )
10438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10439$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10441$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10442 ac_header_preproc=yes
10443 ;;
10444 no:yes:* )
10445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10446$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10448$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10450$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10452$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10454$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10456$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10457
10458 ;;
10459esac
10460{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10461$as_echo_n "checking for $ac_header... " >&6; }
10462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10463 $as_echo_n "(cached) " >&6
10464else
10465 eval "$as_ac_Header=\$ac_header_preproc"
10466fi
10467ac_res=`eval 'as_val=${'$as_ac_Header'}
10468 $as_echo "$as_val"'`
10469 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10470$as_echo "$ac_res" >&6; }
10471
10472fi
10473as_val=`eval 'as_val=${'$as_ac_Header'}
10474 $as_echo "$as_val"'`
10475 if test "x$as_val" = x""yes; then
10476 cat >>confdefs.h <<_ACEOF
10477#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10478_ACEOF
10479
10480fi
10481
10482done
10483
10484{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10485$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10486if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10487 $as_echo_n "(cached) " >&6
10488else
10489 if test "$cross_compiling" = yes; then
10490 ac_cv_func_realloc_0_nonnull=no
10491else
10492 cat >conftest.$ac_ext <<_ACEOF
10493/* confdefs.h. */
10494_ACEOF
10495cat confdefs.h >>conftest.$ac_ext
10496cat >>conftest.$ac_ext <<_ACEOF
10497/* end confdefs.h. */
10498#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10499# include <stdlib.h>
10500#else
10501char *realloc ();
10502#endif
10503
10504int
10505main ()
10506{
10507return ! realloc (0, 0);
10508 ;
7a197a62 10509 return 0;
ad6254c5
AK
10510}
10511_ACEOF
10512rm -f conftest$ac_exeext
7a197a62
AK
10513if { (ac_try="$ac_link"
10514case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517esac
ec6a6fbe
AK
10518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10519$as_echo "$ac_try_echo") >&5
7a197a62 10520 (eval "$ac_link") 2>&5
ad6254c5 10521 ac_status=$?
ec6a6fbe 10522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
ec6a6fbe
AK
10528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10529$as_echo "$ac_try_echo") >&5
7a197a62 10530 (eval "$ac_try") 2>&5
ad6254c5 10531 ac_status=$?
ec6a6fbe 10532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10533 (exit $ac_status); }; }; then
d911ec67 10534 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10535else
ec6a6fbe
AK
10536 $as_echo "$as_me: program exited with status $ac_status" >&5
10537$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10538sed 's/^/| /' conftest.$ac_ext >&5
10539
10540( exit $ac_status )
d911ec67 10541ac_cv_func_realloc_0_nonnull=no
ad6254c5 10542fi
ec6a6fbe 10543rm -rf conftest.dSYM
7a197a62 10544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10545fi
7a197a62
AK
10546
10547
ad6254c5 10548fi
d911ec67
AK
10549{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10550$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10551if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10552
10553cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10554#define HAVE_REALLOC 1
10555_ACEOF
10556
10557else
10558 cat >>confdefs.h <<\_ACEOF
10559#define HAVE_REALLOC 0
10560_ACEOF
10561
10562 case " $LIBOBJS " in
10563 *" realloc.$ac_objext "* ) ;;
10564 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10565 ;;
10566esac
10567
10568
10569cat >>confdefs.h <<\_ACEOF
10570#define realloc rpl_realloc
ad6254c5
AK
10571_ACEOF
10572
10573fi
d911ec67
AK
10574
10575
ad6254c5 10576
ec6a6fbe
AK
10577{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10578$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10579if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10580 $as_echo_n "(cached) " >&6
ad6254c5
AK
10581else
10582 if test "$cross_compiling" = yes; then
10583 ac_cv_func_stat_empty_string_bug=yes
10584else
10585 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10586/* confdefs.h. */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h. */
10591$ac_includes_default
10592int
10593main ()
10594{
10595struct stat sbuf;
7a197a62 10596 return stat ("", &sbuf) == 0;
ad6254c5
AK
10597 ;
10598 return 0;
10599}
10600_ACEOF
10601rm -f conftest$ac_exeext
7a197a62
AK
10602if { (ac_try="$ac_link"
10603case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
ec6a6fbe
AK
10607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10608$as_echo "$ac_try_echo") >&5
7a197a62 10609 (eval "$ac_link") 2>&5
ad6254c5 10610 ac_status=$?
ec6a6fbe 10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10613 { (case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616esac
ec6a6fbe
AK
10617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618$as_echo "$ac_try_echo") >&5
7a197a62 10619 (eval "$ac_try") 2>&5
ad6254c5 10620 ac_status=$?
ec6a6fbe 10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10622 (exit $ac_status); }; }; then
7a197a62 10623 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10624else
ec6a6fbe
AK
10625 $as_echo "$as_me: program exited with status $ac_status" >&5
10626$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
10629( exit $ac_status )
7a197a62 10630ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10631fi
ec6a6fbe 10632rm -rf conftest.dSYM
7a197a62 10633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10634fi
7a197a62
AK
10635
10636
ad6254c5 10637fi
ec6a6fbe
AK
10638{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10639$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10640if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10641 case " $LIBOBJS " in
8a2fc586 10642 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10643 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10644 ;;
8a2fc586
AK
10645esac
10646
ad6254c5
AK
10647
10648cat >>confdefs.h <<_ACEOF
10649#define HAVE_STAT_EMPTY_STRING_BUG 1
10650_ACEOF
10651
10652fi
10653
ec6a6fbe
AK
10654{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10655$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10656if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10657 $as_echo_n "(cached) " >&6
ad6254c5
AK
10658else
10659 if test "$cross_compiling" = yes; then
10660 ac_cv_func_strtod=no
10661else
10662 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10663/* confdefs.h. */
10664_ACEOF
10665cat confdefs.h >>conftest.$ac_ext
10666cat >>conftest.$ac_ext <<_ACEOF
10667/* end confdefs.h. */
10668
7a197a62
AK
10669$ac_includes_default
10670#ifndef strtod
ad6254c5 10671double strtod ();
7a197a62 10672#endif
ad6254c5
AK
10673int
10674main()
10675{
10676 {
10677 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10678 char *string = " +69";
10679 char *term;
10680 double value;
10681 value = strtod (string, &term);
10682 if (value != 69 || term != (string + 4))
7a197a62 10683 return 1;
ad6254c5
AK
10684 }
10685
10686 {
10687 /* Under Solaris 2.4, strtod returns the wrong value for the
10688 terminating character under some conditions. */
10689 char *string = "NaN";
10690 char *term;
10691 strtod (string, &term);
10692 if (term != string && *(term - 1) == 0)
7a197a62 10693 return 1;
ad6254c5 10694 }
7a197a62 10695 return 0;
ad6254c5
AK
10696}
10697
10698_ACEOF
10699rm -f conftest$ac_exeext
7a197a62
AK
10700if { (ac_try="$ac_link"
10701case "(($ac_try" in
10702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10703 *) ac_try_echo=$ac_try;;
10704esac
ec6a6fbe
AK
10705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10706$as_echo "$ac_try_echo") >&5
7a197a62 10707 (eval "$ac_link") 2>&5
ad6254c5 10708 ac_status=$?
ec6a6fbe 10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10714esac
ec6a6fbe
AK
10715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10716$as_echo "$ac_try_echo") >&5
7a197a62 10717 (eval "$ac_try") 2>&5
ad6254c5 10718 ac_status=$?
ec6a6fbe 10719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10720 (exit $ac_status); }; }; then
10721 ac_cv_func_strtod=yes
10722else
ec6a6fbe
AK
10723 $as_echo "$as_me: program exited with status $ac_status" >&5
10724$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
10727( exit $ac_status )
10728ac_cv_func_strtod=no
10729fi
ec6a6fbe 10730rm -rf conftest.dSYM
7a197a62 10731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10732fi
7a197a62
AK
10733
10734
ad6254c5 10735fi
ec6a6fbe
AK
10736{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10737$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10738if test $ac_cv_func_strtod = no; then
7a197a62 10739 case " $LIBOBJS " in
8a2fc586 10740 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10741 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10742 ;;
8a2fc586
AK
10743esac
10744
ec6a6fbe
AK
10745{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10746$as_echo_n "checking for pow... " >&6; }
ad6254c5 10747if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10748 $as_echo_n "(cached) " >&6
ad6254c5
AK
10749else
10750 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10751/* confdefs.h. */
10752_ACEOF
10753cat confdefs.h >>conftest.$ac_ext
10754cat >>conftest.$ac_ext <<_ACEOF
10755/* end confdefs.h. */
8a2fc586
AK
10756/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10758#define pow innocuous_pow
10759
ad6254c5
AK
10760/* System header to define __stub macros and hopefully few prototypes,
10761 which can conflict with char pow (); below.
10762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10763 <limits.h> exists even on freestanding compilers. */
8a2fc586 10764
ad6254c5
AK
10765#ifdef __STDC__
10766# include <limits.h>
10767#else
10768# include <assert.h>
10769#endif
8a2fc586
AK
10770
10771#undef pow
10772
7a197a62
AK
10773/* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10776#ifdef __cplusplus
10777extern "C"
ad6254c5 10778#endif
ad6254c5
AK
10779char pow ();
10780/* The GNU C library defines this for functions which it implements
10781 to always fail with ENOSYS. Some functions are actually named
10782 something starting with __ and the normal name is an alias. */
7a197a62 10783#if defined __stub_pow || defined __stub___pow
ad6254c5 10784choke me
ad6254c5
AK
10785#endif
10786
10787int
10788main ()
10789{
7a197a62 10790return pow ();
ad6254c5
AK
10791 ;
10792 return 0;
10793}
10794_ACEOF
10795rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10796if { (ac_try="$ac_link"
10797case "(($ac_try" in
10798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10799 *) ac_try_echo=$ac_try;;
10800esac
ec6a6fbe
AK
10801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10802$as_echo "$ac_try_echo") >&5
7a197a62 10803 (eval "$ac_link") 2>conftest.er1
ad6254c5 10804 ac_status=$?
8a2fc586
AK
10805 grep -v '^ *+' conftest.er1 >conftest.err
10806 rm -f conftest.er1
10807 cat conftest.err >&5
ec6a6fbe 10808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10809 (exit $ac_status); } && {
10810 test -z "$ac_c_werror_flag" ||
10811 test ! -s conftest.err
ec6a6fbe
AK
10812 } && test -s conftest$ac_exeext && {
10813 test "$cross_compiling" = yes ||
10814 $as_test_x conftest$ac_exeext
10815 }; then
ad6254c5
AK
10816 ac_cv_func_pow=yes
10817else
ec6a6fbe 10818 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10819sed 's/^/| /' conftest.$ac_ext >&5
10820
7a197a62 10821 ac_cv_func_pow=no
ad6254c5 10822fi
7a197a62 10823
ec6a6fbe 10824rm -rf conftest.dSYM
25fbec5b 10825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10826 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10827fi
ec6a6fbe
AK
10828{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10829$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10830
10831if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10832 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10833$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10834if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10835 $as_echo_n "(cached) " >&6
ad6254c5
AK
10836else
10837 ac_check_lib_save_LIBS=$LIBS
10838LIBS="-lm $LIBS"
10839cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845
7a197a62
AK
10846/* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10849#ifdef __cplusplus
10850extern "C"
10851#endif
ad6254c5
AK
10852char pow ();
10853int
10854main ()
10855{
7a197a62 10856return pow ();
ad6254c5
AK
10857 ;
10858 return 0;
10859}
10860_ACEOF
10861rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10862if { (ac_try="$ac_link"
10863case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10866esac
ec6a6fbe
AK
10867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10868$as_echo "$ac_try_echo") >&5
7a197a62 10869 (eval "$ac_link") 2>conftest.er1
ad6254c5 10870 ac_status=$?
8a2fc586
AK
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
ec6a6fbe 10874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
ec6a6fbe
AK
10878 } && test -s conftest$ac_exeext && {
10879 test "$cross_compiling" = yes ||
10880 $as_test_x conftest$ac_exeext
10881 }; then
ad6254c5
AK
10882 ac_cv_lib_m_pow=yes
10883else
ec6a6fbe 10884 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10885sed 's/^/| /' conftest.$ac_ext >&5
10886
7a197a62 10887 ac_cv_lib_m_pow=no
ad6254c5 10888fi
7a197a62 10889
ec6a6fbe 10890rm -rf conftest.dSYM
25fbec5b 10891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10892 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10893LIBS=$ac_check_lib_save_LIBS
d0191583 10894fi
ec6a6fbe
AK
10895{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10896$as_echo "$ac_cv_lib_m_pow" >&6; }
10897if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10898 POW_LIB=-lm
10899else
ec6a6fbe
AK
10900 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10901$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10902fi
72b2cb61 10903
d0191583 10904fi
72b2cb61 10905
ad6254c5
AK
10906fi
10907
ad6254c5 10908
d0191583
JM
10909for ac_func in vprintf
10910do
ec6a6fbe
AK
10911as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10912{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10913$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10915 $as_echo_n "(cached) " >&6
ad6254c5 10916else
d0191583
JM
10917 cat >conftest.$ac_ext <<_ACEOF
10918/* confdefs.h. */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h. */
10923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10925#define $ac_func innocuous_$ac_func
7a197a62 10926
d0191583
JM
10927/* System header to define __stub macros and hopefully few prototypes,
10928 which can conflict with char $ac_func (); below.
10929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10930 <limits.h> exists even on freestanding compilers. */
ad6254c5 10931
d0191583
JM
10932#ifdef __STDC__
10933# include <limits.h>
10934#else
10935# include <assert.h>
10936#endif
ad6254c5 10937
d0191583 10938#undef $ac_func
72b2cb61 10939
d0191583
JM
10940/* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
10943#ifdef __cplusplus
10944extern "C"
10945#endif
10946char $ac_func ();
10947/* The GNU C library defines this for functions which it implements
10948 to always fail with ENOSYS. Some functions are actually named
10949 something starting with __ and the normal name is an alias. */
10950#if defined __stub_$ac_func || defined __stub___$ac_func
10951choke me
10952#endif
10953
10954int
10955main ()
10956{
10957return $ac_func ();
10958 ;
10959 return 0;
10960}
72b2cb61 10961_ACEOF
d0191583
JM
10962rm -f conftest.$ac_objext conftest$ac_exeext
10963if { (ac_try="$ac_link"
10964case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967esac
ec6a6fbe
AK
10968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10969$as_echo "$ac_try_echo") >&5
d0191583
JM
10970 (eval "$ac_link") 2>conftest.er1
10971 ac_status=$?
10972 grep -v '^ *+' conftest.er1 >conftest.err
10973 rm -f conftest.er1
10974 cat conftest.err >&5
ec6a6fbe 10975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10976 (exit $ac_status); } && {
10977 test -z "$ac_c_werror_flag" ||
10978 test ! -s conftest.err
ec6a6fbe
AK
10979 } && test -s conftest$ac_exeext && {
10980 test "$cross_compiling" = yes ||
10981 $as_test_x conftest$ac_exeext
10982 }; then
d0191583
JM
10983 eval "$as_ac_var=yes"
10984else
ec6a6fbe 10985 $as_echo "$as_me: failed program was:" >&5
d0191583 10986sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10987
d0191583 10988 eval "$as_ac_var=no"
ad6254c5
AK
10989fi
10990
ec6a6fbe 10991rm -rf conftest.dSYM
d0191583
JM
10992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10993 conftest$ac_exeext conftest.$ac_ext
7a197a62 10994fi
ec6a6fbe
AK
10995ac_res=`eval 'as_val=${'$as_ac_var'}
10996 $as_echo "$as_val"'`
10997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10998$as_echo "$ac_res" >&6; }
10999as_val=`eval 'as_val=${'$as_ac_var'}
11000 $as_echo "$as_val"'`
11001 if test "x$as_val" = x""yes; then
d0191583 11002 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 11004_ACEOF
7a197a62 11005
ec6a6fbe
AK
11006{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11007$as_echo_n "checking for _doprnt... " >&6; }
d0191583 11008if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 11009 $as_echo_n "(cached) " >&6
ad6254c5 11010else
d0191583
JM
11011 cat >conftest.$ac_ext <<_ACEOF
11012/* confdefs.h. */
11013_ACEOF
11014cat confdefs.h >>conftest.$ac_ext
11015cat >>conftest.$ac_ext <<_ACEOF
11016/* end confdefs.h. */
11017/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11019#define _doprnt innocuous__doprnt
7a197a62 11020
d0191583
JM
11021/* System header to define __stub macros and hopefully few prototypes,
11022 which can conflict with char _doprnt (); below.
11023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11024 <limits.h> exists even on freestanding compilers. */
ad6254c5 11025
d0191583
JM
11026#ifdef __STDC__
11027# include <limits.h>
11028#else
11029# include <assert.h>
11030#endif
72b2cb61 11031
d0191583
JM
11032#undef _doprnt
11033
11034/* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037#ifdef __cplusplus
11038extern "C"
11039#endif
11040char _doprnt ();
11041/* The GNU C library defines this for functions which it implements
11042 to always fail with ENOSYS. Some functions are actually named
11043 something starting with __ and the normal name is an alias. */
11044#if defined __stub__doprnt || defined __stub____doprnt
11045choke me
11046#endif
11047
11048int
11049main ()
11050{
11051return _doprnt ();
11052 ;
11053 return 0;
11054}
72b2cb61 11055_ACEOF
d0191583
JM
11056rm -f conftest.$ac_objext conftest$ac_exeext
11057if { (ac_try="$ac_link"
11058case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11061esac
ec6a6fbe
AK
11062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11063$as_echo "$ac_try_echo") >&5
d0191583
JM
11064 (eval "$ac_link") 2>conftest.er1
11065 ac_status=$?
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
ec6a6fbe 11069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11070 (exit $ac_status); } && {
11071 test -z "$ac_c_werror_flag" ||
11072 test ! -s conftest.err
ec6a6fbe
AK
11073 } && test -s conftest$ac_exeext && {
11074 test "$cross_compiling" = yes ||
11075 $as_test_x conftest$ac_exeext
11076 }; then
d0191583
JM
11077 ac_cv_func__doprnt=yes
11078else
ec6a6fbe 11079 $as_echo "$as_me: failed program was:" >&5
d0191583 11080sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11081
d0191583 11082 ac_cv_func__doprnt=no
ad6254c5
AK
11083fi
11084
ec6a6fbe 11085rm -rf conftest.dSYM
d0191583
JM
11086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext conftest.$ac_ext
7a197a62 11088fi
ec6a6fbe
AK
11089{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11090$as_echo "$ac_cv_func__doprnt" >&6; }
11091if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11092
d0191583
JM
11093cat >>confdefs.h <<\_ACEOF
11094#define HAVE_DOPRNT 1
11095_ACEOF
ad6254c5 11096
7a197a62
AK
11097fi
11098
d0191583
JM
11099fi
11100done
8b1a3214 11101
ad6254c5 11102
7a197a62 11103
9c961554 11104################################################################################
ec6a6fbe
AK
11105{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11106$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11107# Check whether --enable-static_link was given.
11108if test "${enable_static_link+set}" = set; then
11109 enableval=$enable_static_link; STATIC_LINK=$enableval
11110else
11111 STATIC_LINK=no
11112fi
11113
ec6a6fbe
AK
11114{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11115$as_echo "$STATIC_LINK" >&6; }
9c961554 11116
d0191583 11117################################################################################
ad6254c5 11118
ad6254c5
AK
11119
11120################################################################################
ec6a6fbe
AK
11121{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11122$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11123
11124# Check whether --with-user was given.
11125if test "${with_user+set}" = set; then
71082be4 11126 withval=$with_user; OWNER=$withval
7a197a62
AK
11127fi
11128
ec6a6fbe
AK
11129{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11130$as_echo "$OWNER" >&6; }
ad6254c5 11131
d0191583 11132if test x$OWNER != x; then
23b059e7 11133 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11134fi
11135
11136################################################################################
ec6a6fbe
AK
11137{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11138$as_echo_n "checking group owner... " >&6; }
ad6254c5 11139
d0191583
JM
11140# Check whether --with-group was given.
11141if test "${with_group+set}" = set; then
71082be4 11142 withval=$with_group; GROUP=$withval
7a197a62
AK
11143fi
11144
ec6a6fbe
AK
11145{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11146$as_echo "$GROUP" >&6; }
d0191583
JM
11147
11148if test x$GROUP != x; then
23b059e7 11149 INSTALL="$INSTALL -g $GROUP"
d0191583 11150fi
ad6254c5 11151
24bbc4d7 11152################################################################################
ec6a6fbe
AK
11153{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11154$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11155
11156
11157# Check whether --with-device-uid was given.
11158if test "${with_device_uid+set}" = set; then
71082be4 11159 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11160else
71082be4 11161 DM_DEVICE_UID=0
24bbc4d7
AK
11162fi
11163
ec6a6fbe
AK
11164{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11165$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11166
11167################################################################################
ec6a6fbe
AK
11168{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11169$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11170
11171
11172# Check whether --with-device-gid was given.
11173if test "${with_device_gid+set}" = set; then
71082be4 11174 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11175else
71082be4 11176 DM_DEVICE_GID=0
24bbc4d7
AK
11177fi
11178
ec6a6fbe
AK
11179{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11180$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11181
93bd259b 11182################################################################################
ec6a6fbe
AK
11183{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11184$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11185
11186
11187# Check whether --with-device-mode was given.
11188if test "${with_device_mode+set}" = set; then
71082be4 11189 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11190else
71082be4 11191 DM_DEVICE_MODE=0600
93bd259b
AK
11192fi
11193
ec6a6fbe
AK
11194{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11195$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11196
ad6254c5 11197################################################################################
ec6a6fbe
AK
11198{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11199$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11200# Check whether --enable-lvm1_fallback was given.
11201if test "${enable_lvm1_fallback+set}" = set; then
11202 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11203else
11204 LVM1_FALLBACK=no
7a197a62
AK
11205fi
11206
ec6a6fbe
AK
11207{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11208$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11209
d0191583 11210if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11211
11212cat >>confdefs.h <<\_ACEOF
d0191583 11213#define LVM1_FALLBACK 1
72b2cb61
AK
11214_ACEOF
11215
ad6254c5
AK
11216fi
11217
11218################################################################################
ec6a6fbe
AK
11219{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11220$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11221
11222# Check whether --with-lvm1 was given.
11223if test "${with_lvm1+set}" = set; then
71082be4 11224 withval=$with_lvm1; LVM1=$withval
d0191583 11225else
71082be4 11226 LVM1=internal
7a197a62
AK
11227fi
11228
ec6a6fbe
AK
11229{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11230$as_echo "$LVM1" >&6; }
ad6254c5 11231
d0191583 11232if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11233 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11234" >&5
ec6a6fbe 11235$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11236" >&2;}
11237 { (exit 1); exit 1; }; }
11238fi;
11239
11240if test x$LVM1 = xinternal; then
72b2cb61
AK
11241
11242cat >>confdefs.h <<\_ACEOF
d0191583 11243#define LVM1_INTERNAL 1
72b2cb61
AK
11244_ACEOF
11245
ad6254c5
AK
11246fi
11247
11248################################################################################
ec6a6fbe
AK
11249{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11250$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11251
11252# Check whether --with-pool was given.
11253if test "${with_pool+set}" = set; then
71082be4 11254 withval=$with_pool; POOL=$withval
ad6254c5 11255else
71082be4 11256 POOL=internal
7a197a62
AK
11257fi
11258
ec6a6fbe
AK
11259{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11260$as_echo "$POOL" >&6; }
ad6254c5 11261
d0191583 11262if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11263 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11264" >&5
ec6a6fbe 11265$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11266" >&2;}
11267 { (exit 1); exit 1; }; }
11268fi;
7a197a62 11269
d0191583
JM
11270if test x$POOL = xinternal; then
11271
11272cat >>confdefs.h <<\_ACEOF
11273#define POOL_INTERNAL 1
11274_ACEOF
11275
11276fi
ad6254c5 11277
06f62ad1 11278################################################################################
ec6a6fbe
AK
11279{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11280$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11281
11282# Check whether --with-cluster was given.
11283if test "${with_cluster+set}" = set; then
71082be4 11284 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11285fi
11286
ec6a6fbe
AK
11287{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11288$as_echo "$CLUSTER" >&6; }
06f62ad1 11289
d0191583 11290if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11291 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11292" >&5
ec6a6fbe 11293$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11294" >&2;}
11295 { (exit 1); exit 1; }; }
d0191583 11296fi;
06f62ad1 11297
d0191583 11298if test x$CLUSTER = xinternal; then
72b2cb61
AK
11299
11300cat >>confdefs.h <<\_ACEOF
d0191583 11301#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11302_ACEOF
11303
15d91f5a 11304fi
ad6254c5
AK
11305
11306################################################################################
ec6a6fbe
AK
11307{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11308$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11309
d0191583
JM
11310# Check whether --with-snapshots was given.
11311if test "${with_snapshots+set}" = set; then
71082be4 11312 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11313else
71082be4 11314 SNAPSHOTS=internal
ad6254c5
AK
11315fi
11316
ec6a6fbe
AK
11317{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11318$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11319
d0191583 11320if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11321 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11322" >&5
ec6a6fbe 11323$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11324" >&2;}
11325 { (exit 1); exit 1; }; }
11326fi;
11327
11328if test x$SNAPSHOTS = xinternal; then
11329
11330cat >>confdefs.h <<\_ACEOF
11331#define SNAPSHOT_INTERNAL 1
11332_ACEOF
ad6254c5 11333
ad6254c5 11334fi
7a197a62 11335
d0191583 11336################################################################################
ec6a6fbe
AK
11337{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11338$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11339
11340# Check whether --with-mirrors was given.
11341if test "${with_mirrors+set}" = set; then
71082be4 11342 withval=$with_mirrors; MIRRORS=$withval
d0191583 11343else
71082be4 11344 MIRRORS=internal
ad6254c5 11345fi
ad6254c5 11346
ec6a6fbe
AK
11347{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11348$as_echo "$MIRRORS" >&6; }
ad6254c5 11349
d0191583 11350if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11351 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11352" >&5
ec6a6fbe 11353$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11354" >&2;}
11355 { (exit 1); exit 1; }; }
11356fi;
ad6254c5 11357
d0191583 11358if test x$MIRRORS = xinternal; then
ad6254c5 11359
d0191583
JM
11360cat >>confdefs.h <<\_ACEOF
11361#define MIRRORED_INTERNAL 1
ad6254c5 11362_ACEOF
8a2fc586 11363
d0191583 11364fi
8a2fc586 11365
8fea97b7
ZK
11366################################################################################
11367{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11368$as_echo_n "checking whether to include replicators... " >&6; }
11369
11370# Check whether --with-replicators was given.
11371if test "${with_replicators+set}" = set; then
11372 withval=$with_replicators; REPLICATORS=$withval
11373else
71082be4 11374 REPLICATORS=none
8fea97b7
ZK
11375fi
11376
11377{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11378$as_echo "$REPLICATORS" >&6; }
11379
11380case "$REPLICATORS" in
11381 none|shared) ;;
11382 internal)
11383cat >>confdefs.h <<\_ACEOF
11384#define REPLICATOR_INTERNAL 1
11385_ACEOF
11386 ;;
11387 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11388$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11389 { (exit 1); exit 1; }; } ;;
11390esac
11391
d0191583 11392################################################################################
ec6a6fbe
AK
11393{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11394$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11395# Check whether --enable-readline was given.
11396if test "${enable_readline+set}" = set; then
11397 enableval=$enable_readline; READLINE=$enableval
11398else
06e459df 11399 READLINE=maybe
d0191583 11400fi
8a2fc586 11401
ec6a6fbe
AK
11402{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11403$as_echo "$READLINE" >&6; }
8a2fc586 11404
d0191583 11405################################################################################
ec6a6fbe
AK
11406{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11407$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11408# Check whether --enable-realtime was given.
11409if test "${enable_realtime+set}" = set; then
11410 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11411fi
ad6254c5 11412
ec6a6fbe
AK
11413{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11414$as_echo "$REALTIME" >&6; }
d0191583
JM
11415
11416################################################################################
90c80887 11417pkg_config_init() {
e2997b73
AK
11418
11419
11420if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11421 if test -n "$ac_tool_prefix"; then
11422 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11423set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11424{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11425$as_echo_n "checking for $ac_word... " >&6; }
11426if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11427 $as_echo_n "(cached) " >&6
11428else
11429 case $PKG_CONFIG in
11430 [\\/]* | ?:[\\/]*)
11431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11432 ;;
11433 *)
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $PATH
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2
11444 fi
11445done
11446done
11447IFS=$as_save_IFS
11448
11449 ;;
11450esac
11451fi
11452PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11453if test -n "$PKG_CONFIG"; then
11454 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11455$as_echo "$PKG_CONFIG" >&6; }
11456else
11457 { $as_echo "$as_me:$LINENO: result: no" >&5
11458$as_echo "no" >&6; }
11459fi
11460
11461
11462fi
11463if test -z "$ac_cv_path_PKG_CONFIG"; then
11464 ac_pt_PKG_CONFIG=$PKG_CONFIG
11465 # Extract the first word of "pkg-config", so it can be a program name with args.
11466set dummy pkg-config; ac_word=$2
11467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11468$as_echo_n "checking for $ac_word... " >&6; }
11469if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11470 $as_echo_n "(cached) " >&6
11471else
11472 case $ac_pt_PKG_CONFIG in
11473 [\\/]* | ?:[\\/]*)
11474 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11475 ;;
11476 *)
11477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11478for as_dir in $PATH
11479do
11480 IFS=$as_save_IFS
11481 test -z "$as_dir" && as_dir=.
11482 for ac_exec_ext in '' $ac_executable_extensions; do
11483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11484 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11486 break 2
11487 fi
11488done
11489done
11490IFS=$as_save_IFS
11491
11492 ;;
11493esac
11494fi
11495ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11496if test -n "$ac_pt_PKG_CONFIG"; then
11497 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11498$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11499else
11500 { $as_echo "$as_me:$LINENO: result: no" >&5
11501$as_echo "no" >&6; }
11502fi
11503
11504 if test "x$ac_pt_PKG_CONFIG" = x; then
11505 PKG_CONFIG=""
11506 else
11507 case $cross_compiling:$ac_tool_warned in
11508yes:)
11509{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11511ac_tool_warned=yes ;;
11512esac
11513 PKG_CONFIG=$ac_pt_PKG_CONFIG
11514 fi
11515else
11516 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11517fi
11518
11519fi
11520if test -n "$PKG_CONFIG"; then
11521 _pkg_min_version=0.9.0
11522 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11523$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11524 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11525 { $as_echo "$as_me:$LINENO: result: yes" >&5
11526$as_echo "yes" >&6; }
11527 else
11528 { $as_echo "$as_me:$LINENO: result: no" >&5
11529$as_echo "no" >&6; }
11530 PKG_CONFIG=""
11531 fi
8c4e8a18 11532
e2997b73
AK
11533fi
11534
11535pkg_failed=no
a946372e
AK
11536{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11537$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11538
a946372e
AK
11539if test -n "$PKGCONFIGINIT_CFLAGS"; then
11540 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11541 elif test -n "$PKG_CONFIG"; then
11542 if test -n "$PKG_CONFIG" && \
a946372e
AK
11543 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11544 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11545 ac_status=$?
11546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; then
a946372e 11548 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11549else
11550 pkg_failed=yes
11551fi
11552 else
11553 pkg_failed=untried
11554fi
a946372e
AK
11555if test -n "$PKGCONFIGINIT_LIBS"; then
11556 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11557 elif test -n "$PKG_CONFIG"; then
11558 if test -n "$PKG_CONFIG" && \
a946372e
AK
11559 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11560 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11561 ac_status=$?
11562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; then
a946372e 11564 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11565else
11566 pkg_failed=yes
11567fi
11568 else
11569 pkg_failed=untried
11570fi
11571
11572
11573
11574if test $pkg_failed = yes; then
11575
11576if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11577 _pkg_short_errors_supported=yes
11578else
11579 _pkg_short_errors_supported=no
11580fi
11581 if test $_pkg_short_errors_supported = yes; then
a946372e 11582 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11583 else
a946372e 11584 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11585 fi
11586 # Put the nasty error message in config.log where it belongs
a946372e 11587 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11588
8c4e8a18
FDN
11589 { $as_echo "$as_me:$LINENO: result: no" >&5
11590$as_echo "no" >&6; }
11591 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11592$as_echo "pkg-config initialized" >&6; }
e2997b73 11593elif test $pkg_failed = untried; then
a946372e
AK
11594 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11595$as_echo "pkg-config initialized" >&6; }
e2997b73 11596else
a946372e
AK
11597 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11598 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11599 { $as_echo "$as_me:$LINENO: result: yes" >&5
11600$as_echo "yes" >&6; }
8c4e8a18 11601 :
e2997b73 11602fi
90c80887
AK
11603 PKGCONFIG_INIT=1
11604}
11605
11606################################################################################
11607{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11608$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11609
11610# Check whether --with-clvmd was given.
11611if test "${with_clvmd+set}" = set; then
71082be4 11612 withval=$with_clvmd; CLVMD=$withval
90c80887 11613else
71082be4 11614 CLVMD=none
90c80887
AK
11615fi
11616
11617if test x$CLVMD = xyes; then
11618 CLVMD=all
11619fi
11620{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11621$as_echo "$CLVMD" >&6; }
11622
11623if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11624 CLUSTER=internal
11625fi
11626
11627if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11628 pkg_config_init
11629fi
11630
11631
11632if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11633 BUILDGULM=yes
11634fi
11635if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11636 BUILDCOROSYNC=yes
11637fi
11638if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11639 BUILDOPENAIS=yes
11640fi
11641if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11642 BUILDCMAN=yes
11643fi
11644
11645if test x$BUILDGULM = xyes; then
11646 if test x$BUILDCOROSYNC = xyes || \
11647 test x$BUILDOPENAIS = xyes; then
11648 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11649$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11650 { (exit 1); exit 1; }; }
11651 fi
a946372e 11652fi
e2997b73 11653
a946372e
AK
11654soft_bailout() {
11655 NOTFOUND=1
11656}
e2997b73 11657
a946372e
AK
11658hard_bailout() {
11659 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11660$as_echo "$as_me: error: bailing out" >&2;}
11661 { (exit 1); exit 1; }; }
11662}
11663
11664if test x$CLVMD = xall; then
11665 bailout=soft_bailout
11666 BUILDGULM=yes
11667 BUILDCMAN=yes
11668 BUILDCOROSYNC=yes
11669 BUILDOPENAIS=yes
e2997b73 11670else
a946372e 11671 bailout=hard_bailout
e2997b73 11672fi
a946372e
AK
11673
11674check_lib_no_libs() {
11675 lib_no_libs_arg1=$1
11676 shift
11677 lib_no_libs_arg2=$1
11678 shift
11679 lib_no_libs_args=$@
11680
11681as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11682{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11683$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11684if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11685 $as_echo_n "(cached) " >&6
11686else
11687 ac_check_lib_save_LIBS=$LIBS
11688LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11689cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695
11696/* Override any GCC internal prototype to avoid an error.
11697 Use char because int might match the return type of a GCC
11698 builtin and then its argument prototype would still apply. */
11699#ifdef __cplusplus
11700extern "C"
11701#endif
11702char $lib_no_libs_arg2 ();
11703int
11704main ()
11705{
11706return $lib_no_libs_arg2 ();
11707 ;
11708 return 0;
11709}
11710_ACEOF
11711rm -f conftest.$ac_objext conftest$ac_exeext
11712if { (ac_try="$ac_link"
11713case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11718$as_echo "$ac_try_echo") >&5
11719 (eval "$ac_link") 2>conftest.er1
e2997b73 11720 ac_status=$?
a946372e
AK
11721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
e2997b73 11724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11725 (exit $ac_status); } && {
11726 test -z "$ac_c_werror_flag" ||
11727 test ! -s conftest.err
11728 } && test -s conftest$ac_exeext && {
11729 test "$cross_compiling" = yes ||
11730 $as_test_x conftest$ac_exeext
11731 }; then
11732 eval "$as_ac_Lib=yes"
e2997b73 11733else
a946372e
AK
11734 $as_echo "$as_me: failed program was:" >&5
11735sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11736
a946372e
AK
11737 eval "$as_ac_Lib=no"
11738fi
e2997b73 11739
a946372e
AK
11740rm -rf conftest.dSYM
11741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11742 conftest$ac_exeext conftest.$ac_ext
11743LIBS=$ac_check_lib_save_LIBS
11744fi
11745ac_res=`eval 'as_val=${'$as_ac_Lib'}
11746 $as_echo "$as_val"'`
11747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11748$as_echo "$ac_res" >&6; }
11749as_val=`eval 'as_val=${'$as_ac_Lib'}
11750 $as_echo "$as_val"'`
11751 if test "x$as_val" = x""yes; then
11752 cat >>confdefs.h <<_ACEOF
11753#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11754_ACEOF
e2997b73 11755
a946372e 11756 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11757
e2997b73 11758else
a946372e 11759 $bailout
e2997b73 11760fi
e2997b73 11761
a946372e
AK
11762 LIBS=$ac_check_lib_save_LIBS
11763}
11764
11765if test x$BUILDGULM = xyes; then
e2997b73
AK
11766
11767pkg_failed=no
a946372e
AK
11768{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11769$as_echo_n "checking for CCS... " >&6; }
e2997b73 11770
a946372e
AK
11771if test -n "$CCS_CFLAGS"; then
11772 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11773 elif test -n "$PKG_CONFIG"; then
11774 if test -n "$PKG_CONFIG" && \
a946372e
AK
11775 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11776 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11777 ac_status=$?
11778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); }; then
a946372e 11780 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11781else
11782 pkg_failed=yes
11783fi
11784 else
11785 pkg_failed=untried
11786fi
a946372e
AK
11787if test -n "$CCS_LIBS"; then
11788 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11789 elif test -n "$PKG_CONFIG"; then
11790 if test -n "$PKG_CONFIG" && \
a946372e
AK
11791 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11792 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11793 ac_status=$?
11794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); }; then
a946372e 11796 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11797else
11798 pkg_failed=yes
11799fi
11800 else
11801 pkg_failed=untried
11802fi
11803
11804
11805
11806if test $pkg_failed = yes; then
11807
11808if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11809 _pkg_short_errors_supported=yes
11810else
11811 _pkg_short_errors_supported=no
11812fi
11813 if test $_pkg_short_errors_supported = yes; then
a946372e 11814 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11815 else
a946372e 11816 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11817 fi
11818 # Put the nasty error message in config.log where it belongs
a946372e 11819 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11820
8c4e8a18
FDN
11821 { $as_echo "$as_me:$LINENO: result: no" >&5
11822$as_echo "no" >&6; }
11823 NOTFOUND=0
e2997b73 11824
a946372e
AK
11825for ac_header in ccs.h
11826do
11827as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11829 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11830$as_echo_n "checking for $ac_header... " >&6; }
11831if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832 $as_echo_n "(cached) " >&6
d0191583 11833fi
a946372e
AK
11834ac_res=`eval 'as_val=${'$as_ac_Header'}
11835 $as_echo "$as_val"'`
11836 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11837$as_echo "$ac_res" >&6; }
fc54be10 11838else
a946372e
AK
11839 # Is the header compilable?
11840{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11841$as_echo_n "checking $ac_header usability... " >&6; }
11842cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
11848$ac_includes_default
11849#include <$ac_header>
11850_ACEOF
11851rm -f conftest.$ac_objext
11852if { (ac_try="$ac_compile"
11853case "(($ac_try" in
11854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855 *) ac_try_echo=$ac_try;;
11856esac
11857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11858$as_echo "$ac_try_echo") >&5
11859 (eval "$ac_compile") 2>conftest.er1
11860 ac_status=$?
11861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
11864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } && {
11866 test -z "$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11868 } && test -s conftest.$ac_objext; then
11869 ac_header_compiler=yes
11870else
11871 $as_echo "$as_me: failed program was:" >&5
11872sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11873
a946372e 11874 ac_header_compiler=no
d0191583
JM
11875fi
11876
a946372e
AK
11877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11879$as_echo "$ac_header_compiler" >&6; }
fddafd51 11880
a946372e
AK
11881# Is the header present?
11882{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11883$as_echo_n "checking $ac_header presence... " >&6; }
11884cat >conftest.$ac_ext <<_ACEOF
11885/* confdefs.h. */
11886_ACEOF
11887cat confdefs.h >>conftest.$ac_ext
11888cat >>conftest.$ac_ext <<_ACEOF
11889/* end confdefs.h. */
11890#include <$ac_header>
11891_ACEOF
11892if { (ac_try="$ac_cpp conftest.$ac_ext"
11893case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896esac
11897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11898$as_echo "$ac_try_echo") >&5
11899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11900 ac_status=$?
11901 grep -v '^ *+' conftest.er1 >conftest.err
11902 rm -f conftest.er1
11903 cat conftest.err >&5
11904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } >/dev/null && {
11906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11908 }; then
11909 ac_header_preproc=yes
11910else
11911 $as_echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_header_preproc=no
11915fi
11916
11917rm -f conftest.err conftest.$ac_ext
11918{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11919$as_echo "$ac_header_preproc" >&6; }
11920
11921# So? What about this header?
11922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11923 yes:no: )
11924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11925$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11927$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11928 ac_header_preproc=yes
11929 ;;
11930 no:yes:* )
11931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11932$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11934$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11936$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11938$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11939 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11942$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11943
11944 ;;
11945esac
11946{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11947$as_echo_n "checking for $ac_header... " >&6; }
11948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11949 $as_echo_n "(cached) " >&6
11950else
11951 eval "$as_ac_Header=\$ac_header_preproc"
11952fi
11953ac_res=`eval 'as_val=${'$as_ac_Header'}
11954 $as_echo "$as_val"'`
11955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11956$as_echo "$ac_res" >&6; }
11957
11958fi
11959as_val=`eval 'as_val=${'$as_ac_Header'}
11960 $as_echo "$as_val"'`
11961 if test "x$as_val" = x""yes; then
11962 cat >>confdefs.h <<_ACEOF
11963#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11964_ACEOF
11965
11966else
11967 $bailout
11968fi
11969
11970done
11971
11972 check_lib_no_libs ccs ccs_connect
11973 if test $NOTFOUND = 0; then
11974 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11975$as_echo "no pkg for libccs, using -lccs" >&6; }
11976 CCS_LIBS="-lccs"
11977 HAVE_CCS=yes
11978 fi
11979elif test $pkg_failed = untried; then
11980 NOTFOUND=0
11981
11982for ac_header in ccs.h
11983do
11984as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11987$as_echo_n "checking for $ac_header... " >&6; }
11988if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11989 $as_echo_n "(cached) " >&6
11990fi
11991ac_res=`eval 'as_val=${'$as_ac_Header'}
11992 $as_echo "$as_val"'`
11993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11994$as_echo "$ac_res" >&6; }
11995else
11996 # Is the header compilable?
11997{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11998$as_echo_n "checking $ac_header usability... " >&6; }
11999cat >conftest.$ac_ext <<_ACEOF
12000/* confdefs.h. */
12001_ACEOF
12002cat confdefs.h >>conftest.$ac_ext
12003cat >>conftest.$ac_ext <<_ACEOF
12004/* end confdefs.h. */
12005$ac_includes_default
12006#include <$ac_header>
12007_ACEOF
12008rm -f conftest.$ac_objext
12009if { (ac_try="$ac_compile"
12010case "(($ac_try" in
12011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12013esac
12014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12015$as_echo "$ac_try_echo") >&5
12016 (eval "$ac_compile") 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } && {
12023 test -z "$ac_c_werror_flag" ||
12024 test ! -s conftest.err
12025 } && test -s conftest.$ac_objext; then
12026 ac_header_compiler=yes
12027else
12028 $as_echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 ac_header_compiler=no
12032fi
12033
12034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12035{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12036$as_echo "$ac_header_compiler" >&6; }
12037
12038# Is the header present?
12039{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12040$as_echo_n "checking $ac_header presence... " >&6; }
12041cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047#include <$ac_header>
12048_ACEOF
12049if { (ac_try="$ac_cpp conftest.$ac_ext"
12050case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053esac
12054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12055$as_echo "$ac_try_echo") >&5
12056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12057 ac_status=$?
12058 grep -v '^ *+' conftest.er1 >conftest.err
12059 rm -f conftest.er1
12060 cat conftest.err >&5
12061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } >/dev/null && {
12063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12064 test ! -s conftest.err
12065 }; then
12066 ac_header_preproc=yes
12067else
12068 $as_echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ac_header_preproc=no
12072fi
12073
12074rm -f conftest.err conftest.$ac_ext
12075{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12076$as_echo "$ac_header_preproc" >&6; }
12077
12078# So? What about this header?
12079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12080 yes:no: )
12081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12082$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12084$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12085 ac_header_preproc=yes
12086 ;;
12087 no:yes:* )
12088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12089$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12091$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12093$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12095$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12097$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12099$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12100
12101 ;;
12102esac
12103{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12104$as_echo_n "checking for $ac_header... " >&6; }
12105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 $as_echo_n "(cached) " >&6
12107else
12108 eval "$as_ac_Header=\$ac_header_preproc"
12109fi
12110ac_res=`eval 'as_val=${'$as_ac_Header'}
12111 $as_echo "$as_val"'`
12112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12113$as_echo "$ac_res" >&6; }
12114
12115fi
12116as_val=`eval 'as_val=${'$as_ac_Header'}
12117 $as_echo "$as_val"'`
12118 if test "x$as_val" = x""yes; then
12119 cat >>confdefs.h <<_ACEOF
12120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12121_ACEOF
12122
12123else
12124 $bailout
12125fi
12126
12127done
12128
12129 check_lib_no_libs ccs ccs_connect
12130 if test $NOTFOUND = 0; then
12131 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12132$as_echo "no pkg for libccs, using -lccs" >&6; }
12133 CCS_LIBS="-lccs"
12134 HAVE_CCS=yes
12135 fi
12136else
12137 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12138 CCS_LIBS=$pkg_cv_CCS_LIBS
12139 { $as_echo "$as_me:$LINENO: result: yes" >&5
12140$as_echo "yes" >&6; }
12141 HAVE_CCS=yes
12142fi
12143
12144pkg_failed=no
12145{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12146$as_echo_n "checking for GULM... " >&6; }
12147
12148if test -n "$GULM_CFLAGS"; then
12149 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12150 elif test -n "$PKG_CONFIG"; then
12151 if test -n "$PKG_CONFIG" && \
12152 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12153 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12154 ac_status=$?
12155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; then
12157 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12158else
12159 pkg_failed=yes
12160fi
12161 else
12162 pkg_failed=untried
12163fi
12164if test -n "$GULM_LIBS"; then
12165 pkg_cv_GULM_LIBS="$GULM_LIBS"
12166 elif test -n "$PKG_CONFIG"; then
12167 if test -n "$PKG_CONFIG" && \
12168 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12169 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12170 ac_status=$?
12171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; then
12173 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12174else
12175 pkg_failed=yes
12176fi
12177 else
12178 pkg_failed=untried
12179fi
12180
12181
12182
12183if test $pkg_failed = yes; then
12184
12185if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12186 _pkg_short_errors_supported=yes
12187else
12188 _pkg_short_errors_supported=no
12189fi
12190 if test $_pkg_short_errors_supported = yes; then
12191 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12192 else
12193 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12194 fi
12195 # Put the nasty error message in config.log where it belongs
12196 echo "$GULM_PKG_ERRORS" >&5
12197
8c4e8a18
FDN
12198 { $as_echo "$as_me:$LINENO: result: no" >&5
12199$as_echo "no" >&6; }
12200 NOTFOUND=0
a946372e
AK
12201
12202for ac_header in libgulm.h
12203do
12204as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12207$as_echo_n "checking for $ac_header... " >&6; }
12208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12209 $as_echo_n "(cached) " >&6
12210fi
12211ac_res=`eval 'as_val=${'$as_ac_Header'}
12212 $as_echo "$as_val"'`
12213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12214$as_echo "$ac_res" >&6; }
12215else
12216 # Is the header compilable?
12217{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12218$as_echo_n "checking $ac_header usability... " >&6; }
12219cat >conftest.$ac_ext <<_ACEOF
12220/* confdefs.h. */
12221_ACEOF
12222cat confdefs.h >>conftest.$ac_ext
12223cat >>conftest.$ac_ext <<_ACEOF
12224/* end confdefs.h. */
12225$ac_includes_default
12226#include <$ac_header>
12227_ACEOF
12228rm -f conftest.$ac_objext
12229if { (ac_try="$ac_compile"
12230case "(($ac_try" in
12231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232 *) ac_try_echo=$ac_try;;
12233esac
12234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12235$as_echo "$ac_try_echo") >&5
12236 (eval "$ac_compile") 2>conftest.er1
12237 ac_status=$?
12238 grep -v '^ *+' conftest.er1 >conftest.err
12239 rm -f conftest.er1
12240 cat conftest.err >&5
12241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } && {
12243 test -z "$ac_c_werror_flag" ||
12244 test ! -s conftest.err
12245 } && test -s conftest.$ac_objext; then
12246 ac_header_compiler=yes
12247else
12248 $as_echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251 ac_header_compiler=no
12252fi
12253
12254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12256$as_echo "$ac_header_compiler" >&6; }
12257
12258# Is the header present?
12259{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12260$as_echo_n "checking $ac_header presence... " >&6; }
12261cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h. */
12263_ACEOF
12264cat confdefs.h >>conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
12266/* end confdefs.h. */
12267#include <$ac_header>
12268_ACEOF
12269if { (ac_try="$ac_cpp conftest.$ac_ext"
12270case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273esac
12274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12275$as_echo "$ac_try_echo") >&5
12276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } >/dev/null && {
12283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12284 test ! -s conftest.err
12285 }; then
12286 ac_header_preproc=yes
12287else
12288 $as_echo "$as_me: failed program was:" >&5
12289sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 ac_header_preproc=no
12292fi
12293
12294rm -f conftest.err conftest.$ac_ext
12295{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12296$as_echo "$ac_header_preproc" >&6; }
12297
12298# So? What about this header?
12299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12300 yes:no: )
12301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12302$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12304$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12305 ac_header_preproc=yes
12306 ;;
12307 no:yes:* )
12308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12309$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12311$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12313$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12315$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12317$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12319$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12320
12321 ;;
12322esac
12323{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12324$as_echo_n "checking for $ac_header... " >&6; }
12325if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12326 $as_echo_n "(cached) " >&6
12327else
12328 eval "$as_ac_Header=\$ac_header_preproc"
12329fi
12330ac_res=`eval 'as_val=${'$as_ac_Header'}
12331 $as_echo "$as_val"'`
12332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12333$as_echo "$ac_res" >&6; }
12334
12335fi
12336as_val=`eval 'as_val=${'$as_ac_Header'}
12337 $as_echo "$as_val"'`
12338 if test "x$as_val" = x""yes; then
12339 cat >>confdefs.h <<_ACEOF
12340#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12341_ACEOF
12342
12343else
12344 $bailout
12345fi
12346
12347done
12348
12349 check_lib_no_libs gulm lg_core_login
12350 if test $NOTFOUND = 0; then
12351 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12352$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12353 GULM_LIBS="-lgulm"
12354 HAVE_GULM=yes
12355 fi
12356elif test $pkg_failed = untried; then
12357 NOTFOUND=0
12358
12359for ac_header in libgulm.h
12360do
12361as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12364$as_echo_n "checking for $ac_header... " >&6; }
12365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 $as_echo_n "(cached) " >&6
12367fi
12368ac_res=`eval 'as_val=${'$as_ac_Header'}
12369 $as_echo "$as_val"'`
12370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12371$as_echo "$ac_res" >&6; }
12372else
12373 # Is the header compilable?
12374{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12375$as_echo_n "checking $ac_header usability... " >&6; }
12376cat >conftest.$ac_ext <<_ACEOF
12377/* confdefs.h. */
12378_ACEOF
12379cat confdefs.h >>conftest.$ac_ext
12380cat >>conftest.$ac_ext <<_ACEOF
12381/* end confdefs.h. */
12382$ac_includes_default
12383#include <$ac_header>
12384_ACEOF
12385rm -f conftest.$ac_objext
12386if { (ac_try="$ac_compile"
12387case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390esac
12391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12392$as_echo "$ac_try_echo") >&5
12393 (eval "$ac_compile") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest.$ac_objext; then
12403 ac_header_compiler=yes
12404else
12405 $as_echo "$as_me: failed program was:" >&5
12406sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 ac_header_compiler=no
12409fi
12410
12411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12413$as_echo "$ac_header_compiler" >&6; }
12414
12415# Is the header present?
12416{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12417$as_echo_n "checking $ac_header presence... " >&6; }
12418cat >conftest.$ac_ext <<_ACEOF
12419/* confdefs.h. */
12420_ACEOF
12421cat confdefs.h >>conftest.$ac_ext
12422cat >>conftest.$ac_ext <<_ACEOF
12423/* end confdefs.h. */
12424#include <$ac_header>
12425_ACEOF
12426if { (ac_try="$ac_cpp conftest.$ac_ext"
12427case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430esac
12431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12432$as_echo "$ac_try_echo") >&5
12433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } >/dev/null && {
12440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 }; then
12443 ac_header_preproc=yes
12444else
12445 $as_echo "$as_me: failed program was:" >&5
12446sed 's/^/| /' conftest.$ac_ext >&5
12447
12448 ac_header_preproc=no
12449fi
12450
12451rm -f conftest.err conftest.$ac_ext
12452{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12453$as_echo "$ac_header_preproc" >&6; }
12454
12455# So? What about this header?
12456case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12457 yes:no: )
12458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12459$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12461$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12462 ac_header_preproc=yes
12463 ;;
12464 no:yes:* )
12465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12466$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12468$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12470$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12472$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12474$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12476$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12477
12478 ;;
12479esac
12480{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12481$as_echo_n "checking for $ac_header... " >&6; }
12482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12483 $as_echo_n "(cached) " >&6
12484else
12485 eval "$as_ac_Header=\$ac_header_preproc"
12486fi
12487ac_res=`eval 'as_val=${'$as_ac_Header'}
12488 $as_echo "$as_val"'`
12489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12490$as_echo "$ac_res" >&6; }
12491
12492fi
12493as_val=`eval 'as_val=${'$as_ac_Header'}
12494 $as_echo "$as_val"'`
12495 if test "x$as_val" = x""yes; then
12496 cat >>confdefs.h <<_ACEOF
12497#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12498_ACEOF
12499
12500else
12501 $bailout
12502fi
12503
12504done
12505
12506 check_lib_no_libs gulm lg_core_login
12507 if test $NOTFOUND = 0; then
12508 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12509$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12510 GULM_LIBS="-lgulm"
12511 HAVE_GULM=yes
12512 fi
12513else
12514 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12515 GULM_LIBS=$pkg_cv_GULM_LIBS
12516 { $as_echo "$as_me:$LINENO: result: yes" >&5
12517$as_echo "yes" >&6; }
12518 HAVE_GULM=yes
12519fi
12520fi
12521
12522if test x$BUILDCMAN = xyes; then
12523
12524pkg_failed=no
12525{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12526$as_echo_n "checking for CMAN... " >&6; }
12527
12528if test -n "$CMAN_CFLAGS"; then
12529 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12530 elif test -n "$PKG_CONFIG"; then
12531 if test -n "$PKG_CONFIG" && \
12532 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12533 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12534 ac_status=$?
12535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; then
12537 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12538else
12539 pkg_failed=yes
12540fi
12541 else
12542 pkg_failed=untried
12543fi
12544if test -n "$CMAN_LIBS"; then
12545 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12546 elif test -n "$PKG_CONFIG"; then
12547 if test -n "$PKG_CONFIG" && \
12548 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12549 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12550 ac_status=$?
12551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; then
12553 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12554else
12555 pkg_failed=yes
12556fi
12557 else
12558 pkg_failed=untried
12559fi
12560
12561
12562
12563if test $pkg_failed = yes; then
12564
12565if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12566 _pkg_short_errors_supported=yes
12567else
12568 _pkg_short_errors_supported=no
12569fi
12570 if test $_pkg_short_errors_supported = yes; then
12571 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12572 else
12573 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12574 fi
12575 # Put the nasty error message in config.log where it belongs
12576 echo "$CMAN_PKG_ERRORS" >&5
12577
8c4e8a18
FDN
12578 { $as_echo "$as_me:$LINENO: result: no" >&5
12579$as_echo "no" >&6; }
12580 NOTFOUND=0
a946372e
AK
12581
12582for ac_header in libcman.h
12583do
12584as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12587$as_echo_n "checking for $ac_header... " >&6; }
12588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12589 $as_echo_n "(cached) " >&6
12590fi
12591ac_res=`eval 'as_val=${'$as_ac_Header'}
12592 $as_echo "$as_val"'`
12593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12594$as_echo "$ac_res" >&6; }
12595else
12596 # Is the header compilable?
12597{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12598$as_echo_n "checking $ac_header usability... " >&6; }
12599cat >conftest.$ac_ext <<_ACEOF
12600/* confdefs.h. */
12601_ACEOF
12602cat confdefs.h >>conftest.$ac_ext
12603cat >>conftest.$ac_ext <<_ACEOF
12604/* end confdefs.h. */
12605$ac_includes_default
12606#include <$ac_header>
12607_ACEOF
12608rm -f conftest.$ac_objext
12609if { (ac_try="$ac_compile"
12610case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613esac
12614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12615$as_echo "$ac_try_echo") >&5
12616 (eval "$ac_compile") 2>conftest.er1
12617 ac_status=$?
12618 grep -v '^ *+' conftest.er1 >conftest.err
12619 rm -f conftest.er1
12620 cat conftest.err >&5
12621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest.$ac_objext; then
12626 ac_header_compiler=yes
12627else
12628 $as_echo "$as_me: failed program was:" >&5
12629sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 ac_header_compiler=no
12632fi
12633
12634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12635{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12636$as_echo "$ac_header_compiler" >&6; }
12637
12638# Is the header present?
12639{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12640$as_echo_n "checking $ac_header presence... " >&6; }
12641cat >conftest.$ac_ext <<_ACEOF
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
12647#include <$ac_header>
12648_ACEOF
12649if { (ac_try="$ac_cpp conftest.$ac_ext"
12650case "(($ac_try" in
12651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652 *) ac_try_echo=$ac_try;;
12653esac
12654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12655$as_echo "$ac_try_echo") >&5
12656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12657 ac_status=$?
12658 grep -v '^ *+' conftest.er1 >conftest.err
12659 rm -f conftest.er1
12660 cat conftest.err >&5
12661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } >/dev/null && {
12663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12664 test ! -s conftest.err
12665 }; then
12666 ac_header_preproc=yes
12667else
12668 $as_echo "$as_me: failed program was:" >&5
12669sed 's/^/| /' conftest.$ac_ext >&5
12670
12671 ac_header_preproc=no
12672fi
12673
12674rm -f conftest.err conftest.$ac_ext
12675{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12676$as_echo "$ac_header_preproc" >&6; }
12677
12678# So? What about this header?
12679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12680 yes:no: )
12681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12682$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12684$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12685 ac_header_preproc=yes
12686 ;;
12687 no:yes:* )
12688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12689$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12691$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12693$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12695$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12697$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12699$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12700
12701 ;;
12702esac
12703{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12704$as_echo_n "checking for $ac_header... " >&6; }
12705if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12706 $as_echo_n "(cached) " >&6
12707else
12708 eval "$as_ac_Header=\$ac_header_preproc"
12709fi
12710ac_res=`eval 'as_val=${'$as_ac_Header'}
12711 $as_echo "$as_val"'`
12712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12713$as_echo "$ac_res" >&6; }
12714
12715fi
12716as_val=`eval 'as_val=${'$as_ac_Header'}
12717 $as_echo "$as_val"'`
12718 if test "x$as_val" = x""yes; then
12719 cat >>confdefs.h <<_ACEOF
12720#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12721_ACEOF
12722
12723else
12724 $bailout
12725fi
12726
12727done
12728
12729 check_lib_no_libs cman cman_init
12730 if test $NOTFOUND = 0; then
12731 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12732$as_echo "no pkg for libcman, using -lcman" >&6; }
12733 CMAN_LIBS="-lcman"
12734 HAVE_CMAN=yes
12735 fi
12736elif test $pkg_failed = untried; then
12737 NOTFOUND=0
12738
12739for ac_header in libcman.h
12740do
12741as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12744$as_echo_n "checking for $ac_header... " >&6; }
12745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12746 $as_echo_n "(cached) " >&6
12747fi
12748ac_res=`eval 'as_val=${'$as_ac_Header'}
12749 $as_echo "$as_val"'`
12750 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12751$as_echo "$ac_res" >&6; }
12752else
12753 # Is the header compilable?
12754{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12755$as_echo_n "checking $ac_header usability... " >&6; }
12756cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762$ac_includes_default
12763#include <$ac_header>
12764_ACEOF
12765rm -f conftest.$ac_objext
12766if { (ac_try="$ac_compile"
12767case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770esac
12771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12772$as_echo "$ac_try_echo") >&5
12773 (eval "$ac_compile") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest.$ac_objext; then
12783 ac_header_compiler=yes
12784else
12785 $as_echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788 ac_header_compiler=no
12789fi
12790
12791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12792{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12793$as_echo "$ac_header_compiler" >&6; }
12794
12795# Is the header present?
12796{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12797$as_echo_n "checking $ac_header presence... " >&6; }
12798cat >conftest.$ac_ext <<_ACEOF
12799/* confdefs.h. */
12800_ACEOF
12801cat confdefs.h >>conftest.$ac_ext
12802cat >>conftest.$ac_ext <<_ACEOF
12803/* end confdefs.h. */
12804#include <$ac_header>
12805_ACEOF
12806if { (ac_try="$ac_cpp conftest.$ac_ext"
12807case "(($ac_try" in
12808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12810esac
12811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12812$as_echo "$ac_try_echo") >&5
12813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } >/dev/null && {
12820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 }; then
12823 ac_header_preproc=yes
12824else
12825 $as_echo "$as_me: failed program was:" >&5
12826sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 ac_header_preproc=no
12829fi
12830
12831rm -f conftest.err conftest.$ac_ext
12832{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12833$as_echo "$ac_header_preproc" >&6; }
12834
12835# So? What about this header?
12836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12837 yes:no: )
12838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12839$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12841$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12842 ac_header_preproc=yes
12843 ;;
12844 no:yes:* )
12845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12846$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12848$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12850$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12852$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12854$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12856$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12857
12858 ;;
12859esac
12860{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12861$as_echo_n "checking for $ac_header... " >&6; }
12862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12863 $as_echo_n "(cached) " >&6
12864else
12865 eval "$as_ac_Header=\$ac_header_preproc"
12866fi
12867ac_res=`eval 'as_val=${'$as_ac_Header'}
12868 $as_echo "$as_val"'`
12869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12870$as_echo "$ac_res" >&6; }
12871
12872fi
12873as_val=`eval 'as_val=${'$as_ac_Header'}
12874 $as_echo "$as_val"'`
12875 if test "x$as_val" = x""yes; then
12876 cat >>confdefs.h <<_ACEOF
12877#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12878_ACEOF
12879
12880else
12881 $bailout
12882fi
12883
12884done
12885
12886 check_lib_no_libs cman cman_init
12887 if test $NOTFOUND = 0; then
12888 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12889$as_echo "no pkg for libcman, using -lcman" >&6; }
12890 CMAN_LIBS="-lcman"
12891 HAVE_CMAN=yes
12892 fi
12893else
12894 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12895 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12896 { $as_echo "$as_me:$LINENO: result: yes" >&5
12897$as_echo "yes" >&6; }
12898 HAVE_CMAN=yes
12899fi
12900 CHECKCONFDB=yes
12901 CHECKDLM=yes
12902fi
12903
12904if test x$BUILDCOROSYNC = xyes || \
12905 test x$BUILDOPENAIS = xyes; then
12906
12907pkg_failed=no
12908{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12909$as_echo_n "checking for COROSYNC... " >&6; }
12910
12911if test -n "$COROSYNC_CFLAGS"; then
12912 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12913 elif test -n "$PKG_CONFIG"; then
12914 if test -n "$PKG_CONFIG" && \
12915 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12916 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12917 ac_status=$?
12918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; then
12920 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12921else
12922 pkg_failed=yes
12923fi
12924 else
12925 pkg_failed=untried
12926fi
12927if test -n "$COROSYNC_LIBS"; then
12928 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12929 elif test -n "$PKG_CONFIG"; then
12930 if test -n "$PKG_CONFIG" && \
12931 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12932 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12933 ac_status=$?
12934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; then
12936 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12937else
12938 pkg_failed=yes
12939fi
12940 else
12941 pkg_failed=untried
12942fi
12943
12944
12945
12946if test $pkg_failed = yes; then
12947
12948if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12949 _pkg_short_errors_supported=yes
12950else
12951 _pkg_short_errors_supported=no
12952fi
12953 if test $_pkg_short_errors_supported = yes; then
12954 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12955 else
12956 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12957 fi
12958 # Put the nasty error message in config.log where it belongs
12959 echo "$COROSYNC_PKG_ERRORS" >&5
12960
8c4e8a18 12961 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12962$as_echo "no" >&6; }
8c4e8a18
FDN
12963 $bailout
12964elif test $pkg_failed = untried; then
a946372e
AK
12965 $bailout
12966else
12967 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12968 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12969 { $as_echo "$as_me:$LINENO: result: yes" >&5
12970$as_echo "yes" >&6; }
12971 HAVE_COROSYNC=yes
12972fi
12973 CHECKCONFDB=yes
12974fi
12975
12976if test x$BUILDCOROSYNC = xyes; then
12977
12978pkg_failed=no
12979{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12980$as_echo_n "checking for QUORUM... " >&6; }
12981
12982if test -n "$QUORUM_CFLAGS"; then
12983 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12984 elif test -n "$PKG_CONFIG"; then
12985 if test -n "$PKG_CONFIG" && \
12986 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12987 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12988 ac_status=$?
12989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; then
12991 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12992else
12993 pkg_failed=yes
12994fi
12995 else
12996 pkg_failed=untried
12997fi
12998if test -n "$QUORUM_LIBS"; then
12999 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
13000 elif test -n "$PKG_CONFIG"; then
13001 if test -n "$PKG_CONFIG" && \
13002 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13003 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13004 ac_status=$?
13005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; then
13007 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13008else
13009 pkg_failed=yes
13010fi
13011 else
13012 pkg_failed=untried
13013fi
13014
13015
13016
13017if test $pkg_failed = yes; then
13018
13019if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13020 _pkg_short_errors_supported=yes
13021else
13022 _pkg_short_errors_supported=no
13023fi
13024 if test $_pkg_short_errors_supported = yes; then
13025 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13026 else
13027 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13028 fi
13029 # Put the nasty error message in config.log where it belongs
13030 echo "$QUORUM_PKG_ERRORS" >&5
13031
8c4e8a18 13032 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13033$as_echo "no" >&6; }
8c4e8a18
FDN
13034 $bailout
13035elif test $pkg_failed = untried; then
a946372e
AK
13036 $bailout
13037else
13038 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13039 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13040 { $as_echo "$as_me:$LINENO: result: yes" >&5
13041$as_echo "yes" >&6; }
13042 HAVE_QUORUM=yes
13043fi
13044 CHECKCPG=yes
13045 CHECKDLM=yes
13046fi
13047
13048if test x$BUILDOPENAIS = xyes; then
13049
13050pkg_failed=no
13051{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13052$as_echo_n "checking for SALCK... " >&6; }
13053
13054if test -n "$SALCK_CFLAGS"; then
13055 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13056 elif test -n "$PKG_CONFIG"; then
13057 if test -n "$PKG_CONFIG" && \
13058 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13059 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13060 ac_status=$?
13061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; then
13063 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13064else
13065 pkg_failed=yes
13066fi
13067 else
13068 pkg_failed=untried
13069fi
13070if test -n "$SALCK_LIBS"; then
13071 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13072 elif test -n "$PKG_CONFIG"; then
13073 if test -n "$PKG_CONFIG" && \
13074 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13075 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13076 ac_status=$?
13077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); }; then
13079 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13080else
13081 pkg_failed=yes
13082fi
13083 else
13084 pkg_failed=untried
13085fi
13086
13087
13088
13089if test $pkg_failed = yes; then
13090
13091if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13092 _pkg_short_errors_supported=yes
13093else
13094 _pkg_short_errors_supported=no
13095fi
13096 if test $_pkg_short_errors_supported = yes; then
13097 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13098 else
13099 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13100 fi
13101 # Put the nasty error message in config.log where it belongs
13102 echo "$SALCK_PKG_ERRORS" >&5
13103
8c4e8a18 13104 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13105$as_echo "no" >&6; }
8c4e8a18
FDN
13106 $bailout
13107elif test $pkg_failed = untried; then
a946372e
AK
13108 $bailout
13109else
13110 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13111 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13112 { $as_echo "$as_me:$LINENO: result: yes" >&5
13113$as_echo "yes" >&6; }
13114 HAVE_SALCK=yes
13115fi
13116 CHECKCPG=yes
13117fi
13118
13119
13120
13121if test x$CHECKCONFDB = xyes; then
13122
13123pkg_failed=no
13124{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13125$as_echo_n "checking for CONFDB... " >&6; }
13126
13127if test -n "$CONFDB_CFLAGS"; then
13128 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13129 elif test -n "$PKG_CONFIG"; then
13130 if test -n "$PKG_CONFIG" && \
13131 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13132 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13133 ac_status=$?
13134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; then
13136 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13137else
13138 pkg_failed=yes
13139fi
13140 else
13141 pkg_failed=untried
13142fi
13143if test -n "$CONFDB_LIBS"; then
13144 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13145 elif test -n "$PKG_CONFIG"; then
13146 if test -n "$PKG_CONFIG" && \
13147 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13148 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13149 ac_status=$?
13150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); }; then
13152 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13153else
13154 pkg_failed=yes
13155fi
13156 else
13157 pkg_failed=untried
13158fi
13159
13160
13161
13162if test $pkg_failed = yes; then
13163
13164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13165 _pkg_short_errors_supported=yes
13166else
13167 _pkg_short_errors_supported=no
13168fi
13169 if test $_pkg_short_errors_supported = yes; then
13170 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13171 else
13172 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13173 fi
13174 # Put the nasty error message in config.log where it belongs
13175 echo "$CONFDB_PKG_ERRORS" >&5
13176
8c4e8a18 13177 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13178$as_echo "no" >&6; }
8c4e8a18
FDN
13179 HAVE_CONFDB=no
13180elif test $pkg_failed = untried; then
a946372e
AK
13181 HAVE_CONFDB=no
13182else
13183 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13184 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13185 { $as_echo "$as_me:$LINENO: result: yes" >&5
13186$as_echo "yes" >&6; }
13187 HAVE_CONFDB=yes
13188fi
13189
13190
13191for ac_header in corosync/confdb.h
13192do
13193as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13195 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13196$as_echo_n "checking for $ac_header... " >&6; }
13197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198 $as_echo_n "(cached) " >&6
13199fi
13200ac_res=`eval 'as_val=${'$as_ac_Header'}
13201 $as_echo "$as_val"'`
13202 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13203$as_echo "$ac_res" >&6; }
13204else
13205 # Is the header compilable?
13206{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13207$as_echo_n "checking $ac_header usability... " >&6; }
13208cat >conftest.$ac_ext <<_ACEOF
13209/* confdefs.h. */
13210_ACEOF
13211cat confdefs.h >>conftest.$ac_ext
13212cat >>conftest.$ac_ext <<_ACEOF
13213/* end confdefs.h. */
13214$ac_includes_default
13215#include <$ac_header>
13216_ACEOF
13217rm -f conftest.$ac_objext
13218if { (ac_try="$ac_compile"
13219case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13222esac
13223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13224$as_echo "$ac_try_echo") >&5
13225 (eval "$ac_compile") 2>conftest.er1
13226 ac_status=$?
13227 grep -v '^ *+' conftest.er1 >conftest.err
13228 rm -f conftest.er1
13229 cat conftest.err >&5
13230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); } && {
13232 test -z "$ac_c_werror_flag" ||
13233 test ! -s conftest.err
13234 } && test -s conftest.$ac_objext; then
13235 ac_header_compiler=yes
13236else
13237 $as_echo "$as_me: failed program was:" >&5
13238sed 's/^/| /' conftest.$ac_ext >&5
13239
13240 ac_header_compiler=no
13241fi
13242
13243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13245$as_echo "$ac_header_compiler" >&6; }
13246
13247# Is the header present?
13248{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13249$as_echo_n "checking $ac_header presence... " >&6; }
13250cat >conftest.$ac_ext <<_ACEOF
13251/* confdefs.h. */
13252_ACEOF
13253cat confdefs.h >>conftest.$ac_ext
13254cat >>conftest.$ac_ext <<_ACEOF
13255/* end confdefs.h. */
13256#include <$ac_header>
13257_ACEOF
13258if { (ac_try="$ac_cpp conftest.$ac_ext"
13259case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262esac
13263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13264$as_echo "$ac_try_echo") >&5
13265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } >/dev/null && {
13272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 }; then
13275 ac_header_preproc=yes
13276else
13277 $as_echo "$as_me: failed program was:" >&5
13278sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_header_preproc=no
13281fi
13282
13283rm -f conftest.err conftest.$ac_ext
13284{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13285$as_echo "$ac_header_preproc" >&6; }
13286
13287# So? What about this header?
13288case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13289 yes:no: )
13290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13291$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13293$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13294 ac_header_preproc=yes
13295 ;;
13296 no:yes:* )
13297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13298$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13300$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13302$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13304$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13306$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13308$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13309
13310 ;;
13311esac
13312{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13313$as_echo_n "checking for $ac_header... " >&6; }
13314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13315 $as_echo_n "(cached) " >&6
13316else
13317 eval "$as_ac_Header=\$ac_header_preproc"
13318fi
13319ac_res=`eval 'as_val=${'$as_ac_Header'}
13320 $as_echo "$as_val"'`
13321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13322$as_echo "$ac_res" >&6; }
13323
13324fi
13325as_val=`eval 'as_val=${'$as_ac_Header'}
13326 $as_echo "$as_val"'`
13327 if test "x$as_val" = x""yes; then
13328 cat >>confdefs.h <<_ACEOF
13329#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13330_ACEOF
13331 HAVE_CONFDB_H=yes
13332else
13333 HAVE_CONFDB_H=no
13334fi
13335
13336done
13337
13338
13339 if test x$HAVE_CONFDB != xyes && \
13340 test x$HAVE_CONFDB_H = xyes; then
13341 check_lib_no_libs confdb confdb_initialize
13342 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13343$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13344 CONFDB_LIBS="-lconfdb"
13345 HAVE_CONFDB=yes
13346 fi
13347
13348 if test x$BUILDCOROSYNC = xyes && \
13349 test x$HAVE_CONFDB != xyes &&
13350 test x$CLVMD != xall; then
13351 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13352$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13353 { (exit 1); exit 1; }; }
13354 fi
13355fi
13356
13357if test x$CHECKCPG = xyes; then
13358
13359pkg_failed=no
13360{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13361$as_echo_n "checking for CPG... " >&6; }
13362
13363if test -n "$CPG_CFLAGS"; then
13364 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13365 elif test -n "$PKG_CONFIG"; then
13366 if test -n "$PKG_CONFIG" && \
13367 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13368 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13369 ac_status=$?
13370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; then
13372 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13373else
13374 pkg_failed=yes
13375fi
13376 else
13377 pkg_failed=untried
13378fi
13379if test -n "$CPG_LIBS"; then
13380 pkg_cv_CPG_LIBS="$CPG_LIBS"
13381 elif test -n "$PKG_CONFIG"; then
13382 if test -n "$PKG_CONFIG" && \
13383 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13384 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13385 ac_status=$?
13386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); }; then
13388 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13389else
13390 pkg_failed=yes
13391fi
13392 else
13393 pkg_failed=untried
13394fi
13395
13396
13397
13398if test $pkg_failed = yes; then
13399
13400if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13401 _pkg_short_errors_supported=yes
13402else
13403 _pkg_short_errors_supported=no
13404fi
13405 if test $_pkg_short_errors_supported = yes; then
13406 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13407 else
13408 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13409 fi
13410 # Put the nasty error message in config.log where it belongs
13411 echo "$CPG_PKG_ERRORS" >&5
13412
8c4e8a18 13413 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13414$as_echo "no" >&6; }
8c4e8a18
FDN
13415 $bailout
13416elif test $pkg_failed = untried; then
a946372e
AK
13417 $bailout
13418else
13419 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13420 CPG_LIBS=$pkg_cv_CPG_LIBS
13421 { $as_echo "$as_me:$LINENO: result: yes" >&5
13422$as_echo "yes" >&6; }
13423 HAVE_CPG=yes
13424fi
13425fi
13426
13427if test x$CHECKDLM = xyes; then
13428
13429pkg_failed=no
13430{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13431$as_echo_n "checking for DLM... " >&6; }
13432
13433if test -n "$DLM_CFLAGS"; then
13434 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13435 elif test -n "$PKG_CONFIG"; then
13436 if test -n "$PKG_CONFIG" && \
13437 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13438 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13439 ac_status=$?
13440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; then
13442 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13443else
13444 pkg_failed=yes
13445fi
13446 else
13447 pkg_failed=untried
13448fi
13449if test -n "$DLM_LIBS"; then
13450 pkg_cv_DLM_LIBS="$DLM_LIBS"
13451 elif test -n "$PKG_CONFIG"; then
13452 if test -n "$PKG_CONFIG" && \
13453 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13454 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13455 ac_status=$?
13456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); }; then
13458 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13459else
13460 pkg_failed=yes
13461fi
13462 else
13463 pkg_failed=untried
13464fi
13465
13466
13467
13468if test $pkg_failed = yes; then
13469
13470if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13471 _pkg_short_errors_supported=yes
13472else
13473 _pkg_short_errors_supported=no
13474fi
13475 if test $_pkg_short_errors_supported = yes; then
13476 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13477 else
13478 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13479 fi
13480 # Put the nasty error message in config.log where it belongs
13481 echo "$DLM_PKG_ERRORS" >&5
13482
8c4e8a18
FDN
13483 { $as_echo "$as_me:$LINENO: result: no" >&5
13484$as_echo "no" >&6; }
13485 NOTFOUND=0
a946372e
AK
13486
13487for ac_header in libdlm.h
13488do
13489as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13492$as_echo_n "checking for $ac_header... " >&6; }
13493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13494 $as_echo_n "(cached) " >&6
13495fi
13496ac_res=`eval 'as_val=${'$as_ac_Header'}
13497 $as_echo "$as_val"'`
13498 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13499$as_echo "$ac_res" >&6; }
13500else
13501 # Is the header compilable?
13502{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13503$as_echo_n "checking $ac_header usability... " >&6; }
13504cat >conftest.$ac_ext <<_ACEOF
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
13510$ac_includes_default
13511#include <$ac_header>
13512_ACEOF
13513rm -f conftest.$ac_objext
13514if { (ac_try="$ac_compile"
13515case "(($ac_try" in
13516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517 *) ac_try_echo=$ac_try;;
13518esac
13519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13520$as_echo "$ac_try_echo") >&5
13521 (eval "$ac_compile") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } && {
13528 test -z "$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 } && test -s conftest.$ac_objext; then
13531 ac_header_compiler=yes
13532else
13533 $as_echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_header_compiler=no
13537fi
13538
13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541$as_echo "$ac_header_compiler" >&6; }
13542
13543# Is the header present?
13544{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13545$as_echo_n "checking $ac_header presence... " >&6; }
13546cat >conftest.$ac_ext <<_ACEOF
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552#include <$ac_header>
13553_ACEOF
13554if { (ac_try="$ac_cpp conftest.$ac_ext"
13555case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13558esac
13559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13560$as_echo "$ac_try_echo") >&5
13561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562 ac_status=$?
13563 grep -v '^ *+' conftest.er1 >conftest.err
13564 rm -f conftest.er1
13565 cat conftest.err >&5
13566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } >/dev/null && {
13568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13569 test ! -s conftest.err
13570 }; then
13571 ac_header_preproc=yes
13572else
13573 $as_echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 ac_header_preproc=no
13577fi
13578
13579rm -f conftest.err conftest.$ac_ext
13580{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13581$as_echo "$ac_header_preproc" >&6; }
13582
13583# So? What about this header?
13584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 yes:no: )
13586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13587$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13589$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13590 ac_header_preproc=yes
13591 ;;
13592 no:yes:* )
13593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13594$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13596$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13598$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13600$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13602$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13604$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13605
13606 ;;
13607esac
13608{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13609$as_echo_n "checking for $ac_header... " >&6; }
13610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13611 $as_echo_n "(cached) " >&6
13612else
13613 eval "$as_ac_Header=\$ac_header_preproc"
13614fi
13615ac_res=`eval 'as_val=${'$as_ac_Header'}
13616 $as_echo "$as_val"'`
13617 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13618$as_echo "$ac_res" >&6; }
13619
13620fi
13621as_val=`eval 'as_val=${'$as_ac_Header'}
13622 $as_echo "$as_val"'`
13623 if test "x$as_val" = x""yes; then
13624 cat >>confdefs.h <<_ACEOF
13625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13626_ACEOF
13627
13628else
13629 $bailout
13630fi
13631
13632done
13633
13634 check_lib_no_libs dlm dlm_lock -lpthread
13635 if test $NOTFOUND = 0; then
13636 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13637$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13638 DLM_LIBS="-ldlm -lpthread"
13639 HAVE_DLM=yes
13640 fi
13641elif test $pkg_failed = untried; then
13642 NOTFOUND=0
13643
13644for ac_header in libdlm.h
13645do
13646as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13649$as_echo_n "checking for $ac_header... " >&6; }
13650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13651 $as_echo_n "(cached) " >&6
13652fi
13653ac_res=`eval 'as_val=${'$as_ac_Header'}
13654 $as_echo "$as_val"'`
13655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13656$as_echo "$ac_res" >&6; }
13657else
13658 # Is the header compilable?
13659{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13660$as_echo_n "checking $ac_header usability... " >&6; }
13661cat >conftest.$ac_ext <<_ACEOF
13662/* confdefs.h. */
13663_ACEOF
13664cat confdefs.h >>conftest.$ac_ext
13665cat >>conftest.$ac_ext <<_ACEOF
13666/* end confdefs.h. */
13667$ac_includes_default
13668#include <$ac_header>
13669_ACEOF
13670rm -f conftest.$ac_objext
13671if { (ac_try="$ac_compile"
13672case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675esac
13676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13677$as_echo "$ac_try_echo") >&5
13678 (eval "$ac_compile") 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } && {
13685 test -z "$ac_c_werror_flag" ||
13686 test ! -s conftest.err
13687 } && test -s conftest.$ac_objext; then
13688 ac_header_compiler=yes
13689else
13690 $as_echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_header_compiler=no
13694fi
13695
13696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13698$as_echo "$ac_header_compiler" >&6; }
13699
13700# Is the header present?
13701{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13702$as_echo_n "checking $ac_header presence... " >&6; }
13703cat >conftest.$ac_ext <<_ACEOF
13704/* confdefs.h. */
13705_ACEOF
13706cat confdefs.h >>conftest.$ac_ext
13707cat >>conftest.$ac_ext <<_ACEOF
13708/* end confdefs.h. */
13709#include <$ac_header>
13710_ACEOF
13711if { (ac_try="$ac_cpp conftest.$ac_ext"
13712case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13717$as_echo "$ac_try_echo") >&5
13718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } >/dev/null && {
13725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13726 test ! -s conftest.err
13727 }; then
13728 ac_header_preproc=yes
13729else
13730 $as_echo "$as_me: failed program was:" >&5
13731sed 's/^/| /' conftest.$ac_ext >&5
13732
13733 ac_header_preproc=no
13734fi
13735
13736rm -f conftest.err conftest.$ac_ext
13737{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13738$as_echo "$ac_header_preproc" >&6; }
13739
13740# So? What about this header?
13741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13742 yes:no: )
13743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13744$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13746$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13747 ac_header_preproc=yes
13748 ;;
13749 no:yes:* )
13750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13751$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13753$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13755$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13757$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13759$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13761$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13762
13763 ;;
13764esac
13765{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13766$as_echo_n "checking for $ac_header... " >&6; }
13767if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13768 $as_echo_n "(cached) " >&6
13769else
13770 eval "$as_ac_Header=\$ac_header_preproc"
13771fi
13772ac_res=`eval 'as_val=${'$as_ac_Header'}
13773 $as_echo "$as_val"'`
13774 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13775$as_echo "$ac_res" >&6; }
13776
13777fi
13778as_val=`eval 'as_val=${'$as_ac_Header'}
13779 $as_echo "$as_val"'`
13780 if test "x$as_val" = x""yes; then
13781 cat >>confdefs.h <<_ACEOF
13782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13783_ACEOF
13784
13785else
13786 $bailout
13787fi
13788
13789done
13790
13791 check_lib_no_libs dlm dlm_lock -lpthread
13792 if test $NOTFOUND = 0; then
13793 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13794$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13795 DLM_LIBS="-ldlm -lpthread"
13796 HAVE_DLM=yes
13797 fi
13798else
13799 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13800 DLM_LIBS=$pkg_cv_DLM_LIBS
13801 { $as_echo "$as_me:$LINENO: result: yes" >&5
13802$as_echo "yes" >&6; }
13803 HAVE_DLM=yes
13804fi
13805fi
13806
13807if test x$CLVMD = xall; then
8c222979 13808 CLVMD=none
a946372e
AK
13809 if test x$HAVE_CCS = xyes && \
13810 test x$HAVE_GULM = xyes; then
8c222979
FDN
13811 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13812$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13813 CLVMD="$CLVMD,gulm"
a946372e
AK
13814 fi
13815 if test x$HAVE_CMAN = xyes && \
13816 test x$HAVE_DLM = xyes; then
8c222979
FDN
13817 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13818$as_echo "Enabling clvmd cman cluster manager" >&6; }
13819 CLVMD="$CLVMD,cman"
a946372e
AK
13820 fi
13821 if test x$HAVE_COROSYNC = xyes && \
13822 test x$HAVE_QUORUM = xyes && \
13823 test x$HAVE_CPG = xyes && \
13824 test x$HAVE_DLM = xyes && \
13825 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13826 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13827$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13828 CLVMD="$CLVMD,corosync"
a946372e
AK
13829 fi
13830 if test x$HAVE_COROSYNC = xyes && \
13831 test x$HAVE_CPG = xyes && \
13832 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13833 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13834$as_echo "Enabling clvmd openais cluster manager" >&6; }
13835 CLVMD="$CLVMD,openais"
13836 fi
13837 if test x$CLVMD = xnone; then
13838 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13839$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13840 fi
a946372e
AK
13841fi
13842
8c4e8a18
FDN
13843################################################################################
13844if test "x$CLVMD" != xnone; then
13845
13846# Check whether --with-clvmd-pidfile was given.
13847if test "${with_clvmd_pidfile+set}" = set; then
13848 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13849else
13850 CLVMD_PIDFILE="/var/run/clvmd.pid"
13851fi
13852
13853
13854cat >>confdefs.h <<_ACEOF
13855#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13856_ACEOF
13857
13858fi
13859
a946372e 13860################################################################################
66fd4529
AK
13861{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13862$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13863# Check whether --enable-cmirrord was given.
13864if test "${enable_cmirrord+set}" = set; then
13865 enableval=$enable_cmirrord; CMIRRORD=$enableval
13866else
13867 CMIRRORD=no
13868fi
13869
13870{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13871$as_echo "$CMIRRORD" >&6; }
13872
13873BUILD_CMIRRORD=$CMIRRORD
13874
13875################################################################################
66fd4529
AK
13876if test "x$BUILD_CMIRRORD" = xyes; then
13877
13878# Check whether --with-cmirrord-pidfile was given.
13879if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13880 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13881else
71082be4 13882 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13883fi
13884
71082be4
ZK
13885
13886cat >>confdefs.h <<_ACEOF
13887#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13888_ACEOF
13889
66fd4529 13890fi
a946372e 13891
66fd4529
AK
13892################################################################################
13893if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13894 if test x$PKGCONFIG_INIT != x1; then
13895 pkg_config_init
13896 fi
13897
13898pkg_failed=no
13899{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13900$as_echo_n "checking for SACKPT... " >&6; }
13901
13902if test -n "$SACKPT_CFLAGS"; then
13903 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13904 elif test -n "$PKG_CONFIG"; then
13905 if test -n "$PKG_CONFIG" && \
13906 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13907 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13908 ac_status=$?
13909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; then
13911 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13912else
13913 pkg_failed=yes
13914fi
13915 else
13916 pkg_failed=untried
13917fi
13918if test -n "$SACKPT_LIBS"; then
13919 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13920 elif test -n "$PKG_CONFIG"; then
13921 if test -n "$PKG_CONFIG" && \
13922 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13923 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13924 ac_status=$?
13925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; then
13927 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13928else
13929 pkg_failed=yes
13930fi
13931 else
13932 pkg_failed=untried
13933fi
13934
13935
13936
13937if test $pkg_failed = yes; then
13938
13939if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13940 _pkg_short_errors_supported=yes
13941else
13942 _pkg_short_errors_supported=no
13943fi
13944 if test $_pkg_short_errors_supported = yes; then
13945 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13946 else
13947 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13948 fi
13949 # Put the nasty error message in config.log where it belongs
13950 echo "$SACKPT_PKG_ERRORS" >&5
13951
13952 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13953
13954$SACKPT_PKG_ERRORS
13955
13956Consider adjusting the PKG_CONFIG_PATH environment variable if you
13957installed software in a non-standard prefix.
13958
13959Alternatively, you may set the environment variables SACKPT_CFLAGS
13960and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13961See the pkg-config man page for more details.
13962" >&5
90c80887
AK
13963$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13964
13965$SACKPT_PKG_ERRORS
13966
13967Consider adjusting the PKG_CONFIG_PATH environment variable if you
13968installed software in a non-standard prefix.
13969
13970Alternatively, you may set the environment variables SACKPT_CFLAGS
13971and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13972See the pkg-config man page for more details.
13973" >&2;}
90c80887
AK
13974 { (exit 1); exit 1; }; }
13975elif test $pkg_failed = untried; then
13976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13978{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13979is in your PATH or set the PKG_CONFIG environment variable to the full
13980path to pkg-config.
13981
13982Alternatively, you may set the environment variables SACKPT_CFLAGS
13983and SACKPT_LIBS to avoid the need to call pkg-config.
13984See the pkg-config man page for more details.
13985
13986To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13987See \`config.log' for more details." >&5
13988$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13989is in your PATH or set the PKG_CONFIG environment variable to the full
13990path to pkg-config.
13991
13992Alternatively, you may set the environment variables SACKPT_CFLAGS
13993and SACKPT_LIBS to avoid the need to call pkg-config.
13994See the pkg-config man page for more details.
13995
13996To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13997See \`config.log' for more details." >&2;}
13998 { (exit 1); exit 1; }; }; }
13999else
14000 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14001 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14002 { $as_echo "$as_me:$LINENO: result: yes" >&5
14003$as_echo "yes" >&6; }
8c4e8a18 14004 :
90c80887
AK
14005fi
14006 if test x$HAVE_CPG != xyes; then
a946372e
AK
14007
14008pkg_failed=no
14009{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
14010$as_echo_n "checking for CPG... " >&6; }
14011
14012if test -n "$CPG_CFLAGS"; then
14013 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14014 elif test -n "$PKG_CONFIG"; then
14015 if test -n "$PKG_CONFIG" && \
14016 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14017 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14018 ac_status=$?
14019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; then
14021 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14022else
14023 pkg_failed=yes
14024fi
14025 else
14026 pkg_failed=untried
14027fi
14028if test -n "$CPG_LIBS"; then
14029 pkg_cv_CPG_LIBS="$CPG_LIBS"
14030 elif test -n "$PKG_CONFIG"; then
14031 if test -n "$PKG_CONFIG" && \
14032 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14033 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14034 ac_status=$?
14035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; then
14037 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14038else
14039 pkg_failed=yes
14040fi
14041 else
14042 pkg_failed=untried
14043fi
14044
14045
14046
14047if test $pkg_failed = yes; then
14048
14049if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14050 _pkg_short_errors_supported=yes
14051else
14052 _pkg_short_errors_supported=no
14053fi
14054 if test $_pkg_short_errors_supported = yes; then
14055 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14056 else
14057 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14058 fi
14059 # Put the nasty error message in config.log where it belongs
14060 echo "$CPG_PKG_ERRORS" >&5
14061
90c80887
AK
14062 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14063
14064$CPG_PKG_ERRORS
14065
14066Consider adjusting the PKG_CONFIG_PATH environment variable if you
14067installed software in a non-standard prefix.
14068
14069Alternatively, you may set the environment variables CPG_CFLAGS
14070and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14071See the pkg-config man page for more details.
14072" >&5
90c80887
AK
14073$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14074
14075$CPG_PKG_ERRORS
14076
14077Consider adjusting the PKG_CONFIG_PATH environment variable if you
14078installed software in a non-standard prefix.
14079
14080Alternatively, you may set the environment variables CPG_CFLAGS
14081and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14082See the pkg-config man page for more details.
14083" >&2;}
90c80887 14084 { (exit 1); exit 1; }; }
a946372e 14085elif test $pkg_failed = untried; then
90c80887
AK
14086 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14087$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14088{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14089is in your PATH or set the PKG_CONFIG environment variable to the full
14090path to pkg-config.
14091
14092Alternatively, you may set the environment variables CPG_CFLAGS
14093and CPG_LIBS to avoid the need to call pkg-config.
14094See the pkg-config man page for more details.
14095
14096To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14097See \`config.log' for more details." >&5
14098$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14099is in your PATH or set the PKG_CONFIG environment variable to the full
14100path to pkg-config.
14101
14102Alternatively, you may set the environment variables CPG_CFLAGS
14103and CPG_LIBS to avoid the need to call pkg-config.
14104See the pkg-config man page for more details.
14105
14106To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14107See \`config.log' for more details." >&2;}
14108 { (exit 1); exit 1; }; }; }
a946372e
AK
14109else
14110 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14111 CPG_LIBS=$pkg_cv_CPG_LIBS
14112 { $as_echo "$as_me:$LINENO: result: yes" >&5
14113$as_echo "yes" >&6; }
8c4e8a18 14114 :
a946372e 14115fi
90c80887 14116 fi
a946372e
AK
14117fi
14118
14119################################################################################
14120{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14121$as_echo_n "checking whether to enable debugging... " >&6; }
14122# Check whether --enable-debug was given.
14123if test "${enable_debug+set}" = set; then
14124 enableval=$enable_debug; DEBUG=$enableval
14125else
14126 DEBUG=no
14127fi
14128
14129{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14130$as_echo "$DEBUG" >&6; }
14131
14132if test x$DEBUG = xyes; then
14133 COPTIMISE_FLAG=
14134else
14135 CSCOPE_CMD=
14136fi
14137
14138################################################################################
14139{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14140$as_echo_n "checking for C optimisation flag... " >&6; }
14141
14142# Check whether --with-optimisation was given.
14143if test "${with_optimisation+set}" = set; then
71082be4 14144 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14145fi
14146
14147{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14148$as_echo "$COPTIMISE_FLAG" >&6; }
14149
14150################################################################################
14151{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14152$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14153# Check whether --enable-profiling was given.
14154if test "${enable_profiling+set}" = set; then
5556819a 14155 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14156else
5556819a 14157 PROFILING=no
fddafd51
ZK
14158fi
14159
ec6a6fbe
AK
14160{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14161$as_echo "$PROFILING" >&6; }
5556819a
AK
14162
14163if test "x$PROFILING" = xyes; then
14164 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14165 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14166set dummy lcov; ac_word=$2
ec6a6fbe
AK
14167{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14168$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14169if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14170 $as_echo_n "(cached) " >&6
fddafd51
ZK
14171else
14172 case $LCOV in
14173 [\\/]* | ?:[\\/]*)
14174 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14175 ;;
14176 *)
14177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14178for as_dir in $PATH
14179do
14180 IFS=$as_save_IFS
14181 test -z "$as_dir" && as_dir=.
14182 for ac_exec_ext in '' $ac_executable_extensions; do
14183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14184 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14186 break 2
14187 fi
14188done
14189done
14190IFS=$as_save_IFS
14191
14192 ;;
14193esac
14194fi
14195LCOV=$ac_cv_path_LCOV
14196if test -n "$LCOV"; then
ec6a6fbe
AK
14197 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14198$as_echo "$LCOV" >&6; }
fddafd51 14199else
ec6a6fbe
AK
14200 { $as_echo "$as_me:$LINENO: result: no" >&5
14201$as_echo "no" >&6; }
fddafd51
ZK
14202fi
14203
14204
5556819a 14205 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14206set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14208$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14209if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14210 $as_echo_n "(cached) " >&6
fddafd51
ZK
14211else
14212 case $GENHTML in
14213 [\\/]* | ?:[\\/]*)
14214 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14215 ;;
14216 *)
14217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14218for as_dir in $PATH
14219do
14220 IFS=$as_save_IFS
14221 test -z "$as_dir" && as_dir=.
14222 for ac_exec_ext in '' $ac_executable_extensions; do
14223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14224 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14226 break 2
14227 fi
14228done
14229done
14230IFS=$as_save_IFS
14231
14232 ;;
14233esac
14234fi
14235GENHTML=$ac_cv_path_GENHTML
14236if test -n "$GENHTML"; then
ec6a6fbe
AK
14237 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14238$as_echo "$GENHTML" >&6; }
fddafd51 14239else
ec6a6fbe
AK
14240 { $as_echo "$as_me:$LINENO: result: no" >&5
14241$as_echo "no" >&6; }
fddafd51
ZK
14242fi
14243
14244
fd4728e1 14245 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14246 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14247$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14248 { (exit 1); exit 1; }; }
14249 fi
fd4728e1
ZK
14250 # Extract the first word of "genpng", so it can be a program name with args.
14251set dummy genpng; ac_word=$2
14252{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14253$as_echo_n "checking for $ac_word... " >&6; }
14254if test "${ac_cv_path_GENPNG+set}" = set; then
14255 $as_echo_n "(cached) " >&6
14256else
14257 case $GENPNG in
14258 [\\/]* | ?:[\\/]*)
14259 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14260 ;;
14261 *)
14262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14263for as_dir in $PATH
14264do
14265 IFS=$as_save_IFS
14266 test -z "$as_dir" && as_dir=.
14267 for ac_exec_ext in '' $ac_executable_extensions; do
14268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14269 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14271 break 2
14272 fi
14273done
14274done
14275IFS=$as_save_IFS
14276
14277 ;;
14278esac
14279fi
14280GENPNG=$ac_cv_path_GENPNG
14281if test -n "$GENPNG"; then
14282 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14283$as_echo "$GENPNG" >&6; }
14284else
14285 { $as_echo "$as_me:$LINENO: result: no" >&5
14286$as_echo "no" >&6; }
14287fi
14288
14289
14290 if test -n "$GENPNG"; then
14291 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14292$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14293 if $GENPNG --help > /dev/null 2>&1 ; then
14294 { $as_echo "$as_me:$LINENO: result: ok" >&5
14295$as_echo "ok" >&6; }
14296 GENHTML="$GENHTML --frames"
14297 else
14298 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14299$as_echo "not supported" >&6; }
14300 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14301$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14302 GENPNG=
14303 fi
14304 fi
5556819a 14305fi
d0191583 14306
54b362f9
AK
14307################################################################################
14308{ $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14309$as_echo_n "checking whether to enable unit testing... " >&6; }
14310# Check whether --enable-testing was given.
14311if test "${enable_testing+set}" = set; then
14312 enableval=$enable_testing; TESTING=$enableval
14313else
14314 TESTING=no
14315fi
14316
14317{ $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14318$as_echo "$TESTING" >&6; }
14319
14320if test "$TESTING" = yes; then
14321 # Extract the first word of "ruby1.9", so it can be a program name with args.
14322set dummy ruby1.9; ac_word=$2
14323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14324$as_echo_n "checking for $ac_word... " >&6; }
14325if test "${ac_cv_path_RUBY19+set}" = set; then
14326 $as_echo_n "(cached) " >&6
14327else
14328 case $RUBY19 in
14329 [\\/]* | ?:[\\/]*)
14330 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14331 ;;
14332 *)
14333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334for as_dir in $PATH
14335do
14336 IFS=$as_save_IFS
14337 test -z "$as_dir" && as_dir=.
14338 for ac_exec_ext in '' $ac_executable_extensions; do
14339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14340 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14341 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14342 break 2
14343 fi
14344done
14345done
14346IFS=$as_save_IFS
14347
14348 ;;
14349esac
14350fi
14351RUBY19=$ac_cv_path_RUBY19
14352if test -n "$RUBY19"; then
14353 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14354$as_echo "$RUBY19" >&6; }
14355else
14356 { $as_echo "$as_me:$LINENO: result: no" >&5
14357$as_echo "no" >&6; }
14358fi
14359
14360
14361 # Extract the first word of "valgrind", so it can be a program name with args.
14362set dummy valgrind; ac_word=$2
14363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14364$as_echo_n "checking for $ac_word... " >&6; }
14365if test "${ac_cv_path_VALGRIND+set}" = set; then
14366 $as_echo_n "(cached) " >&6
14367else
14368 case $VALGRIND in
14369 [\\/]* | ?:[\\/]*)
14370 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14371 ;;
14372 *)
14373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14374for as_dir in $PATH
14375do
14376 IFS=$as_save_IFS
14377 test -z "$as_dir" && as_dir=.
14378 for ac_exec_ext in '' $ac_executable_extensions; do
14379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14380 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14381 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14382 break 2
14383 fi
14384done
14385done
14386IFS=$as_save_IFS
14387
14388 ;;
14389esac
14390fi
14391VALGRIND=$ac_cv_path_VALGRIND
14392if test -n "$VALGRIND"; then
14393 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14394$as_echo "$VALGRIND" >&6; }
14395else
14396 { $as_echo "$as_me:$LINENO: result: no" >&5
14397$as_echo "no" >&6; }
14398fi
14399
14400
14401 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14402 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14403$as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14404 { (exit 1); exit 1; }; }
14405 fi
14406fi
14407
d0191583 14408################################################################################
ec6a6fbe
AK
14409{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14410$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14411# Check whether --enable-devmapper was given.
14412if test "${enable_devmapper+set}" = set; then
14413 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14414fi
14415
ec6a6fbe
AK
14416{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14417$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14418
14419if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14420
14421cat >>confdefs.h <<\_ACEOF
d0191583 14422#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14423_ACEOF
14424
14425fi
14426
a5f46f6a
AK
14427################################################################################
14428{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14429$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14430# Check whether --enable-udev_sync was given.
14431if test "${enable_udev_sync+set}" = set; then
14432 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14433else
14434 UDEV_SYNC=no
14435fi
14436
14437{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14438$as_echo "$UDEV_SYNC" >&6; }
14439
90c80887
AK
14440if test x$UDEV_SYNC = xyes; then
14441 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14442$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14443if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14444 $as_echo_n "(cached) " >&6
14445else
14446 ac_check_lib_save_LIBS=$LIBS
14447LIBS="-ludev $LIBS"
14448cat >conftest.$ac_ext <<_ACEOF
14449/* confdefs.h. */
14450_ACEOF
14451cat confdefs.h >>conftest.$ac_ext
14452cat >>conftest.$ac_ext <<_ACEOF
14453/* end confdefs.h. */
14454
14455/* Override any GCC internal prototype to avoid an error.
14456 Use char because int might match the return type of a GCC
14457 builtin and then its argument prototype would still apply. */
14458#ifdef __cplusplus
14459extern "C"
14460#endif
14461char udev_queue_get_udev_is_active ();
14462int
14463main ()
14464{
14465return udev_queue_get_udev_is_active ();
14466 ;
14467 return 0;
14468}
14469_ACEOF
14470rm -f conftest.$ac_objext conftest$ac_exeext
14471if { (ac_try="$ac_link"
14472case "(($ac_try" in
14473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14475esac
14476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14477$as_echo "$ac_try_echo") >&5
14478 (eval "$ac_link") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest$ac_exeext && {
14488 test "$cross_compiling" = yes ||
14489 $as_test_x conftest$ac_exeext
14490 }; then
14491 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14492else
14493 $as_echo "$as_me: failed program was:" >&5
14494sed 's/^/| /' conftest.$ac_ext >&5
14495
14496 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14497fi
14498
14499rm -rf conftest.dSYM
14500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14501 conftest$ac_exeext conftest.$ac_ext
14502LIBS=$ac_check_lib_save_LIBS
14503fi
14504{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14505$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14506if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14507 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14508else
5161ecb9
PR
14509 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14510$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14511 { (exit 1); exit 1; }; }
90c80887
AK
14512fi
14513
14514
90c80887 14515cat >>confdefs.h <<\_ACEOF
5161ecb9 14516#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14517_ACEOF
14518
90c80887
AK
14519fi
14520
5161ecb9
PR
14521{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14522$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14523# Check whether --enable-udev_rules was given.
14524if test "${enable_udev_rules+set}" = set; then
14525 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14526else
14527 UDEV_RULES=$UDEV_SYNC
14528fi
14529
14530{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14531$as_echo "$UDEV_RULES" >&6; }
14532
93bd259b
AK
14533################################################################################
14534# Check whether --enable-compat was given.
14535if test "${enable_compat+set}" = set; then
14536 enableval=$enable_compat; DM_COMPAT=$enableval
14537else
14538 DM_COMPAT=no
14539fi
14540
14541
95eaa683
AK
14542################################################################################
14543# Check whether --enable-units-compat was given.
14544if test "${enable_units_compat+set}" = set; then
14545 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14546else
14547 UNITS_COMPAT=no
14548fi
14549
14550
14551if test x$UNITS_COMPAT = xyes; then
14552
14553cat >>confdefs.h <<\_ACEOF
14554#define DEFAULT_SI_UNIT_CONSISTENCY 0
14555_ACEOF
14556
14557fi
14558
93bd259b
AK
14559################################################################################
14560# Check whether --enable-ioctl was given.
14561if test "${enable_ioctl+set}" = set; then
14562 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14563fi
14564
14565
d0191583 14566################################################################################
ec6a6fbe
AK
14567{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14568$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14569# Check whether --enable-o_direct was given.
14570if test "${enable_o_direct+set}" = set; then
14571 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14572fi
ad6254c5 14573
ec6a6fbe
AK
14574{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14575$as_echo "$ODIRECT" >&6; }
ad6254c5 14576
d0191583 14577if test x$ODIRECT = xyes; then
ad6254c5 14578
d0191583
JM
14579cat >>confdefs.h <<\_ACEOF
14580#define O_DIRECT_SUPPORT 1
14581_ACEOF
ad6254c5 14582
d0191583 14583fi
ad6254c5 14584
572fefeb
AK
14585################################################################################
14586{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14587$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14588# Check whether --enable-applib was given.
14589if test "${enable_applib+set}" = set; then
14590 enableval=$enable_applib; APPLIB=$enableval
14591else
14592 APPLIB=no
14593fi
14594
14595{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14596$as_echo "$APPLIB" >&6; }
14597
14598test x$APPLIB = xyes \
14599 && LVM2APP_LIB=-llvm2app \
14600 || LVM2APP_LIB=
14601
d0191583 14602################################################################################
ec6a6fbe
AK
14603{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14604$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14605# Check whether --enable-cmdlib was given.
14606if test "${enable_cmdlib+set}" = set; then
14607 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14608else
d0191583
JM
14609 CMDLIB=no
14610fi
8a2fc586 14611
ec6a6fbe
AK
14612{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14613$as_echo "$CMDLIB" >&6; }
8a2fc586 14614
2a9a80c9 14615test x$CMDLIB = xyes \
d179cc7a
JM
14616 && LVM2CMD_LIB=-llvm2cmd \
14617 || LVM2CMD_LIB=
14618
93bd259b
AK
14619################################################################################
14620# Check whether --enable-pkgconfig was given.
14621if test "${enable_pkgconfig+set}" = set; then
14622 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14623else
14624 PKGCONFIG=no
14625fi
14626
2a9a80c9 14627
23b059e7
ZK
14628################################################################################
14629# Check whether --enable-write_install was given.
14630if test "${enable_write_install+set}" = set; then
14631 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14632else
14633 WRITE_INSTALL=no
14634fi
14635
14636
d0191583 14637################################################################################
ec6a6fbe
AK
14638{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14639$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14640# Check whether --enable-fsadm was given.
14641if test "${enable_fsadm+set}" = set; then
14642 enableval=$enable_fsadm; FSADM=$enableval
14643fi
8a2fc586 14644
ec6a6fbe
AK
14645{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14646$as_echo "$FSADM" >&6; }
8a2fc586 14647
d0191583 14648################################################################################
ec6a6fbe
AK
14649{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14650$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14651# Check whether --enable-dmeventd was given.
14652if test "${enable_dmeventd+set}" = set; then
14653 enableval=$enable_dmeventd; DMEVENTD=$enableval
14654fi
ad6254c5 14655
ec6a6fbe
AK
14656{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14657$as_echo "$DMEVENTD" >&6; }
ad6254c5 14658
93bd259b
AK
14659BUILD_DMEVENTD=$DMEVENTD
14660
2a9a80c9
PR
14661if test x$DMEVENTD = xyes; then
14662 if test x$MIRRORS != xinternal; then
ec6a6fbe 14663 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14664 " >&5
ec6a6fbe 14665$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14666 " >&2;}
d0191583 14667 { (exit 1); exit 1; }; }
2a9a80c9
PR
14668 fi
14669 if test x$CMDLIB = xno; then
ec6a6fbe 14670 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14671 " >&5
ec6a6fbe 14672$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14673 " >&2;}
14674 { (exit 1); exit 1; }; }
14675 fi
ad6254c5 14676fi
7a197a62 14677
d0191583
JM
14678if test x$DMEVENTD = xyes; then
14679
14680cat >>confdefs.h <<\_ACEOF
14681#define DMEVENTD 1
ad6254c5
AK
14682_ACEOF
14683
ad6254c5 14684fi
93bd259b
AK
14685
14686################################################################################
14687
ec6a6fbe
AK
14688{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14689$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14690if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14691 $as_echo_n "(cached) " >&6
93bd259b
AK
14692else
14693 ac_check_lib_save_LIBS=$LIBS
14694LIBS="-lc $LIBS"
14695cat >conftest.$ac_ext <<_ACEOF
14696/* confdefs.h. */
14697_ACEOF
14698cat confdefs.h >>conftest.$ac_ext
14699cat >>conftest.$ac_ext <<_ACEOF
14700/* end confdefs.h. */
14701
14702/* Override any GCC internal prototype to avoid an error.
14703 Use char because int might match the return type of a GCC
14704 builtin and then its argument prototype would still apply. */
14705#ifdef __cplusplus
14706extern "C"
14707#endif
14708char getline ();
14709int
14710main ()
14711{
14712return getline ();
14713 ;
14714 return 0;
14715}
14716_ACEOF
14717rm -f conftest.$ac_objext conftest$ac_exeext
14718if { (ac_try="$ac_link"
14719case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722esac
ec6a6fbe
AK
14723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724$as_echo "$ac_try_echo") >&5
93bd259b
AK
14725 (eval "$ac_link") 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
ec6a6fbe 14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
ec6a6fbe
AK
14734 } && test -s conftest$ac_exeext && {
14735 test "$cross_compiling" = yes ||
14736 $as_test_x conftest$ac_exeext
14737 }; then
93bd259b
AK
14738 ac_cv_lib_c_getline=yes
14739else
ec6a6fbe 14740 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14741sed 's/^/| /' conftest.$ac_ext >&5
14742
14743 ac_cv_lib_c_getline=no
14744fi
14745
ec6a6fbe 14746rm -rf conftest.dSYM
93bd259b
AK
14747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14748 conftest$ac_exeext conftest.$ac_ext
14749LIBS=$ac_check_lib_save_LIBS
14750fi
ec6a6fbe
AK
14751{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14752$as_echo "$ac_cv_lib_c_getline" >&6; }
14753if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14754
14755cat >>confdefs.h <<\_ACEOF
14756#define HAVE_GETLINE 1
14757_ACEOF
14758
14759fi
14760
14761
14762################################################################################
14763
ec6a6fbe
AK
14764{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14765$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14766if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14767 $as_echo_n "(cached) " >&6
93bd259b
AK
14768else
14769 ac_check_lib_save_LIBS=$LIBS
14770LIBS="-lc $LIBS"
14771cat >conftest.$ac_ext <<_ACEOF
14772/* confdefs.h. */
14773_ACEOF
14774cat confdefs.h >>conftest.$ac_ext
14775cat >>conftest.$ac_ext <<_ACEOF
14776/* end confdefs.h. */
14777
14778/* Override any GCC internal prototype to avoid an error.
14779 Use char because int might match the return type of a GCC
14780 builtin and then its argument prototype would still apply. */
14781#ifdef __cplusplus
14782extern "C"
14783#endif
14784char canonicalize_file_name ();
14785int
14786main ()
14787{
14788return canonicalize_file_name ();
14789 ;
14790 return 0;
14791}
14792_ACEOF
14793rm -f conftest.$ac_objext conftest$ac_exeext
14794if { (ac_try="$ac_link"
14795case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798esac
ec6a6fbe
AK
14799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14800$as_echo "$ac_try_echo") >&5
93bd259b
AK
14801 (eval "$ac_link") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
ec6a6fbe 14806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14807 (exit $ac_status); } && {
14808 test -z "$ac_c_werror_flag" ||
14809 test ! -s conftest.err
ec6a6fbe
AK
14810 } && test -s conftest$ac_exeext && {
14811 test "$cross_compiling" = yes ||
14812 $as_test_x conftest$ac_exeext
14813 }; then
93bd259b
AK
14814 ac_cv_lib_c_canonicalize_file_name=yes
14815else
ec6a6fbe 14816 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
14819 ac_cv_lib_c_canonicalize_file_name=no
14820fi
14821
ec6a6fbe 14822rm -rf conftest.dSYM
93bd259b
AK
14823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14824 conftest$ac_exeext conftest.$ac_ext
14825LIBS=$ac_check_lib_save_LIBS
14826fi
ec6a6fbe
AK
14827{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14828$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14829if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
14830
14831cat >>confdefs.h <<\_ACEOF
14832#define HAVE_CANONICALIZE_FILE_NAME 1
14833_ACEOF
14834
14835fi
14836
14837
d0191583
JM
14838################################################################################
14839if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14840 then exec_prefix="";
14841fi;
ad6254c5 14842
ad6254c5 14843################################################################################
ec6a6fbe
AK
14844{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14845$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 14846if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 14847 $as_echo_n "(cached) " >&6
ad6254c5
AK
14848else
14849 ac_check_lib_save_LIBS=$LIBS
14850LIBS="-ldl $LIBS"
14851cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14852/* confdefs.h. */
14853_ACEOF
14854cat confdefs.h >>conftest.$ac_ext
14855cat >>conftest.$ac_ext <<_ACEOF
14856/* end confdefs.h. */
14857
7a197a62
AK
14858/* Override any GCC internal prototype to avoid an error.
14859 Use char because int might match the return type of a GCC
14860 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14861#ifdef __cplusplus
14862extern "C"
14863#endif
ad6254c5
AK
14864char dlopen ();
14865int
14866main ()
14867{
7a197a62 14868return dlopen ();
ad6254c5
AK
14869 ;
14870 return 0;
14871}
14872_ACEOF
14873rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14874if { (ac_try="$ac_link"
14875case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14878esac
ec6a6fbe
AK
14879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14880$as_echo "$ac_try_echo") >&5
7a197a62 14881 (eval "$ac_link") 2>conftest.er1
ad6254c5 14882 ac_status=$?
8a2fc586
AK
14883 grep -v '^ *+' conftest.er1 >conftest.err
14884 rm -f conftest.er1
14885 cat conftest.err >&5
ec6a6fbe 14886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14887 (exit $ac_status); } && {
14888 test -z "$ac_c_werror_flag" ||
14889 test ! -s conftest.err
ec6a6fbe
AK
14890 } && test -s conftest$ac_exeext && {
14891 test "$cross_compiling" = yes ||
14892 $as_test_x conftest$ac_exeext
14893 }; then
ad6254c5
AK
14894 ac_cv_lib_dl_dlopen=yes
14895else
ec6a6fbe 14896 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
7a197a62 14899 ac_cv_lib_dl_dlopen=no
ad6254c5 14900fi
7a197a62 14901
ec6a6fbe 14902rm -rf conftest.dSYM
25fbec5b 14903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14904 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
14905LIBS=$ac_check_lib_save_LIBS
14906fi
ec6a6fbe
AK
14907{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14908$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14909if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 14910
72b2cb61
AK
14911
14912cat >>confdefs.h <<\_ACEOF
14913#define HAVE_LIBDL 1
14914_ACEOF
14915
19a2c6e0
ZK
14916 DL_LIBS="-ldl"
14917 HAVE_LIBDL=yes
ad6254c5 14918else
19a2c6e0
ZK
14919
14920 DL_LIBS=
ad6254c5
AK
14921 HAVE_LIBDL=no
14922fi
14923
19a2c6e0 14924
ad6254c5
AK
14925################################################################################
14926if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
14927 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
14928 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 14929 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 14930" >&5
ec6a6fbe 14931$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
14932" >&2;}
14933 { (exit 1); exit 1; }; }
14934fi
14935
f30875db
ZK
14936################################################################################
14937if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
14938 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
14939$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
14940if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
14941 $as_echo_n "(cached) " >&6
14942else
14943 ac_check_lib_save_LIBS=$LIBS
14944LIBS="-lpthread $LIBS"
14945cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h. */
14951
14952/* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14955#ifdef __cplusplus
14956extern "C"
14957#endif
14958char pthread_mutex_lock ();
14959int
14960main ()
14961{
14962return pthread_mutex_lock ();
14963 ;
14964 return 0;
14965}
14966_ACEOF
14967rm -f conftest.$ac_objext conftest$ac_exeext
14968if { (ac_try="$ac_link"
14969case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972esac
14973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14974$as_echo "$ac_try_echo") >&5
14975 (eval "$ac_link") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest$ac_exeext && {
14985 test "$cross_compiling" = yes ||
14986 $as_test_x conftest$ac_exeext
14987 }; then
14988 ac_cv_lib_pthread_pthread_mutex_lock=yes
14989else
14990 $as_echo "$as_me: failed program was:" >&5
14991sed 's/^/| /' conftest.$ac_ext >&5
14992
14993 ac_cv_lib_pthread_pthread_mutex_lock=no
14994fi
14995
14996rm -rf conftest.dSYM
14997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999LIBS=$ac_check_lib_save_LIBS
15000fi
15001{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15002$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15003if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15004 PTHREAD_LIBS="-lpthread"
15005else
15006 hard_bailout
15007fi
15008
15009fi
15010
d0191583 15011################################################################################
ec6a6fbe
AK
15012{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15013$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
15014# Check whether --enable-selinux was given.
15015if test "${enable_selinux+set}" = set; then
15016 enableval=$enable_selinux; SELINUX=$enableval
15017fi
15018
ec6a6fbe
AK
15019{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15020$as_echo "$SELINUX" >&6; }
d0191583 15021
ad6254c5
AK
15022################################################################################
15023if test x$SELINUX = xyes; then
ec6a6fbe
AK
15024 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15025$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 15026if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 15027 $as_echo_n "(cached) " >&6
8a2fc586
AK
15028else
15029 ac_check_lib_save_LIBS=$LIBS
15030LIBS="-lsepol $LIBS"
15031cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037
7a197a62
AK
15038/* Override any GCC internal prototype to avoid an error.
15039 Use char because int might match the return type of a GCC
15040 builtin and then its argument prototype would still apply. */
8a2fc586
AK
15041#ifdef __cplusplus
15042extern "C"
15043#endif
8a2fc586
AK
15044char sepol_check_context ();
15045int
15046main ()
15047{
7a197a62 15048return sepol_check_context ();
8a2fc586
AK
15049 ;
15050 return 0;
15051}
15052_ACEOF
15053rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15054if { (ac_try="$ac_link"
15055case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15058esac
ec6a6fbe
AK
15059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15060$as_echo "$ac_try_echo") >&5
7a197a62 15061 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
ec6a6fbe 15066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15067 (exit $ac_status); } && {
15068 test -z "$ac_c_werror_flag" ||
15069 test ! -s conftest.err
ec6a6fbe
AK
15070 } && test -s conftest$ac_exeext && {
15071 test "$cross_compiling" = yes ||
15072 $as_test_x conftest$ac_exeext
15073 }; then
8a2fc586
AK
15074 ac_cv_lib_sepol_sepol_check_context=yes
15075else
ec6a6fbe 15076 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
15077sed 's/^/| /' conftest.$ac_ext >&5
15078
7a197a62 15079 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 15080fi
7a197a62 15081
ec6a6fbe 15082rm -rf conftest.dSYM
25fbec5b 15083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
15084 conftest$ac_exeext conftest.$ac_ext
15085LIBS=$ac_check_lib_save_LIBS
15086fi
ec6a6fbe
AK
15087{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15088$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15089if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 15090
d0191583
JM
15091
15092cat >>confdefs.h <<\_ACEOF
15093#define HAVE_SEPOL 1
15094_ACEOF
15095
f8f6ec92
ZK
15096 SELINUX_LIBS="-lsepol"
15097fi
15098
8a2fc586 15099
ec6a6fbe
AK
15100 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15101$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 15102if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 15103 $as_echo_n "(cached) " >&6
ad6254c5
AK
15104else
15105 ac_check_lib_save_LIBS=$LIBS
15106LIBS="-lselinux $LIBS"
15107cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15108/* confdefs.h. */
15109_ACEOF
15110cat confdefs.h >>conftest.$ac_ext
15111cat >>conftest.$ac_ext <<_ACEOF
15112/* end confdefs.h. */
15113
7a197a62
AK
15114/* Override any GCC internal prototype to avoid an error.
15115 Use char because int might match the return type of a GCC
15116 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15117#ifdef __cplusplus
15118extern "C"
15119#endif
ad6254c5
AK
15120char is_selinux_enabled ();
15121int
15122main ()
15123{
7a197a62 15124return is_selinux_enabled ();
ad6254c5
AK
15125 ;
15126 return 0;
15127}
15128_ACEOF
15129rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15130if { (ac_try="$ac_link"
15131case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
ec6a6fbe
AK
15135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15136$as_echo "$ac_try_echo") >&5
7a197a62 15137 (eval "$ac_link") 2>conftest.er1
ad6254c5 15138 ac_status=$?
8a2fc586
AK
15139 grep -v '^ *+' conftest.er1 >conftest.err
15140 rm -f conftest.er1
15141 cat conftest.err >&5
ec6a6fbe 15142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15143 (exit $ac_status); } && {
15144 test -z "$ac_c_werror_flag" ||
15145 test ! -s conftest.err
ec6a6fbe
AK
15146 } && test -s conftest$ac_exeext && {
15147 test "$cross_compiling" = yes ||
15148 $as_test_x conftest$ac_exeext
15149 }; then
ad6254c5
AK
15150 ac_cv_lib_selinux_is_selinux_enabled=yes
15151else
ec6a6fbe 15152 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
7a197a62 15155 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15156fi
7a197a62 15157
ec6a6fbe 15158rm -rf conftest.dSYM
25fbec5b 15159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15160 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15161LIBS=$ac_check_lib_save_LIBS
15162fi
ec6a6fbe
AK
15163{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15164$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15165if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15166
72b2cb61 15167
f8f6ec92
ZK
15168for ac_header in selinux/selinux.h
15169do
15170as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15173$as_echo_n "checking for $ac_header... " >&6; }
15174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15175 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15176fi
15177ac_res=`eval 'as_val=${'$as_ac_Header'}
15178 $as_echo "$as_val"'`
15179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15180$as_echo "$ac_res" >&6; }
66e941e8 15181else
f8f6ec92
ZK
15182 # Is the header compilable?
15183{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15184$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15185cat >conftest.$ac_ext <<_ACEOF
15186/* confdefs.h. */
15187_ACEOF
15188cat confdefs.h >>conftest.$ac_ext
15189cat >>conftest.$ac_ext <<_ACEOF
15190/* end confdefs.h. */
f8f6ec92
ZK
15191$ac_includes_default
15192#include <$ac_header>
66e941e8 15193_ACEOF
f8f6ec92
ZK
15194rm -f conftest.$ac_objext
15195if { (ac_try="$ac_compile"
66e941e8
JM
15196case "(($ac_try" in
15197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198 *) ac_try_echo=$ac_try;;
15199esac
ec6a6fbe
AK
15200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15201$as_echo "$ac_try_echo") >&5
f8f6ec92 15202 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15203 ac_status=$?
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
ec6a6fbe 15207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15208 (exit $ac_status); } && {
15209 test -z "$ac_c_werror_flag" ||
15210 test ! -s conftest.err
f8f6ec92
ZK
15211 } && test -s conftest.$ac_objext; then
15212 ac_header_compiler=yes
15213else
15214 $as_echo "$as_me: failed program was:" >&5
15215sed 's/^/| /' conftest.$ac_ext >&5
15216
15217 ac_header_compiler=no
15218fi
15219
15220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15221{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15222$as_echo "$ac_header_compiler" >&6; }
15223
15224# Is the header present?
15225{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15226$as_echo_n "checking $ac_header presence... " >&6; }
15227cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h. */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
15232/* end confdefs.h. */
15233#include <$ac_header>
15234_ACEOF
15235if { (ac_try="$ac_cpp conftest.$ac_ext"
15236case "(($ac_try" in
15237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238 *) ac_try_echo=$ac_try;;
15239esac
15240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15241$as_echo "$ac_try_echo") >&5
15242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15243 ac_status=$?
15244 grep -v '^ *+' conftest.er1 >conftest.err
15245 rm -f conftest.er1
15246 cat conftest.err >&5
15247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } >/dev/null && {
15249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15250 test ! -s conftest.err
ec6a6fbe 15251 }; then
f8f6ec92 15252 ac_header_preproc=yes
66e941e8 15253else
ec6a6fbe 15254 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15255sed 's/^/| /' conftest.$ac_ext >&5
15256
f8f6ec92
ZK
15257 ac_header_preproc=no
15258fi
15259
15260rm -f conftest.err conftest.$ac_ext
15261{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15262$as_echo "$ac_header_preproc" >&6; }
15263
15264# So? What about this header?
15265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15266 yes:no: )
15267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15268$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15270$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15271 ac_header_preproc=yes
15272 ;;
15273 no:yes:* )
15274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15275$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15277$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15279$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15281$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15283$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15285$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15286
f8f6ec92
ZK
15287 ;;
15288esac
15289{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15290$as_echo_n "checking for $ac_header... " >&6; }
15291if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15292 $as_echo_n "(cached) " >&6
15293else
15294 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15295fi
f8f6ec92
ZK
15296ac_res=`eval 'as_val=${'$as_ac_Header'}
15297 $as_echo "$as_val"'`
15298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15299$as_echo "$ac_res" >&6; }
66e941e8 15300
66e941e8 15301fi
f8f6ec92
ZK
15302as_val=`eval 'as_val=${'$as_ac_Header'}
15303 $as_echo "$as_val"'`
15304 if test "x$as_val" = x""yes; then
15305 cat >>confdefs.h <<_ACEOF
15306#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15307_ACEOF
15308
66e941e8 15309else
f8f6ec92 15310 hard_bailout
66e941e8 15311fi
f8f6ec92
ZK
15312
15313done
15314
15315
15316cat >>confdefs.h <<\_ACEOF
15317#define HAVE_SELINUX 1
15318_ACEOF
15319
15320 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15321 SELINUX_PC="libselinux"
f8f6ec92
ZK
15322 HAVE_SELINUX=yes
15323else
15324
15325 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15326$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15327 SELINUX_LIBS=
f7f0854e 15328 SELINUX_PC=
f8f6ec92 15329 HAVE_SELINUX=no
66e941e8
JM
15330fi
15331
ad6254c5
AK
15332fi
15333
8b1a3214
AK
15334################################################################################
15335if test x$REALTIME = xyes; then
ec6a6fbe
AK
15336 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15337$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15338if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15339 $as_echo_n "(cached) " >&6
8b1a3214
AK
15340else
15341 ac_check_lib_save_LIBS=$LIBS
15342LIBS="-lrt $LIBS"
15343cat >conftest.$ac_ext <<_ACEOF
15344/* confdefs.h. */
15345_ACEOF
15346cat confdefs.h >>conftest.$ac_ext
15347cat >>conftest.$ac_ext <<_ACEOF
15348/* end confdefs.h. */
15349
7a197a62
AK
15350/* Override any GCC internal prototype to avoid an error.
15351 Use char because int might match the return type of a GCC
15352 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15353#ifdef __cplusplus
15354extern "C"
15355#endif
8b1a3214
AK
15356char clock_gettime ();
15357int
15358main ()
15359{
7a197a62 15360return clock_gettime ();
8b1a3214
AK
15361 ;
15362 return 0;
15363}
15364_ACEOF
15365rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15366if { (ac_try="$ac_link"
15367case "(($ac_try" in
15368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15369 *) ac_try_echo=$ac_try;;
15370esac
ec6a6fbe
AK
15371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15372$as_echo "$ac_try_echo") >&5
7a197a62 15373 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15374 ac_status=$?
15375 grep -v '^ *+' conftest.er1 >conftest.err
15376 rm -f conftest.er1
15377 cat conftest.err >&5
ec6a6fbe 15378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
ec6a6fbe
AK
15382 } && test -s conftest$ac_exeext && {
15383 test "$cross_compiling" = yes ||
15384 $as_test_x conftest$ac_exeext
15385 }; then
8b1a3214
AK
15386 ac_cv_lib_rt_clock_gettime=yes
15387else
ec6a6fbe 15388 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15389sed 's/^/| /' conftest.$ac_ext >&5
15390
7a197a62 15391 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15392fi
7a197a62 15393
ec6a6fbe 15394rm -rf conftest.dSYM
25fbec5b 15395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15396 conftest$ac_exeext conftest.$ac_ext
15397LIBS=$ac_check_lib_save_LIBS
15398fi
ec6a6fbe
AK
15399{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15400$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15401if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15402 HAVE_REALTIME=yes
15403else
15404 HAVE_REALTIME=no
15405fi
15406
8b1a3214
AK
15407
15408 if test x$HAVE_REALTIME = xyes; then
15409
15410cat >>confdefs.h <<\_ACEOF
15411#define HAVE_REALTIME 1
15412_ACEOF
15413
15414 LIBS="-lrt $LIBS"
15415 else
ec6a6fbe
AK
15416 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15417$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15418 fi
15419fi
15420
ad6254c5
AK
15421################################################################################
15422
15423for ac_header in getopt.h
15424do
ec6a6fbe 15425as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15427 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15428$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15430 $as_echo_n "(cached) " >&6
ad6254c5 15431fi
ec6a6fbe
AK
15432ac_res=`eval 'as_val=${'$as_ac_Header'}
15433 $as_echo "$as_val"'`
15434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15435$as_echo "$ac_res" >&6; }
ad6254c5
AK
15436else
15437 # Is the header compilable?
ec6a6fbe
AK
15438{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15439$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15440cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446$ac_includes_default
15447#include <$ac_header>
15448_ACEOF
15449rm -f conftest.$ac_objext
7a197a62
AK
15450if { (ac_try="$ac_compile"
15451case "(($ac_try" in
15452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453 *) ac_try_echo=$ac_try;;
15454esac
ec6a6fbe
AK
15455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15456$as_echo "$ac_try_echo") >&5
7a197a62 15457 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15458 ac_status=$?
8a2fc586
AK
15459 grep -v '^ *+' conftest.er1 >conftest.err
15460 rm -f conftest.er1
15461 cat conftest.err >&5
ec6a6fbe 15462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15463 (exit $ac_status); } && {
15464 test -z "$ac_c_werror_flag" ||
15465 test ! -s conftest.err
15466 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15467 ac_header_compiler=yes
15468else
ec6a6fbe 15469 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15470sed 's/^/| /' conftest.$ac_ext >&5
15471
7a197a62 15472 ac_header_compiler=no
ad6254c5 15473fi
7a197a62
AK
15474
15475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15476{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15477$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15478
15479# Is the header present?
ec6a6fbe
AK
15480{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15481$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15482cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15483/* confdefs.h. */
15484_ACEOF
15485cat confdefs.h >>conftest.$ac_ext
15486cat >>conftest.$ac_ext <<_ACEOF
15487/* end confdefs.h. */
15488#include <$ac_header>
15489_ACEOF
7a197a62
AK
15490if { (ac_try="$ac_cpp conftest.$ac_ext"
15491case "(($ac_try" in
15492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15493 *) ac_try_echo=$ac_try;;
15494esac
ec6a6fbe
AK
15495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15496$as_echo "$ac_try_echo") >&5
7a197a62 15497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15498 ac_status=$?
15499 grep -v '^ *+' conftest.er1 >conftest.err
15500 rm -f conftest.er1
15501 cat conftest.err >&5
ec6a6fbe 15502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15503 (exit $ac_status); } >/dev/null && {
15504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15505 test ! -s conftest.err
15506 }; then
ad6254c5
AK
15507 ac_header_preproc=yes
15508else
ec6a6fbe 15509 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15510sed 's/^/| /' conftest.$ac_ext >&5
15511
15512 ac_header_preproc=no
15513fi
7a197a62 15514
ad6254c5 15515rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15516{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15517$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15518
15519# So? What about this header?
8a2fc586
AK
15520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15521 yes:no: )
ec6a6fbe
AK
15522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15523$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15525$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15526 ac_header_preproc=yes
ad6254c5 15527 ;;
8a2fc586 15528 no:yes:* )
ec6a6fbe
AK
15529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15530$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15531 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15532$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15534$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15536$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15538$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15540$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15541
ad6254c5
AK
15542 ;;
15543esac
ec6a6fbe
AK
15544{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15545$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15547 $as_echo_n "(cached) " >&6
ad6254c5 15548else
8a2fc586 15549 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15550fi
ec6a6fbe
AK
15551ac_res=`eval 'as_val=${'$as_ac_Header'}
15552 $as_echo "$as_val"'`
15553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15554$as_echo "$ac_res" >&6; }
ad6254c5
AK
15555
15556fi
ec6a6fbe
AK
15557as_val=`eval 'as_val=${'$as_ac_Header'}
15558 $as_echo "$as_val"'`
15559 if test "x$as_val" = x""yes; then
ad6254c5 15560 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15561#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15562_ACEOF
72b2cb61
AK
15563
15564cat >>confdefs.h <<\_ACEOF
15565#define HAVE_GETOPTLONG 1
15566_ACEOF
15567
ad6254c5
AK
15568fi
15569
15570done
15571
15572
15573################################################################################
06e459df 15574if test x$READLINE != xno; then
539f4a77
ZK
15575 lvm_saved_libs=$LIBS
15576 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15577$as_echo_n "checking for library containing tgetent... " >&6; }
15578if test "${ac_cv_search_tgetent+set}" = set; then
15579 $as_echo_n "(cached) " >&6
15580else
15581 ac_func_search_save_LIBS=$LIBS
15582cat >conftest.$ac_ext <<_ACEOF
15583/* confdefs.h. */
15584_ACEOF
15585cat confdefs.h >>conftest.$ac_ext
15586cat >>conftest.$ac_ext <<_ACEOF
15587/* end confdefs.h. */
bc1024f8 15588
539f4a77
ZK
15589/* Override any GCC internal prototype to avoid an error.
15590 Use char because int might match the return type of a GCC
15591 builtin and then its argument prototype would still apply. */
15592#ifdef __cplusplus
15593extern "C"
15594#endif
15595char tgetent ();
15596int
15597main ()
15598{
15599return tgetent ();
15600 ;
15601 return 0;
15602}
15603_ACEOF
15604for ac_lib in '' tinfo ncurses curses termcap termlib; do
15605 if test -z "$ac_lib"; then
15606 ac_res="none required"
15607 else
15608 ac_res=-l$ac_lib
15609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15610 fi
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612if { (ac_try="$ac_link"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15618$as_echo "$ac_try_echo") >&5
15619 (eval "$ac_link") 2>conftest.er1
15620 ac_status=$?
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
15624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } && {
15626 test -z "$ac_c_werror_flag" ||
15627 test ! -s conftest.err
15628 } && test -s conftest$ac_exeext && {
15629 test "$cross_compiling" = yes ||
15630 $as_test_x conftest$ac_exeext
15631 }; then
15632 ac_cv_search_tgetent=$ac_res
15633else
15634 $as_echo "$as_me: failed program was:" >&5
15635sed 's/^/| /' conftest.$ac_ext >&5
15636
15637
15638fi
15639
15640rm -rf conftest.dSYM
15641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642 conftest$ac_exeext
15643 if test "${ac_cv_search_tgetent+set}" = set; then
15644 break
15645fi
15646done
15647if test "${ac_cv_search_tgetent+set}" = set; then
15648 :
15649else
15650 ac_cv_search_tgetent=no
15651fi
15652rm conftest.$ac_ext
15653LIBS=$ac_func_search_save_LIBS
15654fi
15655{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15656$as_echo "$ac_cv_search_tgetent" >&6; }
15657ac_res=$ac_cv_search_tgetent
15658if test "$ac_res" != no; then
15659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15660 READLINE_LIBS=$ac_cv_search_tgetent
15661else
15662
15663 if test "$READLINE" = yes; then
15664 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15665--enable-readline option (which is enabled by default). Either disable readline
15666support with --disable-readline or download and install termcap from:
15667 ftp.gnu.org/gnu/termcap
15668Note: if you are using precompiled packages you will also need the development
15669 package as well (which may be called termcap-devel or something similar).
15670Note: (n)curses also seems to work as a substitute for termcap. This was
15671 not found either - but you could try installing that as well." >&5
15672$as_echo "$as_me: error: termcap could not be found which is required for the
15673--enable-readline option (which is enabled by default). Either disable readline
15674support with --disable-readline or download and install termcap from:
15675 ftp.gnu.org/gnu/termcap
15676Note: if you are using precompiled packages you will also need the development
15677 package as well (which may be called termcap-devel or something similar).
15678Note: (n)curses also seems to work as a substitute for termcap. This was
15679 not found either - but you could try installing that as well." >&2;}
15680 { (exit 1); exit 1; }; }
15681 fi
15682fi
15683
15684 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15685$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15686if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15687 $as_echo_n "(cached) " >&6
ad6254c5
AK
15688else
15689 ac_check_lib_save_LIBS=$LIBS
15690LIBS="-lreadline $LIBS"
15691cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15692/* confdefs.h. */
15693_ACEOF
15694cat confdefs.h >>conftest.$ac_ext
15695cat >>conftest.$ac_ext <<_ACEOF
15696/* end confdefs.h. */
15697
7a197a62
AK
15698/* Override any GCC internal prototype to avoid an error.
15699 Use char because int might match the return type of a GCC
15700 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15701#ifdef __cplusplus
15702extern "C"
15703#endif
ad6254c5
AK
15704char readline ();
15705int
15706main ()
15707{
7a197a62 15708return readline ();
ad6254c5
AK
15709 ;
15710 return 0;
15711}
15712_ACEOF
15713rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15714if { (ac_try="$ac_link"
15715case "(($ac_try" in
15716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717 *) ac_try_echo=$ac_try;;
15718esac
ec6a6fbe
AK
15719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15720$as_echo "$ac_try_echo") >&5
7a197a62 15721 (eval "$ac_link") 2>conftest.er1
ad6254c5 15722 ac_status=$?
8a2fc586
AK
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
ec6a6fbe 15726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15727 (exit $ac_status); } && {
15728 test -z "$ac_c_werror_flag" ||
15729 test ! -s conftest.err
ec6a6fbe
AK
15730 } && test -s conftest$ac_exeext && {
15731 test "$cross_compiling" = yes ||
15732 $as_test_x conftest$ac_exeext
15733 }; then
ad6254c5
AK
15734 ac_cv_lib_readline_readline=yes
15735else
ec6a6fbe 15736 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15737sed 's/^/| /' conftest.$ac_ext >&5
15738
7a197a62 15739 ac_cv_lib_readline_readline=no
ad6254c5 15740fi
7a197a62 15741
ec6a6fbe 15742rm -rf conftest.dSYM
25fbec5b 15743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15744 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15745LIBS=$ac_check_lib_save_LIBS
15746fi
ec6a6fbe
AK
15747{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15748$as_echo "$ac_cv_lib_readline_readline" >&6; }
15749if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15750
15751
15752cat >>confdefs.h <<\_ACEOF
15753#define READLINE_SUPPORT 1
bc1024f8
JM
15754_ACEOF
15755
539f4a77
ZK
15756 LIBS=$lvm_saved_libs
15757 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15758$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15759if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15760 $as_echo_n "(cached) " >&6
15761else
15762 ac_check_lib_save_LIBS=$LIBS
15763LIBS="-lreadline $LIBS"
15764cat >conftest.$ac_ext <<_ACEOF
15765/* confdefs.h. */
15766_ACEOF
15767cat confdefs.h >>conftest.$ac_ext
15768cat >>conftest.$ac_ext <<_ACEOF
15769/* end confdefs.h. */
bc1024f8 15770
539f4a77
ZK
15771/* Override any GCC internal prototype to avoid an error.
15772 Use char because int might match the return type of a GCC
15773 builtin and then its argument prototype would still apply. */
15774#ifdef __cplusplus
15775extern "C"
15776#endif
15777char rl_line_buffer ();
15778int
15779main ()
15780{
15781return rl_line_buffer ();
15782 ;
15783 return 0;
15784}
15785_ACEOF
15786rm -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_lib_readline_rl_line_buffer=yes
ad6254c5 15808else
539f4a77
ZK
15809 $as_echo "$as_me: failed program was:" >&5
15810sed 's/^/| /' conftest.$ac_ext >&5
15811
15812 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15813fi
15814
539f4a77
ZK
15815rm -rf conftest.dSYM
15816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817 conftest$ac_exeext conftest.$ac_ext
15818LIBS=$ac_check_lib_save_LIBS
15819fi
15820{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15821$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15822if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15823 READLINE_LIBS="-lreadline"
15824else
15825
15826 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
15827$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
15828 READLINE_LIBS="-lreadline $READLINE_LIBS"
15829
15830fi
15831
15832else
15833
15834 READLINE_LIBS=
15835 if test "$READLINE" = yes; then
15836 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15837--enable-readline option (which is enabled by default). Either disable readline
15838support with --disable-readline or download and install readline from:
15839 ftp.gnu.org/gnu/readline
15840Note: if you are using precompiled packages you will also need the development
539f4a77 15841package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 15842$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15843--enable-readline option (which is enabled by default). Either disable readline
15844support with --disable-readline or download and install readline from:
15845 ftp.gnu.org/gnu/readline
15846Note: if you are using precompiled packages you will also need the development
539f4a77 15847package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 15848 { (exit 1); exit 1; }; }
539f4a77
ZK
15849 fi
15850fi
15851
15852 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
15853
15854for ac_func in rl_completion_matches
15855do
ec6a6fbe
AK
15856as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15857{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15858$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 15859if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15860 $as_echo_n "(cached) " >&6
ad6254c5
AK
15861else
15862 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15863/* confdefs.h. */
15864_ACEOF
15865cat confdefs.h >>conftest.$ac_ext
15866cat >>conftest.$ac_ext <<_ACEOF
15867/* end confdefs.h. */
bc1024f8 15868/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 15869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 15870#define $ac_func innocuous_$ac_func
8a2fc586 15871
ad6254c5 15872/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 15873 which can conflict with char $ac_func (); below.
ad6254c5
AK
15874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15875 <limits.h> exists even on freestanding compilers. */
8a2fc586 15876
ad6254c5
AK
15877#ifdef __STDC__
15878# include <limits.h>
15879#else
15880# include <assert.h>
15881#endif
8a2fc586 15882
bc1024f8 15883#undef $ac_func
8a2fc586 15884
7a197a62
AK
15885/* Override any GCC internal prototype to avoid an error.
15886 Use char because int might match the return type of a GCC
15887 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15888#ifdef __cplusplus
15889extern "C"
ad6254c5 15890#endif
bc1024f8 15891char $ac_func ();
ad6254c5
AK
15892/* The GNU C library defines this for functions which it implements
15893 to always fail with ENOSYS. Some functions are actually named
15894 something starting with __ and the normal name is an alias. */
bc1024f8 15895#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 15896choke me
ad6254c5
AK
15897#endif
15898
15899int
15900main ()
15901{
bc1024f8 15902return $ac_func ();
ad6254c5
AK
15903 ;
15904 return 0;
15905}
15906_ACEOF
15907rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15908if { (ac_try="$ac_link"
15909case "(($ac_try" in
15910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15911 *) ac_try_echo=$ac_try;;
15912esac
ec6a6fbe
AK
15913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15914$as_echo "$ac_try_echo") >&5
7a197a62 15915 (eval "$ac_link") 2>conftest.er1
ad6254c5 15916 ac_status=$?
8a2fc586
AK
15917 grep -v '^ *+' conftest.er1 >conftest.err
15918 rm -f conftest.er1
15919 cat conftest.err >&5
ec6a6fbe 15920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15921 (exit $ac_status); } && {
15922 test -z "$ac_c_werror_flag" ||
15923 test ! -s conftest.err
ec6a6fbe
AK
15924 } && test -s conftest$ac_exeext && {
15925 test "$cross_compiling" = yes ||
15926 $as_test_x conftest$ac_exeext
15927 }; then
bc1024f8 15928 eval "$as_ac_var=yes"
ad6254c5 15929else
ec6a6fbe 15930 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15931sed 's/^/| /' conftest.$ac_ext >&5
15932
bc1024f8 15933 eval "$as_ac_var=no"
ad6254c5 15934fi
7a197a62 15935
ec6a6fbe 15936rm -rf conftest.dSYM
25fbec5b 15937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15938 conftest$ac_exeext conftest.$ac_ext
ad6254c5 15939fi
ec6a6fbe
AK
15940ac_res=`eval 'as_val=${'$as_ac_var'}
15941 $as_echo "$as_val"'`
15942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15943$as_echo "$ac_res" >&6; }
15944as_val=`eval 'as_val=${'$as_ac_var'}
15945 $as_echo "$as_val"'`
15946 if test "x$as_val" = x""yes; then
bc1024f8 15947 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15948#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
15949_ACEOF
15950
15951fi
bc1024f8 15952done
ad6254c5 15953
539f4a77 15954 LIBS=$lvm_saved_libs
ad6254c5
AK
15955fi
15956
15957################################################################################
ec6a6fbe
AK
15958{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
15959$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 15960# Check whether --enable-nls was given.
ad6254c5 15961if test "${enable_nls+set}" = set; then
7a197a62 15962 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
15963else
15964 INTL=no
7a197a62
AK
15965fi
15966
ec6a6fbe
AK
15967{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
15968$as_echo "$INTL" >&6; }
ad6254c5
AK
15969
15970if test x$INTL = xyes; then
93bd259b 15971# FIXME - Move this - can be device-mapper too
ad6254c5
AK
15972 INTL_PACKAGE="lvm2"
15973 # Extract the first word of "msgfmt", so it can be a program name with args.
15974set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
15975{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15976$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 15977if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 15978 $as_echo_n "(cached) " >&6
ad6254c5
AK
15979else
15980 case $MSGFMT in
15981 [\\/]* | ?:[\\/]*)
15982 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15983 ;;
15984 *)
15985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15986for as_dir in $PATH
15987do
15988 IFS=$as_save_IFS
15989 test -z "$as_dir" && as_dir=.
15990 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 15992 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15993 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
15994 break 2
15995 fi
15996done
15997done
7a197a62 15998IFS=$as_save_IFS
ad6254c5
AK
15999
16000 ;;
16001esac
16002fi
16003MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 16004if test -n "$MSGFMT"; then
ec6a6fbe
AK
16005 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16006$as_echo "$MSGFMT" >&6; }
ad6254c5 16007else
ec6a6fbe
AK
16008 { $as_echo "$as_me:$LINENO: result: no" >&5
16009$as_echo "no" >&6; }
ad6254c5
AK
16010fi
16011
7a197a62 16012
ad6254c5 16013 if [ "x$MSGFMT" == x ];
ec6a6fbe 16014 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 16015 " >&5
ec6a6fbe 16016$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
16017 " >&2;}
16018 { (exit 1); exit 1; }; }
16019 fi;
16020
16021
7a197a62 16022# Check whether --with-localedir was given.
ad6254c5 16023if test "${with_localedir+set}" = set; then
71082be4 16024 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 16025else
71082be4 16026 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
16027fi
16028
ad6254c5
AK
16029fi
16030
16031################################################################################
16032
7a197a62 16033# Check whether --with-confdir was given.
ad6254c5 16034if test "${with_confdir+set}" = set; then
71082be4 16035 withval=$with_confdir; CONFDIR=$withval
ad6254c5 16036else
71082be4 16037 CONFDIR="/etc"
7a197a62
AK
16038fi
16039
ad6254c5
AK
16040
16041
7a197a62 16042# Check whether --with-staticdir was given.
ad6254c5 16043if test "${with_staticdir+set}" = set; then
71082be4 16044 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 16045else
71082be4 16046 STATICDIR='${exec_prefix}/sbin'
7a197a62 16047fi
ad6254c5 16048
33f732c5 16049
7a197a62 16050
68f2de6d
AK
16051# Check whether --with-usrlibdir was given.
16052if test "${with_usrlibdir+set}" = set; then
71082be4 16053 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 16054else
71082be4 16055 usrlibdir='${prefix}/lib'
68f2de6d
AK
16056fi
16057
16058
16059
16060# Check whether --with-usrsbindir was given.
16061if test "${with_usrsbindir+set}" = set; then
71082be4 16062 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 16063else
71082be4 16064 usrsbindir='${prefix}/sbin'
68f2de6d
AK
16065fi
16066
16067
a5f46f6a
AK
16068################################################################################
16069
16070# Check whether --with-udev_prefix was given.
16071if test "${with_udev_prefix+set}" = set; then
71082be4 16072 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 16073else
71082be4 16074 udev_prefix='${exec_prefix}'
a5f46f6a
AK
16075fi
16076
16077
78ce7acc
AK
16078
16079# Check whether --with-udevdir was given.
16080if test "${with_udevdir+set}" = set; then
71082be4 16081 withval=$with_udevdir; udevdir=$withval
78ce7acc 16082else
71082be4 16083 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
16084fi
16085
a5f46f6a 16086
ad6254c5
AK
16087################################################################################
16088if test x$READLINE = xyes; then
16089
16090
16091for ac_header in readline/readline.h readline/history.h
16092do
ec6a6fbe 16093as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16096$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16097if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16098 $as_echo_n "(cached) " >&6
ad6254c5 16099fi
ec6a6fbe
AK
16100ac_res=`eval 'as_val=${'$as_ac_Header'}
16101 $as_echo "$as_val"'`
16102 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16103$as_echo "$ac_res" >&6; }
ad6254c5
AK
16104else
16105 # Is the header compilable?
ec6a6fbe
AK
16106{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16107$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16108cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114$ac_includes_default
16115#include <$ac_header>
16116_ACEOF
16117rm -f conftest.$ac_objext
7a197a62
AK
16118if { (ac_try="$ac_compile"
16119case "(($ac_try" in
16120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121 *) ac_try_echo=$ac_try;;
16122esac
ec6a6fbe
AK
16123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16124$as_echo "$ac_try_echo") >&5
7a197a62 16125 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16126 ac_status=$?
8a2fc586
AK
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
ec6a6fbe 16130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16131 (exit $ac_status); } && {
16132 test -z "$ac_c_werror_flag" ||
16133 test ! -s conftest.err
16134 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16135 ac_header_compiler=yes
16136else
ec6a6fbe 16137 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16138sed 's/^/| /' conftest.$ac_ext >&5
16139
7a197a62 16140 ac_header_compiler=no
ad6254c5 16141fi
7a197a62
AK
16142
16143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16144{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16146
16147# Is the header present?
ec6a6fbe
AK
16148{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16150cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16151/* confdefs.h. */
16152_ACEOF
16153cat confdefs.h >>conftest.$ac_ext
16154cat >>conftest.$ac_ext <<_ACEOF
16155/* end confdefs.h. */
16156#include <$ac_header>
16157_ACEOF
7a197a62
AK
16158if { (ac_try="$ac_cpp conftest.$ac_ext"
16159case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
ec6a6fbe
AK
16163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16164$as_echo "$ac_try_echo") >&5
7a197a62 16165 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
ec6a6fbe 16170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16171 (exit $ac_status); } >/dev/null && {
16172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 }; then
ad6254c5
AK
16175 ac_header_preproc=yes
16176else
ec6a6fbe 16177 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16178sed 's/^/| /' conftest.$ac_ext >&5
16179
16180 ac_header_preproc=no
16181fi
7a197a62 16182
ad6254c5 16183rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16184{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16185$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16186
16187# So? What about this header?
8a2fc586
AK
16188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16189 yes:no: )
ec6a6fbe
AK
16190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16191$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16193$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16194 ac_header_preproc=yes
ad6254c5 16195 ;;
8a2fc586 16196 no:yes:* )
ec6a6fbe
AK
16197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16198$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16199 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16200$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16202$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16204$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16206$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16208$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16209
ad6254c5
AK
16210 ;;
16211esac
ec6a6fbe
AK
16212{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16213$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16215 $as_echo_n "(cached) " >&6
ad6254c5 16216else
8a2fc586 16217 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16218fi
ec6a6fbe
AK
16219ac_res=`eval 'as_val=${'$as_ac_Header'}
16220 $as_echo "$as_val"'`
16221 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16222$as_echo "$ac_res" >&6; }
ad6254c5
AK
16223
16224fi
ec6a6fbe
AK
16225as_val=`eval 'as_val=${'$as_ac_Header'}
16226 $as_echo "$as_val"'`
16227 if test "x$as_val" = x""yes; then
ad6254c5 16228 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16229#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16230_ACEOF
16231
16232else
ec6a6fbe
AK
16233 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16234$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16235 { (exit 1); exit 1; }; }
16236fi
16237
16238done
16239
16240fi
16241
5c7fc7c4 16242if test x$CLVMD != xnone; then
ad6254c5
AK
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253for 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
16254do
ec6a6fbe 16255as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16257 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16258$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16259if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16260 $as_echo_n "(cached) " >&6
ad6254c5 16261fi
ec6a6fbe
AK
16262ac_res=`eval 'as_val=${'$as_ac_Header'}
16263 $as_echo "$as_val"'`
16264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16265$as_echo "$ac_res" >&6; }
ad6254c5
AK
16266else
16267 # Is the header compilable?
ec6a6fbe
AK
16268{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16269$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16270cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276$ac_includes_default
16277#include <$ac_header>
16278_ACEOF
16279rm -f conftest.$ac_objext
7a197a62
AK
16280if { (ac_try="$ac_compile"
16281case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284esac
ec6a6fbe
AK
16285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16286$as_echo "$ac_try_echo") >&5
7a197a62 16287 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16288 ac_status=$?
8a2fc586
AK
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
ec6a6fbe 16292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16293 (exit $ac_status); } && {
16294 test -z "$ac_c_werror_flag" ||
16295 test ! -s conftest.err
16296 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16297 ac_header_compiler=yes
16298else
ec6a6fbe 16299 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16300sed 's/^/| /' conftest.$ac_ext >&5
16301
7a197a62 16302 ac_header_compiler=no
ad6254c5 16303fi
7a197a62
AK
16304
16305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16306{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16307$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16308
16309# Is the header present?
ec6a6fbe
AK
16310{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16311$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16312cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16313/* confdefs.h. */
16314_ACEOF
16315cat confdefs.h >>conftest.$ac_ext
16316cat >>conftest.$ac_ext <<_ACEOF
16317/* end confdefs.h. */
16318#include <$ac_header>
16319_ACEOF
7a197a62
AK
16320if { (ac_try="$ac_cpp conftest.$ac_ext"
16321case "(($ac_try" in
16322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323 *) ac_try_echo=$ac_try;;
16324esac
ec6a6fbe
AK
16325eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16326$as_echo "$ac_try_echo") >&5
7a197a62 16327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
ec6a6fbe 16332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16333 (exit $ac_status); } >/dev/null && {
16334 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16335 test ! -s conftest.err
16336 }; then
ad6254c5
AK
16337 ac_header_preproc=yes
16338else
ec6a6fbe 16339 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16340sed 's/^/| /' conftest.$ac_ext >&5
16341
16342 ac_header_preproc=no
16343fi
7a197a62 16344
ad6254c5 16345rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16346{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16347$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16348
16349# So? What about this header?
8a2fc586
AK
16350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16351 yes:no: )
ec6a6fbe
AK
16352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16353$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16355$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16356 ac_header_preproc=yes
ad6254c5 16357 ;;
8a2fc586 16358 no:yes:* )
ec6a6fbe
AK
16359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16360$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16362$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16364$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16366$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16368$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16370$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16371
ad6254c5
AK
16372 ;;
16373esac
ec6a6fbe
AK
16374{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16375$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16376if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16377 $as_echo_n "(cached) " >&6
ad6254c5 16378else
8a2fc586 16379 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16380fi
ec6a6fbe
AK
16381ac_res=`eval 'as_val=${'$as_ac_Header'}
16382 $as_echo "$as_val"'`
16383 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16384$as_echo "$ac_res" >&6; }
ad6254c5
AK
16385
16386fi
ec6a6fbe
AK
16387as_val=`eval 'as_val=${'$as_ac_Header'}
16388 $as_echo "$as_val"'`
16389 if test "x$as_val" = x""yes; then
ad6254c5 16390 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16391#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16392_ACEOF
16393
16394else
ec6a6fbe
AK
16395 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16396$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16397 { (exit 1); exit 1; }; }
795ca3e5
AK
16398fi
16399
ad6254c5
AK
16400done
16401
16402
795ca3e5 16403
8106cdd5 16404
ad6254c5
AK
16405
16406
16407for ac_func in dup2 getmntent memmove select socket
16408do
ec6a6fbe
AK
16409as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16410{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16411$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16413 $as_echo_n "(cached) " >&6
795ca3e5 16414else
ad6254c5 16415 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16416/* confdefs.h. */
16417_ACEOF
16418cat confdefs.h >>conftest.$ac_ext
16419cat >>conftest.$ac_ext <<_ACEOF
16420/* end confdefs.h. */
8a2fc586
AK
16421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16423#define $ac_func innocuous_$ac_func
16424
795ca3e5 16425/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16426 which can conflict with char $ac_func (); below.
16427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16428 <limits.h> exists even on freestanding compilers. */
8a2fc586 16429
ad6254c5
AK
16430#ifdef __STDC__
16431# include <limits.h>
16432#else
16433# include <assert.h>
16434#endif
8a2fc586
AK
16435
16436#undef $ac_func
16437
7a197a62
AK
16438/* Override any GCC internal prototype to avoid an error.
16439 Use char because int might match the return type of a GCC
16440 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16441#ifdef __cplusplus
16442extern "C"
ad6254c5 16443#endif
ad6254c5 16444char $ac_func ();
795ca3e5
AK
16445/* The GNU C library defines this for functions which it implements
16446 to always fail with ENOSYS. Some functions are actually named
16447 something starting with __ and the normal name is an alias. */
7a197a62 16448#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16449choke me
795ca3e5
AK
16450#endif
16451
ad6254c5
AK
16452int
16453main ()
16454{
7a197a62 16455return $ac_func ();
ad6254c5
AK
16456 ;
16457 return 0;
16458}
16459_ACEOF
16460rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16461if { (ac_try="$ac_link"
16462case "(($ac_try" in
16463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464 *) ac_try_echo=$ac_try;;
16465esac
ec6a6fbe
AK
16466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16467$as_echo "$ac_try_echo") >&5
7a197a62 16468 (eval "$ac_link") 2>conftest.er1
ad6254c5 16469 ac_status=$?
8a2fc586
AK
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
ec6a6fbe 16473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16474 (exit $ac_status); } && {
16475 test -z "$ac_c_werror_flag" ||
16476 test ! -s conftest.err
ec6a6fbe
AK
16477 } && test -s conftest$ac_exeext && {
16478 test "$cross_compiling" = yes ||
16479 $as_test_x conftest$ac_exeext
16480 }; then
ad6254c5 16481 eval "$as_ac_var=yes"
795ca3e5 16482else
ec6a6fbe 16483 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16484sed 's/^/| /' conftest.$ac_ext >&5
16485
7a197a62 16486 eval "$as_ac_var=no"
80992638 16487fi
7a197a62 16488
ec6a6fbe 16489rm -rf conftest.dSYM
25fbec5b 16490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16491 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16492fi
ec6a6fbe
AK
16493ac_res=`eval 'as_val=${'$as_ac_var'}
16494 $as_echo "$as_val"'`
16495 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16496$as_echo "$ac_res" >&6; }
16497as_val=`eval 'as_val=${'$as_ac_var'}
16498 $as_echo "$as_val"'`
16499 if test "x$as_val" = x""yes; then
ad6254c5 16500 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16501#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16502_ACEOF
80992638
AK
16503
16504else
ec6a6fbe
AK
16505 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16506$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16507 { (exit 1); exit 1; }; }
8106cdd5 16508fi
ad6254c5 16509done
795ca3e5 16510
25fbec5b
AK
16511 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16512# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16513{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16514$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16515if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16516 $as_echo_n "(cached) " >&6
25fbec5b
AK
16517else
16518 ac_func_search_save_LIBS=$LIBS
16519cat >conftest.$ac_ext <<_ACEOF
16520/* confdefs.h. */
16521_ACEOF
16522cat confdefs.h >>conftest.$ac_ext
16523cat >>conftest.$ac_ext <<_ACEOF
16524/* end confdefs.h. */
80992638 16525
7a197a62
AK
16526/* Override any GCC internal prototype to avoid an error.
16527 Use char because int might match the return type of a GCC
ad6254c5 16528 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16529#ifdef __cplusplus
16530extern "C"
16531#endif
25fbec5b 16532char getmntent ();
ad6254c5
AK
16533int
16534main ()
16535{
25fbec5b 16536return getmntent ();
ad6254c5
AK
16537 ;
16538 return 0;
16539}
16540_ACEOF
25fbec5b
AK
16541for ac_lib in '' sun seq gen; do
16542 if test -z "$ac_lib"; then
16543 ac_res="none required"
16544 else
16545 ac_res=-l$ac_lib
16546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16547 fi
16548 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16549if { (ac_try="$ac_link"
16550case "(($ac_try" in
16551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16552 *) ac_try_echo=$ac_try;;
16553esac
ec6a6fbe
AK
16554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16555$as_echo "$ac_try_echo") >&5
7a197a62 16556 (eval "$ac_link") 2>conftest.er1
ad6254c5 16557 ac_status=$?
8a2fc586
AK
16558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
ec6a6fbe 16561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16562 (exit $ac_status); } && {
16563 test -z "$ac_c_werror_flag" ||
16564 test ! -s conftest.err
ec6a6fbe
AK
16565 } && test -s conftest$ac_exeext && {
16566 test "$cross_compiling" = yes ||
16567 $as_test_x conftest$ac_exeext
16568 }; then
25fbec5b 16569 ac_cv_search_getmntent=$ac_res
80992638 16570else
ec6a6fbe 16571 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16572sed 's/^/| /' conftest.$ac_ext >&5
16573
25fbec5b 16574
795ca3e5
AK
16575fi
16576
ec6a6fbe 16577rm -rf conftest.dSYM
25fbec5b
AK
16578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16579 conftest$ac_exeext
16580 if test "${ac_cv_search_getmntent+set}" = set; then
16581 break
795ca3e5 16582fi
25fbec5b
AK
16583done
16584if test "${ac_cv_search_getmntent+set}" = set; then
16585 :
16586else
16587 ac_cv_search_getmntent=no
16588fi
16589rm conftest.$ac_ext
16590LIBS=$ac_func_search_save_LIBS
16591fi
ec6a6fbe
AK
16592{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16593$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16594ac_res=$ac_cv_search_getmntent
16595if test "$ac_res" != no; then
16596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16597 ac_cv_func_getmntent=yes
16598
16599cat >>confdefs.h <<\_ACEOF
9c961554 16600#define HAVE_GETMNTENT 1
ad6254c5 16601_ACEOF
795ca3e5 16602
25fbec5b
AK
16603else
16604 ac_cv_func_getmntent=no
795ca3e5 16605fi
795ca3e5
AK
16606
16607
ad6254c5
AK
16608
16609
16610for ac_header in sys/select.h sys/socket.h
16611do
ec6a6fbe 16612as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16615$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16617 $as_echo_n "(cached) " >&6
ad6254c5 16618fi
ec6a6fbe
AK
16619ac_res=`eval 'as_val=${'$as_ac_Header'}
16620 $as_echo "$as_val"'`
16621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16622$as_echo "$ac_res" >&6; }
795ca3e5 16623else
ad6254c5 16624 # Is the header compilable?
ec6a6fbe
AK
16625{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16626$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16627cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16628/* confdefs.h. */
16629_ACEOF
16630cat confdefs.h >>conftest.$ac_ext
16631cat >>conftest.$ac_ext <<_ACEOF
16632/* end confdefs.h. */
16633$ac_includes_default
16634#include <$ac_header>
16635_ACEOF
16636rm -f conftest.$ac_objext
7a197a62
AK
16637if { (ac_try="$ac_compile"
16638case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16641esac
ec6a6fbe
AK
16642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16643$as_echo "$ac_try_echo") >&5
7a197a62 16644 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16645 ac_status=$?
8a2fc586
AK
16646 grep -v '^ *+' conftest.er1 >conftest.err
16647 rm -f conftest.er1
16648 cat conftest.err >&5
ec6a6fbe 16649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16650 (exit $ac_status); } && {
16651 test -z "$ac_c_werror_flag" ||
16652 test ! -s conftest.err
16653 } && test -s conftest.$ac_objext; then
ad6254c5 16654 ac_header_compiler=yes
80992638 16655else
ec6a6fbe 16656 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16657sed 's/^/| /' conftest.$ac_ext >&5
16658
7a197a62 16659 ac_header_compiler=no
ad6254c5 16660fi
7a197a62
AK
16661
16662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16663{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16664$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16665
16666# Is the header present?
ec6a6fbe
AK
16667{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16668$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16669cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16670/* confdefs.h. */
16671_ACEOF
16672cat confdefs.h >>conftest.$ac_ext
16673cat >>conftest.$ac_ext <<_ACEOF
16674/* end confdefs.h. */
16675#include <$ac_header>
16676_ACEOF
7a197a62
AK
16677if { (ac_try="$ac_cpp conftest.$ac_ext"
16678case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16681esac
ec6a6fbe
AK
16682eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16683$as_echo "$ac_try_echo") >&5
7a197a62 16684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16685 ac_status=$?
16686 grep -v '^ *+' conftest.er1 >conftest.err
16687 rm -f conftest.er1
16688 cat conftest.err >&5
ec6a6fbe 16689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16690 (exit $ac_status); } >/dev/null && {
16691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16692 test ! -s conftest.err
16693 }; then
ad6254c5
AK
16694 ac_header_preproc=yes
16695else
ec6a6fbe 16696 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16697sed 's/^/| /' conftest.$ac_ext >&5
16698
16699 ac_header_preproc=no
16700fi
7a197a62 16701
ad6254c5 16702rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16703{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16704$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16705
16706# So? What about this header?
8a2fc586
AK
16707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16708 yes:no: )
ec6a6fbe
AK
16709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16710$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16712$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16713 ac_header_preproc=yes
ad6254c5 16714 ;;
8a2fc586 16715 no:yes:* )
ec6a6fbe
AK
16716 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16717$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16719$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16721$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16723$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16725$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16727$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16728
ad6254c5
AK
16729 ;;
16730esac
ec6a6fbe
AK
16731{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16732$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16734 $as_echo_n "(cached) " >&6
ad6254c5 16735else
8a2fc586 16736 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16737fi
ec6a6fbe
AK
16738ac_res=`eval 'as_val=${'$as_ac_Header'}
16739 $as_echo "$as_val"'`
16740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16741$as_echo "$ac_res" >&6; }
8106cdd5 16742
795ca3e5 16743fi
ec6a6fbe
AK
16744as_val=`eval 'as_val=${'$as_ac_Header'}
16745 $as_echo "$as_val"'`
16746 if test "x$as_val" = x""yes; then
ad6254c5 16747 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16749_ACEOF
16750
795ca3e5
AK
16751fi
16752
ad6254c5
AK
16753done
16754
ec6a6fbe
AK
16755{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16756$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16757if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16758 $as_echo_n "(cached) " >&6
26e7f2e0 16759else
ad6254c5 16760 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16761 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16762 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16763 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16764/* confdefs.h. */
16765_ACEOF
16766cat confdefs.h >>conftest.$ac_ext
16767cat >>conftest.$ac_ext <<_ACEOF
16768/* end confdefs.h. */
16769$ac_includes_default
25fbec5b 16770#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16771# include <sys/select.h>
16772#endif
25fbec5b 16773#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16774# include <sys/socket.h>
16775#endif
16776
16777int
16778main ()
16779{
16780extern int select ($ac_arg1,
8a2fc586
AK
16781 $ac_arg234, $ac_arg234, $ac_arg234,
16782 $ac_arg5);
ad6254c5
AK
16783 ;
16784 return 0;
16785}
16786_ACEOF
16787rm -f conftest.$ac_objext
7a197a62
AK
16788if { (ac_try="$ac_compile"
16789case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16792esac
ec6a6fbe
AK
16793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16794$as_echo "$ac_try_echo") >&5
7a197a62 16795 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16796 ac_status=$?
8a2fc586
AK
16797 grep -v '^ *+' conftest.er1 >conftest.err
16798 rm -f conftest.er1
16799 cat conftest.err >&5
ec6a6fbe 16800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16801 (exit $ac_status); } && {
16802 test -z "$ac_c_werror_flag" ||
16803 test ! -s conftest.err
16804 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16805 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16806else
ec6a6fbe 16807 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
7a197a62 16810
ad6254c5 16811fi
7a197a62
AK
16812
16813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16814 done
16815 done
16816done
16817# Provide a safe default value.
16818: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16819
26e7f2e0 16820fi
ec6a6fbe
AK
16821{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16822$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
16823ac_save_IFS=$IFS; IFS=','
16824set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16825IFS=$ac_save_IFS
16826shift
16827
16828cat >>confdefs.h <<_ACEOF
16829#define SELECT_TYPE_ARG1 $1
16830_ACEOF
16831
16832
16833cat >>confdefs.h <<_ACEOF
16834#define SELECT_TYPE_ARG234 ($2)
16835_ACEOF
16836
16837
16838cat >>confdefs.h <<_ACEOF
16839#define SELECT_TYPE_ARG5 ($3)
16840_ACEOF
16841
80992638 16842rm -f conftest*
80992638 16843
8106cdd5 16844fi
ad6254c5 16845
ad6254c5
AK
16846if test x$CLUSTER != xnone; then
16847
16848
16849for ac_header in sys/socket.h sys/un.h
b896caa1 16850do
ec6a6fbe 16851as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16853 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16854$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16856 $as_echo_n "(cached) " >&6
ad6254c5 16857fi
ec6a6fbe
AK
16858ac_res=`eval 'as_val=${'$as_ac_Header'}
16859 $as_echo "$as_val"'`
16860 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16861$as_echo "$ac_res" >&6; }
ad6254c5
AK
16862else
16863 # Is the header compilable?
ec6a6fbe
AK
16864{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16865$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16866cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16867/* confdefs.h. */
16868_ACEOF
16869cat confdefs.h >>conftest.$ac_ext
16870cat >>conftest.$ac_ext <<_ACEOF
16871/* end confdefs.h. */
16872$ac_includes_default
16873#include <$ac_header>
16874_ACEOF
16875rm -f conftest.$ac_objext
7a197a62
AK
16876if { (ac_try="$ac_compile"
16877case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880esac
ec6a6fbe
AK
16881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16882$as_echo "$ac_try_echo") >&5
7a197a62 16883 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16884 ac_status=$?
8a2fc586
AK
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
ec6a6fbe 16888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16893 ac_header_compiler=yes
16894else
ec6a6fbe 16895 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16896sed 's/^/| /' conftest.$ac_ext >&5
16897
7a197a62 16898 ac_header_compiler=no
ad6254c5 16899fi
7a197a62
AK
16900
16901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16902{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16903$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16904
16905# Is the header present?
ec6a6fbe
AK
16906{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16907$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16908cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16909/* confdefs.h. */
16910_ACEOF
16911cat confdefs.h >>conftest.$ac_ext
16912cat >>conftest.$ac_ext <<_ACEOF
16913/* end confdefs.h. */
16914#include <$ac_header>
16915_ACEOF
7a197a62
AK
16916if { (ac_try="$ac_cpp conftest.$ac_ext"
16917case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
ec6a6fbe
AK
16921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16922$as_echo "$ac_try_echo") >&5
7a197a62 16923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16924 ac_status=$?
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
ec6a6fbe 16928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16929 (exit $ac_status); } >/dev/null && {
16930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16931 test ! -s conftest.err
16932 }; then
ad6254c5
AK
16933 ac_header_preproc=yes
16934else
ec6a6fbe 16935 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16936sed 's/^/| /' conftest.$ac_ext >&5
16937
16938 ac_header_preproc=no
16939fi
7a197a62 16940
ad6254c5 16941rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16942{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16943$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16944
16945# So? What about this header?
8a2fc586
AK
16946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16947 yes:no: )
ec6a6fbe
AK
16948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16949$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16951$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16952 ac_header_preproc=yes
ad6254c5 16953 ;;
8a2fc586 16954 no:yes:* )
ec6a6fbe
AK
16955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16956$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16958$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16959 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16960$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16961 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16962$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16963 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16964$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16966$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16967
ad6254c5
AK
16968 ;;
16969esac
ec6a6fbe
AK
16970{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16971$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16973 $as_echo_n "(cached) " >&6
ad6254c5 16974else
8a2fc586 16975 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 16976fi
ec6a6fbe
AK
16977ac_res=`eval 'as_val=${'$as_ac_Header'}
16978 $as_echo "$as_val"'`
16979 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16980$as_echo "$ac_res" >&6; }
ad6254c5
AK
16981
16982fi
ec6a6fbe
AK
16983as_val=`eval 'as_val=${'$as_ac_Header'}
16984 $as_echo "$as_val"'`
16985 if test "x$as_val" = x""yes; then
ad6254c5 16986 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16988_ACEOF
16989
80992638 16990else
ec6a6fbe
AK
16991 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16992$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16993 { (exit 1); exit 1; }; }
b896caa1 16994fi
ad6254c5 16995
b896caa1
AK
16996done
16997
16998
ad6254c5
AK
16999for ac_func in socket
17000do
ec6a6fbe
AK
17001as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17002{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17003$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 17004if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17005 $as_echo_n "(cached) " >&6
795ca3e5 17006else
ad6254c5 17007 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17008/* confdefs.h. */
17009_ACEOF
17010cat confdefs.h >>conftest.$ac_ext
17011cat >>conftest.$ac_ext <<_ACEOF
17012/* end confdefs.h. */
8a2fc586
AK
17013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17015#define $ac_func innocuous_$ac_func
17016
ad6254c5
AK
17017/* System header to define __stub macros and hopefully few prototypes,
17018 which can conflict with char $ac_func (); below.
17019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17020 <limits.h> exists even on freestanding compilers. */
8a2fc586 17021
ad6254c5
AK
17022#ifdef __STDC__
17023# include <limits.h>
17024#else
17025# include <assert.h>
17026#endif
8a2fc586
AK
17027
17028#undef $ac_func
17029
7a197a62
AK
17030/* Override any GCC internal prototype to avoid an error.
17031 Use char because int might match the return type of a GCC
17032 builtin and then its argument prototype would still apply. */
ad6254c5
AK
17033#ifdef __cplusplus
17034extern "C"
ad6254c5 17035#endif
ad6254c5
AK
17036char $ac_func ();
17037/* The GNU C library defines this for functions which it implements
17038 to always fail with ENOSYS. Some functions are actually named
17039 something starting with __ and the normal name is an alias. */
7a197a62 17040#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 17041choke me
ad6254c5
AK
17042#endif
17043
17044int
17045main ()
17046{
7a197a62 17047return $ac_func ();
ad6254c5
AK
17048 ;
17049 return 0;
17050}
17051_ACEOF
17052rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
17053if { (ac_try="$ac_link"
17054case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057esac
ec6a6fbe
AK
17058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17059$as_echo "$ac_try_echo") >&5
7a197a62 17060 (eval "$ac_link") 2>conftest.er1
ad6254c5 17061 ac_status=$?
8a2fc586
AK
17062 grep -v '^ *+' conftest.er1 >conftest.err
17063 rm -f conftest.er1
17064 cat conftest.err >&5
ec6a6fbe 17065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17066 (exit $ac_status); } && {
17067 test -z "$ac_c_werror_flag" ||
17068 test ! -s conftest.err
ec6a6fbe
AK
17069 } && test -s conftest$ac_exeext && {
17070 test "$cross_compiling" = yes ||
17071 $as_test_x conftest$ac_exeext
17072 }; then
ad6254c5
AK
17073 eval "$as_ac_var=yes"
17074else
ec6a6fbe 17075 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17076sed 's/^/| /' conftest.$ac_ext >&5
17077
7a197a62 17078 eval "$as_ac_var=no"
ad6254c5 17079fi
7a197a62 17080
ec6a6fbe 17081rm -rf conftest.dSYM
25fbec5b 17082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 17083 conftest$ac_exeext conftest.$ac_ext
ad6254c5 17084fi
ec6a6fbe
AK
17085ac_res=`eval 'as_val=${'$as_ac_var'}
17086 $as_echo "$as_val"'`
17087 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17088$as_echo "$ac_res" >&6; }
17089as_val=`eval 'as_val=${'$as_ac_var'}
17090 $as_echo "$as_val"'`
17091 if test "x$as_val" = x""yes; then
ad6254c5 17092 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17093#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
17094_ACEOF
17095
17096else
ec6a6fbe
AK
17097 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17098$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
17099 { (exit 1); exit 1; }; }
17100fi
17101done
17102
17103fi
17104
d911ec67
AK
17105if test x$DMEVENTD = xyes; then
17106
17107for ac_header in arpa/inet.h
17108do
17109as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17112$as_echo_n "checking for $ac_header... " >&6; }
17113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17114 $as_echo_n "(cached) " >&6
17115fi
17116ac_res=`eval 'as_val=${'$as_ac_Header'}
17117 $as_echo "$as_val"'`
17118 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17119$as_echo "$ac_res" >&6; }
17120else
17121 # Is the header compilable?
17122{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17123$as_echo_n "checking $ac_header usability... " >&6; }
17124cat >conftest.$ac_ext <<_ACEOF
17125/* confdefs.h. */
17126_ACEOF
17127cat confdefs.h >>conftest.$ac_ext
17128cat >>conftest.$ac_ext <<_ACEOF
17129/* end confdefs.h. */
17130$ac_includes_default
17131#include <$ac_header>
17132_ACEOF
17133rm -f conftest.$ac_objext
17134if { (ac_try="$ac_compile"
17135case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17138esac
17139eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17140$as_echo "$ac_try_echo") >&5
17141 (eval "$ac_compile") 2>conftest.er1
17142 ac_status=$?
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
17146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } && {
17148 test -z "$ac_c_werror_flag" ||
17149 test ! -s conftest.err
17150 } && test -s conftest.$ac_objext; then
17151 ac_header_compiler=yes
17152else
17153 $as_echo "$as_me: failed program was:" >&5
17154sed 's/^/| /' conftest.$ac_ext >&5
17155
17156 ac_header_compiler=no
17157fi
17158
17159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17160{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17161$as_echo "$ac_header_compiler" >&6; }
17162
17163# Is the header present?
17164{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17165$as_echo_n "checking $ac_header presence... " >&6; }
17166cat >conftest.$ac_ext <<_ACEOF
17167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
17172#include <$ac_header>
17173_ACEOF
17174if { (ac_try="$ac_cpp conftest.$ac_ext"
17175case "(($ac_try" in
17176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17178esac
17179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17180$as_echo "$ac_try_echo") >&5
17181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17182 ac_status=$?
17183 grep -v '^ *+' conftest.er1 >conftest.err
17184 rm -f conftest.er1
17185 cat conftest.err >&5
17186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } >/dev/null && {
17188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17189 test ! -s conftest.err
17190 }; then
17191 ac_header_preproc=yes
17192else
17193 $as_echo "$as_me: failed program was:" >&5
17194sed 's/^/| /' conftest.$ac_ext >&5
17195
17196 ac_header_preproc=no
17197fi
17198
17199rm -f conftest.err conftest.$ac_ext
17200{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17201$as_echo "$ac_header_preproc" >&6; }
17202
17203# So? What about this header?
17204case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17205 yes:no: )
17206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17207$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17209$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17210 ac_header_preproc=yes
17211 ;;
17212 no:yes:* )
17213 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17214$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17216$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17218$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17220$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17222$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17224$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17225
17226 ;;
17227esac
17228{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17229$as_echo_n "checking for $ac_header... " >&6; }
17230if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17231 $as_echo_n "(cached) " >&6
17232else
17233 eval "$as_ac_Header=\$ac_header_preproc"
17234fi
17235ac_res=`eval 'as_val=${'$as_ac_Header'}
17236 $as_echo "$as_val"'`
17237 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17238$as_echo "$ac_res" >&6; }
17239
17240fi
17241as_val=`eval 'as_val=${'$as_ac_Header'}
17242 $as_echo "$as_val"'`
17243 if test "x$as_val" = x""yes; then
17244 cat >>confdefs.h <<_ACEOF
17245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17246_ACEOF
17247
17248else
17249 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17250$as_echo "$as_me: error: bailing out" >&2;}
17251 { (exit 1); exit 1; }; }
17252fi
17253
17254done
17255
17256fi
17257
ad6254c5
AK
17258if test x$HAVE_LIBDL = xyes; then
17259
17260for ac_header in dlfcn.h
17261do
ec6a6fbe 17262as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17263if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17265$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17267 $as_echo_n "(cached) " >&6
ad6254c5 17268fi
ec6a6fbe
AK
17269ac_res=`eval 'as_val=${'$as_ac_Header'}
17270 $as_echo "$as_val"'`
17271 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17272$as_echo "$ac_res" >&6; }
ad6254c5
AK
17273else
17274 # Is the header compilable?
ec6a6fbe
AK
17275{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17276$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17277cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17278/* confdefs.h. */
17279_ACEOF
17280cat confdefs.h >>conftest.$ac_ext
17281cat >>conftest.$ac_ext <<_ACEOF
17282/* end confdefs.h. */
17283$ac_includes_default
17284#include <$ac_header>
17285_ACEOF
17286rm -f conftest.$ac_objext
7a197a62
AK
17287if { (ac_try="$ac_compile"
17288case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291esac
ec6a6fbe
AK
17292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17293$as_echo "$ac_try_echo") >&5
7a197a62 17294 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17295 ac_status=$?
8a2fc586
AK
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
ec6a6fbe 17299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17300 (exit $ac_status); } && {
17301 test -z "$ac_c_werror_flag" ||
17302 test ! -s conftest.err
17303 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17304 ac_header_compiler=yes
17305else
ec6a6fbe 17306 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17307sed 's/^/| /' conftest.$ac_ext >&5
17308
7a197a62 17309 ac_header_compiler=no
ad6254c5 17310fi
7a197a62
AK
17311
17312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17313{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17314$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17315
17316# Is the header present?
ec6a6fbe
AK
17317{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17318$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17319cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17320/* confdefs.h. */
17321_ACEOF
17322cat confdefs.h >>conftest.$ac_ext
17323cat >>conftest.$ac_ext <<_ACEOF
17324/* end confdefs.h. */
17325#include <$ac_header>
17326_ACEOF
7a197a62
AK
17327if { (ac_try="$ac_cpp conftest.$ac_ext"
17328case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17331esac
ec6a6fbe
AK
17332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17333$as_echo "$ac_try_echo") >&5
7a197a62 17334 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17335 ac_status=$?
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
ec6a6fbe 17339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17340 (exit $ac_status); } >/dev/null && {
17341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17342 test ! -s conftest.err
17343 }; then
ad6254c5
AK
17344 ac_header_preproc=yes
17345else
ec6a6fbe 17346 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17347sed 's/^/| /' conftest.$ac_ext >&5
17348
17349 ac_header_preproc=no
17350fi
7a197a62 17351
ad6254c5 17352rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17353{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17354$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17355
17356# So? What about this header?
8a2fc586
AK
17357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17358 yes:no: )
ec6a6fbe
AK
17359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17360$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17361 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17362$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17363 ac_header_preproc=yes
ad6254c5 17364 ;;
8a2fc586 17365 no:yes:* )
ec6a6fbe
AK
17366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17367$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17369$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17371$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17373$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17375$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17377$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17378
ad6254c5
AK
17379 ;;
17380esac
ec6a6fbe
AK
17381{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17382$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17384 $as_echo_n "(cached) " >&6
ad6254c5 17385else
8a2fc586 17386 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17387fi
ec6a6fbe
AK
17388ac_res=`eval 'as_val=${'$as_ac_Header'}
17389 $as_echo "$as_val"'`
17390 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17391$as_echo "$ac_res" >&6; }
80992638 17392
8106cdd5 17393fi
ec6a6fbe
AK
17394as_val=`eval 'as_val=${'$as_ac_Header'}
17395 $as_echo "$as_val"'`
17396 if test "x$as_val" = x""yes; then
ad6254c5 17397 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17398#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17399_ACEOF
795ca3e5
AK
17400
17401else
ec6a6fbe
AK
17402 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17403$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17404 { (exit 1); exit 1; }; }
795ca3e5
AK
17405fi
17406
ad6254c5 17407done
80992638 17408
ad6254c5 17409fi
80992638 17410
ad6254c5 17411if test x$INTL = xyes; then
83912faa 17412
ad6254c5
AK
17413for ac_header in libintl.h
17414do
ec6a6fbe 17415as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17417 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17418$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17420 $as_echo_n "(cached) " >&6
ad6254c5 17421fi
ec6a6fbe
AK
17422ac_res=`eval 'as_val=${'$as_ac_Header'}
17423 $as_echo "$as_val"'`
17424 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17425$as_echo "$ac_res" >&6; }
83912faa 17426else
ad6254c5 17427 # Is the header compilable?
ec6a6fbe
AK
17428{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17429$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17430cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17431/* confdefs.h. */
17432_ACEOF
17433cat confdefs.h >>conftest.$ac_ext
17434cat >>conftest.$ac_ext <<_ACEOF
17435/* end confdefs.h. */
17436$ac_includes_default
17437#include <$ac_header>
17438_ACEOF
17439rm -f conftest.$ac_objext
7a197a62
AK
17440if { (ac_try="$ac_compile"
17441case "(($ac_try" in
17442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443 *) ac_try_echo=$ac_try;;
17444esac
ec6a6fbe
AK
17445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17446$as_echo "$ac_try_echo") >&5
7a197a62 17447 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17448 ac_status=$?
8a2fc586
AK
17449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
ec6a6fbe 17452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17453 (exit $ac_status); } && {
17454 test -z "$ac_c_werror_flag" ||
17455 test ! -s conftest.err
17456 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17457 ac_header_compiler=yes
17458else
ec6a6fbe 17459 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
7a197a62 17462 ac_header_compiler=no
ad6254c5 17463fi
7a197a62
AK
17464
17465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17466{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17467$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17468
17469# Is the header present?
ec6a6fbe
AK
17470{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17471$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17472cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17473/* confdefs.h. */
17474_ACEOF
17475cat confdefs.h >>conftest.$ac_ext
17476cat >>conftest.$ac_ext <<_ACEOF
17477/* end confdefs.h. */
17478#include <$ac_header>
17479_ACEOF
7a197a62
AK
17480if { (ac_try="$ac_cpp conftest.$ac_ext"
17481case "(($ac_try" in
17482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17483 *) ac_try_echo=$ac_try;;
17484esac
ec6a6fbe
AK
17485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17486$as_echo "$ac_try_echo") >&5
7a197a62 17487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17488 ac_status=$?
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
ec6a6fbe 17492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17493 (exit $ac_status); } >/dev/null && {
17494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17495 test ! -s conftest.err
17496 }; then
ad6254c5
AK
17497 ac_header_preproc=yes
17498else
ec6a6fbe 17499 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 ac_header_preproc=no
17503fi
7a197a62 17504
ad6254c5 17505rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17506{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17507$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17508
17509# So? What about this header?
8a2fc586
AK
17510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17511 yes:no: )
ec6a6fbe
AK
17512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17513$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17515$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17516 ac_header_preproc=yes
ad6254c5 17517 ;;
8a2fc586 17518 no:yes:* )
ec6a6fbe
AK
17519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17520$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17522$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17524$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17526$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17528$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17530$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17531
ad6254c5
AK
17532 ;;
17533esac
ec6a6fbe
AK
17534{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17535$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17537 $as_echo_n "(cached) " >&6
80992638 17538else
8a2fc586 17539 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17540fi
ec6a6fbe
AK
17541ac_res=`eval 'as_val=${'$as_ac_Header'}
17542 $as_echo "$as_val"'`
17543 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17544$as_echo "$ac_res" >&6; }
83912faa 17545
69792976 17546fi
ec6a6fbe
AK
17547as_val=`eval 'as_val=${'$as_ac_Header'}
17548 $as_echo "$as_val"'`
17549 if test "x$as_val" = x""yes; then
ad6254c5 17550 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17551#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17552_ACEOF
69792976 17553
69792976 17554else
ec6a6fbe
AK
17555 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17556$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17557 { (exit 1); exit 1; }; }
80992638
AK
17558fi
17559
ad6254c5 17560done
69792976 17561
ad6254c5
AK
17562fi
17563
a5f46f6a
AK
17564if test x$UDEV_SYNC = xyes; then
17565
17566
17567for ac_header in sys/ipc.h sys/sem.h
17568do
17569as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17572$as_echo_n "checking for $ac_header... " >&6; }
17573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17574 $as_echo_n "(cached) " >&6
17575fi
17576ac_res=`eval 'as_val=${'$as_ac_Header'}
17577 $as_echo "$as_val"'`
17578 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17579$as_echo "$ac_res" >&6; }
17580else
17581 # Is the header compilable?
17582{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17583$as_echo_n "checking $ac_header usability... " >&6; }
17584cat >conftest.$ac_ext <<_ACEOF
17585/* confdefs.h. */
17586_ACEOF
17587cat confdefs.h >>conftest.$ac_ext
17588cat >>conftest.$ac_ext <<_ACEOF
17589/* end confdefs.h. */
17590$ac_includes_default
17591#include <$ac_header>
17592_ACEOF
17593rm -f conftest.$ac_objext
17594if { (ac_try="$ac_compile"
17595case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17598esac
17599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17600$as_echo "$ac_try_echo") >&5
17601 (eval "$ac_compile") 2>conftest.er1
17602 ac_status=$?
17603 grep -v '^ *+' conftest.er1 >conftest.err
17604 rm -f conftest.er1
17605 cat conftest.err >&5
17606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); } && {
17608 test -z "$ac_c_werror_flag" ||
17609 test ! -s conftest.err
17610 } && test -s conftest.$ac_objext; then
17611 ac_header_compiler=yes
17612else
17613 $as_echo "$as_me: failed program was:" >&5
17614sed 's/^/| /' conftest.$ac_ext >&5
17615
17616 ac_header_compiler=no
17617fi
17618
17619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17620{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17621$as_echo "$ac_header_compiler" >&6; }
17622
17623# Is the header present?
17624{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17625$as_echo_n "checking $ac_header presence... " >&6; }
17626cat >conftest.$ac_ext <<_ACEOF
17627/* confdefs.h. */
17628_ACEOF
17629cat confdefs.h >>conftest.$ac_ext
17630cat >>conftest.$ac_ext <<_ACEOF
17631/* end confdefs.h. */
17632#include <$ac_header>
17633_ACEOF
17634if { (ac_try="$ac_cpp conftest.$ac_ext"
17635case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17638esac
17639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17640$as_echo "$ac_try_echo") >&5
17641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } >/dev/null && {
17648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17649 test ! -s conftest.err
17650 }; then
17651 ac_header_preproc=yes
17652else
17653 $as_echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 ac_header_preproc=no
17657fi
17658
17659rm -f conftest.err conftest.$ac_ext
17660{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17661$as_echo "$ac_header_preproc" >&6; }
17662
17663# So? What about this header?
17664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17665 yes:no: )
17666 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17667$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17669$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17670 ac_header_preproc=yes
17671 ;;
17672 no:yes:* )
17673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17674$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17676$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17678$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17680$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17682$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17684$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17685
17686 ;;
17687esac
17688{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17689$as_echo_n "checking for $ac_header... " >&6; }
17690if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17691 $as_echo_n "(cached) " >&6
17692else
17693 eval "$as_ac_Header=\$ac_header_preproc"
17694fi
17695ac_res=`eval 'as_val=${'$as_ac_Header'}
17696 $as_echo "$as_val"'`
17697 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17698$as_echo "$ac_res" >&6; }
17699
17700fi
17701as_val=`eval 'as_val=${'$as_ac_Header'}
17702 $as_echo "$as_val"'`
17703 if test "x$as_val" = x""yes; then
17704 cat >>confdefs.h <<_ACEOF
17705#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17706_ACEOF
17707
17708else
17709 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17710$as_echo "$as_me: error: bailing out" >&2;}
17711 { (exit 1); exit 1; }; }
17712fi
17713
17714done
17715
17716fi
17717
a653923f
AK
17718################################################################################
17719# Extract the first word of "modprobe", so it can be a program name with args.
17720set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17722$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17723if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17724 $as_echo_n "(cached) " >&6
72b2cb61
AK
17725else
17726 case $MODPROBE_CMD in
17727 [\\/]* | ?:[\\/]*)
17728 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17729 ;;
17730 *)
17731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17732for as_dir in $PATH
17733do
17734 IFS=$as_save_IFS
17735 test -z "$as_dir" && as_dir=.
17736 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17738 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17740 break 2
17741 fi
17742done
17743done
7a197a62 17744IFS=$as_save_IFS
72b2cb61
AK
17745
17746 ;;
17747esac
17748fi
17749MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17750if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17751 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17752$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17753else
ec6a6fbe
AK
17754 { $as_echo "$as_me:$LINENO: result: no" >&5
17755$as_echo "no" >&6; }
72b2cb61
AK
17756fi
17757
a653923f 17758
7a197a62 17759
a653923f 17760if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17761
17762cat >>confdefs.h <<_ACEOF
17763#define MODPROBE_CMD "$MODPROBE_CMD"
17764_ACEOF
17765
a653923f
AK
17766fi
17767
b5c2529b 17768
a9b601e2
ZK
17769lvm_exec_prefix=$exec_prefix
17770test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17771test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17772
b5c2529b 17773cat >>confdefs.h <<_ACEOF
a9b601e2 17774#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17775_ACEOF
17776
17777
17778if test "$CLVMD" != none; then
17779 clvmd_prefix=$ac_default_prefix
17780 test "$prefix" != NONE && clvmd_prefix=$prefix
17781
17782cat >>confdefs.h <<_ACEOF
17783#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17784_ACEOF
17785
17786fi
17787
80992638 17788################################################################################
93bd259b
AK
17789if test "$BUILD_DMEVENTD" = yes; then
17790
17791# Check whether --with-dmeventd-pidfile was given.
17792if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17793 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17794else
71082be4 17795 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17796fi
17797
93bd259b 17798
71082be4
ZK
17799cat >>confdefs.h <<_ACEOF
17800#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17801_ACEOF
93bd259b 17802
71082be4 17803fi
93bd259b
AK
17804
17805if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17806
17807# Check whether --with-dmeventd-path was given.
17808if test "${with_dmeventd_path+set}" = set; then
71082be4 17809 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 17810else
71082be4 17811 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17812fi
17813
93bd259b 17814
71082be4
ZK
17815cat >>confdefs.h <<_ACEOF
17816#define DMEVENTD_PATH "$DMEVENTD_PATH"
17817_ACEOF
3399ae32 17818
71082be4 17819fi
3399ae32 17820
8bae0a1e
AK
17821
17822
17823
17824# Check whether --with-default-run-dir was given.
17825if test "${with_default_run_dir+set}" = set; then
17826 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
17827else
17828 DEFAULT_RUN_DIR="/var/run/lvm"
17829fi
17830
17831cat >>confdefs.h <<_ACEOF
17832#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
17833_ACEOF
17834
17835
71082be4 17836################################################################################
3399ae32
AK
17837
17838# Check whether --with-default-system-dir was given.
17839if test "${with_default_system_dir+set}" = set; then
71082be4 17840 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 17841else
71082be4 17842 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
17843fi
17844
71082be4 17845
3399ae32
AK
17846cat >>confdefs.h <<_ACEOF
17847#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
17848_ACEOF
17849
17850
17851
3399ae32
AK
17852# Check whether --with-default-archive-subdir was given.
17853if test "${with_default_archive_subdir+set}" = set; then
71082be4 17854 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 17855else
71082be4 17856 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
17857fi
17858
71082be4 17859
3399ae32
AK
17860cat >>confdefs.h <<_ACEOF
17861#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
17862_ACEOF
17863
17864
17865
3399ae32
AK
17866# Check whether --with-default-backup-subdir was given.
17867if test "${with_default_backup_subdir+set}" = set; then
71082be4 17868 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 17869else
71082be4 17870 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
17871fi
17872
71082be4 17873
3399ae32
AK
17874cat >>confdefs.h <<_ACEOF
17875#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
17876_ACEOF
17877
17878
17879
3399ae32
AK
17880# Check whether --with-default-cache-subdir was given.
17881if test "${with_default_cache_subdir+set}" = set; then
71082be4 17882 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 17883else
71082be4 17884 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
17885fi
17886
71082be4 17887
3399ae32
AK
17888cat >>confdefs.h <<_ACEOF
17889#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
17890_ACEOF
17891
17892
17893
3399ae32
AK
17894# Check whether --with-default-locking-dir was given.
17895if test "${with_default_locking_dir+set}" = set; then
71082be4 17896 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 17897else
71082be4 17898 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
17899fi
17900
71082be4 17901
3399ae32
AK
17902cat >>confdefs.h <<_ACEOF
17903#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
17904_ACEOF
17905
17906
93bd259b 17907################################################################################
ec6a6fbe
AK
17908{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
17909$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
17910
17911# Check whether --with-interface was given.
17912if test "${with_interface+set}" = set; then
71082be4 17913 withval=$with_interface; interface=$withval
93bd259b 17914else
71082be4 17915 interface=ioctl
93bd259b
AK
17916fi
17917
17918if [ "x$interface" != xioctl ];
17919then
ec6a6fbe
AK
17920 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
17921$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
17922 { (exit 1); exit 1; }; }
17923fi
ec6a6fbe
AK
17924{ $as_echo "$as_me:$LINENO: result: $interface" >&5
17925$as_echo "$interface" >&6; }
93bd259b
AK
17926
17927################################################################################
db8b5af9 17928DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
17929
17930cat >>confdefs.h <<_ACEOF
17931#define DM_LIB_VERSION $DM_LIB_VERSION
17932_ACEOF
17933
17934
db8b5af9 17935DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 17936
db8b5af9 17937LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 17938
db8b5af9 17939VER=`cat "$srcdir"/VERSION`
bf456146 17940LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
17941VER=`echo "$VER" | $AWK '{print $1}'`
17942LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
17943VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
17944LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
17945LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
17946LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
17947LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 17948
80992638 17949################################################################################
fae0c576 17950
83912faa 17951
795ca3e5
AK
17952
17953
17954
17955
17956
17957
5a52dca9 17958
8ef2b021 17959
199e490e 17960
69792976
AK
17961
17962
17963
d0191583 17964
69792976 17965
8106cdd5
AK
17966
17967
17968
17969
17970
d68a82ec 17971
036f273a 17972
7d1552c9 17973
8106cdd5 17974
0a62c911 17975
8106cdd5 17976
4a7f3eb2 17977
4922197a
AK
17978
17979
d8ac0fbc 17980
1a9ea74d 17981
8a2fc586
AK
17982
17983
d0191583 17984
93bd259b
AK
17985
17986
17987
17988
17989
d0191583
JM
17990
17991
17992
17993
17994
8a2fc586 17995
19a2c6e0 17996
f7f0854e
ZK
17997
17998
3ceb7608 17999
8ce0cbda 18000
8b1a3214 18001
ec6a6fbe
AK
18002
18003
18004
18005
e2997b73
AK
18006
18007
18008
18009
18010
18011
a946372e
AK
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
ec6a6fbe 18023
33f732c5 18024
66e941e8 18025
d3c8211f 18026
7e3fe830 18027
a5f46f6a
AK
18028
18029
18030
572fefeb 18031
90c80887 18032
3399ae32
AK
18033
18034
18035
18036
18037
90c80887 18038
bf456146 18039
e1b8a236 18040
0878503f 18041
8fea97b7 18042
54b362f9 18043
68f2de6d
AK
18044
18045
80992638 18046################################################################################
54b362f9 18047ac_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"
7a197a62 18048
ad6254c5 18049cat >confcache <<\_ACEOF
795ca3e5
AK
18050# This file is a shell script that caches the results of configure
18051# tests run on this system so they can be shared between configure
ad6254c5
AK
18052# scripts and configure runs, see configure's option --config-cache.
18053# It is not useful on other systems. If it contains results you don't
18054# want to keep, you may remove or edit it.
795ca3e5 18055#
ad6254c5
AK
18056# config.status only pays attention to the cache file if you give it
18057# the --recheck option to rerun configure.
795ca3e5 18058#
ad6254c5
AK
18059# `ac_cv_env_foo' variables (set or unset) will be overridden when
18060# loading this file, other *unset* `ac_cv_foo' will be assigned the
18061# following values.
18062
18063_ACEOF
18064
795ca3e5
AK
18065# The following way of writing the cache mishandles newlines in values,
18066# but we know of no workaround that is simple, portable, and efficient.
7a197a62 18067# So, we kill variables containing newlines.
795ca3e5
AK
18068# Ultrix sh set writes to stderr and can't be redirected directly,
18069# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
18070(
18071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18072 eval ac_val=\$$ac_var
18073 case $ac_val in #(
18074 *${as_nl}*)
18075 case $ac_var in #(
ec6a6fbe
AK
18076 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18077$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
18078 esac
18079 case $ac_var in #(
18080 _ | IFS | as_nl) ;; #(
ec6a6fbe 18081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
18082 *) $as_unset $ac_var ;;
18083 esac ;;
18084 esac
18085 done
18086
ad6254c5 18087 (set) 2>&1 |
7a197a62
AK
18088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18089 *${as_nl}ac_space=\ *)
ad6254c5
AK
18090 # `set' does not quote correctly, so add quotes (double-quote
18091 # substitution turns \\\\ into \\, and sed turns \\ into \).
18092 sed -n \
8a2fc586
AK
18093 "s/'/'\\\\''/g;
18094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 18095 ;; #(
ad6254c5
AK
18096 *)
18097 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 18098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 18099 ;;
7a197a62
AK
18100 esac |
18101 sort
18102) |
ad6254c5 18103 sed '
7a197a62 18104 /^ac_cv_env_/b end
ad6254c5 18105 t clear
7a197a62 18106 :clear
ad6254c5
AK
18107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18108 t end
7a197a62
AK
18109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18110 :end' >>confcache
18111if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18112 if test -w "$cache_file"; then
18113 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
18114 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18115$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 18116 cat confcache >$cache_file
795ca3e5 18117 else
ec6a6fbe
AK
18118 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18119$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
18120 fi
18121fi
18122rm -f confcache
18123
795ca3e5
AK
18124test "x$prefix" = xNONE && prefix=$ac_default_prefix
18125# Let make expand exec_prefix.
18126test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18127
72b2cb61 18128DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18129
18130ac_libobjs=
18131ac_ltlibobjs=
18132for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18133 # 1. Remove the extension, and $U if already installed.
7a197a62 18134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18137 # will be set to the directory where LIBOBJS objects are built.
18138 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18139 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18140done
18141LIBOBJS=$ac_libobjs
80992638 18142
ad6254c5
AK
18143LTLIBOBJS=$ac_ltlibobjs
18144
18145
18146
18147: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18148ac_write_fail=0
ad6254c5
AK
18149ac_clean_files_save=$ac_clean_files
18150ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18151{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18152$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18153cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18154#! $SHELL
18155# Generated by $as_me.
795ca3e5 18156# Run this file to recreate the current configuration.
795ca3e5 18157# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18158# configure, is in config.log if it exists.
18159
18160debug=false
18161ac_cs_recheck=false
18162ac_cs_silent=false
18163SHELL=\${CONFIG_SHELL-$SHELL}
18164_ACEOF
18165
ec6a6fbe 18166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18167## --------------------- ##
18168## M4sh Initialization. ##
18169## --------------------- ##
18170
25fbec5b
AK
18171# Be more Bourne compatible
18172DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18173if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18174 emulate sh
18175 NULLCMD=:
ec6a6fbe 18176 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18177 # is contrary to our usage. Disable this feature.
18178 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18179 setopt NO_GLOB_SUBST
18180else
25fbec5b
AK
18181 case `(set -o) 2>/dev/null` in
18182 *posix*) set -o posix ;;
18183esac
18184
7a197a62 18185fi
25fbec5b
AK
18186
18187
7a197a62
AK
18188
18189
18190# PATH needs CR
18191# Avoid depending upon Character Ranges.
18192as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18193as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18194as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18195as_cr_digits='0123456789'
18196as_cr_alnum=$as_cr_Letters$as_cr_digits
18197
ec6a6fbe
AK
18198as_nl='
18199'
18200export as_nl
18201# Printing a long string crashes Solaris 7 /usr/bin/printf.
18202as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18203as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18204as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18205if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18206 as_echo='printf %s\n'
18207 as_echo_n='printf %s'
18208else
18209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18211 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18212 else
ec6a6fbe
AK
18213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18214 as_echo_n_body='eval
18215 arg=$1;
18216 case $arg in
18217 *"$as_nl"*)
18218 expr "X$arg" : "X\\(.*\\)$as_nl";
18219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18220 esac;
18221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18222 '
18223 export as_echo_n_body
18224 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18225 fi
ec6a6fbe
AK
18226 export as_echo_body
18227 as_echo='sh -c $as_echo_body as_echo'
18228fi
18229
18230# The user is always right.
18231if test "${PATH_SEPARATOR+set}" != set; then
18232 PATH_SEPARATOR=:
18233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18235 PATH_SEPARATOR=';'
18236 }
ad6254c5
AK
18237fi
18238
18239# Support unset when possible.
8a2fc586 18240if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18241 as_unset=unset
18242else
18243 as_unset=false
18244fi
8106cdd5 18245
ad6254c5 18246
7a197a62
AK
18247# IFS
18248# We need space, tab and new line, in precisely that order. Quoting is
18249# there to prevent editors from complaining about space-tab.
18250# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18251# splitting by setting IFS to empty value.)
7a197a62
AK
18252IFS=" "" $as_nl"
18253
18254# Find who we are. Look in the path if we contain no directory separator.
18255case $0 in
18256 *[\\/]* ) as_myself=$0 ;;
18257 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18258for as_dir in $PATH
18259do
18260 IFS=$as_save_IFS
18261 test -z "$as_dir" && as_dir=.
18262 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18263done
18264IFS=$as_save_IFS
18265
18266 ;;
18267esac
18268# We did not find ourselves, most probably we were run as `sh COMMAND'
18269# in which case we are not to be found in the path.
18270if test "x$as_myself" = x; then
18271 as_myself=$0
18272fi
18273if test ! -f "$as_myself"; then
ec6a6fbe 18274 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18275 { (exit 1); exit 1; }
18276fi
18277
ad6254c5 18278# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18279for as_var in ENV MAIL MAILPATH
18280do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18281done
ad6254c5
AK
18282PS1='$ '
18283PS2='> '
18284PS4='+ '
18285
18286# NLS nuisances.
ec6a6fbe
AK
18287LC_ALL=C
18288export LC_ALL
18289LANGUAGE=C
18290export LANGUAGE
8106cdd5 18291
ad6254c5 18292# Required to use basename.
7a197a62
AK
18293if expr a : '\(a\)' >/dev/null 2>&1 &&
18294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18295 as_expr=expr
18296else
18297 as_expr=false
18298fi
8106cdd5 18299
7a197a62 18300if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18301 as_basename=basename
18302else
18303 as_basename=false
18304fi
18305
18306
18307# Name of the executable.
7a197a62 18308as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18309$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18310 X"$0" : 'X\(//\)$' \| \
7a197a62 18311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18312$as_echo X/"$0" |
7a197a62
AK
18313 sed '/^.*\/\([^/][^/]*\)\/*$/{
18314 s//\1/
18315 q
18316 }
18317 /^X\/\(\/\/\)$/{
18318 s//\1/
18319 q
18320 }
18321 /^X\/\(\/\).*/{
18322 s//\1/
18323 q
18324 }
18325 s/.*/./; q'`
ad6254c5 18326
7a197a62
AK
18327# CDPATH.
18328$as_unset CDPATH
ad6254c5
AK
18329
18330
ad6254c5 18331
ad6254c5
AK
18332 as_lineno_1=$LINENO
18333 as_lineno_2=$LINENO
ad6254c5 18334 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18336
ad6254c5
AK
18337 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18338 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18339 # line-number line after each line using $LINENO; the second 'sed'
18340 # does the real work. The second script uses 'N' to pair each
18341 # line-number line with the line containing $LINENO, and appends
18342 # trailing '-' during substitution so that $LINENO is not a special
18343 # case at line end.
ad6254c5 18344 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18345 # scripts with optimization help from Paolo Bonzini. Blame Lee
18346 # E. McMahon (1931-1989) for sed's syntax. :-)
18347 sed -n '
18348 p
18349 /[$]LINENO/=
18350 ' <$as_myself |
ad6254c5 18351 sed '
7a197a62
AK
18352 s/[$]LINENO.*/&-/
18353 t lineno
18354 b
18355 :lineno
ad6254c5 18356 N
7a197a62
AK
18357 :loop
18358 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18359 t loop
7a197a62 18360 s/-\n.*//
ad6254c5 18361 ' >$as_me.lineno &&
7a197a62 18362 chmod +x "$as_me.lineno" ||
ec6a6fbe 18363 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18364 { (exit 1); exit 1; }; }
18365
18366 # Don't try to exec as it changes $[0], causing all sort of problems
18367 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18368 # original and so on. Autoconf is especially sensitive to this).
18369 . "./$as_me.lineno"
ad6254c5
AK
18370 # Exit status is that of the last command.
18371 exit
18372}
18373
18374
7a197a62
AK
18375if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18376 as_dirname=dirname
18377else
18378 as_dirname=false
18379fi
18380
18381ECHO_C= ECHO_N= ECHO_T=
18382case `echo -n x` in
18383-n*)
18384 case `echo 'x\c'` in
18385 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18386 *) ECHO_C='\c';;
18387 esac;;
18388*)
18389 ECHO_N='-n';;
ad6254c5 18390esac
7a197a62
AK
18391if expr a : '\(a\)' >/dev/null 2>&1 &&
18392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18393 as_expr=expr
18394else
18395 as_expr=false
18396fi
80992638 18397
ad6254c5 18398rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18399if test -d conf$$.dir; then
18400 rm -f conf$$.dir/conf$$.file
18401else
18402 rm -f conf$$.dir
ec6a6fbe
AK
18403 mkdir conf$$.dir 2>/dev/null
18404fi
18405if (echo >conf$$.file) 2>/dev/null; then
18406 if ln -s conf$$.file conf$$ 2>/dev/null; then
18407 as_ln_s='ln -s'
18408 # ... but there are two gotchas:
18409 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18410 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18411 # In both cases, we have to default to `cp -p'.
18412 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18413 as_ln_s='cp -p'
18414 elif ln conf$$.file conf$$ 2>/dev/null; then
18415 as_ln_s=ln
18416 else
ad6254c5 18417 as_ln_s='cp -p'
ec6a6fbe 18418 fi
ad6254c5
AK
18419else
18420 as_ln_s='cp -p'
18421fi
7a197a62
AK
18422rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18423rmdir conf$$.dir 2>/dev/null
8106cdd5 18424
ad6254c5
AK
18425if mkdir -p . 2>/dev/null; then
18426 as_mkdir_p=:
18427else
8a2fc586 18428 test -d ./-p && rmdir ./-p
ad6254c5
AK
18429 as_mkdir_p=false
18430fi
18431
25fbec5b
AK
18432if test -x / >/dev/null 2>&1; then
18433 as_test_x='test -x'
7a197a62 18434else
25fbec5b
AK
18435 if ls -dL / >/dev/null 2>&1; then
18436 as_ls_L_option=L
18437 else
18438 as_ls_L_option=
18439 fi
18440 as_test_x='
18441 eval sh -c '\''
18442 if test -d "$1"; then
ec6a6fbe 18443 test -d "$1/.";
25fbec5b
AK
18444 else
18445 case $1 in
ec6a6fbe 18446 -*)set "./$1";;
25fbec5b
AK
18447 esac;
18448 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18449 ???[sx]*):;;*)false;;esac;fi
18450 '\'' sh
18451 '
7a197a62 18452fi
25fbec5b 18453as_executable_p=$as_test_x
ad6254c5
AK
18454
18455# Sed expression to map a string onto a valid CPP name.
8a2fc586 18456as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18457
18458# Sed expression to map a string onto a valid variable name.
8a2fc586 18459as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18460
18461
ad6254c5
AK
18462exec 6>&1
18463
7a197a62 18464# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18465# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18466# values after options handling.
18467ac_log="
ad6254c5 18468This file was extended by $as_me, which was
ec6a6fbe 18469generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18470
18471 CONFIG_FILES = $CONFIG_FILES
18472 CONFIG_HEADERS = $CONFIG_HEADERS
18473 CONFIG_LINKS = $CONFIG_LINKS
18474 CONFIG_COMMANDS = $CONFIG_COMMANDS
18475 $ $0 $@
18476
7a197a62
AK
18477on `(hostname || uname -n) 2>/dev/null | sed 1q`
18478"
18479
ad6254c5
AK
18480_ACEOF
18481
ec6a6fbe
AK
18482case $ac_config_files in *"
18483"*) set x $ac_config_files; shift; ac_config_files=$*;;
18484esac
18485
18486case $ac_config_headers in *"
18487"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18488esac
18489
18490
18491cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18492# Files that config.status was made for.
68f2de6d
AK
18493config_files="$ac_config_files"
18494config_headers="$ac_config_headers"
ad6254c5 18495
7a197a62 18496_ACEOF
ad6254c5 18497
ec6a6fbe 18498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18499ac_cs_usage="\
18500\`$as_me' instantiates files from templates according to the
18501current configuration.
18502
ec6a6fbe 18503Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18504
18505 -h, --help print this help, then exit
25fbec5b 18506 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18507 -q, --quiet, --silent
18508 do not print progress messages
ad6254c5
AK
18509 -d, --debug don't remove temporary files
18510 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18511 --file=FILE[:TEMPLATE]
18512 instantiate the configuration file FILE
18513 --header=FILE[:TEMPLATE]
18514 instantiate the configuration header FILE
ad6254c5
AK
18515
18516Configuration files:
18517$config_files
18518
72b2cb61
AK
18519Configuration headers:
18520$config_headers
18521
ad6254c5 18522Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18523
7a197a62 18524_ACEOF
ec6a6fbe 18525cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18526ac_cs_version="\\
18527config.status
ec6a6fbe
AK
18528configured by $0, generated by GNU Autoconf 2.63,
18529 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18530
ec6a6fbe 18531Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18532This config.status script is free software; the Free Software Foundation
18533gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18534
18535ac_pwd='$ac_pwd'
18536srcdir='$srcdir'
18537INSTALL='$INSTALL'
fddafd51 18538MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18539AWK='$AWK'
18540test -n "\$AWK" || AWK=awk
ad6254c5
AK
18541_ACEOF
18542
ec6a6fbe
AK
18543cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18544# The default lists apply if the user does not specify any file.
ad6254c5
AK
18545ac_need_defaults=:
18546while test $# != 0
18547do
18548 case $1 in
18549 --*=*)
7a197a62
AK
18550 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18551 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18552 ac_shift=:
18553 ;;
7a197a62 18554 *)
ad6254c5
AK
18555 ac_option=$1
18556 ac_optarg=$2
18557 ac_shift=shift
18558 ;;
ad6254c5
AK
18559 esac
18560
18561 case $ac_option in
18562 # Handling of the options.
ad6254c5
AK
18563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18564 ac_cs_recheck=: ;;
7a197a62 18565 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18566 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18567 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18568 debug=: ;;
18569 --file | --fil | --fi | --f )
18570 $ac_shift
ec6a6fbe
AK
18571 case $ac_optarg in
18572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18573 esac
18574 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18575 ac_need_defaults=false;;
18576 --header | --heade | --head | --hea )
18577 $ac_shift
ec6a6fbe
AK
18578 case $ac_optarg in
18579 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18580 esac
18581 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18582 ac_need_defaults=false;;
7a197a62
AK
18583 --he | --h)
18584 # Conflict between --help and --header
ec6a6fbe 18585 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18586Try \`$0 --help' for more information." >&2
18587 { (exit 1); exit 1; }; };;
18588 --help | --hel | -h )
ec6a6fbe 18589 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18591 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18592 ac_cs_silent=: ;;
18593
18594 # This is an error.
ec6a6fbe 18595 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18596Try \`$0 --help' for more information." >&2
ad6254c5
AK
18597 { (exit 1); exit 1; }; } ;;
18598
7a197a62
AK
18599 *) ac_config_targets="$ac_config_targets $1"
18600 ac_need_defaults=false ;;
ad6254c5
AK
18601
18602 esac
18603 shift
18604done
18605
18606ac_configure_extra_args=
18607
18608if $ac_cs_silent; then
18609 exec 6>/dev/null
18610 ac_configure_extra_args="$ac_configure_extra_args --silent"
18611fi
18612
18613_ACEOF
ec6a6fbe 18614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18615if \$ac_cs_recheck; then
ec6a6fbe
AK
18616 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18617 shift
18618 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18619 CONFIG_SHELL='$SHELL'
7a197a62 18620 export CONFIG_SHELL
ec6a6fbe 18621 exec "\$@"
ad6254c5
AK
18622fi
18623
18624_ACEOF
ec6a6fbe 18625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18626exec 5>>config.log
18627{
18628 echo
18629 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18630## Running $as_me. ##
18631_ASBOX
ec6a6fbe 18632 $as_echo "$ac_log"
7a197a62 18633} >&5
ad6254c5 18634
7a197a62 18635_ACEOF
ec6a6fbe 18636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18637_ACEOF
ad6254c5 18638
ec6a6fbe 18639cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18640
18641# Handling of arguments.
ad6254c5
AK
18642for ac_config_target in $ac_config_targets
18643do
7a197a62
AK
18644 case $ac_config_target in
18645 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18646 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18647 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18648 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18649 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18650 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18651 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18652 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18653 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18654 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18655 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18656 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18657 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18658 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18659 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18660 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18661 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18662 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18663 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18664 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18665 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18666 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18667 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18668 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18669 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18670 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18671 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18672 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18673 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18674 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18675 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18676 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18677 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18678 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18679 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18680 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18681 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18682 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
18683 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18684 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
7a197a62 18685
ec6a6fbe
AK
18686 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18687$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18688 { (exit 1); exit 1; }; };;
80992638 18689 esac
ad6254c5
AK
18690done
18691
7a197a62 18692
ad6254c5
AK
18693# If the user did not use the arguments to specify the items to instantiate,
18694# then the envvar interface is used. Set only those that are not.
18695# We use the long form for the default assignment because of an extremely
18696# bizarre bug on SunOS 4.1.3.
18697if $ac_need_defaults; then
18698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18700fi
18701
18702# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18703# simply because there is no reason against having it here, and in addition,
ad6254c5 18704# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18705# Hook for its removal unless debugging.
18706# Note that there is a small window in which the directory will not be cleaned:
18707# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18708$debug ||
18709{
7a197a62
AK
18710 tmp=
18711 trap 'exit_status=$?
18712 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18713' 0
ad6254c5
AK
18714 trap '{ (exit 1); exit 1; }' 1 2 13 15
18715}
ad6254c5
AK
18716# Create a (secure) tmp directory for tmp files.
18717
18718{
7a197a62 18719 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18720 test -n "$tmp" && test -d "$tmp"
18721} ||
18722{
7a197a62
AK
18723 tmp=./conf$$-$RANDOM
18724 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18725} ||
18726{
ec6a6fbe 18727 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18728 { (exit 1); exit 1; }
18729}
18730
ec6a6fbe
AK
18731# Set up the scripts for CONFIG_FILES section.
18732# No need to generate them if there are no CONFIG_FILES.
18733# This happens for instance with `./config.status config.h'.
1995c9ff 18734if test -n "$CONFIG_FILES"; then
7a197a62 18735
68f2de6d 18736
ec6a6fbe
AK
18737ac_cr='\r'
18738ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18739if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18740 ac_cs_awk_cr='\\r'
18741else
18742 ac_cs_awk_cr=$ac_cr
1995c9ff 18743fi
7a197a62 18744
ec6a6fbe 18745echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18746_ACEOF
7a197a62 18747
8106cdd5 18748
ec6a6fbe
AK
18749{
18750 echo "cat >conf$$subs.awk <<_ACEOF" &&
18751 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18752 echo "_ACEOF"
18753} >conf$$subs.sh ||
18754 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18755$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18756 { (exit 1); exit 1; }; }
18757ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18758ac_delim='%!_!# '
18759for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18760 . ./conf$$subs.sh ||
18761 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18762$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18763 { (exit 1); exit 1; }; }
18764
18765 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18766 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18767 break
18768 elif $ac_last_try; then
ec6a6fbe
AK
18769 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18770$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18771 { (exit 1); exit 1; }; }
18772 else
18773 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18774 fi
18775done
ec6a6fbe
AK
18776rm -f conf$$subs.sh
18777
18778cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18779cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18780_ACEOF
18781sed -n '
18782h
18783s/^/S["/; s/!.*/"]=/
18784p
18785g
18786s/^[^!]*!//
18787:repl
18788t repl
18789s/'"$ac_delim"'$//
18790t delim
18791:nl
18792h
18793s/\(.\{148\}\).*/\1/
18794t more1
18795s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18796p
18797n
18798b repl
18799:more1
18800s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18801p
18802g
18803s/.\{148\}//
18804t nl
18805:delim
18806h
18807s/\(.\{148\}\).*/\1/
18808t more2
18809s/["\\]/\\&/g; s/^/"/; s/$/"/
18810p
18811b
18812:more2
18813s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18814p
18815g
18816s/.\{148\}//
18817t delim
18818' <conf$$subs.awk | sed '
18819/^[^""]/{
18820 N
18821 s/\n//
18822}
18823' >>$CONFIG_STATUS || ac_write_fail=1
18824rm -f conf$$subs.awk
18825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18826_ACAWK
18827cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18828 for (key in S) S_is_set[key] = 1
18829 FS = "\a"
7a197a62 18830
ec6a6fbe
AK
18831}
18832{
18833 line = $ 0
18834 nfields = split(line, field, "@")
18835 substed = 0
18836 len = length(field[1])
18837 for (i = 2; i < nfields; i++) {
18838 key = field[i]
18839 keylen = length(key)
18840 if (S_is_set[key]) {
18841 value = S[key]
18842 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18843 len += length(value) + length(field[++i])
18844 substed = 1
18845 } else
18846 len += 1 + keylen
18847 }
18848
18849 print line
18850}
fddafd51 18851
ec6a6fbe 18852_ACAWK
1995c9ff 18853_ACEOF
ec6a6fbe
AK
18854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18855if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18856 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18857else
18858 cat
18859fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18860 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18861$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18862 { (exit 1); exit 1; }; }
7a197a62
AK
18863_ACEOF
18864
7a197a62
AK
18865# VPATH may cause trouble with some makes, so we remove $(srcdir),
18866# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18867# trailing colons and then remove the whole line if VPATH becomes empty
18868# (actually we leave an empty line to preserve line numbers).
18869if test "x$srcdir" = x.; then
18870 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18871s/:*\$(srcdir):*/:/
18872s/:*\${srcdir}:*/:/
18873s/:*@srcdir@:*/:/
18874s/^\([^=]*=[ ]*\):*/\1/
18875s/:*$//
18876s/^[^=]*=[ ]*$//
18877}'
18878fi
18879
ec6a6fbe 18880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18881fi # test -n "$CONFIG_FILES"
18882
ec6a6fbe
AK
18883# Set up the scripts for CONFIG_HEADERS section.
18884# No need to generate them if there are no CONFIG_HEADERS.
18885# This happens for instance with `./config.status Makefile'.
18886if test -n "$CONFIG_HEADERS"; then
18887cat >"$tmp/defines.awk" <<\_ACAWK ||
18888BEGIN {
18889_ACEOF
18890
18891# Transform confdefs.h into an awk script `defines.awk', embedded as
18892# here-document in config.status, that substitutes the proper values into
18893# config.h.in to produce config.h.
18894
18895# Create a delimiter string that does not exist in confdefs.h, to ease
18896# handling of long lines.
18897ac_delim='%!_!# '
18898for ac_last_try in false false :; do
18899 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18900 if test -z "$ac_t"; then
18901 break
18902 elif $ac_last_try; then
18903 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18904$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18905 { (exit 1); exit 1; }; }
18906 else
18907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18908 fi
18909done
18910
18911# For the awk script, D is an array of macro values keyed by name,
18912# likewise P contains macro parameters if any. Preserve backslash
18913# newline sequences.
18914
18915ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18916sed -n '
18917s/.\{148\}/&'"$ac_delim"'/g
18918t rset
18919:rset
18920s/^[ ]*#[ ]*define[ ][ ]*/ /
18921t def
18922d
18923:def
18924s/\\$//
18925t bsnl
18926s/["\\]/\\&/g
18927s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18928D["\1"]=" \3"/p
18929s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18930d
18931:bsnl
18932s/["\\]/\\&/g
18933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18934D["\1"]=" \3\\\\\\n"\\/p
18935t cont
18936s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18937t cont
18938d
18939:cont
18940n
18941s/.\{148\}/&'"$ac_delim"'/g
18942t clear
18943:clear
18944s/\\$//
18945t bsnlc
18946s/["\\]/\\&/g; s/^/"/; s/$/"/p
18947d
18948:bsnlc
18949s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18950b cont
18951' <confdefs.h | sed '
18952s/'"$ac_delim"'/"\\\
18953"/g' >>$CONFIG_STATUS || ac_write_fail=1
18954
18955cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18956 for (key in D) D_is_set[key] = 1
18957 FS = "\a"
18958}
18959/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18960 line = \$ 0
18961 split(line, arg, " ")
18962 if (arg[1] == "#") {
18963 defundef = arg[2]
18964 mac1 = arg[3]
18965 } else {
18966 defundef = substr(arg[1], 2)
18967 mac1 = arg[2]
18968 }
18969 split(mac1, mac2, "(") #)
18970 macro = mac2[1]
18971 prefix = substr(line, 1, index(line, defundef) - 1)
18972 if (D_is_set[macro]) {
18973 # Preserve the white space surrounding the "#".
18974 print prefix "define", macro P[macro] D[macro]
18975 next
18976 } else {
18977 # Replace #undef with comments. This is necessary, for example,
18978 # in the case of _POSIX_SOURCE, which is predefined and required
18979 # on some systems where configure will not decide to define it.
18980 if (defundef == "undef") {
18981 print "/*", prefix defundef, macro, "*/"
18982 next
18983 }
18984 }
18985}
18986{ print }
18987_ACAWK
18988_ACEOF
18989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18990 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18991$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18992 { (exit 1); exit 1; }; }
18993fi # test -n "$CONFIG_HEADERS"
18994
7a197a62 18995
ec6a6fbe
AK
18996eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18997shift
18998for ac_tag
7a197a62
AK
18999do
19000 case $ac_tag in
19001 :[FHLC]) ac_mode=$ac_tag; continue;;
19002 esac
19003 case $ac_mode$ac_tag in
19004 :[FHL]*:*);;
ec6a6fbe
AK
19005 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19006$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
19007 { (exit 1); exit 1; }; };;
19008 :[FH]-) ac_tag=-:-;;
19009 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19010 esac
19011 ac_save_IFS=$IFS
19012 IFS=:
19013 set x $ac_tag
19014 IFS=$ac_save_IFS
19015 shift
19016 ac_file=$1
19017 shift
19018
19019 case $ac_mode in
19020 :L) ac_source=$1;;
19021 :[FH])
19022 ac_file_inputs=
19023 for ac_f
19024 do
19025 case $ac_f in
19026 -) ac_f="$tmp/stdin";;
19027 *) # Look for the file first in the build tree, then in the source tree
19028 # (if the path is not absolute). The absolute path cannot be DOS-style,
19029 # because $ac_f cannot contain `:'.
19030 test -f "$ac_f" ||
19031 case $ac_f in
19032 [\\/$]*) false;;
19033 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19034 esac ||
ec6a6fbe
AK
19035 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19036$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
19037 { (exit 1); exit 1; }; };;
19038 esac
ec6a6fbe
AK
19039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19040 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
19041 done
19042
19043 # Let's still pretend it is `configure' which instantiates (i.e., don't
19044 # use $as_me), people would be surprised to read:
19045 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
19046 configure_input='Generated from '`
19047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19048 `' by configure.'
7a197a62
AK
19049 if test x"$ac_file" != x-; then
19050 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
19051 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19052$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 19053 fi
ec6a6fbe
AK
19054 # Neutralize special characters interpreted by sed in replacement strings.
19055 case $configure_input in #(
19056 *\&* | *\|* | *\\* )
19057 ac_sed_conf_input=`$as_echo "$configure_input" |
19058 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19059 *) ac_sed_conf_input=$configure_input;;
19060 esac
7a197a62
AK
19061
19062 case $ac_tag in
ec6a6fbe
AK
19063 *:-:* | *:-) cat >"$tmp/stdin" \
19064 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19065$as_echo "$as_me: error: could not create $ac_file" >&2;}
19066 { (exit 1); exit 1; }; } ;;
7a197a62
AK
19067 esac
19068 ;;
80992638 19069 esac
8106cdd5 19070
7a197a62 19071 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 19072$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19073 X"$ac_file" : 'X\(//\)[^/]' \| \
19074 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 19075 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19076$as_echo X"$ac_file" |
7a197a62
AK
19077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19078 s//\1/
19079 q
19080 }
19081 /^X\(\/\/\)[^/].*/{
19082 s//\1/
19083 q
19084 }
19085 /^X\(\/\/\)$/{
19086 s//\1/
19087 q
19088 }
19089 /^X\(\/\).*/{
19090 s//\1/
19091 q
19092 }
19093 s/.*/./; q'`
19094 { as_dir="$ac_dir"
19095 case $as_dir in #(
19096 -*) as_dir=./$as_dir;;
19097 esac
19098 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 19099 as_dirs=
7a197a62
AK
19100 while :; do
19101 case $as_dir in #(
ec6a6fbe 19102 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
19103 *) as_qdir=$as_dir;;
19104 esac
19105 as_dirs="'$as_qdir' $as_dirs"
19106 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 19107$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19108 X"$as_dir" : 'X\(//\)[^/]' \| \
19109 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 19110 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19111$as_echo X"$as_dir" |
7a197a62
AK
19112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19113 s//\1/
19114 q
19115 }
19116 /^X\(\/\/\)[^/].*/{
19117 s//\1/
19118 q
19119 }
19120 /^X\(\/\/\)$/{
19121 s//\1/
19122 q
19123 }
19124 /^X\(\/\).*/{
19125 s//\1/
19126 q
19127 }
19128 s/.*/./; q'`
19129 test -d "$as_dir" && break
ad6254c5 19130 done
7a197a62 19131 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19132 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19133$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19134 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19135 ac_builddir=.
19136
7a197a62
AK
19137case "$ac_dir" in
19138.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19139*)
ec6a6fbe 19140 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19141 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19142 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19143 case $ac_top_builddir_sub in
19144 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19145 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19146 esac ;;
19147esac
19148ac_abs_top_builddir=$ac_pwd
19149ac_abs_builddir=$ac_pwd$ac_dir_suffix
19150# for backward compatibility:
19151ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19152
19153case $srcdir in
7a197a62 19154 .) # We are building in place.
ad6254c5 19155 ac_srcdir=.
7a197a62
AK
19156 ac_top_srcdir=$ac_top_builddir_sub
19157 ac_abs_top_srcdir=$ac_pwd ;;
19158 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19159 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19160 ac_top_srcdir=$srcdir
19161 ac_abs_top_srcdir=$srcdir ;;
19162 *) # Relative name.
19163 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19164 ac_top_srcdir=$ac_top_build_prefix$srcdir
19165 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19166esac
7a197a62 19167ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19168
ad6254c5 19169
7a197a62
AK
19170 case $ac_mode in
19171 :F)
19172 #
19173 # CONFIG_FILE
19174 #
ad6254c5
AK
19175
19176 case $INSTALL in
19177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19178 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19179 esac
fddafd51
ZK
19180 ac_MKDIR_P=$MKDIR_P
19181 case $MKDIR_P in
19182 [\\/$]* | ?:[\\/]* ) ;;
19183 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19184 esac
7a197a62 19185_ACEOF
795ca3e5 19186
ec6a6fbe 19187cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19188# If the template does not know about datarootdir, expand it.
19189# FIXME: This hack should be removed a few years after 2.60.
19190ac_datarootdir_hack=; ac_datarootdir_seen=
19191
ec6a6fbe
AK
19192ac_sed_dataroot='
19193/datarootdir/ {
7a197a62
AK
19194 p
19195 q
19196}
19197/@datadir@/p
19198/@docdir@/p
19199/@infodir@/p
19200/@localedir@/p
19201/@mandir@/p
ec6a6fbe
AK
19202'
19203case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19204*datarootdir*) ac_datarootdir_seen=yes;;
19205*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19206 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19207$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19208_ACEOF
ec6a6fbe 19209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19210 ac_datarootdir_hack='
19211 s&@datadir@&$datadir&g
19212 s&@docdir@&$docdir&g
19213 s&@infodir@&$infodir&g
19214 s&@localedir@&$localedir&g
19215 s&@mandir@&$mandir&g
19216 s&\\\${datarootdir}&$datarootdir&g' ;;
19217esac
19218_ACEOF
19219
19220# Neutralize VPATH when `$srcdir' = `.'.
19221# Shell code in configure.ac might set extrasub.
19222# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19224ac_sed_extra="$ac_vpsub
ad6254c5
AK
19225$extrasub
19226_ACEOF
ec6a6fbe 19227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19228:t
19229/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19230s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19231s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19232s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19233s&@srcdir@&$ac_srcdir&;t t
19234s&@abs_srcdir@&$ac_abs_srcdir&;t t
19235s&@top_srcdir@&$ac_top_srcdir&;t t
19236s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19237s&@builddir@&$ac_builddir&;t t
19238s&@abs_builddir@&$ac_abs_builddir&;t t
19239s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19240s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19241s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19242$ac_datarootdir_hack
ec6a6fbe
AK
19243"
19244eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19245 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19246$as_echo "$as_me: error: could not create $ac_file" >&2;}
19247 { (exit 1); exit 1; }; }
7a197a62
AK
19248
19249test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19250 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19251 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19252 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19253which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19254$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19255which seems to be undefined. Please make sure it is defined." >&2;}
19256
19257 rm -f "$tmp/stdin"
72b2cb61 19258 case $ac_file in
ec6a6fbe
AK
19259 -) cat "$tmp/out" && rm -f "$tmp/out";;
19260 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19261 esac \
19262 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19263$as_echo "$as_me: error: could not create $ac_file" >&2;}
19264 { (exit 1); exit 1; }; }
7a197a62
AK
19265 ;;
19266 :H)
19267 #
19268 # CONFIG_HEADER
19269 #
72b2cb61 19270 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19271 {
19272 $as_echo "/* $configure_input */" \
19273 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19274 } >"$tmp/config.h" \
19275 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19276$as_echo "$as_me: error: could not create $ac_file" >&2;}
19277 { (exit 1); exit 1; }; }
19278 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19279 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19280$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19281 else
ec6a6fbe
AK
19282 rm -f "$ac_file"
19283 mv "$tmp/config.h" "$ac_file" \
19284 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19285$as_echo "$as_me: error: could not create $ac_file" >&2;}
19286 { (exit 1); exit 1; }; }
72b2cb61
AK
19287 fi
19288 else
ec6a6fbe
AK
19289 $as_echo "/* $configure_input */" \
19290 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19291 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19292$as_echo "$as_me: error: could not create -" >&2;}
19293 { (exit 1); exit 1; }; }
72b2cb61 19294 fi
7a197a62
AK
19295 ;;
19296
19297
19298 esac
19299
19300done # for ac_tag
795ca3e5 19301
795ca3e5 19302
ad6254c5
AK
19303{ (exit 0); exit 0; }
19304_ACEOF
795ca3e5 19305chmod +x $CONFIG_STATUS
ad6254c5
AK
19306ac_clean_files=$ac_clean_files_save
19307
ec6a6fbe
AK
19308test $ac_write_fail = 0 ||
19309 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19310$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19311 { (exit 1); exit 1; }; }
19312
ad6254c5
AK
19313
19314# configure is writing to config.log, and then calls config.status.
19315# config.status does its own redirection, appending to config.log.
19316# Unfortunately, on DOS this fails, as config.log is still kept open
19317# by configure, so config.status won't be able to write to it; its
19318# output is simply discarded. So we exec the FD to /dev/null,
19319# effectively closing config.log, so it can be properly (re)opened and
19320# appended to by config.status. When coming back to configure, we
19321# need to make the FD available again.
19322if test "$no_create" != yes; then
19323 ac_cs_success=:
19324 ac_config_status_args=
19325 test "$silent" = yes &&
19326 ac_config_status_args="$ac_config_status_args --quiet"
19327 exec 5>/dev/null
19328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19329 exec 5>>config.log
19330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19331 # would make configure fail if this is the last instruction.
19332 $ac_cs_success || { (exit 1); exit 1; }
19333fi
ec6a6fbe
AK
19334if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19335 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19336$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19337fi
795ca3e5 19338
2dc95e1c
AK
19339
19340if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19341 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19342$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19343fi
This page took 2.861311 seconds and 5 git commands to generate.