]> sourceware.org Git - lvm2.git/blame - configure
Remove superfluous NULL pointer tests before dm_free from dmeventd.
[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
b1f08e51 694DEFAULT_RUN_DIR
3399ae32
AK
695DEFAULT_LOCK_DIR
696DEFAULT_CACHE_SUBDIR
697DEFAULT_BACKUP_SUBDIR
698DEFAULT_ARCHIVE_SUBDIR
699DEFAULT_SYS_DIR
ec6a6fbe
AK
700DEBUG
701COPTIMISE_FLAG
e2997b73 702CONFDIR
ec6a6fbe
AK
703CMDLIB
704CLVMD
705CLUSTER
706CLDWHOLEARCHIVE
707CLDNOWHOLEARCHIVE
708CLDFLAGS
709BUILD_DMEVENTD
66fd4529 710BUILD_CMIRRORD
572fefeb 711APPLIB
ec6a6fbe
AK
712MODPROBE_CMD
713MSGFMT
714LVM2CMD_LIB
572fefeb 715LVM2APP_LIB
54b362f9
AK
716VALGRIND
717RUBY19
fd4728e1 718GENPNG
ec6a6fbe
AK
719GENHTML
720LCOV
90c80887
AK
721SACKPT_LIBS
722SACKPT_CFLAGS
a946372e
AK
723DLM_LIBS
724DLM_CFLAGS
e2997b73
AK
725CPG_LIBS
726CPG_CFLAGS
727CONFDB_LIBS
728CONFDB_CFLAGS
a946372e
AK
729SALCK_LIBS
730SALCK_CFLAGS
e2997b73
AK
731QUORUM_LIBS
732QUORUM_CFLAGS
a946372e
AK
733COROSYNC_LIBS
734COROSYNC_CFLAGS
735CMAN_LIBS
736CMAN_CFLAGS
737GULM_LIBS
738GULM_CFLAGS
739CCS_LIBS
740CCS_CFLAGS
741PKGCONFIGINIT_LIBS
742PKGCONFIGINIT_CFLAGS
e2997b73 743PKG_CONFIG
ec6a6fbe
AK
744POW_LIB
745LIBOBJS
746ALLOCA
747CSCOPE_CMD
748CFLOW_CMD
749RANLIB
750MKDIR_P
751SET_MAKE
752LN_S
753INSTALL_DATA
754INSTALL_SCRIPT
755INSTALL_PROGRAM
756EGREP
757GREP
758CPP
759OBJEXT
760EXEEXT
761ac_ct_CC
762CPPFLAGS
763LDFLAGS
764CFLAGS
765CC
766AWK
767SED
768target_os
769target_vendor
770target_cpu
771target
772host_os
773host_vendor
774host_cpu
775host
776build_os
777build_vendor
778build_cpu
779build
780target_alias
781host_alias
782build_alias
783LIBS
784ECHO_T
785ECHO_N
786ECHO_C
787DEFS
788mandir
789localedir
790libdir
791psdir
792pdfdir
793dvidir
794htmldir
795infodir
796docdir
797oldincludedir
798includedir
799localstatedir
800sharedstatedir
801sysconfdir
802datadir
803datarootdir
804libexecdir
805sbindir
806bindir
807program_transform_name
808prefix
809exec_prefix
810PACKAGE_BUGREPORT
811PACKAGE_STRING
812PACKAGE_VERSION
813PACKAGE_TARNAME
814PACKAGE_NAME
815PATH_SEPARATOR
816SHELL'
ad6254c5 817ac_subst_files=''
ec6a6fbe
AK
818ac_user_opts='
819enable_option_checking
820enable_static_link
821with_user
822with_group
823with_device_uid
824with_device_gid
825with_device_mode
826enable_lvm1_fallback
827with_lvm1
828with_pool
829with_cluster
830with_snapshots
831with_mirrors
8fea97b7 832with_replicators
ec6a6fbe
AK
833enable_readline
834enable_realtime
835with_clvmd
8c4e8a18 836with_clvmd_pidfile
66fd4529
AK
837enable_cmirrord
838with_cmirrord_pidfile
ec6a6fbe
AK
839enable_debug
840with_optimisation
841enable_profiling
54b362f9 842enable_testing
ec6a6fbe 843enable_devmapper
a5f46f6a
AK
844enable_udev_sync
845enable_udev_rules
ec6a6fbe 846enable_compat
95eaa683 847enable_units_compat
ec6a6fbe
AK
848enable_ioctl
849enable_o_direct
572fefeb 850enable_applib
ec6a6fbe
AK
851enable_cmdlib
852enable_pkgconfig
23b059e7 853enable_write_install
ec6a6fbe
AK
854enable_fsadm
855enable_dmeventd
856enable_selinux
857enable_nls
858with_localedir
859with_confdir
860with_staticdir
861with_usrlibdir
862with_usrsbindir
a5f46f6a 863with_udev_prefix
78ce7acc 864with_udevdir
ec6a6fbe
AK
865with_dmeventd_pidfile
866with_dmeventd_path
8bae0a1e 867with_default_run_dir
3399ae32
AK
868with_default_system_dir
869with_default_archive_subdir
870with_default_backup_subdir
871with_default_cache_subdir
872with_default_locking_dir
ec6a6fbe
AK
873with_interface
874'
7a197a62
AK
875 ac_precious_vars='build_alias
876host_alias
877target_alias
878CC
879CFLAGS
880LDFLAGS
25fbec5b 881LIBS
7a197a62 882CPPFLAGS
e2997b73
AK
883CPP
884PKG_CONFIG
a946372e
AK
885PKGCONFIGINIT_CFLAGS
886PKGCONFIGINIT_LIBS
887CCS_CFLAGS
888CCS_LIBS
889GULM_CFLAGS
890GULM_LIBS
891CMAN_CFLAGS
892CMAN_LIBS
893COROSYNC_CFLAGS
894COROSYNC_LIBS
e2997b73
AK
895QUORUM_CFLAGS
896QUORUM_LIBS
a946372e
AK
897SALCK_CFLAGS
898SALCK_LIBS
e2997b73
AK
899CONFDB_CFLAGS
900CONFDB_LIBS
901CPG_CFLAGS
a946372e
AK
902CPG_LIBS
903DLM_CFLAGS
90c80887
AK
904DLM_LIBS
905SACKPT_CFLAGS
906SACKPT_LIBS'
7a197a62 907
795ca3e5
AK
908
909# Initialize some variables set by options.
ad6254c5
AK
910ac_init_help=
911ac_init_version=false
ec6a6fbe
AK
912ac_unrecognized_opts=
913ac_unrecognized_sep=
795ca3e5
AK
914# The variables have the same names as the options, with
915# dashes changed to underlines.
ad6254c5 916cache_file=/dev/null
795ca3e5 917exec_prefix=NONE
795ca3e5 918no_create=
795ca3e5
AK
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
795ca3e5
AK
927verbose=
928x_includes=NONE
929x_libraries=NONE
ad6254c5
AK
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 936# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
7a197a62
AK
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
795ca3e5
AK
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
795ca3e5
AK
945includedir='${prefix}/include'
946oldincludedir='/usr/include'
7a197a62
AK
947docdir='${datarootdir}/doc/${PACKAGE}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
795ca3e5 956
795ca3e5 957ac_prev=
7a197a62 958ac_dashdash=
795ca3e5
AK
959for ac_option
960do
795ca3e5
AK
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
7a197a62 963 eval $ac_prev=\$ac_option
795ca3e5
AK
964 ac_prev=
965 continue
966 fi
967
7a197a62
AK
968 case $ac_option in
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 *) ac_optarg=yes ;;
971 esac
795ca3e5
AK
972
973 # Accept the important Cygnus configure options, so we can diagnose typos.
974
7a197a62
AK
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
795ca3e5
AK
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 982 bindir=$ac_optarg ;;
795ca3e5
AK
983
984 -build | --build | --buil | --bui | --bu)
ad6254c5 985 ac_prev=build_alias ;;
795ca3e5 986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 987 build_alias=$ac_optarg ;;
795ca3e5
AK
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
795ca3e5 998
7a197a62 999 -datadir | --datadir | --datadi | --datad)
795ca3e5 1000 ac_prev=datadir ;;
7a197a62 1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1002 datadir=$ac_optarg ;;
795ca3e5 1003
7a197a62
AK
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
795ca3e5 1011 -disable-* | --disable-*)
ec6a6fbe 1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1013 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1016 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1020 *"
1021"enable_$ac_useropt"
1022"*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=no ;;
7a197a62
AK
1027
1028 -docdir | --docdir | --docdi | --doc | --do)
1029 ac_prev=docdir ;;
1030 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1031 docdir=$ac_optarg ;;
1032
1033 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1034 ac_prev=dvidir ;;
1035 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1036 dvidir=$ac_optarg ;;
795ca3e5
AK
1037
1038 -enable-* | --enable-*)
ec6a6fbe 1039 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1040 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
ad6254c5 1043 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
ad6254c5 1062 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
ad6254c5
AK
1068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
795ca3e5
AK
1074
1075 -host | --host | --hos | --ho)
ad6254c5 1076 ac_prev=host_alias ;;
795ca3e5 1077 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1078 host_alias=$ac_optarg ;;
795ca3e5 1079
7a197a62
AK
1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
795ca3e5
AK
1086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1091 includedir=$ac_optarg ;;
795ca3e5
AK
1092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1096 infodir=$ac_optarg ;;
795ca3e5
AK
1097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1101 libdir=$ac_optarg ;;
795ca3e5
AK
1102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1108 libexecdir=$ac_optarg ;;
795ca3e5 1109
7a197a62
AK
1110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
795ca3e5 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1116 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1120 localstatedir=$ac_optarg ;;
795ca3e5
AK
1121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1125 mandir=$ac_optarg ;;
795ca3e5
AK
1126
1127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1132 | --no-cr | --no-c | -n)
795ca3e5
AK
1133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1146 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1147
1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1151 prefix=$ac_optarg ;;
795ca3e5
AK
1152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1158 program_prefix=$ac_optarg ;;
795ca3e5
AK
1159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1165 program_suffix=$ac_optarg ;;
795ca3e5
AK
1166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1182 program_transform_name=$ac_optarg ;;
795ca3e5 1183
7a197a62
AK
1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
795ca3e5
AK
1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1199 ac_prev=sbindir ;;
1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1201 | --sbi=* | --sb=*)
ad6254c5 1202 sbindir=$ac_optarg ;;
795ca3e5
AK
1203
1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1206 | --sharedst | --shareds | --shared | --share | --shar \
1207 | --sha | --sh)
1208 ac_prev=sharedstatedir ;;
1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1212 | --sha=* | --sh=*)
ad6254c5 1213 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1214
1215 -site | --site | --sit)
1216 ac_prev=site ;;
1217 -site=* | --site=* | --sit=*)
ad6254c5 1218 site=$ac_optarg ;;
795ca3e5
AK
1219
1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1221 ac_prev=srcdir ;;
1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1223 srcdir=$ac_optarg ;;
795ca3e5
AK
1224
1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1226 | --syscon | --sysco | --sysc | --sys | --sy)
1227 ac_prev=sysconfdir ;;
1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1230 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1231
1232 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1233 ac_prev=target_alias ;;
795ca3e5 1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1235 target_alias=$ac_optarg ;;
795ca3e5
AK
1236
1237 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1238 verbose=yes ;;
1239
ad6254c5
AK
1240 -version | --version | --versio | --versi | --vers | -V)
1241 ac_init_version=: ;;
795ca3e5
AK
1242
1243 -with-* | --with-*)
ec6a6fbe 1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1245 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1248 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253"with_$ac_useropt"
1254"*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1259
1260 -without-* | --without-*)
ec6a6fbe 1261 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1262 # Reject names that are not valid shell variable names.
ec6a6fbe
AK
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
ad6254c5 1265 { (exit 1); exit 1; }; }
ec6a6fbe
AK
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270"with_$ac_useropt"
1271"*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
795ca3e5
AK
1276
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1280
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1286 x_includes=$ac_optarg ;;
795ca3e5
AK
1287
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1293 x_libraries=$ac_optarg ;;
795ca3e5 1294
ec6a6fbe 1295 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
ad6254c5
AK
1296Try \`$0 --help' for more information." >&2
1297 { (exit 1); exit 1; }; }
795ca3e5
AK
1298 ;;
1299
ad6254c5
AK
1300 *=*)
1301 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1302 # Reject names that are not valid shell variable names.
1303 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1304 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
ad6254c5 1305 { (exit 1); exit 1; }; }
7a197a62 1306 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1307 export $ac_envvar ;;
1308
795ca3e5 1309 *)
ad6254c5 1310 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1314 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1315 ;;
1316
1317 esac
1318done
1319
1320if test -n "$ac_prev"; then
ad6254c5 1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
ec6a6fbe 1322 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
ad6254c5 1323 { (exit 1); exit 1; }; }
795ca3e5 1324fi
795ca3e5 1325
ec6a6fbe
AK
1326if test -n "$ac_unrecognized_opts"; then
1327 case $enable_option_checking in
1328 no) ;;
1329 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1330 { (exit 1); exit 1; }; } ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 esac
1333fi
1334
1335# Check all directory arguments for consistency.
7a197a62
AK
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
795ca3e5 1340do
7a197a62 1341 eval ac_val=\$$ac_var
ec6a6fbe
AK
1342 # Remove trailing slashes.
1343 case $ac_val in
1344 */ )
1345 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\$ac_val;;
1347 esac
1348 # Be sure to have absolute directory names.
ad6254c5 1349 case $ac_val in
7a197a62
AK
1350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1352 esac
ec6a6fbe 1353 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
7a197a62 1354 { (exit 1); exit 1; }; }
795ca3e5
AK
1355done
1356
ad6254c5
AK
1357# There might be people who depend on the old broken behavior: `$host'
1358# used to hold the argument of --host etc.
1359# FIXME: To remove some day.
1360build=$build_alias
1361host=$host_alias
1362target=$target_alias
1363
1364# FIXME: To remove some day.
1365if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
ec6a6fbe 1368 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
ad6254c5
AK
1369 If a cross compiler is detected then cross compile mode will be used." >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373fi
8106cdd5 1374
ad6254c5
AK
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
795ca3e5 1379
795ca3e5 1380
7a197a62
AK
1381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
ec6a6fbe 1384 { $as_echo "$as_me: error: working directory cannot be determined" >&2
7a197a62
AK
1385 { (exit 1); exit 1; }; }
1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
ec6a6fbe 1387 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
7a197a62
AK
1388 { (exit 1); exit 1; }; }
1389
1390
795ca3e5
AK
1391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
7a197a62 1394 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400$as_echo X"$as_myself" |
7a197a62
AK
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)[^/].*/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\).*/{
1414 s//\1/
1415 q
1416 }
1417 s/.*/./; q'`
795ca3e5 1418 srcdir=$ac_confdir
7a197a62 1419 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1420 srcdir=..
1421 fi
1422else
1423 ac_srcdir_defaulted=no
1424fi
7a197a62
AK
1425if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
ec6a6fbe 1427 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
ad6254c5 1428 { (exit 1); exit 1; }; }
795ca3e5 1429fi
7a197a62
AK
1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
ec6a6fbe 1432 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
ad6254c5 1433 { (exit 1); exit 1; }; }
7a197a62
AK
1434 pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
ad6254c5
AK
1451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459\`configure' configures this package to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
ad6254c5
AK
1479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1481 [$ac_default_prefix]
ad6254c5 1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1483 [PREFIX]
ad6254c5
AK
1484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
ec6a6fbe
AK
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520_ACEOF
1521fi
1522
1523if test -n "$ac_init_help"; then
1524
1525 cat <<\_ACEOF
1526
1527Optional Features:
ec6a6fbe 1528 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1531 --enable-static_link use this to link the tools to their libraries
1532 statically (default is dynamic linking
1533 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1534 device-mapper is missing from the kernel
71082be4
ZK
1535 --disable-readline disable readline support
1536 --enable-realtime enable realtime clock support
1537 --enable-cmirrord enable the cluster mirror log daemon
1538 --enable-debug enable debugging
1539 --enable-profiling gather gcov profiling data
54b362f9 1540 --enable-testing enable testing targets in the makefile
71082be4
ZK
1541 --disable-devmapper disable LVM2 device-mapper interaction
1542 --enable-udev_sync enable synchronisation with udev processing
1543 --enable-udev_rules install rule files needed for udev synchronisation
1544 --enable-compat enable support for old device-mapper versions
1545 --enable-units-compat enable output compatibility with old versions that
1546 that do not use KiB-style unit suffixes
1547 --disable-driver disable calls to device-mapper in the kernel
1548 --disable-o_direct disable O_DIRECT
1549 --enable-applib build application library
1550 --enable-cmdlib build shared command library
1551 --enable-pkgconfig install pkgconfig support
1552 --enable-write_install install user writable files
1553 --disable-fsadm disable fsadm
1554 --enable-dmeventd enable the device-mapper event daemon
1555 --disable-selinux disable selinux support
1556 --enable-nls enable Native Language Support
ad6254c5
AK
1557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
71082be4
ZK
1561 --with-user=USER set the owner of installed files [USER=]
1562 --with-group=GROUP set the group owner of installed files [GROUP=]
1563 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1564 --with-device-gid=GID set the group used for new device nodes [GID=0]
1565 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
ad6254c5 1566 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
71082be4 1567 [TYPE=internal]
ad6254c5 1568 --with-pool=TYPE GFS pool read-only support: internal/shared/none
71082be4
ZK
1569 [TYPE=internal]
1570 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
1571 [TYPE=internal]
1572 --with-snapshots=TYPE snapshot support: internal/shared/none
1573 [TYPE=internal]
1574 --with-mirrors=TYPE mirror support: internal/shared/none
1575 [TYPE=internal]
1576 --with-replicators=TYPE replicator support: internal/shared/none
1577 [TYPE=none]
1578 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1579 The following cluster manager combinations are valid:
a946372e
AK
1580 * cman,gulm (RHEL4 or equivalent)
1581 * cman (RHEL5 or equivalent)
1582 * cman,corosync,openais (or selection of them)
1091650a 1583 * singlenode (localhost only)
a946372e
AK
1584 * all (autodetect)
1585 * none (disable build)
71082be4 1586 [TYPE=none]
8c4e8a18
FDN
1587 --with-clvmd-pidfile=PATH
1588 clvmd pidfile [/var/run/clvmd.pid]
71082be4
ZK
1589 --with-cmirrord-pidfile=PATH
1590 cmirrord pidfile [/var/run/cmirrord.pid]
d0191583 1591 --with-optimisation=OPT C optimisation flag [OPT=-O2]
71082be4
ZK
1592 --with-localedir=DIR translation files in DIR [PREFIX/share/locale]
1593 --with-confdir=DIR configuration files in DIR [/etc]
1594 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1595 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1596 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
1597 --with-udev-prefix=UPREFIX
1598 install udev rule files in UPREFIX [EPREFIX]
78ce7acc 1599 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
71082be4
ZK
1600 --with-dmeventd-pidfile=PATH
1601 dmeventd pidfile [/var/run/dmeventd.pid]
1602 --with-dmeventd-path=PATH
1603 dmeventd path [EPREFIX/sbin/dmeventd]
8bae0a1e 1604 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4
ZK
1605 --with-default-system-dir=DIR
1606 default LVM system directory [/etc/lvm]
1607 --with-default-archive-subdir=SUBDIR
1608 default metadata archive subdir [archive]
1609 --with-default-backup-subdir=SUBDIR
1610 default metadata backup subdir [backup]
1611 --with-default-cache-subdir=SUBDIR
1612 default metadata cache subdir [cache]
1613 --with-default-locking-dir=DIR
1614 default locking directory [/var/lock/lvm]
1615 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1616
1617Some influential environment variables:
1618 CC C compiler command
1619 CFLAGS C compiler flags
1620 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621 nonstandard directory <lib dir>
25fbec5b 1622 LIBS libraries to pass to the linker, e.g. -l<library>
7a197a62
AK
1623 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1624 you have headers in a nonstandard directory <include dir>
ad6254c5 1625 CPP C preprocessor
e2997b73 1626 PKG_CONFIG path to pkg-config utility
a946372e
AK
1627 PKGCONFIGINIT_CFLAGS
1628 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1629 PKGCONFIGINIT_LIBS
1630 linker flags for PKGCONFIGINIT, overriding pkg-config
1631 CCS_CFLAGS C compiler flags for CCS, overriding pkg-config
1632 CCS_LIBS linker flags for CCS, overriding pkg-config
1633 GULM_CFLAGS C compiler flags for GULM, overriding pkg-config
1634 GULM_LIBS linker flags for GULM, overriding pkg-config
1635 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1636 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1637 COROSYNC_CFLAGS
1638 C compiler flags for COROSYNC, overriding pkg-config
1639 COROSYNC_LIBS
1640 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1641 QUORUM_CFLAGS
1642 C compiler flags for QUORUM, overriding pkg-config
1643 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1644 SALCK_CFLAGS
1645 C compiler flags for SALCK, overriding pkg-config
1646 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1647 CONFDB_CFLAGS
1648 C compiler flags for CONFDB, overriding pkg-config
1649 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1650 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1651 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1652 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1653 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1654 SACKPT_CFLAGS
1655 C compiler flags for SACKPT, overriding pkg-config
1656 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
ad6254c5
AK
1657
1658Use these variables to override the choices made by `configure' or to help
1659it to find libraries and programs with nonstandard names/locations.
1660
1661_ACEOF
7a197a62 1662ac_status=$?
ad6254c5
AK
1663fi
1664
1665if test "$ac_init_help" = "recursive"; then
1666 # If there are subdirs, report their specific --help.
ad6254c5 1667 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1668 test -d "$ac_dir" ||
1669 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1670 continue
ad6254c5
AK
1671 ac_builddir=.
1672
7a197a62
AK
1673case "$ac_dir" in
1674.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675*)
ec6a6fbe 1676 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1677 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1678 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1679 case $ac_top_builddir_sub in
1680 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1681 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1682 esac ;;
1683esac
1684ac_abs_top_builddir=$ac_pwd
1685ac_abs_builddir=$ac_pwd$ac_dir_suffix
1686# for backward compatibility:
1687ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1688
1689case $srcdir in
7a197a62 1690 .) # We are building in place.
ad6254c5 1691 ac_srcdir=.
7a197a62
AK
1692 ac_top_srcdir=$ac_top_builddir_sub
1693 ac_abs_top_srcdir=$ac_pwd ;;
1694 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1695 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1696 ac_top_srcdir=$srcdir
1697 ac_abs_top_srcdir=$srcdir ;;
1698 *) # Relative name.
1699 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1700 ac_top_srcdir=$ac_top_build_prefix$srcdir
1701 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1702esac
7a197a62
AK
1703ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704
1705 cd "$ac_dir" || { ac_status=$?; continue; }
1706 # Check for guested configure.
1707 if test -f "$ac_srcdir/configure.gnu"; then
1708 echo &&
1709 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1710 elif test -f "$ac_srcdir/configure"; then
1711 echo &&
1712 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1713 else
ec6a6fbe 1714 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1715 fi || ac_status=$?
1716 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1717 done
1718fi
1719
7a197a62 1720test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1721if $ac_init_version; then
1722 cat <<\_ACEOF
7a197a62 1723configure
ec6a6fbe 1724generated by GNU Autoconf 2.63
ad6254c5 1725
7a197a62 1726Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
ec6a6fbe 17272002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
ad6254c5
AK
1728This configure script is free software; the Free Software Foundation
1729gives unlimited permission to copy, distribute and modify it.
1730_ACEOF
7a197a62 1731 exit
ad6254c5 1732fi
7a197a62 1733cat >config.log <<_ACEOF
ad6254c5
AK
1734This file contains any messages produced by compilers while
1735running configure, to aid debugging if configure makes a mistake.
1736
1737It was created by $as_me, which was
ec6a6fbe 1738generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
1739
1740 $ $0 $@
1741
1742_ACEOF
7a197a62 1743exec 5>>config.log
ad6254c5
AK
1744{
1745cat <<_ASUNAME
1746## --------- ##
1747## Platform. ##
1748## --------- ##
1749
1750hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1751uname -m = `(uname -m) 2>/dev/null || echo unknown`
1752uname -r = `(uname -r) 2>/dev/null || echo unknown`
1753uname -s = `(uname -s) 2>/dev/null || echo unknown`
1754uname -v = `(uname -v) 2>/dev/null || echo unknown`
1755
1756/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1757/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1758
1759/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1760/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1761/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7a197a62 1762/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
ad6254c5
AK
1763/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1764/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1765/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1766
1767_ASUNAME
1768
1769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770for as_dir in $PATH
1771do
1772 IFS=$as_save_IFS
1773 test -z "$as_dir" && as_dir=.
ec6a6fbe 1774 $as_echo "PATH: $as_dir"
ad6254c5 1775done
7a197a62 1776IFS=$as_save_IFS
ad6254c5
AK
1777
1778} >&5
1779
1780cat >&5 <<_ACEOF
1781
1782
1783## ----------- ##
1784## Core tests. ##
1785## ----------- ##
1786
1787_ACEOF
1788
1789
1790# Keep a trace of the command line.
1791# Strip out --no-create and --no-recursion so they do not pile up.
1792# Strip out --silent because we don't want to record it for future runs.
1793# Also quote any args containing shell meta-characters.
1794# Make two passes to allow for proper duplicate-argument suppression.
1795ac_configure_args=
1796ac_configure_args0=
1797ac_configure_args1=
ad6254c5
AK
1798ac_must_keep_next=false
1799for ac_pass in 1 2
1800do
1801 for ac_arg
1802 do
1803 case $ac_arg in
1804 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1806 | -silent | --silent | --silen | --sile | --sil)
1807 continue ;;
7a197a62 1808 *\'*)
ec6a6fbe 1809 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
1810 esac
1811 case $ac_pass in
1812 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1813 2)
1814 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1815 if test $ac_must_keep_next = true; then
8a2fc586 1816 ac_must_keep_next=false # Got value, back to normal.
ad6254c5 1817 else
8a2fc586
AK
1818 case $ac_arg in
1819 *=* | --config-cache | -C | -disable-* | --disable-* \
1820 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1821 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1822 | -with-* | --with-* | -without-* | --without-* | --x)
1823 case "$ac_configure_args0 " in
1824 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1825 esac
1826 ;;
1827 -* ) ac_must_keep_next=true ;;
1828 esac
ad6254c5 1829 fi
7a197a62 1830 ac_configure_args="$ac_configure_args '$ac_arg'"
ad6254c5
AK
1831 ;;
1832 esac
1833 done
1834done
1835$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1836$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1837
1838# When interrupted or exit'd, cleanup temporary files, and complete
1839# config.log. We remove comments because anyway the quotes in there
1840# would cause problems or look ugly.
7a197a62
AK
1841# WARNING: Use '\'' to represent an apostrophe within the trap.
1842# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
ad6254c5
AK
1843trap 'exit_status=$?
1844 # Save into config.log some information that might help in debugging.
1845 {
1846 echo
1847
1848 cat <<\_ASBOX
1849## ---------------- ##
1850## Cache variables. ##
1851## ---------------- ##
1852_ASBOX
1853 echo
1854 # The following way of writing the cache mishandles newlines in values,
7a197a62
AK
1855(
1856 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1857 eval ac_val=\$$ac_var
1858 case $ac_val in #(
1859 *${as_nl}*)
1860 case $ac_var in #(
ec6a6fbe
AK
1861 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1862$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
1863 esac
1864 case $ac_var in #(
1865 _ | IFS | as_nl) ;; #(
ec6a6fbe 1866 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
1867 *) $as_unset $ac_var ;;
1868 esac ;;
1869 esac
1870 done
ad6254c5 1871 (set) 2>&1 |
7a197a62
AK
1872 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1873 *${as_nl}ac_space=\ *)
ad6254c5 1874 sed -n \
7a197a62
AK
1875 "s/'\''/'\''\\\\'\'''\''/g;
1876 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1877 ;; #(
ad6254c5 1878 *)
7a197a62 1879 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 1880 ;;
7a197a62
AK
1881 esac |
1882 sort
1883)
ad6254c5
AK
1884 echo
1885
1886 cat <<\_ASBOX
1887## ----------------- ##
1888## Output variables. ##
1889## ----------------- ##
1890_ASBOX
1891 echo
1892 for ac_var in $ac_subst_vars
1893 do
7a197a62
AK
1894 eval ac_val=\$$ac_var
1895 case $ac_val in
ec6a6fbe 1896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1897 esac
ec6a6fbe 1898 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1899 done | sort
1900 echo
1901
1902 if test -n "$ac_subst_files"; then
1903 cat <<\_ASBOX
7a197a62
AK
1904## ------------------- ##
1905## File substitutions. ##
1906## ------------------- ##
ad6254c5
AK
1907_ASBOX
1908 echo
1909 for ac_var in $ac_subst_files
1910 do
7a197a62
AK
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
ec6a6fbe 1913 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
7a197a62 1914 esac
ec6a6fbe 1915 $as_echo "$ac_var='\''$ac_val'\''"
ad6254c5
AK
1916 done | sort
1917 echo
1918 fi
1919
1920 if test -s confdefs.h; then
1921 cat <<\_ASBOX
1922## ----------- ##
1923## confdefs.h. ##
1924## ----------- ##
1925_ASBOX
1926 echo
7a197a62 1927 cat confdefs.h
ad6254c5
AK
1928 echo
1929 fi
1930 test "$ac_signal" != 0 &&
ec6a6fbe
AK
1931 $as_echo "$as_me: caught signal $ac_signal"
1932 $as_echo "$as_me: exit $exit_status"
ad6254c5 1933 } >&5
7a197a62
AK
1934 rm -f core *.core core.conftest.* &&
1935 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
ad6254c5 1936 exit $exit_status
7a197a62 1937' 0
ad6254c5
AK
1938for ac_signal in 1 2 13 15; do
1939 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1940done
1941ac_signal=0
1942
1943# confdefs.h avoids OS command line length limits that DEFS can exceed.
7a197a62 1944rm -f -r conftest* confdefs.h
ad6254c5
AK
1945
1946# Predefined preprocessor variables.
1947
1948cat >>confdefs.h <<_ACEOF
1949#define PACKAGE_NAME "$PACKAGE_NAME"
1950_ACEOF
1951
1952
1953cat >>confdefs.h <<_ACEOF
1954#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1955_ACEOF
1956
1957
1958cat >>confdefs.h <<_ACEOF
1959#define PACKAGE_VERSION "$PACKAGE_VERSION"
1960_ACEOF
8106cdd5 1961
ad6254c5
AK
1962
1963cat >>confdefs.h <<_ACEOF
1964#define PACKAGE_STRING "$PACKAGE_STRING"
1965_ACEOF
1966
1967
1968cat >>confdefs.h <<_ACEOF
1969#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1970_ACEOF
1971
1972
1973# Let the site file select an alternate cache file if it wants to.
ec6a6fbe
AK
1974# Prefer an explicitly selected file to automatically selected ones.
1975ac_site_file1=NONE
1976ac_site_file2=NONE
7a197a62 1977if test -n "$CONFIG_SITE"; then
ec6a6fbe 1978 ac_site_file1=$CONFIG_SITE
7a197a62 1979elif test "x$prefix" != xNONE; then
ec6a6fbe
AK
1980 ac_site_file1=$prefix/share/config.site
1981 ac_site_file2=$prefix/etc/config.site
7a197a62 1982else
ec6a6fbe
AK
1983 ac_site_file1=$ac_default_prefix/share/config.site
1984 ac_site_file2=$ac_default_prefix/etc/config.site
795ca3e5 1985fi
ec6a6fbe 1986for ac_site_file in "$ac_site_file1" "$ac_site_file2"
7a197a62 1987do
ec6a6fbe 1988 test "x$ac_site_file" = xNONE && continue
795ca3e5 1989 if test -r "$ac_site_file"; then
ec6a6fbe
AK
1990 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1991$as_echo "$as_me: loading site script $ac_site_file" >&6;}
ad6254c5 1992 sed 's/^/| /' "$ac_site_file" >&5
795ca3e5
AK
1993 . "$ac_site_file"
1994 fi
1995done
1996
1997if test -r "$cache_file"; then
ad6254c5
AK
1998 # Some versions of bash will fail to source /dev/null (special
1999 # files actually), so we avoid doing that.
2000 if test -f "$cache_file"; then
ec6a6fbe
AK
2001 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2002$as_echo "$as_me: loading cache $cache_file" >&6;}
ad6254c5 2003 case $cache_file in
7a197a62
AK
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
ad6254c5
AK
2006 esac
2007 fi
795ca3e5 2008else
ec6a6fbe
AK
2009 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2010$as_echo "$as_me: creating cache $cache_file" >&6;}
ad6254c5
AK
2011 >$cache_file
2012fi
2013
2014# Check that the precious variables saved in the cache have kept the same
2015# value.
2016ac_cache_corrupted=false
7a197a62 2017for ac_var in $ac_precious_vars; do
ad6254c5
AK
2018 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2019 eval ac_new_set=\$ac_env_${ac_var}_set
7a197a62
AK
2020 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2021 eval ac_new_val=\$ac_env_${ac_var}_value
ad6254c5
AK
2022 case $ac_old_set,$ac_new_set in
2023 set,)
ec6a6fbe
AK
2024 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2025$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
ad6254c5
AK
2026 ac_cache_corrupted=: ;;
2027 ,set)
ec6a6fbe
AK
2028 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2029$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
ad6254c5
AK
2030 ac_cache_corrupted=: ;;
2031 ,);;
2032 *)
2033 if test "x$ac_old_val" != "x$ac_new_val"; then
ec6a6fbe
AK
2034 # differences in whitespace do not lead to failure.
2035 ac_old_val_w=`echo x $ac_old_val`
2036 ac_new_val_w=`echo x $ac_new_val`
2037 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2038 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2039$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2040 ac_cache_corrupted=:
2041 else
2042 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2043$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2044 eval $ac_var=\$ac_old_val
2045 fi
2046 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2047$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2048 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2049$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
ad6254c5
AK
2050 fi;;
2051 esac
2052 # Pass precious variables to config.status.
2053 if test "$ac_new_set" = set; then
2054 case $ac_new_val in
ec6a6fbe 2055 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ad6254c5
AK
2056 *) ac_arg=$ac_var=$ac_new_val ;;
2057 esac
2058 case " $ac_configure_args " in
2059 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2060 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2061 esac
2062 fi
2063done
2064if $ac_cache_corrupted; then
ec6a6fbe
AK
2065 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2067 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2068$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2069 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2070$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
ad6254c5 2071 { (exit 1); exit 1; }; }
795ca3e5
AK
2072fi
2073
ad6254c5
AK
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
7a197a62
AK
2090ac_ext=c
2091ac_cpp='$CPP $CPPFLAGS'
2092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2095
795ca3e5
AK
2096
2097
7a197a62 2098ac_config_headers="$ac_config_headers lib/misc/configure.h"
72b2cb61
AK
2099
2100
80992638 2101################################################################################
795ca3e5 2102ac_aux_dir=
7a197a62
AK
2103for ac_dir in autoconf "$srcdir"/autoconf; do
2104 if test -f "$ac_dir/install-sh"; then
795ca3e5
AK
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/install-sh -c"
2107 break
7a197a62 2108 elif test -f "$ac_dir/install.sh"; then
795ca3e5
AK
2109 ac_aux_dir=$ac_dir
2110 ac_install_sh="$ac_aux_dir/install.sh -c"
2111 break
7a197a62 2112 elif test -f "$ac_dir/shtool"; then
ad6254c5
AK
2113 ac_aux_dir=$ac_dir
2114 ac_install_sh="$ac_aux_dir/shtool install -c"
2115 break
795ca3e5
AK
2116 fi
2117done
2118if test -z "$ac_aux_dir"; then
ec6a6fbe
AK
2119 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2120$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
ad6254c5 2121 { (exit 1); exit 1; }; }
795ca3e5 2122fi
7a197a62
AK
2123
2124# These three variables are undocumented and unsupported,
2125# and are intended to be withdrawn in a future Autoconf release.
2126# They can cause serious problems if a builder's source tree is in a directory
2127# whose full name contains unusual characters.
2128ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2129ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2130ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2131
8ce0cbda
AK
2132
2133
ad6254c5 2134################################################################################
8ce0cbda 2135# Make sure we can run config.sub.
7a197a62 2136$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
ec6a6fbe
AK
2137 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2138$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
ad6254c5
AK
2139 { (exit 1); exit 1; }; }
2140
ec6a6fbe
AK
2141{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2142$as_echo_n "checking build system type... " >&6; }
ad6254c5 2143if test "${ac_cv_build+set}" = set; then
ec6a6fbe 2144 $as_echo_n "(cached) " >&6
ad6254c5 2145else
7a197a62
AK
2146 ac_build_alias=$build_alias
2147test "x$ac_build_alias" = x &&
2148 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2149test "x$ac_build_alias" = x &&
ec6a6fbe
AK
2150 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2151$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
ad6254c5 2152 { (exit 1); exit 1; }; }
7a197a62 2153ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
ec6a6fbe
AK
2154 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2155$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
ad6254c5
AK
2156 { (exit 1); exit 1; }; }
2157
2158fi
ec6a6fbe
AK
2159{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2160$as_echo "$ac_cv_build" >&6; }
7a197a62
AK
2161case $ac_cv_build in
2162*-*-*) ;;
ec6a6fbe
AK
2163*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2164$as_echo "$as_me: error: invalid value of canonical build" >&2;}
7a197a62
AK
2165 { (exit 1); exit 1; }; };;
2166esac
ad6254c5 2167build=$ac_cv_build
7a197a62
AK
2168ac_save_IFS=$IFS; IFS='-'
2169set x $ac_cv_build
2170shift
2171build_cpu=$1
2172build_vendor=$2
2173shift; shift
2174# Remember, the first character of IFS is used to create $*,
2175# except with old shells:
2176build_os=$*
2177IFS=$ac_save_IFS
2178case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2179
2180
ec6a6fbe
AK
2181{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2182$as_echo_n "checking host system type... " >&6; }
ad6254c5 2183if test "${ac_cv_host+set}" = set; then
ec6a6fbe 2184 $as_echo_n "(cached) " >&6
ad6254c5 2185else
7a197a62
AK
2186 if test "x$host_alias" = x; then
2187 ac_cv_host=$ac_cv_build
2188else
2189 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
ec6a6fbe
AK
2190 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2191$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
ad6254c5 2192 { (exit 1); exit 1; }; }
7a197a62 2193fi
ad6254c5
AK
2194
2195fi
ec6a6fbe
AK
2196{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2197$as_echo "$ac_cv_host" >&6; }
7a197a62
AK
2198case $ac_cv_host in
2199*-*-*) ;;
ec6a6fbe
AK
2200*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2201$as_echo "$as_me: error: invalid value of canonical host" >&2;}
7a197a62
AK
2202 { (exit 1); exit 1; }; };;
2203esac
ad6254c5 2204host=$ac_cv_host
7a197a62
AK
2205ac_save_IFS=$IFS; IFS='-'
2206set x $ac_cv_host
2207shift
2208host_cpu=$1
2209host_vendor=$2
2210shift; shift
2211# Remember, the first character of IFS is used to create $*,
2212# except with old shells:
2213host_os=$*
2214IFS=$ac_save_IFS
2215case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2216
2217
ec6a6fbe
AK
2218{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2219$as_echo_n "checking target system type... " >&6; }
ad6254c5 2220if test "${ac_cv_target+set}" = set; then
ec6a6fbe 2221 $as_echo_n "(cached) " >&6
ad6254c5 2222else
7a197a62
AK
2223 if test "x$target_alias" = x; then
2224 ac_cv_target=$ac_cv_host
2225else
2226 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
ec6a6fbe
AK
2227 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2228$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
ad6254c5 2229 { (exit 1); exit 1; }; }
7a197a62 2230fi
8ce0cbda 2231
ad6254c5 2232fi
ec6a6fbe
AK
2233{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2234$as_echo "$ac_cv_target" >&6; }
7a197a62
AK
2235case $ac_cv_target in
2236*-*-*) ;;
ec6a6fbe
AK
2237*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2238$as_echo "$as_me: error: invalid value of canonical target" >&2;}
7a197a62
AK
2239 { (exit 1); exit 1; }; };;
2240esac
ad6254c5 2241target=$ac_cv_target
7a197a62
AK
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_target
2244shift
2245target_cpu=$1
2246target_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250target_os=$*
2251IFS=$ac_save_IFS
2252case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8ce0cbda 2253
8ce0cbda 2254
ad6254c5
AK
2255# The aliases save the names the user supplied, while $host etc.
2256# will get canonicalized.
2257test -n "$target_alias" &&
8ce0cbda
AK
2258 test "$program_prefix$program_suffix$program_transform_name" = \
2259 NONENONEs,x,x, &&
2260 program_prefix=${target_alias}-
2261
8ce0cbda
AK
2262case "$host_os" in
2263 linux*)
7f54ef36 2264 CFLAGS="$CFLAGS"
8ce0cbda
AK
2265 COPTIMISE_FLAG="-O2"
2266 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2267 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2268 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2269 LDDEPS="$LDDEPS .export.sym"
2270 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
d0191583 2271 LIB_SUFFIX=so
8ce0cbda
AK
2272 DEVMAPPER=yes
2273 ODIRECT=yes
d0191583 2274 DM_IOCTLS=yes
8ce0cbda
AK
2275 SELINUX=yes
2276 CLUSTER=internal
93bd259b 2277 FSADM=yes
d0191583 2278 ;;
8ce0cbda
AK
2279 darwin*)
2280 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2281 COPTIMISE_FLAG="-O2"
2282 CLDFLAGS="$CLDFLAGS"
2283 CLDWHOLEARCHIVE="-all_load"
2284 CLDNOWHOLEARCHIVE=
d0191583 2285 LIB_SUFFIX=dylib
a653923f 2286 DEVMAPPER=yes
8ce0cbda 2287 ODIRECT=no
d0191583 2288 DM_IOCTLS=no
8ce0cbda
AK
2289 SELINUX=no
2290 CLUSTER=none
d0191583
JM
2291 FSADM=no
2292 ;;
8ce0cbda
AK
2293esac
2294
80992638 2295################################################################################
ec6a6fbe
AK
2296{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2297$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5951ef33 2298if test "${ac_cv_path_SED+set}" = set; then
ec6a6fbe 2299 $as_echo_n "(cached) " >&6
5951ef33
AK
2300else
2301 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2302 for ac_i in 1 2 3 4 5 6 7; do
2303 ac_script="$ac_script$as_nl$ac_script"
2304 done
ec6a6fbe 2305 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5951ef33 2306 $as_unset ac_script || ac_script=
ec6a6fbe 2307 if test -z "$SED"; then
5951ef33 2308 ac_path_SED_found=false
ec6a6fbe
AK
2309 # Loop through the user's path and test for each of PROGNAME-LIST
2310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951ef33
AK
2311for as_dir in $PATH
2312do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
2315 for ac_prog in sed gsed; do
ec6a6fbe
AK
2316 for ac_exec_ext in '' $ac_executable_extensions; do
2317 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2318 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2319# Check for GNU ac_path_SED and select it if it is found.
5951ef33
AK
2320 # Check for GNU $ac_path_SED
2321case `"$ac_path_SED" --version 2>&1` in
2322*GNU*)
2323 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2324*)
2325 ac_count=0
ec6a6fbe 2326 $as_echo_n 0123456789 >"conftest.in"
5951ef33
AK
2327 while :
2328 do
2329 cat "conftest.in" "conftest.in" >"conftest.tmp"
2330 mv "conftest.tmp" "conftest.in"
2331 cp "conftest.in" "conftest.nl"
ec6a6fbe 2332 $as_echo '' >> "conftest.nl"
5951ef33
AK
2333 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2335 ac_count=`expr $ac_count + 1`
2336 if test $ac_count -gt ${ac_path_SED_max-0}; then
2337 # Best one so far, save it but keep looking for a better one
2338 ac_cv_path_SED="$ac_path_SED"
2339 ac_path_SED_max=$ac_count
2340 fi
2341 # 10*(2^10) chars as input seems more than enough
2342 test $ac_count -gt 10 && break
2343 done
2344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2345esac
2346
ec6a6fbe
AK
2347 $ac_path_SED_found && break 3
2348 done
5951ef33
AK
2349 done
2350done
5951ef33 2351IFS=$as_save_IFS
ec6a6fbe
AK
2352 if test -z "$ac_cv_path_SED"; then
2353 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
2354$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5951ef33 2355 { (exit 1); exit 1; }; }
ec6a6fbe 2356 fi
5951ef33
AK
2357else
2358 ac_cv_path_SED=$SED
2359fi
2360
2361fi
ec6a6fbe
AK
2362{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
2363$as_echo "$ac_cv_path_SED" >&6; }
5951ef33
AK
2364 SED="$ac_cv_path_SED"
2365 rm -f conftest.sed
2366
ad6254c5 2367for ac_prog in gawk mawk nawk awk
795ca3e5 2368do
ad6254c5 2369 # Extract the first word of "$ac_prog", so it can be a program name with args.
795ca3e5 2370set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2372$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2373if test "${ac_cv_prog_AWK+set}" = set; then
ec6a6fbe 2374 $as_echo_n "(cached) " >&6
795ca3e5
AK
2375else
2376 if test -n "$AWK"; then
2377 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2378else
ad6254c5
AK
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2386 ac_cv_prog_AWK="$ac_prog"
ec6a6fbe 2387 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2388 break 2
2389 fi
2390done
2391done
7a197a62 2392IFS=$as_save_IFS
ad6254c5 2393
795ca3e5
AK
2394fi
2395fi
ad6254c5 2396AWK=$ac_cv_prog_AWK
795ca3e5 2397if test -n "$AWK"; then
ec6a6fbe
AK
2398 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2399$as_echo "$AWK" >&6; }
795ca3e5 2400else
ec6a6fbe
AK
2401 { $as_echo "$as_me:$LINENO: result: no" >&5
2402$as_echo "no" >&6; }
795ca3e5
AK
2403fi
2404
7a197a62 2405
ad6254c5
AK
2406 test -n "$AWK" && break
2407done
2408
2409ac_ext=c
2410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414if test -n "$ac_tool_prefix"; then
2415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}gcc; ac_word=$2
ec6a6fbe
AK
2417{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2418$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2419if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2420 $as_echo_n "(cached) " >&6
ad6254c5
AK
2421else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
ec6a6fbe 2433 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2434 break 2
2435 fi
2436done
8106cdd5 2437done
7a197a62 2438IFS=$as_save_IFS
8106cdd5 2439
ad6254c5
AK
2440fi
2441fi
2442CC=$ac_cv_prog_CC
2443if test -n "$CC"; then
ec6a6fbe
AK
2444 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2445$as_echo "$CC" >&6; }
ad6254c5 2446else
ec6a6fbe
AK
2447 { $as_echo "$as_me:$LINENO: result: no" >&5
2448$as_echo "no" >&6; }
ad6254c5
AK
2449fi
2450
7a197a62 2451
ad6254c5
AK
2452fi
2453if test -z "$ac_cv_prog_CC"; then
2454 ac_ct_CC=$CC
2455 # Extract the first word of "gcc", so it can be a program name with args.
8106cdd5 2456set dummy gcc; ac_word=$2
ec6a6fbe
AK
2457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2458$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2460 $as_echo_n "(cached) " >&6
ad6254c5
AK
2461else
2462 if test -n "$ac_ct_CC"; then
2463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2472 ac_cv_prog_ac_ct_CC="gcc"
ec6a6fbe 2473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2474 break 2
2475 fi
2476done
2477done
7a197a62 2478IFS=$as_save_IFS
ad6254c5
AK
2479
2480fi
2481fi
2482ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2484 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2486else
ec6a6fbe
AK
2487 { $as_echo "$as_me:$LINENO: result: no" >&5
2488$as_echo "no" >&6; }
ad6254c5
AK
2489fi
2490
7a197a62
AK
2491 if test "x$ac_ct_CC" = x; then
2492 CC=""
2493 else
2494 case $cross_compiling:$ac_tool_warned in
2495yes:)
ec6a6fbe
AK
2496{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2497$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2498ac_tool_warned=yes ;;
2499esac
2500 CC=$ac_ct_CC
2501 fi
ad6254c5
AK
2502else
2503 CC="$ac_cv_prog_CC"
2504fi
2505
2506if test -z "$CC"; then
7a197a62
AK
2507 if test -n "$ac_tool_prefix"; then
2508 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ad6254c5 2509set dummy ${ac_tool_prefix}cc; ac_word=$2
ec6a6fbe
AK
2510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2511$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2512if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2513 $as_echo_n "(cached) " >&6
8106cdd5
AK
2514else
2515 if test -n "$CC"; then
2516 ac_cv_prog_CC="$CC" # Let the user override the test.
2517else
ad6254c5
AK
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521 IFS=$as_save_IFS
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2525 ac_cv_prog_CC="${ac_tool_prefix}cc"
ec6a6fbe 2526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2527 break 2
2528 fi
2529done
2530done
7a197a62 2531IFS=$as_save_IFS
ad6254c5 2532
8106cdd5
AK
2533fi
2534fi
ad6254c5 2535CC=$ac_cv_prog_CC
8106cdd5 2536if test -n "$CC"; then
ec6a6fbe
AK
2537 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2538$as_echo "$CC" >&6; }
ad6254c5 2539else
ec6a6fbe
AK
2540 { $as_echo "$as_me:$LINENO: result: no" >&5
2541$as_echo "no" >&6; }
ad6254c5
AK
2542fi
2543
8106cdd5 2544
7a197a62 2545 fi
ad6254c5 2546fi
795ca3e5
AK
2547if test -z "$CC"; then
2548 # Extract the first word of "cc", so it can be a program name with args.
2549set dummy cc; ac_word=$2
ec6a6fbe
AK
2550{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2551$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2552if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2553 $as_echo_n "(cached) " >&6
795ca3e5
AK
2554else
2555 if test -n "$CC"; then
2556 ac_cv_prog_CC="$CC" # Let the user override the test.
2557else
795ca3e5 2558 ac_prog_rejected=no
ad6254c5
AK
2559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560for as_dir in $PATH
2561do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5
AK
2566 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2567 ac_prog_rejected=yes
2568 continue
2569 fi
2570 ac_cv_prog_CC="cc"
ec6a6fbe 2571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2572 break 2
2573 fi
2574done
2575done
7a197a62 2576IFS=$as_save_IFS
ad6254c5 2577
795ca3e5
AK
2578if test $ac_prog_rejected = yes; then
2579 # We found a bogon in the path, so make sure we never use it.
2580 set dummy $ac_cv_prog_CC
2581 shift
ad6254c5 2582 if test $# != 0; then
795ca3e5
AK
2583 # We chose a different compiler from the bogus one.
2584 # However, it has the same basename, so the bogon will be chosen
2585 # first if we set CC to just the basename; use the full file name.
2586 shift
ad6254c5 2587 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
795ca3e5
AK
2588 fi
2589fi
2590fi
2591fi
ad6254c5 2592CC=$ac_cv_prog_CC
795ca3e5 2593if test -n "$CC"; then
ec6a6fbe
AK
2594 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2595$as_echo "$CC" >&6; }
795ca3e5 2596else
ec6a6fbe
AK
2597 { $as_echo "$as_me:$LINENO: result: no" >&5
2598$as_echo "no" >&6; }
795ca3e5
AK
2599fi
2600
7a197a62 2601
ad6254c5
AK
2602fi
2603if test -z "$CC"; then
2604 if test -n "$ac_tool_prefix"; then
7a197a62 2605 for ac_prog in cl.exe
ad6254c5
AK
2606 do
2607 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2608set dummy $ac_tool_prefix$ac_prog; ac_word=$2
ec6a6fbe
AK
2609{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2611if test "${ac_cv_prog_CC+set}" = set; then
ec6a6fbe 2612 $as_echo_n "(cached) " >&6
795ca3e5
AK
2613else
2614 if test -n "$CC"; then
2615 ac_cv_prog_CC="$CC" # Let the user override the test.
2616else
ad6254c5
AK
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2624 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
ec6a6fbe 2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
2626 break 2
2627 fi
2628done
2629done
7a197a62 2630IFS=$as_save_IFS
ad6254c5 2631
795ca3e5
AK
2632fi
2633fi
ad6254c5 2634CC=$ac_cv_prog_CC
795ca3e5 2635if test -n "$CC"; then
ec6a6fbe
AK
2636 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2637$as_echo "$CC" >&6; }
795ca3e5 2638else
ec6a6fbe
AK
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640$as_echo "no" >&6; }
795ca3e5 2641fi
ad6254c5 2642
7a197a62 2643
ad6254c5
AK
2644 test -n "$CC" && break
2645 done
2646fi
2647if test -z "$CC"; then
2648 ac_ct_CC=$CC
7a197a62 2649 for ac_prog in cl.exe
ad6254c5
AK
2650do
2651 # Extract the first word of "$ac_prog", so it can be a program name with args.
2652set dummy $ac_prog; ac_word=$2
ec6a6fbe
AK
2653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2654$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 2655if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
ec6a6fbe 2656 $as_echo_n "(cached) " >&6
ad6254c5
AK
2657else
2658 if test -n "$ac_ct_CC"; then
2659 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660else
2661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 2667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 2668 ac_cv_prog_ac_ct_CC="$ac_prog"
ec6a6fbe 2669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5 2670 break 2
795ca3e5 2671 fi
ad6254c5
AK
2672done
2673done
7a197a62 2674IFS=$as_save_IFS
ad6254c5
AK
2675
2676fi
2677fi
2678ac_ct_CC=$ac_cv_prog_ac_ct_CC
2679if test -n "$ac_ct_CC"; then
ec6a6fbe
AK
2680 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2681$as_echo "$ac_ct_CC" >&6; }
ad6254c5 2682else
ec6a6fbe
AK
2683 { $as_echo "$as_me:$LINENO: result: no" >&5
2684$as_echo "no" >&6; }
795ca3e5
AK
2685fi
2686
7a197a62 2687
ad6254c5
AK
2688 test -n "$ac_ct_CC" && break
2689done
795ca3e5 2690
7a197a62
AK
2691 if test "x$ac_ct_CC" = x; then
2692 CC=""
2693 else
2694 case $cross_compiling:$ac_tool_warned in
2695yes:)
ec6a6fbe
AK
2696{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7a197a62
AK
2698ac_tool_warned=yes ;;
2699esac
2700 CC=$ac_ct_CC
2701 fi
ad6254c5
AK
2702fi
2703
2704fi
2705
2706
ec6a6fbe
AK
2707test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2709{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ad6254c5 2710See \`config.log' for more details." >&5
ec6a6fbe 2711$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
ad6254c5 2712See \`config.log' for more details." >&2;}
ec6a6fbe 2713 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2714
2715# Provide some information about the compiler.
ec6a6fbe
AK
2716$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2717set X $ac_compile
2718ac_compiler=$2
7a197a62
AK
2719{ (ac_try="$ac_compiler --version >&5"
2720case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
ec6a6fbe
AK
2724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2725$as_echo "$ac_try_echo") >&5
7a197a62 2726 (eval "$ac_compiler --version >&5") 2>&5
ad6254c5 2727 ac_status=$?
ec6a6fbe 2728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2729 (exit $ac_status); }
7a197a62
AK
2730{ (ac_try="$ac_compiler -v >&5"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
ec6a6fbe
AK
2735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736$as_echo "$ac_try_echo") >&5
7a197a62 2737 (eval "$ac_compiler -v >&5") 2>&5
ad6254c5 2738 ac_status=$?
ec6a6fbe 2739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2740 (exit $ac_status); }
7a197a62
AK
2741{ (ac_try="$ac_compiler -V >&5"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
ec6a6fbe
AK
2746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2747$as_echo "$ac_try_echo") >&5
7a197a62 2748 (eval "$ac_compiler -V >&5") 2>&5
ad6254c5 2749 ac_status=$?
ec6a6fbe 2750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2751 (exit $ac_status); }
2752
2753cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759
2760int
2761main ()
2762{
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768ac_clean_files_save=$ac_clean_files
ec6a6fbe 2769ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
ad6254c5
AK
2770# Try to create an executable without -o first, disregard a.out.
2771# It will help us diagnose broken compilers, and finding out an intuition
2772# of exeext.
ec6a6fbe
AK
2773{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774$as_echo_n "checking for C compiler default output file name... " >&6; }
2775ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2776
2777# The possible output files:
2778ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2779
7a197a62
AK
2780ac_rmfiles=
2781for ac_file in $ac_files
2782do
2783 case $ac_file in
ec6a6fbe 2784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7a197a62
AK
2785 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2786 esac
2787done
2788rm -f $ac_rmfiles
2789
2790if { (ac_try="$ac_link_default"
2791case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
ec6a6fbe
AK
2795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2796$as_echo "$ac_try_echo") >&5
7a197a62 2797 (eval "$ac_link_default") 2>&5
ad6254c5 2798 ac_status=$?
ec6a6fbe 2799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2800 (exit $ac_status); }; then
7a197a62
AK
2801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803# in a Makefile. We should not override ac_cv_exeext if it was cached,
2804# so that the user can short-circuit this test for compilers unknown to
2805# Autoconf.
25fbec5b 2806for ac_file in $ac_files ''
ad6254c5
AK
2807do
2808 test -f "$ac_file" || continue
2809 case $ac_file in
ec6a6fbe 2810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8a2fc586 2811 ;;
ad6254c5 2812 [ab].out )
8a2fc586
AK
2813 # We found the default executable, but exeext='' is most
2814 # certainly right.
2815 break;;
ad6254c5 2816 *.* )
7a197a62
AK
2817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818 then :; else
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820 fi
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2825 # actually working.
8a2fc586 2826 break;;
ad6254c5 2827 * )
8a2fc586 2828 break;;
ad6254c5
AK
2829 esac
2830done
7a197a62
AK
2831test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
ad6254c5 2833else
25fbec5b
AK
2834 ac_file=''
2835fi
2836
ec6a6fbe
AK
2837{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2838$as_echo "$ac_file" >&6; }
25fbec5b 2839if test -z "$ac_file"; then
ec6a6fbe 2840 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
ec6a6fbe
AK
2843{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
ad6254c5 2846See \`config.log' for more details." >&5
ec6a6fbe 2847$as_echo "$as_me: error: C compiler cannot create executables
ad6254c5 2848See \`config.log' for more details." >&2;}
ec6a6fbe 2849 { (exit 77); exit 77; }; }; }
ad6254c5
AK
2850fi
2851
2852ac_exeext=$ac_cv_exeext
ad6254c5 2853
7a197a62 2854# Check that the compiler produces executables we can run. If not, either
ad6254c5 2855# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2856{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2857$as_echo_n "checking whether the C compiler works... " >&6; }
ad6254c5
AK
2858# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2859# If not cross compiling, check that we can run a simple program.
2860if test "$cross_compiling" != yes; then
2861 if { ac_try='./$ac_file'
7a197a62
AK
2862 { (case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
ec6a6fbe
AK
2866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2867$as_echo "$ac_try_echo") >&5
7a197a62 2868 (eval "$ac_try") 2>&5
ad6254c5 2869 ac_status=$?
ec6a6fbe 2870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2871 (exit $ac_status); }; }; then
2872 cross_compiling=no
795ca3e5 2873 else
ad6254c5
AK
2874 if test "$cross_compiling" = maybe; then
2875 cross_compiling=yes
2876 else
ec6a6fbe
AK
2877 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
ad6254c5
AK
2880If you meant to cross compile, use \`--host'.
2881See \`config.log' for more details." >&5
ec6a6fbe 2882$as_echo "$as_me: error: cannot run C compiled programs.
ad6254c5
AK
2883If you meant to cross compile, use \`--host'.
2884See \`config.log' for more details." >&2;}
ec6a6fbe 2885 { (exit 1); exit 1; }; }; }
ad6254c5 2886 fi
795ca3e5 2887 fi
80992638 2888fi
ec6a6fbe
AK
2889{ $as_echo "$as_me:$LINENO: result: yes" >&5
2890$as_echo "yes" >&6; }
ad6254c5 2891
ec6a6fbe 2892rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
ad6254c5 2893ac_clean_files=$ac_clean_files_save
7a197a62 2894# Check that the compiler produces executables we can run. If not, either
ad6254c5 2895# the compiler is broken, or we cross compile.
ec6a6fbe
AK
2896{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2897$as_echo_n "checking whether we are cross compiling... " >&6; }
2898{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2899$as_echo "$cross_compiling" >&6; }
7a197a62 2900
ec6a6fbe
AK
2901{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2902$as_echo_n "checking for suffix of executables... " >&6; }
7a197a62
AK
2903if { (ac_try="$ac_link"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
ec6a6fbe
AK
2908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2909$as_echo "$ac_try_echo") >&5
7a197a62 2910 (eval "$ac_link") 2>&5
ad6254c5 2911 ac_status=$?
ec6a6fbe 2912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
2913 (exit $ac_status); }; then
2914 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2915# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2916# work properly (i.e., refer to `conftest.exe'), while it won't with
2917# `rm'.
2918for ac_file in conftest.exe conftest conftest.*; do
2919 test -f "$ac_file" || continue
2920 case $ac_file in
ec6a6fbe 2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
ad6254c5 2922 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8a2fc586 2923 break;;
ad6254c5
AK
2924 * ) break;;
2925 esac
2926done
80992638 2927else
ec6a6fbe
AK
2928 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2931See \`config.log' for more details." >&5
ec6a6fbe 2932$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
ad6254c5 2933See \`config.log' for more details." >&2;}
ec6a6fbe 2934 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2935fi
2936
2937rm -f conftest$ac_cv_exeext
ec6a6fbe
AK
2938{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2939$as_echo "$ac_cv_exeext" >&6; }
ad6254c5
AK
2940
2941rm -f conftest.$ac_ext
2942EXEEXT=$ac_cv_exeext
2943ac_exeext=$EXEEXT
ec6a6fbe
AK
2944{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2945$as_echo_n "checking for suffix of object files... " >&6; }
ad6254c5 2946if test "${ac_cv_objext+set}" = set; then
ec6a6fbe 2947 $as_echo_n "(cached) " >&6
795ca3e5 2948else
ad6254c5 2949 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
2950/* confdefs.h. */
2951_ACEOF
2952cat confdefs.h >>conftest.$ac_ext
2953cat >>conftest.$ac_ext <<_ACEOF
2954/* end confdefs.h. */
2955
2956int
2957main ()
2958{
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964rm -f conftest.o conftest.obj
7a197a62
AK
2965if { (ac_try="$ac_compile"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
ec6a6fbe
AK
2970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971$as_echo "$ac_try_echo") >&5
7a197a62 2972 (eval "$ac_compile") 2>&5
ad6254c5 2973 ac_status=$?
ec6a6fbe 2974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 2975 (exit $ac_status); }; then
7a197a62
AK
2976 for ac_file in conftest.o conftest.obj conftest.*; do
2977 test -f "$ac_file" || continue;
ad6254c5 2978 case $ac_file in
ec6a6fbe 2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
ad6254c5
AK
2980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981 break;;
2982 esac
2983done
2984else
ec6a6fbe 2985 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
ec6a6fbe
AK
2988{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
ad6254c5 2991See \`config.log' for more details." >&5
ec6a6fbe 2992$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
ad6254c5 2993See \`config.log' for more details." >&2;}
ec6a6fbe 2994 { (exit 1); exit 1; }; }; }
ad6254c5
AK
2995fi
2996
2997rm -f conftest.$ac_cv_objext conftest.$ac_ext
2998fi
ec6a6fbe
AK
2999{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3000$as_echo "$ac_cv_objext" >&6; }
ad6254c5
AK
3001OBJEXT=$ac_cv_objext
3002ac_objext=$OBJEXT
ec6a6fbe
AK
3003{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3004$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
ad6254c5 3005if test "${ac_cv_c_compiler_gnu+set}" = set; then
ec6a6fbe 3006 $as_echo_n "(cached) " >&6
ad6254c5
AK
3007else
3008 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3009/* confdefs.h. */
3010_ACEOF
3011cat confdefs.h >>conftest.$ac_ext
3012cat >>conftest.$ac_ext <<_ACEOF
3013/* end confdefs.h. */
3014
3015int
3016main ()
3017{
3018#ifndef __GNUC__
3019 choke me
3020#endif
80992638 3021
ad6254c5
AK
3022 ;
3023 return 0;
3024}
3025_ACEOF
3026rm -f conftest.$ac_objext
7a197a62
AK
3027if { (ac_try="$ac_compile"
3028case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031esac
ec6a6fbe
AK
3032eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3033$as_echo "$ac_try_echo") >&5
7a197a62 3034 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3035 ac_status=$?
8a2fc586
AK
3036 grep -v '^ *+' conftest.er1 >conftest.err
3037 rm -f conftest.er1
3038 cat conftest.err >&5
ec6a6fbe 3039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3040 (exit $ac_status); } && {
3041 test -z "$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3043 } && test -s conftest.$ac_objext; then
ad6254c5 3044 ac_compiler_gnu=yes
80992638 3045else
ec6a6fbe 3046 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3047sed 's/^/| /' conftest.$ac_ext >&5
3048
7a197a62 3049 ac_compiler_gnu=no
8106cdd5 3050fi
7a197a62
AK
3051
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 3053ac_cv_c_compiler_gnu=$ac_compiler_gnu
80992638 3054
ad6254c5 3055fi
ec6a6fbe
AK
3056{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3057$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3058if test $ac_compiler_gnu = yes; then
3059 GCC=yes
3060else
3061 GCC=
3062fi
ad6254c5
AK
3063ac_test_CFLAGS=${CFLAGS+set}
3064ac_save_CFLAGS=$CFLAGS
ec6a6fbe
AK
3065{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3066$as_echo_n "checking whether $CC accepts -g... " >&6; }
ad6254c5 3067if test "${ac_cv_prog_cc_g+set}" = set; then
ec6a6fbe 3068 $as_echo_n "(cached) " >&6
795ca3e5 3069else
7a197a62
AK
3070 ac_save_c_werror_flag=$ac_c_werror_flag
3071 ac_c_werror_flag=yes
3072 ac_cv_prog_cc_g=no
3073 CFLAGS="-g"
3074 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080
3081int
3082main ()
3083{
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
7a197a62
AK
3090if { (ac_try="$ac_compile"
3091case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094esac
ec6a6fbe
AK
3095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096$as_echo "$ac_try_echo") >&5
7a197a62 3097 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3098 ac_status=$?
8a2fc586
AK
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
ec6a6fbe 3102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
7a197a62
AK
3107 ac_cv_prog_cc_g=yes
3108else
ec6a6fbe 3109 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3110sed 's/^/| /' conftest.$ac_ext >&5
3111
3112 CFLAGS=""
3113 cat >conftest.$ac_ext <<_ACEOF
3114/* confdefs.h. */
3115_ACEOF
3116cat confdefs.h >>conftest.$ac_ext
3117cat >>conftest.$ac_ext <<_ACEOF
3118/* end confdefs.h. */
3119
3120int
3121main ()
3122{
3123
3124 ;
3125 return 0;
3126}
3127_ACEOF
3128rm -f conftest.$ac_objext
3129if { (ac_try="$ac_compile"
3130case "(($ac_try" in
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3133esac
ec6a6fbe
AK
3134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3135$as_echo "$ac_try_echo") >&5
7a197a62 3136 (eval "$ac_compile") 2>conftest.er1
8a2fc586 3137 ac_status=$?
7a197a62
AK
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
ec6a6fbe 3141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3142 (exit $ac_status); } && {
3143 test -z "$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 } && test -s conftest.$ac_objext; then
7a197a62
AK
3146 :
3147else
ec6a6fbe 3148 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
3149sed 's/^/| /' conftest.$ac_ext >&5
3150
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3152 CFLAGS="-g"
3153 cat >conftest.$ac_ext <<_ACEOF
3154/* confdefs.h. */
3155_ACEOF
3156cat confdefs.h >>conftest.$ac_ext
3157cat >>conftest.$ac_ext <<_ACEOF
3158/* end confdefs.h. */
3159
3160int
3161main ()
3162{
3163
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168rm -f conftest.$ac_objext
3169if { (ac_try="$ac_compile"
3170case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
ec6a6fbe
AK
3174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3175$as_echo "$ac_try_echo") >&5
7a197a62 3176 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3177 ac_status=$?
7a197a62
AK
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
ec6a6fbe 3181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3182 (exit $ac_status); } && {
3183 test -z "$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
795ca3e5
AK
3186 ac_cv_prog_cc_g=yes
3187else
ec6a6fbe 3188 $as_echo "$as_me: failed program was:" >&5
ad6254c5 3189sed 's/^/| /' conftest.$ac_ext >&5
80992638 3190
7a197a62
AK
3191
3192fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106cdd5 3198fi
7a197a62
AK
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_c_werror_flag=$ac_save_c_werror_flag
ad6254c5 3202fi
ec6a6fbe
AK
3203{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3204$as_echo "$ac_cv_prog_cc_g" >&6; }
795ca3e5 3205if test "$ac_test_CFLAGS" = set; then
ad6254c5 3206 CFLAGS=$ac_save_CFLAGS
795ca3e5
AK
3207elif test $ac_cv_prog_cc_g = yes; then
3208 if test "$GCC" = yes; then
3209 CFLAGS="-g -O2"
3210 else
3211 CFLAGS="-g"
3212 fi
3213else
3214 if test "$GCC" = yes; then
3215 CFLAGS="-O2"
3216 else
3217 CFLAGS=
3218 fi
3219fi
ec6a6fbe
AK
3220{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3221$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7a197a62 3222if test "${ac_cv_prog_cc_c89+set}" = set; then
ec6a6fbe 3223 $as_echo_n "(cached) " >&6
ad6254c5 3224else
7a197a62 3225 ac_cv_prog_cc_c89=no
ad6254c5
AK
3226ac_save_CC=$CC
3227cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3228/* confdefs.h. */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h. */
3233#include <stdarg.h>
3234#include <stdio.h>
3235#include <sys/types.h>
3236#include <sys/stat.h>
3237/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238struct buf { int x; };
3239FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240static char *e (p, i)
3241 char **p;
3242 int i;
3243{
3244 return p[i];
3245}
3246static char *f (char * (*g) (char **, int), char **p, ...)
3247{
3248 char *s;
3249 va_list v;
3250 va_start (v,p);
3251 s = g (p, va_arg (v,int));
3252 va_end (v);
3253 return s;
3254}
8a2fc586
AK
3255
3256/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
7a197a62 3259 as 'x'. The following induces an error, until -std is added to get
8a2fc586
AK
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
7a197a62 3262 that's true only with -std. */
8a2fc586
AK
3263int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3264
7a197a62
AK
3265/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3267#define FOO(x) 'x'
3268int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3269
ad6254c5
AK
3270int test (int i, double x);
3271struct s1 {int (*f) (int a);};
3272struct s2 {int (*f) (double a);};
3273int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274int argc;
3275char **argv;
3276int
3277main ()
3278{
3279return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 ;
3281 return 0;
3282}
3283_ACEOF
7a197a62
AK
3284for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ad6254c5
AK
3286do
3287 CC="$ac_save_CC $ac_arg"
3288 rm -f conftest.$ac_objext
7a197a62
AK
3289if { (ac_try="$ac_compile"
3290case "(($ac_try" in
3291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292 *) ac_try_echo=$ac_try;;
3293esac
ec6a6fbe
AK
3294eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3295$as_echo "$ac_try_echo") >&5
7a197a62 3296 (eval "$ac_compile") 2>conftest.er1
ad6254c5 3297 ac_status=$?
8a2fc586
AK
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
ec6a6fbe 3301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
3302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
7a197a62 3306 ac_cv_prog_cc_c89=$ac_arg
ad6254c5 3307else
ec6a6fbe 3308 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3309sed 's/^/| /' conftest.$ac_ext >&5
3310
7a197a62 3311
ad6254c5 3312fi
7a197a62
AK
3313
3314rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
ad6254c5 3316done
7a197a62 3317rm -f conftest.$ac_ext
ad6254c5
AK
3318CC=$ac_save_CC
3319
3320fi
7a197a62
AK
3321# AC_CACHE_VAL
3322case "x$ac_cv_prog_cc_c89" in
3323 x)
ec6a6fbe
AK
3324 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3325$as_echo "none needed" >&6; } ;;
7a197a62 3326 xno)
ec6a6fbe
AK
3327 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3328$as_echo "unsupported" >&6; } ;;
ad6254c5 3329 *)
7a197a62 3330 CC="$CC $ac_cv_prog_cc_c89"
ec6a6fbe
AK
3331 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3332$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
ad6254c5
AK
3333esac
3334
ad6254c5 3335
ad6254c5
AK
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
795ca3e5 3341
d0191583
JM
3342
3343
3344ac_ext=c
3345ac_cpp='$CPP $CPPFLAGS'
3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348ac_compiler_gnu=$ac_cv_c_compiler_gnu
ec6a6fbe
AK
3349{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350$as_echo_n "checking how to run the C preprocessor... " >&6; }
d0191583
JM
3351# On Suns, sometimes $CPP names a directory.
3352if test -n "$CPP" && test -d "$CPP"; then
3353 CPP=
3354fi
3355if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
ec6a6fbe 3357 $as_echo_n "(cached) " >&6
ad6254c5 3358else
d0191583
JM
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3361 do
3362 ac_preproc_ok=false
3363for ac_c_preproc_warn_flag in '' yes
ad6254c5 3364do
d0191583
JM
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h. */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h. */
3377#ifdef __STDC__
3378# include <limits.h>
3379#else
3380# include <assert.h>
3381#endif
3382 Syntax error
3383_ACEOF
3384if { (ac_try="$ac_cpp conftest.$ac_ext"
3385case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
ad6254c5 3388esac
ec6a6fbe
AK
3389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3390$as_echo "$ac_try_echo") >&5
d0191583
JM
3391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
ec6a6fbe 3396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3397 (exit $ac_status); } >/dev/null && {
3398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 }; then
3401 :
3402else
ec6a6fbe 3403 $as_echo "$as_me: failed program was:" >&5
d0191583 3404sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3405
d0191583
JM
3406 # Broken: fails on valid input.
3407continue
795ca3e5 3408fi
795ca3e5 3409
d0191583 3410rm -f conftest.err conftest.$ac_ext
795ca3e5 3411
d0191583
JM
3412 # OK, works on sane cases. Now check whether nonexistent headers
3413 # can be detected and how.
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420#include <ac_nonexistent.h>
3421_ACEOF
3422if { (ac_try="$ac_cpp conftest.$ac_ext"
3423case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426esac
ec6a6fbe
AK
3427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428$as_echo "$ac_try_echo") >&5
d0191583
JM
3429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
ec6a6fbe 3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3435 (exit $ac_status); } >/dev/null && {
3436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 }; then
3439 # Broken: success on invalid input.
3440continue
3441else
ec6a6fbe 3442 $as_echo "$as_me: failed program was:" >&5
d0191583 3443sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 3444
d0191583
JM
3445 # Passes both tests.
3446ac_preproc_ok=:
3447break
3448fi
795ca3e5 3449
d0191583
JM
3450rm -f conftest.err conftest.$ac_ext
3451
3452done
3453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3454rm -f conftest.err conftest.$ac_ext
3455if $ac_preproc_ok; then
3456 break
795ca3e5
AK
3457fi
3458
d0191583
JM
3459 done
3460 ac_cv_prog_CPP=$CPP
3461
3462fi
3463 CPP=$ac_cv_prog_CPP
795ca3e5 3464else
d0191583
JM
3465 ac_cv_prog_CPP=$CPP
3466fi
ec6a6fbe
AK
3467{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3468$as_echo "$CPP" >&6; }
d0191583
JM
3469ac_preproc_ok=false
3470for ac_c_preproc_warn_flag in '' yes
3471do
3472 # Use a header file that comes with gcc, so configuring glibc
3473 # with a fresh cross-compiler works.
3474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475 # <limits.h> exists even on freestanding compilers.
3476 # On the NeXT, cc -E runs the code through the compiler's parser,
3477 # not just through cpp. "Syntax error" is here to catch this case.
3478 cat >conftest.$ac_ext <<_ACEOF
3479/* confdefs.h. */
ad6254c5 3480_ACEOF
d0191583
JM
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h. */
3484#ifdef __STDC__
3485# include <limits.h>
3486#else
3487# include <assert.h>
3488#endif
3489 Syntax error
3490_ACEOF
3491if { (ac_try="$ac_cpp conftest.$ac_ext"
3492case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
7a197a62 3495esac
ec6a6fbe
AK
3496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497$as_echo "$ac_try_echo") >&5
d0191583
JM
3498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
ec6a6fbe 3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3504 (exit $ac_status); } >/dev/null && {
3505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3506 test ! -s conftest.err
3507 }; then
3508 :
795ca3e5 3509else
ec6a6fbe 3510 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 # Broken: fails on valid input.
3514continue
795ca3e5
AK
3515fi
3516
d0191583
JM
3517rm -f conftest.err conftest.$ac_ext
3518
3519 # OK, works on sane cases. Now check whether nonexistent headers
3520 # can be detected and how.
3521 cat >conftest.$ac_ext <<_ACEOF
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
3527#include <ac_nonexistent.h>
3528_ACEOF
3529if { (ac_try="$ac_cpp conftest.$ac_ext"
3530case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533esac
ec6a6fbe
AK
3534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535$as_echo "$ac_try_echo") >&5
d0191583
JM
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537 ac_status=$?
3538 grep -v '^ *+' conftest.er1 >conftest.err
3539 rm -f conftest.er1
3540 cat conftest.err >&5
ec6a6fbe 3541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
3542 (exit $ac_status); } >/dev/null && {
3543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544 test ! -s conftest.err
3545 }; then
3546 # Broken: success on invalid input.
3547continue
795ca3e5 3548else
ec6a6fbe 3549 $as_echo "$as_me: failed program was:" >&5
d0191583 3550sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 3551
d0191583
JM
3552 # Passes both tests.
3553ac_preproc_ok=:
3554break
795ca3e5 3555fi
d0191583
JM
3556
3557rm -f conftest.err conftest.$ac_ext
3558
3559done
3560# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561rm -f conftest.err conftest.$ac_ext
3562if $ac_preproc_ok; then
3563 :
8106cdd5 3564else
ec6a6fbe
AK
3565 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3566$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3568See \`config.log' for more details." >&5
ec6a6fbe 3569$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
d0191583 3570See \`config.log' for more details." >&2;}
ec6a6fbe 3571 { (exit 1); exit 1; }; }; }
8106cdd5
AK
3572fi
3573
d0191583
JM
3574ac_ext=c
3575ac_cpp='$CPP $CPPFLAGS'
3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
7a197a62 3580
ec6a6fbe
AK
3581{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3582$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5556819a 3583if test "${ac_cv_path_GREP+set}" = set; then
ec6a6fbe 3584 $as_echo_n "(cached) " >&6
ad6254c5 3585else
ec6a6fbe 3586 if test -z "$GREP"; then
d0191583 3587 ac_path_GREP_found=false
ec6a6fbe
AK
3588 # Loop through the user's path and test for each of PROGNAME-LIST
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3590for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
ad6254c5
AK
3591do
3592 IFS=$as_save_IFS
3593 test -z "$as_dir" && as_dir=.
d0191583 3594 for ac_prog in grep ggrep; do
ec6a6fbe
AK
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3597 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3598# Check for GNU ac_path_GREP and select it if it is found.
d0191583
JM
3599 # Check for GNU $ac_path_GREP
3600case `"$ac_path_GREP" --version 2>&1` in
3601*GNU*)
3602 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3603*)
3604 ac_count=0
ec6a6fbe 3605 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3606 while :
3607 do
3608 cat "conftest.in" "conftest.in" >"conftest.tmp"
3609 mv "conftest.tmp" "conftest.in"
3610 cp "conftest.in" "conftest.nl"
ec6a6fbe 3611 $as_echo 'GREP' >> "conftest.nl"
d0191583
JM
3612 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3613 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3614 ac_count=`expr $ac_count + 1`
3615 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3616 # Best one so far, save it but keep looking for a better one
3617 ac_cv_path_GREP="$ac_path_GREP"
3618 ac_path_GREP_max=$ac_count
3619 fi
3620 # 10*(2^10) chars as input seems more than enough
3621 test $ac_count -gt 10 && break
3622 done
3623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3624esac
3625
ec6a6fbe
AK
3626 $ac_path_GREP_found && break 3
3627 done
d0191583 3628 done
ad6254c5 3629done
7a197a62 3630IFS=$as_save_IFS
ec6a6fbe
AK
3631 if test -z "$ac_cv_path_GREP"; then
3632 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3633$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3634 { (exit 1); exit 1; }; }
ec6a6fbe 3635 fi
80992638 3636else
d0191583 3637 ac_cv_path_GREP=$GREP
8106cdd5 3638fi
8106cdd5 3639
80992638 3640fi
ec6a6fbe
AK
3641{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3642$as_echo "$ac_cv_path_GREP" >&6; }
d0191583 3643 GREP="$ac_cv_path_GREP"
795ca3e5 3644
d0191583 3645
ec6a6fbe
AK
3646{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3647$as_echo_n "checking for egrep... " >&6; }
d0191583 3648if test "${ac_cv_path_EGREP+set}" = set; then
ec6a6fbe 3649 $as_echo_n "(cached) " >&6
8a2fc586 3650else
d0191583
JM
3651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3652 then ac_cv_path_EGREP="$GREP -E"
3653 else
ec6a6fbe 3654 if test -z "$EGREP"; then
d0191583 3655 ac_path_EGREP_found=false
ec6a6fbe
AK
3656 # Loop through the user's path and test for each of PROGNAME-LIST
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d0191583 3658for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8a2fc586
AK
3659do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
d0191583 3662 for ac_prog in egrep; do
ec6a6fbe
AK
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3665 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3666# Check for GNU ac_path_EGREP and select it if it is found.
d0191583
JM
3667 # Check for GNU $ac_path_EGREP
3668case `"$ac_path_EGREP" --version 2>&1` in
3669*GNU*)
3670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3671*)
3672 ac_count=0
ec6a6fbe 3673 $as_echo_n 0123456789 >"conftest.in"
d0191583
JM
3674 while :
3675 do
3676 cat "conftest.in" "conftest.in" >"conftest.tmp"
3677 mv "conftest.tmp" "conftest.in"
3678 cp "conftest.in" "conftest.nl"
ec6a6fbe 3679 $as_echo 'EGREP' >> "conftest.nl"
d0191583
JM
3680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3682 ac_count=`expr $ac_count + 1`
3683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3684 # Best one so far, save it but keep looking for a better one
3685 ac_cv_path_EGREP="$ac_path_EGREP"
3686 ac_path_EGREP_max=$ac_count
3687 fi
3688 # 10*(2^10) chars as input seems more than enough
3689 test $ac_count -gt 10 && break
3690 done
3691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8a2fc586 3692esac
8a2fc586 3693
ec6a6fbe
AK
3694 $ac_path_EGREP_found && break 3
3695 done
d0191583 3696 done
8a2fc586 3697done
7a197a62 3698IFS=$as_save_IFS
ec6a6fbe
AK
3699 if test -z "$ac_cv_path_EGREP"; then
3700 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3701$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
d0191583 3702 { (exit 1); exit 1; }; }
ec6a6fbe 3703 fi
d0191583
JM
3704else
3705 ac_cv_path_EGREP=$EGREP
3706fi
ad6254c5 3707
d0191583
JM
3708 fi
3709fi
ec6a6fbe
AK
3710{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3711$as_echo "$ac_cv_path_EGREP" >&6; }
d0191583 3712 EGREP="$ac_cv_path_EGREP"
ad6254c5
AK
3713
3714
d0191583 3715if test $ac_cv_c_compiler_gnu = yes; then
ec6a6fbe
AK
3716 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3717$as_echo_n "checking whether $CC needs -traditional... " >&6; }
d0191583 3718if test "${ac_cv_prog_gcc_traditional+set}" = set; then
ec6a6fbe 3719 $as_echo_n "(cached) " >&6
8106cdd5 3720else
d0191583 3721 ac_pattern="Autoconf.*'x'"
ad6254c5 3722 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3723/* confdefs.h. */
3724_ACEOF
3725cat confdefs.h >>conftest.$ac_ext
3726cat >>conftest.$ac_ext <<_ACEOF
3727/* end confdefs.h. */
d0191583
JM
3728#include <sgtty.h>
3729Autoconf TIOCGETP
ad6254c5 3730_ACEOF
d0191583
JM
3731if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3732 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3733 ac_cv_prog_gcc_traditional=yes
8106cdd5 3734else
d0191583 3735 ac_cv_prog_gcc_traditional=no
80992638 3736fi
d0191583 3737rm -f conftest*
ad6254c5 3738
8106cdd5 3739
d0191583
JM
3740 if test $ac_cv_prog_gcc_traditional = no; then
3741 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
3742/* confdefs.h. */
3743_ACEOF
3744cat confdefs.h >>conftest.$ac_ext
3745cat >>conftest.$ac_ext <<_ACEOF
3746/* end confdefs.h. */
d0191583
JM
3747#include <termio.h>
3748Autoconf TCGETA
ad6254c5 3749_ACEOF
d0191583
JM
3750if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3751 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3752 ac_cv_prog_gcc_traditional=yes
7a197a62 3753fi
d0191583 3754rm -f conftest*
795ca3e5 3755
d0191583 3756 fi
795ca3e5 3757fi
ec6a6fbe
AK
3758{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3759$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
d0191583
JM
3760 if test $ac_cv_prog_gcc_traditional = yes; then
3761 CC="$CC -traditional"
3762 fi
795ca3e5
AK
3763fi
3764
d0191583
JM
3765# Find a good install program. We prefer a C program (faster),
3766# so one script is as good as another. But avoid the broken or
3767# incompatible versions:
3768# SysV /etc/install, /usr/sbin/install
3769# SunOS /usr/etc/install
3770# IRIX /sbin/install
3771# AIX /bin/install
3772# AmigaOS /C/install, which installs bootblocks on floppy discs
3773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3774# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3776# OS/2's system install, which has a completely different semantic
3777# ./install, which can be erroneously created by make from ./install.sh.
ec6a6fbe
AK
3778# Reject install programs that cannot install multiple files.
3779{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3780$as_echo_n "checking for a BSD-compatible install... " >&6; }
d0191583
JM
3781if test -z "$INSTALL"; then
3782if test "${ac_cv_path_install+set}" = set; then
ec6a6fbe 3783 $as_echo_n "(cached) " >&6
ad6254c5 3784else
d0191583
JM
3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 # Account for people who put trailing slashes in PATH elements.
3791case $as_dir/ in
3792 ./ | .// | /cC/* | \
3793 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3794 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3795 /usr/ucb/* ) ;;
3796 *)
3797 # OSF1 and SCO ODT 3.0 have their own names for install.
3798 # Don't use installbsd from OSF since it installs stuff as root
3799 # by default.
3800 for ac_prog in ginstall scoinst install; do
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3803 if test $ac_prog = install &&
3804 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3805 # AIX install. It has an incompatible calling convention.
3806 :
3807 elif test $ac_prog = install &&
3808 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3809 # program-specific install script used by HP pwplus--don't use.
3810 :
3811 else
ec6a6fbe
AK
3812 rm -rf conftest.one conftest.two conftest.dir
3813 echo one > conftest.one
3814 echo two > conftest.two
3815 mkdir conftest.dir
3816 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3817 test -s conftest.one && test -s conftest.two &&
3818 test -s conftest.dir/conftest.one &&
3819 test -s conftest.dir/conftest.two
3820 then
3821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3822 break 3
3823 fi
d0191583
JM
3824 fi
3825 fi
3826 done
3827 done
3828 ;;
3829esac
ec6a6fbe 3830
d0191583
JM
3831done
3832IFS=$as_save_IFS
80992638 3833
ec6a6fbe 3834rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
3835
3836fi
3837 if test "${ac_cv_path_install+set}" = set; then
3838 INSTALL=$ac_cv_path_install
7a197a62 3839 else
d0191583
JM
3840 # As a last resort, use the slow shell script. Don't cache a
3841 # value for INSTALL within a source directory, because that will
3842 # break other packages using the cache if that directory is
3843 # removed, or if the value is a relative name.
3844 INSTALL=$ac_install_sh
7a197a62 3845 fi
d0191583 3846fi
ec6a6fbe
AK
3847{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3848$as_echo "$INSTALL" >&6; }
ad6254c5 3849
d0191583
JM
3850# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3851# It thinks the first close brace ends the variable substitution.
3852test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
ad6254c5 3853
d0191583 3854test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
80992638 3855
d0191583
JM
3856test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3857
ec6a6fbe
AK
3858{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3859$as_echo_n "checking whether ln -s works... " >&6; }
d0191583
JM
3860LN_S=$as_ln_s
3861if test "$LN_S" = "ln -s"; then
ec6a6fbe
AK
3862 { $as_echo "$as_me:$LINENO: result: yes" >&5
3863$as_echo "yes" >&6; }
d0191583 3864else
ec6a6fbe
AK
3865 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3866$as_echo "no, using $LN_S" >&6; }
795ca3e5 3867fi
d0191583 3868
ec6a6fbe
AK
3869{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3870$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3871set x ${MAKE-make}
3872ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0191583 3873if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 3874 $as_echo_n "(cached) " >&6
7a197a62 3875else
d0191583
JM
3876 cat >conftest.make <<\_ACEOF
3877SHELL = /bin/sh
3878all:
3879 @echo '@@@%%%=$(MAKE)=@@@%%%'
3880_ACEOF
3881# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3882case `${MAKE-make} -f conftest.make 2>/dev/null` in
3883 *@@@%%%=?*=@@@%%%*)
3884 eval ac_cv_prog_make_${ac_make}_set=yes;;
3885 *)
3886 eval ac_cv_prog_make_${ac_make}_set=no;;
3887esac
3888rm -f conftest.make
ad6254c5 3889fi
d0191583 3890if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
ec6a6fbe
AK
3891 { $as_echo "$as_me:$LINENO: result: yes" >&5
3892$as_echo "yes" >&6; }
d0191583
JM
3893 SET_MAKE=
3894else
ec6a6fbe
AK
3895 { $as_echo "$as_me:$LINENO: result: no" >&5
3896$as_echo "no" >&6; }
d0191583 3897 SET_MAKE="MAKE=${MAKE-make}"
795ca3e5 3898fi
8106cdd5 3899
ec6a6fbe
AK
3900{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3901$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5556819a
AK
3902if test -z "$MKDIR_P"; then
3903 if test "${ac_cv_path_mkdir+set}" = set; then
ec6a6fbe 3904 $as_echo_n "(cached) " >&6
5556819a
AK
3905else
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in mkdir gmkdir; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3914 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3915 'mkdir (GNU coreutils) '* | \
3916 'mkdir (coreutils) '* | \
3917 'mkdir (fileutils) '4.1*)
3918 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3919 break 3;;
3920 esac
3921 done
3922 done
3923done
3924IFS=$as_save_IFS
3925
3926fi
3927
3928 if test "${ac_cv_path_mkdir+set}" = set; then
3929 MKDIR_P="$ac_cv_path_mkdir -p"
3930 else
3931 # As a last resort, use the slow shell script. Don't cache a
3932 # value for MKDIR_P within a source directory, because that will
3933 # break other packages using the cache if that directory is
3934 # removed, or if the value is a relative name.
3935 test -d ./--version && rmdir ./--version
3936 MKDIR_P="$ac_install_sh -d"
3937 fi
3938fi
ec6a6fbe
AK
3939{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3940$as_echo "$MKDIR_P" >&6; }
5556819a 3941
d0191583
JM
3942if test -n "$ac_tool_prefix"; then
3943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3944set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ec6a6fbe
AK
3945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3946$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3947if test "${ac_cv_prog_RANLIB+set}" = set; then
ec6a6fbe 3948 $as_echo_n "(cached) " >&6
d0191583
JM
3949else
3950 if test -n "$RANLIB"; then
3951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3952else
3953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954for as_dir in $PATH
3955do
3956 IFS=$as_save_IFS
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
ec6a6fbe 3961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
3962 break 2
3963 fi
3964done
3965done
3966IFS=$as_save_IFS
8106cdd5 3967
795ca3e5 3968fi
d0191583
JM
3969fi
3970RANLIB=$ac_cv_prog_RANLIB
3971if test -n "$RANLIB"; then
ec6a6fbe
AK
3972 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3973$as_echo "$RANLIB" >&6; }
d0191583 3974else
ec6a6fbe
AK
3975 { $as_echo "$as_me:$LINENO: result: no" >&5
3976$as_echo "no" >&6; }
d0191583
JM
3977fi
3978
8106cdd5 3979
ad6254c5 3980fi
d0191583
JM
3981if test -z "$ac_cv_prog_RANLIB"; then
3982 ac_ct_RANLIB=$RANLIB
3983 # Extract the first word of "ranlib", so it can be a program name with args.
3984set dummy ranlib; ac_word=$2
ec6a6fbe
AK
3985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3986$as_echo_n "checking for $ac_word... " >&6; }
d0191583 3987if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
ec6a6fbe 3988 $as_echo_n "(cached) " >&6
ad6254c5 3989else
d0191583
JM
3990 if test -n "$ac_ct_RANLIB"; then
3991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3992else
3993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994for as_dir in $PATH
8106cdd5 3995do
d0191583
JM
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_prog_ac_ct_RANLIB="ranlib"
ec6a6fbe 4001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4002 break 2
4003 fi
4004done
4005done
4006IFS=$as_save_IFS
4007
4008fi
4009fi
4010ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4011if test -n "$ac_ct_RANLIB"; then
ec6a6fbe
AK
4012 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4013$as_echo "$ac_ct_RANLIB" >&6; }
ad6254c5 4014else
ec6a6fbe
AK
4015 { $as_echo "$as_me:$LINENO: result: no" >&5
4016$as_echo "no" >&6; }
d0191583 4017fi
ad6254c5 4018
d0191583
JM
4019 if test "x$ac_ct_RANLIB" = x; then
4020 RANLIB=":"
4021 else
4022 case $cross_compiling:$ac_tool_warned in
4023yes:)
ec6a6fbe
AK
4024{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
d0191583
JM
4026ac_tool_warned=yes ;;
4027esac
4028 RANLIB=$ac_ct_RANLIB
4029 fi
4030else
4031 RANLIB="$ac_cv_prog_RANLIB"
ad6254c5 4032fi
7a197a62 4033
d0191583
JM
4034# Extract the first word of "cflow", so it can be a program name with args.
4035set dummy cflow; ac_word=$2
ec6a6fbe
AK
4036{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4038if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
ec6a6fbe 4039 $as_echo_n "(cached) " >&6
d0191583
JM
4040else
4041 case $CFLOW_CMD in
4042 [\\/]* | ?:[\\/]*)
4043 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4044 ;;
4045 *)
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047for as_dir in $PATH
4048do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4055 break 2
4056 fi
4057done
4058done
4059IFS=$as_save_IFS
ad6254c5 4060
d0191583 4061 ;;
7a197a62 4062esac
d0191583
JM
4063fi
4064CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4065if test -n "$CFLOW_CMD"; then
ec6a6fbe
AK
4066 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
4067$as_echo "$CFLOW_CMD" >&6; }
80992638 4068else
ec6a6fbe
AK
4069 { $as_echo "$as_me:$LINENO: result: no" >&5
4070$as_echo "no" >&6; }
795ca3e5 4071fi
7a197a62 4072
ad6254c5 4073
d0191583
JM
4074# Extract the first word of "cscope", so it can be a program name with args.
4075set dummy cscope; ac_word=$2
ec6a6fbe
AK
4076{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4077$as_echo_n "checking for $ac_word... " >&6; }
d0191583 4078if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
ec6a6fbe 4079 $as_echo_n "(cached) " >&6
d0191583
JM
4080else
4081 case $CSCOPE_CMD in
4082 [\\/]* | ?:[\\/]*)
4083 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
4084 ;;
4085 *)
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 4094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d0191583
JM
4095 break 2
4096 fi
795ca3e5 4097done
d0191583
JM
4098done
4099IFS=$as_save_IFS
795ca3e5 4100
d0191583
JM
4101 ;;
4102esac
ad6254c5 4103fi
d0191583
JM
4104CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4105if test -n "$CSCOPE_CMD"; then
ec6a6fbe
AK
4106 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
4107$as_echo "$CSCOPE_CMD" >&6; }
795ca3e5 4108else
ec6a6fbe
AK
4109 { $as_echo "$as_me:$LINENO: result: no" >&5
4110$as_echo "no" >&6; }
795ca3e5 4111fi
ad6254c5 4112
7a197a62 4113
ad6254c5 4114
d0191583
JM
4115################################################################################
4116
4117
4118
4119
4120
4121ac_header_dirent=no
4122for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
ec6a6fbe
AK
4123 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4124{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4125$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
d0191583 4126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4127 $as_echo_n "(cached) " >&6
d0191583 4128else
ad6254c5 4129 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h. */
d0191583
JM
4135#include <sys/types.h>
4136#include <$ac_hdr>
4137
4138int
4139main ()
4140{
4141if ((DIR *) 0)
4142return 0;
4143 ;
4144 return 0;
4145}
ad6254c5 4146_ACEOF
d0191583
JM
4147rm -f conftest.$ac_objext
4148if { (ac_try="$ac_compile"
7a197a62
AK
4149case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
ec6a6fbe
AK
4153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4154$as_echo "$ac_try_echo") >&5
d0191583 4155 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
ec6a6fbe 4160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
25fbec5b 4163 test ! -s conftest.err
d0191583
JM
4164 } && test -s conftest.$ac_objext; then
4165 eval "$as_ac_Header=yes"
ad6254c5 4166else
ec6a6fbe 4167 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4168sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4169
d0191583 4170 eval "$as_ac_Header=no"
795ca3e5 4171fi
7a197a62 4172
d0191583 4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4174fi
ec6a6fbe
AK
4175ac_res=`eval 'as_val=${'$as_ac_Header'}
4176 $as_echo "$as_val"'`
4177 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4178$as_echo "$ac_res" >&6; }
4179as_val=`eval 'as_val=${'$as_ac_Header'}
4180 $as_echo "$as_val"'`
4181 if test "x$as_val" = x""yes; then
d0191583 4182 cat >>confdefs.h <<_ACEOF
ec6a6fbe 4183#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
d0191583 4184_ACEOF
795ca3e5 4185
d0191583
JM
4186ac_header_dirent=$ac_hdr; break
4187fi
ad6254c5 4188
d0191583
JM
4189done
4190# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4191if test $ac_header_dirent = dirent.h; then
ec6a6fbe
AK
4192 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4193$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4194if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4195 $as_echo_n "(cached) " >&6
ad6254c5 4196else
d0191583
JM
4197 ac_func_search_save_LIBS=$LIBS
4198cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h. */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h. */
ad6254c5 4204
d0191583
JM
4205/* Override any GCC internal prototype to avoid an error.
4206 Use char because int might match the return type of a GCC
4207 builtin and then its argument prototype would still apply. */
4208#ifdef __cplusplus
4209extern "C"
4210#endif
4211char opendir ();
4212int
4213main ()
4214{
4215return opendir ();
4216 ;
4217 return 0;
4218}
4219_ACEOF
4220for ac_lib in '' dir; do
4221 if test -z "$ac_lib"; then
4222 ac_res="none required"
4223 else
4224 ac_res=-l$ac_lib
4225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4226 fi
4227 rm -f conftest.$ac_objext conftest$ac_exeext
4228if { (ac_try="$ac_link"
4229case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
ec6a6fbe
AK
4233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4234$as_echo "$ac_try_echo") >&5
d0191583
JM
4235 (eval "$ac_link") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
ec6a6fbe 4240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4241 (exit $ac_status); } && {
4242 test -z "$ac_c_werror_flag" ||
4243 test ! -s conftest.err
ec6a6fbe
AK
4244 } && test -s conftest$ac_exeext && {
4245 test "$cross_compiling" = yes ||
4246 $as_test_x conftest$ac_exeext
4247 }; then
d0191583
JM
4248 ac_cv_search_opendir=$ac_res
4249else
ec6a6fbe 4250 $as_echo "$as_me: failed program was:" >&5
d0191583 4251sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 4252
ad6254c5 4253
795ca3e5 4254fi
ad6254c5 4255
ec6a6fbe 4256rm -rf conftest.dSYM
d0191583
JM
4257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4258 conftest$ac_exeext
4259 if test "${ac_cv_search_opendir+set}" = set; then
4260 break
7a197a62 4261fi
d0191583
JM
4262done
4263if test "${ac_cv_search_opendir+set}" = set; then
4264 :
7a197a62 4265else
d0191583 4266 ac_cv_search_opendir=no
7a197a62 4267fi
d0191583
JM
4268rm conftest.$ac_ext
4269LIBS=$ac_func_search_save_LIBS
7a197a62 4270fi
ec6a6fbe
AK
4271{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4272$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4273ac_res=$ac_cv_search_opendir
4274if test "$ac_res" != no; then
4275 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4276
d0191583 4277fi
7a197a62 4278
7a197a62 4279else
ec6a6fbe
AK
4280 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4281$as_echo_n "checking for library containing opendir... " >&6; }
d0191583 4282if test "${ac_cv_search_opendir+set}" = set; then
ec6a6fbe 4283 $as_echo_n "(cached) " >&6
7a197a62 4284else
d0191583
JM
4285 ac_func_search_save_LIBS=$LIBS
4286cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
7a197a62 4292
d0191583
JM
4293/* Override any GCC internal prototype to avoid an error.
4294 Use char because int might match the return type of a GCC
4295 builtin and then its argument prototype would still apply. */
4296#ifdef __cplusplus
4297extern "C"
4298#endif
4299char opendir ();
4300int
4301main ()
4302{
4303return opendir ();
4304 ;
4305 return 0;
4306}
4307_ACEOF
4308for ac_lib in '' x; do
4309 if test -z "$ac_lib"; then
4310 ac_res="none required"
4311 else
4312 ac_res=-l$ac_lib
4313 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4314 fi
4315 rm -f conftest.$ac_objext conftest$ac_exeext
4316if { (ac_try="$ac_link"
4317case "(($ac_try" in
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4320esac
ec6a6fbe
AK
4321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4322$as_echo "$ac_try_echo") >&5
d0191583
JM
4323 (eval "$ac_link") 2>conftest.er1
4324 ac_status=$?
4325 grep -v '^ *+' conftest.er1 >conftest.err
4326 rm -f conftest.er1
4327 cat conftest.err >&5
ec6a6fbe 4328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4329 (exit $ac_status); } && {
4330 test -z "$ac_c_werror_flag" ||
4331 test ! -s conftest.err
ec6a6fbe
AK
4332 } && test -s conftest$ac_exeext && {
4333 test "$cross_compiling" = yes ||
4334 $as_test_x conftest$ac_exeext
4335 }; then
d0191583
JM
4336 ac_cv_search_opendir=$ac_res
4337else
ec6a6fbe 4338 $as_echo "$as_me: failed program was:" >&5
d0191583 4339sed 's/^/| /' conftest.$ac_ext >&5
7a197a62
AK
4340
4341
4342fi
4343
ec6a6fbe 4344rm -rf conftest.dSYM
d0191583
JM
4345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4346 conftest$ac_exeext
4347 if test "${ac_cv_search_opendir+set}" = set; then
4348 break
7a197a62 4349fi
d0191583
JM
4350done
4351if test "${ac_cv_search_opendir+set}" = set; then
4352 :
7a197a62 4353else
d0191583 4354 ac_cv_search_opendir=no
7a197a62 4355fi
d0191583
JM
4356rm conftest.$ac_ext
4357LIBS=$ac_func_search_save_LIBS
4358fi
ec6a6fbe
AK
4359{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4360$as_echo "$ac_cv_search_opendir" >&6; }
d0191583
JM
4361ac_res=$ac_cv_search_opendir
4362if test "$ac_res" != no; then
4363 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7a197a62 4364
7a197a62 4365fi
7a197a62 4366
d0191583 4367fi
7a197a62 4368
ec6a6fbe
AK
4369{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4370$as_echo_n "checking for ANSI C header files... " >&6; }
7a197a62 4371if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4372 $as_echo_n "(cached) " >&6
7a197a62
AK
4373else
4374 cat >conftest.$ac_ext <<_ACEOF
4375/* confdefs.h. */
4376_ACEOF
4377cat confdefs.h >>conftest.$ac_ext
4378cat >>conftest.$ac_ext <<_ACEOF
4379/* end confdefs.h. */
4380#include <stdlib.h>
4381#include <stdarg.h>
4382#include <string.h>
4383#include <float.h>
4384
4385int
4386main ()
4387{
4388
4389 ;
4390 return 0;
4391}
4392_ACEOF
4393rm -f conftest.$ac_objext
4394if { (ac_try="$ac_compile"
4395case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398esac
ec6a6fbe
AK
4399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4400$as_echo "$ac_try_echo") >&5
7a197a62
AK
4401 (eval "$ac_compile") 2>conftest.er1
4402 ac_status=$?
4403 grep -v '^ *+' conftest.er1 >conftest.err
4404 rm -f conftest.er1
4405 cat conftest.err >&5
ec6a6fbe 4406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4407 (exit $ac_status); } && {
4408 test -z "$ac_c_werror_flag" ||
4409 test ! -s conftest.err
4410 } && test -s conftest.$ac_objext; then
7a197a62
AK
4411 ac_cv_header_stdc=yes
4412else
ec6a6fbe 4413 $as_echo "$as_me: failed program was:" >&5
7a197a62
AK
4414sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 ac_cv_header_stdc=no
4417fi
4418
4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4420
4421if test $ac_cv_header_stdc = yes; then
4422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ad6254c5 4423 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
4429#include <string.h>
8106cdd5 4430
ad6254c5
AK
4431_ACEOF
4432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4433 $EGREP "memchr" >/dev/null 2>&1; then
4434 :
4435else
4436 ac_cv_header_stdc=no
80992638 4437fi
ad6254c5 4438rm -f conftest*
795ca3e5
AK
4439
4440fi
4441
ad6254c5
AK
4442if test $ac_cv_header_stdc = yes; then
4443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4444 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
80992638 4450#include <stdlib.h>
ad6254c5
AK
4451
4452_ACEOF
80992638 4453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
4454 $EGREP "free" >/dev/null 2>&1; then
4455 :
795ca3e5 4456else
ad6254c5 4457 ac_cv_header_stdc=no
795ca3e5 4458fi
80992638 4459rm -f conftest*
8106cdd5 4460
795ca3e5
AK
4461fi
4462
ad6254c5
AK
4463if test $ac_cv_header_stdc = yes; then
4464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4465 if test "$cross_compiling" = yes; then
4466 :
795ca3e5 4467else
ad6254c5 4468 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4469/* confdefs.h. */
4470_ACEOF
4471cat confdefs.h >>conftest.$ac_ext
4472cat >>conftest.$ac_ext <<_ACEOF
4473/* end confdefs.h. */
4474#include <ctype.h>
7a197a62 4475#include <stdlib.h>
ad6254c5
AK
4476#if ((' ' & 0x0FF) == 0x020)
4477# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4478# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4479#else
4480# define ISLOWER(c) \
8a2fc586
AK
4481 (('a' <= (c) && (c) <= 'i') \
4482 || ('j' <= (c) && (c) <= 'r') \
4483 || ('s' <= (c) && (c) <= 'z'))
ad6254c5 4484# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
80992638 4485#endif
ad6254c5
AK
4486
4487#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4488int
4489main ()
4490{
4491 int i;
4492 for (i = 0; i < 256; i++)
4493 if (XOR (islower (i), ISLOWER (i))
8a2fc586 4494 || toupper (i) != TOUPPER (i))
7a197a62
AK
4495 return 2;
4496 return 0;
ad6254c5
AK
4497}
4498_ACEOF
4499rm -f conftest$ac_exeext
7a197a62
AK
4500if { (ac_try="$ac_link"
4501case "(($ac_try" in
4502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503 *) ac_try_echo=$ac_try;;
4504esac
ec6a6fbe
AK
4505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4506$as_echo "$ac_try_echo") >&5
7a197a62 4507 (eval "$ac_link") 2>&5
ad6254c5 4508 ac_status=$?
ec6a6fbe 4509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 4510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
4511 { (case "(($ac_try" in
4512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4513 *) ac_try_echo=$ac_try;;
4514esac
ec6a6fbe
AK
4515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4516$as_echo "$ac_try_echo") >&5
7a197a62 4517 (eval "$ac_try") 2>&5
ad6254c5 4518 ac_status=$?
ec6a6fbe 4519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
4520 (exit $ac_status); }; }; then
4521 :
795ca3e5 4522else
ec6a6fbe
AK
4523 $as_echo "$as_me: program exited with status $ac_status" >&5
4524$as_echo "$as_me: failed program was:" >&5
ad6254c5 4525sed 's/^/| /' conftest.$ac_ext >&5
8106cdd5 4526
ad6254c5
AK
4527( exit $ac_status )
4528ac_cv_header_stdc=no
80992638 4529fi
ec6a6fbe 4530rm -rf conftest.dSYM
7a197a62 4531rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 4532fi
7a197a62
AK
4533
4534
ad6254c5
AK
4535fi
4536fi
ec6a6fbe
AK
4537{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4538$as_echo "$ac_cv_header_stdc" >&6; }
ad6254c5
AK
4539if test $ac_cv_header_stdc = yes; then
4540
4541cat >>confdefs.h <<\_ACEOF
4542#define STDC_HEADERS 1
4543_ACEOF
795ca3e5
AK
4544
4545fi
4546
d911ec67 4547# On IRIX 5.3, sys/types and inttypes.h are conflicting.
ad6254c5 4548
ad6254c5 4549
7a197a62 4550
8106cdd5 4551
795ca3e5 4552
795ca3e5 4553
d911ec67
AK
4554
4555
4556
4557for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4558 inttypes.h stdint.h unistd.h
4559do
4560as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4562$as_echo_n "checking for $ac_header... " >&6; }
4563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 4564 $as_echo_n "(cached) " >&6
795ca3e5 4565else
ad6254c5 4566 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4567/* confdefs.h. */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h. */
d911ec67 4572$ac_includes_default
ad6254c5 4573
d911ec67 4574#include <$ac_header>
ad6254c5
AK
4575_ACEOF
4576rm -f conftest.$ac_objext
7a197a62
AK
4577if { (ac_try="$ac_compile"
4578case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
ec6a6fbe
AK
4582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4583$as_echo "$ac_try_echo") >&5
7a197a62 4584 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4585 ac_status=$?
8a2fc586
AK
4586 grep -v '^ *+' conftest.er1 >conftest.err
4587 rm -f conftest.er1
4588 cat conftest.err >&5
ec6a6fbe 4589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4590 (exit $ac_status); } && {
4591 test -z "$ac_c_werror_flag" ||
4592 test ! -s conftest.err
4593 } && test -s conftest.$ac_objext; then
d911ec67 4594 eval "$as_ac_Header=yes"
795ca3e5 4595else
ec6a6fbe 4596 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4597sed 's/^/| /' conftest.$ac_ext >&5
4598
d911ec67 4599 eval "$as_ac_Header=no"
795ca3e5 4600fi
7a197a62
AK
4601
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
795ca3e5 4603fi
d911ec67
AK
4604ac_res=`eval 'as_val=${'$as_ac_Header'}
4605 $as_echo "$as_val"'`
4606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4607$as_echo "$ac_res" >&6; }
4608as_val=`eval 'as_val=${'$as_ac_Header'}
4609 $as_echo "$as_val"'`
4610 if test "x$as_val" = x""yes; then
4611 cat >>confdefs.h <<_ACEOF
4612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 4613_ACEOF
b896caa1 4614
8106cdd5 4615fi
b896caa1 4616
d911ec67 4617done
d0191583
JM
4618
4619
d911ec67
AK
4620{ $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
4621$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4622if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
ec6a6fbe 4623 $as_echo_n "(cached) " >&6
d0191583
JM
4624else
4625 cat >conftest.$ac_ext <<_ACEOF
4626/* confdefs.h. */
4627_ACEOF
4628cat confdefs.h >>conftest.$ac_ext
4629cat >>conftest.$ac_ext <<_ACEOF
4630/* end confdefs.h. */
d911ec67
AK
4631#include <sys/types.h>
4632int
4633main ()
4634{
4635return makedev(0, 0);
4636 ;
4637 return 0;
4638}
d0191583 4639_ACEOF
d911ec67
AK
4640rm -f conftest.$ac_objext conftest$ac_exeext
4641if { (ac_try="$ac_link"
d0191583
JM
4642case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
ec6a6fbe
AK
4646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647$as_echo "$ac_try_echo") >&5
d911ec67 4648 (eval "$ac_link") 2>conftest.er1
d0191583
JM
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
ec6a6fbe 4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
d911ec67
AK
4657 } && test -s conftest$ac_exeext && {
4658 test "$cross_compiling" = yes ||
4659 $as_test_x conftest$ac_exeext
4660 }; then
4661 ac_cv_header_sys_types_h_makedev=yes
d0191583 4662else
ec6a6fbe 4663 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
d911ec67 4666 ac_cv_header_sys_types_h_makedev=no
d0191583
JM
4667fi
4668
d911ec67
AK
4669rm -rf conftest.dSYM
4670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4671 conftest$ac_exeext conftest.$ac_ext
d0191583
JM
4672
4673fi
d911ec67
AK
4674{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
4675$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
d0191583 4676
d911ec67
AK
4677if test $ac_cv_header_sys_types_h_makedev = no; then
4678if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
4679 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4680$as_echo_n "checking for sys/mkdev.h... " >&6; }
4681if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4682 $as_echo_n "(cached) " >&6
d0191583 4683fi
d911ec67
AK
4684{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4685$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
ad6254c5 4686else
d0191583 4687 # Is the header compilable?
d911ec67
AK
4688{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
4689$as_echo_n "checking sys/mkdev.h usability... " >&6; }
d0191583 4690cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696$ac_includes_default
d911ec67 4697#include <sys/mkdev.h>
ad6254c5
AK
4698_ACEOF
4699rm -f conftest.$ac_objext
7a197a62
AK
4700if { (ac_try="$ac_compile"
4701case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704esac
ec6a6fbe
AK
4705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706$as_echo "$ac_try_echo") >&5
7a197a62 4707 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4708 ac_status=$?
8a2fc586
AK
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
ec6a6fbe 4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
d0191583 4717 ac_header_compiler=yes
ad6254c5 4718else
ec6a6fbe 4719 $as_echo "$as_me: failed program was:" >&5
ad6254c5 4720sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 4721
d0191583 4722 ac_header_compiler=no
ad6254c5 4723fi
7a197a62
AK
4724
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4726{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727$as_echo "$ac_header_compiler" >&6; }
d0191583
JM
4728
4729# Is the header present?
d911ec67
AK
4730{ $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
4731$as_echo_n "checking sys/mkdev.h presence... " >&6; }
d0191583
JM
4732cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
d911ec67 4738#include <sys/mkdev.h>
d0191583
JM
4739_ACEOF
4740if { (ac_try="$ac_cpp conftest.$ac_ext"
4741case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
ec6a6fbe
AK
4745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746$as_echo "$ac_try_echo") >&5
d0191583
JM
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
ec6a6fbe 4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4756 }; then
4757 ac_header_preproc=yes
4758else
ec6a6fbe 4759 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
4760sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_header_preproc=no
4763fi
4764
4765rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4766{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767$as_echo "$ac_header_preproc" >&6; }
d0191583
JM
4768
4769# So? What about this header?
4770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
d911ec67
AK
4772 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773$as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
4775$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
d0191583
JM
4776 ac_header_preproc=yes
4777 ;;
4778 no:yes:* )
d911ec67
AK
4779 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
4780$as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
4782$as_echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
4784$as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
4786$as_echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
4788$as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
4790$as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
d0191583
JM
4791
4792 ;;
4793esac
d911ec67
AK
4794{ $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
4795$as_echo_n "checking for sys/mkdev.h... " >&6; }
4796if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
ec6a6fbe 4797 $as_echo_n "(cached) " >&6
d0191583 4798else
d911ec67 4799 ac_cv_header_sys_mkdev_h=$ac_header_preproc
a38df97f 4800fi
d911ec67
AK
4801{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
4802$as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
d0191583
JM
4803
4804fi
d911ec67
AK
4805if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
4806
4807cat >>confdefs.h <<\_ACEOF
4808#define MAJOR_IN_MKDEV 1
ad6254c5 4809_ACEOF
a38df97f 4810
80992638
AK
4811fi
4812
80992638 4813
5a52dca9 4814
d911ec67
AK
4815 if test $ac_cv_header_sys_mkdev_h = no; then
4816 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
4817 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4818$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4819if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4820 $as_echo_n "(cached) " >&6
ad6254c5 4821fi
d911ec67
AK
4822{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4823$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4824else
4825 # Is the header compilable?
d911ec67
AK
4826{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
4827$as_echo_n "checking sys/sysmacros.h usability... " >&6; }
ad6254c5 4828cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4829/* confdefs.h. */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h. */
4834$ac_includes_default
d911ec67 4835#include <sys/sysmacros.h>
ad6254c5
AK
4836_ACEOF
4837rm -f conftest.$ac_objext
7a197a62
AK
4838if { (ac_try="$ac_compile"
4839case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
ec6a6fbe
AK
4843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4844$as_echo "$ac_try_echo") >&5
7a197a62 4845 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4846 ac_status=$?
8a2fc586
AK
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
ec6a6fbe 4850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest.$ac_objext; then
fc54be10
AK
4855 ac_header_compiler=yes
4856else
ec6a6fbe 4857 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ac_header_compiler=no
4861fi
4862
4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
4864{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4865$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
4866
4867# Is the header present?
d911ec67
AK
4868{ $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
4869$as_echo_n "checking sys/sysmacros.h presence... " >&6; }
ad6254c5 4870cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
d911ec67 4876#include <sys/sysmacros.h>
ad6254c5 4877_ACEOF
7a197a62
AK
4878if { (ac_try="$ac_cpp conftest.$ac_ext"
4879case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882esac
ec6a6fbe
AK
4883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4884$as_echo "$ac_try_echo") >&5
7a197a62 4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
4886 ac_status=$?
4887 grep -v '^ *+' conftest.er1 >conftest.err
4888 rm -f conftest.er1
4889 cat conftest.err >&5
ec6a6fbe 4890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4891 (exit $ac_status); } >/dev/null && {
4892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4893 test ! -s conftest.err
4894 }; then
ad6254c5
AK
4895 ac_header_preproc=yes
4896else
ec6a6fbe 4897 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 ac_header_preproc=no
4901fi
7a197a62 4902
ad6254c5 4903rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
4904{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4905$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
4906
4907# So? What about this header?
8a2fc586
AK
4908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4909 yes:no: )
d911ec67
AK
4910 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
4911$as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4912 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
4913$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
8a2fc586 4914 ac_header_preproc=yes
ad6254c5 4915 ;;
8a2fc586 4916 no:yes:* )
d911ec67
AK
4917 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
4918$as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
4919 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
4920$as_echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
4921 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
4922$as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
4923 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
4924$as_echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
4925 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
4926$as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
4927 { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
4928$as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7a197a62 4929
ad6254c5
AK
4930 ;;
4931esac
d911ec67
AK
4932{ $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
4933$as_echo_n "checking for sys/sysmacros.h... " >&6; }
4934if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
ec6a6fbe 4935 $as_echo_n "(cached) " >&6
ad6254c5 4936else
d911ec67 4937 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
b896caa1 4938fi
d911ec67
AK
4939{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
4940$as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
ad6254c5
AK
4941
4942fi
d911ec67
AK
4943if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
4944
4945cat >>confdefs.h <<\_ACEOF
4946#define MAJOR_IN_SYSMACROS 1
ad6254c5 4947_ACEOF
b896caa1 4948
80992638
AK
4949fi
4950
d8ac0fbc 4951
d911ec67
AK
4952 fi
4953fi
d8ac0fbc 4954
d911ec67
AK
4955{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4956$as_echo_n "checking for ANSI C header files... " >&6; }
4957if test "${ac_cv_header_stdc+set}" = set; then
ec6a6fbe 4958 $as_echo_n "(cached) " >&6
ad6254c5 4959else
d911ec67 4960 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
4961/* confdefs.h. */
4962_ACEOF
4963cat confdefs.h >>conftest.$ac_ext
4964cat >>conftest.$ac_ext <<_ACEOF
4965/* end confdefs.h. */
d911ec67
AK
4966#include <stdlib.h>
4967#include <stdarg.h>
4968#include <string.h>
4969#include <float.h>
4970
4971int
4972main ()
4973{
4974
4975 ;
4976 return 0;
4977}
ad6254c5
AK
4978_ACEOF
4979rm -f conftest.$ac_objext
7a197a62
AK
4980if { (ac_try="$ac_compile"
4981case "(($ac_try" in
4982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983 *) ac_try_echo=$ac_try;;
4984esac
ec6a6fbe
AK
4985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4986$as_echo "$ac_try_echo") >&5
7a197a62 4987 (eval "$ac_compile") 2>conftest.er1
ad6254c5 4988 ac_status=$?
8a2fc586
AK
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
ec6a6fbe 4992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
d911ec67 4997 ac_cv_header_stdc=yes
ad6254c5 4998else
ec6a6fbe 4999 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5000sed 's/^/| /' conftest.$ac_ext >&5
5001
d911ec67 5002 ac_cv_header_stdc=no
ad6254c5 5003fi
7a197a62
AK
5004
5005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 5006
d911ec67
AK
5007if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
5010/* confdefs.h. */
5011_ACEOF
5012cat confdefs.h >>conftest.$ac_ext
5013cat >>conftest.$ac_ext <<_ACEOF
5014/* end confdefs.h. */
d911ec67
AK
5015#include <string.h>
5016
ad6254c5 5017_ACEOF
d911ec67
AK
5018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019 $EGREP "memchr" >/dev/null 2>&1; then
5020 :
5021else
5022 ac_cv_header_stdc=no
5023fi
5024rm -f conftest*
5025
5026fi
5027
5028if test $ac_cv_header_stdc = yes; then
5029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5030 cat >conftest.$ac_ext <<_ACEOF
5031/* confdefs.h. */
5032_ACEOF
5033cat confdefs.h >>conftest.$ac_ext
5034cat >>conftest.$ac_ext <<_ACEOF
5035/* end confdefs.h. */
5036#include <stdlib.h>
5037
5038_ACEOF
5039if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5040 $EGREP "free" >/dev/null 2>&1; then
5041 :
5042else
5043 ac_cv_header_stdc=no
5044fi
5045rm -f conftest*
5046
5047fi
5048
5049if test $ac_cv_header_stdc = yes; then
5050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5051 if test "$cross_compiling" = yes; then
5052 :
5053else
5054 cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#include <ctype.h>
5061#include <stdlib.h>
5062#if ((' ' & 0x0FF) == 0x020)
5063# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5064# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5065#else
5066# define ISLOWER(c) \
5067 (('a' <= (c) && (c) <= 'i') \
5068 || ('j' <= (c) && (c) <= 'r') \
5069 || ('s' <= (c) && (c) <= 'z'))
5070# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5071#endif
5072
5073#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5074int
5075main ()
5076{
5077 int i;
5078 for (i = 0; i < 256; i++)
5079 if (XOR (islower (i), ISLOWER (i))
5080 || toupper (i) != TOUPPER (i))
5081 return 2;
5082 return 0;
5083}
5084_ACEOF
5085rm -f conftest$ac_exeext
5086if { (ac_try="$ac_link"
7a197a62
AK
5087case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
ec6a6fbe
AK
5091eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5092$as_echo "$ac_try_echo") >&5
d911ec67
AK
5093 (eval "$ac_link") 2>&5
5094 ac_status=$?
5095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5097 { (case "(($ac_try" in
5098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099 *) ac_try_echo=$ac_try;;
5100esac
5101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5102$as_echo "$ac_try_echo") >&5
5103 (eval "$ac_try") 2>&5
5104 ac_status=$?
5105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 :
5108else
5109 $as_echo "$as_me: program exited with status $ac_status" >&5
5110$as_echo "$as_me: failed program was:" >&5
5111sed 's/^/| /' conftest.$ac_ext >&5
5112
5113( exit $ac_status )
5114ac_cv_header_stdc=no
5115fi
5116rm -rf conftest.dSYM
5117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5118fi
5119
5120
5121fi
5122fi
5123{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5124$as_echo "$ac_cv_header_stdc" >&6; }
5125if test $ac_cv_header_stdc = yes; then
5126
5127cat >>confdefs.h <<\_ACEOF
5128#define STDC_HEADERS 1
5129_ACEOF
5130
5131fi
5132
5133{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5134$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5135if test "${ac_cv_header_sys_wait_h+set}" = set; then
5136 $as_echo_n "(cached) " >&6
5137else
5138 cat >conftest.$ac_ext <<_ACEOF
5139/* confdefs.h. */
5140_ACEOF
5141cat confdefs.h >>conftest.$ac_ext
5142cat >>conftest.$ac_ext <<_ACEOF
5143/* end confdefs.h. */
5144#include <sys/types.h>
5145#include <sys/wait.h>
5146#ifndef WEXITSTATUS
5147# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5148#endif
5149#ifndef WIFEXITED
5150# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5151#endif
5152
5153int
5154main ()
5155{
5156 int s;
5157 wait (&s);
5158 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5159 ;
5160 return 0;
5161}
5162_ACEOF
5163rm -f conftest.$ac_objext
5164if { (ac_try="$ac_compile"
5165case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168esac
5169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5170$as_echo "$ac_try_echo") >&5
5171 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
5172 ac_status=$?
5173 grep -v '^ *+' conftest.er1 >conftest.err
5174 rm -f conftest.er1
5175 cat conftest.err >&5
ec6a6fbe 5176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
5177 (exit $ac_status); } && {
5178 test -z "$ac_c_werror_flag" ||
25fbec5b 5179 test ! -s conftest.err
d911ec67
AK
5180 } && test -s conftest.$ac_objext; then
5181 ac_cv_header_sys_wait_h=yes
ad6254c5 5182else
ec6a6fbe 5183 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
5184sed 's/^/| /' conftest.$ac_ext >&5
5185
d911ec67 5186 ac_cv_header_sys_wait_h=no
ad6254c5 5187fi
7a197a62 5188
d911ec67
AK
5189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5190fi
5191{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5192$as_echo "$ac_cv_header_sys_wait_h" >&6; }
5193if test $ac_cv_header_sys_wait_h = yes; then
5194
5195cat >>confdefs.h <<\_ACEOF
5196#define HAVE_SYS_WAIT_H 1
5197_ACEOF
5198
5199fi
5200
5201{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5202$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5203if test "${ac_cv_header_time+set}" = set; then
5204 $as_echo_n "(cached) " >&6
5205else
5206 cat >conftest.$ac_ext <<_ACEOF
5207/* confdefs.h. */
5208_ACEOF
5209cat confdefs.h >>conftest.$ac_ext
5210cat >>conftest.$ac_ext <<_ACEOF
5211/* end confdefs.h. */
5212#include <sys/types.h>
5213#include <sys/time.h>
5214#include <time.h>
5215
5216int
5217main ()
5218{
5219if ((struct tm *) 0)
5220return 0;
5221 ;
5222 return 0;
5223}
5224_ACEOF
5225rm -f conftest.$ac_objext
5226if { (ac_try="$ac_compile"
5227case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230esac
5231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5232$as_echo "$ac_try_echo") >&5
5233 (eval "$ac_compile") 2>conftest.er1
5234 ac_status=$?
5235 grep -v '^ *+' conftest.er1 >conftest.err
5236 rm -f conftest.er1
5237 cat conftest.err >&5
5238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); } && {
5240 test -z "$ac_c_werror_flag" ||
5241 test ! -s conftest.err
5242 } && test -s conftest.$ac_objext; then
5243 ac_cv_header_time=yes
5244else
5245 $as_echo "$as_me: failed program was:" >&5
5246sed 's/^/| /' conftest.$ac_ext >&5
5247
5248 ac_cv_header_time=no
5249fi
5250
5251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252fi
5253{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5254$as_echo "$ac_cv_header_time" >&6; }
5255if test $ac_cv_header_time = yes; then
5256
5257cat >>confdefs.h <<\_ACEOF
5258#define TIME_WITH_SYS_TIME 1
5259_ACEOF
5260
5261fi
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
5279 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
5280 sys/wait.h time.h
5281do
5282as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5285$as_echo_n "checking for $ac_header... " >&6; }
5286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5287 $as_echo_n "(cached) " >&6
5288fi
5289ac_res=`eval 'as_val=${'$as_ac_Header'}
5290 $as_echo "$as_val"'`
5291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5292$as_echo "$ac_res" >&6; }
5293else
5294 # Is the header compilable?
5295{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5296$as_echo_n "checking $ac_header usability... " >&6; }
5297cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h. */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h. */
5303$ac_includes_default
5304#include <$ac_header>
5305_ACEOF
5306rm -f conftest.$ac_objext
5307if { (ac_try="$ac_compile"
5308case "(($ac_try" in
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5311esac
5312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5313$as_echo "$ac_try_echo") >&5
5314 (eval "$ac_compile") 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } && {
5321 test -z "$ac_c_werror_flag" ||
5322 test ! -s conftest.err
5323 } && test -s conftest.$ac_objext; then
5324 ac_header_compiler=yes
5325else
5326 $as_echo "$as_me: failed program was:" >&5
5327sed 's/^/| /' conftest.$ac_ext >&5
5328
5329 ac_header_compiler=no
5330fi
5331
5332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5333{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5334$as_echo "$ac_header_compiler" >&6; }
5335
5336# Is the header present?
5337{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5338$as_echo_n "checking $ac_header presence... " >&6; }
5339cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h. */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h. */
5345#include <$ac_header>
5346_ACEOF
5347if { (ac_try="$ac_cpp conftest.$ac_ext"
5348case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5353$as_echo "$ac_try_echo") >&5
5354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5355 ac_status=$?
5356 grep -v '^ *+' conftest.er1 >conftest.err
5357 rm -f conftest.er1
5358 cat conftest.err >&5
5359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } >/dev/null && {
5361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5362 test ! -s conftest.err
5363 }; then
5364 ac_header_preproc=yes
5365else
5366 $as_echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
5368
5369 ac_header_preproc=no
5370fi
5371
5372rm -f conftest.err conftest.$ac_ext
5373{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5374$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
5375
5376# So? What about this header?
8a2fc586
AK
5377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5378 yes:no: )
ec6a6fbe
AK
5379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5380$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5382$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 5383 ac_header_preproc=yes
ad6254c5 5384 ;;
8a2fc586 5385 no:yes:* )
ec6a6fbe
AK
5386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5387$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5389$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5391$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5393$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5395$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5397$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 5398
ad6254c5
AK
5399 ;;
5400esac
d911ec67
AK
5401{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5402$as_echo_n "checking for $ac_header... " >&6; }
5403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5404 $as_echo_n "(cached) " >&6
5405else
5406 eval "$as_ac_Header=\$ac_header_preproc"
5407fi
5408ac_res=`eval 'as_val=${'$as_ac_Header'}
5409 $as_echo "$as_val"'`
5410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5411$as_echo "$ac_res" >&6; }
5412
5413fi
5414as_val=`eval 'as_val=${'$as_ac_Header'}
5415 $as_echo "$as_val"'`
5416 if test "x$as_val" = x""yes; then
5417 cat >>confdefs.h <<_ACEOF
5418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5419_ACEOF
5420
5421else
5422 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5423$as_echo "$as_me: error: bailing out" >&2;}
5424 { (exit 1); exit 1; }; }
5425fi
5426
5427done
5428
5429
5430case "$host_os" in
5431 linux*)
5432
5433
5434
5435for ac_header in asm/byteorder.h linux/fs.h malloc.h
5436do
5437as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5439 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5440$as_echo_n "checking for $ac_header... " >&6; }
5441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442 $as_echo_n "(cached) " >&6
5443fi
5444ac_res=`eval 'as_val=${'$as_ac_Header'}
5445 $as_echo "$as_val"'`
5446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5447$as_echo "$ac_res" >&6; }
5448else
5449 # Is the header compilable?
5450{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5451$as_echo_n "checking $ac_header usability... " >&6; }
5452cat >conftest.$ac_ext <<_ACEOF
5453/* confdefs.h. */
5454_ACEOF
5455cat confdefs.h >>conftest.$ac_ext
5456cat >>conftest.$ac_ext <<_ACEOF
5457/* end confdefs.h. */
5458$ac_includes_default
5459#include <$ac_header>
5460_ACEOF
5461rm -f conftest.$ac_objext
5462if { (ac_try="$ac_compile"
5463case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466esac
5467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5468$as_echo "$ac_try_echo") >&5
5469 (eval "$ac_compile") 2>conftest.er1
5470 ac_status=$?
5471 grep -v '^ *+' conftest.er1 >conftest.err
5472 rm -f conftest.er1
5473 cat conftest.err >&5
5474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); } && {
5476 test -z "$ac_c_werror_flag" ||
5477 test ! -s conftest.err
5478 } && test -s conftest.$ac_objext; then
5479 ac_header_compiler=yes
5480else
5481 $as_echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484 ac_header_compiler=no
5485fi
5486
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5489$as_echo "$ac_header_compiler" >&6; }
5490
5491# Is the header present?
5492{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5493$as_echo_n "checking $ac_header presence... " >&6; }
5494cat >conftest.$ac_ext <<_ACEOF
5495/* confdefs.h. */
5496_ACEOF
5497cat confdefs.h >>conftest.$ac_ext
5498cat >>conftest.$ac_ext <<_ACEOF
5499/* end confdefs.h. */
5500#include <$ac_header>
5501_ACEOF
5502if { (ac_try="$ac_cpp conftest.$ac_ext"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5508$as_echo "$ac_try_echo") >&5
5509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5510 ac_status=$?
5511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
5514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } >/dev/null && {
5516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 }; then
5519 ac_header_preproc=yes
5520else
5521 $as_echo "$as_me: failed program was:" >&5
5522sed 's/^/| /' conftest.$ac_ext >&5
5523
5524 ac_header_preproc=no
5525fi
5526
5527rm -f conftest.err conftest.$ac_ext
5528{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529$as_echo "$ac_header_preproc" >&6; }
5530
5531# So? What about this header?
5532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5533 yes:no: )
5534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538 ac_header_preproc=yes
5539 ;;
5540 no:yes:* )
5541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5553
5554 ;;
5555esac
5556{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5557$as_echo_n "checking for $ac_header... " >&6; }
5558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5559 $as_echo_n "(cached) " >&6
5560else
5561 eval "$as_ac_Header=\$ac_header_preproc"
5562fi
5563ac_res=`eval 'as_val=${'$as_ac_Header'}
5564 $as_echo "$as_val"'`
5565 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5566$as_echo "$ac_res" >&6; }
5567
5568fi
5569as_val=`eval 'as_val=${'$as_ac_Header'}
5570 $as_echo "$as_val"'`
5571 if test "x$as_val" = x""yes; then
5572 cat >>confdefs.h <<_ACEOF
5573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5574_ACEOF
5575
5576else
5577 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5578$as_echo "$as_me: error: bailing out" >&2;}
5579 { (exit 1); exit 1; }; }
5580fi
5581
5582done
5583 ;;
5584 darwin*)
5585
5586
5587for ac_header in machine/endian.h sys/disk.h
5588do
5589as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5590if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5592$as_echo_n "checking for $ac_header... " >&6; }
5593if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 $as_echo_n "(cached) " >&6
5595fi
5596ac_res=`eval 'as_val=${'$as_ac_Header'}
5597 $as_echo "$as_val"'`
5598 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5599$as_echo "$ac_res" >&6; }
5600else
5601 # Is the header compilable?
5602{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5603$as_echo_n "checking $ac_header usability... " >&6; }
5604cat >conftest.$ac_ext <<_ACEOF
5605/* confdefs.h. */
5606_ACEOF
5607cat confdefs.h >>conftest.$ac_ext
5608cat >>conftest.$ac_ext <<_ACEOF
5609/* end confdefs.h. */
5610$ac_includes_default
5611#include <$ac_header>
5612_ACEOF
5613rm -f conftest.$ac_objext
5614if { (ac_try="$ac_compile"
5615case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618esac
5619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5620$as_echo "$ac_try_echo") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_header_compiler=yes
5632else
5633 $as_echo "$as_me: failed program was:" >&5
5634sed 's/^/| /' conftest.$ac_ext >&5
5635
5636 ac_header_compiler=no
5637fi
5638
5639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5640{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5641$as_echo "$ac_header_compiler" >&6; }
5642
5643# Is the header present?
5644{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5645$as_echo_n "checking $ac_header presence... " >&6; }
5646cat >conftest.$ac_ext <<_ACEOF
5647/* confdefs.h. */
5648_ACEOF
5649cat confdefs.h >>conftest.$ac_ext
5650cat >>conftest.$ac_ext <<_ACEOF
5651/* end confdefs.h. */
5652#include <$ac_header>
5653_ACEOF
5654if { (ac_try="$ac_cpp conftest.$ac_ext"
5655case "(($ac_try" in
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5658esac
5659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660$as_echo "$ac_try_echo") >&5
5661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null && {
5668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 }; then
5671 ac_header_preproc=yes
5672else
5673 $as_echo "$as_me: failed program was:" >&5
5674sed 's/^/| /' conftest.$ac_ext >&5
5675
5676 ac_header_preproc=no
5677fi
5678
5679rm -f conftest.err conftest.$ac_ext
5680{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5681$as_echo "$ac_header_preproc" >&6; }
5682
5683# So? What about this header?
5684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5685 yes:no: )
5686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5687$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5689$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5690 ac_header_preproc=yes
5691 ;;
5692 no:yes:* )
5693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5694$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5696$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5698$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5700$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5702$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5704$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5705
5706 ;;
5707esac
5708{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5709$as_echo_n "checking for $ac_header... " >&6; }
5710if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5711 $as_echo_n "(cached) " >&6
5712else
5713 eval "$as_ac_Header=\$ac_header_preproc"
5714fi
5715ac_res=`eval 'as_val=${'$as_ac_Header'}
5716 $as_echo "$as_val"'`
5717 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5718$as_echo "$ac_res" >&6; }
5719
5720fi
5721as_val=`eval 'as_val=${'$as_ac_Header'}
5722 $as_echo "$as_val"'`
5723 if test "x$as_val" = x""yes; then
5724 cat >>confdefs.h <<_ACEOF
5725#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5726_ACEOF
5727
5728else
5729 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5730$as_echo "$as_me: error: bailing out" >&2;}
5731 { (exit 1); exit 1; }; }
5732fi
5733
5734done
5735 ;;
5736esac
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5755 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5756 sys/types.h unistd.h
5757do
5758as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5761$as_echo_n "checking for $ac_header... " >&6; }
5762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5763 $as_echo_n "(cached) " >&6
5764fi
5765ac_res=`eval 'as_val=${'$as_ac_Header'}
5766 $as_echo "$as_val"'`
5767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5768$as_echo "$ac_res" >&6; }
5769else
5770 # Is the header compilable?
5771{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5772$as_echo_n "checking $ac_header usability... " >&6; }
5773cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
5779$ac_includes_default
5780#include <$ac_header>
5781_ACEOF
5782rm -f conftest.$ac_objext
5783if { (ac_try="$ac_compile"
5784case "(($ac_try" in
5785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5786 *) ac_try_echo=$ac_try;;
5787esac
5788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5789$as_echo "$ac_try_echo") >&5
5790 (eval "$ac_compile") 2>conftest.er1
5791 ac_status=$?
5792 grep -v '^ *+' conftest.er1 >conftest.err
5793 rm -f conftest.er1
5794 cat conftest.err >&5
5795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796 (exit $ac_status); } && {
5797 test -z "$ac_c_werror_flag" ||
5798 test ! -s conftest.err
5799 } && test -s conftest.$ac_objext; then
5800 ac_header_compiler=yes
5801else
5802 $as_echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 ac_header_compiler=no
5806fi
5807
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5810$as_echo "$ac_header_compiler" >&6; }
5811
5812# Is the header present?
5813{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5814$as_echo_n "checking $ac_header presence... " >&6; }
5815cat >conftest.$ac_ext <<_ACEOF
5816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821#include <$ac_header>
5822_ACEOF
5823if { (ac_try="$ac_cpp conftest.$ac_ext"
5824case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827esac
5828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5829$as_echo "$ac_try_echo") >&5
5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null && {
5837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 }; then
5840 ac_header_preproc=yes
5841else
5842 $as_echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_header_preproc=no
5846fi
5847
5848rm -f conftest.err conftest.$ac_ext
5849{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5850$as_echo "$ac_header_preproc" >&6; }
5851
5852# So? What about this header?
5853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5854 yes:no: )
5855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5856$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5858$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5859 ac_header_preproc=yes
5860 ;;
5861 no:yes:* )
5862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5863$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5865$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5867$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5869$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5871$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5873$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5874
5875 ;;
5876esac
5877{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5878$as_echo_n "checking for $ac_header... " >&6; }
5879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5880 $as_echo_n "(cached) " >&6
5881else
5882 eval "$as_ac_Header=\$ac_header_preproc"
5883fi
5884ac_res=`eval 'as_val=${'$as_ac_Header'}
5885 $as_echo "$as_val"'`
5886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5887$as_echo "$ac_res" >&6; }
5888
5889fi
5890as_val=`eval 'as_val=${'$as_ac_Header'}
5891 $as_echo "$as_val"'`
5892 if test "x$as_val" = x""yes; then
5893 cat >>confdefs.h <<_ACEOF
5894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895_ACEOF
5896
5897else
5898 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5899$as_echo "$as_me: error: bailing out" >&2;}
5900 { (exit 1); exit 1; }; }
5901fi
5902
5903done
5904
5905
5906
5907for ac_header in termios.h sys/statvfs.h
5908do
5909as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5912$as_echo_n "checking for $ac_header... " >&6; }
5913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 $as_echo_n "(cached) " >&6
5915fi
5916ac_res=`eval 'as_val=${'$as_ac_Header'}
5917 $as_echo "$as_val"'`
5918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5919$as_echo "$ac_res" >&6; }
5920else
5921 # Is the header compilable?
5922{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5923$as_echo_n "checking $ac_header usability... " >&6; }
5924cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h. */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h. */
5930$ac_includes_default
5931#include <$ac_header>
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (ac_try="$ac_compile"
5935case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
5939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
5951 ac_header_compiler=yes
5952else
5953 $as_echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956 ac_header_compiler=no
5957fi
5958
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5961$as_echo "$ac_header_compiler" >&6; }
5962
5963# Is the header present?
5964{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5965$as_echo_n "checking $ac_header presence... " >&6; }
5966cat >conftest.$ac_ext <<_ACEOF
5967/* confdefs.h. */
5968_ACEOF
5969cat confdefs.h >>conftest.$ac_ext
5970cat >>conftest.$ac_ext <<_ACEOF
5971/* end confdefs.h. */
5972#include <$ac_header>
5973_ACEOF
5974if { (ac_try="$ac_cpp conftest.$ac_ext"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980$as_echo "$ac_try_echo") >&5
5981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } >/dev/null && {
5988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5989 test ! -s conftest.err
5990 }; then
5991 ac_header_preproc=yes
5992else
5993 $as_echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 ac_header_preproc=no
5997fi
5998
5999rm -f conftest.err conftest.$ac_ext
6000{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6001$as_echo "$ac_header_preproc" >&6; }
6002
6003# So? What about this header?
6004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6005 yes:no: )
6006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6007$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6009$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6010 ac_header_preproc=yes
6011 ;;
6012 no:yes:* )
6013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6014$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6016$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6018$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6020$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6022$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6024$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6025
6026 ;;
6027esac
6028{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6029$as_echo_n "checking for $ac_header... " >&6; }
6030if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6031 $as_echo_n "(cached) " >&6
6032else
6033 eval "$as_ac_Header=\$ac_header_preproc"
6034fi
6035ac_res=`eval 'as_val=${'$as_ac_Header'}
6036 $as_echo "$as_val"'`
6037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6038$as_echo "$ac_res" >&6; }
6039
6040fi
6041as_val=`eval 'as_val=${'$as_ac_Header'}
6042 $as_echo "$as_val"'`
6043 if test "x$as_val" = x""yes; then
6044 cat >>confdefs.h <<_ACEOF
6045#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6046_ACEOF
6047
6048fi
6049
6050done
6051
6052
6053################################################################################
6054{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6055$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6056if test "${ac_cv_c_const+set}" = set; then
6057 $as_echo_n "(cached) " >&6
6058else
6059 cat >conftest.$ac_ext <<_ACEOF
6060/* confdefs.h. */
6061_ACEOF
6062cat confdefs.h >>conftest.$ac_ext
6063cat >>conftest.$ac_ext <<_ACEOF
6064/* end confdefs.h. */
6065
6066int
6067main ()
6068{
6069/* FIXME: Include the comments suggested by Paul. */
6070#ifndef __cplusplus
6071 /* Ultrix mips cc rejects this. */
6072 typedef int charset[2];
6073 const charset cs;
6074 /* SunOS 4.1.1 cc rejects this. */
6075 char const *const *pcpcc;
6076 char **ppc;
6077 /* NEC SVR4.0.2 mips cc rejects this. */
6078 struct point {int x, y;};
6079 static struct point const zero = {0,0};
6080 /* AIX XL C 1.02.0.0 rejects this.
6081 It does not let you subtract one const X* pointer from another in
6082 an arm of an if-expression whose if-part is not a constant
6083 expression */
6084 const char *g = "string";
6085 pcpcc = &g + (g ? g-g : 0);
6086 /* HPUX 7.0 cc rejects these. */
6087 ++pcpcc;
6088 ppc = (char**) pcpcc;
6089 pcpcc = (char const *const *) ppc;
6090 { /* SCO 3.2v4 cc rejects this. */
6091 char *t;
6092 char const *s = 0 ? (char *) 0 : (char const *) 0;
6093
6094 *t++ = 0;
6095 if (s) return 0;
6096 }
6097 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6098 int x[] = {25, 17};
6099 const int *foo = &x[0];
6100 ++foo;
6101 }
6102 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6103 typedef const int *iptr;
6104 iptr p = 0;
6105 ++p;
6106 }
6107 { /* AIX XL C 1.02.0.0 rejects this saying
6108 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6109 struct s { int j; const int *ap[3]; };
6110 struct s *b; b->j = 5;
6111 }
6112 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6113 const int foo = 10;
6114 if (!foo) return 0;
6115 }
6116 return !cs[0] && !zero.x;
6117#endif
6118
6119 ;
6120 return 0;
6121}
6122_ACEOF
6123rm -f conftest.$ac_objext
6124if { (ac_try="$ac_compile"
6125case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6130$as_echo "$ac_try_echo") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6132 ac_status=$?
6133 grep -v '^ *+' conftest.er1 >conftest.err
6134 rm -f conftest.er1
6135 cat conftest.err >&5
6136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } && {
6138 test -z "$ac_c_werror_flag" ||
6139 test ! -s conftest.err
6140 } && test -s conftest.$ac_objext; then
6141 ac_cv_c_const=yes
6142else
6143 $as_echo "$as_me: failed program was:" >&5
6144sed 's/^/| /' conftest.$ac_ext >&5
6145
6146 ac_cv_c_const=no
6147fi
6148
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150fi
6151{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6152$as_echo "$ac_cv_c_const" >&6; }
6153if test $ac_cv_c_const = no; then
6154
6155cat >>confdefs.h <<\_ACEOF
6156#define const /**/
6157_ACEOF
6158
6159fi
6160
6161{ $as_echo "$as_me:$LINENO: checking for inline" >&5
6162$as_echo_n "checking for inline... " >&6; }
6163if test "${ac_cv_c_inline+set}" = set; then
6164 $as_echo_n "(cached) " >&6
6165else
6166 ac_cv_c_inline=no
6167for ac_kw in inline __inline__ __inline; do
6168 cat >conftest.$ac_ext <<_ACEOF
6169/* confdefs.h. */
6170_ACEOF
6171cat confdefs.h >>conftest.$ac_ext
6172cat >>conftest.$ac_ext <<_ACEOF
6173/* end confdefs.h. */
6174#ifndef __cplusplus
6175typedef int foo_t;
6176static $ac_kw foo_t static_foo () {return 0; }
6177$ac_kw foo_t foo () {return 0; }
6178#endif
6179
6180_ACEOF
6181rm -f conftest.$ac_objext
6182if { (ac_try="$ac_compile"
6183case "(($ac_try" in
6184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6185 *) ac_try_echo=$ac_try;;
6186esac
6187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6188$as_echo "$ac_try_echo") >&5
6189 (eval "$ac_compile") 2>conftest.er1
6190 ac_status=$?
6191 grep -v '^ *+' conftest.er1 >conftest.err
6192 rm -f conftest.er1
6193 cat conftest.err >&5
6194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } && {
6196 test -z "$ac_c_werror_flag" ||
6197 test ! -s conftest.err
6198 } && test -s conftest.$ac_objext; then
6199 ac_cv_c_inline=$ac_kw
6200else
6201 $as_echo "$as_me: failed program was:" >&5
6202sed 's/^/| /' conftest.$ac_ext >&5
6203
6204
6205fi
6206
6207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6208 test "$ac_cv_c_inline" != no && break
6209done
6210
6211fi
6212{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6213$as_echo "$ac_cv_c_inline" >&6; }
6214
6215
6216case $ac_cv_c_inline in
6217 inline | yes) ;;
6218 *)
6219 case $ac_cv_c_inline in
6220 no) ac_val=;;
6221 *) ac_val=$ac_cv_c_inline;;
6222 esac
6223 cat >>confdefs.h <<_ACEOF
6224#ifndef __cplusplus
6225#define inline $ac_val
6226#endif
6227_ACEOF
6228 ;;
6229esac
6230
6231{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6232$as_echo_n "checking for struct stat.st_rdev... " >&6; }
6233if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6234 $as_echo_n "(cached) " >&6
6235else
6236 cat >conftest.$ac_ext <<_ACEOF
6237/* confdefs.h. */
6238_ACEOF
6239cat confdefs.h >>conftest.$ac_ext
6240cat >>conftest.$ac_ext <<_ACEOF
6241/* end confdefs.h. */
6242$ac_includes_default
6243int
6244main ()
6245{
6246static struct stat ac_aggr;
6247if (ac_aggr.st_rdev)
6248return 0;
6249 ;
6250 return 0;
6251}
6252_ACEOF
6253rm -f conftest.$ac_objext
6254if { (ac_try="$ac_compile"
6255case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
6259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6260$as_echo "$ac_try_echo") >&5
6261 (eval "$ac_compile") 2>conftest.er1
6262 ac_status=$?
6263 grep -v '^ *+' conftest.er1 >conftest.err
6264 rm -f conftest.er1
6265 cat conftest.err >&5
6266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6267 (exit $ac_status); } && {
6268 test -z "$ac_c_werror_flag" ||
6269 test ! -s conftest.err
6270 } && test -s conftest.$ac_objext; then
6271 ac_cv_member_struct_stat_st_rdev=yes
6272else
6273 $as_echo "$as_me: failed program was:" >&5
6274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282$ac_includes_default
6283int
6284main ()
6285{
6286static struct stat ac_aggr;
6287if (sizeof ac_aggr.st_rdev)
6288return 0;
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext
6294if { (ac_try="$ac_compile"
6295case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298esac
6299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6300$as_echo "$ac_try_echo") >&5
6301 (eval "$ac_compile") 2>conftest.er1
6302 ac_status=$?
6303 grep -v '^ *+' conftest.er1 >conftest.err
6304 rm -f conftest.er1
6305 cat conftest.err >&5
6306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } && {
6308 test -z "$ac_c_werror_flag" ||
6309 test ! -s conftest.err
6310 } && test -s conftest.$ac_objext; then
6311 ac_cv_member_struct_stat_st_rdev=yes
6312else
6313 $as_echo "$as_me: failed program was:" >&5
6314sed 's/^/| /' conftest.$ac_ext >&5
6315
6316 ac_cv_member_struct_stat_st_rdev=no
6317fi
6318
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320fi
6321
6322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323fi
6324{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6325$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6326if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
6327
6328cat >>confdefs.h <<_ACEOF
6329#define HAVE_STRUCT_STAT_ST_RDEV 1
6330_ACEOF
6331
6332
6333fi
6334
6335{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
6336$as_echo_n "checking for off_t... " >&6; }
6337if test "${ac_cv_type_off_t+set}" = set; then
6338 $as_echo_n "(cached) " >&6
6339else
6340 ac_cv_type_off_t=no
6341cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347$ac_includes_default
6348int
6349main ()
6350{
6351if (sizeof (off_t))
6352 return 0;
6353 ;
6354 return 0;
6355}
6356_ACEOF
6357rm -f conftest.$ac_objext
6358if { (ac_try="$ac_compile"
6359case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362esac
6363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364$as_echo "$ac_try_echo") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6366 ac_status=$?
6367 grep -v '^ *+' conftest.er1 >conftest.err
6368 rm -f conftest.er1
6369 cat conftest.err >&5
6370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.$ac_objext; then
6375 cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h. */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h. */
6381$ac_includes_default
6382int
6383main ()
6384{
6385if (sizeof ((off_t)))
6386 return 0;
6387 ;
6388 return 0;
6389}
6390_ACEOF
6391rm -f conftest.$ac_objext
6392if { (ac_try="$ac_compile"
6393case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
6397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6398$as_echo "$ac_try_echo") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 :
6410else
6411 $as_echo "$as_me: failed program was:" >&5
6412sed 's/^/| /' conftest.$ac_ext >&5
6413
6414 ac_cv_type_off_t=yes
6415fi
6416
6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418else
6419 $as_echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422
6423fi
6424
6425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426fi
6427{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6428$as_echo "$ac_cv_type_off_t" >&6; }
6429if test "x$ac_cv_type_off_t" = x""yes; then
6430 :
6431else
6432
6433cat >>confdefs.h <<_ACEOF
6434#define off_t long int
6435_ACEOF
6436
6437fi
6438
6439{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
6440$as_echo_n "checking for pid_t... " >&6; }
6441if test "${ac_cv_type_pid_t+set}" = set; then
6442 $as_echo_n "(cached) " >&6
6443else
6444 ac_cv_type_pid_t=no
6445cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h. */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h. */
6451$ac_includes_default
6452int
6453main ()
6454{
6455if (sizeof (pid_t))
6456 return 0;
6457 ;
6458 return 0;
6459}
6460_ACEOF
6461rm -f conftest.$ac_objext
6462if { (ac_try="$ac_compile"
6463case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466esac
6467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6468$as_echo "$ac_try_echo") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6470 ac_status=$?
6471 grep -v '^ *+' conftest.er1 >conftest.err
6472 rm -f conftest.er1
6473 cat conftest.err >&5
6474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } && {
6476 test -z "$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 } && test -s conftest.$ac_objext; then
6479 cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h. */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h. */
6485$ac_includes_default
6486int
6487main ()
6488{
6489if (sizeof ((pid_t)))
6490 return 0;
6491 ;
6492 return 0;
6493}
6494_ACEOF
6495rm -f conftest.$ac_objext
6496if { (ac_try="$ac_compile"
6497case "(($ac_try" in
6498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499 *) ac_try_echo=$ac_try;;
6500esac
6501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6502$as_echo "$ac_try_echo") >&5
6503 (eval "$ac_compile") 2>conftest.er1
6504 ac_status=$?
6505 grep -v '^ *+' conftest.er1 >conftest.err
6506 rm -f conftest.er1
6507 cat conftest.err >&5
6508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } && {
6510 test -z "$ac_c_werror_flag" ||
6511 test ! -s conftest.err
6512 } && test -s conftest.$ac_objext; then
6513 :
6514else
6515 $as_echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ac_cv_type_pid_t=yes
6519fi
6520
6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522else
6523 $as_echo "$as_me: failed program was:" >&5
6524sed 's/^/| /' conftest.$ac_ext >&5
6525
6526
6527fi
6528
6529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530fi
6531{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
6532$as_echo "$ac_cv_type_pid_t" >&6; }
6533if test "x$ac_cv_type_pid_t" = x""yes; then
6534 :
6535else
6536
6537cat >>confdefs.h <<_ACEOF
6538#define pid_t int
6539_ACEOF
6540
6541fi
6542
6543{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6544$as_echo_n "checking return type of signal handlers... " >&6; }
6545if test "${ac_cv_type_signal+set}" = set; then
6546 $as_echo_n "(cached) " >&6
6547else
6548 cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */
6554#include <sys/types.h>
6555#include <signal.h>
6556
6557int
6558main ()
6559{
6560return *(signal (0, 0)) (0) == 1;
6561 ;
6562 return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext
6566if { (ac_try="$ac_compile"
6567case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6570esac
6571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6572$as_echo "$ac_try_echo") >&5
6573 (eval "$ac_compile") 2>conftest.er1
6574 ac_status=$?
6575 grep -v '^ *+' conftest.er1 >conftest.err
6576 rm -f conftest.er1
6577 cat conftest.err >&5
6578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); } && {
6580 test -z "$ac_c_werror_flag" ||
6581 test ! -s conftest.err
6582 } && test -s conftest.$ac_objext; then
6583 ac_cv_type_signal=int
6584else
6585 $as_echo "$as_me: failed program was:" >&5
6586sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 ac_cv_type_signal=void
6589fi
6590
6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592fi
6593{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6594$as_echo "$ac_cv_type_signal" >&6; }
6595
6596cat >>confdefs.h <<_ACEOF
6597#define RETSIGTYPE $ac_cv_type_signal
6598_ACEOF
6599
6600
6601{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
6602$as_echo_n "checking for size_t... " >&6; }
6603if test "${ac_cv_type_size_t+set}" = set; then
6604 $as_echo_n "(cached) " >&6
6605else
6606 ac_cv_type_size_t=no
6607cat >conftest.$ac_ext <<_ACEOF
6608/* confdefs.h. */
6609_ACEOF
6610cat confdefs.h >>conftest.$ac_ext
6611cat >>conftest.$ac_ext <<_ACEOF
6612/* end confdefs.h. */
6613$ac_includes_default
6614int
6615main ()
6616{
6617if (sizeof (size_t))
6618 return 0;
6619 ;
6620 return 0;
6621}
6622_ACEOF
6623rm -f conftest.$ac_objext
6624if { (ac_try="$ac_compile"
6625case "(($ac_try" in
6626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6628esac
6629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6630$as_echo "$ac_try_echo") >&5
6631 (eval "$ac_compile") 2>conftest.er1
6632 ac_status=$?
6633 grep -v '^ *+' conftest.er1 >conftest.err
6634 rm -f conftest.er1
6635 cat conftest.err >&5
6636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && {
6638 test -z "$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 } && test -s conftest.$ac_objext; then
6641 cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h. */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h. */
6647$ac_includes_default
6648int
6649main ()
6650{
6651if (sizeof ((size_t)))
6652 return 0;
6653 ;
6654 return 0;
6655}
6656_ACEOF
6657rm -f conftest.$ac_objext
6658if { (ac_try="$ac_compile"
6659case "(($ac_try" in
6660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6661 *) ac_try_echo=$ac_try;;
6662esac
6663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6664$as_echo "$ac_try_echo") >&5
6665 (eval "$ac_compile") 2>conftest.er1
6666 ac_status=$?
6667 grep -v '^ *+' conftest.er1 >conftest.err
6668 rm -f conftest.er1
6669 cat conftest.err >&5
6670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); } && {
6672 test -z "$ac_c_werror_flag" ||
6673 test ! -s conftest.err
6674 } && test -s conftest.$ac_objext; then
6675 :
ad6254c5 6676else
d911ec67
AK
6677 $as_echo "$as_me: failed program was:" >&5
6678sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6679
d911ec67 6680 ac_cv_type_size_t=yes
ad6254c5 6681fi
4922197a 6682
d911ec67 6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922197a 6684else
d911ec67
AK
6685 $as_echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
d0191583
JM
6687
6688
d911ec67 6689fi
d0191583 6690
d911ec67
AK
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692fi
6693{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6694$as_echo "$ac_cv_type_size_t" >&6; }
6695if test "x$ac_cv_type_size_t" = x""yes; then
6696 :
6697else
d0191583 6698
d911ec67
AK
6699cat >>confdefs.h <<_ACEOF
6700#define size_t unsigned int
6701_ACEOF
d0191583 6702
d911ec67 6703fi
d0191583 6704
d911ec67
AK
6705{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6706$as_echo_n "checking for mode_t... " >&6; }
6707if test "${ac_cv_type_mode_t+set}" = set; then
ec6a6fbe 6708 $as_echo_n "(cached) " >&6
795ca3e5 6709else
d911ec67 6710 ac_cv_type_mode_t=no
ad6254c5 6711cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6712/* confdefs.h. */
6713_ACEOF
6714cat confdefs.h >>conftest.$ac_ext
6715cat >>conftest.$ac_ext <<_ACEOF
6716/* end confdefs.h. */
6717$ac_includes_default
d911ec67
AK
6718int
6719main ()
6720{
6721if (sizeof (mode_t))
6722 return 0;
6723 ;
6724 return 0;
6725}
ad6254c5
AK
6726_ACEOF
6727rm -f conftest.$ac_objext
7a197a62
AK
6728if { (ac_try="$ac_compile"
6729case "(($ac_try" in
6730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731 *) ac_try_echo=$ac_try;;
6732esac
ec6a6fbe
AK
6733eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6734$as_echo "$ac_try_echo") >&5
7a197a62 6735 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6736 ac_status=$?
8a2fc586
AK
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
ec6a6fbe 6740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6741 (exit $ac_status); } && {
6742 test -z "$ac_c_werror_flag" ||
6743 test ! -s conftest.err
6744 } && test -s conftest.$ac_objext; then
d911ec67 6745 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6746/* confdefs.h. */
6747_ACEOF
6748cat confdefs.h >>conftest.$ac_ext
6749cat >>conftest.$ac_ext <<_ACEOF
6750/* end confdefs.h. */
d911ec67
AK
6751$ac_includes_default
6752int
6753main ()
6754{
6755if (sizeof ((mode_t)))
6756 return 0;
6757 ;
6758 return 0;
6759}
ad6254c5 6760_ACEOF
d911ec67
AK
6761rm -f conftest.$ac_objext
6762if { (ac_try="$ac_compile"
7a197a62
AK
6763case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766esac
ec6a6fbe
AK
6767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768$as_echo "$ac_try_echo") >&5
d911ec67 6769 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6770 ac_status=$?
6771 grep -v '^ *+' conftest.er1 >conftest.err
6772 rm -f conftest.er1
6773 cat conftest.err >&5
ec6a6fbe 6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
25fbec5b 6777 test ! -s conftest.err
d911ec67
AK
6778 } && test -s conftest.$ac_objext; then
6779 :
ad6254c5 6780else
ec6a6fbe 6781 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
d911ec67 6784 ac_cv_type_mode_t=yes
ad6254c5 6785fi
7a197a62 6786
d911ec67
AK
6787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6788else
6789 $as_echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 6791
7a197a62 6792
80992638
AK
6793fi
6794
d911ec67 6795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6796fi
d911ec67
AK
6797{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6798$as_echo "$ac_cv_type_mode_t" >&6; }
6799if test "x$ac_cv_type_mode_t" = x""yes; then
6800 :
795ca3e5 6801else
80992638 6802
d911ec67
AK
6803cat >>confdefs.h <<_ACEOF
6804#define mode_t int
6805_ACEOF
ad6254c5 6806
d911ec67 6807fi
795ca3e5 6808
d0191583 6809
d911ec67
AK
6810 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
6811$as_echo_n "checking for int8_t... " >&6; }
6812if test "${ac_cv_c_int8_t+set}" = set; then
ec6a6fbe 6813 $as_echo_n "(cached) " >&6
ad6254c5 6814else
d911ec67
AK
6815 ac_cv_c_int8_t=no
6816 for ac_type in 'int8_t' 'int' 'long int' \
6817 'long long int' 'short int' 'signed char'; do
6818 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6819/* confdefs.h. */
6820_ACEOF
6821cat confdefs.h >>conftest.$ac_ext
6822cat >>conftest.$ac_ext <<_ACEOF
6823/* end confdefs.h. */
6824$ac_includes_default
d911ec67
AK
6825int
6826main ()
6827{
6828static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
6829test_array [0] = 0
6830
6831 ;
6832 return 0;
6833}
ad6254c5
AK
6834_ACEOF
6835rm -f conftest.$ac_objext
7a197a62
AK
6836if { (ac_try="$ac_compile"
6837case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840esac
ec6a6fbe
AK
6841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6842$as_echo "$ac_try_echo") >&5
7a197a62 6843 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6844 ac_status=$?
8a2fc586
AK
6845 grep -v '^ *+' conftest.er1 >conftest.err
6846 rm -f conftest.er1
6847 cat conftest.err >&5
ec6a6fbe 6848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6849 (exit $ac_status); } && {
6850 test -z "$ac_c_werror_flag" ||
6851 test ! -s conftest.err
6852 } && test -s conftest.$ac_objext; then
d911ec67 6853 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6854/* confdefs.h. */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h. */
d911ec67
AK
6859$ac_includes_default
6860int
6861main ()
6862{
6863static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
6864 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
6865test_array [0] = 0
6866
6867 ;
6868 return 0;
6869}
ad6254c5 6870_ACEOF
d911ec67
AK
6871rm -f conftest.$ac_objext
6872if { (ac_try="$ac_compile"
7a197a62
AK
6873case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876esac
ec6a6fbe
AK
6877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878$as_echo "$ac_try_echo") >&5
d911ec67 6879 (eval "$ac_compile") 2>conftest.er1
ad6254c5
AK
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
ec6a6fbe 6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d911ec67
AK
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
25fbec5b 6887 test ! -s conftest.err
d911ec67
AK
6888 } && test -s conftest.$ac_objext; then
6889 :
ad6254c5 6890else
ec6a6fbe 6891 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
6892sed 's/^/| /' conftest.$ac_ext >&5
6893
d911ec67
AK
6894 case $ac_type in
6895 int8_t) ac_cv_c_int8_t=yes ;;
6896 *) ac_cv_c_int8_t=$ac_type ;;
6897esac
ad6254c5 6898
d911ec67 6899fi
7a197a62 6900
d911ec67 6901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 6902else
d911ec67
AK
6903 $as_echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
b896caa1 6906
ad6254c5 6907fi
ad6254c5 6908
d911ec67
AK
6909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6910 test "$ac_cv_c_int8_t" != no && break
6911 done
80992638 6912fi
d911ec67
AK
6913{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
6914$as_echo "$ac_cv_c_int8_t" >&6; }
6915 case $ac_cv_c_int8_t in #(
6916 no|yes) ;; #(
6917 *)
80992638 6918
d911ec67
AK
6919cat >>confdefs.h <<_ACEOF
6920#define int8_t $ac_cv_c_int8_t
6921_ACEOF
6922;;
6923 esac
d0191583 6924
d3c8211f 6925
d911ec67
AK
6926 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
6927$as_echo_n "checking for int16_t... " >&6; }
6928if test "${ac_cv_c_int16_t+set}" = set; then
ec6a6fbe 6929 $as_echo_n "(cached) " >&6
d3c8211f 6930else
d911ec67
AK
6931 ac_cv_c_int16_t=no
6932 for ac_type in 'int16_t' 'int' 'long int' \
6933 'long long int' 'short int' 'signed char'; do
6934 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6935/* confdefs.h. */
6936_ACEOF
6937cat confdefs.h >>conftest.$ac_ext
6938cat >>conftest.$ac_ext <<_ACEOF
6939/* end confdefs.h. */
d911ec67 6940$ac_includes_default
ad6254c5
AK
6941int
6942main ()
6943{
d911ec67
AK
6944static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
6945test_array [0] = 0
ad6254c5
AK
6946
6947 ;
6948 return 0;
6949}
6950_ACEOF
6951rm -f conftest.$ac_objext
7a197a62
AK
6952if { (ac_try="$ac_compile"
6953case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956esac
ec6a6fbe
AK
6957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6958$as_echo "$ac_try_echo") >&5
7a197a62 6959 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6960 ac_status=$?
8a2fc586
AK
6961 grep -v '^ *+' conftest.er1 >conftest.err
6962 rm -f conftest.er1
6963 cat conftest.err >&5
ec6a6fbe 6964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
6965 (exit $ac_status); } && {
6966 test -z "$ac_c_werror_flag" ||
6967 test ! -s conftest.err
6968 } && test -s conftest.$ac_objext; then
ad6254c5 6969 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
6970/* confdefs.h. */
6971_ACEOF
6972cat confdefs.h >>conftest.$ac_ext
6973cat >>conftest.$ac_ext <<_ACEOF
6974/* end confdefs.h. */
d911ec67
AK
6975$ac_includes_default
6976int
6977main ()
6978{
6979static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
6980 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
6981test_array [0] = 0
80992638 6982
d911ec67
AK
6983 ;
6984 return 0;
6985}
ad6254c5
AK
6986_ACEOF
6987rm -f conftest.$ac_objext
7a197a62
AK
6988if { (ac_try="$ac_compile"
6989case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992esac
ec6a6fbe
AK
6993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6994$as_echo "$ac_try_echo") >&5
7a197a62 6995 (eval "$ac_compile") 2>conftest.er1
ad6254c5 6996 ac_status=$?
8a2fc586
AK
6997 grep -v '^ *+' conftest.er1 >conftest.err
6998 rm -f conftest.er1
6999 cat conftest.err >&5
ec6a6fbe 7000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7001 (exit $ac_status); } && {
7002 test -z "$ac_c_werror_flag" ||
7003 test ! -s conftest.err
7004 } && test -s conftest.$ac_objext; then
d911ec67 7005 :
ad6254c5 7006else
ec6a6fbe 7007 $as_echo "$as_me: failed program was:" >&5
ad6254c5 7008sed 's/^/| /' conftest.$ac_ext >&5
8ef2b021 7009
d911ec67
AK
7010 case $ac_type in
7011 int16_t) ac_cv_c_int16_t=yes ;;
7012 *) ac_cv_c_int16_t=$ac_type ;;
7013esac
7a197a62 7014
8ce0cbda 7015fi
7a197a62
AK
7016
7017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7018else
7019 $as_echo "$as_me: failed program was:" >&5
7020sed 's/^/| /' conftest.$ac_ext >&5
8ce0cbda 7021
8a2fc586 7022
d911ec67 7023fi
8a2fc586 7024
d911ec67
AK
7025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 test "$ac_cv_c_int16_t" != no && break
7027 done
7028fi
7029{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
7030$as_echo "$ac_cv_c_int16_t" >&6; }
7031 case $ac_cv_c_int16_t in #(
7032 no|yes) ;; #(
8a2fc586 7033 *)
d911ec67
AK
7034
7035cat >>confdefs.h <<_ACEOF
7036#define int16_t $ac_cv_c_int16_t
c1c065a3 7037_ACEOF
d911ec67
AK
7038;;
7039 esac
d0191583 7040
d911ec67
AK
7041
7042 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7043$as_echo_n "checking for int32_t... " >&6; }
7044if test "${ac_cv_c_int32_t+set}" = set; then
ec6a6fbe 7045 $as_echo_n "(cached) " >&6
d0191583 7046else
d911ec67
AK
7047 ac_cv_c_int32_t=no
7048 for ac_type in 'int32_t' 'int' 'long int' \
7049 'long long int' 'short int' 'signed char'; do
7050 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7051/* confdefs.h. */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h. */
7056$ac_includes_default
7057int
7058main ()
7059{
d911ec67
AK
7060static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
7061test_array [0] = 0
7062
d0191583
JM
7063 ;
7064 return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext
7068if { (ac_try="$ac_compile"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
ec6a6fbe
AK
7073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7074$as_echo "$ac_try_echo") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7076 ac_status=$?
7077 grep -v '^ *+' conftest.er1 >conftest.err
7078 rm -f conftest.er1
7079 cat conftest.err >&5
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
d911ec67 7085 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7086/* confdefs.h. */
7087_ACEOF
7088cat confdefs.h >>conftest.$ac_ext
7089cat >>conftest.$ac_ext <<_ACEOF
7090/* end confdefs.h. */
7091$ac_includes_default
7092int
7093main ()
7094{
d911ec67
AK
7095static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
7096 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
7097test_array [0] = 0
7098
ec6a6fbe
AK
7099 ;
7100 return 0;
7101}
7102_ACEOF
7103rm -f conftest.$ac_objext
7104if { (ac_try="$ac_compile"
7105case "(($ac_try" in
7106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7107 *) ac_try_echo=$ac_try;;
7108esac
7109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7110$as_echo "$ac_try_echo") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.$ac_objext; then
d911ec67 7121 :
ec6a6fbe
AK
7122else
7123 $as_echo "$as_me: failed program was:" >&5
7124sed 's/^/| /' conftest.$ac_ext >&5
7125
d911ec67
AK
7126 case $ac_type in
7127 int32_t) ac_cv_c_int32_t=yes ;;
7128 *) ac_cv_c_int32_t=$ac_type ;;
7129esac
7130
ec6a6fbe
AK
7131fi
7132
7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7134else
7135 $as_echo "$as_me: failed program was:" >&5
7136sed 's/^/| /' conftest.$ac_ext >&5
7137
7138
ec6a6fbe
AK
7139fi
7140
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7142 test "$ac_cv_c_int32_t" != no && break
7143 done
ec6a6fbe 7144fi
d911ec67
AK
7145{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
7146$as_echo "$ac_cv_c_int32_t" >&6; }
7147 case $ac_cv_c_int32_t in #(
7148 no|yes) ;; #(
7149 *)
ec6a6fbe
AK
7150
7151cat >>confdefs.h <<_ACEOF
d911ec67 7152#define int32_t $ac_cv_c_int32_t
ec6a6fbe 7153_ACEOF
d911ec67
AK
7154;;
7155 esac
ec6a6fbe
AK
7156
7157
d911ec67
AK
7158 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7159$as_echo_n "checking for int64_t... " >&6; }
7160if test "${ac_cv_c_int64_t+set}" = set; then
ec6a6fbe
AK
7161 $as_echo_n "(cached) " >&6
7162else
d911ec67
AK
7163 ac_cv_c_int64_t=no
7164 for ac_type in 'int64_t' 'int' 'long int' \
7165 'long long int' 'short int' 'signed char'; do
7166 cat >conftest.$ac_ext <<_ACEOF
ec6a6fbe
AK
7167/* confdefs.h. */
7168_ACEOF
7169cat confdefs.h >>conftest.$ac_ext
7170cat >>conftest.$ac_ext <<_ACEOF
7171/* end confdefs.h. */
7172$ac_includes_default
7173int
7174main ()
7175{
d911ec67
AK
7176static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
7177test_array [0] = 0
7178
ec6a6fbe
AK
7179 ;
7180 return 0;
7181}
7182_ACEOF
7183rm -f conftest.$ac_objext
7184if { (ac_try="$ac_compile"
7185case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188esac
7189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7190$as_echo "$ac_try_echo") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7192 ac_status=$?
7193 grep -v '^ *+' conftest.er1 >conftest.err
7194 rm -f conftest.er1
7195 cat conftest.err >&5
7196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7201 cat >conftest.$ac_ext <<_ACEOF
7202/* confdefs.h. */
7203_ACEOF
7204cat confdefs.h >>conftest.$ac_ext
7205cat >>conftest.$ac_ext <<_ACEOF
7206/* end confdefs.h. */
7207$ac_includes_default
7208int
7209main ()
7210{
d911ec67
AK
7211static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
7212 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
7213test_array [0] = 0
7214
ec6a6fbe
AK
7215 ;
7216 return 0;
7217}
7218_ACEOF
7219rm -f conftest.$ac_objext
7220if { (ac_try="$ac_compile"
7221case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224esac
7225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226$as_echo "$ac_try_echo") >&5
7227 (eval "$ac_compile") 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest.$ac_objext; then
7237 :
7238else
7239 $as_echo "$as_me: failed program was:" >&5
7240sed 's/^/| /' conftest.$ac_ext >&5
7241
d911ec67
AK
7242 case $ac_type in
7243 int64_t) ac_cv_c_int64_t=yes ;;
7244 *) ac_cv_c_int64_t=$ac_type ;;
7245esac
7246
ec6a6fbe
AK
7247fi
7248
7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250else
7251 $as_echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
7254
7255fi
7256
7257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7258 test "$ac_cv_c_int64_t" != no && break
7259 done
ec6a6fbe 7260fi
d911ec67
AK
7261{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
7262$as_echo "$ac_cv_c_int64_t" >&6; }
7263 case $ac_cv_c_int64_t in #(
7264 no|yes) ;; #(
7265 *)
ec6a6fbe
AK
7266
7267cat >>confdefs.h <<_ACEOF
d911ec67 7268#define int64_t $ac_cv_c_int64_t
ec6a6fbe 7269_ACEOF
d911ec67
AK
7270;;
7271 esac
ec6a6fbe 7272
d911ec67
AK
7273{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
7274$as_echo_n "checking for ssize_t... " >&6; }
7275if test "${ac_cv_type_ssize_t+set}" = set; then
ec6a6fbe
AK
7276 $as_echo_n "(cached) " >&6
7277else
d911ec67 7278 ac_cv_type_ssize_t=no
ec6a6fbe
AK
7279cat >conftest.$ac_ext <<_ACEOF
7280/* confdefs.h. */
7281_ACEOF
7282cat confdefs.h >>conftest.$ac_ext
7283cat >>conftest.$ac_ext <<_ACEOF
7284/* end confdefs.h. */
7285$ac_includes_default
7286int
7287main ()
7288{
d911ec67 7289if (sizeof (ssize_t))
ec6a6fbe
AK
7290 return 0;
7291 ;
7292 return 0;
7293}
7294_ACEOF
7295rm -f conftest.$ac_objext
7296if { (ac_try="$ac_compile"
7297case "(($ac_try" in
7298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7299 *) ac_try_echo=$ac_try;;
7300esac
7301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7302$as_echo "$ac_try_echo") >&5
d0191583
JM
7303 (eval "$ac_compile") 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
ec6a6fbe 7308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7309 (exit $ac_status); } && {
7310 test -z "$ac_c_werror_flag" ||
7311 test ! -s conftest.err
7312 } && test -s conftest.$ac_objext; then
ec6a6fbe 7313 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7314/* confdefs.h. */
7315_ACEOF
7316cat confdefs.h >>conftest.$ac_ext
7317cat >>conftest.$ac_ext <<_ACEOF
7318/* end confdefs.h. */
7319$ac_includes_default
7320int
7321main ()
7322{
d911ec67 7323if (sizeof ((ssize_t)))
ec6a6fbe 7324 return 0;
d0191583
JM
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329rm -f conftest.$ac_objext
7330if { (ac_try="$ac_compile"
7331case "(($ac_try" in
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7334esac
ec6a6fbe
AK
7335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7336$as_echo "$ac_try_echo") >&5
d0191583
JM
7337 (eval "$ac_compile") 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
ec6a6fbe 7342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7343 (exit $ac_status); } && {
7344 test -z "$ac_c_werror_flag" ||
7345 test ! -s conftest.err
7346 } && test -s conftest.$ac_objext; then
ec6a6fbe 7347 :
d0191583 7348else
ec6a6fbe 7349 $as_echo "$as_me: failed program was:" >&5
d0191583
JM
7350sed 's/^/| /' conftest.$ac_ext >&5
7351
d911ec67 7352 ac_cv_type_ssize_t=yes
d0191583
JM
7353fi
7354
7355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
7356else
7357 $as_echo "$as_me: failed program was:" >&5
7358sed 's/^/| /' conftest.$ac_ext >&5
7359
7360
d0191583
JM
7361fi
7362
7363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364fi
d911ec67
AK
7365{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
7366$as_echo "$ac_cv_type_ssize_t" >&6; }
7367if test "x$ac_cv_type_ssize_t" = x""yes; then
ec6a6fbe
AK
7368 :
7369else
d0191583
JM
7370
7371cat >>confdefs.h <<_ACEOF
d911ec67 7372#define ssize_t int
d0191583
JM
7373_ACEOF
7374
d0191583 7375fi
8ce0cbda 7376
d911ec67
AK
7377{ $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7378$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7379if test "${ac_cv_type_uid_t+set}" = set; then
ec6a6fbe 7380 $as_echo_n "(cached) " >&6
ad6254c5 7381else
b145d876
ZK
7382 cat >conftest.$ac_ext <<_ACEOF
7383/* confdefs.h. */
7384_ACEOF
7385cat confdefs.h >>conftest.$ac_ext
7386cat >>conftest.$ac_ext <<_ACEOF
7387/* end confdefs.h. */
ec6a6fbe 7388#include <sys/types.h>
ec6a6fbe 7389
ad6254c5 7390_ACEOF
d911ec67
AK
7391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "uid_t" >/dev/null 2>&1; then
7393 ac_cv_type_uid_t=yes
b145d876 7394else
d911ec67 7395 ac_cv_type_uid_t=no
ad6254c5 7396fi
d911ec67 7397rm -f conftest*
b145d876 7398
b145d876 7399fi
d911ec67
AK
7400{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7401$as_echo "$ac_cv_type_uid_t" >&6; }
7402if test $ac_cv_type_uid_t = no; then
80992638 7403
d911ec67
AK
7404cat >>confdefs.h <<\_ACEOF
7405#define uid_t int
ad6254c5 7406_ACEOF
199e490e 7407
b896caa1 7408
d911ec67
AK
7409cat >>confdefs.h <<\_ACEOF
7410#define gid_t int
7411_ACEOF
7412
7413fi
7414
7415
7416 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7417$as_echo_n "checking for uint8_t... " >&6; }
7418if test "${ac_cv_c_uint8_t+set}" = set; then
ec6a6fbe 7419 $as_echo_n "(cached) " >&6
ad6254c5 7420else
d911ec67
AK
7421 ac_cv_c_uint8_t=no
7422 for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
7423 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7424 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7425/* confdefs.h. */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h. */
7430$ac_includes_default
7431int
7432main ()
7433{
d911ec67
AK
7434static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
7435test_array [0] = 0
7436
ad6254c5
AK
7437 ;
7438 return 0;
7439}
7440_ACEOF
7441rm -f conftest.$ac_objext
7a197a62
AK
7442if { (ac_try="$ac_compile"
7443case "(($ac_try" in
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7446esac
ec6a6fbe
AK
7447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448$as_echo "$ac_try_echo") >&5
7a197a62 7449 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7450 ac_status=$?
8a2fc586
AK
7451 grep -v '^ *+' conftest.er1 >conftest.err
7452 rm -f conftest.er1
7453 cat conftest.err >&5
ec6a6fbe 7454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
d911ec67
AK
7459 case $ac_type in
7460 uint8_t) ac_cv_c_uint8_t=yes ;;
7461 *) ac_cv_c_uint8_t=$ac_type ;;
7462esac
7463
7464else
7465 $as_echo "$as_me: failed program was:" >&5
7466sed 's/^/| /' conftest.$ac_ext >&5
7467
7468
7469fi
7470
7471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7472 test "$ac_cv_c_uint8_t" != no && break
7473 done
7474fi
7475{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
7476$as_echo "$ac_cv_c_uint8_t" >&6; }
7477 case $ac_cv_c_uint8_t in #(
7478 no|yes) ;; #(
7479 *)
7480
7481cat >>confdefs.h <<\_ACEOF
7482#define _UINT8_T 1
7483_ACEOF
7484
7485
7486cat >>confdefs.h <<_ACEOF
7487#define uint8_t $ac_cv_c_uint8_t
7488_ACEOF
7489;;
7490 esac
7491
7492
7493 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7494$as_echo_n "checking for uint16_t... " >&6; }
7495if test "${ac_cv_c_uint16_t+set}" = set; then
7496 $as_echo_n "(cached) " >&6
7497else
7498 ac_cv_c_uint16_t=no
7499 for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
7500 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7501 cat >conftest.$ac_ext <<_ACEOF
d0191583
JM
7502/* confdefs.h. */
7503_ACEOF
7504cat confdefs.h >>conftest.$ac_ext
7505cat >>conftest.$ac_ext <<_ACEOF
7506/* end confdefs.h. */
ec6a6fbe 7507$ac_includes_default
d0191583
JM
7508int
7509main ()
7510{
d911ec67
AK
7511static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
7512test_array [0] = 0
7513
d0191583
JM
7514 ;
7515 return 0;
7516}
7517_ACEOF
7518rm -f conftest.$ac_objext
7519if { (ac_try="$ac_compile"
7520case "(($ac_try" in
7521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7522 *) ac_try_echo=$ac_try;;
7523esac
ec6a6fbe
AK
7524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7525$as_echo "$ac_try_echo") >&5
d0191583
JM
7526 (eval "$ac_compile") 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
ec6a6fbe 7531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
d911ec67
AK
7536 case $ac_type in
7537 uint16_t) ac_cv_c_uint16_t=yes ;;
7538 *) ac_cv_c_uint16_t=$ac_type ;;
7539esac
ec6a6fbe 7540
ec6a6fbe
AK
7541else
7542 $as_echo "$as_me: failed program was:" >&5
7543sed 's/^/| /' conftest.$ac_ext >&5
7544
7545
d0191583
JM
7546fi
7547
7548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7549 test "$ac_cv_c_uint16_t" != no && break
7550 done
d0191583 7551fi
d911ec67
AK
7552{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
7553$as_echo "$ac_cv_c_uint16_t" >&6; }
7554 case $ac_cv_c_uint16_t in #(
7555 no|yes) ;; #(
7556 *)
7557
d0191583
JM
7558
7559cat >>confdefs.h <<_ACEOF
d911ec67 7560#define uint16_t $ac_cv_c_uint16_t
d0191583 7561_ACEOF
d911ec67
AK
7562;;
7563 esac
d0191583
JM
7564
7565
d911ec67
AK
7566 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7567$as_echo_n "checking for uint32_t... " >&6; }
7568if test "${ac_cv_c_uint32_t+set}" = set; then
ec6a6fbe 7569 $as_echo_n "(cached) " >&6
8106cdd5 7570else
d911ec67
AK
7571 ac_cv_c_uint32_t=no
7572 for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
7573 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7574 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7575/* confdefs.h. */
7576_ACEOF
7577cat confdefs.h >>conftest.$ac_ext
7578cat >>conftest.$ac_ext <<_ACEOF
7579/* end confdefs.h. */
7580$ac_includes_default
7581int
7582main ()
7583{
d911ec67
AK
7584static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
7585test_array [0] = 0
7586
ad6254c5
AK
7587 ;
7588 return 0;
7589}
7590_ACEOF
7591rm -f conftest.$ac_objext
7a197a62
AK
7592if { (ac_try="$ac_compile"
7593case "(($ac_try" in
7594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7595 *) ac_try_echo=$ac_try;;
7596esac
ec6a6fbe
AK
7597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7598$as_echo "$ac_try_echo") >&5
7a197a62 7599 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7600 ac_status=$?
8a2fc586
AK
7601 grep -v '^ *+' conftest.er1 >conftest.err
7602 rm -f conftest.er1
7603 cat conftest.err >&5
ec6a6fbe 7604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
d911ec67
AK
7609 case $ac_type in
7610 uint32_t) ac_cv_c_uint32_t=yes ;;
7611 *) ac_cv_c_uint32_t=$ac_type ;;
7612esac
7613
7614else
7615 $as_echo "$as_me: failed program was:" >&5
7616sed 's/^/| /' conftest.$ac_ext >&5
7617
7618
7619fi
7620
7621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7622 test "$ac_cv_c_uint32_t" != no && break
7623 done
7624fi
7625{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
7626$as_echo "$ac_cv_c_uint32_t" >&6; }
7627 case $ac_cv_c_uint32_t in #(
7628 no|yes) ;; #(
7629 *)
7630
7631cat >>confdefs.h <<\_ACEOF
7632#define _UINT32_T 1
7633_ACEOF
7634
7635
7636cat >>confdefs.h <<_ACEOF
7637#define uint32_t $ac_cv_c_uint32_t
7638_ACEOF
7639;;
7640 esac
7641
7642
7643 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7644$as_echo_n "checking for uint64_t... " >&6; }
7645if test "${ac_cv_c_uint64_t+set}" = set; then
7646 $as_echo_n "(cached) " >&6
7647else
7648 ac_cv_c_uint64_t=no
7649 for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
7650 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
7651 cat >conftest.$ac_ext <<_ACEOF
b145d876
ZK
7652/* confdefs.h. */
7653_ACEOF
7654cat confdefs.h >>conftest.$ac_ext
7655cat >>conftest.$ac_ext <<_ACEOF
7656/* end confdefs.h. */
7657$ac_includes_default
7658int
7659main ()
7660{
d911ec67
AK
7661static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
7662test_array [0] = 0
7663
ad6254c5
AK
7664 ;
7665 return 0;
7666}
7667_ACEOF
7668rm -f conftest.$ac_objext
7a197a62
AK
7669if { (ac_try="$ac_compile"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
ec6a6fbe
AK
7674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7675$as_echo "$ac_try_echo") >&5
7a197a62 7676 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7677 ac_status=$?
8a2fc586
AK
7678 grep -v '^ *+' conftest.er1 >conftest.err
7679 rm -f conftest.er1
7680 cat conftest.err >&5
ec6a6fbe 7681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7682 (exit $ac_status); } && {
7683 test -z "$ac_c_werror_flag" ||
7684 test ! -s conftest.err
7685 } && test -s conftest.$ac_objext; then
d911ec67
AK
7686 case $ac_type in
7687 uint64_t) ac_cv_c_uint64_t=yes ;;
7688 *) ac_cv_c_uint64_t=$ac_type ;;
7689esac
ec6a6fbe 7690
fddafd51 7691else
ec6a6fbe 7692 $as_echo "$as_me: failed program was:" >&5
fddafd51
ZK
7693sed 's/^/| /' conftest.$ac_ext >&5
7694
ec6a6fbe 7695
80992638 7696fi
7a197a62
AK
7697
7698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d911ec67
AK
7699 test "$ac_cv_c_uint64_t" != no && break
7700 done
ad6254c5 7701fi
d911ec67
AK
7702{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
7703$as_echo "$ac_cv_c_uint64_t" >&6; }
7704 case $ac_cv_c_uint64_t in #(
7705 no|yes) ;; #(
7706 *)
80992638 7707
d911ec67
AK
7708cat >>confdefs.h <<\_ACEOF
7709#define _UINT64_T 1
ad6254c5
AK
7710_ACEOF
7711
d911ec67
AK
7712
7713cat >>confdefs.h <<_ACEOF
7714#define uint64_t $ac_cv_c_uint64_t
7715_ACEOF
7716;;
7717 esac
ad6254c5 7718
ec6a6fbe
AK
7719{ $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
7720$as_echo_n "checking for struct stat.st_rdev... " >&6; }
ad6254c5 7721if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
ec6a6fbe 7722 $as_echo_n "(cached) " >&6
ad6254c5
AK
7723else
7724 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h. */
7730$ac_includes_default
7731int
7732main ()
7733{
7734static struct stat ac_aggr;
7735if (ac_aggr.st_rdev)
7736return 0;
7737 ;
7738 return 0;
7739}
7740_ACEOF
7741rm -f conftest.$ac_objext
7a197a62
AK
7742if { (ac_try="$ac_compile"
7743case "(($ac_try" in
7744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745 *) ac_try_echo=$ac_try;;
7746esac
ec6a6fbe
AK
7747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7748$as_echo "$ac_try_echo") >&5
7a197a62 7749 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7750 ac_status=$?
8a2fc586
AK
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
ec6a6fbe 7754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7759 ac_cv_member_struct_stat_st_rdev=yes
7760else
ec6a6fbe 7761 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7762sed 's/^/| /' conftest.$ac_ext >&5
7763
7a197a62 7764 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7765/* confdefs.h. */
7766_ACEOF
7767cat confdefs.h >>conftest.$ac_ext
7768cat >>conftest.$ac_ext <<_ACEOF
7769/* end confdefs.h. */
7770$ac_includes_default
7771int
7772main ()
7773{
7774static struct stat ac_aggr;
7775if (sizeof ac_aggr.st_rdev)
7776return 0;
7777 ;
7778 return 0;
7779}
7780_ACEOF
7781rm -f conftest.$ac_objext
7a197a62
AK
7782if { (ac_try="$ac_compile"
7783case "(($ac_try" in
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7786esac
ec6a6fbe
AK
7787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7788$as_echo "$ac_try_echo") >&5
7a197a62 7789 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7790 ac_status=$?
8a2fc586
AK
7791 grep -v '^ *+' conftest.er1 >conftest.err
7792 rm -f conftest.er1
7793 cat conftest.err >&5
ec6a6fbe 7794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7795 (exit $ac_status); } && {
7796 test -z "$ac_c_werror_flag" ||
7797 test ! -s conftest.err
7798 } && test -s conftest.$ac_objext; then
ad6254c5
AK
7799 ac_cv_member_struct_stat_st_rdev=yes
7800else
ec6a6fbe 7801 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7802sed 's/^/| /' conftest.$ac_ext >&5
7803
7a197a62 7804 ac_cv_member_struct_stat_st_rdev=no
ad6254c5 7805fi
7a197a62
AK
7806
7807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7808fi
7a197a62
AK
7809
7810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 7811fi
ec6a6fbe
AK
7812{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
7813$as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
7814if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
ad6254c5
AK
7815
7816cat >>confdefs.h <<_ACEOF
7817#define HAVE_STRUCT_STAT_ST_RDEV 1
7818_ACEOF
7819
7820
ad6254c5
AK
7821fi
7822
ec6a6fbe
AK
7823{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7824$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
ad6254c5 7825if test "${ac_cv_struct_tm+set}" = set; then
ec6a6fbe 7826 $as_echo_n "(cached) " >&6
ad6254c5
AK
7827else
7828 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
7829/* confdefs.h. */
7830_ACEOF
7831cat confdefs.h >>conftest.$ac_ext
7832cat >>conftest.$ac_ext <<_ACEOF
7833/* end confdefs.h. */
7834#include <sys/types.h>
7835#include <time.h>
7836
7837int
7838main ()
7839{
25fbec5b
AK
7840struct tm tm;
7841 int *p = &tm.tm_sec;
ec6a6fbe 7842 return !p;
ad6254c5
AK
7843 ;
7844 return 0;
7845}
7846_ACEOF
7847rm -f conftest.$ac_objext
7a197a62
AK
7848if { (ac_try="$ac_compile"
7849case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
ec6a6fbe
AK
7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854$as_echo "$ac_try_echo") >&5
7a197a62 7855 (eval "$ac_compile") 2>conftest.er1
ad6254c5 7856 ac_status=$?
8a2fc586
AK
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
ec6a6fbe 7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
d911ec67
AK
7864 } && test -s conftest.$ac_objext; then
7865 ac_cv_struct_tm=time.h
7866else
7867 $as_echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_cv_struct_tm=sys/time.h
7871fi
7872
7873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874fi
7875{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7876$as_echo "$ac_cv_struct_tm" >&6; }
7877if test $ac_cv_struct_tm = sys/time.h; then
7878
7879cat >>confdefs.h <<\_ACEOF
7880#define TM_IN_SYS_TIME 1
7881_ACEOF
7882
7883fi
7884
7885
7886################################################################################
7887{ $as_echo "$as_me:$LINENO: checking for library containing floor" >&5
7888$as_echo_n "checking for library containing floor... " >&6; }
7889if test "${ac_cv_search_floor+set}" = set; then
7890 $as_echo_n "(cached) " >&6
7891else
7892 ac_func_search_save_LIBS=$LIBS
7893cat >conftest.$ac_ext <<_ACEOF
7894/* confdefs.h. */
7895_ACEOF
7896cat confdefs.h >>conftest.$ac_ext
7897cat >>conftest.$ac_ext <<_ACEOF
7898/* end confdefs.h. */
7899
7900/* Override any GCC internal prototype to avoid an error.
7901 Use char because int might match the return type of a GCC
7902 builtin and then its argument prototype would still apply. */
7903#ifdef __cplusplus
7904extern "C"
7905#endif
7906char floor ();
7907int
7908main ()
7909{
7910return floor ();
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915for ac_lib in '' m; do
7916 if test -z "$ac_lib"; then
7917 ac_res="none required"
7918 else
7919 ac_res=-l$ac_lib
7920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7921 fi
7922 rm -f conftest.$ac_objext conftest$ac_exeext
7923if { (ac_try="$ac_link"
7924case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7929$as_echo "$ac_try_echo") >&5
7930 (eval "$ac_link") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest$ac_exeext && {
7940 test "$cross_compiling" = yes ||
7941 $as_test_x conftest$ac_exeext
7942 }; then
7943 ac_cv_search_floor=$ac_res
ad6254c5 7944else
ec6a6fbe 7945 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
7946sed 's/^/| /' conftest.$ac_ext >&5
7947
7a197a62 7948
ad6254c5 7949fi
ad6254c5 7950
d911ec67
AK
7951rm -rf conftest.dSYM
7952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7953 conftest$ac_exeext
7954 if test "${ac_cv_search_floor+set}" = set; then
7955 break
7956fi
7957done
7958if test "${ac_cv_search_floor+set}" = set; then
7959 :
7960else
7961 ac_cv_search_floor=no
7962fi
7963rm conftest.$ac_ext
7964LIBS=$ac_func_search_save_LIBS
7965fi
7966{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_floor" >&5
7967$as_echo "$ac_cv_search_floor" >&6; }
7968ac_res=$ac_cv_search_floor
7969if test "$ac_res" != no; then
7970 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
ad6254c5 7971
d911ec67
AK
7972else
7973 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
7974$as_echo "$as_me: error: bailing out" >&2;}
7975 { (exit 1); exit 1; }; }
ad6254c5 7976fi
809fae91 7977
795ca3e5 7978
ad6254c5
AK
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
d0191583
JM
7993
7994
7995
d911ec67
AK
7996
7997
7998
7999
8000
8001
8002
8003for ac_func in floor ftruncate gethostname getpagesize \
8004 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
8005 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
8006 strstr strtol strtoul uname
ad6254c5 8007do
ec6a6fbe
AK
8008as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8009{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8010$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8011if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8012 $as_echo_n "(cached) " >&6
795ca3e5 8013else
ad6254c5 8014 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8a2fc586
AK
8020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8022#define $ac_func innocuous_$ac_func
8023
ad6254c5
AK
8024/* System header to define __stub macros and hopefully few prototypes,
8025 which can conflict with char $ac_func (); below.
8026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8027 <limits.h> exists even on freestanding compilers. */
8a2fc586 8028
ad6254c5
AK
8029#ifdef __STDC__
8030# include <limits.h>
8031#else
8032# include <assert.h>
8033#endif
8a2fc586
AK
8034
8035#undef $ac_func
8036
7a197a62
AK
8037/* Override any GCC internal prototype to avoid an error.
8038 Use char because int might match the return type of a GCC
8039 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8040#ifdef __cplusplus
8041extern "C"
ad6254c5 8042#endif
ad6254c5
AK
8043char $ac_func ();
8044/* The GNU C library defines this for functions which it implements
8045 to always fail with ENOSYS. Some functions are actually named
8046 something starting with __ and the normal name is an alias. */
7a197a62 8047#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8048choke me
ad6254c5
AK
8049#endif
8050
8051int
8052main ()
8053{
7a197a62 8054return $ac_func ();
ad6254c5
AK
8055 ;
8056 return 0;
8057}
8058_ACEOF
8059rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8060if { (ac_try="$ac_link"
8061case "(($ac_try" in
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8064esac
ec6a6fbe
AK
8065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8066$as_echo "$ac_try_echo") >&5
7a197a62 8067 (eval "$ac_link") 2>conftest.er1
ad6254c5 8068 ac_status=$?
8a2fc586
AK
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
ec6a6fbe 8072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
ec6a6fbe
AK
8076 } && test -s conftest$ac_exeext && {
8077 test "$cross_compiling" = yes ||
8078 $as_test_x conftest$ac_exeext
8079 }; then
fc54be10
AK
8080 eval "$as_ac_var=yes"
8081else
ec6a6fbe 8082 $as_echo "$as_me: failed program was:" >&5
fc54be10
AK
8083sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 eval "$as_ac_var=no"
8086fi
8087
ec6a6fbe 8088rm -rf conftest.dSYM
25fbec5b 8089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
fc54be10
AK
8090 conftest$ac_exeext conftest.$ac_ext
8091fi
ec6a6fbe
AK
8092ac_res=`eval 'as_val=${'$as_ac_var'}
8093 $as_echo "$as_val"'`
8094 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8095$as_echo "$ac_res" >&6; }
8096as_val=`eval 'as_val=${'$as_ac_var'}
8097 $as_echo "$as_val"'`
8098 if test "x$as_val" = x""yes; then
ad6254c5 8099 cat >>confdefs.h <<_ACEOF
ec6a6fbe 8100#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
8101_ACEOF
8102
8103else
ec6a6fbe
AK
8104 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
8105$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
8106 { (exit 1); exit 1; }; }
8107fi
8108done
795ca3e5 8109
a0f9708e
AK
8110
8111for ac_func in siginterrupt
8112do
8113as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8114{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8115$as_echo_n "checking for $ac_func... " >&6; }
8116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8117 $as_echo_n "(cached) " >&6
8118else
8119 cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127#define $ac_func innocuous_$ac_func
8128
8129/* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char $ac_func (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8133
8134#ifdef __STDC__
8135# include <limits.h>
8136#else
8137# include <assert.h>
8138#endif
8139
8140#undef $ac_func
8141
8142/* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
8145#ifdef __cplusplus
8146extern "C"
8147#endif
8148char $ac_func ();
8149/* The GNU C library defines this for functions which it implements
8150 to always fail with ENOSYS. Some functions are actually named
8151 something starting with __ and the normal name is an alias. */
8152#if defined __stub_$ac_func || defined __stub___$ac_func
8153choke me
8154#endif
8155
8156int
8157main ()
8158{
8159return $ac_func ();
8160 ;
8161 return 0;
8162}
8163_ACEOF
8164rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (ac_try="$ac_link"
8166case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8171$as_echo "$ac_try_echo") >&5
8172 (eval "$ac_link") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest$ac_exeext && {
8182 test "$cross_compiling" = yes ||
8183 $as_test_x conftest$ac_exeext
8184 }; then
8185 eval "$as_ac_var=yes"
8186else
8187 $as_echo "$as_me: failed program was:" >&5
8188sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 eval "$as_ac_var=no"
8191fi
8192
8193rm -rf conftest.dSYM
8194rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8195 conftest$ac_exeext conftest.$ac_ext
8196fi
8197ac_res=`eval 'as_val=${'$as_ac_var'}
8198 $as_echo "$as_val"'`
8199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8200$as_echo "$ac_res" >&6; }
8201as_val=`eval 'as_val=${'$as_ac_var'}
8202 $as_echo "$as_val"'`
8203 if test "x$as_val" = x""yes; then
8204 cat >>confdefs.h <<_ACEOF
8205#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8206_ACEOF
8207
8208fi
8209done
8210
ad6254c5
AK
8211# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8212# for constant arguments. Useless!
ec6a6fbe
AK
8213{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8214$as_echo_n "checking for working alloca.h... " >&6; }
ad6254c5 8215if test "${ac_cv_working_alloca_h+set}" = set; then
ec6a6fbe 8216 $as_echo_n "(cached) " >&6
ad6254c5
AK
8217else
8218 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8219/* confdefs.h. */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h. */
8224#include <alloca.h>
8225int
8226main ()
8227{
8228char *p = (char *) alloca (2 * sizeof (int));
7a197a62 8229 if (p) return 0;
ad6254c5
AK
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8235if { (ac_try="$ac_link"
8236case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239esac
ec6a6fbe
AK
8240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8241$as_echo "$ac_try_echo") >&5
7a197a62 8242 (eval "$ac_link") 2>conftest.er1
ad6254c5 8243 ac_status=$?
8a2fc586
AK
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
ec6a6fbe 8247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8248 (exit $ac_status); } && {
8249 test -z "$ac_c_werror_flag" ||
8250 test ! -s conftest.err
ec6a6fbe
AK
8251 } && test -s conftest$ac_exeext && {
8252 test "$cross_compiling" = yes ||
8253 $as_test_x conftest$ac_exeext
8254 }; then
ad6254c5
AK
8255 ac_cv_working_alloca_h=yes
8256else
ec6a6fbe 8257 $as_echo "$as_me: failed program was:" >&5
ad6254c5 8258sed 's/^/| /' conftest.$ac_ext >&5
795ca3e5 8259
7a197a62 8260 ac_cv_working_alloca_h=no
ad6254c5 8261fi
7a197a62 8262
ec6a6fbe 8263rm -rf conftest.dSYM
25fbec5b 8264rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8265 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8266fi
ec6a6fbe
AK
8267{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8268$as_echo "$ac_cv_working_alloca_h" >&6; }
ad6254c5
AK
8269if test $ac_cv_working_alloca_h = yes; then
8270
8271cat >>confdefs.h <<\_ACEOF
8272#define HAVE_ALLOCA_H 1
8273_ACEOF
8274
8275fi
8276
ec6a6fbe
AK
8277{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
8278$as_echo_n "checking for alloca... " >&6; }
ad6254c5 8279if test "${ac_cv_func_alloca_works+set}" = set; then
ec6a6fbe 8280 $as_echo_n "(cached) " >&6
ad6254c5
AK
8281else
8282 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8283/* confdefs.h. */
8284_ACEOF
8285cat confdefs.h >>conftest.$ac_ext
8286cat >>conftest.$ac_ext <<_ACEOF
8287/* end confdefs.h. */
8288#ifdef __GNUC__
8289# define alloca __builtin_alloca
8290#else
8291# ifdef _MSC_VER
8292# include <malloc.h>
8293# define alloca _alloca
8294# else
25fbec5b 8295# ifdef HAVE_ALLOCA_H
ad6254c5
AK
8296# include <alloca.h>
8297# else
8298# ifdef _AIX
8299 #pragma alloca
8300# else
8301# ifndef alloca /* predefined by HP cc +Olibcalls */
8302char *alloca ();
8303# endif
8304# endif
8305# endif
8306# endif
8307#endif
8308
8309int
8310main ()
8311{
8312char *p = (char *) alloca (1);
7a197a62 8313 if (p) return 0;
ad6254c5
AK
8314 ;
8315 return 0;
8316}
8317_ACEOF
8318rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8319if { (ac_try="$ac_link"
8320case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323esac
ec6a6fbe
AK
8324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325$as_echo "$ac_try_echo") >&5
7a197a62 8326 (eval "$ac_link") 2>conftest.er1
ad6254c5 8327 ac_status=$?
8a2fc586
AK
8328 grep -v '^ *+' conftest.er1 >conftest.err
8329 rm -f conftest.er1
8330 cat conftest.err >&5
ec6a6fbe 8331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
ec6a6fbe
AK
8335 } && test -s conftest$ac_exeext && {
8336 test "$cross_compiling" = yes ||
8337 $as_test_x conftest$ac_exeext
8338 }; then
ad6254c5
AK
8339 ac_cv_func_alloca_works=yes
8340else
ec6a6fbe 8341 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
7a197a62 8344 ac_cv_func_alloca_works=no
ad6254c5 8345fi
7a197a62 8346
ec6a6fbe 8347rm -rf conftest.dSYM
25fbec5b 8348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8349 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8350fi
ec6a6fbe
AK
8351{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8352$as_echo "$ac_cv_func_alloca_works" >&6; }
ad6254c5
AK
8353
8354if test $ac_cv_func_alloca_works = yes; then
8355
8356cat >>confdefs.h <<\_ACEOF
8357#define HAVE_ALLOCA 1
8358_ACEOF
8359
8360else
8361 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8362# that cause trouble. Some versions do not even contain alloca or
8363# contain a buggy version. If you still want to use their alloca,
8364# use ar to extract alloca.o from them instead of compiling alloca.c.
8365
7a197a62 8366ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
ad6254c5
AK
8367
8368cat >>confdefs.h <<\_ACEOF
8369#define C_ALLOCA 1
8370_ACEOF
8371
8372
ec6a6fbe
AK
8373{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8374$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
ad6254c5 8375if test "${ac_cv_os_cray+set}" = set; then
ec6a6fbe 8376 $as_echo_n "(cached) " >&6
ad6254c5
AK
8377else
8378 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8379/* confdefs.h. */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h. */
7a197a62 8384#if defined CRAY && ! defined CRAY2
ad6254c5
AK
8385webecray
8386#else
8387wenotbecray
8388#endif
8389
8390_ACEOF
795ca3e5 8391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ad6254c5
AK
8392 $EGREP "webecray" >/dev/null 2>&1; then
8393 ac_cv_os_cray=yes
8394else
8395 ac_cv_os_cray=no
795ca3e5
AK
8396fi
8397rm -f conftest*
8398
795ca3e5 8399fi
ec6a6fbe
AK
8400{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8401$as_echo "$ac_cv_os_cray" >&6; }
ad6254c5
AK
8402if test $ac_cv_os_cray = yes; then
8403 for ac_func in _getb67 GETB67 getb67; do
ec6a6fbe
AK
8404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8405{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8406$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 8407if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8408 $as_echo_n "(cached) " >&6
ad6254c5
AK
8409else
8410 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8411/* confdefs.h. */
8412_ACEOF
8413cat confdefs.h >>conftest.$ac_ext
8414cat >>conftest.$ac_ext <<_ACEOF
8415/* end confdefs.h. */
8a2fc586
AK
8416/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8418#define $ac_func innocuous_$ac_func
8419
ad6254c5
AK
8420/* System header to define __stub macros and hopefully few prototypes,
8421 which can conflict with char $ac_func (); below.
8422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8423 <limits.h> exists even on freestanding compilers. */
8a2fc586 8424
ad6254c5
AK
8425#ifdef __STDC__
8426# include <limits.h>
8427#else
8428# include <assert.h>
8429#endif
8a2fc586
AK
8430
8431#undef $ac_func
8432
7a197a62
AK
8433/* Override any GCC internal prototype to avoid an error.
8434 Use char because int might match the return type of a GCC
8435 builtin and then its argument prototype would still apply. */
ad6254c5
AK
8436#ifdef __cplusplus
8437extern "C"
ad6254c5 8438#endif
ad6254c5
AK
8439char $ac_func ();
8440/* The GNU C library defines this for functions which it implements
8441 to always fail with ENOSYS. Some functions are actually named
8442 something starting with __ and the normal name is an alias. */
7a197a62 8443#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 8444choke me
ad6254c5
AK
8445#endif
8446
8447int
8448main ()
8449{
7a197a62 8450return $ac_func ();
ad6254c5
AK
8451 ;
8452 return 0;
8453}
8454_ACEOF
8455rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
8456if { (ac_try="$ac_link"
8457case "(($ac_try" in
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8460esac
ec6a6fbe
AK
8461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8462$as_echo "$ac_try_echo") >&5
7a197a62 8463 (eval "$ac_link") 2>conftest.er1
ad6254c5 8464 ac_status=$?
8a2fc586
AK
8465 grep -v '^ *+' conftest.er1 >conftest.err
8466 rm -f conftest.er1
8467 cat conftest.err >&5
ec6a6fbe 8468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8469 (exit $ac_status); } && {
8470 test -z "$ac_c_werror_flag" ||
8471 test ! -s conftest.err
ec6a6fbe
AK
8472 } && test -s conftest$ac_exeext && {
8473 test "$cross_compiling" = yes ||
8474 $as_test_x conftest$ac_exeext
8475 }; then
ad6254c5
AK
8476 eval "$as_ac_var=yes"
8477else
ec6a6fbe 8478 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8479sed 's/^/| /' conftest.$ac_ext >&5
8480
7a197a62 8481 eval "$as_ac_var=no"
ad6254c5 8482fi
7a197a62 8483
ec6a6fbe 8484rm -rf conftest.dSYM
25fbec5b 8485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 8486 conftest$ac_exeext conftest.$ac_ext
ad6254c5 8487fi
ec6a6fbe
AK
8488ac_res=`eval 'as_val=${'$as_ac_var'}
8489 $as_echo "$as_val"'`
8490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8491$as_echo "$ac_res" >&6; }
8492as_val=`eval 'as_val=${'$as_ac_var'}
8493 $as_echo "$as_val"'`
8494 if test "x$as_val" = x""yes; then
80992638 8495
ad6254c5
AK
8496cat >>confdefs.h <<_ACEOF
8497#define CRAY_STACKSEG_END $ac_func
8498_ACEOF
8499
8500 break
8501fi
8502
8503 done
8504fi
8505
ec6a6fbe
AK
8506{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8507$as_echo_n "checking stack direction for C alloca... " >&6; }
ad6254c5 8508if test "${ac_cv_c_stack_direction+set}" = set; then
ec6a6fbe 8509 $as_echo_n "(cached) " >&6
ad6254c5
AK
8510else
8511 if test "$cross_compiling" = yes; then
8512 ac_cv_c_stack_direction=0
8513else
8514 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8515/* confdefs.h. */
8516_ACEOF
8517cat confdefs.h >>conftest.$ac_ext
8518cat >>conftest.$ac_ext <<_ACEOF
8519/* end confdefs.h. */
7a197a62 8520$ac_includes_default
ad6254c5
AK
8521int
8522find_stack_direction ()
8523{
8524 static char *addr = 0;
8525 auto char dummy;
8526 if (addr == 0)
8527 {
8528 addr = &dummy;
8529 return find_stack_direction ();
8530 }
8531 else
8532 return (&dummy > addr) ? 1 : -1;
8533}
8534
8535int
8536main ()
8537{
7a197a62 8538 return find_stack_direction () < 0;
ad6254c5
AK
8539}
8540_ACEOF
8541rm -f conftest$ac_exeext
7a197a62
AK
8542if { (ac_try="$ac_link"
8543case "(($ac_try" in
8544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545 *) ac_try_echo=$ac_try;;
8546esac
ec6a6fbe
AK
8547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8548$as_echo "$ac_try_echo") >&5
7a197a62 8549 (eval "$ac_link") 2>&5
ad6254c5 8550 ac_status=$?
ec6a6fbe 8551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8553 { (case "(($ac_try" in
8554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555 *) ac_try_echo=$ac_try;;
8556esac
ec6a6fbe
AK
8557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558$as_echo "$ac_try_echo") >&5
7a197a62 8559 (eval "$ac_try") 2>&5
ad6254c5 8560 ac_status=$?
ec6a6fbe 8561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
8562 (exit $ac_status); }; }; then
8563 ac_cv_c_stack_direction=1
8564else
ec6a6fbe
AK
8565 $as_echo "$as_me: program exited with status $ac_status" >&5
8566$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8567sed 's/^/| /' conftest.$ac_ext >&5
8568
8569( exit $ac_status )
8570ac_cv_c_stack_direction=-1
8571fi
ec6a6fbe 8572rm -rf conftest.dSYM
7a197a62 8573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8574fi
7a197a62
AK
8575
8576
ad6254c5 8577fi
ec6a6fbe
AK
8578{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8579$as_echo "$ac_cv_c_stack_direction" >&6; }
ad6254c5 8580
d911ec67
AK
8581cat >>confdefs.h <<_ACEOF
8582#define STACK_DIRECTION $ac_cv_c_stack_direction
8583_ACEOF
8584
8585
8586fi
8587
8588{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8589$as_echo_n "checking whether closedir returns void... " >&6; }
8590if test "${ac_cv_func_closedir_void+set}" = set; then
8591 $as_echo_n "(cached) " >&6
8592else
8593 if test "$cross_compiling" = yes; then
8594 ac_cv_func_closedir_void=yes
8595else
8596 cat >conftest.$ac_ext <<_ACEOF
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
8602$ac_includes_default
8603#include <$ac_header_dirent>
8604#ifndef __cplusplus
8605int closedir ();
8606#endif
8607
8608int
8609main ()
8610{
8611return closedir (opendir (".")) != 0;
8612 ;
8613 return 0;
8614}
8615_ACEOF
8616rm -f conftest$ac_exeext
8617if { (ac_try="$ac_link"
8618case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621esac
8622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8623$as_echo "$ac_try_echo") >&5
8624 (eval "$ac_link") 2>&5
8625 ac_status=$?
8626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631esac
8632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8633$as_echo "$ac_try_echo") >&5
8634 (eval "$ac_try") 2>&5
8635 ac_status=$?
8636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 ac_cv_func_closedir_void=no
8639else
8640 $as_echo "$as_me: program exited with status $ac_status" >&5
8641$as_echo "$as_me: failed program was:" >&5
8642sed 's/^/| /' conftest.$ac_ext >&5
8643
8644( exit $ac_status )
8645ac_cv_func_closedir_void=yes
8646fi
8647rm -rf conftest.dSYM
8648rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8649fi
8650
8651
8652fi
8653{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8654$as_echo "$ac_cv_func_closedir_void" >&6; }
8655if test $ac_cv_func_closedir_void = yes; then
8656
8657cat >>confdefs.h <<\_ACEOF
8658#define CLOSEDIR_VOID 1
8659_ACEOF
8660
8661fi
8662
8663
8664for ac_header in unistd.h
8665do
8666as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8669$as_echo_n "checking for $ac_header... " >&6; }
8670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8671 $as_echo_n "(cached) " >&6
8672fi
8673ac_res=`eval 'as_val=${'$as_ac_Header'}
8674 $as_echo "$as_val"'`
8675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8676$as_echo "$ac_res" >&6; }
8677else
8678 # Is the header compilable?
8679{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8680$as_echo_n "checking $ac_header usability... " >&6; }
8681cat >conftest.$ac_ext <<_ACEOF
8682/* confdefs.h. */
8683_ACEOF
8684cat confdefs.h >>conftest.$ac_ext
8685cat >>conftest.$ac_ext <<_ACEOF
8686/* end confdefs.h. */
8687$ac_includes_default
8688#include <$ac_header>
8689_ACEOF
8690rm -f conftest.$ac_objext
8691if { (ac_try="$ac_compile"
8692case "(($ac_try" in
8693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694 *) ac_try_echo=$ac_try;;
8695esac
8696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8697$as_echo "$ac_try_echo") >&5
8698 (eval "$ac_compile") 2>conftest.er1
8699 ac_status=$?
8700 grep -v '^ *+' conftest.er1 >conftest.err
8701 rm -f conftest.er1
8702 cat conftest.err >&5
8703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest.$ac_objext; then
8708 ac_header_compiler=yes
8709else
8710 $as_echo "$as_me: failed program was:" >&5
8711sed 's/^/| /' conftest.$ac_ext >&5
8712
8713 ac_header_compiler=no
8714fi
8715
8716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8718$as_echo "$ac_header_compiler" >&6; }
8719
8720# Is the header present?
8721{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8722$as_echo_n "checking $ac_header presence... " >&6; }
8723cat >conftest.$ac_ext <<_ACEOF
8724/* confdefs.h. */
8725_ACEOF
8726cat confdefs.h >>conftest.$ac_ext
8727cat >>conftest.$ac_ext <<_ACEOF
8728/* end confdefs.h. */
8729#include <$ac_header>
8730_ACEOF
8731if { (ac_try="$ac_cpp conftest.$ac_ext"
8732case "(($ac_try" in
8733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734 *) ac_try_echo=$ac_try;;
8735esac
8736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8737$as_echo "$ac_try_echo") >&5
8738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } >/dev/null && {
8745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 }; then
8748 ac_header_preproc=yes
8749else
8750 $as_echo "$as_me: failed program was:" >&5
8751sed 's/^/| /' conftest.$ac_ext >&5
8752
8753 ac_header_preproc=no
8754fi
8755
8756rm -f conftest.err conftest.$ac_ext
8757{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8758$as_echo "$ac_header_preproc" >&6; }
8759
8760# So? What about this header?
8761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8762 yes:no: )
8763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8764$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8766$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8767 ac_header_preproc=yes
8768 ;;
8769 no:yes:* )
8770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8771$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8773$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8775$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8777$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8779$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8781$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8782
8783 ;;
8784esac
8785{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8786$as_echo_n "checking for $ac_header... " >&6; }
8787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8788 $as_echo_n "(cached) " >&6
8789else
8790 eval "$as_ac_Header=\$ac_header_preproc"
8791fi
8792ac_res=`eval 'as_val=${'$as_ac_Header'}
8793 $as_echo "$as_val"'`
8794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8795$as_echo "$ac_res" >&6; }
8796
8797fi
8798as_val=`eval 'as_val=${'$as_ac_Header'}
8799 $as_echo "$as_val"'`
8800 if test "x$as_val" = x""yes; then
8801 cat >>confdefs.h <<_ACEOF
8802#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
8803_ACEOF
8804
ad6254c5
AK
8805fi
8806
d911ec67
AK
8807done
8808
8809{ $as_echo "$as_me:$LINENO: checking for working chown" >&5
8810$as_echo_n "checking for working chown... " >&6; }
8811if test "${ac_cv_func_chown_works+set}" = set; then
ec6a6fbe 8812 $as_echo_n "(cached) " >&6
ad6254c5
AK
8813else
8814 if test "$cross_compiling" = yes; then
d911ec67 8815 ac_cv_func_chown_works=no
ad6254c5
AK
8816else
8817 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8818/* confdefs.h. */
8819_ACEOF
8820cat confdefs.h >>conftest.$ac_ext
8821cat >>conftest.$ac_ext <<_ACEOF
8822/* end confdefs.h. */
8823$ac_includes_default
d911ec67 8824#include <fcntl.h>
ad6254c5
AK
8825
8826int
8827main ()
8828{
d911ec67
AK
8829 char *f = "conftest.chown";
8830 struct stat before, after;
8831
8832 if (creat (f, 0600) < 0)
8833 return 1;
8834 if (stat (f, &before) < 0)
8835 return 1;
8836 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
8837 return 1;
8838 if (stat (f, &after) < 0)
8839 return 1;
8840 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
8841
ad6254c5
AK
8842 ;
8843 return 0;
8844}
8845_ACEOF
8846rm -f conftest$ac_exeext
7a197a62
AK
8847if { (ac_try="$ac_link"
8848case "(($ac_try" in
8849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850 *) ac_try_echo=$ac_try;;
8851esac
ec6a6fbe
AK
8852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853$as_echo "$ac_try_echo") >&5
7a197a62 8854 (eval "$ac_link") 2>&5
ad6254c5 8855 ac_status=$?
ec6a6fbe 8856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
8858 { (case "(($ac_try" in
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8861esac
ec6a6fbe
AK
8862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863$as_echo "$ac_try_echo") >&5
7a197a62 8864 (eval "$ac_try") 2>&5
ad6254c5 8865 ac_status=$?
ec6a6fbe 8866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 8867 (exit $ac_status); }; }; then
d911ec67 8868 ac_cv_func_chown_works=yes
ad6254c5 8869else
ec6a6fbe
AK
8870 $as_echo "$as_me: program exited with status $ac_status" >&5
8871$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8872sed 's/^/| /' conftest.$ac_ext >&5
8873
8874( exit $ac_status )
d911ec67 8875ac_cv_func_chown_works=no
ad6254c5 8876fi
ec6a6fbe 8877rm -rf conftest.dSYM
7a197a62 8878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 8879fi
7a197a62
AK
8880
8881
d911ec67
AK
8882rm -f conftest.chown
8883
ad6254c5 8884fi
d911ec67
AK
8885{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
8886$as_echo "$ac_cv_func_chown_works" >&6; }
8887if test $ac_cv_func_chown_works = yes; then
ad6254c5
AK
8888
8889cat >>confdefs.h <<\_ACEOF
d911ec67 8890#define HAVE_CHOWN 1
ad6254c5
AK
8891_ACEOF
8892
8893fi
8894
8895
7a197a62 8896for ac_header in vfork.h
ad6254c5 8897do
ec6a6fbe 8898as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 8899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
8900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8901$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 8902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 8903 $as_echo_n "(cached) " >&6
ad6254c5 8904fi
ec6a6fbe
AK
8905ac_res=`eval 'as_val=${'$as_ac_Header'}
8906 $as_echo "$as_val"'`
8907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8908$as_echo "$ac_res" >&6; }
ad6254c5
AK
8909else
8910 # Is the header compilable?
ec6a6fbe
AK
8911{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8912$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 8913cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919$ac_includes_default
8920#include <$ac_header>
8921_ACEOF
8922rm -f conftest.$ac_objext
7a197a62
AK
8923if { (ac_try="$ac_compile"
8924case "(($ac_try" in
8925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926 *) ac_try_echo=$ac_try;;
8927esac
ec6a6fbe
AK
8928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8929$as_echo "$ac_try_echo") >&5
7a197a62 8930 (eval "$ac_compile") 2>conftest.er1
ad6254c5 8931 ac_status=$?
8a2fc586
AK
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
ec6a6fbe 8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8936 (exit $ac_status); } && {
8937 test -z "$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
ad6254c5
AK
8940 ac_header_compiler=yes
8941else
ec6a6fbe 8942 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
7a197a62 8945 ac_header_compiler=no
ad6254c5 8946fi
7a197a62
AK
8947
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
8949{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8950$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
8951
8952# Is the header present?
ec6a6fbe
AK
8953{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8954$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 8955cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
8956/* confdefs.h. */
8957_ACEOF
8958cat confdefs.h >>conftest.$ac_ext
8959cat >>conftest.$ac_ext <<_ACEOF
8960/* end confdefs.h. */
8961#include <$ac_header>
8962_ACEOF
7a197a62
AK
8963if { (ac_try="$ac_cpp conftest.$ac_ext"
8964case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967esac
ec6a6fbe
AK
8968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969$as_echo "$ac_try_echo") >&5
7a197a62 8970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
ec6a6fbe 8975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
8976 (exit $ac_status); } >/dev/null && {
8977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 }; then
ad6254c5
AK
8980 ac_header_preproc=yes
8981else
ec6a6fbe 8982 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985 ac_header_preproc=no
8986fi
7a197a62 8987
ad6254c5 8988rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
8989{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8990$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
8991
8992# So? What about this header?
8a2fc586
AK
8993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8994 yes:no: )
ec6a6fbe
AK
8995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8996$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8998$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 8999 ac_header_preproc=yes
ad6254c5 9000 ;;
8a2fc586 9001 no:yes:* )
ec6a6fbe
AK
9002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9003$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9005$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9007$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9009$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9011$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9013$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9014
ad6254c5
AK
9015 ;;
9016esac
ec6a6fbe
AK
9017{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9018$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9020 $as_echo_n "(cached) " >&6
ad6254c5 9021else
8a2fc586 9022 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9023fi
ec6a6fbe
AK
9024ac_res=`eval 'as_val=${'$as_ac_Header'}
9025 $as_echo "$as_val"'`
9026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9027$as_echo "$ac_res" >&6; }
ad6254c5 9028
795ca3e5 9029fi
ec6a6fbe
AK
9030as_val=`eval 'as_val=${'$as_ac_Header'}
9031 $as_echo "$as_val"'`
9032 if test "x$as_val" = x""yes; then
ad6254c5 9033 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9035_ACEOF
9036
9037fi
9038
9039done
795ca3e5 9040
ad6254c5
AK
9041
9042
9043for ac_func in fork vfork
9044do
ec6a6fbe
AK
9045as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9047$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 9048if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9049 $as_echo_n "(cached) " >&6
795ca3e5 9050else
ad6254c5 9051 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9052/* confdefs.h. */
9053_ACEOF
9054cat confdefs.h >>conftest.$ac_ext
9055cat >>conftest.$ac_ext <<_ACEOF
9056/* end confdefs.h. */
8a2fc586
AK
9057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9059#define $ac_func innocuous_$ac_func
9060
ad6254c5
AK
9061/* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func (); below.
9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064 <limits.h> exists even on freestanding compilers. */
8a2fc586 9065
ad6254c5
AK
9066#ifdef __STDC__
9067# include <limits.h>
9068#else
9069# include <assert.h>
795ca3e5 9070#endif
8a2fc586
AK
9071
9072#undef $ac_func
9073
7a197a62
AK
9074/* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
795ca3e5 9077#ifdef __cplusplus
ad6254c5 9078extern "C"
ad6254c5 9079#endif
ad6254c5
AK
9080char $ac_func ();
9081/* The GNU C library defines this for functions which it implements
9082 to always fail with ENOSYS. Some functions are actually named
9083 something starting with __ and the normal name is an alias. */
7a197a62 9084#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 9085choke me
795ca3e5
AK
9086#endif
9087
ad6254c5
AK
9088int
9089main ()
9090{
7a197a62 9091return $ac_func ();
ad6254c5
AK
9092 ;
9093 return 0;
9094}
9095_ACEOF
9096rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
9097if { (ac_try="$ac_link"
9098case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9101esac
ec6a6fbe
AK
9102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9103$as_echo "$ac_try_echo") >&5
7a197a62 9104 (eval "$ac_link") 2>conftest.er1
ad6254c5 9105 ac_status=$?
8a2fc586
AK
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
ec6a6fbe 9109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9110 (exit $ac_status); } && {
9111 test -z "$ac_c_werror_flag" ||
9112 test ! -s conftest.err
ec6a6fbe
AK
9113 } && test -s conftest$ac_exeext && {
9114 test "$cross_compiling" = yes ||
9115 $as_test_x conftest$ac_exeext
9116 }; then
ad6254c5 9117 eval "$as_ac_var=yes"
795ca3e5 9118else
ec6a6fbe 9119 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
7a197a62 9122 eval "$as_ac_var=no"
795ca3e5 9123fi
7a197a62 9124
ec6a6fbe 9125rm -rf conftest.dSYM
25fbec5b 9126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 9127 conftest$ac_exeext conftest.$ac_ext
ad6254c5 9128fi
ec6a6fbe
AK
9129ac_res=`eval 'as_val=${'$as_ac_var'}
9130 $as_echo "$as_val"'`
9131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9132$as_echo "$ac_res" >&6; }
9133as_val=`eval 'as_val=${'$as_ac_var'}
9134 $as_echo "$as_val"'`
9135 if test "x$as_val" = x""yes; then
ad6254c5 9136 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
9138_ACEOF
9139
9140fi
9141done
9142
9143if test "x$ac_cv_func_fork" = xyes; then
ec6a6fbe
AK
9144 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
9145$as_echo_n "checking for working fork... " >&6; }
ad6254c5 9146if test "${ac_cv_func_fork_works+set}" = set; then
ec6a6fbe 9147 $as_echo_n "(cached) " >&6
ad6254c5
AK
9148else
9149 if test "$cross_compiling" = yes; then
9150 ac_cv_func_fork_works=cross
9151else
9152 cat >conftest.$ac_ext <<_ACEOF
7a197a62
AK
9153/* confdefs.h. */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h. */
9158$ac_includes_default
9159int
9160main ()
9161{
9162
9163 /* By Ruediger Kuhlmann. */
9164 return fork () < 0;
9165
9166 ;
9167 return 0;
9168}
ad6254c5
AK
9169_ACEOF
9170rm -f conftest$ac_exeext
7a197a62
AK
9171if { (ac_try="$ac_link"
9172case "(($ac_try" in
9173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174 *) ac_try_echo=$ac_try;;
9175esac
ec6a6fbe
AK
9176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177$as_echo "$ac_try_echo") >&5
7a197a62 9178 (eval "$ac_link") 2>&5
ad6254c5 9179 ac_status=$?
ec6a6fbe 9180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9182 { (case "(($ac_try" in
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9185esac
ec6a6fbe
AK
9186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9187$as_echo "$ac_try_echo") >&5
7a197a62 9188 (eval "$ac_try") 2>&5
ad6254c5 9189 ac_status=$?
ec6a6fbe 9190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9191 (exit $ac_status); }; }; then
9192 ac_cv_func_fork_works=yes
9193else
ec6a6fbe
AK
9194 $as_echo "$as_me: program exited with status $ac_status" >&5
9195$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9196sed 's/^/| /' conftest.$ac_ext >&5
9197
9198( exit $ac_status )
9199ac_cv_func_fork_works=no
9200fi
ec6a6fbe 9201rm -rf conftest.dSYM
7a197a62 9202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9203fi
7a197a62
AK
9204
9205
ad6254c5 9206fi
ec6a6fbe
AK
9207{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
9208$as_echo "$ac_cv_func_fork_works" >&6; }
ad6254c5
AK
9209
9210else
9211 ac_cv_func_fork_works=$ac_cv_func_fork
9212fi
9213if test "x$ac_cv_func_fork_works" = xcross; then
9214 case $host in
9215 *-*-amigaos* | *-*-msdosdjgpp*)
9216 # Override, as these systems have only a dummy fork() stub
9217 ac_cv_func_fork_works=no
9218 ;;
9219 *)
9220 ac_cv_func_fork_works=yes
9221 ;;
9222 esac
ec6a6fbe
AK
9223 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9224$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9225fi
9226ac_cv_func_vfork_works=$ac_cv_func_vfork
9227if test "x$ac_cv_func_vfork" = xyes; then
ec6a6fbe
AK
9228 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
9229$as_echo_n "checking for working vfork... " >&6; }
ad6254c5 9230if test "${ac_cv_func_vfork_works+set}" = set; then
ec6a6fbe 9231 $as_echo_n "(cached) " >&6
ad6254c5
AK
9232else
9233 if test "$cross_compiling" = yes; then
9234 ac_cv_func_vfork_works=cross
9235else
9236 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9237/* confdefs.h. */
9238_ACEOF
9239cat confdefs.h >>conftest.$ac_ext
9240cat >>conftest.$ac_ext <<_ACEOF
9241/* end confdefs.h. */
9242/* Thanks to Paul Eggert for this test. */
7a197a62 9243$ac_includes_default
ad6254c5 9244#include <sys/wait.h>
25fbec5b 9245#ifdef HAVE_VFORK_H
ad6254c5
AK
9246# include <vfork.h>
9247#endif
9248/* On some sparc systems, changes by the child to local and incoming
9249 argument registers are propagated back to the parent. The compiler
9250 is told about this with #include <vfork.h>, but some compilers
9251 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9252 static variable whose address is put into a register that is
9253 clobbered by the vfork. */
9254static void
9255#ifdef __cplusplus
9256sparc_address_test (int arg)
9257# else
9258sparc_address_test (arg) int arg;
9259#endif
9260{
9261 static pid_t child;
9262 if (!child) {
9263 child = vfork ();
9264 if (child < 0) {
9265 perror ("vfork");
9266 _exit(2);
9267 }
9268 if (!child) {
9269 arg = getpid();
9270 write(-1, "", 0);
9271 _exit (arg);
9272 }
9273 }
9274}
9275
9276int
9277main ()
9278{
9279 pid_t parent = getpid ();
9280 pid_t child;
9281
9282 sparc_address_test (0);
9283
9284 child = vfork ();
9285
9286 if (child == 0) {
9287 /* Here is another test for sparc vfork register problems. This
9288 test uses lots of local variables, at least as many local
9289 variables as main has allocated so far including compiler
9290 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9291 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9292 reuse the register of parent for one of the local variables,
9293 since it will think that parent can't possibly be used any more
9294 in this routine. Assigning to the local variable will thus
9295 munge parent in the parent process. */
9296 pid_t
9297 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9298 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9299 /* Convince the compiler that p..p7 are live; otherwise, it might
9300 use the same hardware register for all 8 local variables. */
9301 if (p != p1 || p != p2 || p != p3 || p != p4
9302 || p != p5 || p != p6 || p != p7)
9303 _exit(1);
9304
9305 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9306 from child file descriptors. If the child closes a descriptor
9307 before it execs or exits, this munges the parent's descriptor
9308 as well. Test for this by closing stdout in the child. */
9309 _exit(close(fileno(stdout)) != 0);
9310 } else {
9311 int status;
9312 struct stat st;
9313
9314 while (wait(&status) != child)
9315 ;
7a197a62 9316 return (
ad6254c5
AK
9317 /* Was there some problem with vforking? */
9318 child < 0
9319
9320 /* Did the child fail? (This shouldn't happen.) */
9321 || status
9322
9323 /* Did the vfork/compiler bug occur? */
9324 || parent != getpid()
9325
9326 /* Did the file descriptor bug occur? */
9327 || fstat(fileno(stdout), &st) != 0
9328 );
9329 }
9330}
9331_ACEOF
9332rm -f conftest$ac_exeext
7a197a62
AK
9333if { (ac_try="$ac_link"
9334case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337esac
ec6a6fbe
AK
9338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9339$as_echo "$ac_try_echo") >&5
7a197a62 9340 (eval "$ac_link") 2>&5
ad6254c5 9341 ac_status=$?
ec6a6fbe 9342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9344 { (case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347esac
ec6a6fbe
AK
9348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9349$as_echo "$ac_try_echo") >&5
7a197a62 9350 (eval "$ac_try") 2>&5
ad6254c5 9351 ac_status=$?
ec6a6fbe 9352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9353 (exit $ac_status); }; }; then
9354 ac_cv_func_vfork_works=yes
9355else
ec6a6fbe
AK
9356 $as_echo "$as_me: program exited with status $ac_status" >&5
9357$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9358sed 's/^/| /' conftest.$ac_ext >&5
9359
9360( exit $ac_status )
9361ac_cv_func_vfork_works=no
9362fi
ec6a6fbe 9363rm -rf conftest.dSYM
7a197a62 9364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9365fi
7a197a62
AK
9366
9367
ad6254c5 9368fi
ec6a6fbe
AK
9369{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
9370$as_echo "$ac_cv_func_vfork_works" >&6; }
ad6254c5
AK
9371
9372fi;
9373if test "x$ac_cv_func_fork_works" = xcross; then
8a2fc586 9374 ac_cv_func_vfork_works=$ac_cv_func_vfork
ec6a6fbe
AK
9375 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9376$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
ad6254c5
AK
9377fi
9378
9379if test "x$ac_cv_func_vfork_works" = xyes; then
9380
9381cat >>confdefs.h <<\_ACEOF
9382#define HAVE_WORKING_VFORK 1
9383_ACEOF
9384
9385else
9386
9387cat >>confdefs.h <<\_ACEOF
9388#define vfork fork
9389_ACEOF
9390
9391fi
9392if test "x$ac_cv_func_fork_works" = xyes; then
9393
9394cat >>confdefs.h <<\_ACEOF
9395#define HAVE_WORKING_FORK 1
9396_ACEOF
9397
9398fi
9399
ec6a6fbe
AK
9400{ $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9401$as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
ad6254c5 9402if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
ec6a6fbe 9403 $as_echo_n "(cached) " >&6
ad6254c5
AK
9404else
9405 rm -f conftest.sym conftest.file
9406echo >conftest.file
9407if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9408 if test "$cross_compiling" = yes; then
9409 ac_cv_func_lstat_dereferences_slashed_symlink=no
9410else
9411 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9412/* confdefs.h. */
9413_ACEOF
9414cat confdefs.h >>conftest.$ac_ext
9415cat >>conftest.$ac_ext <<_ACEOF
9416/* end confdefs.h. */
9417$ac_includes_default
9418int
9419main ()
9420{
9421struct stat sbuf;
9422 /* Linux will dereference the symlink and fail.
8a2fc586
AK
9423 That is better in the sense that it means we will not
9424 have to compile and use the lstat wrapper. */
7a197a62 9425 return lstat ("conftest.sym/", &sbuf) == 0;
ad6254c5
AK
9426 ;
9427 return 0;
9428}
9429_ACEOF
9430rm -f conftest$ac_exeext
7a197a62
AK
9431if { (ac_try="$ac_link"
9432case "(($ac_try" in
9433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434 *) ac_try_echo=$ac_try;;
9435esac
ec6a6fbe
AK
9436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9437$as_echo "$ac_try_echo") >&5
7a197a62 9438 (eval "$ac_link") 2>&5
ad6254c5 9439 ac_status=$?
ec6a6fbe 9440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9442 { (case "(($ac_try" in
9443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9445esac
ec6a6fbe
AK
9446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9447$as_echo "$ac_try_echo") >&5
7a197a62 9448 (eval "$ac_try") 2>&5
ad6254c5 9449 ac_status=$?
ec6a6fbe 9450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9451 (exit $ac_status); }; }; then
9452 ac_cv_func_lstat_dereferences_slashed_symlink=yes
9453else
ec6a6fbe
AK
9454 $as_echo "$as_me: program exited with status $ac_status" >&5
9455$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
9458( exit $ac_status )
9459ac_cv_func_lstat_dereferences_slashed_symlink=no
9460fi
ec6a6fbe 9461rm -rf conftest.dSYM
7a197a62 9462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9463fi
7a197a62
AK
9464
9465
ad6254c5
AK
9466else
9467 # If the `ln -s' command failed, then we probably don't even
9468 # have an lstat function.
9469 ac_cv_func_lstat_dereferences_slashed_symlink=no
9470fi
9471rm -f conftest.sym conftest.file
9472
9473fi
ec6a6fbe
AK
9474{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9475$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
ad6254c5
AK
9476
9477test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9478
9479cat >>confdefs.h <<_ACEOF
9480#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9481_ACEOF
9482
9483
9484if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
7a197a62 9485 case " $LIBOBJS " in
8a2fc586 9486 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9487 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9488 ;;
8a2fc586
AK
9489esac
9490
ad6254c5
AK
9491fi
9492
ec6a6fbe
AK
9493{ $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9494$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
ad6254c5 9495if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
ec6a6fbe 9496 $as_echo_n "(cached) " >&6
ad6254c5
AK
9497else
9498 if test "$cross_compiling" = yes; then
9499 ac_cv_func_lstat_empty_string_bug=yes
9500else
9501 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9502/* confdefs.h. */
9503_ACEOF
9504cat confdefs.h >>conftest.$ac_ext
9505cat >>conftest.$ac_ext <<_ACEOF
9506/* end confdefs.h. */
9507$ac_includes_default
9508int
9509main ()
9510{
9511struct stat sbuf;
7a197a62 9512 return lstat ("", &sbuf) == 0;
ad6254c5
AK
9513 ;
9514 return 0;
9515}
9516_ACEOF
9517rm -f conftest$ac_exeext
7a197a62
AK
9518if { (ac_try="$ac_link"
9519case "(($ac_try" in
9520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521 *) ac_try_echo=$ac_try;;
9522esac
ec6a6fbe
AK
9523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9524$as_echo "$ac_try_echo") >&5
7a197a62 9525 (eval "$ac_link") 2>&5
ad6254c5 9526 ac_status=$?
ec6a6fbe 9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9529 { (case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532esac
ec6a6fbe
AK
9533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9534$as_echo "$ac_try_echo") >&5
7a197a62 9535 (eval "$ac_try") 2>&5
ad6254c5 9536 ac_status=$?
ec6a6fbe 9537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9538 (exit $ac_status); }; }; then
7a197a62 9539 ac_cv_func_lstat_empty_string_bug=no
ad6254c5 9540else
ec6a6fbe
AK
9541 $as_echo "$as_me: program exited with status $ac_status" >&5
9542$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9543sed 's/^/| /' conftest.$ac_ext >&5
9544
9545( exit $ac_status )
7a197a62 9546ac_cv_func_lstat_empty_string_bug=yes
ad6254c5 9547fi
ec6a6fbe 9548rm -rf conftest.dSYM
7a197a62 9549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9550fi
7a197a62
AK
9551
9552
ad6254c5 9553fi
ec6a6fbe
AK
9554{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9555$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
ad6254c5 9556if test $ac_cv_func_lstat_empty_string_bug = yes; then
7a197a62 9557 case " $LIBOBJS " in
8a2fc586 9558 *" lstat.$ac_objext "* ) ;;
7a197a62
AK
9559 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9560 ;;
8a2fc586
AK
9561esac
9562
ad6254c5
AK
9563
9564cat >>confdefs.h <<_ACEOF
9565#define HAVE_LSTAT_EMPTY_STRING_BUG 1
9566_ACEOF
9567
9568fi
9569
9570
9571for ac_header in stdlib.h
9572do
ec6a6fbe 9573as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9576$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9578 $as_echo_n "(cached) " >&6
ad6254c5 9579fi
ec6a6fbe
AK
9580ac_res=`eval 'as_val=${'$as_ac_Header'}
9581 $as_echo "$as_val"'`
9582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9583$as_echo "$ac_res" >&6; }
ad6254c5
AK
9584else
9585 # Is the header compilable?
ec6a6fbe
AK
9586{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9587$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9588cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9589/* confdefs.h. */
9590_ACEOF
9591cat confdefs.h >>conftest.$ac_ext
9592cat >>conftest.$ac_ext <<_ACEOF
9593/* end confdefs.h. */
9594$ac_includes_default
9595#include <$ac_header>
9596_ACEOF
9597rm -f conftest.$ac_objext
7a197a62
AK
9598if { (ac_try="$ac_compile"
9599case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602esac
ec6a6fbe
AK
9603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9604$as_echo "$ac_try_echo") >&5
7a197a62 9605 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9606 ac_status=$?
8a2fc586
AK
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
ec6a6fbe 9610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9615 ac_header_compiler=yes
9616else
ec6a6fbe 9617 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9618sed 's/^/| /' conftest.$ac_ext >&5
9619
7a197a62 9620 ac_header_compiler=no
ad6254c5 9621fi
7a197a62
AK
9622
9623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9624{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9625$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9626
9627# Is the header present?
ec6a6fbe
AK
9628{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9629$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9630cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
9636#include <$ac_header>
9637_ACEOF
7a197a62
AK
9638if { (ac_try="$ac_cpp conftest.$ac_ext"
9639case "(($ac_try" in
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9642esac
ec6a6fbe
AK
9643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9644$as_echo "$ac_try_echo") >&5
7a197a62 9645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9646 ac_status=$?
9647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
ec6a6fbe 9650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9651 (exit $ac_status); } >/dev/null && {
9652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9653 test ! -s conftest.err
9654 }; then
ad6254c5
AK
9655 ac_header_preproc=yes
9656else
ec6a6fbe 9657 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9658sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_header_preproc=no
9661fi
7a197a62 9662
ad6254c5 9663rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9664{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9665$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9666
9667# So? What about this header?
8a2fc586
AK
9668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9669 yes:no: )
ec6a6fbe
AK
9670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9671$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9673$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 9674 ac_header_preproc=yes
ad6254c5 9675 ;;
8a2fc586 9676 no:yes:* )
ec6a6fbe
AK
9677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9678$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9680$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9682$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9684$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9686$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9688$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 9689
ad6254c5
AK
9690 ;;
9691esac
ec6a6fbe
AK
9692{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9693$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9695 $as_echo_n "(cached) " >&6
ad6254c5 9696else
8a2fc586 9697 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 9698fi
ec6a6fbe
AK
9699ac_res=`eval 'as_val=${'$as_ac_Header'}
9700 $as_echo "$as_val"'`
9701 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9702$as_echo "$ac_res" >&6; }
ad6254c5
AK
9703
9704fi
ec6a6fbe
AK
9705as_val=`eval 'as_val=${'$as_ac_Header'}
9706 $as_echo "$as_val"'`
9707 if test "x$as_val" = x""yes; then
ad6254c5 9708 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9709#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
9710_ACEOF
9711
9712fi
9713
9714done
9715
ec6a6fbe
AK
9716{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9717$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
ad6254c5 9718if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
ec6a6fbe 9719 $as_echo_n "(cached) " >&6
ad6254c5
AK
9720else
9721 if test "$cross_compiling" = yes; then
9722 ac_cv_func_malloc_0_nonnull=no
9723else
9724 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9725/* confdefs.h. */
9726_ACEOF
9727cat confdefs.h >>conftest.$ac_ext
9728cat >>conftest.$ac_ext <<_ACEOF
9729/* end confdefs.h. */
25fbec5b 9730#if defined STDC_HEADERS || defined HAVE_STDLIB_H
ad6254c5
AK
9731# include <stdlib.h>
9732#else
9733char *malloc ();
9734#endif
9735
9736int
9737main ()
9738{
7a197a62 9739return ! malloc (0);
ad6254c5
AK
9740 ;
9741 return 0;
9742}
9743_ACEOF
9744rm -f conftest$ac_exeext
7a197a62
AK
9745if { (ac_try="$ac_link"
9746case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749esac
ec6a6fbe
AK
9750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9751$as_echo "$ac_try_echo") >&5
7a197a62 9752 (eval "$ac_link") 2>&5
ad6254c5 9753 ac_status=$?
ec6a6fbe 9754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9756 { (case "(($ac_try" in
9757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758 *) ac_try_echo=$ac_try;;
9759esac
ec6a6fbe
AK
9760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9761$as_echo "$ac_try_echo") >&5
7a197a62 9762 (eval "$ac_try") 2>&5
ad6254c5 9763 ac_status=$?
ec6a6fbe 9764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9765 (exit $ac_status); }; }; then
9766 ac_cv_func_malloc_0_nonnull=yes
9767else
ec6a6fbe
AK
9768 $as_echo "$as_me: program exited with status $ac_status" >&5
9769$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9770sed 's/^/| /' conftest.$ac_ext >&5
9771
9772( exit $ac_status )
9773ac_cv_func_malloc_0_nonnull=no
9774fi
ec6a6fbe 9775rm -rf conftest.dSYM
7a197a62 9776rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9777fi
7a197a62
AK
9778
9779
ad6254c5 9780fi
ec6a6fbe
AK
9781{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9782$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
ad6254c5
AK
9783if test $ac_cv_func_malloc_0_nonnull = yes; then
9784
9785cat >>confdefs.h <<\_ACEOF
9786#define HAVE_MALLOC 1
9787_ACEOF
9788
9789else
9790 cat >>confdefs.h <<\_ACEOF
9791#define HAVE_MALLOC 0
9792_ACEOF
9793
7a197a62 9794 case " $LIBOBJS " in
8a2fc586 9795 *" malloc.$ac_objext "* ) ;;
7a197a62
AK
9796 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9797 ;;
8a2fc586
AK
9798esac
9799
ad6254c5
AK
9800
9801cat >>confdefs.h <<\_ACEOF
9802#define malloc rpl_malloc
9803_ACEOF
9804
9805fi
9806
9807
9808
ec6a6fbe
AK
9809{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
9810$as_echo_n "checking for working memcmp... " >&6; }
ad6254c5 9811if test "${ac_cv_func_memcmp_working+set}" = set; then
ec6a6fbe 9812 $as_echo_n "(cached) " >&6
ad6254c5
AK
9813else
9814 if test "$cross_compiling" = yes; then
9815 ac_cv_func_memcmp_working=no
9816else
9817 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9818/* confdefs.h. */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h. */
8a2fc586 9823$ac_includes_default
ad6254c5
AK
9824int
9825main ()
9826{
9827
9828 /* Some versions of memcmp are not 8-bit clean. */
7a197a62 9829 char c0 = '\100', c1 = '\200', c2 = '\201';
ad6254c5 9830 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7a197a62 9831 return 1;
ad6254c5
AK
9832
9833 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9834 or more and with at least one buffer not starting on a 4-byte boundary.
9835 William Lewis provided this test program. */
9836 {
9837 char foo[21];
9838 char bar[21];
9839 int i;
9840 for (i = 0; i < 4; i++)
9841 {
8a2fc586
AK
9842 char *a = foo + i;
9843 char *b = bar + i;
9844 strcpy (a, "--------01111111");
9845 strcpy (b, "--------10000000");
9846 if (memcmp (a, b, 16) >= 0)
7a197a62 9847 return 1;
ad6254c5 9848 }
7a197a62 9849 return 0;
ad6254c5
AK
9850 }
9851
9852 ;
9853 return 0;
9854}
9855_ACEOF
9856rm -f conftest$ac_exeext
7a197a62
AK
9857if { (ac_try="$ac_link"
9858case "(($ac_try" in
9859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9860 *) ac_try_echo=$ac_try;;
9861esac
ec6a6fbe
AK
9862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9863$as_echo "$ac_try_echo") >&5
7a197a62 9864 (eval "$ac_link") 2>&5
ad6254c5 9865 ac_status=$?
ec6a6fbe 9866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 9867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
ec6a6fbe
AK
9872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9873$as_echo "$ac_try_echo") >&5
7a197a62 9874 (eval "$ac_try") 2>&5
ad6254c5 9875 ac_status=$?
ec6a6fbe 9876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
9877 (exit $ac_status); }; }; then
9878 ac_cv_func_memcmp_working=yes
9879else
ec6a6fbe
AK
9880 $as_echo "$as_me: program exited with status $ac_status" >&5
9881$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884( exit $ac_status )
9885ac_cv_func_memcmp_working=no
9886fi
ec6a6fbe 9887rm -rf conftest.dSYM
7a197a62 9888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 9889fi
7a197a62
AK
9890
9891
ad6254c5 9892fi
ec6a6fbe
AK
9893{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9894$as_echo "$ac_cv_func_memcmp_working" >&6; }
7a197a62 9895test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8a2fc586 9896 *" memcmp.$ac_objext "* ) ;;
7a197a62
AK
9897 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9898 ;;
8a2fc586
AK
9899esac
9900
ad6254c5
AK
9901
9902
9903
9904for ac_header in stdlib.h unistd.h
9905do
ec6a6fbe 9906as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 9907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
9908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9909$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 9910if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 9911 $as_echo_n "(cached) " >&6
ad6254c5 9912fi
ec6a6fbe
AK
9913ac_res=`eval 'as_val=${'$as_ac_Header'}
9914 $as_echo "$as_val"'`
9915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9916$as_echo "$ac_res" >&6; }
ad6254c5
AK
9917else
9918 # Is the header compilable?
ec6a6fbe
AK
9919{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9920$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 9921cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9922/* confdefs.h. */
9923_ACEOF
9924cat confdefs.h >>conftest.$ac_ext
9925cat >>conftest.$ac_ext <<_ACEOF
9926/* end confdefs.h. */
9927$ac_includes_default
9928#include <$ac_header>
9929_ACEOF
9930rm -f conftest.$ac_objext
7a197a62
AK
9931if { (ac_try="$ac_compile"
9932case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935esac
ec6a6fbe
AK
9936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9937$as_echo "$ac_try_echo") >&5
7a197a62 9938 (eval "$ac_compile") 2>conftest.er1
ad6254c5 9939 ac_status=$?
8a2fc586
AK
9940 grep -v '^ *+' conftest.er1 >conftest.err
9941 rm -f conftest.er1
9942 cat conftest.err >&5
ec6a6fbe 9943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9944 (exit $ac_status); } && {
9945 test -z "$ac_c_werror_flag" ||
9946 test ! -s conftest.err
9947 } && test -s conftest.$ac_objext; then
ad6254c5
AK
9948 ac_header_compiler=yes
9949else
ec6a6fbe 9950 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9951sed 's/^/| /' conftest.$ac_ext >&5
9952
7a197a62 9953 ac_header_compiler=no
ad6254c5 9954fi
7a197a62
AK
9955
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
9957{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9958$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
9959
9960# Is the header present?
ec6a6fbe
AK
9961{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9962$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 9963cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
9964/* confdefs.h. */
9965_ACEOF
9966cat confdefs.h >>conftest.$ac_ext
9967cat >>conftest.$ac_ext <<_ACEOF
9968/* end confdefs.h. */
9969#include <$ac_header>
9970_ACEOF
7a197a62
AK
9971if { (ac_try="$ac_cpp conftest.$ac_ext"
9972case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975esac
ec6a6fbe
AK
9976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9977$as_echo "$ac_try_echo") >&5
7a197a62 9978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
9979 ac_status=$?
9980 grep -v '^ *+' conftest.er1 >conftest.err
9981 rm -f conftest.er1
9982 cat conftest.err >&5
ec6a6fbe 9983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
9984 (exit $ac_status); } >/dev/null && {
9985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9986 test ! -s conftest.err
9987 }; then
ad6254c5
AK
9988 ac_header_preproc=yes
9989else
ec6a6fbe 9990 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
9991sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ac_header_preproc=no
9994fi
7a197a62 9995
ad6254c5 9996rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
9997{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9998$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
9999
10000# So? What about this header?
8a2fc586
AK
10001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10002 yes:no: )
ec6a6fbe
AK
10003 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10004$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10006$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 10007 ac_header_preproc=yes
ad6254c5 10008 ;;
8a2fc586 10009 no:yes:* )
ec6a6fbe
AK
10010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10011$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10013$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10015$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10017$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10018 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10019$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10021$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 10022
ad6254c5
AK
10023 ;;
10024esac
ec6a6fbe
AK
10025{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10026$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 10027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10028 $as_echo_n "(cached) " >&6
ad6254c5 10029else
8a2fc586 10030 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 10031fi
ec6a6fbe
AK
10032ac_res=`eval 'as_val=${'$as_ac_Header'}
10033 $as_echo "$as_val"'`
10034 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10035$as_echo "$ac_res" >&6; }
ad6254c5
AK
10036
10037fi
ec6a6fbe
AK
10038as_val=`eval 'as_val=${'$as_ac_Header'}
10039 $as_echo "$as_val"'`
10040 if test "x$as_val" = x""yes; then
ad6254c5 10041 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10042#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
10043_ACEOF
10044
10045fi
10046
10047done
10048
10049
10050for ac_func in getpagesize
10051do
ec6a6fbe
AK
10052as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10053{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10054$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 10055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10056 $as_echo_n "(cached) " >&6
ad6254c5
AK
10057else
10058 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10059/* confdefs.h. */
10060_ACEOF
10061cat confdefs.h >>conftest.$ac_ext
10062cat >>conftest.$ac_ext <<_ACEOF
10063/* end confdefs.h. */
8a2fc586
AK
10064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10066#define $ac_func innocuous_$ac_func
10067
ad6254c5
AK
10068/* System header to define __stub macros and hopefully few prototypes,
10069 which can conflict with char $ac_func (); below.
10070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10071 <limits.h> exists even on freestanding compilers. */
8a2fc586 10072
ad6254c5
AK
10073#ifdef __STDC__
10074# include <limits.h>
10075#else
10076# include <assert.h>
10077#endif
8a2fc586
AK
10078
10079#undef $ac_func
10080
7a197a62
AK
10081/* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10084#ifdef __cplusplus
10085extern "C"
ad6254c5 10086#endif
ad6254c5
AK
10087char $ac_func ();
10088/* The GNU C library defines this for functions which it implements
10089 to always fail with ENOSYS. Some functions are actually named
10090 something starting with __ and the normal name is an alias. */
7a197a62 10091#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 10092choke me
ad6254c5
AK
10093#endif
10094
10095int
10096main ()
10097{
7a197a62 10098return $ac_func ();
ad6254c5
AK
10099 ;
10100 return 0;
10101}
10102_ACEOF
10103rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10104if { (ac_try="$ac_link"
10105case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108esac
ec6a6fbe
AK
10109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10110$as_echo "$ac_try_echo") >&5
7a197a62 10111 (eval "$ac_link") 2>conftest.er1
ad6254c5 10112 ac_status=$?
8a2fc586
AK
10113 grep -v '^ *+' conftest.er1 >conftest.err
10114 rm -f conftest.er1
10115 cat conftest.err >&5
ec6a6fbe 10116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10117 (exit $ac_status); } && {
10118 test -z "$ac_c_werror_flag" ||
10119 test ! -s conftest.err
ec6a6fbe
AK
10120 } && test -s conftest$ac_exeext && {
10121 test "$cross_compiling" = yes ||
10122 $as_test_x conftest$ac_exeext
10123 }; then
ad6254c5
AK
10124 eval "$as_ac_var=yes"
10125else
ec6a6fbe 10126 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
7a197a62 10129 eval "$as_ac_var=no"
ad6254c5 10130fi
7a197a62 10131
ec6a6fbe 10132rm -rf conftest.dSYM
25fbec5b 10133rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10134 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10135fi
ec6a6fbe
AK
10136ac_res=`eval 'as_val=${'$as_ac_var'}
10137 $as_echo "$as_val"'`
10138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10139$as_echo "$ac_res" >&6; }
10140as_val=`eval 'as_val=${'$as_ac_var'}
10141 $as_echo "$as_val"'`
10142 if test "x$as_val" = x""yes; then
ad6254c5 10143 cat >>confdefs.h <<_ACEOF
ec6a6fbe 10144#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
10145_ACEOF
10146
10147fi
10148done
10149
ec6a6fbe
AK
10150{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10151$as_echo_n "checking for working mmap... " >&6; }
ad6254c5 10152if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
ec6a6fbe 10153 $as_echo_n "(cached) " >&6
ad6254c5
AK
10154else
10155 if test "$cross_compiling" = yes; then
10156 ac_cv_func_mmap_fixed_mapped=no
10157else
10158 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164$ac_includes_default
10165/* malloc might have been renamed as rpl_malloc. */
10166#undef malloc
10167
10168/* Thanks to Mike Haertel and Jim Avera for this test.
10169 Here is a matrix of mmap possibilities:
10170 mmap private not fixed
10171 mmap private fixed at somewhere currently unmapped
10172 mmap private fixed at somewhere already mapped
10173 mmap shared not fixed
10174 mmap shared fixed at somewhere currently unmapped
10175 mmap shared fixed at somewhere already mapped
10176 For private mappings, we should verify that changes cannot be read()
10177 back from the file, nor mmap's back from the file at a different
10178 address. (There have been systems where private was not correctly
10179 implemented like the infamous i386 svr4.0, and systems where the
10180 VM page cache was not coherent with the file system buffer cache
10181 like early versions of FreeBSD and possibly contemporary NetBSD.)
10182 For shared mappings, we should conversely verify that changes get
10183 propagated back to all the places they're supposed to be.
10184
10185 Grep wants private fixed already mapped.
10186 The main things grep needs to know about mmap are:
10187 * does it exist and is it safe to write into the mmap'd area
10188 * how to use it (BSD variants) */
10189
10190#include <fcntl.h>
10191#include <sys/mman.h>
10192
25fbec5b 10193#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
ad6254c5
AK
10194char *malloc ();
10195#endif
10196
10197/* This mess was copied from the GNU getpagesize.h. */
25fbec5b 10198#ifndef HAVE_GETPAGESIZE
ad6254c5 10199/* Assume that all systems that can run configure have sys/param.h. */
25fbec5b 10200# ifndef HAVE_SYS_PARAM_H
ad6254c5
AK
10201# define HAVE_SYS_PARAM_H 1
10202# endif
10203
10204# ifdef _SC_PAGESIZE
10205# define getpagesize() sysconf(_SC_PAGESIZE)
10206# else /* no _SC_PAGESIZE */
25fbec5b 10207# ifdef HAVE_SYS_PARAM_H
ad6254c5
AK
10208# include <sys/param.h>
10209# ifdef EXEC_PAGESIZE
10210# define getpagesize() EXEC_PAGESIZE
10211# else /* no EXEC_PAGESIZE */
10212# ifdef NBPG
10213# define getpagesize() NBPG * CLSIZE
10214# ifndef CLSIZE
10215# define CLSIZE 1
10216# endif /* no CLSIZE */
10217# else /* no NBPG */
10218# ifdef NBPC
10219# define getpagesize() NBPC
10220# else /* no NBPC */
10221# ifdef PAGESIZE
10222# define getpagesize() PAGESIZE
10223# endif /* PAGESIZE */
10224# endif /* no NBPC */
10225# endif /* no NBPG */
10226# endif /* no EXEC_PAGESIZE */
10227# else /* no HAVE_SYS_PARAM_H */
10228# define getpagesize() 8192 /* punt totally */
10229# endif /* no HAVE_SYS_PARAM_H */
10230# endif /* no _SC_PAGESIZE */
10231
10232#endif /* no HAVE_GETPAGESIZE */
10233
10234int
10235main ()
10236{
10237 char *data, *data2, *data3;
10238 int i, pagesize;
10239 int fd;
10240
10241 pagesize = getpagesize ();
10242
10243 /* First, make a file with some known garbage in it. */
10244 data = (char *) malloc (pagesize);
10245 if (!data)
7a197a62 10246 return 1;
ad6254c5
AK
10247 for (i = 0; i < pagesize; ++i)
10248 *(data + i) = rand ();
10249 umask (0);
10250 fd = creat ("conftest.mmap", 0600);
10251 if (fd < 0)
7a197a62 10252 return 1;
ad6254c5 10253 if (write (fd, data, pagesize) != pagesize)
7a197a62 10254 return 1;
ad6254c5
AK
10255 close (fd);
10256
10257 /* Next, try to mmap the file at a fixed address which already has
10258 something else allocated at it. If we can, also make sure that
10259 we see the same garbage. */
10260 fd = open ("conftest.mmap", O_RDWR);
10261 if (fd < 0)
7a197a62 10262 return 1;
ad6254c5
AK
10263 data2 = (char *) malloc (2 * pagesize);
10264 if (!data2)
7a197a62
AK
10265 return 1;
10266 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
ad6254c5 10267 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8a2fc586 10268 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7a197a62 10269 return 1;
ad6254c5
AK
10270 for (i = 0; i < pagesize; ++i)
10271 if (*(data + i) != *(data2 + i))
7a197a62 10272 return 1;
ad6254c5 10273
d911ec67
AK
10274 /* Finally, make sure that changes to the mapped area do not
10275 percolate back to the file as seen by read(). (This is a bug on
10276 some variants of i386 svr4.0.) */
10277 for (i = 0; i < pagesize; ++i)
10278 *(data2 + i) = *(data2 + i) + 1;
10279 data3 = (char *) malloc (pagesize);
10280 if (!data3)
10281 return 1;
10282 if (read (fd, data3, pagesize) != pagesize)
10283 return 1;
10284 for (i = 0; i < pagesize; ++i)
10285 if (*(data + i) != *(data3 + i))
10286 return 1;
10287 close (fd);
10288 return 0;
10289}
10290_ACEOF
10291rm -f conftest$ac_exeext
10292if { (ac_try="$ac_link"
10293case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296esac
10297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298$as_echo "$ac_try_echo") >&5
10299 (eval "$ac_link") 2>&5
10300 ac_status=$?
10301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10303 { (case "(($ac_try" in
10304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10305 *) ac_try_echo=$ac_try;;
10306esac
10307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10308$as_echo "$ac_try_echo") >&5
10309 (eval "$ac_try") 2>&5
10310 ac_status=$?
10311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_cv_func_mmap_fixed_mapped=yes
10314else
10315 $as_echo "$as_me: program exited with status $ac_status" >&5
10316$as_echo "$as_me: failed program was:" >&5
10317sed 's/^/| /' conftest.$ac_ext >&5
10318
10319( exit $ac_status )
10320ac_cv_func_mmap_fixed_mapped=no
10321fi
10322rm -rf conftest.dSYM
10323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10324fi
10325
10326
10327fi
10328{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10329$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10330if test $ac_cv_func_mmap_fixed_mapped = yes; then
10331
10332cat >>confdefs.h <<\_ACEOF
10333#define HAVE_MMAP 1
10334_ACEOF
10335
10336fi
10337rm -f conftest.mmap
10338
10339
10340for ac_header in stdlib.h
10341do
10342as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10345$as_echo_n "checking for $ac_header... " >&6; }
10346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10347 $as_echo_n "(cached) " >&6
10348fi
10349ac_res=`eval 'as_val=${'$as_ac_Header'}
10350 $as_echo "$as_val"'`
10351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10352$as_echo "$ac_res" >&6; }
10353else
10354 # Is the header compilable?
10355{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10356$as_echo_n "checking $ac_header usability... " >&6; }
10357cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363$ac_includes_default
10364#include <$ac_header>
10365_ACEOF
10366rm -f conftest.$ac_objext
10367if { (ac_try="$ac_compile"
10368case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371esac
10372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10373$as_echo "$ac_try_echo") >&5
10374 (eval "$ac_compile") 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } && {
10381 test -z "$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 } && test -s conftest.$ac_objext; then
10384 ac_header_compiler=yes
10385else
10386 $as_echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 ac_header_compiler=no
10390fi
10391
10392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10393{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10394$as_echo "$ac_header_compiler" >&6; }
10395
10396# Is the header present?
10397{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10398$as_echo_n "checking $ac_header presence... " >&6; }
10399cat >conftest.$ac_ext <<_ACEOF
10400/* confdefs.h. */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h. */
10405#include <$ac_header>
10406_ACEOF
10407if { (ac_try="$ac_cpp conftest.$ac_ext"
10408case "(($ac_try" in
10409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10410 *) ac_try_echo=$ac_try;;
10411esac
10412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10413$as_echo "$ac_try_echo") >&5
10414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } >/dev/null && {
10421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 }; then
10424 ac_header_preproc=yes
10425else
10426 $as_echo "$as_me: failed program was:" >&5
10427sed 's/^/| /' conftest.$ac_ext >&5
10428
10429 ac_header_preproc=no
10430fi
10431
10432rm -f conftest.err conftest.$ac_ext
10433{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10434$as_echo "$ac_header_preproc" >&6; }
10435
10436# So? What about this header?
10437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10438 yes:no: )
10439 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10440$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10441 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10442$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10443 ac_header_preproc=yes
10444 ;;
10445 no:yes:* )
10446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10447$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10449$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10451$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10453$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10455$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10457$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10458
10459 ;;
10460esac
10461{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10462$as_echo_n "checking for $ac_header... " >&6; }
10463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10464 $as_echo_n "(cached) " >&6
10465else
10466 eval "$as_ac_Header=\$ac_header_preproc"
10467fi
10468ac_res=`eval 'as_val=${'$as_ac_Header'}
10469 $as_echo "$as_val"'`
10470 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10471$as_echo "$ac_res" >&6; }
10472
10473fi
10474as_val=`eval 'as_val=${'$as_ac_Header'}
10475 $as_echo "$as_val"'`
10476 if test "x$as_val" = x""yes; then
10477 cat >>confdefs.h <<_ACEOF
10478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10479_ACEOF
10480
10481fi
10482
10483done
10484
10485{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
10486$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
10487if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
10488 $as_echo_n "(cached) " >&6
10489else
10490 if test "$cross_compiling" = yes; then
10491 ac_cv_func_realloc_0_nonnull=no
10492else
10493 cat >conftest.$ac_ext <<_ACEOF
10494/* confdefs.h. */
10495_ACEOF
10496cat confdefs.h >>conftest.$ac_ext
10497cat >>conftest.$ac_ext <<_ACEOF
10498/* end confdefs.h. */
10499#if defined STDC_HEADERS || defined HAVE_STDLIB_H
10500# include <stdlib.h>
10501#else
10502char *realloc ();
10503#endif
10504
10505int
10506main ()
10507{
10508return ! realloc (0, 0);
10509 ;
7a197a62 10510 return 0;
ad6254c5
AK
10511}
10512_ACEOF
10513rm -f conftest$ac_exeext
7a197a62
AK
10514if { (ac_try="$ac_link"
10515case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518esac
ec6a6fbe
AK
10519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10520$as_echo "$ac_try_echo") >&5
7a197a62 10521 (eval "$ac_link") 2>&5
ad6254c5 10522 ac_status=$?
ec6a6fbe 10523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528esac
ec6a6fbe
AK
10529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10530$as_echo "$ac_try_echo") >&5
7a197a62 10531 (eval "$ac_try") 2>&5
ad6254c5 10532 ac_status=$?
ec6a6fbe 10533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10534 (exit $ac_status); }; }; then
d911ec67 10535 ac_cv_func_realloc_0_nonnull=yes
ad6254c5 10536else
ec6a6fbe
AK
10537 $as_echo "$as_me: program exited with status $ac_status" >&5
10538$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541( exit $ac_status )
d911ec67 10542ac_cv_func_realloc_0_nonnull=no
ad6254c5 10543fi
ec6a6fbe 10544rm -rf conftest.dSYM
7a197a62 10545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10546fi
7a197a62
AK
10547
10548
ad6254c5 10549fi
d911ec67
AK
10550{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
10551$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
10552if test $ac_cv_func_realloc_0_nonnull = yes; then
ad6254c5
AK
10553
10554cat >>confdefs.h <<\_ACEOF
d911ec67
AK
10555#define HAVE_REALLOC 1
10556_ACEOF
10557
10558else
10559 cat >>confdefs.h <<\_ACEOF
10560#define HAVE_REALLOC 0
10561_ACEOF
10562
10563 case " $LIBOBJS " in
10564 *" realloc.$ac_objext "* ) ;;
10565 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
10566 ;;
10567esac
10568
10569
10570cat >>confdefs.h <<\_ACEOF
10571#define realloc rpl_realloc
ad6254c5
AK
10572_ACEOF
10573
10574fi
d911ec67
AK
10575
10576
ad6254c5 10577
ec6a6fbe
AK
10578{ $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
10579$as_echo_n "checking whether stat accepts an empty string... " >&6; }
ad6254c5 10580if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
ec6a6fbe 10581 $as_echo_n "(cached) " >&6
ad6254c5
AK
10582else
10583 if test "$cross_compiling" = yes; then
10584 ac_cv_func_stat_empty_string_bug=yes
10585else
10586 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10587/* confdefs.h. */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h. */
10592$ac_includes_default
10593int
10594main ()
10595{
10596struct stat sbuf;
7a197a62 10597 return stat ("", &sbuf) == 0;
ad6254c5
AK
10598 ;
10599 return 0;
10600}
10601_ACEOF
10602rm -f conftest$ac_exeext
7a197a62
AK
10603if { (ac_try="$ac_link"
10604case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607esac
ec6a6fbe
AK
10608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609$as_echo "$ac_try_echo") >&5
7a197a62 10610 (eval "$ac_link") 2>&5
ad6254c5 10611 ac_status=$?
ec6a6fbe 10612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10614 { (case "(($ac_try" in
10615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10616 *) ac_try_echo=$ac_try;;
10617esac
ec6a6fbe
AK
10618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10619$as_echo "$ac_try_echo") >&5
7a197a62 10620 (eval "$ac_try") 2>&5
ad6254c5 10621 ac_status=$?
ec6a6fbe 10622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10623 (exit $ac_status); }; }; then
7a197a62 10624 ac_cv_func_stat_empty_string_bug=no
ad6254c5 10625else
ec6a6fbe
AK
10626 $as_echo "$as_me: program exited with status $ac_status" >&5
10627$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10628sed 's/^/| /' conftest.$ac_ext >&5
10629
10630( exit $ac_status )
7a197a62 10631ac_cv_func_stat_empty_string_bug=yes
ad6254c5 10632fi
ec6a6fbe 10633rm -rf conftest.dSYM
7a197a62 10634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10635fi
7a197a62
AK
10636
10637
ad6254c5 10638fi
ec6a6fbe
AK
10639{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10640$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
ad6254c5 10641if test $ac_cv_func_stat_empty_string_bug = yes; then
7a197a62 10642 case " $LIBOBJS " in
8a2fc586 10643 *" stat.$ac_objext "* ) ;;
7a197a62
AK
10644 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10645 ;;
8a2fc586
AK
10646esac
10647
ad6254c5
AK
10648
10649cat >>confdefs.h <<_ACEOF
10650#define HAVE_STAT_EMPTY_STRING_BUG 1
10651_ACEOF
10652
10653fi
10654
ec6a6fbe
AK
10655{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
10656$as_echo_n "checking for working strtod... " >&6; }
ad6254c5 10657if test "${ac_cv_func_strtod+set}" = set; then
ec6a6fbe 10658 $as_echo_n "(cached) " >&6
ad6254c5
AK
10659else
10660 if test "$cross_compiling" = yes; then
10661 ac_cv_func_strtod=no
10662else
10663 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10664/* confdefs.h. */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h. */
10669
7a197a62
AK
10670$ac_includes_default
10671#ifndef strtod
ad6254c5 10672double strtod ();
7a197a62 10673#endif
ad6254c5
AK
10674int
10675main()
10676{
10677 {
10678 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
10679 char *string = " +69";
10680 char *term;
10681 double value;
10682 value = strtod (string, &term);
10683 if (value != 69 || term != (string + 4))
7a197a62 10684 return 1;
ad6254c5
AK
10685 }
10686
10687 {
10688 /* Under Solaris 2.4, strtod returns the wrong value for the
10689 terminating character under some conditions. */
10690 char *string = "NaN";
10691 char *term;
10692 strtod (string, &term);
10693 if (term != string && *(term - 1) == 0)
7a197a62 10694 return 1;
ad6254c5 10695 }
7a197a62 10696 return 0;
ad6254c5
AK
10697}
10698
10699_ACEOF
10700rm -f conftest$ac_exeext
7a197a62
AK
10701if { (ac_try="$ac_link"
10702case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10705esac
ec6a6fbe
AK
10706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10707$as_echo "$ac_try_echo") >&5
7a197a62 10708 (eval "$ac_link") 2>&5
ad6254c5 10709 ac_status=$?
ec6a6fbe 10710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5 10711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7a197a62
AK
10712 { (case "(($ac_try" in
10713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714 *) ac_try_echo=$ac_try;;
10715esac
ec6a6fbe
AK
10716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10717$as_echo "$ac_try_echo") >&5
7a197a62 10718 (eval "$ac_try") 2>&5
ad6254c5 10719 ac_status=$?
ec6a6fbe 10720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
ad6254c5
AK
10721 (exit $ac_status); }; }; then
10722 ac_cv_func_strtod=yes
10723else
ec6a6fbe
AK
10724 $as_echo "$as_me: program exited with status $ac_status" >&5
10725$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10726sed 's/^/| /' conftest.$ac_ext >&5
10727
10728( exit $ac_status )
10729ac_cv_func_strtod=no
10730fi
ec6a6fbe 10731rm -rf conftest.dSYM
7a197a62 10732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ad6254c5 10733fi
7a197a62
AK
10734
10735
ad6254c5 10736fi
ec6a6fbe
AK
10737{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
10738$as_echo "$ac_cv_func_strtod" >&6; }
ad6254c5 10739if test $ac_cv_func_strtod = no; then
7a197a62 10740 case " $LIBOBJS " in
8a2fc586 10741 *" strtod.$ac_objext "* ) ;;
7a197a62
AK
10742 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
10743 ;;
8a2fc586
AK
10744esac
10745
ec6a6fbe
AK
10746{ $as_echo "$as_me:$LINENO: checking for pow" >&5
10747$as_echo_n "checking for pow... " >&6; }
ad6254c5 10748if test "${ac_cv_func_pow+set}" = set; then
ec6a6fbe 10749 $as_echo_n "(cached) " >&6
ad6254c5
AK
10750else
10751 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10752/* confdefs.h. */
10753_ACEOF
10754cat confdefs.h >>conftest.$ac_ext
10755cat >>conftest.$ac_ext <<_ACEOF
10756/* end confdefs.h. */
8a2fc586
AK
10757/* Define pow to an innocuous variant, in case <limits.h> declares pow.
10758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759#define pow innocuous_pow
10760
ad6254c5
AK
10761/* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char pow (); below.
10763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764 <limits.h> exists even on freestanding compilers. */
8a2fc586 10765
ad6254c5
AK
10766#ifdef __STDC__
10767# include <limits.h>
10768#else
10769# include <assert.h>
10770#endif
8a2fc586
AK
10771
10772#undef pow
10773
7a197a62
AK
10774/* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10777#ifdef __cplusplus
10778extern "C"
ad6254c5 10779#endif
ad6254c5
AK
10780char pow ();
10781/* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
7a197a62 10784#if defined __stub_pow || defined __stub___pow
ad6254c5 10785choke me
ad6254c5
AK
10786#endif
10787
10788int
10789main ()
10790{
7a197a62 10791return pow ();
ad6254c5
AK
10792 ;
10793 return 0;
10794}
10795_ACEOF
10796rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10797if { (ac_try="$ac_link"
10798case "(($ac_try" in
10799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10801esac
ec6a6fbe
AK
10802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10803$as_echo "$ac_try_echo") >&5
7a197a62 10804 (eval "$ac_link") 2>conftest.er1
ad6254c5 10805 ac_status=$?
8a2fc586
AK
10806 grep -v '^ *+' conftest.er1 >conftest.err
10807 rm -f conftest.er1
10808 cat conftest.err >&5
ec6a6fbe 10809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10810 (exit $ac_status); } && {
10811 test -z "$ac_c_werror_flag" ||
10812 test ! -s conftest.err
ec6a6fbe
AK
10813 } && test -s conftest$ac_exeext && {
10814 test "$cross_compiling" = yes ||
10815 $as_test_x conftest$ac_exeext
10816 }; then
ad6254c5
AK
10817 ac_cv_func_pow=yes
10818else
ec6a6fbe 10819 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10820sed 's/^/| /' conftest.$ac_ext >&5
10821
7a197a62 10822 ac_cv_func_pow=no
ad6254c5 10823fi
7a197a62 10824
ec6a6fbe 10825rm -rf conftest.dSYM
25fbec5b 10826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10827 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10828fi
ec6a6fbe
AK
10829{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
10830$as_echo "$ac_cv_func_pow" >&6; }
ad6254c5
AK
10831
10832if test $ac_cv_func_pow = no; then
ec6a6fbe
AK
10833 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
10834$as_echo_n "checking for pow in -lm... " >&6; }
ad6254c5 10835if test "${ac_cv_lib_m_pow+set}" = set; then
ec6a6fbe 10836 $as_echo_n "(cached) " >&6
ad6254c5
AK
10837else
10838 ac_check_lib_save_LIBS=$LIBS
10839LIBS="-lm $LIBS"
10840cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
10841/* confdefs.h. */
10842_ACEOF
10843cat confdefs.h >>conftest.$ac_ext
10844cat >>conftest.$ac_ext <<_ACEOF
10845/* end confdefs.h. */
10846
7a197a62
AK
10847/* Override any GCC internal prototype to avoid an error.
10848 Use char because int might match the return type of a GCC
10849 builtin and then its argument prototype would still apply. */
ad6254c5
AK
10850#ifdef __cplusplus
10851extern "C"
10852#endif
ad6254c5
AK
10853char pow ();
10854int
10855main ()
10856{
7a197a62 10857return pow ();
ad6254c5
AK
10858 ;
10859 return 0;
10860}
10861_ACEOF
10862rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
10863if { (ac_try="$ac_link"
10864case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
ec6a6fbe
AK
10868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10869$as_echo "$ac_try_echo") >&5
7a197a62 10870 (eval "$ac_link") 2>conftest.er1
ad6254c5 10871 ac_status=$?
8a2fc586
AK
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
ec6a6fbe 10875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
10876 (exit $ac_status); } && {
10877 test -z "$ac_c_werror_flag" ||
10878 test ! -s conftest.err
ec6a6fbe
AK
10879 } && test -s conftest$ac_exeext && {
10880 test "$cross_compiling" = yes ||
10881 $as_test_x conftest$ac_exeext
10882 }; then
ad6254c5
AK
10883 ac_cv_lib_m_pow=yes
10884else
ec6a6fbe 10885 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
7a197a62 10888 ac_cv_lib_m_pow=no
ad6254c5 10889fi
7a197a62 10890
ec6a6fbe 10891rm -rf conftest.dSYM
25fbec5b 10892rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 10893 conftest$ac_exeext conftest.$ac_ext
ad6254c5 10894LIBS=$ac_check_lib_save_LIBS
d0191583 10895fi
ec6a6fbe
AK
10896{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
10897$as_echo "$ac_cv_lib_m_pow" >&6; }
10898if test "x$ac_cv_lib_m_pow" = x""yes; then
d0191583
JM
10899 POW_LIB=-lm
10900else
ec6a6fbe
AK
10901 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
10902$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
d0191583 10903fi
72b2cb61 10904
d0191583 10905fi
72b2cb61 10906
ad6254c5
AK
10907fi
10908
ad6254c5 10909
d0191583
JM
10910for ac_func in vprintf
10911do
ec6a6fbe
AK
10912as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10914$as_echo_n "checking for $ac_func... " >&6; }
d0191583 10915if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 10916 $as_echo_n "(cached) " >&6
ad6254c5 10917else
d0191583
JM
10918 cat >conftest.$ac_ext <<_ACEOF
10919/* confdefs.h. */
10920_ACEOF
10921cat confdefs.h >>conftest.$ac_ext
10922cat >>conftest.$ac_ext <<_ACEOF
10923/* end confdefs.h. */
10924/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10926#define $ac_func innocuous_$ac_func
7a197a62 10927
d0191583
JM
10928/* System header to define __stub macros and hopefully few prototypes,
10929 which can conflict with char $ac_func (); below.
10930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10931 <limits.h> exists even on freestanding compilers. */
ad6254c5 10932
d0191583
JM
10933#ifdef __STDC__
10934# include <limits.h>
10935#else
10936# include <assert.h>
10937#endif
ad6254c5 10938
d0191583 10939#undef $ac_func
72b2cb61 10940
d0191583
JM
10941/* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char $ac_func ();
10948/* The GNU C library defines this for functions which it implements
10949 to always fail with ENOSYS. Some functions are actually named
10950 something starting with __ and the normal name is an alias. */
10951#if defined __stub_$ac_func || defined __stub___$ac_func
10952choke me
10953#endif
10954
10955int
10956main ()
10957{
10958return $ac_func ();
10959 ;
10960 return 0;
10961}
72b2cb61 10962_ACEOF
d0191583
JM
10963rm -f conftest.$ac_objext conftest$ac_exeext
10964if { (ac_try="$ac_link"
10965case "(($ac_try" in
10966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967 *) ac_try_echo=$ac_try;;
10968esac
ec6a6fbe
AK
10969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10970$as_echo "$ac_try_echo") >&5
d0191583
JM
10971 (eval "$ac_link") 2>conftest.er1
10972 ac_status=$?
10973 grep -v '^ *+' conftest.er1 >conftest.err
10974 rm -f conftest.er1
10975 cat conftest.err >&5
ec6a6fbe 10976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
10977 (exit $ac_status); } && {
10978 test -z "$ac_c_werror_flag" ||
10979 test ! -s conftest.err
ec6a6fbe
AK
10980 } && test -s conftest$ac_exeext && {
10981 test "$cross_compiling" = yes ||
10982 $as_test_x conftest$ac_exeext
10983 }; then
d0191583
JM
10984 eval "$as_ac_var=yes"
10985else
ec6a6fbe 10986 $as_echo "$as_me: failed program was:" >&5
d0191583 10987sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 10988
d0191583 10989 eval "$as_ac_var=no"
ad6254c5
AK
10990fi
10991
ec6a6fbe 10992rm -rf conftest.dSYM
d0191583
JM
10993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10994 conftest$ac_exeext conftest.$ac_ext
7a197a62 10995fi
ec6a6fbe
AK
10996ac_res=`eval 'as_val=${'$as_ac_var'}
10997 $as_echo "$as_val"'`
10998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10999$as_echo "$ac_res" >&6; }
11000as_val=`eval 'as_val=${'$as_ac_var'}
11001 $as_echo "$as_val"'`
11002 if test "x$as_val" = x""yes; then
d0191583 11003 cat >>confdefs.h <<_ACEOF
ec6a6fbe 11004#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d0191583 11005_ACEOF
7a197a62 11006
ec6a6fbe
AK
11007{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
11008$as_echo_n "checking for _doprnt... " >&6; }
d0191583 11009if test "${ac_cv_func__doprnt+set}" = set; then
ec6a6fbe 11010 $as_echo_n "(cached) " >&6
ad6254c5 11011else
d0191583
JM
11012 cat >conftest.$ac_ext <<_ACEOF
11013/* confdefs.h. */
11014_ACEOF
11015cat confdefs.h >>conftest.$ac_ext
11016cat >>conftest.$ac_ext <<_ACEOF
11017/* end confdefs.h. */
11018/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11020#define _doprnt innocuous__doprnt
7a197a62 11021
d0191583
JM
11022/* System header to define __stub macros and hopefully few prototypes,
11023 which can conflict with char _doprnt (); below.
11024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11025 <limits.h> exists even on freestanding compilers. */
ad6254c5 11026
d0191583
JM
11027#ifdef __STDC__
11028# include <limits.h>
11029#else
11030# include <assert.h>
11031#endif
72b2cb61 11032
d0191583
JM
11033#undef _doprnt
11034
11035/* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038#ifdef __cplusplus
11039extern "C"
11040#endif
11041char _doprnt ();
11042/* The GNU C library defines this for functions which it implements
11043 to always fail with ENOSYS. Some functions are actually named
11044 something starting with __ and the normal name is an alias. */
11045#if defined __stub__doprnt || defined __stub____doprnt
11046choke me
11047#endif
11048
11049int
11050main ()
11051{
11052return _doprnt ();
11053 ;
11054 return 0;
11055}
72b2cb61 11056_ACEOF
d0191583
JM
11057rm -f conftest.$ac_objext conftest$ac_exeext
11058if { (ac_try="$ac_link"
11059case "(($ac_try" in
11060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11061 *) ac_try_echo=$ac_try;;
11062esac
ec6a6fbe
AK
11063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11064$as_echo "$ac_try_echo") >&5
d0191583
JM
11065 (eval "$ac_link") 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
ec6a6fbe 11070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d0191583
JM
11071 (exit $ac_status); } && {
11072 test -z "$ac_c_werror_flag" ||
11073 test ! -s conftest.err
ec6a6fbe
AK
11074 } && test -s conftest$ac_exeext && {
11075 test "$cross_compiling" = yes ||
11076 $as_test_x conftest$ac_exeext
11077 }; then
d0191583
JM
11078 ac_cv_func__doprnt=yes
11079else
ec6a6fbe 11080 $as_echo "$as_me: failed program was:" >&5
d0191583 11081sed 's/^/| /' conftest.$ac_ext >&5
72b2cb61 11082
d0191583 11083 ac_cv_func__doprnt=no
ad6254c5
AK
11084fi
11085
ec6a6fbe 11086rm -rf conftest.dSYM
d0191583
JM
11087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11088 conftest$ac_exeext conftest.$ac_ext
7a197a62 11089fi
ec6a6fbe
AK
11090{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11091$as_echo "$ac_cv_func__doprnt" >&6; }
11092if test "x$ac_cv_func__doprnt" = x""yes; then
7a197a62 11093
d0191583
JM
11094cat >>confdefs.h <<\_ACEOF
11095#define HAVE_DOPRNT 1
11096_ACEOF
ad6254c5 11097
7a197a62
AK
11098fi
11099
d0191583
JM
11100fi
11101done
8b1a3214 11102
ad6254c5 11103
7a197a62 11104
9c961554 11105################################################################################
ec6a6fbe
AK
11106{ $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
11107$as_echo_n "checking whether to use static linking... " >&6; }
9c961554
MB
11108# Check whether --enable-static_link was given.
11109if test "${enable_static_link+set}" = set; then
11110 enableval=$enable_static_link; STATIC_LINK=$enableval
11111else
11112 STATIC_LINK=no
11113fi
11114
ec6a6fbe
AK
11115{ $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
11116$as_echo "$STATIC_LINK" >&6; }
9c961554 11117
d0191583 11118################################################################################
ad6254c5 11119
ad6254c5
AK
11120
11121################################################################################
ec6a6fbe
AK
11122{ $as_echo "$as_me:$LINENO: checking file owner" >&5
11123$as_echo_n "checking file owner... " >&6; }
d0191583
JM
11124
11125# Check whether --with-user was given.
11126if test "${with_user+set}" = set; then
71082be4 11127 withval=$with_user; OWNER=$withval
7a197a62
AK
11128fi
11129
ec6a6fbe
AK
11130{ $as_echo "$as_me:$LINENO: result: $OWNER" >&5
11131$as_echo "$OWNER" >&6; }
ad6254c5 11132
d0191583 11133if test x$OWNER != x; then
23b059e7 11134 INSTALL="$INSTALL -o $OWNER"
ad6254c5
AK
11135fi
11136
11137################################################################################
ec6a6fbe
AK
11138{ $as_echo "$as_me:$LINENO: checking group owner" >&5
11139$as_echo_n "checking group owner... " >&6; }
ad6254c5 11140
d0191583
JM
11141# Check whether --with-group was given.
11142if test "${with_group+set}" = set; then
71082be4 11143 withval=$with_group; GROUP=$withval
7a197a62
AK
11144fi
11145
ec6a6fbe
AK
11146{ $as_echo "$as_me:$LINENO: result: $GROUP" >&5
11147$as_echo "$GROUP" >&6; }
d0191583
JM
11148
11149if test x$GROUP != x; then
23b059e7 11150 INSTALL="$INSTALL -g $GROUP"
d0191583 11151fi
ad6254c5 11152
24bbc4d7 11153################################################################################
ec6a6fbe
AK
11154{ $as_echo "$as_me:$LINENO: checking device node uid" >&5
11155$as_echo_n "checking device node uid... " >&6; }
24bbc4d7
AK
11156
11157
11158# Check whether --with-device-uid was given.
11159if test "${with_device_uid+set}" = set; then
71082be4 11160 withval=$with_device_uid; DM_DEVICE_UID=$withval
24bbc4d7 11161else
71082be4 11162 DM_DEVICE_UID=0
24bbc4d7
AK
11163fi
11164
ec6a6fbe
AK
11165{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
11166$as_echo "$DM_DEVICE_UID" >&6; }
24bbc4d7
AK
11167
11168################################################################################
ec6a6fbe
AK
11169{ $as_echo "$as_me:$LINENO: checking device node gid" >&5
11170$as_echo_n "checking device node gid... " >&6; }
24bbc4d7
AK
11171
11172
11173# Check whether --with-device-gid was given.
11174if test "${with_device_gid+set}" = set; then
71082be4 11175 withval=$with_device_gid; DM_DEVICE_GID=$withval
24bbc4d7 11176else
71082be4 11177 DM_DEVICE_GID=0
24bbc4d7
AK
11178fi
11179
ec6a6fbe
AK
11180{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
11181$as_echo "$DM_DEVICE_GID" >&6; }
24bbc4d7 11182
93bd259b 11183################################################################################
ec6a6fbe
AK
11184{ $as_echo "$as_me:$LINENO: checking device node mode" >&5
11185$as_echo_n "checking device node mode... " >&6; }
93bd259b
AK
11186
11187
11188# Check whether --with-device-mode was given.
11189if test "${with_device_mode+set}" = set; then
71082be4 11190 withval=$with_device_mode; DM_DEVICE_MODE=$withval
93bd259b 11191else
71082be4 11192 DM_DEVICE_MODE=0600
93bd259b
AK
11193fi
11194
ec6a6fbe
AK
11195{ $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
11196$as_echo "$DM_DEVICE_MODE" >&6; }
93bd259b 11197
ad6254c5 11198################################################################################
ec6a6fbe
AK
11199{ $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
11200$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
d0191583
JM
11201# Check whether --enable-lvm1_fallback was given.
11202if test "${enable_lvm1_fallback+set}" = set; then
11203 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
11204else
11205 LVM1_FALLBACK=no
7a197a62
AK
11206fi
11207
ec6a6fbe
AK
11208{ $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
11209$as_echo "$LVM1_FALLBACK" >&6; }
ad6254c5 11210
d0191583 11211if test x$LVM1_FALLBACK = xyes; then
72b2cb61
AK
11212
11213cat >>confdefs.h <<\_ACEOF
d0191583 11214#define LVM1_FALLBACK 1
72b2cb61
AK
11215_ACEOF
11216
ad6254c5
AK
11217fi
11218
11219################################################################################
ec6a6fbe
AK
11220{ $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
11221$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
d0191583
JM
11222
11223# Check whether --with-lvm1 was given.
11224if test "${with_lvm1+set}" = set; then
71082be4 11225 withval=$with_lvm1; LVM1=$withval
d0191583 11226else
71082be4 11227 LVM1=internal
7a197a62
AK
11228fi
11229
ec6a6fbe
AK
11230{ $as_echo "$as_me:$LINENO: result: $LVM1" >&5
11231$as_echo "$LVM1" >&6; }
ad6254c5 11232
d0191583 11233if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
ec6a6fbe 11234 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
d0191583 11235" >&5
ec6a6fbe 11236$as_echo "$as_me: error: --with-lvm1 parameter invalid
d0191583
JM
11237" >&2;}
11238 { (exit 1); exit 1; }; }
11239fi;
11240
11241if test x$LVM1 = xinternal; then
72b2cb61
AK
11242
11243cat >>confdefs.h <<\_ACEOF
d0191583 11244#define LVM1_INTERNAL 1
72b2cb61
AK
11245_ACEOF
11246
ad6254c5
AK
11247fi
11248
11249################################################################################
ec6a6fbe
AK
11250{ $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
11251$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
d0191583
JM
11252
11253# Check whether --with-pool was given.
11254if test "${with_pool+set}" = set; then
71082be4 11255 withval=$with_pool; POOL=$withval
ad6254c5 11256else
71082be4 11257 POOL=internal
7a197a62
AK
11258fi
11259
ec6a6fbe
AK
11260{ $as_echo "$as_me:$LINENO: result: $POOL" >&5
11261$as_echo "$POOL" >&6; }
ad6254c5 11262
d0191583 11263if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
ec6a6fbe 11264 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
d0191583 11265" >&5
ec6a6fbe 11266$as_echo "$as_me: error: --with-pool parameter invalid
d0191583
JM
11267" >&2;}
11268 { (exit 1); exit 1; }; }
11269fi;
7a197a62 11270
d0191583
JM
11271if test x$POOL = xinternal; then
11272
11273cat >>confdefs.h <<\_ACEOF
11274#define POOL_INTERNAL 1
11275_ACEOF
11276
11277fi
ad6254c5 11278
06f62ad1 11279################################################################################
ec6a6fbe
AK
11280{ $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
11281$as_echo_n "checking whether to include support for cluster locking... " >&6; }
d0191583
JM
11282
11283# Check whether --with-cluster was given.
11284if test "${with_cluster+set}" = set; then
71082be4 11285 withval=$with_cluster; CLUSTER=$withval
7a197a62
AK
11286fi
11287
ec6a6fbe
AK
11288{ $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
11289$as_echo "$CLUSTER" >&6; }
06f62ad1 11290
d0191583 11291if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
ec6a6fbe 11292 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
06f62ad1 11293" >&5
ec6a6fbe 11294$as_echo "$as_me: error: --with-cluster parameter invalid
06f62ad1
AK
11295" >&2;}
11296 { (exit 1); exit 1; }; }
d0191583 11297fi;
06f62ad1 11298
d0191583 11299if test x$CLUSTER = xinternal; then
72b2cb61
AK
11300
11301cat >>confdefs.h <<\_ACEOF
d0191583 11302#define CLUSTER_LOCKING_INTERNAL 1
72b2cb61
AK
11303_ACEOF
11304
15d91f5a 11305fi
ad6254c5
AK
11306
11307################################################################################
ec6a6fbe
AK
11308{ $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
11309$as_echo_n "checking whether to include snapshots... " >&6; }
ad6254c5 11310
d0191583
JM
11311# Check whether --with-snapshots was given.
11312if test "${with_snapshots+set}" = set; then
71082be4 11313 withval=$with_snapshots; SNAPSHOTS=$withval
d0191583 11314else
71082be4 11315 SNAPSHOTS=internal
ad6254c5
AK
11316fi
11317
ec6a6fbe
AK
11318{ $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
11319$as_echo "$SNAPSHOTS" >&6; }
ad6254c5 11320
d0191583 11321if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
ec6a6fbe 11322 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
d0191583 11323" >&5
ec6a6fbe 11324$as_echo "$as_me: error: --with-snapshots parameter invalid
d0191583
JM
11325" >&2;}
11326 { (exit 1); exit 1; }; }
11327fi;
11328
11329if test x$SNAPSHOTS = xinternal; then
11330
11331cat >>confdefs.h <<\_ACEOF
11332#define SNAPSHOT_INTERNAL 1
11333_ACEOF
ad6254c5 11334
ad6254c5 11335fi
7a197a62 11336
d0191583 11337################################################################################
ec6a6fbe
AK
11338{ $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
11339$as_echo_n "checking whether to include mirrors... " >&6; }
d0191583
JM
11340
11341# Check whether --with-mirrors was given.
11342if test "${with_mirrors+set}" = set; then
71082be4 11343 withval=$with_mirrors; MIRRORS=$withval
d0191583 11344else
71082be4 11345 MIRRORS=internal
ad6254c5 11346fi
ad6254c5 11347
ec6a6fbe
AK
11348{ $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
11349$as_echo "$MIRRORS" >&6; }
ad6254c5 11350
d0191583 11351if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
ec6a6fbe 11352 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
d0191583 11353" >&5
ec6a6fbe 11354$as_echo "$as_me: error: --with-mirrors parameter invalid
d0191583
JM
11355" >&2;}
11356 { (exit 1); exit 1; }; }
11357fi;
ad6254c5 11358
d0191583 11359if test x$MIRRORS = xinternal; then
ad6254c5 11360
d0191583
JM
11361cat >>confdefs.h <<\_ACEOF
11362#define MIRRORED_INTERNAL 1
ad6254c5 11363_ACEOF
8a2fc586 11364
d0191583 11365fi
8a2fc586 11366
8fea97b7
ZK
11367################################################################################
11368{ $as_echo "$as_me:$LINENO: checking whether to include replicators" >&5
11369$as_echo_n "checking whether to include replicators... " >&6; }
11370
11371# Check whether --with-replicators was given.
11372if test "${with_replicators+set}" = set; then
11373 withval=$with_replicators; REPLICATORS=$withval
11374else
71082be4 11375 REPLICATORS=none
8fea97b7
ZK
11376fi
11377
11378{ $as_echo "$as_me:$LINENO: result: $REPLICATORS" >&5
11379$as_echo "$REPLICATORS" >&6; }
11380
11381case "$REPLICATORS" in
11382 none|shared) ;;
11383 internal)
11384cat >>confdefs.h <<\_ACEOF
11385#define REPLICATOR_INTERNAL 1
11386_ACEOF
11387 ;;
11388 *) { { $as_echo "$as_me:$LINENO: error: --with-replicators parameter invalid ($REPLICATORS)" >&5
11389$as_echo "$as_me: error: --with-replicators parameter invalid ($REPLICATORS)" >&2;}
11390 { (exit 1); exit 1; }; } ;;
11391esac
11392
d0191583 11393################################################################################
ec6a6fbe
AK
11394{ $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
11395$as_echo_n "checking whether to enable readline... " >&6; }
d0191583
JM
11396# Check whether --enable-readline was given.
11397if test "${enable_readline+set}" = set; then
11398 enableval=$enable_readline; READLINE=$enableval
11399else
06e459df 11400 READLINE=maybe
d0191583 11401fi
8a2fc586 11402
ec6a6fbe
AK
11403{ $as_echo "$as_me:$LINENO: result: $READLINE" >&5
11404$as_echo "$READLINE" >&6; }
8a2fc586 11405
d0191583 11406################################################################################
ec6a6fbe
AK
11407{ $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
11408$as_echo_n "checking whether to enable realtime support... " >&6; }
d0191583
JM
11409# Check whether --enable-realtime was given.
11410if test "${enable_realtime+set}" = set; then
11411 enableval=$enable_realtime; REALTIME=$enableval
ad6254c5 11412fi
ad6254c5 11413
ec6a6fbe
AK
11414{ $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
11415$as_echo "$REALTIME" >&6; }
d0191583
JM
11416
11417################################################################################
90c80887 11418pkg_config_init() {
e2997b73
AK
11419
11420
11421if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11422 if test -n "$ac_tool_prefix"; then
11423 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11424set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11425{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11426$as_echo_n "checking for $ac_word... " >&6; }
11427if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11428 $as_echo_n "(cached) " >&6
11429else
11430 case $PKG_CONFIG in
11431 [\\/]* | ?:[\\/]*)
11432 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11433 ;;
11434 *)
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11443 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446done
11447done
11448IFS=$as_save_IFS
11449
11450 ;;
11451esac
11452fi
11453PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11454if test -n "$PKG_CONFIG"; then
11455 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11456$as_echo "$PKG_CONFIG" >&6; }
11457else
11458 { $as_echo "$as_me:$LINENO: result: no" >&5
11459$as_echo "no" >&6; }
11460fi
11461
11462
11463fi
11464if test -z "$ac_cv_path_PKG_CONFIG"; then
11465 ac_pt_PKG_CONFIG=$PKG_CONFIG
11466 # Extract the first word of "pkg-config", so it can be a program name with args.
11467set dummy pkg-config; ac_word=$2
11468{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
11470if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
11471 $as_echo_n "(cached) " >&6
11472else
11473 case $ac_pt_PKG_CONFIG in
11474 [\\/]* | ?:[\\/]*)
11475 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11476 ;;
11477 *)
11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481 IFS=$as_save_IFS
11482 test -z "$as_dir" && as_dir=.
11483 for ac_exec_ext in '' $ac_executable_extensions; do
11484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11486 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11487 break 2
11488 fi
11489done
11490done
11491IFS=$as_save_IFS
11492
11493 ;;
11494esac
11495fi
11496ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11497if test -n "$ac_pt_PKG_CONFIG"; then
11498 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
11499$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11500else
11501 { $as_echo "$as_me:$LINENO: result: no" >&5
11502$as_echo "no" >&6; }
11503fi
11504
11505 if test "x$ac_pt_PKG_CONFIG" = x; then
11506 PKG_CONFIG=""
11507 else
11508 case $cross_compiling:$ac_tool_warned in
11509yes:)
11510{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512ac_tool_warned=yes ;;
11513esac
11514 PKG_CONFIG=$ac_pt_PKG_CONFIG
11515 fi
11516else
11517 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11518fi
11519
11520fi
11521if test -n "$PKG_CONFIG"; then
11522 _pkg_min_version=0.9.0
11523 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
11524$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11525 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11526 { $as_echo "$as_me:$LINENO: result: yes" >&5
11527$as_echo "yes" >&6; }
11528 else
11529 { $as_echo "$as_me:$LINENO: result: no" >&5
11530$as_echo "no" >&6; }
11531 PKG_CONFIG=""
11532 fi
8c4e8a18 11533
e2997b73
AK
11534fi
11535
11536pkg_failed=no
a946372e
AK
11537{ $as_echo "$as_me:$LINENO: checking for PKGCONFIGINIT" >&5
11538$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
e2997b73 11539
a946372e
AK
11540if test -n "$PKGCONFIGINIT_CFLAGS"; then
11541 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
e2997b73
AK
11542 elif test -n "$PKG_CONFIG"; then
11543 if test -n "$PKG_CONFIG" && \
a946372e
AK
11544 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11545 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11546 ac_status=$?
11547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); }; then
a946372e 11549 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11550else
11551 pkg_failed=yes
11552fi
11553 else
11554 pkg_failed=untried
11555fi
a946372e
AK
11556if test -n "$PKGCONFIGINIT_LIBS"; then
11557 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
e2997b73
AK
11558 elif test -n "$PKG_CONFIG"; then
11559 if test -n "$PKG_CONFIG" && \
a946372e
AK
11560 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\"") >&5
11561 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
e2997b73
AK
11562 ac_status=$?
11563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; then
a946372e 11565 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
e2997b73
AK
11566else
11567 pkg_failed=yes
11568fi
11569 else
11570 pkg_failed=untried
11571fi
11572
11573
11574
11575if test $pkg_failed = yes; then
11576
11577if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11578 _pkg_short_errors_supported=yes
11579else
11580 _pkg_short_errors_supported=no
11581fi
11582 if test $_pkg_short_errors_supported = yes; then
a946372e 11583 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
e2997b73 11584 else
a946372e 11585 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
e2997b73
AK
11586 fi
11587 # Put the nasty error message in config.log where it belongs
a946372e 11588 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
e2997b73 11589
8c4e8a18
FDN
11590 { $as_echo "$as_me:$LINENO: result: no" >&5
11591$as_echo "no" >&6; }
11592 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
a946372e 11593$as_echo "pkg-config initialized" >&6; }
e2997b73 11594elif test $pkg_failed = untried; then
a946372e
AK
11595 { $as_echo "$as_me:$LINENO: result: pkg-config initialized" >&5
11596$as_echo "pkg-config initialized" >&6; }
e2997b73 11597else
a946372e
AK
11598 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
11599 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
e2997b73
AK
11600 { $as_echo "$as_me:$LINENO: result: yes" >&5
11601$as_echo "yes" >&6; }
8c4e8a18 11602 :
e2997b73 11603fi
90c80887
AK
11604 PKGCONFIG_INIT=1
11605}
11606
11607################################################################################
11608{ $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
11609$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
11610
11611# Check whether --with-clvmd was given.
11612if test "${with_clvmd+set}" = set; then
71082be4 11613 withval=$with_clvmd; CLVMD=$withval
90c80887 11614else
71082be4 11615 CLVMD=none
90c80887
AK
11616fi
11617
11618if test x$CLVMD = xyes; then
11619 CLVMD=all
11620fi
11621{ $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
11622$as_echo "$CLVMD" >&6; }
11623
11624if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
11625 CLUSTER=internal
11626fi
11627
11628if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
11629 pkg_config_init
11630fi
11631
11632
11633if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
11634 BUILDGULM=yes
11635fi
11636if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
11637 BUILDCOROSYNC=yes
11638fi
11639if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
11640 BUILDOPENAIS=yes
11641fi
11642if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
11643 BUILDCMAN=yes
11644fi
11645
11646if test x$BUILDGULM = xyes; then
11647 if test x$BUILDCOROSYNC = xyes || \
11648 test x$BUILDOPENAIS = xyes; then
11649 { { $as_echo "$as_me:$LINENO: error: requested clvmd configuration is not valid" >&5
11650$as_echo "$as_me: error: requested clvmd configuration is not valid" >&2;}
11651 { (exit 1); exit 1; }; }
11652 fi
a946372e 11653fi
e2997b73 11654
a946372e
AK
11655soft_bailout() {
11656 NOTFOUND=1
11657}
e2997b73 11658
a946372e
AK
11659hard_bailout() {
11660 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11661$as_echo "$as_me: error: bailing out" >&2;}
11662 { (exit 1); exit 1; }; }
11663}
11664
11665if test x$CLVMD = xall; then
11666 bailout=soft_bailout
11667 BUILDGULM=yes
11668 BUILDCMAN=yes
11669 BUILDCOROSYNC=yes
11670 BUILDOPENAIS=yes
e2997b73 11671else
a946372e 11672 bailout=hard_bailout
e2997b73 11673fi
a946372e
AK
11674
11675check_lib_no_libs() {
11676 lib_no_libs_arg1=$1
11677 shift
11678 lib_no_libs_arg2=$1
11679 shift
11680 lib_no_libs_args=$@
11681
11682as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
11683{ $as_echo "$as_me:$LINENO: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
11684$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
11685if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
11686 $as_echo_n "(cached) " >&6
11687else
11688 ac_check_lib_save_LIBS=$LIBS
11689LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
11690cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696
11697/* Override any GCC internal prototype to avoid an error.
11698 Use char because int might match the return type of a GCC
11699 builtin and then its argument prototype would still apply. */
11700#ifdef __cplusplus
11701extern "C"
11702#endif
11703char $lib_no_libs_arg2 ();
11704int
11705main ()
11706{
11707return $lib_no_libs_arg2 ();
11708 ;
11709 return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext conftest$ac_exeext
11713if { (ac_try="$ac_link"
11714case "(($ac_try" in
11715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716 *) ac_try_echo=$ac_try;;
11717esac
11718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719$as_echo "$ac_try_echo") >&5
11720 (eval "$ac_link") 2>conftest.er1
e2997b73 11721 ac_status=$?
a946372e
AK
11722 grep -v '^ *+' conftest.er1 >conftest.err
11723 rm -f conftest.er1
11724 cat conftest.err >&5
e2997b73 11725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
a946372e
AK
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest$ac_exeext && {
11730 test "$cross_compiling" = yes ||
11731 $as_test_x conftest$ac_exeext
11732 }; then
11733 eval "$as_ac_Lib=yes"
e2997b73 11734else
a946372e
AK
11735 $as_echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
e2997b73 11737
a946372e
AK
11738 eval "$as_ac_Lib=no"
11739fi
e2997b73 11740
a946372e
AK
11741rm -rf conftest.dSYM
11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743 conftest$ac_exeext conftest.$ac_ext
11744LIBS=$ac_check_lib_save_LIBS
11745fi
11746ac_res=`eval 'as_val=${'$as_ac_Lib'}
11747 $as_echo "$as_val"'`
11748 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11749$as_echo "$ac_res" >&6; }
11750as_val=`eval 'as_val=${'$as_ac_Lib'}
11751 $as_echo "$as_val"'`
11752 if test "x$as_val" = x""yes; then
11753 cat >>confdefs.h <<_ACEOF
11754#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
11755_ACEOF
e2997b73 11756
a946372e 11757 LIBS="-l$lib_no_libs_arg1 $LIBS"
e2997b73 11758
e2997b73 11759else
a946372e 11760 $bailout
e2997b73 11761fi
e2997b73 11762
a946372e
AK
11763 LIBS=$ac_check_lib_save_LIBS
11764}
11765
11766if test x$BUILDGULM = xyes; then
e2997b73
AK
11767
11768pkg_failed=no
a946372e
AK
11769{ $as_echo "$as_me:$LINENO: checking for CCS" >&5
11770$as_echo_n "checking for CCS... " >&6; }
e2997b73 11771
a946372e
AK
11772if test -n "$CCS_CFLAGS"; then
11773 pkg_cv_CCS_CFLAGS="$CCS_CFLAGS"
e2997b73
AK
11774 elif test -n "$PKG_CONFIG"; then
11775 if test -n "$PKG_CONFIG" && \
a946372e
AK
11776 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11777 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11778 ac_status=$?
11779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; then
a946372e 11781 pkg_cv_CCS_CFLAGS=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
e2997b73
AK
11782else
11783 pkg_failed=yes
11784fi
11785 else
11786 pkg_failed=untried
11787fi
a946372e
AK
11788if test -n "$CCS_LIBS"; then
11789 pkg_cv_CCS_LIBS="$CCS_LIBS"
e2997b73
AK
11790 elif test -n "$PKG_CONFIG"; then
11791 if test -n "$PKG_CONFIG" && \
a946372e
AK
11792 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libccs\"") >&5
11793 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
e2997b73
AK
11794 ac_status=$?
11795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); }; then
a946372e 11797 pkg_cv_CCS_LIBS=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
e2997b73
AK
11798else
11799 pkg_failed=yes
11800fi
11801 else
11802 pkg_failed=untried
11803fi
11804
11805
11806
11807if test $pkg_failed = yes; then
11808
11809if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11810 _pkg_short_errors_supported=yes
11811else
11812 _pkg_short_errors_supported=no
11813fi
11814 if test $_pkg_short_errors_supported = yes; then
a946372e 11815 CCS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
e2997b73 11816 else
a946372e 11817 CCS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libccs" 2>&1`
e2997b73
AK
11818 fi
11819 # Put the nasty error message in config.log where it belongs
a946372e 11820 echo "$CCS_PKG_ERRORS" >&5
e2997b73 11821
8c4e8a18
FDN
11822 { $as_echo "$as_me:$LINENO: result: no" >&5
11823$as_echo "no" >&6; }
11824 NOTFOUND=0
e2997b73 11825
a946372e
AK
11826for ac_header in ccs.h
11827do
11828as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11830 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11831$as_echo_n "checking for $ac_header... " >&6; }
11832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11833 $as_echo_n "(cached) " >&6
d0191583 11834fi
a946372e
AK
11835ac_res=`eval 'as_val=${'$as_ac_Header'}
11836 $as_echo "$as_val"'`
11837 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11838$as_echo "$ac_res" >&6; }
fc54be10 11839else
a946372e
AK
11840 # Is the header compilable?
11841{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11842$as_echo_n "checking $ac_header usability... " >&6; }
11843cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849$ac_includes_default
11850#include <$ac_header>
11851_ACEOF
11852rm -f conftest.$ac_objext
11853if { (ac_try="$ac_compile"
11854case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11857esac
11858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11859$as_echo "$ac_try_echo") >&5
11860 (eval "$ac_compile") 2>conftest.er1
11861 ac_status=$?
11862 grep -v '^ *+' conftest.er1 >conftest.err
11863 rm -f conftest.er1
11864 cat conftest.err >&5
11865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } && {
11867 test -z "$ac_c_werror_flag" ||
11868 test ! -s conftest.err
11869 } && test -s conftest.$ac_objext; then
11870 ac_header_compiler=yes
11871else
11872 $as_echo "$as_me: failed program was:" >&5
11873sed 's/^/| /' conftest.$ac_ext >&5
d0191583 11874
a946372e 11875 ac_header_compiler=no
d0191583
JM
11876fi
11877
a946372e
AK
11878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11879{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11880$as_echo "$ac_header_compiler" >&6; }
fddafd51 11881
a946372e
AK
11882# Is the header present?
11883{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11884$as_echo_n "checking $ac_header presence... " >&6; }
11885cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891#include <$ac_header>
11892_ACEOF
11893if { (ac_try="$ac_cpp conftest.$ac_ext"
11894case "(($ac_try" in
11895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11897esac
11898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11899$as_echo "$ac_try_echo") >&5
11900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11901 ac_status=$?
11902 grep -v '^ *+' conftest.er1 >conftest.err
11903 rm -f conftest.er1
11904 cat conftest.err >&5
11905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } >/dev/null && {
11907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11908 test ! -s conftest.err
11909 }; then
11910 ac_header_preproc=yes
11911else
11912 $as_echo "$as_me: failed program was:" >&5
11913sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 ac_header_preproc=no
11916fi
11917
11918rm -f conftest.err conftest.$ac_ext
11919{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11920$as_echo "$ac_header_preproc" >&6; }
11921
11922# So? What about this header?
11923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11924 yes:no: )
11925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11926$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11928$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11929 ac_header_preproc=yes
11930 ;;
11931 no:yes:* )
11932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11933$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11935$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11937$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11939$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11941$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11943$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11944
11945 ;;
11946esac
11947{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11948$as_echo_n "checking for $ac_header... " >&6; }
11949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11950 $as_echo_n "(cached) " >&6
11951else
11952 eval "$as_ac_Header=\$ac_header_preproc"
11953fi
11954ac_res=`eval 'as_val=${'$as_ac_Header'}
11955 $as_echo "$as_val"'`
11956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11957$as_echo "$ac_res" >&6; }
11958
11959fi
11960as_val=`eval 'as_val=${'$as_ac_Header'}
11961 $as_echo "$as_val"'`
11962 if test "x$as_val" = x""yes; then
11963 cat >>confdefs.h <<_ACEOF
11964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965_ACEOF
11966
11967else
11968 $bailout
11969fi
11970
11971done
11972
11973 check_lib_no_libs ccs ccs_connect
11974 if test $NOTFOUND = 0; then
11975 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
11976$as_echo "no pkg for libccs, using -lccs" >&6; }
11977 CCS_LIBS="-lccs"
11978 HAVE_CCS=yes
11979 fi
11980elif test $pkg_failed = untried; then
11981 NOTFOUND=0
11982
11983for ac_header in ccs.h
11984do
11985as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11987 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11988$as_echo_n "checking for $ac_header... " >&6; }
11989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 $as_echo_n "(cached) " >&6
11991fi
11992ac_res=`eval 'as_val=${'$as_ac_Header'}
11993 $as_echo "$as_val"'`
11994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11995$as_echo "$ac_res" >&6; }
11996else
11997 # Is the header compilable?
11998{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11999$as_echo_n "checking $ac_header usability... " >&6; }
12000cat >conftest.$ac_ext <<_ACEOF
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
12006$ac_includes_default
12007#include <$ac_header>
12008_ACEOF
12009rm -f conftest.$ac_objext
12010if { (ac_try="$ac_compile"
12011case "(($ac_try" in
12012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013 *) ac_try_echo=$ac_try;;
12014esac
12015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12016$as_echo "$ac_try_echo") >&5
12017 (eval "$ac_compile") 2>conftest.er1
12018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } && {
12024 test -z "$ac_c_werror_flag" ||
12025 test ! -s conftest.err
12026 } && test -s conftest.$ac_objext; then
12027 ac_header_compiler=yes
12028else
12029 $as_echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032 ac_header_compiler=no
12033fi
12034
12035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12037$as_echo "$ac_header_compiler" >&6; }
12038
12039# Is the header present?
12040{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12041$as_echo_n "checking $ac_header presence... " >&6; }
12042cat >conftest.$ac_ext <<_ACEOF
12043/* confdefs.h. */
12044_ACEOF
12045cat confdefs.h >>conftest.$ac_ext
12046cat >>conftest.$ac_ext <<_ACEOF
12047/* end confdefs.h. */
12048#include <$ac_header>
12049_ACEOF
12050if { (ac_try="$ac_cpp conftest.$ac_ext"
12051case "(($ac_try" in
12052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12053 *) ac_try_echo=$ac_try;;
12054esac
12055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12056$as_echo "$ac_try_echo") >&5
12057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12058 ac_status=$?
12059 grep -v '^ *+' conftest.er1 >conftest.err
12060 rm -f conftest.er1
12061 cat conftest.err >&5
12062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); } >/dev/null && {
12064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12065 test ! -s conftest.err
12066 }; then
12067 ac_header_preproc=yes
12068else
12069 $as_echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
12072 ac_header_preproc=no
12073fi
12074
12075rm -f conftest.err conftest.$ac_ext
12076{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12077$as_echo "$ac_header_preproc" >&6; }
12078
12079# So? What about this header?
12080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12081 yes:no: )
12082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12083$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12085$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12086 ac_header_preproc=yes
12087 ;;
12088 no:yes:* )
12089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12090$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12092$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12094$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12096$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12098$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12100$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12101
12102 ;;
12103esac
12104{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12105$as_echo_n "checking for $ac_header... " >&6; }
12106if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12107 $as_echo_n "(cached) " >&6
12108else
12109 eval "$as_ac_Header=\$ac_header_preproc"
12110fi
12111ac_res=`eval 'as_val=${'$as_ac_Header'}
12112 $as_echo "$as_val"'`
12113 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12114$as_echo "$ac_res" >&6; }
12115
12116fi
12117as_val=`eval 'as_val=${'$as_ac_Header'}
12118 $as_echo "$as_val"'`
12119 if test "x$as_val" = x""yes; then
12120 cat >>confdefs.h <<_ACEOF
12121#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12122_ACEOF
12123
12124else
12125 $bailout
12126fi
12127
12128done
12129
12130 check_lib_no_libs ccs ccs_connect
12131 if test $NOTFOUND = 0; then
12132 { $as_echo "$as_me:$LINENO: result: no pkg for libccs, using -lccs" >&5
12133$as_echo "no pkg for libccs, using -lccs" >&6; }
12134 CCS_LIBS="-lccs"
12135 HAVE_CCS=yes
12136 fi
12137else
12138 CCS_CFLAGS=$pkg_cv_CCS_CFLAGS
12139 CCS_LIBS=$pkg_cv_CCS_LIBS
12140 { $as_echo "$as_me:$LINENO: result: yes" >&5
12141$as_echo "yes" >&6; }
12142 HAVE_CCS=yes
12143fi
12144
12145pkg_failed=no
12146{ $as_echo "$as_me:$LINENO: checking for GULM" >&5
12147$as_echo_n "checking for GULM... " >&6; }
12148
12149if test -n "$GULM_CFLAGS"; then
12150 pkg_cv_GULM_CFLAGS="$GULM_CFLAGS"
12151 elif test -n "$PKG_CONFIG"; then
12152 if test -n "$PKG_CONFIG" && \
12153 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12154 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12155 ac_status=$?
12156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; then
12158 pkg_cv_GULM_CFLAGS=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
12159else
12160 pkg_failed=yes
12161fi
12162 else
12163 pkg_failed=untried
12164fi
12165if test -n "$GULM_LIBS"; then
12166 pkg_cv_GULM_LIBS="$GULM_LIBS"
12167 elif test -n "$PKG_CONFIG"; then
12168 if test -n "$PKG_CONFIG" && \
12169 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgulm\"") >&5
12170 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
12171 ac_status=$?
12172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; then
12174 pkg_cv_GULM_LIBS=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
12175else
12176 pkg_failed=yes
12177fi
12178 else
12179 pkg_failed=untried
12180fi
12181
12182
12183
12184if test $pkg_failed = yes; then
12185
12186if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12187 _pkg_short_errors_supported=yes
12188else
12189 _pkg_short_errors_supported=no
12190fi
12191 if test $_pkg_short_errors_supported = yes; then
12192 GULM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
12193 else
12194 GULM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
12195 fi
12196 # Put the nasty error message in config.log where it belongs
12197 echo "$GULM_PKG_ERRORS" >&5
12198
8c4e8a18
FDN
12199 { $as_echo "$as_me:$LINENO: result: no" >&5
12200$as_echo "no" >&6; }
12201 NOTFOUND=0
a946372e
AK
12202
12203for ac_header in libgulm.h
12204do
12205as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12208$as_echo_n "checking for $ac_header... " >&6; }
12209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 $as_echo_n "(cached) " >&6
12211fi
12212ac_res=`eval 'as_val=${'$as_ac_Header'}
12213 $as_echo "$as_val"'`
12214 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12215$as_echo "$ac_res" >&6; }
12216else
12217 # Is the header compilable?
12218{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12219$as_echo_n "checking $ac_header usability... " >&6; }
12220cat >conftest.$ac_ext <<_ACEOF
12221/* confdefs.h. */
12222_ACEOF
12223cat confdefs.h >>conftest.$ac_ext
12224cat >>conftest.$ac_ext <<_ACEOF
12225/* end confdefs.h. */
12226$ac_includes_default
12227#include <$ac_header>
12228_ACEOF
12229rm -f conftest.$ac_objext
12230if { (ac_try="$ac_compile"
12231case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12234esac
12235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12236$as_echo "$ac_try_echo") >&5
12237 (eval "$ac_compile") 2>conftest.er1
12238 ac_status=$?
12239 grep -v '^ *+' conftest.er1 >conftest.err
12240 rm -f conftest.er1
12241 cat conftest.err >&5
12242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243 (exit $ac_status); } && {
12244 test -z "$ac_c_werror_flag" ||
12245 test ! -s conftest.err
12246 } && test -s conftest.$ac_objext; then
12247 ac_header_compiler=yes
12248else
12249 $as_echo "$as_me: failed program was:" >&5
12250sed 's/^/| /' conftest.$ac_ext >&5
12251
12252 ac_header_compiler=no
12253fi
12254
12255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12257$as_echo "$ac_header_compiler" >&6; }
12258
12259# Is the header present?
12260{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12261$as_echo_n "checking $ac_header presence... " >&6; }
12262cat >conftest.$ac_ext <<_ACEOF
12263/* confdefs.h. */
12264_ACEOF
12265cat confdefs.h >>conftest.$ac_ext
12266cat >>conftest.$ac_ext <<_ACEOF
12267/* end confdefs.h. */
12268#include <$ac_header>
12269_ACEOF
12270if { (ac_try="$ac_cpp conftest.$ac_ext"
12271case "(($ac_try" in
12272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12273 *) ac_try_echo=$ac_try;;
12274esac
12275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12276$as_echo "$ac_try_echo") >&5
12277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } >/dev/null && {
12284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 }; then
12287 ac_header_preproc=yes
12288else
12289 $as_echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
12292 ac_header_preproc=no
12293fi
12294
12295rm -f conftest.err conftest.$ac_ext
12296{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12297$as_echo "$ac_header_preproc" >&6; }
12298
12299# So? What about this header?
12300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12301 yes:no: )
12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12303$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12305$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12306 ac_header_preproc=yes
12307 ;;
12308 no:yes:* )
12309 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12310$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12312$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12314$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12316$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12318$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12320$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12321
12322 ;;
12323esac
12324{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12325$as_echo_n "checking for $ac_header... " >&6; }
12326if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12327 $as_echo_n "(cached) " >&6
12328else
12329 eval "$as_ac_Header=\$ac_header_preproc"
12330fi
12331ac_res=`eval 'as_val=${'$as_ac_Header'}
12332 $as_echo "$as_val"'`
12333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12334$as_echo "$ac_res" >&6; }
12335
12336fi
12337as_val=`eval 'as_val=${'$as_ac_Header'}
12338 $as_echo "$as_val"'`
12339 if test "x$as_val" = x""yes; then
12340 cat >>confdefs.h <<_ACEOF
12341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12342_ACEOF
12343
12344else
12345 $bailout
12346fi
12347
12348done
12349
12350 check_lib_no_libs gulm lg_core_login
12351 if test $NOTFOUND = 0; then
12352 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12353$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12354 GULM_LIBS="-lgulm"
12355 HAVE_GULM=yes
12356 fi
12357elif test $pkg_failed = untried; then
12358 NOTFOUND=0
12359
12360for ac_header in libgulm.h
12361do
12362as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12363if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12365$as_echo_n "checking for $ac_header... " >&6; }
12366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12367 $as_echo_n "(cached) " >&6
12368fi
12369ac_res=`eval 'as_val=${'$as_ac_Header'}
12370 $as_echo "$as_val"'`
12371 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12372$as_echo "$ac_res" >&6; }
12373else
12374 # Is the header compilable?
12375{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12376$as_echo_n "checking $ac_header usability... " >&6; }
12377cat >conftest.$ac_ext <<_ACEOF
12378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
12383$ac_includes_default
12384#include <$ac_header>
12385_ACEOF
12386rm -f conftest.$ac_objext
12387if { (ac_try="$ac_compile"
12388case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391esac
12392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12393$as_echo "$ac_try_echo") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
12404 ac_header_compiler=yes
12405else
12406 $as_echo "$as_me: failed program was:" >&5
12407sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 ac_header_compiler=no
12410fi
12411
12412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12413{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12414$as_echo "$ac_header_compiler" >&6; }
12415
12416# Is the header present?
12417{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12418$as_echo_n "checking $ac_header presence... " >&6; }
12419cat >conftest.$ac_ext <<_ACEOF
12420/* confdefs.h. */
12421_ACEOF
12422cat confdefs.h >>conftest.$ac_ext
12423cat >>conftest.$ac_ext <<_ACEOF
12424/* end confdefs.h. */
12425#include <$ac_header>
12426_ACEOF
12427if { (ac_try="$ac_cpp conftest.$ac_ext"
12428case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431esac
12432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12433$as_echo "$ac_try_echo") >&5
12434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12435 ac_status=$?
12436 grep -v '^ *+' conftest.er1 >conftest.err
12437 rm -f conftest.er1
12438 cat conftest.err >&5
12439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); } >/dev/null && {
12441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12442 test ! -s conftest.err
12443 }; then
12444 ac_header_preproc=yes
12445else
12446 $as_echo "$as_me: failed program was:" >&5
12447sed 's/^/| /' conftest.$ac_ext >&5
12448
12449 ac_header_preproc=no
12450fi
12451
12452rm -f conftest.err conftest.$ac_ext
12453{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12454$as_echo "$ac_header_preproc" >&6; }
12455
12456# So? What about this header?
12457case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12458 yes:no: )
12459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12460$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12462$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12463 ac_header_preproc=yes
12464 ;;
12465 no:yes:* )
12466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12467$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12469$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12471$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12473$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12475$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12477$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12478
12479 ;;
12480esac
12481{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12482$as_echo_n "checking for $ac_header... " >&6; }
12483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12484 $as_echo_n "(cached) " >&6
12485else
12486 eval "$as_ac_Header=\$ac_header_preproc"
12487fi
12488ac_res=`eval 'as_val=${'$as_ac_Header'}
12489 $as_echo "$as_val"'`
12490 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12491$as_echo "$ac_res" >&6; }
12492
12493fi
12494as_val=`eval 'as_val=${'$as_ac_Header'}
12495 $as_echo "$as_val"'`
12496 if test "x$as_val" = x""yes; then
12497 cat >>confdefs.h <<_ACEOF
12498#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12499_ACEOF
12500
12501else
12502 $bailout
12503fi
12504
12505done
12506
12507 check_lib_no_libs gulm lg_core_login
12508 if test $NOTFOUND = 0; then
12509 { $as_echo "$as_me:$LINENO: result: no pkg for libgulm, using -lgulm" >&5
12510$as_echo "no pkg for libgulm, using -lgulm" >&6; }
12511 GULM_LIBS="-lgulm"
12512 HAVE_GULM=yes
12513 fi
12514else
12515 GULM_CFLAGS=$pkg_cv_GULM_CFLAGS
12516 GULM_LIBS=$pkg_cv_GULM_LIBS
12517 { $as_echo "$as_me:$LINENO: result: yes" >&5
12518$as_echo "yes" >&6; }
12519 HAVE_GULM=yes
12520fi
12521fi
12522
12523if test x$BUILDCMAN = xyes; then
12524
12525pkg_failed=no
12526{ $as_echo "$as_me:$LINENO: checking for CMAN" >&5
12527$as_echo_n "checking for CMAN... " >&6; }
12528
12529if test -n "$CMAN_CFLAGS"; then
12530 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
12531 elif test -n "$PKG_CONFIG"; then
12532 if test -n "$PKG_CONFIG" && \
12533 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12534 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12535 ac_status=$?
12536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); }; then
12538 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
12539else
12540 pkg_failed=yes
12541fi
12542 else
12543 pkg_failed=untried
12544fi
12545if test -n "$CMAN_LIBS"; then
12546 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
12547 elif test -n "$PKG_CONFIG"; then
12548 if test -n "$PKG_CONFIG" && \
12549 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcman\"") >&5
12550 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
12551 ac_status=$?
12552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; then
12554 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
12555else
12556 pkg_failed=yes
12557fi
12558 else
12559 pkg_failed=untried
12560fi
12561
12562
12563
12564if test $pkg_failed = yes; then
12565
12566if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12567 _pkg_short_errors_supported=yes
12568else
12569 _pkg_short_errors_supported=no
12570fi
12571 if test $_pkg_short_errors_supported = yes; then
12572 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
12573 else
12574 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
12575 fi
12576 # Put the nasty error message in config.log where it belongs
12577 echo "$CMAN_PKG_ERRORS" >&5
12578
8c4e8a18
FDN
12579 { $as_echo "$as_me:$LINENO: result: no" >&5
12580$as_echo "no" >&6; }
12581 NOTFOUND=0
a946372e
AK
12582
12583for ac_header in libcman.h
12584do
12585as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12587 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12588$as_echo_n "checking for $ac_header... " >&6; }
12589if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12590 $as_echo_n "(cached) " >&6
12591fi
12592ac_res=`eval 'as_val=${'$as_ac_Header'}
12593 $as_echo "$as_val"'`
12594 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12595$as_echo "$ac_res" >&6; }
12596else
12597 # Is the header compilable?
12598{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12599$as_echo_n "checking $ac_header usability... " >&6; }
12600cat >conftest.$ac_ext <<_ACEOF
12601/* confdefs.h. */
12602_ACEOF
12603cat confdefs.h >>conftest.$ac_ext
12604cat >>conftest.$ac_ext <<_ACEOF
12605/* end confdefs.h. */
12606$ac_includes_default
12607#include <$ac_header>
12608_ACEOF
12609rm -f conftest.$ac_objext
12610if { (ac_try="$ac_compile"
12611case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614esac
12615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12616$as_echo "$ac_try_echo") >&5
12617 (eval "$ac_compile") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest.$ac_objext; then
12627 ac_header_compiler=yes
12628else
12629 $as_echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
12632 ac_header_compiler=no
12633fi
12634
12635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12636{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12637$as_echo "$ac_header_compiler" >&6; }
12638
12639# Is the header present?
12640{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12641$as_echo_n "checking $ac_header presence... " >&6; }
12642cat >conftest.$ac_ext <<_ACEOF
12643/* confdefs.h. */
12644_ACEOF
12645cat confdefs.h >>conftest.$ac_ext
12646cat >>conftest.$ac_ext <<_ACEOF
12647/* end confdefs.h. */
12648#include <$ac_header>
12649_ACEOF
12650if { (ac_try="$ac_cpp conftest.$ac_ext"
12651case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12654esac
12655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12656$as_echo "$ac_try_echo") >&5
12657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12658 ac_status=$?
12659 grep -v '^ *+' conftest.er1 >conftest.err
12660 rm -f conftest.er1
12661 cat conftest.err >&5
12662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } >/dev/null && {
12664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12665 test ! -s conftest.err
12666 }; then
12667 ac_header_preproc=yes
12668else
12669 $as_echo "$as_me: failed program was:" >&5
12670sed 's/^/| /' conftest.$ac_ext >&5
12671
12672 ac_header_preproc=no
12673fi
12674
12675rm -f conftest.err conftest.$ac_ext
12676{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12677$as_echo "$ac_header_preproc" >&6; }
12678
12679# So? What about this header?
12680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12681 yes:no: )
12682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12683$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12685$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12686 ac_header_preproc=yes
12687 ;;
12688 no:yes:* )
12689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12690$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12692$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12694$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12696$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12698$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12700$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12701
12702 ;;
12703esac
12704{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12705$as_echo_n "checking for $ac_header... " >&6; }
12706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12707 $as_echo_n "(cached) " >&6
12708else
12709 eval "$as_ac_Header=\$ac_header_preproc"
12710fi
12711ac_res=`eval 'as_val=${'$as_ac_Header'}
12712 $as_echo "$as_val"'`
12713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12714$as_echo "$ac_res" >&6; }
12715
12716fi
12717as_val=`eval 'as_val=${'$as_ac_Header'}
12718 $as_echo "$as_val"'`
12719 if test "x$as_val" = x""yes; then
12720 cat >>confdefs.h <<_ACEOF
12721#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12722_ACEOF
12723
12724else
12725 $bailout
12726fi
12727
12728done
12729
12730 check_lib_no_libs cman cman_init
12731 if test $NOTFOUND = 0; then
12732 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12733$as_echo "no pkg for libcman, using -lcman" >&6; }
12734 CMAN_LIBS="-lcman"
12735 HAVE_CMAN=yes
12736 fi
12737elif test $pkg_failed = untried; then
12738 NOTFOUND=0
12739
12740for ac_header in libcman.h
12741do
12742as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12744 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12745$as_echo_n "checking for $ac_header... " >&6; }
12746if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12747 $as_echo_n "(cached) " >&6
12748fi
12749ac_res=`eval 'as_val=${'$as_ac_Header'}
12750 $as_echo "$as_val"'`
12751 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12752$as_echo "$ac_res" >&6; }
12753else
12754 # Is the header compilable?
12755{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12756$as_echo_n "checking $ac_header usability... " >&6; }
12757cat >conftest.$ac_ext <<_ACEOF
12758/* confdefs.h. */
12759_ACEOF
12760cat confdefs.h >>conftest.$ac_ext
12761cat >>conftest.$ac_ext <<_ACEOF
12762/* end confdefs.h. */
12763$ac_includes_default
12764#include <$ac_header>
12765_ACEOF
12766rm -f conftest.$ac_objext
12767if { (ac_try="$ac_compile"
12768case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771esac
12772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12773$as_echo "$ac_try_echo") >&5
12774 (eval "$ac_compile") 2>conftest.er1
12775 ac_status=$?
12776 grep -v '^ *+' conftest.er1 >conftest.err
12777 rm -f conftest.er1
12778 cat conftest.err >&5
12779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } && {
12781 test -z "$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12783 } && test -s conftest.$ac_objext; then
12784 ac_header_compiler=yes
12785else
12786 $as_echo "$as_me: failed program was:" >&5
12787sed 's/^/| /' conftest.$ac_ext >&5
12788
12789 ac_header_compiler=no
12790fi
12791
12792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12793{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12794$as_echo "$ac_header_compiler" >&6; }
12795
12796# Is the header present?
12797{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12798$as_echo_n "checking $ac_header presence... " >&6; }
12799cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
12805#include <$ac_header>
12806_ACEOF
12807if { (ac_try="$ac_cpp conftest.$ac_ext"
12808case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811esac
12812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12813$as_echo "$ac_try_echo") >&5
12814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12815 ac_status=$?
12816 grep -v '^ *+' conftest.er1 >conftest.err
12817 rm -f conftest.er1
12818 cat conftest.err >&5
12819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } >/dev/null && {
12821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 }; then
12824 ac_header_preproc=yes
12825else
12826 $as_echo "$as_me: failed program was:" >&5
12827sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ac_header_preproc=no
12830fi
12831
12832rm -f conftest.err conftest.$ac_ext
12833{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12834$as_echo "$ac_header_preproc" >&6; }
12835
12836# So? What about this header?
12837case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12838 yes:no: )
12839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12840$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12842$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12843 ac_header_preproc=yes
12844 ;;
12845 no:yes:* )
12846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12847$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12849$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12851$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12853$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12855$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12857$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12858
12859 ;;
12860esac
12861{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12862$as_echo_n "checking for $ac_header... " >&6; }
12863if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12864 $as_echo_n "(cached) " >&6
12865else
12866 eval "$as_ac_Header=\$ac_header_preproc"
12867fi
12868ac_res=`eval 'as_val=${'$as_ac_Header'}
12869 $as_echo "$as_val"'`
12870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12871$as_echo "$ac_res" >&6; }
12872
12873fi
12874as_val=`eval 'as_val=${'$as_ac_Header'}
12875 $as_echo "$as_val"'`
12876 if test "x$as_val" = x""yes; then
12877 cat >>confdefs.h <<_ACEOF
12878#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12879_ACEOF
12880
12881else
12882 $bailout
12883fi
12884
12885done
12886
12887 check_lib_no_libs cman cman_init
12888 if test $NOTFOUND = 0; then
12889 { $as_echo "$as_me:$LINENO: result: no pkg for libcman, using -lcman" >&5
12890$as_echo "no pkg for libcman, using -lcman" >&6; }
12891 CMAN_LIBS="-lcman"
12892 HAVE_CMAN=yes
12893 fi
12894else
12895 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
12896 CMAN_LIBS=$pkg_cv_CMAN_LIBS
12897 { $as_echo "$as_me:$LINENO: result: yes" >&5
12898$as_echo "yes" >&6; }
12899 HAVE_CMAN=yes
12900fi
12901 CHECKCONFDB=yes
12902 CHECKDLM=yes
12903fi
12904
12905if test x$BUILDCOROSYNC = xyes || \
12906 test x$BUILDOPENAIS = xyes; then
12907
12908pkg_failed=no
12909{ $as_echo "$as_me:$LINENO: checking for COROSYNC" >&5
12910$as_echo_n "checking for COROSYNC... " >&6; }
12911
12912if test -n "$COROSYNC_CFLAGS"; then
12913 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
12914 elif test -n "$PKG_CONFIG"; then
12915 if test -n "$PKG_CONFIG" && \
12916 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12917 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; then
12921 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
12922else
12923 pkg_failed=yes
12924fi
12925 else
12926 pkg_failed=untried
12927fi
12928if test -n "$COROSYNC_LIBS"; then
12929 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
12930 elif test -n "$PKG_CONFIG"; then
12931 if test -n "$PKG_CONFIG" && \
12932 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"corosync\"") >&5
12933 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
12934 ac_status=$?
12935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; then
12937 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
12938else
12939 pkg_failed=yes
12940fi
12941 else
12942 pkg_failed=untried
12943fi
12944
12945
12946
12947if test $pkg_failed = yes; then
12948
12949if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12950 _pkg_short_errors_supported=yes
12951else
12952 _pkg_short_errors_supported=no
12953fi
12954 if test $_pkg_short_errors_supported = yes; then
12955 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
12956 else
12957 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
12958 fi
12959 # Put the nasty error message in config.log where it belongs
12960 echo "$COROSYNC_PKG_ERRORS" >&5
12961
8c4e8a18 12962 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 12963$as_echo "no" >&6; }
8c4e8a18
FDN
12964 $bailout
12965elif test $pkg_failed = untried; then
a946372e
AK
12966 $bailout
12967else
12968 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
12969 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
12970 { $as_echo "$as_me:$LINENO: result: yes" >&5
12971$as_echo "yes" >&6; }
12972 HAVE_COROSYNC=yes
12973fi
12974 CHECKCONFDB=yes
12975fi
12976
12977if test x$BUILDCOROSYNC = xyes; then
12978
12979pkg_failed=no
12980{ $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
12981$as_echo_n "checking for QUORUM... " >&6; }
12982
12983if test -n "$QUORUM_CFLAGS"; then
12984 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
12985 elif test -n "$PKG_CONFIG"; then
12986 if test -n "$PKG_CONFIG" && \
12987 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
12988 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
12989 ac_status=$?
12990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; then
12992 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
12993else
12994 pkg_failed=yes
12995fi
12996 else
12997 pkg_failed=untried
12998fi
12999if test -n "$QUORUM_LIBS"; then
13000 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
13001 elif test -n "$PKG_CONFIG"; then
13002 if test -n "$PKG_CONFIG" && \
13003 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
13004 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
13005 ac_status=$?
13006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; then
13008 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
13009else
13010 pkg_failed=yes
13011fi
13012 else
13013 pkg_failed=untried
13014fi
13015
13016
13017
13018if test $pkg_failed = yes; then
13019
13020if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13021 _pkg_short_errors_supported=yes
13022else
13023 _pkg_short_errors_supported=no
13024fi
13025 if test $_pkg_short_errors_supported = yes; then
13026 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
13027 else
13028 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
13029 fi
13030 # Put the nasty error message in config.log where it belongs
13031 echo "$QUORUM_PKG_ERRORS" >&5
13032
8c4e8a18 13033 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13034$as_echo "no" >&6; }
8c4e8a18
FDN
13035 $bailout
13036elif test $pkg_failed = untried; then
a946372e
AK
13037 $bailout
13038else
13039 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
13040 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
13041 { $as_echo "$as_me:$LINENO: result: yes" >&5
13042$as_echo "yes" >&6; }
13043 HAVE_QUORUM=yes
13044fi
13045 CHECKCPG=yes
13046 CHECKDLM=yes
13047fi
13048
13049if test x$BUILDOPENAIS = xyes; then
13050
13051pkg_failed=no
13052{ $as_echo "$as_me:$LINENO: checking for SALCK" >&5
13053$as_echo_n "checking for SALCK... " >&6; }
13054
13055if test -n "$SALCK_CFLAGS"; then
13056 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
13057 elif test -n "$PKG_CONFIG"; then
13058 if test -n "$PKG_CONFIG" && \
13059 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13060 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13061 ac_status=$?
13062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); }; then
13064 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
13065else
13066 pkg_failed=yes
13067fi
13068 else
13069 pkg_failed=untried
13070fi
13071if test -n "$SALCK_LIBS"; then
13072 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
13073 elif test -n "$PKG_CONFIG"; then
13074 if test -n "$PKG_CONFIG" && \
13075 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaLck\"") >&5
13076 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
13077 ac_status=$?
13078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; then
13080 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
13081else
13082 pkg_failed=yes
13083fi
13084 else
13085 pkg_failed=untried
13086fi
13087
13088
13089
13090if test $pkg_failed = yes; then
13091
13092if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13093 _pkg_short_errors_supported=yes
13094else
13095 _pkg_short_errors_supported=no
13096fi
13097 if test $_pkg_short_errors_supported = yes; then
13098 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
13099 else
13100 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
13101 fi
13102 # Put the nasty error message in config.log where it belongs
13103 echo "$SALCK_PKG_ERRORS" >&5
13104
8c4e8a18 13105 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13106$as_echo "no" >&6; }
8c4e8a18
FDN
13107 $bailout
13108elif test $pkg_failed = untried; then
a946372e
AK
13109 $bailout
13110else
13111 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
13112 SALCK_LIBS=$pkg_cv_SALCK_LIBS
13113 { $as_echo "$as_me:$LINENO: result: yes" >&5
13114$as_echo "yes" >&6; }
13115 HAVE_SALCK=yes
13116fi
13117 CHECKCPG=yes
13118fi
13119
13120
13121
13122if test x$CHECKCONFDB = xyes; then
13123
13124pkg_failed=no
13125{ $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
13126$as_echo_n "checking for CONFDB... " >&6; }
13127
13128if test -n "$CONFDB_CFLAGS"; then
13129 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
13130 elif test -n "$PKG_CONFIG"; then
13131 if test -n "$PKG_CONFIG" && \
13132 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13133 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13134 ac_status=$?
13135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); }; then
13137 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
13138else
13139 pkg_failed=yes
13140fi
13141 else
13142 pkg_failed=untried
13143fi
13144if test -n "$CONFDB_LIBS"; then
13145 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
13146 elif test -n "$PKG_CONFIG"; then
13147 if test -n "$PKG_CONFIG" && \
13148 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
13149 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
13150 ac_status=$?
13151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); }; then
13153 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
13154else
13155 pkg_failed=yes
13156fi
13157 else
13158 pkg_failed=untried
13159fi
13160
13161
13162
13163if test $pkg_failed = yes; then
13164
13165if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13166 _pkg_short_errors_supported=yes
13167else
13168 _pkg_short_errors_supported=no
13169fi
13170 if test $_pkg_short_errors_supported = yes; then
13171 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
13172 else
13173 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
13174 fi
13175 # Put the nasty error message in config.log where it belongs
13176 echo "$CONFDB_PKG_ERRORS" >&5
13177
8c4e8a18 13178 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13179$as_echo "no" >&6; }
8c4e8a18
FDN
13180 HAVE_CONFDB=no
13181elif test $pkg_failed = untried; then
a946372e
AK
13182 HAVE_CONFDB=no
13183else
13184 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
13185 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
13186 { $as_echo "$as_me:$LINENO: result: yes" >&5
13187$as_echo "yes" >&6; }
13188 HAVE_CONFDB=yes
13189fi
13190
13191
13192for ac_header in corosync/confdb.h
13193do
13194as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13196 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13197$as_echo_n "checking for $ac_header... " >&6; }
13198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13199 $as_echo_n "(cached) " >&6
13200fi
13201ac_res=`eval 'as_val=${'$as_ac_Header'}
13202 $as_echo "$as_val"'`
13203 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13204$as_echo "$ac_res" >&6; }
13205else
13206 # Is the header compilable?
13207{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13208$as_echo_n "checking $ac_header usability... " >&6; }
13209cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
13215$ac_includes_default
13216#include <$ac_header>
13217_ACEOF
13218rm -f conftest.$ac_objext
13219if { (ac_try="$ac_compile"
13220case "(($ac_try" in
13221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13222 *) ac_try_echo=$ac_try;;
13223esac
13224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13225$as_echo "$ac_try_echo") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13227 ac_status=$?
13228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
13231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 ac_header_compiler=yes
13237else
13238 $as_echo "$as_me: failed program was:" >&5
13239sed 's/^/| /' conftest.$ac_ext >&5
13240
13241 ac_header_compiler=no
13242fi
13243
13244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13246$as_echo "$ac_header_compiler" >&6; }
13247
13248# Is the header present?
13249{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13250$as_echo_n "checking $ac_header presence... " >&6; }
13251cat >conftest.$ac_ext <<_ACEOF
13252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h. */
13257#include <$ac_header>
13258_ACEOF
13259if { (ac_try="$ac_cpp conftest.$ac_ext"
13260case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263esac
13264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13265$as_echo "$ac_try_echo") >&5
13266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } >/dev/null && {
13273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 }; then
13276 ac_header_preproc=yes
13277else
13278 $as_echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281 ac_header_preproc=no
13282fi
13283
13284rm -f conftest.err conftest.$ac_ext
13285{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13286$as_echo "$ac_header_preproc" >&6; }
13287
13288# So? What about this header?
13289case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13290 yes:no: )
13291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13292$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13294$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13295 ac_header_preproc=yes
13296 ;;
13297 no:yes:* )
13298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13299$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13301$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13303$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13305$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13307$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13309$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13310
13311 ;;
13312esac
13313{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13314$as_echo_n "checking for $ac_header... " >&6; }
13315if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13316 $as_echo_n "(cached) " >&6
13317else
13318 eval "$as_ac_Header=\$ac_header_preproc"
13319fi
13320ac_res=`eval 'as_val=${'$as_ac_Header'}
13321 $as_echo "$as_val"'`
13322 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13323$as_echo "$ac_res" >&6; }
13324
13325fi
13326as_val=`eval 'as_val=${'$as_ac_Header'}
13327 $as_echo "$as_val"'`
13328 if test "x$as_val" = x""yes; then
13329 cat >>confdefs.h <<_ACEOF
13330#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13331_ACEOF
13332 HAVE_CONFDB_H=yes
13333else
13334 HAVE_CONFDB_H=no
13335fi
13336
13337done
13338
13339
13340 if test x$HAVE_CONFDB != xyes && \
13341 test x$HAVE_CONFDB_H = xyes; then
13342 check_lib_no_libs confdb confdb_initialize
13343 { $as_echo "$as_me:$LINENO: result: no pkg for confdb, using -lconfdb" >&5
13344$as_echo "no pkg for confdb, using -lconfdb" >&6; }
13345 CONFDB_LIBS="-lconfdb"
13346 HAVE_CONFDB=yes
13347 fi
13348
13349 if test x$BUILDCOROSYNC = xyes && \
13350 test x$HAVE_CONFDB != xyes &&
13351 test x$CLVMD != xall; then
13352 { { $as_echo "$as_me:$LINENO: error: bailing out... confdb library is required" >&5
13353$as_echo "$as_me: error: bailing out... confdb library is required" >&2;}
13354 { (exit 1); exit 1; }; }
13355 fi
13356fi
13357
13358if test x$CHECKCPG = xyes; then
13359
13360pkg_failed=no
13361{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
13362$as_echo_n "checking for CPG... " >&6; }
13363
13364if test -n "$CPG_CFLAGS"; then
13365 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
13366 elif test -n "$PKG_CONFIG"; then
13367 if test -n "$PKG_CONFIG" && \
13368 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13369 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13370 ac_status=$?
13371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; then
13373 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
13374else
13375 pkg_failed=yes
13376fi
13377 else
13378 pkg_failed=untried
13379fi
13380if test -n "$CPG_LIBS"; then
13381 pkg_cv_CPG_LIBS="$CPG_LIBS"
13382 elif test -n "$PKG_CONFIG"; then
13383 if test -n "$PKG_CONFIG" && \
13384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
13385 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
13386 ac_status=$?
13387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; then
13389 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
13390else
13391 pkg_failed=yes
13392fi
13393 else
13394 pkg_failed=untried
13395fi
13396
13397
13398
13399if test $pkg_failed = yes; then
13400
13401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13402 _pkg_short_errors_supported=yes
13403else
13404 _pkg_short_errors_supported=no
13405fi
13406 if test $_pkg_short_errors_supported = yes; then
13407 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
13408 else
13409 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
13410 fi
13411 # Put the nasty error message in config.log where it belongs
13412 echo "$CPG_PKG_ERRORS" >&5
13413
8c4e8a18 13414 { $as_echo "$as_me:$LINENO: result: no" >&5
71082be4 13415$as_echo "no" >&6; }
8c4e8a18
FDN
13416 $bailout
13417elif test $pkg_failed = untried; then
a946372e
AK
13418 $bailout
13419else
13420 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
13421 CPG_LIBS=$pkg_cv_CPG_LIBS
13422 { $as_echo "$as_me:$LINENO: result: yes" >&5
13423$as_echo "yes" >&6; }
13424 HAVE_CPG=yes
13425fi
13426fi
13427
13428if test x$CHECKDLM = xyes; then
13429
13430pkg_failed=no
13431{ $as_echo "$as_me:$LINENO: checking for DLM" >&5
13432$as_echo_n "checking for DLM... " >&6; }
13433
13434if test -n "$DLM_CFLAGS"; then
13435 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
13436 elif test -n "$PKG_CONFIG"; then
13437 if test -n "$PKG_CONFIG" && \
13438 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13439 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13440 ac_status=$?
13441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; then
13443 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
13444else
13445 pkg_failed=yes
13446fi
13447 else
13448 pkg_failed=untried
13449fi
13450if test -n "$DLM_LIBS"; then
13451 pkg_cv_DLM_LIBS="$DLM_LIBS"
13452 elif test -n "$PKG_CONFIG"; then
13453 if test -n "$PKG_CONFIG" && \
13454 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libdlm\"") >&5
13455 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
13456 ac_status=$?
13457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; then
13459 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
13460else
13461 pkg_failed=yes
13462fi
13463 else
13464 pkg_failed=untried
13465fi
13466
13467
13468
13469if test $pkg_failed = yes; then
13470
13471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13472 _pkg_short_errors_supported=yes
13473else
13474 _pkg_short_errors_supported=no
13475fi
13476 if test $_pkg_short_errors_supported = yes; then
13477 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
13478 else
13479 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
13480 fi
13481 # Put the nasty error message in config.log where it belongs
13482 echo "$DLM_PKG_ERRORS" >&5
13483
8c4e8a18
FDN
13484 { $as_echo "$as_me:$LINENO: result: no" >&5
13485$as_echo "no" >&6; }
13486 NOTFOUND=0
a946372e
AK
13487
13488for ac_header in libdlm.h
13489do
13490as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13491if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13493$as_echo_n "checking for $ac_header... " >&6; }
13494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13495 $as_echo_n "(cached) " >&6
13496fi
13497ac_res=`eval 'as_val=${'$as_ac_Header'}
13498 $as_echo "$as_val"'`
13499 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13500$as_echo "$ac_res" >&6; }
13501else
13502 # Is the header compilable?
13503{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13504$as_echo_n "checking $ac_header usability... " >&6; }
13505cat >conftest.$ac_ext <<_ACEOF
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
13511$ac_includes_default
13512#include <$ac_header>
13513_ACEOF
13514rm -f conftest.$ac_objext
13515if { (ac_try="$ac_compile"
13516case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519esac
13520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13521$as_echo "$ac_try_echo") >&5
13522 (eval "$ac_compile") 2>conftest.er1
13523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
13527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
13532 ac_header_compiler=yes
13533else
13534 $as_echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
13536
13537 ac_header_compiler=no
13538fi
13539
13540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542$as_echo "$ac_header_compiler" >&6; }
13543
13544# Is the header present?
13545{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13546$as_echo_n "checking $ac_header presence... " >&6; }
13547cat >conftest.$ac_ext <<_ACEOF
13548/* confdefs.h. */
13549_ACEOF
13550cat confdefs.h >>conftest.$ac_ext
13551cat >>conftest.$ac_ext <<_ACEOF
13552/* end confdefs.h. */
13553#include <$ac_header>
13554_ACEOF
13555if { (ac_try="$ac_cpp conftest.$ac_ext"
13556case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13559esac
13560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13561$as_echo "$ac_try_echo") >&5
13562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13563 ac_status=$?
13564 grep -v '^ *+' conftest.er1 >conftest.err
13565 rm -f conftest.er1
13566 cat conftest.err >&5
13567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } >/dev/null && {
13569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13570 test ! -s conftest.err
13571 }; then
13572 ac_header_preproc=yes
13573else
13574 $as_echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_header_preproc=no
13578fi
13579
13580rm -f conftest.err conftest.$ac_ext
13581{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13582$as_echo "$ac_header_preproc" >&6; }
13583
13584# So? What about this header?
13585case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13586 yes:no: )
13587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13588$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13589 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13590$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13591 ac_header_preproc=yes
13592 ;;
13593 no:yes:* )
13594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13595$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13596 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13597$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13599$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13601$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13603$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13605$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13606
13607 ;;
13608esac
13609{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13610$as_echo_n "checking for $ac_header... " >&6; }
13611if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13612 $as_echo_n "(cached) " >&6
13613else
13614 eval "$as_ac_Header=\$ac_header_preproc"
13615fi
13616ac_res=`eval 'as_val=${'$as_ac_Header'}
13617 $as_echo "$as_val"'`
13618 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13619$as_echo "$ac_res" >&6; }
13620
13621fi
13622as_val=`eval 'as_val=${'$as_ac_Header'}
13623 $as_echo "$as_val"'`
13624 if test "x$as_val" = x""yes; then
13625 cat >>confdefs.h <<_ACEOF
13626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13627_ACEOF
13628
13629else
13630 $bailout
13631fi
13632
13633done
13634
13635 check_lib_no_libs dlm dlm_lock -lpthread
13636 if test $NOTFOUND = 0; then
13637 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13638$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13639 DLM_LIBS="-ldlm -lpthread"
13640 HAVE_DLM=yes
13641 fi
13642elif test $pkg_failed = untried; then
13643 NOTFOUND=0
13644
13645for ac_header in libdlm.h
13646do
13647as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13649 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13650$as_echo_n "checking for $ac_header... " >&6; }
13651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13652 $as_echo_n "(cached) " >&6
13653fi
13654ac_res=`eval 'as_val=${'$as_ac_Header'}
13655 $as_echo "$as_val"'`
13656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13657$as_echo "$ac_res" >&6; }
13658else
13659 # Is the header compilable?
13660{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661$as_echo_n "checking $ac_header usability... " >&6; }
13662cat >conftest.$ac_ext <<_ACEOF
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668$ac_includes_default
13669#include <$ac_header>
13670_ACEOF
13671rm -f conftest.$ac_objext
13672if { (ac_try="$ac_compile"
13673case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676esac
13677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13678$as_echo "$ac_try_echo") >&5
13679 (eval "$ac_compile") 2>conftest.er1
13680 ac_status=$?
13681 grep -v '^ *+' conftest.er1 >conftest.err
13682 rm -f conftest.er1
13683 cat conftest.err >&5
13684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685 (exit $ac_status); } && {
13686 test -z "$ac_c_werror_flag" ||
13687 test ! -s conftest.err
13688 } && test -s conftest.$ac_objext; then
13689 ac_header_compiler=yes
13690else
13691 $as_echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 ac_header_compiler=no
13695fi
13696
13697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13699$as_echo "$ac_header_compiler" >&6; }
13700
13701# Is the header present?
13702{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13703$as_echo_n "checking $ac_header presence... " >&6; }
13704cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710#include <$ac_header>
13711_ACEOF
13712if { (ac_try="$ac_cpp conftest.$ac_ext"
13713case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13718$as_echo "$ac_try_echo") >&5
13719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null && {
13726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 }; then
13729 ac_header_preproc=yes
13730else
13731 $as_echo "$as_me: failed program was:" >&5
13732sed 's/^/| /' conftest.$ac_ext >&5
13733
13734 ac_header_preproc=no
13735fi
13736
13737rm -f conftest.err conftest.$ac_ext
13738{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13739$as_echo "$ac_header_preproc" >&6; }
13740
13741# So? What about this header?
13742case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13743 yes:no: )
13744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13745$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13747$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13748 ac_header_preproc=yes
13749 ;;
13750 no:yes:* )
13751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13752$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13754$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13756$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13758$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13760$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13762$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13763
13764 ;;
13765esac
13766{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13767$as_echo_n "checking for $ac_header... " >&6; }
13768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13769 $as_echo_n "(cached) " >&6
13770else
13771 eval "$as_ac_Header=\$ac_header_preproc"
13772fi
13773ac_res=`eval 'as_val=${'$as_ac_Header'}
13774 $as_echo "$as_val"'`
13775 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13776$as_echo "$ac_res" >&6; }
13777
13778fi
13779as_val=`eval 'as_val=${'$as_ac_Header'}
13780 $as_echo "$as_val"'`
13781 if test "x$as_val" = x""yes; then
13782 cat >>confdefs.h <<_ACEOF
13783#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13784_ACEOF
13785
13786else
13787 $bailout
13788fi
13789
13790done
13791
13792 check_lib_no_libs dlm dlm_lock -lpthread
13793 if test $NOTFOUND = 0; then
13794 { $as_echo "$as_me:$LINENO: result: no pkg for libdlm, using -ldlm" >&5
13795$as_echo "no pkg for libdlm, using -ldlm" >&6; }
13796 DLM_LIBS="-ldlm -lpthread"
13797 HAVE_DLM=yes
13798 fi
13799else
13800 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
13801 DLM_LIBS=$pkg_cv_DLM_LIBS
13802 { $as_echo "$as_me:$LINENO: result: yes" >&5
13803$as_echo "yes" >&6; }
13804 HAVE_DLM=yes
13805fi
13806fi
13807
13808if test x$CLVMD = xall; then
8c222979 13809 CLVMD=none
a946372e
AK
13810 if test x$HAVE_CCS = xyes && \
13811 test x$HAVE_GULM = xyes; then
8c222979
FDN
13812 { $as_echo "$as_me:$LINENO: result: Enabling clvmd gulm cluster manager" >&5
13813$as_echo "Enabling clvmd gulm cluster manager" >&6; }
13814 CLVMD="$CLVMD,gulm"
a946372e
AK
13815 fi
13816 if test x$HAVE_CMAN = xyes && \
13817 test x$HAVE_DLM = xyes; then
8c222979
FDN
13818 { $as_echo "$as_me:$LINENO: result: Enabling clvmd cman cluster manager" >&5
13819$as_echo "Enabling clvmd cman cluster manager" >&6; }
13820 CLVMD="$CLVMD,cman"
a946372e
AK
13821 fi
13822 if test x$HAVE_COROSYNC = xyes && \
13823 test x$HAVE_QUORUM = xyes && \
13824 test x$HAVE_CPG = xyes && \
13825 test x$HAVE_DLM = xyes && \
13826 test x$HAVE_CONFDB = xyes; then
8c222979
FDN
13827 { $as_echo "$as_me:$LINENO: result: Enabling clvmd corosync cluster manager" >&5
13828$as_echo "Enabling clvmd corosync cluster manager" >&6; }
13829 CLVMD="$CLVMD,corosync"
a946372e
AK
13830 fi
13831 if test x$HAVE_COROSYNC = xyes && \
13832 test x$HAVE_CPG = xyes && \
13833 test x$HAVE_SALCK = xyes; then
8c222979
FDN
13834 { $as_echo "$as_me:$LINENO: result: Enabling clvmd openais cluster manager" >&5
13835$as_echo "Enabling clvmd openais cluster manager" >&6; }
13836 CLVMD="$CLVMD,openais"
13837 fi
13838 if test x$CLVMD = xnone; then
13839 { $as_echo "$as_me:$LINENO: result: Disabling clvmd build. No cluster manager detected." >&5
13840$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
a946372e 13841 fi
a946372e
AK
13842fi
13843
8c4e8a18
FDN
13844################################################################################
13845if test "x$CLVMD" != xnone; then
13846
13847# Check whether --with-clvmd-pidfile was given.
13848if test "${with_clvmd_pidfile+set}" = set; then
13849 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
13850else
13851 CLVMD_PIDFILE="/var/run/clvmd.pid"
13852fi
13853
13854
13855cat >>confdefs.h <<_ACEOF
13856#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
13857_ACEOF
13858
13859fi
13860
a946372e 13861################################################################################
66fd4529
AK
13862{ $as_echo "$as_me:$LINENO: checking whether to build cluster mirror log daemon" >&5
13863$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
13864# Check whether --enable-cmirrord was given.
13865if test "${enable_cmirrord+set}" = set; then
13866 enableval=$enable_cmirrord; CMIRRORD=$enableval
13867else
13868 CMIRRORD=no
13869fi
13870
13871{ $as_echo "$as_me:$LINENO: result: $CMIRRORD" >&5
13872$as_echo "$CMIRRORD" >&6; }
13873
13874BUILD_CMIRRORD=$CMIRRORD
13875
13876################################################################################
66fd4529
AK
13877if test "x$BUILD_CMIRRORD" = xyes; then
13878
13879# Check whether --with-cmirrord-pidfile was given.
13880if test "${with_cmirrord_pidfile+set}" = set; then
71082be4 13881 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
66fd4529 13882else
71082be4 13883 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
a946372e
AK
13884fi
13885
71082be4
ZK
13886
13887cat >>confdefs.h <<_ACEOF
13888#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
13889_ACEOF
13890
66fd4529 13891fi
a946372e 13892
66fd4529
AK
13893################################################################################
13894if [ "x$BUILD_CMIRRORD" = xyes ]; then
90c80887
AK
13895 if test x$PKGCONFIG_INIT != x1; then
13896 pkg_config_init
13897 fi
13898
13899pkg_failed=no
13900{ $as_echo "$as_me:$LINENO: checking for SACKPT" >&5
13901$as_echo_n "checking for SACKPT... " >&6; }
13902
13903if test -n "$SACKPT_CFLAGS"; then
13904 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
13905 elif test -n "$PKG_CONFIG"; then
13906 if test -n "$PKG_CONFIG" && \
13907 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13908 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13909 ac_status=$?
13910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; then
13912 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
13913else
13914 pkg_failed=yes
13915fi
13916 else
13917 pkg_failed=untried
13918fi
13919if test -n "$SACKPT_LIBS"; then
13920 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
13921 elif test -n "$PKG_CONFIG"; then
13922 if test -n "$PKG_CONFIG" && \
13923 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\"") >&5
13924 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
13925 ac_status=$?
13926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); }; then
13928 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
13929else
13930 pkg_failed=yes
13931fi
13932 else
13933 pkg_failed=untried
13934fi
13935
13936
13937
13938if test $pkg_failed = yes; then
13939
13940if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13941 _pkg_short_errors_supported=yes
13942else
13943 _pkg_short_errors_supported=no
13944fi
13945 if test $_pkg_short_errors_supported = yes; then
13946 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
13947 else
13948 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
13949 fi
13950 # Put the nasty error message in config.log where it belongs
13951 echo "$SACKPT_PKG_ERRORS" >&5
13952
13953 { { $as_echo "$as_me:$LINENO: error: Package requirements (libSaCkpt) were not met:
13954
13955$SACKPT_PKG_ERRORS
13956
13957Consider adjusting the PKG_CONFIG_PATH environment variable if you
13958installed software in a non-standard prefix.
13959
13960Alternatively, you may set the environment variables SACKPT_CFLAGS
13961and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13962See the pkg-config man page for more details.
13963" >&5
90c80887
AK
13964$as_echo "$as_me: error: Package requirements (libSaCkpt) were not met:
13965
13966$SACKPT_PKG_ERRORS
13967
13968Consider adjusting the PKG_CONFIG_PATH environment variable if you
13969installed software in a non-standard prefix.
13970
13971Alternatively, you may set the environment variables SACKPT_CFLAGS
13972and SACKPT_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
13973See the pkg-config man page for more details.
13974" >&2;}
90c80887
AK
13975 { (exit 1); exit 1; }; }
13976elif test $pkg_failed = untried; then
13977 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13979{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
13980is in your PATH or set the PKG_CONFIG environment variable to the full
13981path to pkg-config.
13982
13983Alternatively, you may set the environment variables SACKPT_CFLAGS
13984and SACKPT_LIBS to avoid the need to call pkg-config.
13985See the pkg-config man page for more details.
13986
13987To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13988See \`config.log' for more details." >&5
13989$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
13990is in your PATH or set the PKG_CONFIG environment variable to the full
13991path to pkg-config.
13992
13993Alternatively, you may set the environment variables SACKPT_CFLAGS
13994and SACKPT_LIBS to avoid the need to call pkg-config.
13995See the pkg-config man page for more details.
13996
13997To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13998See \`config.log' for more details." >&2;}
13999 { (exit 1); exit 1; }; }; }
14000else
14001 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
14002 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
14003 { $as_echo "$as_me:$LINENO: result: yes" >&5
14004$as_echo "yes" >&6; }
8c4e8a18 14005 :
90c80887
AK
14006fi
14007 if test x$HAVE_CPG != xyes; then
a946372e
AK
14008
14009pkg_failed=no
14010{ $as_echo "$as_me:$LINENO: checking for CPG" >&5
14011$as_echo_n "checking for CPG... " >&6; }
14012
14013if test -n "$CPG_CFLAGS"; then
14014 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
14015 elif test -n "$PKG_CONFIG"; then
14016 if test -n "$PKG_CONFIG" && \
14017 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14018 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14019 ac_status=$?
14020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; then
14022 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
14023else
14024 pkg_failed=yes
14025fi
14026 else
14027 pkg_failed=untried
14028fi
14029if test -n "$CPG_LIBS"; then
14030 pkg_cv_CPG_LIBS="$CPG_LIBS"
14031 elif test -n "$PKG_CONFIG"; then
14032 if test -n "$PKG_CONFIG" && \
14033 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
14034 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
14035 ac_status=$?
14036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); }; then
14038 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
14039else
14040 pkg_failed=yes
14041fi
14042 else
14043 pkg_failed=untried
14044fi
14045
14046
14047
14048if test $pkg_failed = yes; then
14049
14050if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14051 _pkg_short_errors_supported=yes
14052else
14053 _pkg_short_errors_supported=no
14054fi
14055 if test $_pkg_short_errors_supported = yes; then
14056 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
14057 else
14058 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
14059 fi
14060 # Put the nasty error message in config.log where it belongs
14061 echo "$CPG_PKG_ERRORS" >&5
14062
90c80887
AK
14063 { { $as_echo "$as_me:$LINENO: error: Package requirements (libcpg) were not met:
14064
14065$CPG_PKG_ERRORS
14066
14067Consider adjusting the PKG_CONFIG_PATH environment variable if you
14068installed software in a non-standard prefix.
14069
14070Alternatively, you may set the environment variables CPG_CFLAGS
14071and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14072See the pkg-config man page for more details.
14073" >&5
90c80887
AK
14074$as_echo "$as_me: error: Package requirements (libcpg) were not met:
14075
14076$CPG_PKG_ERRORS
14077
14078Consider adjusting the PKG_CONFIG_PATH environment variable if you
14079installed software in a non-standard prefix.
14080
14081Alternatively, you may set the environment variables CPG_CFLAGS
14082and CPG_LIBS to avoid the need to call pkg-config.
8c4e8a18
FDN
14083See the pkg-config man page for more details.
14084" >&2;}
90c80887 14085 { (exit 1); exit 1; }; }
a946372e 14086elif test $pkg_failed = untried; then
90c80887
AK
14087 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14089{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
14090is in your PATH or set the PKG_CONFIG environment variable to the full
14091path to pkg-config.
14092
14093Alternatively, you may set the environment variables CPG_CFLAGS
14094and CPG_LIBS to avoid the need to call pkg-config.
14095See the pkg-config man page for more details.
14096
14097To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14098See \`config.log' for more details." >&5
14099$as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
14100is in your PATH or set the PKG_CONFIG environment variable to the full
14101path to pkg-config.
14102
14103Alternatively, you may set the environment variables CPG_CFLAGS
14104and CPG_LIBS to avoid the need to call pkg-config.
14105See the pkg-config man page for more details.
14106
14107To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14108See \`config.log' for more details." >&2;}
14109 { (exit 1); exit 1; }; }; }
a946372e
AK
14110else
14111 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
14112 CPG_LIBS=$pkg_cv_CPG_LIBS
14113 { $as_echo "$as_me:$LINENO: result: yes" >&5
14114$as_echo "yes" >&6; }
8c4e8a18 14115 :
a946372e 14116fi
90c80887 14117 fi
a946372e
AK
14118fi
14119
14120################################################################################
14121{ $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14122$as_echo_n "checking whether to enable debugging... " >&6; }
14123# Check whether --enable-debug was given.
14124if test "${enable_debug+set}" = set; then
14125 enableval=$enable_debug; DEBUG=$enableval
14126else
14127 DEBUG=no
14128fi
14129
14130{ $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
14131$as_echo "$DEBUG" >&6; }
14132
14133if test x$DEBUG = xyes; then
14134 COPTIMISE_FLAG=
14135else
14136 CSCOPE_CMD=
14137fi
14138
14139################################################################################
14140{ $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
14141$as_echo_n "checking for C optimisation flag... " >&6; }
14142
14143# Check whether --with-optimisation was given.
14144if test "${with_optimisation+set}" = set; then
71082be4 14145 withval=$with_optimisation; COPTIMISE_FLAG=$withval
a946372e
AK
14146fi
14147
14148{ $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
14149$as_echo "$COPTIMISE_FLAG" >&6; }
14150
14151################################################################################
14152{ $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
14153$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
14154# Check whether --enable-profiling was given.
14155if test "${enable_profiling+set}" = set; then
5556819a 14156 enableval=$enable_profiling; PROFILING=$enableval
fddafd51 14157else
5556819a 14158 PROFILING=no
fddafd51
ZK
14159fi
14160
ec6a6fbe
AK
14161{ $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
14162$as_echo "$PROFILING" >&6; }
5556819a
AK
14163
14164if test "x$PROFILING" = xyes; then
14165 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
14166 # Extract the first word of "lcov", so it can be a program name with args.
fddafd51 14167set dummy lcov; ac_word=$2
ec6a6fbe
AK
14168{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14169$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14170if test "${ac_cv_path_LCOV+set}" = set; then
ec6a6fbe 14171 $as_echo_n "(cached) " >&6
fddafd51
ZK
14172else
14173 case $LCOV in
14174 [\\/]* | ?:[\\/]*)
14175 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
14176 ;;
14177 *)
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179for as_dir in $PATH
14180do
14181 IFS=$as_save_IFS
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14185 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14187 break 2
14188 fi
14189done
14190done
14191IFS=$as_save_IFS
14192
14193 ;;
14194esac
14195fi
14196LCOV=$ac_cv_path_LCOV
14197if test -n "$LCOV"; then
ec6a6fbe
AK
14198 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
14199$as_echo "$LCOV" >&6; }
fddafd51 14200else
ec6a6fbe
AK
14201 { $as_echo "$as_me:$LINENO: result: no" >&5
14202$as_echo "no" >&6; }
fddafd51
ZK
14203fi
14204
14205
5556819a 14206 # Extract the first word of "genhtml", so it can be a program name with args.
fddafd51 14207set dummy genhtml; ac_word=$2
ec6a6fbe
AK
14208{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14209$as_echo_n "checking for $ac_word... " >&6; }
fddafd51 14210if test "${ac_cv_path_GENHTML+set}" = set; then
ec6a6fbe 14211 $as_echo_n "(cached) " >&6
fddafd51
ZK
14212else
14213 case $GENHTML in
14214 [\\/]* | ?:[\\/]*)
14215 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
14216 ;;
14217 *)
14218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14219for as_dir in $PATH
14220do
14221 IFS=$as_save_IFS
14222 test -z "$as_dir" && as_dir=.
14223 for ac_exec_ext in '' $ac_executable_extensions; do
14224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14225 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 14226 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
fddafd51
ZK
14227 break 2
14228 fi
14229done
14230done
14231IFS=$as_save_IFS
14232
14233 ;;
14234esac
14235fi
14236GENHTML=$ac_cv_path_GENHTML
14237if test -n "$GENHTML"; then
ec6a6fbe
AK
14238 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
14239$as_echo "$GENHTML" >&6; }
fddafd51 14240else
ec6a6fbe
AK
14241 { $as_echo "$as_me:$LINENO: result: no" >&5
14242$as_echo "no" >&6; }
fddafd51
ZK
14243fi
14244
14245
fd4728e1 14246 if test -z "$LCOV" -o -z "$GENHTML"; then
ec6a6fbe
AK
14247 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
14248$as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
b145d876
ZK
14249 { (exit 1); exit 1; }; }
14250 fi
fd4728e1
ZK
14251 # Extract the first word of "genpng", so it can be a program name with args.
14252set dummy genpng; ac_word=$2
14253{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14254$as_echo_n "checking for $ac_word... " >&6; }
14255if test "${ac_cv_path_GENPNG+set}" = set; then
14256 $as_echo_n "(cached) " >&6
14257else
14258 case $GENPNG in
14259 [\\/]* | ?:[\\/]*)
14260 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
14261 ;;
14262 *)
14263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264for as_dir in $PATH
14265do
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
14269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14270 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
14271 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 break 2
14273 fi
14274done
14275done
14276IFS=$as_save_IFS
14277
14278 ;;
14279esac
14280fi
14281GENPNG=$ac_cv_path_GENPNG
14282if test -n "$GENPNG"; then
14283 { $as_echo "$as_me:$LINENO: result: $GENPNG" >&5
14284$as_echo "$GENPNG" >&6; }
14285else
14286 { $as_echo "$as_me:$LINENO: result: no" >&5
14287$as_echo "no" >&6; }
14288fi
14289
14290
14291 if test -n "$GENPNG"; then
14292 { $as_echo "$as_me:$LINENO: checking whether $GENPNG has all required modules" >&5
14293$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
14294 if $GENPNG --help > /dev/null 2>&1 ; then
14295 { $as_echo "$as_me:$LINENO: result: ok" >&5
14296$as_echo "ok" >&6; }
14297 GENHTML="$GENHTML --frames"
14298 else
14299 { $as_echo "$as_me:$LINENO: result: not supported" >&5
14300$as_echo "not supported" >&6; }
14301 { $as_echo "$as_me:$LINENO: WARNING: GD.pm perl module is not installed" >&5
14302$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
14303 GENPNG=
14304 fi
14305 fi
5556819a 14306fi
d0191583 14307
54b362f9
AK
14308################################################################################
14309{ $as_echo "$as_me:$LINENO: checking whether to enable unit testing" >&5
14310$as_echo_n "checking whether to enable unit testing... " >&6; }
14311# Check whether --enable-testing was given.
14312if test "${enable_testing+set}" = set; then
14313 enableval=$enable_testing; TESTING=$enableval
14314else
14315 TESTING=no
14316fi
14317
14318{ $as_echo "$as_me:$LINENO: result: $TESTING" >&5
14319$as_echo "$TESTING" >&6; }
14320
14321if test "$TESTING" = yes; then
14322 # Extract the first word of "ruby1.9", so it can be a program name with args.
14323set dummy ruby1.9; ac_word=$2
14324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14325$as_echo_n "checking for $ac_word... " >&6; }
14326if test "${ac_cv_path_RUBY19+set}" = set; then
14327 $as_echo_n "(cached) " >&6
14328else
14329 case $RUBY19 in
14330 [\\/]* | ?:[\\/]*)
14331 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
14332 ;;
14333 *)
14334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335for as_dir in $PATH
14336do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
14340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14341 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
14342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345done
14346done
14347IFS=$as_save_IFS
14348
14349 ;;
14350esac
14351fi
14352RUBY19=$ac_cv_path_RUBY19
14353if test -n "$RUBY19"; then
14354 { $as_echo "$as_me:$LINENO: result: $RUBY19" >&5
14355$as_echo "$RUBY19" >&6; }
14356else
14357 { $as_echo "$as_me:$LINENO: result: no" >&5
14358$as_echo "no" >&6; }
14359fi
14360
14361
14362 # Extract the first word of "valgrind", so it can be a program name with args.
14363set dummy valgrind; ac_word=$2
14364{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14365$as_echo_n "checking for $ac_word... " >&6; }
14366if test "${ac_cv_path_VALGRIND+set}" = set; then
14367 $as_echo_n "(cached) " >&6
14368else
14369 case $VALGRIND in
14370 [\\/]* | ?:[\\/]*)
14371 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
14372 ;;
14373 *)
14374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375for as_dir in $PATH
14376do
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
14380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
14382 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14384 fi
14385done
14386done
14387IFS=$as_save_IFS
14388
14389 ;;
14390esac
14391fi
14392VALGRIND=$ac_cv_path_VALGRIND
14393if test -n "$VALGRIND"; then
14394 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
14395$as_echo "$VALGRIND" >&6; }
14396else
14397 { $as_echo "$as_me:$LINENO: result: no" >&5
14398$as_echo "no" >&6; }
14399fi
14400
14401
14402 if test -z "$RUBY19" -o -z "$VALGRIND"; then
14403 { { $as_echo "$as_me:$LINENO: error: ruby1.9 and valgrind are required for testing" >&5
14404$as_echo "$as_me: error: ruby1.9 and valgrind are required for testing" >&2;}
14405 { (exit 1); exit 1; }; }
14406 fi
14407fi
14408
d0191583 14409################################################################################
ec6a6fbe
AK
14410{ $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
14411$as_echo_n "checking whether to use device-mapper... " >&6; }
d0191583
JM
14412# Check whether --enable-devmapper was given.
14413if test "${enable_devmapper+set}" = set; then
14414 enableval=$enable_devmapper; DEVMAPPER=$enableval
fc54be10
AK
14415fi
14416
ec6a6fbe
AK
14417{ $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
14418$as_echo "$DEVMAPPER" >&6; }
d0191583
JM
14419
14420if test x$DEVMAPPER = xyes; then
ad6254c5
AK
14421
14422cat >>confdefs.h <<\_ACEOF
d0191583 14423#define DEVMAPPER_SUPPORT 1
ad6254c5
AK
14424_ACEOF
14425
14426fi
14427
a5f46f6a
AK
14428################################################################################
14429{ $as_echo "$as_me:$LINENO: checking whether to enable synchronisation with udev processing" >&5
14430$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
14431# Check whether --enable-udev_sync was given.
14432if test "${enable_udev_sync+set}" = set; then
14433 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
14434else
14435 UDEV_SYNC=no
14436fi
14437
14438{ $as_echo "$as_me:$LINENO: result: $UDEV_SYNC" >&5
14439$as_echo "$UDEV_SYNC" >&6; }
14440
90c80887
AK
14441if test x$UDEV_SYNC = xyes; then
14442 { $as_echo "$as_me:$LINENO: checking for udev_queue_get_udev_is_active in -ludev" >&5
14443$as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
14444if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then
14445 $as_echo_n "(cached) " >&6
14446else
14447 ac_check_lib_save_LIBS=$LIBS
14448LIBS="-ludev $LIBS"
14449cat >conftest.$ac_ext <<_ACEOF
14450/* confdefs.h. */
14451_ACEOF
14452cat confdefs.h >>conftest.$ac_ext
14453cat >>conftest.$ac_ext <<_ACEOF
14454/* end confdefs.h. */
14455
14456/* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14459#ifdef __cplusplus
14460extern "C"
14461#endif
14462char udev_queue_get_udev_is_active ();
14463int
14464main ()
14465{
14466return udev_queue_get_udev_is_active ();
14467 ;
14468 return 0;
14469}
14470_ACEOF
14471rm -f conftest.$ac_objext conftest$ac_exeext
14472if { (ac_try="$ac_link"
14473case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476esac
14477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14478$as_echo "$ac_try_echo") >&5
14479 (eval "$ac_link") 2>conftest.er1
14480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest$ac_exeext && {
14489 test "$cross_compiling" = yes ||
14490 $as_test_x conftest$ac_exeext
14491 }; then
14492 ac_cv_lib_udev_udev_queue_get_udev_is_active=yes
14493else
14494 $as_echo "$as_me: failed program was:" >&5
14495sed 's/^/| /' conftest.$ac_ext >&5
14496
14497 ac_cv_lib_udev_udev_queue_get_udev_is_active=no
14498fi
14499
14500rm -rf conftest.dSYM
14501rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14502 conftest$ac_exeext conftest.$ac_ext
14503LIBS=$ac_check_lib_save_LIBS
14504fi
14505{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
14506$as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
14507if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x""yes; then
f7f0854e 14508 UDEV_PC="libudev"; UDEV_LIBS="-ludev"
90c80887 14509else
5161ecb9
PR
14510 { { $as_echo "$as_me:$LINENO: error: bailing out... libudev library is required" >&5
14511$as_echo "$as_me: error: bailing out... libudev library is required" >&2;}
14512 { (exit 1); exit 1; }; }
90c80887
AK
14513fi
14514
14515
90c80887 14516cat >>confdefs.h <<\_ACEOF
5161ecb9 14517#define UDEV_SYNC_SUPPORT 1
90c80887
AK
14518_ACEOF
14519
90c80887
AK
14520fi
14521
5161ecb9
PR
14522{ $as_echo "$as_me:$LINENO: checking whether to enable installation of udev rules required for synchronisation" >&5
14523$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
14524# Check whether --enable-udev_rules was given.
14525if test "${enable_udev_rules+set}" = set; then
14526 enableval=$enable_udev_rules; UDEV_RULES=$enableval
14527else
14528 UDEV_RULES=$UDEV_SYNC
14529fi
14530
14531{ $as_echo "$as_me:$LINENO: result: $UDEV_RULES" >&5
14532$as_echo "$UDEV_RULES" >&6; }
14533
93bd259b
AK
14534################################################################################
14535# Check whether --enable-compat was given.
14536if test "${enable_compat+set}" = set; then
14537 enableval=$enable_compat; DM_COMPAT=$enableval
14538else
14539 DM_COMPAT=no
14540fi
14541
14542
95eaa683
AK
14543################################################################################
14544# Check whether --enable-units-compat was given.
14545if test "${enable_units_compat+set}" = set; then
14546 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
14547else
14548 UNITS_COMPAT=no
14549fi
14550
14551
14552if test x$UNITS_COMPAT = xyes; then
14553
14554cat >>confdefs.h <<\_ACEOF
14555#define DEFAULT_SI_UNIT_CONSISTENCY 0
14556_ACEOF
14557
14558fi
14559
93bd259b
AK
14560################################################################################
14561# Check whether --enable-ioctl was given.
14562if test "${enable_ioctl+set}" = set; then
14563 enableval=$enable_ioctl; DM_IOCTLS=$enableval
14564fi
14565
14566
d0191583 14567################################################################################
ec6a6fbe
AK
14568{ $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
14569$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
d0191583
JM
14570# Check whether --enable-o_direct was given.
14571if test "${enable_o_direct+set}" = set; then
14572 enableval=$enable_o_direct; ODIRECT=$enableval
ad6254c5 14573fi
ad6254c5 14574
ec6a6fbe
AK
14575{ $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
14576$as_echo "$ODIRECT" >&6; }
ad6254c5 14577
d0191583 14578if test x$ODIRECT = xyes; then
ad6254c5 14579
d0191583
JM
14580cat >>confdefs.h <<\_ACEOF
14581#define O_DIRECT_SUPPORT 1
14582_ACEOF
ad6254c5 14583
d0191583 14584fi
ad6254c5 14585
572fefeb
AK
14586################################################################################
14587{ $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
14588$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
14589# Check whether --enable-applib was given.
14590if test "${enable_applib+set}" = set; then
14591 enableval=$enable_applib; APPLIB=$enableval
14592else
14593 APPLIB=no
14594fi
14595
14596{ $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
14597$as_echo "$APPLIB" >&6; }
14598
14599test x$APPLIB = xyes \
14600 && LVM2APP_LIB=-llvm2app \
14601 || LVM2APP_LIB=
14602
d0191583 14603################################################################################
ec6a6fbe
AK
14604{ $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
14605$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
d0191583
JM
14606# Check whether --enable-cmdlib was given.
14607if test "${enable_cmdlib+set}" = set; then
14608 enableval=$enable_cmdlib; CMDLIB=$enableval
ad6254c5 14609else
d0191583
JM
14610 CMDLIB=no
14611fi
8a2fc586 14612
ec6a6fbe
AK
14613{ $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
14614$as_echo "$CMDLIB" >&6; }
8a2fc586 14615
2a9a80c9 14616test x$CMDLIB = xyes \
d179cc7a
JM
14617 && LVM2CMD_LIB=-llvm2cmd \
14618 || LVM2CMD_LIB=
14619
93bd259b
AK
14620################################################################################
14621# Check whether --enable-pkgconfig was given.
14622if test "${enable_pkgconfig+set}" = set; then
14623 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
14624else
14625 PKGCONFIG=no
14626fi
14627
2a9a80c9 14628
23b059e7
ZK
14629################################################################################
14630# Check whether --enable-write_install was given.
14631if test "${enable_write_install+set}" = set; then
14632 enableval=$enable_write_install; WRITE_INSTALL=$enableval
14633else
14634 WRITE_INSTALL=no
14635fi
14636
14637
d0191583 14638################################################################################
ec6a6fbe
AK
14639{ $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
14640$as_echo_n "checking whether to install fsadm... " >&6; }
d0191583
JM
14641# Check whether --enable-fsadm was given.
14642if test "${enable_fsadm+set}" = set; then
14643 enableval=$enable_fsadm; FSADM=$enableval
14644fi
8a2fc586 14645
ec6a6fbe
AK
14646{ $as_echo "$as_me:$LINENO: result: $FSADM" >&5
14647$as_echo "$FSADM" >&6; }
8a2fc586 14648
d0191583 14649################################################################################
ec6a6fbe
AK
14650{ $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
14651$as_echo_n "checking whether to use dmeventd... " >&6; }
d0191583
JM
14652# Check whether --enable-dmeventd was given.
14653if test "${enable_dmeventd+set}" = set; then
14654 enableval=$enable_dmeventd; DMEVENTD=$enableval
14655fi
ad6254c5 14656
ec6a6fbe
AK
14657{ $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
14658$as_echo "$DMEVENTD" >&6; }
ad6254c5 14659
93bd259b
AK
14660BUILD_DMEVENTD=$DMEVENTD
14661
2a9a80c9
PR
14662if test x$DMEVENTD = xyes; then
14663 if test x$MIRRORS != xinternal; then
ec6a6fbe 14664 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14665 " >&5
ec6a6fbe 14666$as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
2a9a80c9 14667 " >&2;}
d0191583 14668 { (exit 1); exit 1; }; }
2a9a80c9
PR
14669 fi
14670 if test x$CMDLIB = xno; then
ec6a6fbe 14671 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9 14672 " >&5
ec6a6fbe 14673$as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
2a9a80c9
PR
14674 " >&2;}
14675 { (exit 1); exit 1; }; }
14676 fi
ad6254c5 14677fi
7a197a62 14678
d0191583
JM
14679if test x$DMEVENTD = xyes; then
14680
14681cat >>confdefs.h <<\_ACEOF
14682#define DMEVENTD 1
ad6254c5
AK
14683_ACEOF
14684
ad6254c5 14685fi
93bd259b
AK
14686
14687################################################################################
14688
ec6a6fbe
AK
14689{ $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
14690$as_echo_n "checking for getline in -lc... " >&6; }
93bd259b 14691if test "${ac_cv_lib_c_getline+set}" = set; then
ec6a6fbe 14692 $as_echo_n "(cached) " >&6
93bd259b
AK
14693else
14694 ac_check_lib_save_LIBS=$LIBS
14695LIBS="-lc $LIBS"
14696cat >conftest.$ac_ext <<_ACEOF
14697/* confdefs.h. */
14698_ACEOF
14699cat confdefs.h >>conftest.$ac_ext
14700cat >>conftest.$ac_ext <<_ACEOF
14701/* end confdefs.h. */
14702
14703/* Override any GCC internal prototype to avoid an error.
14704 Use char because int might match the return type of a GCC
14705 builtin and then its argument prototype would still apply. */
14706#ifdef __cplusplus
14707extern "C"
14708#endif
14709char getline ();
14710int
14711main ()
14712{
14713return getline ();
14714 ;
14715 return 0;
14716}
14717_ACEOF
14718rm -f conftest.$ac_objext conftest$ac_exeext
14719if { (ac_try="$ac_link"
14720case "(($ac_try" in
14721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14722 *) ac_try_echo=$ac_try;;
14723esac
ec6a6fbe
AK
14724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14725$as_echo "$ac_try_echo") >&5
93bd259b
AK
14726 (eval "$ac_link") 2>conftest.er1
14727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
ec6a6fbe 14731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14732 (exit $ac_status); } && {
14733 test -z "$ac_c_werror_flag" ||
14734 test ! -s conftest.err
ec6a6fbe
AK
14735 } && test -s conftest$ac_exeext && {
14736 test "$cross_compiling" = yes ||
14737 $as_test_x conftest$ac_exeext
14738 }; then
93bd259b
AK
14739 ac_cv_lib_c_getline=yes
14740else
ec6a6fbe 14741 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14742sed 's/^/| /' conftest.$ac_ext >&5
14743
14744 ac_cv_lib_c_getline=no
14745fi
14746
ec6a6fbe 14747rm -rf conftest.dSYM
93bd259b
AK
14748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14749 conftest$ac_exeext conftest.$ac_ext
14750LIBS=$ac_check_lib_save_LIBS
14751fi
ec6a6fbe
AK
14752{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
14753$as_echo "$ac_cv_lib_c_getline" >&6; }
14754if test "x$ac_cv_lib_c_getline" = x""yes; then
93bd259b
AK
14755
14756cat >>confdefs.h <<\_ACEOF
14757#define HAVE_GETLINE 1
14758_ACEOF
14759
14760fi
14761
14762
14763################################################################################
14764
ec6a6fbe
AK
14765{ $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
14766$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
93bd259b 14767if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
ec6a6fbe 14768 $as_echo_n "(cached) " >&6
93bd259b
AK
14769else
14770 ac_check_lib_save_LIBS=$LIBS
14771LIBS="-lc $LIBS"
14772cat >conftest.$ac_ext <<_ACEOF
14773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
14778
14779/* Override any GCC internal prototype to avoid an error.
14780 Use char because int might match the return type of a GCC
14781 builtin and then its argument prototype would still apply. */
14782#ifdef __cplusplus
14783extern "C"
14784#endif
14785char canonicalize_file_name ();
14786int
14787main ()
14788{
14789return canonicalize_file_name ();
14790 ;
14791 return 0;
14792}
14793_ACEOF
14794rm -f conftest.$ac_objext conftest$ac_exeext
14795if { (ac_try="$ac_link"
14796case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799esac
ec6a6fbe
AK
14800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14801$as_echo "$ac_try_echo") >&5
93bd259b
AK
14802 (eval "$ac_link") 2>conftest.er1
14803 ac_status=$?
14804 grep -v '^ *+' conftest.er1 >conftest.err
14805 rm -f conftest.er1
14806 cat conftest.err >&5
ec6a6fbe 14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
93bd259b
AK
14808 (exit $ac_status); } && {
14809 test -z "$ac_c_werror_flag" ||
14810 test ! -s conftest.err
ec6a6fbe
AK
14811 } && test -s conftest$ac_exeext && {
14812 test "$cross_compiling" = yes ||
14813 $as_test_x conftest$ac_exeext
14814 }; then
93bd259b
AK
14815 ac_cv_lib_c_canonicalize_file_name=yes
14816else
ec6a6fbe 14817 $as_echo "$as_me: failed program was:" >&5
93bd259b
AK
14818sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ac_cv_lib_c_canonicalize_file_name=no
14821fi
14822
ec6a6fbe 14823rm -rf conftest.dSYM
93bd259b
AK
14824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14825 conftest$ac_exeext conftest.$ac_ext
14826LIBS=$ac_check_lib_save_LIBS
14827fi
ec6a6fbe
AK
14828{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14829$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14830if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
93bd259b
AK
14831
14832cat >>confdefs.h <<\_ACEOF
14833#define HAVE_CANONICALIZE_FILE_NAME 1
14834_ACEOF
14835
14836fi
14837
14838
d0191583
JM
14839################################################################################
14840if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
14841 then exec_prefix="";
14842fi;
ad6254c5 14843
ad6254c5 14844################################################################################
ec6a6fbe
AK
14845{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14846$as_echo_n "checking for dlopen in -ldl... " >&6; }
ad6254c5 14847if test "${ac_cv_lib_dl_dlopen+set}" = set; then
ec6a6fbe 14848 $as_echo_n "(cached) " >&6
ad6254c5
AK
14849else
14850 ac_check_lib_save_LIBS=$LIBS
14851LIBS="-ldl $LIBS"
14852cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
14853/* confdefs.h. */
14854_ACEOF
14855cat confdefs.h >>conftest.$ac_ext
14856cat >>conftest.$ac_ext <<_ACEOF
14857/* end confdefs.h. */
14858
7a197a62
AK
14859/* Override any GCC internal prototype to avoid an error.
14860 Use char because int might match the return type of a GCC
14861 builtin and then its argument prototype would still apply. */
ad6254c5
AK
14862#ifdef __cplusplus
14863extern "C"
14864#endif
ad6254c5
AK
14865char dlopen ();
14866int
14867main ()
14868{
7a197a62 14869return dlopen ();
ad6254c5
AK
14870 ;
14871 return 0;
14872}
14873_ACEOF
14874rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
14875if { (ac_try="$ac_link"
14876case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879esac
ec6a6fbe
AK
14880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881$as_echo "$ac_try_echo") >&5
7a197a62 14882 (eval "$ac_link") 2>conftest.er1
ad6254c5 14883 ac_status=$?
8a2fc586
AK
14884 grep -v '^ *+' conftest.er1 >conftest.err
14885 rm -f conftest.er1
14886 cat conftest.err >&5
ec6a6fbe 14887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
14888 (exit $ac_status); } && {
14889 test -z "$ac_c_werror_flag" ||
14890 test ! -s conftest.err
ec6a6fbe
AK
14891 } && test -s conftest$ac_exeext && {
14892 test "$cross_compiling" = yes ||
14893 $as_test_x conftest$ac_exeext
14894 }; then
ad6254c5
AK
14895 ac_cv_lib_dl_dlopen=yes
14896else
ec6a6fbe 14897 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
7a197a62 14900 ac_cv_lib_dl_dlopen=no
ad6254c5 14901fi
7a197a62 14902
ec6a6fbe 14903rm -rf conftest.dSYM
25fbec5b 14904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 14905 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
14906LIBS=$ac_check_lib_save_LIBS
14907fi
ec6a6fbe
AK
14908{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14909$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14910if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
ad6254c5 14911
72b2cb61
AK
14912
14913cat >>confdefs.h <<\_ACEOF
14914#define HAVE_LIBDL 1
14915_ACEOF
14916
19a2c6e0
ZK
14917 DL_LIBS="-ldl"
14918 HAVE_LIBDL=yes
ad6254c5 14919else
19a2c6e0
ZK
14920
14921 DL_LIBS=
ad6254c5
AK
14922 HAVE_LIBDL=no
14923fi
14924
19a2c6e0 14925
ad6254c5
AK
14926################################################################################
14927if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
14928 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
14929 \) -a "x$STATIC_LINK" = xyes ];
ec6a6fbe 14930 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
ad6254c5 14931" >&5
ec6a6fbe 14932$as_echo "$as_me: error: Features cannot be 'shared' when building statically
ad6254c5
AK
14933" >&2;}
14934 { (exit 1); exit 1; }; }
14935fi
14936
f30875db
ZK
14937################################################################################
14938if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
14939 { $as_echo "$as_me:$LINENO: checking for pthread_mutex_lock in -lpthread" >&5
14940$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
14941if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then
14942 $as_echo_n "(cached) " >&6
14943else
14944 ac_check_lib_save_LIBS=$LIBS
14945LIBS="-lpthread $LIBS"
14946cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952
14953/* Override any GCC internal prototype to avoid an error.
14954 Use char because int might match the return type of a GCC
14955 builtin and then its argument prototype would still apply. */
14956#ifdef __cplusplus
14957extern "C"
14958#endif
14959char pthread_mutex_lock ();
14960int
14961main ()
14962{
14963return pthread_mutex_lock ();
14964 ;
14965 return 0;
14966}
14967_ACEOF
14968rm -f conftest.$ac_objext conftest$ac_exeext
14969if { (ac_try="$ac_link"
14970case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973esac
14974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14975$as_echo "$ac_try_echo") >&5
14976 (eval "$ac_link") 2>conftest.er1
14977 ac_status=$?
14978 grep -v '^ *+' conftest.er1 >conftest.err
14979 rm -f conftest.er1
14980 cat conftest.err >&5
14981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); } && {
14983 test -z "$ac_c_werror_flag" ||
14984 test ! -s conftest.err
14985 } && test -s conftest$ac_exeext && {
14986 test "$cross_compiling" = yes ||
14987 $as_test_x conftest$ac_exeext
14988 }; then
14989 ac_cv_lib_pthread_pthread_mutex_lock=yes
14990else
14991 $as_echo "$as_me: failed program was:" >&5
14992sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 ac_cv_lib_pthread_pthread_mutex_lock=no
14995fi
14996
14997rm -rf conftest.dSYM
14998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999 conftest$ac_exeext conftest.$ac_ext
15000LIBS=$ac_check_lib_save_LIBS
15001fi
15002{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
15003$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
15004if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then
15005 PTHREAD_LIBS="-lpthread"
15006else
15007 hard_bailout
15008fi
15009
15010fi
15011
d0191583 15012################################################################################
ec6a6fbe
AK
15013{ $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
15014$as_echo_n "checking whether to enable selinux support... " >&6; }
d0191583
JM
15015# Check whether --enable-selinux was given.
15016if test "${enable_selinux+set}" = set; then
15017 enableval=$enable_selinux; SELINUX=$enableval
15018fi
15019
ec6a6fbe
AK
15020{ $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
15021$as_echo "$SELINUX" >&6; }
d0191583 15022
ad6254c5
AK
15023################################################################################
15024if test x$SELINUX = xyes; then
ec6a6fbe
AK
15025 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
15026$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
8a2fc586 15027if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
ec6a6fbe 15028 $as_echo_n "(cached) " >&6
8a2fc586
AK
15029else
15030 ac_check_lib_save_LIBS=$LIBS
15031LIBS="-lsepol $LIBS"
15032cat >conftest.$ac_ext <<_ACEOF
15033/* confdefs.h. */
15034_ACEOF
15035cat confdefs.h >>conftest.$ac_ext
15036cat >>conftest.$ac_ext <<_ACEOF
15037/* end confdefs.h. */
15038
7a197a62
AK
15039/* Override any GCC internal prototype to avoid an error.
15040 Use char because int might match the return type of a GCC
15041 builtin and then its argument prototype would still apply. */
8a2fc586
AK
15042#ifdef __cplusplus
15043extern "C"
15044#endif
8a2fc586
AK
15045char sepol_check_context ();
15046int
15047main ()
15048{
7a197a62 15049return sepol_check_context ();
8a2fc586
AK
15050 ;
15051 return 0;
15052}
15053_ACEOF
15054rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15055if { (ac_try="$ac_link"
15056case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059esac
ec6a6fbe
AK
15060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15061$as_echo "$ac_try_echo") >&5
7a197a62 15062 (eval "$ac_link") 2>conftest.er1
8a2fc586
AK
15063 ac_status=$?
15064 grep -v '^ *+' conftest.er1 >conftest.err
15065 rm -f conftest.er1
15066 cat conftest.err >&5
ec6a6fbe 15067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15068 (exit $ac_status); } && {
15069 test -z "$ac_c_werror_flag" ||
15070 test ! -s conftest.err
ec6a6fbe
AK
15071 } && test -s conftest$ac_exeext && {
15072 test "$cross_compiling" = yes ||
15073 $as_test_x conftest$ac_exeext
15074 }; then
8a2fc586
AK
15075 ac_cv_lib_sepol_sepol_check_context=yes
15076else
ec6a6fbe 15077 $as_echo "$as_me: failed program was:" >&5
8a2fc586
AK
15078sed 's/^/| /' conftest.$ac_ext >&5
15079
7a197a62 15080 ac_cv_lib_sepol_sepol_check_context=no
8a2fc586 15081fi
7a197a62 15082
ec6a6fbe 15083rm -rf conftest.dSYM
25fbec5b 15084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586
AK
15085 conftest$ac_exeext conftest.$ac_ext
15086LIBS=$ac_check_lib_save_LIBS
15087fi
ec6a6fbe
AK
15088{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
15089$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
15090if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then
8a2fc586 15091
d0191583
JM
15092
15093cat >>confdefs.h <<\_ACEOF
15094#define HAVE_SEPOL 1
15095_ACEOF
15096
f8f6ec92
ZK
15097 SELINUX_LIBS="-lsepol"
15098fi
15099
8a2fc586 15100
ec6a6fbe
AK
15101 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
15102$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
ad6254c5 15103if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
ec6a6fbe 15104 $as_echo_n "(cached) " >&6
ad6254c5
AK
15105else
15106 ac_check_lib_save_LIBS=$LIBS
15107LIBS="-lselinux $LIBS"
15108cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15109/* confdefs.h. */
15110_ACEOF
15111cat confdefs.h >>conftest.$ac_ext
15112cat >>conftest.$ac_ext <<_ACEOF
15113/* end confdefs.h. */
15114
7a197a62
AK
15115/* Override any GCC internal prototype to avoid an error.
15116 Use char because int might match the return type of a GCC
15117 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15118#ifdef __cplusplus
15119extern "C"
15120#endif
ad6254c5
AK
15121char is_selinux_enabled ();
15122int
15123main ()
15124{
7a197a62 15125return is_selinux_enabled ();
ad6254c5
AK
15126 ;
15127 return 0;
15128}
15129_ACEOF
15130rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15131if { (ac_try="$ac_link"
15132case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15135esac
ec6a6fbe
AK
15136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15137$as_echo "$ac_try_echo") >&5
7a197a62 15138 (eval "$ac_link") 2>conftest.er1
ad6254c5 15139 ac_status=$?
8a2fc586
AK
15140 grep -v '^ *+' conftest.er1 >conftest.err
15141 rm -f conftest.er1
15142 cat conftest.err >&5
ec6a6fbe 15143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15144 (exit $ac_status); } && {
15145 test -z "$ac_c_werror_flag" ||
15146 test ! -s conftest.err
ec6a6fbe
AK
15147 } && test -s conftest$ac_exeext && {
15148 test "$cross_compiling" = yes ||
15149 $as_test_x conftest$ac_exeext
15150 }; then
ad6254c5
AK
15151 ac_cv_lib_selinux_is_selinux_enabled=yes
15152else
ec6a6fbe 15153 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15154sed 's/^/| /' conftest.$ac_ext >&5
15155
7a197a62 15156 ac_cv_lib_selinux_is_selinux_enabled=no
ad6254c5 15157fi
7a197a62 15158
ec6a6fbe 15159rm -rf conftest.dSYM
25fbec5b 15160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15161 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15162LIBS=$ac_check_lib_save_LIBS
15163fi
ec6a6fbe
AK
15164{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
15165$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
15166if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
ad6254c5 15167
72b2cb61 15168
f8f6ec92
ZK
15169for ac_header in selinux/selinux.h
15170do
15171as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15174$as_echo_n "checking for $ac_header... " >&6; }
15175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15176 $as_echo_n "(cached) " >&6
f8f6ec92
ZK
15177fi
15178ac_res=`eval 'as_val=${'$as_ac_Header'}
15179 $as_echo "$as_val"'`
15180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15181$as_echo "$ac_res" >&6; }
66e941e8 15182else
f8f6ec92
ZK
15183 # Is the header compilable?
15184{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15185$as_echo_n "checking $ac_header usability... " >&6; }
66e941e8
JM
15186cat >conftest.$ac_ext <<_ACEOF
15187/* confdefs.h. */
15188_ACEOF
15189cat confdefs.h >>conftest.$ac_ext
15190cat >>conftest.$ac_ext <<_ACEOF
15191/* end confdefs.h. */
f8f6ec92
ZK
15192$ac_includes_default
15193#include <$ac_header>
66e941e8 15194_ACEOF
f8f6ec92
ZK
15195rm -f conftest.$ac_objext
15196if { (ac_try="$ac_compile"
66e941e8
JM
15197case "(($ac_try" in
15198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15199 *) ac_try_echo=$ac_try;;
15200esac
ec6a6fbe
AK
15201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15202$as_echo "$ac_try_echo") >&5
f8f6ec92 15203 (eval "$ac_compile") 2>conftest.er1
66e941e8
JM
15204 ac_status=$?
15205 grep -v '^ *+' conftest.er1 >conftest.err
15206 rm -f conftest.er1
15207 cat conftest.err >&5
ec6a6fbe 15208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15209 (exit $ac_status); } && {
15210 test -z "$ac_c_werror_flag" ||
15211 test ! -s conftest.err
f8f6ec92
ZK
15212 } && test -s conftest.$ac_objext; then
15213 ac_header_compiler=yes
15214else
15215 $as_echo "$as_me: failed program was:" >&5
15216sed 's/^/| /' conftest.$ac_ext >&5
15217
15218 ac_header_compiler=no
15219fi
15220
15221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15222{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15223$as_echo "$ac_header_compiler" >&6; }
15224
15225# Is the header present?
15226{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15227$as_echo_n "checking $ac_header presence... " >&6; }
15228cat >conftest.$ac_ext <<_ACEOF
15229/* confdefs.h. */
15230_ACEOF
15231cat confdefs.h >>conftest.$ac_ext
15232cat >>conftest.$ac_ext <<_ACEOF
15233/* end confdefs.h. */
15234#include <$ac_header>
15235_ACEOF
15236if { (ac_try="$ac_cpp conftest.$ac_ext"
15237case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15240esac
15241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15242$as_echo "$ac_try_echo") >&5
15243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15244 ac_status=$?
15245 grep -v '^ *+' conftest.er1 >conftest.err
15246 rm -f conftest.er1
15247 cat conftest.err >&5
15248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } >/dev/null && {
15250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15251 test ! -s conftest.err
ec6a6fbe 15252 }; then
f8f6ec92 15253 ac_header_preproc=yes
66e941e8 15254else
ec6a6fbe 15255 $as_echo "$as_me: failed program was:" >&5
66e941e8
JM
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
f8f6ec92
ZK
15258 ac_header_preproc=no
15259fi
15260
15261rm -f conftest.err conftest.$ac_ext
15262{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15263$as_echo "$ac_header_preproc" >&6; }
15264
15265# So? What about this header?
15266case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15267 yes:no: )
15268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15269$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15271$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15272 ac_header_preproc=yes
15273 ;;
15274 no:yes:* )
15275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15276$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15278$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15280$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15282$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15284$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15286$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66e941e8 15287
f8f6ec92
ZK
15288 ;;
15289esac
15290{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15291$as_echo_n "checking for $ac_header... " >&6; }
15292if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15293 $as_echo_n "(cached) " >&6
15294else
15295 eval "$as_ac_Header=\$ac_header_preproc"
66e941e8 15296fi
f8f6ec92
ZK
15297ac_res=`eval 'as_val=${'$as_ac_Header'}
15298 $as_echo "$as_val"'`
15299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15300$as_echo "$ac_res" >&6; }
66e941e8 15301
66e941e8 15302fi
f8f6ec92
ZK
15303as_val=`eval 'as_val=${'$as_ac_Header'}
15304 $as_echo "$as_val"'`
15305 if test "x$as_val" = x""yes; then
15306 cat >>confdefs.h <<_ACEOF
15307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15308_ACEOF
15309
66e941e8 15310else
f8f6ec92 15311 hard_bailout
66e941e8 15312fi
f8f6ec92
ZK
15313
15314done
15315
15316
15317cat >>confdefs.h <<\_ACEOF
15318#define HAVE_SELINUX 1
15319_ACEOF
15320
15321 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
f7f0854e 15322 SELINUX_PC="libselinux"
f8f6ec92
ZK
15323 HAVE_SELINUX=yes
15324else
15325
15326 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
15327$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
15328 SELINUX_LIBS=
f7f0854e 15329 SELINUX_PC=
f8f6ec92 15330 HAVE_SELINUX=no
66e941e8
JM
15331fi
15332
ad6254c5
AK
15333fi
15334
8b1a3214
AK
15335################################################################################
15336if test x$REALTIME = xyes; then
ec6a6fbe
AK
15337 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
15338$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
8b1a3214 15339if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
ec6a6fbe 15340 $as_echo_n "(cached) " >&6
8b1a3214
AK
15341else
15342 ac_check_lib_save_LIBS=$LIBS
15343LIBS="-lrt $LIBS"
15344cat >conftest.$ac_ext <<_ACEOF
15345/* confdefs.h. */
15346_ACEOF
15347cat confdefs.h >>conftest.$ac_ext
15348cat >>conftest.$ac_ext <<_ACEOF
15349/* end confdefs.h. */
15350
7a197a62
AK
15351/* Override any GCC internal prototype to avoid an error.
15352 Use char because int might match the return type of a GCC
15353 builtin and then its argument prototype would still apply. */
8b1a3214
AK
15354#ifdef __cplusplus
15355extern "C"
15356#endif
8b1a3214
AK
15357char clock_gettime ();
15358int
15359main ()
15360{
7a197a62 15361return clock_gettime ();
8b1a3214
AK
15362 ;
15363 return 0;
15364}
15365_ACEOF
15366rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15367if { (ac_try="$ac_link"
15368case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15371esac
ec6a6fbe
AK
15372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15373$as_echo "$ac_try_echo") >&5
7a197a62 15374 (eval "$ac_link") 2>conftest.er1
8b1a3214
AK
15375 ac_status=$?
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
ec6a6fbe 15379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15380 (exit $ac_status); } && {
15381 test -z "$ac_c_werror_flag" ||
15382 test ! -s conftest.err
ec6a6fbe
AK
15383 } && test -s conftest$ac_exeext && {
15384 test "$cross_compiling" = yes ||
15385 $as_test_x conftest$ac_exeext
15386 }; then
8b1a3214
AK
15387 ac_cv_lib_rt_clock_gettime=yes
15388else
ec6a6fbe 15389 $as_echo "$as_me: failed program was:" >&5
8b1a3214
AK
15390sed 's/^/| /' conftest.$ac_ext >&5
15391
7a197a62 15392 ac_cv_lib_rt_clock_gettime=no
8b1a3214 15393fi
7a197a62 15394
ec6a6fbe 15395rm -rf conftest.dSYM
25fbec5b 15396rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8b1a3214
AK
15397 conftest$ac_exeext conftest.$ac_ext
15398LIBS=$ac_check_lib_save_LIBS
15399fi
ec6a6fbe
AK
15400{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
15401$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15402if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
8b1a3214
AK
15403 HAVE_REALTIME=yes
15404else
15405 HAVE_REALTIME=no
15406fi
15407
8b1a3214
AK
15408
15409 if test x$HAVE_REALTIME = xyes; then
15410
15411cat >>confdefs.h <<\_ACEOF
15412#define HAVE_REALTIME 1
15413_ACEOF
15414
15415 LIBS="-lrt $LIBS"
15416 else
ec6a6fbe
AK
15417 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
15418$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
8b1a3214
AK
15419 fi
15420fi
15421
ad6254c5
AK
15422################################################################################
15423
15424for ac_header in getopt.h
15425do
ec6a6fbe 15426as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 15427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
15428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15429$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15431 $as_echo_n "(cached) " >&6
ad6254c5 15432fi
ec6a6fbe
AK
15433ac_res=`eval 'as_val=${'$as_ac_Header'}
15434 $as_echo "$as_val"'`
15435 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15436$as_echo "$ac_res" >&6; }
ad6254c5
AK
15437else
15438 # Is the header compilable?
ec6a6fbe
AK
15439{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15440$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 15441cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15442/* confdefs.h. */
15443_ACEOF
15444cat confdefs.h >>conftest.$ac_ext
15445cat >>conftest.$ac_ext <<_ACEOF
15446/* end confdefs.h. */
15447$ac_includes_default
15448#include <$ac_header>
15449_ACEOF
15450rm -f conftest.$ac_objext
7a197a62
AK
15451if { (ac_try="$ac_compile"
15452case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455esac
ec6a6fbe
AK
15456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15457$as_echo "$ac_try_echo") >&5
7a197a62 15458 (eval "$ac_compile") 2>conftest.er1
ad6254c5 15459 ac_status=$?
8a2fc586
AK
15460 grep -v '^ *+' conftest.er1 >conftest.err
15461 rm -f conftest.er1
15462 cat conftest.err >&5
ec6a6fbe 15463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15464 (exit $ac_status); } && {
15465 test -z "$ac_c_werror_flag" ||
15466 test ! -s conftest.err
15467 } && test -s conftest.$ac_objext; then
ad6254c5
AK
15468 ac_header_compiler=yes
15469else
ec6a6fbe 15470 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15471sed 's/^/| /' conftest.$ac_ext >&5
15472
7a197a62 15473 ac_header_compiler=no
ad6254c5 15474fi
7a197a62
AK
15475
15476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
15477{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15478$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
15479
15480# Is the header present?
ec6a6fbe
AK
15481{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15482$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 15483cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15484/* confdefs.h. */
15485_ACEOF
15486cat confdefs.h >>conftest.$ac_ext
15487cat >>conftest.$ac_ext <<_ACEOF
15488/* end confdefs.h. */
15489#include <$ac_header>
15490_ACEOF
7a197a62
AK
15491if { (ac_try="$ac_cpp conftest.$ac_ext"
15492case "(($ac_try" in
15493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494 *) ac_try_echo=$ac_try;;
15495esac
ec6a6fbe
AK
15496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15497$as_echo "$ac_try_echo") >&5
7a197a62 15498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
15499 ac_status=$?
15500 grep -v '^ *+' conftest.er1 >conftest.err
15501 rm -f conftest.er1
15502 cat conftest.err >&5
ec6a6fbe 15503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15504 (exit $ac_status); } >/dev/null && {
15505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15506 test ! -s conftest.err
15507 }; then
ad6254c5
AK
15508 ac_header_preproc=yes
15509else
ec6a6fbe 15510 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15511sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 ac_header_preproc=no
15514fi
7a197a62 15515
ad6254c5 15516rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
15517{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15518$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
15519
15520# So? What about this header?
8a2fc586
AK
15521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15522 yes:no: )
ec6a6fbe
AK
15523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15524$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15525 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15526$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 15527 ac_header_preproc=yes
ad6254c5 15528 ;;
8a2fc586 15529 no:yes:* )
ec6a6fbe
AK
15530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15531$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15533$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15535$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15537$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15539$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15541$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 15542
ad6254c5
AK
15543 ;;
15544esac
ec6a6fbe
AK
15545{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15546$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 15547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15548 $as_echo_n "(cached) " >&6
ad6254c5 15549else
8a2fc586 15550 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 15551fi
ec6a6fbe
AK
15552ac_res=`eval 'as_val=${'$as_ac_Header'}
15553 $as_echo "$as_val"'`
15554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15555$as_echo "$ac_res" >&6; }
ad6254c5
AK
15556
15557fi
ec6a6fbe
AK
15558as_val=`eval 'as_val=${'$as_ac_Header'}
15559 $as_echo "$as_val"'`
15560 if test "x$as_val" = x""yes; then
ad6254c5 15561 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 15563_ACEOF
72b2cb61
AK
15564
15565cat >>confdefs.h <<\_ACEOF
15566#define HAVE_GETOPTLONG 1
15567_ACEOF
15568
ad6254c5
AK
15569fi
15570
15571done
15572
15573
15574################################################################################
06e459df 15575if test x$READLINE != xno; then
539f4a77
ZK
15576 lvm_saved_libs=$LIBS
15577 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
15578$as_echo_n "checking for library containing tgetent... " >&6; }
15579if test "${ac_cv_search_tgetent+set}" = set; then
15580 $as_echo_n "(cached) " >&6
15581else
15582 ac_func_search_save_LIBS=$LIBS
15583cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h. */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h. */
bc1024f8 15589
539f4a77
ZK
15590/* Override any GCC internal prototype to avoid an error.
15591 Use char because int might match the return type of a GCC
15592 builtin and then its argument prototype would still apply. */
15593#ifdef __cplusplus
15594extern "C"
15595#endif
15596char tgetent ();
15597int
15598main ()
15599{
15600return tgetent ();
15601 ;
15602 return 0;
15603}
15604_ACEOF
15605for ac_lib in '' tinfo ncurses curses termcap termlib; do
15606 if test -z "$ac_lib"; then
15607 ac_res="none required"
15608 else
15609 ac_res=-l$ac_lib
15610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15611 fi
15612 rm -f conftest.$ac_objext conftest$ac_exeext
15613if { (ac_try="$ac_link"
15614case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15617esac
15618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15619$as_echo "$ac_try_echo") >&5
15620 (eval "$ac_link") 2>conftest.er1
15621 ac_status=$?
15622 grep -v '^ *+' conftest.er1 >conftest.err
15623 rm -f conftest.er1
15624 cat conftest.err >&5
15625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } && {
15627 test -z "$ac_c_werror_flag" ||
15628 test ! -s conftest.err
15629 } && test -s conftest$ac_exeext && {
15630 test "$cross_compiling" = yes ||
15631 $as_test_x conftest$ac_exeext
15632 }; then
15633 ac_cv_search_tgetent=$ac_res
15634else
15635 $as_echo "$as_me: failed program was:" >&5
15636sed 's/^/| /' conftest.$ac_ext >&5
15637
15638
15639fi
15640
15641rm -rf conftest.dSYM
15642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15643 conftest$ac_exeext
15644 if test "${ac_cv_search_tgetent+set}" = set; then
15645 break
15646fi
15647done
15648if test "${ac_cv_search_tgetent+set}" = set; then
15649 :
15650else
15651 ac_cv_search_tgetent=no
15652fi
15653rm conftest.$ac_ext
15654LIBS=$ac_func_search_save_LIBS
15655fi
15656{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
15657$as_echo "$ac_cv_search_tgetent" >&6; }
15658ac_res=$ac_cv_search_tgetent
15659if test "$ac_res" != no; then
15660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15661 READLINE_LIBS=$ac_cv_search_tgetent
15662else
15663
15664 if test "$READLINE" = yes; then
15665 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
15666--enable-readline option (which is enabled by default). Either disable readline
15667support with --disable-readline or download and install termcap from:
15668 ftp.gnu.org/gnu/termcap
15669Note: if you are using precompiled packages you will also need the development
15670 package as well (which may be called termcap-devel or something similar).
15671Note: (n)curses also seems to work as a substitute for termcap. This was
15672 not found either - but you could try installing that as well." >&5
15673$as_echo "$as_me: error: termcap could not be found which is required for the
15674--enable-readline option (which is enabled by default). Either disable readline
15675support with --disable-readline or download and install termcap from:
15676 ftp.gnu.org/gnu/termcap
15677Note: if you are using precompiled packages you will also need the development
15678 package as well (which may be called termcap-devel or something similar).
15679Note: (n)curses also seems to work as a substitute for termcap. This was
15680 not found either - but you could try installing that as well." >&2;}
15681 { (exit 1); exit 1; }; }
15682 fi
15683fi
15684
15685 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
ec6a6fbe 15686$as_echo_n "checking for readline in -lreadline... " >&6; }
ad6254c5 15687if test "${ac_cv_lib_readline_readline+set}" = set; then
ec6a6fbe 15688 $as_echo_n "(cached) " >&6
ad6254c5
AK
15689else
15690 ac_check_lib_save_LIBS=$LIBS
15691LIBS="-lreadline $LIBS"
15692cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
15698
7a197a62
AK
15699/* Override any GCC internal prototype to avoid an error.
15700 Use char because int might match the return type of a GCC
15701 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15702#ifdef __cplusplus
15703extern "C"
15704#endif
ad6254c5
AK
15705char readline ();
15706int
15707main ()
15708{
7a197a62 15709return readline ();
ad6254c5
AK
15710 ;
15711 return 0;
15712}
15713_ACEOF
15714rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15715if { (ac_try="$ac_link"
15716case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15719esac
ec6a6fbe
AK
15720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15721$as_echo "$ac_try_echo") >&5
7a197a62 15722 (eval "$ac_link") 2>conftest.er1
ad6254c5 15723 ac_status=$?
8a2fc586
AK
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
ec6a6fbe 15727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
ec6a6fbe
AK
15731 } && test -s conftest$ac_exeext && {
15732 test "$cross_compiling" = yes ||
15733 $as_test_x conftest$ac_exeext
15734 }; then
ad6254c5
AK
15735 ac_cv_lib_readline_readline=yes
15736else
ec6a6fbe 15737 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15738sed 's/^/| /' conftest.$ac_ext >&5
15739
7a197a62 15740 ac_cv_lib_readline_readline=no
ad6254c5 15741fi
7a197a62 15742
ec6a6fbe 15743rm -rf conftest.dSYM
25fbec5b 15744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15745 conftest$ac_exeext conftest.$ac_ext
ad6254c5
AK
15746LIBS=$ac_check_lib_save_LIBS
15747fi
ec6a6fbe
AK
15748{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
15749$as_echo "$ac_cv_lib_readline_readline" >&6; }
15750if test "x$ac_cv_lib_readline_readline" = x""yes; then
539f4a77
ZK
15751
15752
15753cat >>confdefs.h <<\_ACEOF
15754#define READLINE_SUPPORT 1
bc1024f8
JM
15755_ACEOF
15756
539f4a77
ZK
15757 LIBS=$lvm_saved_libs
15758 { $as_echo "$as_me:$LINENO: checking for rl_line_buffer in -lreadline" >&5
15759$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
15760if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then
15761 $as_echo_n "(cached) " >&6
15762else
15763 ac_check_lib_save_LIBS=$LIBS
15764LIBS="-lreadline $LIBS"
15765cat >conftest.$ac_ext <<_ACEOF
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
bc1024f8 15771
539f4a77
ZK
15772/* Override any GCC internal prototype to avoid an error.
15773 Use char because int might match the return type of a GCC
15774 builtin and then its argument prototype would still apply. */
15775#ifdef __cplusplus
15776extern "C"
15777#endif
15778char rl_line_buffer ();
15779int
15780main ()
15781{
15782return rl_line_buffer ();
15783 ;
15784 return 0;
15785}
15786_ACEOF
15787rm -f conftest.$ac_objext conftest$ac_exeext
15788if { (ac_try="$ac_link"
15789case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792esac
15793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15794$as_echo "$ac_try_echo") >&5
15795 (eval "$ac_link") 2>conftest.er1
15796 ac_status=$?
15797 grep -v '^ *+' conftest.er1 >conftest.err
15798 rm -f conftest.er1
15799 cat conftest.err >&5
15800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } && {
15802 test -z "$ac_c_werror_flag" ||
15803 test ! -s conftest.err
15804 } && test -s conftest$ac_exeext && {
15805 test "$cross_compiling" = yes ||
15806 $as_test_x conftest$ac_exeext
15807 }; then
15808 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 15809else
539f4a77
ZK
15810 $as_echo "$as_me: failed program was:" >&5
15811sed 's/^/| /' conftest.$ac_ext >&5
15812
15813 ac_cv_lib_readline_rl_line_buffer=no
06e459df
JM
15814fi
15815
539f4a77
ZK
15816rm -rf conftest.dSYM
15817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15818 conftest$ac_exeext conftest.$ac_ext
15819LIBS=$ac_check_lib_save_LIBS
15820fi
15821{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15822$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15823if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then
15824 READLINE_LIBS="-lreadline"
15825else
15826
15827 { $as_echo "$as_me:$LINENO: result: linking -lreadline with $READLINE_LIBS needed" >&5
15828$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
15829 READLINE_LIBS="-lreadline $READLINE_LIBS"
15830
15831fi
15832
15833else
15834
15835 READLINE_LIBS=
15836 if test "$READLINE" = yes; then
15837 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15838--enable-readline option (which is enabled by default). Either disable readline
15839support with --disable-readline or download and install readline from:
15840 ftp.gnu.org/gnu/readline
15841Note: if you are using precompiled packages you will also need the development
539f4a77 15842package as well (which may be called readline-devel or something similar)." >&5
ec6a6fbe 15843$as_echo "$as_me: error: GNU Readline could not be found which is required for the
ad6254c5
AK
15844--enable-readline option (which is enabled by default). Either disable readline
15845support with --disable-readline or download and install readline from:
15846 ftp.gnu.org/gnu/readline
15847Note: if you are using precompiled packages you will also need the development
539f4a77 15848package as well (which may be called readline-devel or something similar)." >&2;}
ad6254c5 15849 { (exit 1); exit 1; }; }
539f4a77
ZK
15850 fi
15851fi
15852
15853 LIBS="$READLINE_LIBS $lvm_saved_libs"
bc1024f8
JM
15854
15855for ac_func in rl_completion_matches
15856do
ec6a6fbe
AK
15857as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15858{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15859$as_echo_n "checking for $ac_func... " >&6; }
bc1024f8 15860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 15861 $as_echo_n "(cached) " >&6
ad6254c5
AK
15862else
15863 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
15864/* confdefs.h. */
15865_ACEOF
15866cat confdefs.h >>conftest.$ac_ext
15867cat >>conftest.$ac_ext <<_ACEOF
15868/* end confdefs.h. */
bc1024f8 15869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8a2fc586 15870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
bc1024f8 15871#define $ac_func innocuous_$ac_func
8a2fc586 15872
ad6254c5 15873/* System header to define __stub macros and hopefully few prototypes,
bc1024f8 15874 which can conflict with char $ac_func (); below.
ad6254c5
AK
15875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15876 <limits.h> exists even on freestanding compilers. */
8a2fc586 15877
ad6254c5
AK
15878#ifdef __STDC__
15879# include <limits.h>
15880#else
15881# include <assert.h>
15882#endif
8a2fc586 15883
bc1024f8 15884#undef $ac_func
8a2fc586 15885
7a197a62
AK
15886/* Override any GCC internal prototype to avoid an error.
15887 Use char because int might match the return type of a GCC
15888 builtin and then its argument prototype would still apply. */
ad6254c5
AK
15889#ifdef __cplusplus
15890extern "C"
ad6254c5 15891#endif
bc1024f8 15892char $ac_func ();
ad6254c5
AK
15893/* The GNU C library defines this for functions which it implements
15894 to always fail with ENOSYS. Some functions are actually named
15895 something starting with __ and the normal name is an alias. */
bc1024f8 15896#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 15897choke me
ad6254c5
AK
15898#endif
15899
15900int
15901main ()
15902{
bc1024f8 15903return $ac_func ();
ad6254c5
AK
15904 ;
15905 return 0;
15906}
15907_ACEOF
15908rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
15909if { (ac_try="$ac_link"
15910case "(($ac_try" in
15911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15912 *) ac_try_echo=$ac_try;;
15913esac
ec6a6fbe
AK
15914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15915$as_echo "$ac_try_echo") >&5
7a197a62 15916 (eval "$ac_link") 2>conftest.er1
ad6254c5 15917 ac_status=$?
8a2fc586
AK
15918 grep -v '^ *+' conftest.er1 >conftest.err
15919 rm -f conftest.er1
15920 cat conftest.err >&5
ec6a6fbe 15921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
15922 (exit $ac_status); } && {
15923 test -z "$ac_c_werror_flag" ||
15924 test ! -s conftest.err
ec6a6fbe
AK
15925 } && test -s conftest$ac_exeext && {
15926 test "$cross_compiling" = yes ||
15927 $as_test_x conftest$ac_exeext
15928 }; then
bc1024f8 15929 eval "$as_ac_var=yes"
ad6254c5 15930else
ec6a6fbe 15931 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
15932sed 's/^/| /' conftest.$ac_ext >&5
15933
bc1024f8 15934 eval "$as_ac_var=no"
ad6254c5 15935fi
7a197a62 15936
ec6a6fbe 15937rm -rf conftest.dSYM
25fbec5b 15938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 15939 conftest$ac_exeext conftest.$ac_ext
ad6254c5 15940fi
ec6a6fbe
AK
15941ac_res=`eval 'as_val=${'$as_ac_var'}
15942 $as_echo "$as_val"'`
15943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15944$as_echo "$ac_res" >&6; }
15945as_val=`eval 'as_val=${'$as_ac_var'}
15946 $as_echo "$as_val"'`
15947 if test "x$as_val" = x""yes; then
bc1024f8 15948 cat >>confdefs.h <<_ACEOF
ec6a6fbe 15949#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
72b2cb61
AK
15950_ACEOF
15951
15952fi
bc1024f8 15953done
ad6254c5 15954
539f4a77 15955 LIBS=$lvm_saved_libs
ad6254c5
AK
15956fi
15957
15958################################################################################
ec6a6fbe
AK
15959{ $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
15960$as_echo_n "checking whether to enable internationalisation... " >&6; }
7a197a62 15961# Check whether --enable-nls was given.
ad6254c5 15962if test "${enable_nls+set}" = set; then
7a197a62 15963 enableval=$enable_nls; INTL=$enableval
ad6254c5
AK
15964else
15965 INTL=no
7a197a62
AK
15966fi
15967
ec6a6fbe
AK
15968{ $as_echo "$as_me:$LINENO: result: $INTL" >&5
15969$as_echo "$INTL" >&6; }
ad6254c5
AK
15970
15971if test x$INTL = xyes; then
93bd259b 15972# FIXME - Move this - can be device-mapper too
ad6254c5
AK
15973 INTL_PACKAGE="lvm2"
15974 # Extract the first word of "msgfmt", so it can be a program name with args.
15975set dummy msgfmt; ac_word=$2
ec6a6fbe
AK
15976{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
15977$as_echo_n "checking for $ac_word... " >&6; }
ad6254c5 15978if test "${ac_cv_path_MSGFMT+set}" = set; then
ec6a6fbe 15979 $as_echo_n "(cached) " >&6
ad6254c5
AK
15980else
15981 case $MSGFMT in
15982 [\\/]* | ?:[\\/]*)
15983 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15984 ;;
15985 *)
15986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15987for as_dir in $PATH
15988do
15989 IFS=$as_save_IFS
15990 test -z "$as_dir" && as_dir=.
15991 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 15992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ad6254c5 15993 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 15994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
15995 break 2
15996 fi
15997done
15998done
7a197a62 15999IFS=$as_save_IFS
ad6254c5
AK
16000
16001 ;;
16002esac
16003fi
16004MSGFMT=$ac_cv_path_MSGFMT
ad6254c5 16005if test -n "$MSGFMT"; then
ec6a6fbe
AK
16006 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
16007$as_echo "$MSGFMT" >&6; }
ad6254c5 16008else
ec6a6fbe
AK
16009 { $as_echo "$as_me:$LINENO: result: no" >&5
16010$as_echo "no" >&6; }
ad6254c5
AK
16011fi
16012
7a197a62 16013
ad6254c5 16014 if [ "x$MSGFMT" == x ];
ec6a6fbe 16015 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
ad6254c5 16016 " >&5
ec6a6fbe 16017$as_echo "$as_me: error: msgfmt not found in path $PATH
ad6254c5
AK
16018 " >&2;}
16019 { (exit 1); exit 1; }; }
16020 fi;
16021
16022
7a197a62 16023# Check whether --with-localedir was given.
ad6254c5 16024if test "${with_localedir+set}" = set; then
71082be4 16025 withval=$with_localedir; LOCALEDIR=$withval
ad6254c5 16026else
71082be4 16027 LOCALEDIR='${prefix}/share/locale'
7a197a62
AK
16028fi
16029
ad6254c5
AK
16030fi
16031
16032################################################################################
16033
7a197a62 16034# Check whether --with-confdir was given.
ad6254c5 16035if test "${with_confdir+set}" = set; then
71082be4 16036 withval=$with_confdir; CONFDIR=$withval
ad6254c5 16037else
71082be4 16038 CONFDIR="/etc"
7a197a62
AK
16039fi
16040
ad6254c5
AK
16041
16042
7a197a62 16043# Check whether --with-staticdir was given.
ad6254c5 16044if test "${with_staticdir+set}" = set; then
71082be4 16045 withval=$with_staticdir; STATICDIR=$withval
ad6254c5 16046else
71082be4 16047 STATICDIR='${exec_prefix}/sbin'
7a197a62 16048fi
ad6254c5 16049
33f732c5 16050
7a197a62 16051
68f2de6d
AK
16052# Check whether --with-usrlibdir was given.
16053if test "${with_usrlibdir+set}" = set; then
71082be4 16054 withval=$with_usrlibdir; usrlibdir=$withval
68f2de6d 16055else
71082be4 16056 usrlibdir='${prefix}/lib'
68f2de6d
AK
16057fi
16058
16059
16060
16061# Check whether --with-usrsbindir was given.
16062if test "${with_usrsbindir+set}" = set; then
71082be4 16063 withval=$with_usrsbindir; usrsbindir=$withval
68f2de6d 16064else
71082be4 16065 usrsbindir='${prefix}/sbin'
68f2de6d
AK
16066fi
16067
16068
a5f46f6a
AK
16069################################################################################
16070
16071# Check whether --with-udev_prefix was given.
16072if test "${with_udev_prefix+set}" = set; then
71082be4 16073 withval=$with_udev_prefix; udev_prefix=$withval
a5f46f6a 16074else
71082be4 16075 udev_prefix='${exec_prefix}'
a5f46f6a
AK
16076fi
16077
16078
78ce7acc
AK
16079
16080# Check whether --with-udevdir was given.
16081if test "${with_udevdir+set}" = set; then
71082be4 16082 withval=$with_udevdir; udevdir=$withval
78ce7acc 16083else
71082be4 16084 udevdir='${udev_prefix}/lib/udev/rules.d'
78ce7acc
AK
16085fi
16086
a5f46f6a 16087
ad6254c5
AK
16088################################################################################
16089if test x$READLINE = xyes; then
16090
16091
16092for ac_header in readline/readline.h readline/history.h
16093do
ec6a6fbe 16094as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16096 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16097$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16099 $as_echo_n "(cached) " >&6
ad6254c5 16100fi
ec6a6fbe
AK
16101ac_res=`eval 'as_val=${'$as_ac_Header'}
16102 $as_echo "$as_val"'`
16103 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16104$as_echo "$ac_res" >&6; }
ad6254c5
AK
16105else
16106 # Is the header compilable?
ec6a6fbe
AK
16107{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16109cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$ac_includes_default
16116#include <$ac_header>
16117_ACEOF
16118rm -f conftest.$ac_objext
7a197a62
AK
16119if { (ac_try="$ac_compile"
16120case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123esac
ec6a6fbe
AK
16124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16125$as_echo "$ac_try_echo") >&5
7a197a62 16126 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16127 ac_status=$?
8a2fc586
AK
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
ec6a6fbe 16131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16132 (exit $ac_status); } && {
16133 test -z "$ac_c_werror_flag" ||
16134 test ! -s conftest.err
16135 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16136 ac_header_compiler=yes
16137else
ec6a6fbe 16138 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16139sed 's/^/| /' conftest.$ac_ext >&5
16140
7a197a62 16141 ac_header_compiler=no
ad6254c5 16142fi
7a197a62
AK
16143
16144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16145{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16147
16148# Is the header present?
ec6a6fbe
AK
16149{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16150$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16151cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16152/* confdefs.h. */
16153_ACEOF
16154cat confdefs.h >>conftest.$ac_ext
16155cat >>conftest.$ac_ext <<_ACEOF
16156/* end confdefs.h. */
16157#include <$ac_header>
16158_ACEOF
7a197a62
AK
16159if { (ac_try="$ac_cpp conftest.$ac_ext"
16160case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16163esac
ec6a6fbe
AK
16164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16165$as_echo "$ac_try_echo") >&5
7a197a62 16166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16167 ac_status=$?
16168 grep -v '^ *+' conftest.er1 >conftest.err
16169 rm -f conftest.er1
16170 cat conftest.err >&5
ec6a6fbe 16171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16172 (exit $ac_status); } >/dev/null && {
16173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16174 test ! -s conftest.err
16175 }; then
ad6254c5
AK
16176 ac_header_preproc=yes
16177else
ec6a6fbe 16178 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16179sed 's/^/| /' conftest.$ac_ext >&5
16180
16181 ac_header_preproc=no
16182fi
7a197a62 16183
ad6254c5 16184rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16185{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16186$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16187
16188# So? What about this header?
8a2fc586
AK
16189case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16190 yes:no: )
ec6a6fbe
AK
16191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16192$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16194$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16195 ac_header_preproc=yes
ad6254c5 16196 ;;
8a2fc586 16197 no:yes:* )
ec6a6fbe
AK
16198 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16199$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16200 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16201$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16203$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16205$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16207$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16209$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16210
ad6254c5
AK
16211 ;;
16212esac
ec6a6fbe
AK
16213{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16214$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16215if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16216 $as_echo_n "(cached) " >&6
ad6254c5 16217else
8a2fc586 16218 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16219fi
ec6a6fbe
AK
16220ac_res=`eval 'as_val=${'$as_ac_Header'}
16221 $as_echo "$as_val"'`
16222 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16223$as_echo "$ac_res" >&6; }
ad6254c5
AK
16224
16225fi
ec6a6fbe
AK
16226as_val=`eval 'as_val=${'$as_ac_Header'}
16227 $as_echo "$as_val"'`
16228 if test "x$as_val" = x""yes; then
ad6254c5 16229 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16231_ACEOF
16232
16233else
ec6a6fbe
AK
16234 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16235$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
16236 { (exit 1); exit 1; }; }
16237fi
16238
16239done
16240
16241fi
16242
5c7fc7c4 16243if test x$CLVMD != xnone; then
ad6254c5
AK
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254for 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
16255do
ec6a6fbe 16256as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16258 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16259$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16261 $as_echo_n "(cached) " >&6
ad6254c5 16262fi
ec6a6fbe
AK
16263ac_res=`eval 'as_val=${'$as_ac_Header'}
16264 $as_echo "$as_val"'`
16265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16266$as_echo "$ac_res" >&6; }
ad6254c5
AK
16267else
16268 # Is the header compilable?
ec6a6fbe
AK
16269{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16270$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16271cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16272/* confdefs.h. */
16273_ACEOF
16274cat confdefs.h >>conftest.$ac_ext
16275cat >>conftest.$ac_ext <<_ACEOF
16276/* end confdefs.h. */
16277$ac_includes_default
16278#include <$ac_header>
16279_ACEOF
16280rm -f conftest.$ac_objext
7a197a62
AK
16281if { (ac_try="$ac_compile"
16282case "(($ac_try" in
16283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284 *) ac_try_echo=$ac_try;;
16285esac
ec6a6fbe
AK
16286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16287$as_echo "$ac_try_echo") >&5
7a197a62 16288 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16289 ac_status=$?
8a2fc586
AK
16290 grep -v '^ *+' conftest.er1 >conftest.err
16291 rm -f conftest.er1
16292 cat conftest.err >&5
ec6a6fbe 16293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16294 (exit $ac_status); } && {
16295 test -z "$ac_c_werror_flag" ||
16296 test ! -s conftest.err
16297 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16298 ac_header_compiler=yes
16299else
ec6a6fbe 16300 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16301sed 's/^/| /' conftest.$ac_ext >&5
16302
7a197a62 16303 ac_header_compiler=no
ad6254c5 16304fi
7a197a62
AK
16305
16306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16307{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16308$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16309
16310# Is the header present?
ec6a6fbe
AK
16311{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16312$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16313cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16314/* confdefs.h. */
16315_ACEOF
16316cat confdefs.h >>conftest.$ac_ext
16317cat >>conftest.$ac_ext <<_ACEOF
16318/* end confdefs.h. */
16319#include <$ac_header>
16320_ACEOF
7a197a62
AK
16321if { (ac_try="$ac_cpp conftest.$ac_ext"
16322case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16325esac
ec6a6fbe
AK
16326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16327$as_echo "$ac_try_echo") >&5
7a197a62 16328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16329 ac_status=$?
16330 grep -v '^ *+' conftest.er1 >conftest.err
16331 rm -f conftest.er1
16332 cat conftest.err >&5
ec6a6fbe 16333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16334 (exit $ac_status); } >/dev/null && {
16335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16336 test ! -s conftest.err
16337 }; then
ad6254c5
AK
16338 ac_header_preproc=yes
16339else
ec6a6fbe 16340 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16341sed 's/^/| /' conftest.$ac_ext >&5
16342
16343 ac_header_preproc=no
16344fi
7a197a62 16345
ad6254c5 16346rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16347{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16348$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16349
16350# So? What about this header?
8a2fc586
AK
16351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16352 yes:no: )
ec6a6fbe
AK
16353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16354$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16356$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16357 ac_header_preproc=yes
ad6254c5 16358 ;;
8a2fc586 16359 no:yes:* )
ec6a6fbe
AK
16360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16361$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16363$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16365$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16367$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16369$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16371$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16372
ad6254c5
AK
16373 ;;
16374esac
ec6a6fbe
AK
16375{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16376$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16377if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16378 $as_echo_n "(cached) " >&6
ad6254c5 16379else
8a2fc586 16380 eval "$as_ac_Header=\$ac_header_preproc"
ad6254c5 16381fi
ec6a6fbe
AK
16382ac_res=`eval 'as_val=${'$as_ac_Header'}
16383 $as_echo "$as_val"'`
16384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16385$as_echo "$ac_res" >&6; }
ad6254c5
AK
16386
16387fi
ec6a6fbe
AK
16388as_val=`eval 'as_val=${'$as_ac_Header'}
16389 $as_echo "$as_val"'`
16390 if test "x$as_val" = x""yes; then
ad6254c5 16391 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16392#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16393_ACEOF
16394
16395else
ec6a6fbe
AK
16396 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16397$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16398 { (exit 1); exit 1; }; }
795ca3e5
AK
16399fi
16400
ad6254c5
AK
16401done
16402
16403
795ca3e5 16404
8106cdd5 16405
ad6254c5
AK
16406
16407
16408for ac_func in dup2 getmntent memmove select socket
16409do
ec6a6fbe
AK
16410as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16411{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16412$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 16413if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16414 $as_echo_n "(cached) " >&6
795ca3e5 16415else
ad6254c5 16416 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16417/* confdefs.h. */
16418_ACEOF
16419cat confdefs.h >>conftest.$ac_ext
16420cat >>conftest.$ac_ext <<_ACEOF
16421/* end confdefs.h. */
8a2fc586
AK
16422/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16424#define $ac_func innocuous_$ac_func
16425
795ca3e5 16426/* System header to define __stub macros and hopefully few prototypes,
ad6254c5
AK
16427 which can conflict with char $ac_func (); below.
16428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16429 <limits.h> exists even on freestanding compilers. */
8a2fc586 16430
ad6254c5
AK
16431#ifdef __STDC__
16432# include <limits.h>
16433#else
16434# include <assert.h>
16435#endif
8a2fc586
AK
16436
16437#undef $ac_func
16438
7a197a62
AK
16439/* Override any GCC internal prototype to avoid an error.
16440 Use char because int might match the return type of a GCC
16441 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16442#ifdef __cplusplus
16443extern "C"
ad6254c5 16444#endif
ad6254c5 16445char $ac_func ();
795ca3e5
AK
16446/* The GNU C library defines this for functions which it implements
16447 to always fail with ENOSYS. Some functions are actually named
16448 something starting with __ and the normal name is an alias. */
7a197a62 16449#if defined __stub_$ac_func || defined __stub___$ac_func
795ca3e5 16450choke me
795ca3e5
AK
16451#endif
16452
ad6254c5
AK
16453int
16454main ()
16455{
7a197a62 16456return $ac_func ();
ad6254c5
AK
16457 ;
16458 return 0;
16459}
16460_ACEOF
16461rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16462if { (ac_try="$ac_link"
16463case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16466esac
ec6a6fbe
AK
16467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16468$as_echo "$ac_try_echo") >&5
7a197a62 16469 (eval "$ac_link") 2>conftest.er1
ad6254c5 16470 ac_status=$?
8a2fc586
AK
16471 grep -v '^ *+' conftest.er1 >conftest.err
16472 rm -f conftest.er1
16473 cat conftest.err >&5
ec6a6fbe 16474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16475 (exit $ac_status); } && {
16476 test -z "$ac_c_werror_flag" ||
16477 test ! -s conftest.err
ec6a6fbe
AK
16478 } && test -s conftest$ac_exeext && {
16479 test "$cross_compiling" = yes ||
16480 $as_test_x conftest$ac_exeext
16481 }; then
ad6254c5 16482 eval "$as_ac_var=yes"
795ca3e5 16483else
ec6a6fbe 16484 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16485sed 's/^/| /' conftest.$ac_ext >&5
16486
7a197a62 16487 eval "$as_ac_var=no"
80992638 16488fi
7a197a62 16489
ec6a6fbe 16490rm -rf conftest.dSYM
25fbec5b 16491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 16492 conftest$ac_exeext conftest.$ac_ext
795ca3e5 16493fi
ec6a6fbe
AK
16494ac_res=`eval 'as_val=${'$as_ac_var'}
16495 $as_echo "$as_val"'`
16496 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16497$as_echo "$ac_res" >&6; }
16498as_val=`eval 'as_val=${'$as_ac_var'}
16499 $as_echo "$as_val"'`
16500 if test "x$as_val" = x""yes; then
ad6254c5 16501 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16502#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 16503_ACEOF
80992638
AK
16504
16505else
ec6a6fbe
AK
16506 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16507$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16508 { (exit 1); exit 1; }; }
8106cdd5 16509fi
ad6254c5 16510done
795ca3e5 16511
25fbec5b
AK
16512 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
16513# -lseq on Dynix/PTX, -lgen on Unixware.
ec6a6fbe
AK
16514{ $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
16515$as_echo_n "checking for library containing getmntent... " >&6; }
25fbec5b 16516if test "${ac_cv_search_getmntent+set}" = set; then
ec6a6fbe 16517 $as_echo_n "(cached) " >&6
25fbec5b
AK
16518else
16519 ac_func_search_save_LIBS=$LIBS
16520cat >conftest.$ac_ext <<_ACEOF
16521/* confdefs.h. */
16522_ACEOF
16523cat confdefs.h >>conftest.$ac_ext
16524cat >>conftest.$ac_ext <<_ACEOF
16525/* end confdefs.h. */
80992638 16526
7a197a62
AK
16527/* Override any GCC internal prototype to avoid an error.
16528 Use char because int might match the return type of a GCC
ad6254c5 16529 builtin and then its argument prototype would still apply. */
ad6254c5
AK
16530#ifdef __cplusplus
16531extern "C"
16532#endif
25fbec5b 16533char getmntent ();
ad6254c5
AK
16534int
16535main ()
16536{
25fbec5b 16537return getmntent ();
ad6254c5
AK
16538 ;
16539 return 0;
16540}
16541_ACEOF
25fbec5b
AK
16542for ac_lib in '' sun seq gen; do
16543 if test -z "$ac_lib"; then
16544 ac_res="none required"
16545 else
16546 ac_res=-l$ac_lib
16547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16548 fi
16549 rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
16550if { (ac_try="$ac_link"
16551case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554esac
ec6a6fbe
AK
16555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16556$as_echo "$ac_try_echo") >&5
7a197a62 16557 (eval "$ac_link") 2>conftest.er1
ad6254c5 16558 ac_status=$?
8a2fc586
AK
16559 grep -v '^ *+' conftest.er1 >conftest.err
16560 rm -f conftest.er1
16561 cat conftest.err >&5
ec6a6fbe 16562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16563 (exit $ac_status); } && {
16564 test -z "$ac_c_werror_flag" ||
16565 test ! -s conftest.err
ec6a6fbe
AK
16566 } && test -s conftest$ac_exeext && {
16567 test "$cross_compiling" = yes ||
16568 $as_test_x conftest$ac_exeext
16569 }; then
25fbec5b 16570 ac_cv_search_getmntent=$ac_res
80992638 16571else
ec6a6fbe 16572 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16573sed 's/^/| /' conftest.$ac_ext >&5
16574
25fbec5b 16575
795ca3e5
AK
16576fi
16577
ec6a6fbe 16578rm -rf conftest.dSYM
25fbec5b
AK
16579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16580 conftest$ac_exeext
16581 if test "${ac_cv_search_getmntent+set}" = set; then
16582 break
795ca3e5 16583fi
25fbec5b
AK
16584done
16585if test "${ac_cv_search_getmntent+set}" = set; then
16586 :
16587else
16588 ac_cv_search_getmntent=no
16589fi
16590rm conftest.$ac_ext
16591LIBS=$ac_func_search_save_LIBS
16592fi
ec6a6fbe
AK
16593{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
16594$as_echo "$ac_cv_search_getmntent" >&6; }
25fbec5b
AK
16595ac_res=$ac_cv_search_getmntent
16596if test "$ac_res" != no; then
16597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16598 ac_cv_func_getmntent=yes
16599
16600cat >>confdefs.h <<\_ACEOF
9c961554 16601#define HAVE_GETMNTENT 1
ad6254c5 16602_ACEOF
795ca3e5 16603
25fbec5b
AK
16604else
16605 ac_cv_func_getmntent=no
795ca3e5 16606fi
795ca3e5
AK
16607
16608
ad6254c5
AK
16609
16610
16611for ac_header in sys/select.h sys/socket.h
16612do
ec6a6fbe 16613as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16616$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16617if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16618 $as_echo_n "(cached) " >&6
ad6254c5 16619fi
ec6a6fbe
AK
16620ac_res=`eval 'as_val=${'$as_ac_Header'}
16621 $as_echo "$as_val"'`
16622 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16623$as_echo "$ac_res" >&6; }
795ca3e5 16624else
ad6254c5 16625 # Is the header compilable?
ec6a6fbe
AK
16626{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16627$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16628cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16629/* confdefs.h. */
16630_ACEOF
16631cat confdefs.h >>conftest.$ac_ext
16632cat >>conftest.$ac_ext <<_ACEOF
16633/* end confdefs.h. */
16634$ac_includes_default
16635#include <$ac_header>
16636_ACEOF
16637rm -f conftest.$ac_objext
7a197a62
AK
16638if { (ac_try="$ac_compile"
16639case "(($ac_try" in
16640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641 *) ac_try_echo=$ac_try;;
16642esac
ec6a6fbe
AK
16643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16644$as_echo "$ac_try_echo") >&5
7a197a62 16645 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16646 ac_status=$?
8a2fc586
AK
16647 grep -v '^ *+' conftest.er1 >conftest.err
16648 rm -f conftest.er1
16649 cat conftest.err >&5
ec6a6fbe 16650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16651 (exit $ac_status); } && {
16652 test -z "$ac_c_werror_flag" ||
16653 test ! -s conftest.err
16654 } && test -s conftest.$ac_objext; then
ad6254c5 16655 ac_header_compiler=yes
80992638 16656else
ec6a6fbe 16657 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16658sed 's/^/| /' conftest.$ac_ext >&5
16659
7a197a62 16660 ac_header_compiler=no
ad6254c5 16661fi
7a197a62
AK
16662
16663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16664{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16665$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16666
16667# Is the header present?
ec6a6fbe
AK
16668{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16669$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16670cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676#include <$ac_header>
16677_ACEOF
7a197a62
AK
16678if { (ac_try="$ac_cpp conftest.$ac_ext"
16679case "(($ac_try" in
16680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16681 *) ac_try_echo=$ac_try;;
16682esac
ec6a6fbe
AK
16683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16684$as_echo "$ac_try_echo") >&5
7a197a62 16685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16686 ac_status=$?
16687 grep -v '^ *+' conftest.er1 >conftest.err
16688 rm -f conftest.er1
16689 cat conftest.err >&5
ec6a6fbe 16690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16691 (exit $ac_status); } >/dev/null && {
16692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 }; then
ad6254c5
AK
16695 ac_header_preproc=yes
16696else
ec6a6fbe 16697 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 ac_header_preproc=no
16701fi
7a197a62 16702
ad6254c5 16703rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16704{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16705$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16706
16707# So? What about this header?
8a2fc586
AK
16708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16709 yes:no: )
ec6a6fbe
AK
16710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16711$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16713$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16714 ac_header_preproc=yes
ad6254c5 16715 ;;
8a2fc586 16716 no:yes:* )
ec6a6fbe
AK
16717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16718$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16720$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16722$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16723 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16724$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16726$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16728$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16729
ad6254c5
AK
16730 ;;
16731esac
ec6a6fbe
AK
16732{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16733$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16734if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16735 $as_echo_n "(cached) " >&6
ad6254c5 16736else
8a2fc586 16737 eval "$as_ac_Header=\$ac_header_preproc"
8106cdd5 16738fi
ec6a6fbe
AK
16739ac_res=`eval 'as_val=${'$as_ac_Header'}
16740 $as_echo "$as_val"'`
16741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16742$as_echo "$ac_res" >&6; }
8106cdd5 16743
795ca3e5 16744fi
ec6a6fbe
AK
16745as_val=`eval 'as_val=${'$as_ac_Header'}
16746 $as_echo "$as_val"'`
16747 if test "x$as_val" = x""yes; then
ad6254c5 16748 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16749#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16750_ACEOF
16751
795ca3e5
AK
16752fi
16753
ad6254c5
AK
16754done
16755
ec6a6fbe
AK
16756{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
16757$as_echo_n "checking types of arguments for select... " >&6; }
ad6254c5 16758if test "${ac_cv_func_select_args+set}" = set; then
ec6a6fbe 16759 $as_echo_n "(cached) " >&6
26e7f2e0 16760else
ad6254c5 16761 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
7a197a62 16762 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
ad6254c5
AK
16763 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16764 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
16770$ac_includes_default
25fbec5b 16771#ifdef HAVE_SYS_SELECT_H
ad6254c5
AK
16772# include <sys/select.h>
16773#endif
25fbec5b 16774#ifdef HAVE_SYS_SOCKET_H
ad6254c5
AK
16775# include <sys/socket.h>
16776#endif
16777
16778int
16779main ()
16780{
16781extern int select ($ac_arg1,
8a2fc586
AK
16782 $ac_arg234, $ac_arg234, $ac_arg234,
16783 $ac_arg5);
ad6254c5
AK
16784 ;
16785 return 0;
16786}
16787_ACEOF
16788rm -f conftest.$ac_objext
7a197a62
AK
16789if { (ac_try="$ac_compile"
16790case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16793esac
ec6a6fbe
AK
16794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16795$as_echo "$ac_try_echo") >&5
7a197a62 16796 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16797 ac_status=$?
8a2fc586
AK
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
ec6a6fbe 16801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16802 (exit $ac_status); } && {
16803 test -z "$ac_c_werror_flag" ||
16804 test ! -s conftest.err
16805 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16806 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16807else
ec6a6fbe 16808 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16809sed 's/^/| /' conftest.$ac_ext >&5
16810
7a197a62 16811
ad6254c5 16812fi
7a197a62
AK
16813
16814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5
AK
16815 done
16816 done
16817done
16818# Provide a safe default value.
16819: ${ac_cv_func_select_args='int,int *,struct timeval *'}
16820
26e7f2e0 16821fi
ec6a6fbe
AK
16822{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16823$as_echo "$ac_cv_func_select_args" >&6; }
ad6254c5
AK
16824ac_save_IFS=$IFS; IFS=','
16825set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16826IFS=$ac_save_IFS
16827shift
16828
16829cat >>confdefs.h <<_ACEOF
16830#define SELECT_TYPE_ARG1 $1
16831_ACEOF
16832
16833
16834cat >>confdefs.h <<_ACEOF
16835#define SELECT_TYPE_ARG234 ($2)
16836_ACEOF
16837
16838
16839cat >>confdefs.h <<_ACEOF
16840#define SELECT_TYPE_ARG5 ($3)
16841_ACEOF
16842
80992638 16843rm -f conftest*
80992638 16844
8106cdd5 16845fi
ad6254c5 16846
ad6254c5
AK
16847if test x$CLUSTER != xnone; then
16848
16849
16850for ac_header in sys/socket.h sys/un.h
b896caa1 16851do
ec6a6fbe 16852as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 16853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
16854 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16855$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16857 $as_echo_n "(cached) " >&6
ad6254c5 16858fi
ec6a6fbe
AK
16859ac_res=`eval 'as_val=${'$as_ac_Header'}
16860 $as_echo "$as_val"'`
16861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16862$as_echo "$ac_res" >&6; }
ad6254c5
AK
16863else
16864 # Is the header compilable?
ec6a6fbe
AK
16865{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16866$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 16867cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16868/* confdefs.h. */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h. */
16873$ac_includes_default
16874#include <$ac_header>
16875_ACEOF
16876rm -f conftest.$ac_objext
7a197a62
AK
16877if { (ac_try="$ac_compile"
16878case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881esac
ec6a6fbe
AK
16882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16883$as_echo "$ac_try_echo") >&5
7a197a62 16884 (eval "$ac_compile") 2>conftest.er1
ad6254c5 16885 ac_status=$?
8a2fc586
AK
16886 grep -v '^ *+' conftest.er1 >conftest.err
16887 rm -f conftest.er1
16888 cat conftest.err >&5
ec6a6fbe 16889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16890 (exit $ac_status); } && {
16891 test -z "$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16893 } && test -s conftest.$ac_objext; then
ad6254c5
AK
16894 ac_header_compiler=yes
16895else
ec6a6fbe 16896 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16897sed 's/^/| /' conftest.$ac_ext >&5
16898
7a197a62 16899 ac_header_compiler=no
ad6254c5 16900fi
7a197a62
AK
16901
16902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
16903{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16904$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
16905
16906# Is the header present?
ec6a6fbe
AK
16907{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16908$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 16909cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
16910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
16915#include <$ac_header>
16916_ACEOF
7a197a62
AK
16917if { (ac_try="$ac_cpp conftest.$ac_ext"
16918case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921esac
ec6a6fbe
AK
16922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16923$as_echo "$ac_try_echo") >&5
7a197a62 16924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
16925 ac_status=$?
16926 grep -v '^ *+' conftest.er1 >conftest.err
16927 rm -f conftest.er1
16928 cat conftest.err >&5
ec6a6fbe 16929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
16930 (exit $ac_status); } >/dev/null && {
16931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 }; then
ad6254c5
AK
16934 ac_header_preproc=yes
16935else
ec6a6fbe 16936 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
16937sed 's/^/| /' conftest.$ac_ext >&5
16938
16939 ac_header_preproc=no
16940fi
7a197a62 16941
ad6254c5 16942rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
16943{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16944$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
16945
16946# So? What about this header?
8a2fc586
AK
16947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16948 yes:no: )
ec6a6fbe
AK
16949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16950$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16952$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 16953 ac_header_preproc=yes
ad6254c5 16954 ;;
8a2fc586 16955 no:yes:* )
ec6a6fbe
AK
16956 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16957$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16959$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16961$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16963$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16965$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16967$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 16968
ad6254c5
AK
16969 ;;
16970esac
ec6a6fbe
AK
16971{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16972$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 16973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 16974 $as_echo_n "(cached) " >&6
ad6254c5 16975else
8a2fc586 16976 eval "$as_ac_Header=\$ac_header_preproc"
b896caa1 16977fi
ec6a6fbe
AK
16978ac_res=`eval 'as_val=${'$as_ac_Header'}
16979 $as_echo "$as_val"'`
16980 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16981$as_echo "$ac_res" >&6; }
ad6254c5
AK
16982
16983fi
ec6a6fbe
AK
16984as_val=`eval 'as_val=${'$as_ac_Header'}
16985 $as_echo "$as_val"'`
16986 if test "x$as_val" = x""yes; then
ad6254c5 16987 cat >>confdefs.h <<_ACEOF
ec6a6fbe 16988#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5
AK
16989_ACEOF
16990
80992638 16991else
ec6a6fbe
AK
16992 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
16993$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 16994 { (exit 1); exit 1; }; }
b896caa1 16995fi
ad6254c5 16996
b896caa1
AK
16997done
16998
16999
ad6254c5
AK
17000for ac_func in socket
17001do
ec6a6fbe
AK
17002as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17003{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17004$as_echo_n "checking for $ac_func... " >&6; }
7a197a62 17005if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17006 $as_echo_n "(cached) " >&6
795ca3e5 17007else
ad6254c5 17008 cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17009/* confdefs.h. */
17010_ACEOF
17011cat confdefs.h >>conftest.$ac_ext
17012cat >>conftest.$ac_ext <<_ACEOF
17013/* end confdefs.h. */
8a2fc586
AK
17014/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17016#define $ac_func innocuous_$ac_func
17017
ad6254c5
AK
17018/* System header to define __stub macros and hopefully few prototypes,
17019 which can conflict with char $ac_func (); below.
17020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17021 <limits.h> exists even on freestanding compilers. */
8a2fc586 17022
ad6254c5
AK
17023#ifdef __STDC__
17024# include <limits.h>
17025#else
17026# include <assert.h>
17027#endif
8a2fc586
AK
17028
17029#undef $ac_func
17030
7a197a62
AK
17031/* Override any GCC internal prototype to avoid an error.
17032 Use char because int might match the return type of a GCC
17033 builtin and then its argument prototype would still apply. */
ad6254c5
AK
17034#ifdef __cplusplus
17035extern "C"
ad6254c5 17036#endif
ad6254c5
AK
17037char $ac_func ();
17038/* The GNU C library defines this for functions which it implements
17039 to always fail with ENOSYS. Some functions are actually named
17040 something starting with __ and the normal name is an alias. */
7a197a62 17041#if defined __stub_$ac_func || defined __stub___$ac_func
ad6254c5 17042choke me
ad6254c5
AK
17043#endif
17044
17045int
17046main ()
17047{
7a197a62 17048return $ac_func ();
ad6254c5
AK
17049 ;
17050 return 0;
17051}
17052_ACEOF
17053rm -f conftest.$ac_objext conftest$ac_exeext
7a197a62
AK
17054if { (ac_try="$ac_link"
17055case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
ec6a6fbe
AK
17059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17060$as_echo "$ac_try_echo") >&5
7a197a62 17061 (eval "$ac_link") 2>conftest.er1
ad6254c5 17062 ac_status=$?
8a2fc586
AK
17063 grep -v '^ *+' conftest.er1 >conftest.err
17064 rm -f conftest.er1
17065 cat conftest.err >&5
ec6a6fbe 17066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
ec6a6fbe
AK
17070 } && test -s conftest$ac_exeext && {
17071 test "$cross_compiling" = yes ||
17072 $as_test_x conftest$ac_exeext
17073 }; then
ad6254c5
AK
17074 eval "$as_ac_var=yes"
17075else
ec6a6fbe 17076 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17077sed 's/^/| /' conftest.$ac_ext >&5
17078
7a197a62 17079 eval "$as_ac_var=no"
ad6254c5 17080fi
7a197a62 17081
ec6a6fbe 17082rm -rf conftest.dSYM
25fbec5b 17083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8a2fc586 17084 conftest$ac_exeext conftest.$ac_ext
ad6254c5 17085fi
ec6a6fbe
AK
17086ac_res=`eval 'as_val=${'$as_ac_var'}
17087 $as_echo "$as_val"'`
17088 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17089$as_echo "$ac_res" >&6; }
17090as_val=`eval 'as_val=${'$as_ac_var'}
17091 $as_echo "$as_val"'`
17092 if test "x$as_val" = x""yes; then
ad6254c5 17093 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17094#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5
AK
17095_ACEOF
17096
17097else
ec6a6fbe
AK
17098 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17099$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5
AK
17100 { (exit 1); exit 1; }; }
17101fi
17102done
17103
17104fi
17105
d911ec67
AK
17106if test x$DMEVENTD = xyes; then
17107
17108for ac_header in arpa/inet.h
17109do
17110as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17113$as_echo_n "checking for $ac_header... " >&6; }
17114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17115 $as_echo_n "(cached) " >&6
17116fi
17117ac_res=`eval 'as_val=${'$as_ac_Header'}
17118 $as_echo "$as_val"'`
17119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17120$as_echo "$ac_res" >&6; }
17121else
17122 # Is the header compilable?
17123{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17124$as_echo_n "checking $ac_header usability... " >&6; }
17125cat >conftest.$ac_ext <<_ACEOF
17126/* confdefs.h. */
17127_ACEOF
17128cat confdefs.h >>conftest.$ac_ext
17129cat >>conftest.$ac_ext <<_ACEOF
17130/* end confdefs.h. */
17131$ac_includes_default
17132#include <$ac_header>
17133_ACEOF
17134rm -f conftest.$ac_objext
17135if { (ac_try="$ac_compile"
17136case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17141$as_echo "$ac_try_echo") >&5
17142 (eval "$ac_compile") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest.$ac_objext; then
17152 ac_header_compiler=yes
17153else
17154 $as_echo "$as_me: failed program was:" >&5
17155sed 's/^/| /' conftest.$ac_ext >&5
17156
17157 ac_header_compiler=no
17158fi
17159
17160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17161{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17162$as_echo "$ac_header_compiler" >&6; }
17163
17164# Is the header present?
17165{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17166$as_echo_n "checking $ac_header presence... " >&6; }
17167cat >conftest.$ac_ext <<_ACEOF
17168/* confdefs.h. */
17169_ACEOF
17170cat confdefs.h >>conftest.$ac_ext
17171cat >>conftest.$ac_ext <<_ACEOF
17172/* end confdefs.h. */
17173#include <$ac_header>
17174_ACEOF
17175if { (ac_try="$ac_cpp conftest.$ac_ext"
17176case "(($ac_try" in
17177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17178 *) ac_try_echo=$ac_try;;
17179esac
17180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17181$as_echo "$ac_try_echo") >&5
17182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17183 ac_status=$?
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
17187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } >/dev/null && {
17189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17190 test ! -s conftest.err
17191 }; then
17192 ac_header_preproc=yes
17193else
17194 $as_echo "$as_me: failed program was:" >&5
17195sed 's/^/| /' conftest.$ac_ext >&5
17196
17197 ac_header_preproc=no
17198fi
17199
17200rm -f conftest.err conftest.$ac_ext
17201{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17202$as_echo "$ac_header_preproc" >&6; }
17203
17204# So? What about this header?
17205case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17206 yes:no: )
17207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17208$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17210$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17211 ac_header_preproc=yes
17212 ;;
17213 no:yes:* )
17214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17215$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17217$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17219$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17221$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17223$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17225$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17226
17227 ;;
17228esac
17229{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17230$as_echo_n "checking for $ac_header... " >&6; }
17231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17232 $as_echo_n "(cached) " >&6
17233else
17234 eval "$as_ac_Header=\$ac_header_preproc"
17235fi
17236ac_res=`eval 'as_val=${'$as_ac_Header'}
17237 $as_echo "$as_val"'`
17238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17239$as_echo "$ac_res" >&6; }
17240
17241fi
17242as_val=`eval 'as_val=${'$as_ac_Header'}
17243 $as_echo "$as_val"'`
17244 if test "x$as_val" = x""yes; then
17245 cat >>confdefs.h <<_ACEOF
17246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17247_ACEOF
17248
17249else
17250 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17251$as_echo "$as_me: error: bailing out" >&2;}
17252 { (exit 1); exit 1; }; }
17253fi
17254
17255done
17256
17257fi
17258
ad6254c5
AK
17259if test x$HAVE_LIBDL = xyes; then
17260
17261for ac_header in dlfcn.h
17262do
ec6a6fbe 17263as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17264if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17266$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17268 $as_echo_n "(cached) " >&6
ad6254c5 17269fi
ec6a6fbe
AK
17270ac_res=`eval 'as_val=${'$as_ac_Header'}
17271 $as_echo "$as_val"'`
17272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17273$as_echo "$ac_res" >&6; }
ad6254c5
AK
17274else
17275 # Is the header compilable?
ec6a6fbe
AK
17276{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17277$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17278cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17279/* confdefs.h. */
17280_ACEOF
17281cat confdefs.h >>conftest.$ac_ext
17282cat >>conftest.$ac_ext <<_ACEOF
17283/* end confdefs.h. */
17284$ac_includes_default
17285#include <$ac_header>
17286_ACEOF
17287rm -f conftest.$ac_objext
7a197a62
AK
17288if { (ac_try="$ac_compile"
17289case "(($ac_try" in
17290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291 *) ac_try_echo=$ac_try;;
17292esac
ec6a6fbe
AK
17293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17294$as_echo "$ac_try_echo") >&5
7a197a62 17295 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17296 ac_status=$?
8a2fc586
AK
17297 grep -v '^ *+' conftest.er1 >conftest.err
17298 rm -f conftest.er1
17299 cat conftest.err >&5
ec6a6fbe 17300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17301 (exit $ac_status); } && {
17302 test -z "$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17304 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17305 ac_header_compiler=yes
17306else
ec6a6fbe 17307 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17308sed 's/^/| /' conftest.$ac_ext >&5
17309
7a197a62 17310 ac_header_compiler=no
ad6254c5 17311fi
7a197a62
AK
17312
17313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17314{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17315$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17316
17317# Is the header present?
ec6a6fbe
AK
17318{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17319$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17320cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17321/* confdefs.h. */
17322_ACEOF
17323cat confdefs.h >>conftest.$ac_ext
17324cat >>conftest.$ac_ext <<_ACEOF
17325/* end confdefs.h. */
17326#include <$ac_header>
17327_ACEOF
7a197a62
AK
17328if { (ac_try="$ac_cpp conftest.$ac_ext"
17329case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17332esac
ec6a6fbe
AK
17333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17334$as_echo "$ac_try_echo") >&5
7a197a62 17335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17336 ac_status=$?
17337 grep -v '^ *+' conftest.er1 >conftest.err
17338 rm -f conftest.er1
17339 cat conftest.err >&5
ec6a6fbe 17340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17341 (exit $ac_status); } >/dev/null && {
17342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 }; then
ad6254c5
AK
17345 ac_header_preproc=yes
17346else
ec6a6fbe 17347 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17348sed 's/^/| /' conftest.$ac_ext >&5
17349
17350 ac_header_preproc=no
17351fi
7a197a62 17352
ad6254c5 17353rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17354{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17355$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17356
17357# So? What about this header?
8a2fc586
AK
17358case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17359 yes:no: )
ec6a6fbe
AK
17360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17361$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17363$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17364 ac_header_preproc=yes
ad6254c5 17365 ;;
8a2fc586 17366 no:yes:* )
ec6a6fbe
AK
17367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17368$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17370$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17372$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17374$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17376$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17378$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17379
ad6254c5
AK
17380 ;;
17381esac
ec6a6fbe
AK
17382{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17383$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17385 $as_echo_n "(cached) " >&6
ad6254c5 17386else
8a2fc586 17387 eval "$as_ac_Header=\$ac_header_preproc"
795ca3e5 17388fi
ec6a6fbe
AK
17389ac_res=`eval 'as_val=${'$as_ac_Header'}
17390 $as_echo "$as_val"'`
17391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17392$as_echo "$ac_res" >&6; }
80992638 17393
8106cdd5 17394fi
ec6a6fbe
AK
17395as_val=`eval 'as_val=${'$as_ac_Header'}
17396 $as_echo "$as_val"'`
17397 if test "x$as_val" = x""yes; then
ad6254c5 17398 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17400_ACEOF
795ca3e5
AK
17401
17402else
ec6a6fbe
AK
17403 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17404$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17405 { (exit 1); exit 1; }; }
795ca3e5
AK
17406fi
17407
ad6254c5 17408done
80992638 17409
ad6254c5 17410fi
80992638 17411
ad6254c5 17412if test x$INTL = xyes; then
83912faa 17413
ad6254c5
AK
17414for ac_header in libintl.h
17415do
ec6a6fbe 17416as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7a197a62 17417if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe
AK
17418 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17419$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17420if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17421 $as_echo_n "(cached) " >&6
ad6254c5 17422fi
ec6a6fbe
AK
17423ac_res=`eval 'as_val=${'$as_ac_Header'}
17424 $as_echo "$as_val"'`
17425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17426$as_echo "$ac_res" >&6; }
83912faa 17427else
ad6254c5 17428 # Is the header compilable?
ec6a6fbe
AK
17429{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17430$as_echo_n "checking $ac_header usability... " >&6; }
ad6254c5 17431cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
17437$ac_includes_default
17438#include <$ac_header>
17439_ACEOF
17440rm -f conftest.$ac_objext
7a197a62
AK
17441if { (ac_try="$ac_compile"
17442case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445esac
ec6a6fbe
AK
17446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17447$as_echo "$ac_try_echo") >&5
7a197a62 17448 (eval "$ac_compile") 2>conftest.er1
ad6254c5 17449 ac_status=$?
8a2fc586
AK
17450 grep -v '^ *+' conftest.er1 >conftest.err
17451 rm -f conftest.er1
17452 cat conftest.err >&5
ec6a6fbe 17453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest.$ac_objext; then
ad6254c5
AK
17458 ac_header_compiler=yes
17459else
ec6a6fbe 17460 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17461sed 's/^/| /' conftest.$ac_ext >&5
17462
7a197a62 17463 ac_header_compiler=no
ad6254c5 17464fi
7a197a62
AK
17465
17466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ec6a6fbe
AK
17467{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17468$as_echo "$ac_header_compiler" >&6; }
ad6254c5
AK
17469
17470# Is the header present?
ec6a6fbe
AK
17471{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17472$as_echo_n "checking $ac_header presence... " >&6; }
ad6254c5 17473cat >conftest.$ac_ext <<_ACEOF
ad6254c5
AK
17474/* confdefs.h. */
17475_ACEOF
17476cat confdefs.h >>conftest.$ac_ext
17477cat >>conftest.$ac_ext <<_ACEOF
17478/* end confdefs.h. */
17479#include <$ac_header>
17480_ACEOF
7a197a62
AK
17481if { (ac_try="$ac_cpp conftest.$ac_ext"
17482case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17485esac
ec6a6fbe
AK
17486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17487$as_echo "$ac_try_echo") >&5
7a197a62 17488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
ad6254c5
AK
17489 ac_status=$?
17490 grep -v '^ *+' conftest.er1 >conftest.err
17491 rm -f conftest.er1
17492 cat conftest.err >&5
ec6a6fbe 17493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25fbec5b
AK
17494 (exit $ac_status); } >/dev/null && {
17495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 }; then
ad6254c5
AK
17498 ac_header_preproc=yes
17499else
ec6a6fbe 17500 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
17501sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 ac_header_preproc=no
17504fi
7a197a62 17505
ad6254c5 17506rm -f conftest.err conftest.$ac_ext
ec6a6fbe
AK
17507{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17508$as_echo "$ac_header_preproc" >&6; }
ad6254c5
AK
17509
17510# So? What about this header?
8a2fc586
AK
17511case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17512 yes:no: )
ec6a6fbe
AK
17513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17514$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17516$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8a2fc586 17517 ac_header_preproc=yes
ad6254c5 17518 ;;
8a2fc586 17519 no:yes:* )
ec6a6fbe
AK
17520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17521$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17523$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17525$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17527$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17529$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17531$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7a197a62 17532
ad6254c5
AK
17533 ;;
17534esac
ec6a6fbe
AK
17535{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17536$as_echo_n "checking for $ac_header... " >&6; }
7a197a62 17537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
ec6a6fbe 17538 $as_echo_n "(cached) " >&6
80992638 17539else
8a2fc586 17540 eval "$as_ac_Header=\$ac_header_preproc"
83912faa 17541fi
ec6a6fbe
AK
17542ac_res=`eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'`
17544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17545$as_echo "$ac_res" >&6; }
83912faa 17546
69792976 17547fi
ec6a6fbe
AK
17548as_val=`eval 'as_val=${'$as_ac_Header'}
17549 $as_echo "$as_val"'`
17550 if test "x$as_val" = x""yes; then
ad6254c5 17551 cat >>confdefs.h <<_ACEOF
ec6a6fbe 17552#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 17553_ACEOF
69792976 17554
69792976 17555else
ec6a6fbe
AK
17556 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17557$as_echo "$as_me: error: bailing out" >&2;}
ad6254c5 17558 { (exit 1); exit 1; }; }
80992638
AK
17559fi
17560
ad6254c5 17561done
69792976 17562
ad6254c5
AK
17563fi
17564
a5f46f6a
AK
17565if test x$UDEV_SYNC = xyes; then
17566
17567
17568for ac_header in sys/ipc.h sys/sem.h
17569do
17570as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17572 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17573$as_echo_n "checking for $ac_header... " >&6; }
17574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17575 $as_echo_n "(cached) " >&6
17576fi
17577ac_res=`eval 'as_val=${'$as_ac_Header'}
17578 $as_echo "$as_val"'`
17579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17580$as_echo "$ac_res" >&6; }
17581else
17582 # Is the header compilable?
17583{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17584$as_echo_n "checking $ac_header usability... " >&6; }
17585cat >conftest.$ac_ext <<_ACEOF
17586/* confdefs.h. */
17587_ACEOF
17588cat confdefs.h >>conftest.$ac_ext
17589cat >>conftest.$ac_ext <<_ACEOF
17590/* end confdefs.h. */
17591$ac_includes_default
17592#include <$ac_header>
17593_ACEOF
17594rm -f conftest.$ac_objext
17595if { (ac_try="$ac_compile"
17596case "(($ac_try" in
17597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598 *) ac_try_echo=$ac_try;;
17599esac
17600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17601$as_echo "$ac_try_echo") >&5
17602 (eval "$ac_compile") 2>conftest.er1
17603 ac_status=$?
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
17607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && {
17609 test -z "$ac_c_werror_flag" ||
17610 test ! -s conftest.err
17611 } && test -s conftest.$ac_objext; then
17612 ac_header_compiler=yes
17613else
17614 $as_echo "$as_me: failed program was:" >&5
17615sed 's/^/| /' conftest.$ac_ext >&5
17616
17617 ac_header_compiler=no
17618fi
17619
17620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17622$as_echo "$ac_header_compiler" >&6; }
17623
17624# Is the header present?
17625{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17626$as_echo_n "checking $ac_header presence... " >&6; }
17627cat >conftest.$ac_ext <<_ACEOF
17628/* confdefs.h. */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h. */
17633#include <$ac_header>
17634_ACEOF
17635if { (ac_try="$ac_cpp conftest.$ac_ext"
17636case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17639esac
17640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17641$as_echo "$ac_try_echo") >&5
17642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17643 ac_status=$?
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
17647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } >/dev/null && {
17649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17650 test ! -s conftest.err
17651 }; then
17652 ac_header_preproc=yes
17653else
17654 $as_echo "$as_me: failed program was:" >&5
17655sed 's/^/| /' conftest.$ac_ext >&5
17656
17657 ac_header_preproc=no
17658fi
17659
17660rm -f conftest.err conftest.$ac_ext
17661{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17662$as_echo "$ac_header_preproc" >&6; }
17663
17664# So? What about this header?
17665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17666 yes:no: )
17667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17668$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17670$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17671 ac_header_preproc=yes
17672 ;;
17673 no:yes:* )
17674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17675$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17677$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17679$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17681$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17683$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17685$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17686
17687 ;;
17688esac
17689{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17690$as_echo_n "checking for $ac_header... " >&6; }
17691if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17692 $as_echo_n "(cached) " >&6
17693else
17694 eval "$as_ac_Header=\$ac_header_preproc"
17695fi
17696ac_res=`eval 'as_val=${'$as_ac_Header'}
17697 $as_echo "$as_val"'`
17698 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17699$as_echo "$ac_res" >&6; }
17700
17701fi
17702as_val=`eval 'as_val=${'$as_ac_Header'}
17703 $as_echo "$as_val"'`
17704 if test "x$as_val" = x""yes; then
17705 cat >>confdefs.h <<_ACEOF
17706#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17707_ACEOF
17708
17709else
17710 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
17711$as_echo "$as_me: error: bailing out" >&2;}
17712 { (exit 1); exit 1; }; }
17713fi
17714
17715done
17716
17717fi
17718
a653923f
AK
17719################################################################################
17720# Extract the first word of "modprobe", so it can be a program name with args.
17721set dummy modprobe; ac_word=$2
ec6a6fbe
AK
17722{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17723$as_echo_n "checking for $ac_word... " >&6; }
72b2cb61 17724if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
ec6a6fbe 17725 $as_echo_n "(cached) " >&6
72b2cb61
AK
17726else
17727 case $MODPROBE_CMD in
17728 [\\/]* | ?:[\\/]*)
17729 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
17730 ;;
17731 *)
17732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733for as_dir in $PATH
17734do
17735 IFS=$as_save_IFS
17736 test -z "$as_dir" && as_dir=.
17737 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 17738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 17739 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
ec6a6fbe 17740 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
17741 break 2
17742 fi
17743done
17744done
7a197a62 17745IFS=$as_save_IFS
72b2cb61
AK
17746
17747 ;;
17748esac
17749fi
17750MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 17751if test -n "$MODPROBE_CMD"; then
ec6a6fbe
AK
17752 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
17753$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 17754else
ec6a6fbe
AK
17755 { $as_echo "$as_me:$LINENO: result: no" >&5
17756$as_echo "no" >&6; }
72b2cb61
AK
17757fi
17758
a653923f 17759
7a197a62 17760
a653923f 17761if test x$MODPROBE_CMD != x; then
72b2cb61
AK
17762
17763cat >>confdefs.h <<_ACEOF
17764#define MODPROBE_CMD "$MODPROBE_CMD"
17765_ACEOF
17766
a653923f
AK
17767fi
17768
b5c2529b 17769
a9b601e2
ZK
17770lvm_exec_prefix=$exec_prefix
17771test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
17772test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
17773
b5c2529b 17774cat >>confdefs.h <<_ACEOF
a9b601e2 17775#define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
b5c2529b
ZK
17776_ACEOF
17777
17778
17779if test "$CLVMD" != none; then
17780 clvmd_prefix=$ac_default_prefix
17781 test "$prefix" != NONE && clvmd_prefix=$prefix
17782
17783cat >>confdefs.h <<_ACEOF
17784#define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
17785_ACEOF
17786
17787fi
17788
80992638 17789################################################################################
93bd259b
AK
17790if test "$BUILD_DMEVENTD" = yes; then
17791
17792# Check whether --with-dmeventd-pidfile was given.
17793if test "${with_dmeventd_pidfile+set}" = set; then
71082be4 17794 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 17795else
71082be4 17796 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
17797fi
17798
93bd259b 17799
71082be4
ZK
17800cat >>confdefs.h <<_ACEOF
17801#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
17802_ACEOF
93bd259b 17803
71082be4 17804fi
93bd259b
AK
17805
17806if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
17807
17808# Check whether --with-dmeventd-path was given.
17809if test "${with_dmeventd_path+set}" = set; then
71082be4 17810 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 17811else
71082be4 17812 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
17813fi
17814
93bd259b 17815
71082be4
ZK
17816cat >>confdefs.h <<_ACEOF
17817#define DMEVENTD_PATH "$DMEVENTD_PATH"
17818_ACEOF
3399ae32 17819
71082be4 17820fi
3399ae32 17821
8bae0a1e
AK
17822
17823
17824
17825# Check whether --with-default-run-dir was given.
17826if test "${with_default_run_dir+set}" = set; then
17827 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
17828else
17829 DEFAULT_RUN_DIR="/var/run/lvm"
17830fi
17831
17832cat >>confdefs.h <<_ACEOF
17833#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
17834_ACEOF
17835
17836
71082be4 17837################################################################################
3399ae32
AK
17838
17839# Check whether --with-default-system-dir was given.
17840if test "${with_default_system_dir+set}" = set; then
71082be4 17841 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 17842else
71082be4 17843 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
17844fi
17845
71082be4 17846
3399ae32
AK
17847cat >>confdefs.h <<_ACEOF
17848#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
17849_ACEOF
17850
17851
17852
3399ae32
AK
17853# Check whether --with-default-archive-subdir was given.
17854if test "${with_default_archive_subdir+set}" = set; then
71082be4 17855 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 17856else
71082be4 17857 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
17858fi
17859
71082be4 17860
3399ae32
AK
17861cat >>confdefs.h <<_ACEOF
17862#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
17863_ACEOF
17864
17865
17866
3399ae32
AK
17867# Check whether --with-default-backup-subdir was given.
17868if test "${with_default_backup_subdir+set}" = set; then
71082be4 17869 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 17870else
71082be4 17871 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
17872fi
17873
71082be4 17874
3399ae32
AK
17875cat >>confdefs.h <<_ACEOF
17876#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
17877_ACEOF
17878
17879
17880
3399ae32
AK
17881# Check whether --with-default-cache-subdir was given.
17882if test "${with_default_cache_subdir+set}" = set; then
71082be4 17883 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 17884else
71082be4 17885 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
17886fi
17887
71082be4 17888
3399ae32
AK
17889cat >>confdefs.h <<_ACEOF
17890#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
17891_ACEOF
17892
17893
17894
3399ae32
AK
17895# Check whether --with-default-locking-dir was given.
17896if test "${with_default_locking_dir+set}" = set; then
71082be4 17897 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 17898else
71082be4 17899 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
17900fi
17901
71082be4 17902
3399ae32
AK
17903cat >>confdefs.h <<_ACEOF
17904#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
17905_ACEOF
17906
17907
93bd259b 17908################################################################################
ec6a6fbe
AK
17909{ $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
17910$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
17911
17912# Check whether --with-interface was given.
17913if test "${with_interface+set}" = set; then
71082be4 17914 withval=$with_interface; interface=$withval
93bd259b 17915else
71082be4 17916 interface=ioctl
93bd259b
AK
17917fi
17918
17919if [ "x$interface" != xioctl ];
17920then
ec6a6fbe
AK
17921 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
17922$as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
93bd259b
AK
17923 { (exit 1); exit 1; }; }
17924fi
ec6a6fbe
AK
17925{ $as_echo "$as_me:$LINENO: result: $interface" >&5
17926$as_echo "$interface" >&6; }
93bd259b
AK
17927
17928################################################################################
db8b5af9 17929DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
17930
17931cat >>confdefs.h <<_ACEOF
17932#define DM_LIB_VERSION $DM_LIB_VERSION
17933_ACEOF
17934
17935
db8b5af9 17936DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 17937
db8b5af9 17938LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 17939
db8b5af9 17940VER=`cat "$srcdir"/VERSION`
bf456146 17941LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
17942VER=`echo "$VER" | $AWK '{print $1}'`
17943LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
17944VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
17945LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
17946LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
17947LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
17948LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 17949
80992638 17950################################################################################
fae0c576 17951
83912faa 17952
795ca3e5
AK
17953
17954
17955
17956
17957
17958
5a52dca9 17959
8ef2b021 17960
199e490e 17961
69792976
AK
17962
17963
17964
d0191583 17965
69792976 17966
8106cdd5
AK
17967
17968
17969
17970
17971
d68a82ec 17972
036f273a 17973
7d1552c9 17974
8106cdd5 17975
0a62c911 17976
8106cdd5 17977
4a7f3eb2 17978
4922197a
AK
17979
17980
d8ac0fbc 17981
1a9ea74d 17982
8a2fc586
AK
17983
17984
d0191583 17985
93bd259b
AK
17986
17987
17988
17989
17990
d0191583
JM
17991
17992
17993
17994
17995
8a2fc586 17996
19a2c6e0 17997
f7f0854e
ZK
17998
17999
3ceb7608 18000
8ce0cbda 18001
8b1a3214 18002
ec6a6fbe
AK
18003
18004
18005
18006
e2997b73
AK
18007
18008
18009
18010
18011
18012
a946372e
AK
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
ec6a6fbe 18024
33f732c5 18025
66e941e8 18026
d3c8211f 18027
7e3fe830 18028
a5f46f6a
AK
18029
18030
18031
572fefeb 18032
90c80887 18033
3399ae32
AK
18034
18035
18036
18037
18038
90c80887 18039
bf456146 18040
e1b8a236 18041
0878503f 18042
8fea97b7 18043
54b362f9 18044
b1f08e51 18045
68f2de6d
AK
18046
18047
80992638 18048################################################################################
54b362f9 18049ac_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 18050
ad6254c5 18051cat >confcache <<\_ACEOF
795ca3e5
AK
18052# This file is a shell script that caches the results of configure
18053# tests run on this system so they can be shared between configure
ad6254c5
AK
18054# scripts and configure runs, see configure's option --config-cache.
18055# It is not useful on other systems. If it contains results you don't
18056# want to keep, you may remove or edit it.
795ca3e5 18057#
ad6254c5
AK
18058# config.status only pays attention to the cache file if you give it
18059# the --recheck option to rerun configure.
795ca3e5 18060#
ad6254c5
AK
18061# `ac_cv_env_foo' variables (set or unset) will be overridden when
18062# loading this file, other *unset* `ac_cv_foo' will be assigned the
18063# following values.
18064
18065_ACEOF
18066
795ca3e5
AK
18067# The following way of writing the cache mishandles newlines in values,
18068# but we know of no workaround that is simple, portable, and efficient.
7a197a62 18069# So, we kill variables containing newlines.
795ca3e5
AK
18070# Ultrix sh set writes to stderr and can't be redirected directly,
18071# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
18072(
18073 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18074 eval ac_val=\$$ac_var
18075 case $ac_val in #(
18076 *${as_nl}*)
18077 case $ac_var in #(
ec6a6fbe
AK
18078 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18079$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
18080 esac
18081 case $ac_var in #(
18082 _ | IFS | as_nl) ;; #(
ec6a6fbe 18083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7a197a62
AK
18084 *) $as_unset $ac_var ;;
18085 esac ;;
18086 esac
18087 done
18088
ad6254c5 18089 (set) 2>&1 |
7a197a62
AK
18090 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18091 *${as_nl}ac_space=\ *)
ad6254c5
AK
18092 # `set' does not quote correctly, so add quotes (double-quote
18093 # substitution turns \\\\ into \\, and sed turns \\ into \).
18094 sed -n \
8a2fc586
AK
18095 "s/'/'\\\\''/g;
18096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 18097 ;; #(
ad6254c5
AK
18098 *)
18099 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 18100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 18101 ;;
7a197a62
AK
18102 esac |
18103 sort
18104) |
ad6254c5 18105 sed '
7a197a62 18106 /^ac_cv_env_/b end
ad6254c5 18107 t clear
7a197a62 18108 :clear
ad6254c5
AK
18109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18110 t end
7a197a62
AK
18111 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18112 :end' >>confcache
18113if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18114 if test -w "$cache_file"; then
18115 test "x$cache_file" != "x/dev/null" &&
ec6a6fbe
AK
18116 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
18117$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 18118 cat confcache >$cache_file
795ca3e5 18119 else
ec6a6fbe
AK
18120 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18121$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
18122 fi
18123fi
18124rm -f confcache
18125
795ca3e5
AK
18126test "x$prefix" = xNONE && prefix=$ac_default_prefix
18127# Let make expand exec_prefix.
18128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18129
72b2cb61 18130DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
18131
18132ac_libobjs=
18133ac_ltlibobjs=
18134for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18135 # 1. Remove the extension, and $U if already installed.
7a197a62 18136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 18137 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
18138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18139 # will be set to the directory where LIBOBJS objects are built.
18140 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18141 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
18142done
18143LIBOBJS=$ac_libobjs
80992638 18144
ad6254c5
AK
18145LTLIBOBJS=$ac_ltlibobjs
18146
18147
18148
18149: ${CONFIG_STATUS=./config.status}
ec6a6fbe 18150ac_write_fail=0
ad6254c5
AK
18151ac_clean_files_save=$ac_clean_files
18152ac_clean_files="$ac_clean_files $CONFIG_STATUS"
ec6a6fbe
AK
18153{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18154$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18155cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18156#! $SHELL
18157# Generated by $as_me.
795ca3e5 18158# Run this file to recreate the current configuration.
795ca3e5 18159# Compiler output produced by configure, useful for debugging
ad6254c5
AK
18160# configure, is in config.log if it exists.
18161
18162debug=false
18163ac_cs_recheck=false
18164ac_cs_silent=false
18165SHELL=\${CONFIG_SHELL-$SHELL}
18166_ACEOF
18167
ec6a6fbe 18168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18169## --------------------- ##
18170## M4sh Initialization. ##
18171## --------------------- ##
18172
25fbec5b
AK
18173# Be more Bourne compatible
18174DUALCASE=1; export DUALCASE # for MKS sh
ad6254c5
AK
18175if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18176 emulate sh
18177 NULLCMD=:
ec6a6fbe 18178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
18179 # is contrary to our usage. Disable this feature.
18180 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
18181 setopt NO_GLOB_SUBST
18182else
25fbec5b
AK
18183 case `(set -o) 2>/dev/null` in
18184 *posix*) set -o posix ;;
18185esac
18186
7a197a62 18187fi
25fbec5b
AK
18188
18189
7a197a62
AK
18190
18191
18192# PATH needs CR
18193# Avoid depending upon Character Ranges.
18194as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18195as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18196as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18197as_cr_digits='0123456789'
18198as_cr_alnum=$as_cr_Letters$as_cr_digits
18199
ec6a6fbe
AK
18200as_nl='
18201'
18202export as_nl
18203# Printing a long string crashes Solaris 7 /usr/bin/printf.
18204as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18205as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18206as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18207if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18208 as_echo='printf %s\n'
18209 as_echo_n='printf %s'
18210else
18211 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18212 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18213 as_echo_n='/usr/ucb/echo -n'
68f2de6d 18214 else
ec6a6fbe
AK
18215 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18216 as_echo_n_body='eval
18217 arg=$1;
18218 case $arg in
18219 *"$as_nl"*)
18220 expr "X$arg" : "X\\(.*\\)$as_nl";
18221 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18222 esac;
18223 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18224 '
18225 export as_echo_n_body
18226 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 18227 fi
ec6a6fbe
AK
18228 export as_echo_body
18229 as_echo='sh -c $as_echo_body as_echo'
18230fi
18231
18232# The user is always right.
18233if test "${PATH_SEPARATOR+set}" != set; then
18234 PATH_SEPARATOR=:
18235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18236 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18237 PATH_SEPARATOR=';'
18238 }
ad6254c5
AK
18239fi
18240
18241# Support unset when possible.
8a2fc586 18242if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ad6254c5
AK
18243 as_unset=unset
18244else
18245 as_unset=false
18246fi
8106cdd5 18247
ad6254c5 18248
7a197a62
AK
18249# IFS
18250# We need space, tab and new line, in precisely that order. Quoting is
18251# there to prevent editors from complaining about space-tab.
18252# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18253# splitting by setting IFS to empty value.)
7a197a62
AK
18254IFS=" "" $as_nl"
18255
18256# Find who we are. Look in the path if we contain no directory separator.
18257case $0 in
18258 *[\\/]* ) as_myself=$0 ;;
18259 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18260for as_dir in $PATH
18261do
18262 IFS=$as_save_IFS
18263 test -z "$as_dir" && as_dir=.
18264 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18265done
18266IFS=$as_save_IFS
18267
18268 ;;
18269esac
18270# We did not find ourselves, most probably we were run as `sh COMMAND'
18271# in which case we are not to be found in the path.
18272if test "x$as_myself" = x; then
18273 as_myself=$0
18274fi
18275if test ! -f "$as_myself"; then
ec6a6fbe 18276 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7a197a62
AK
18277 { (exit 1); exit 1; }
18278fi
18279
ad6254c5 18280# Work around bugs in pre-3.0 UWIN ksh.
7a197a62
AK
18281for as_var in ENV MAIL MAILPATH
18282do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18283done
ad6254c5
AK
18284PS1='$ '
18285PS2='> '
18286PS4='+ '
18287
18288# NLS nuisances.
ec6a6fbe
AK
18289LC_ALL=C
18290export LC_ALL
18291LANGUAGE=C
18292export LANGUAGE
8106cdd5 18293
ad6254c5 18294# Required to use basename.
7a197a62
AK
18295if expr a : '\(a\)' >/dev/null 2>&1 &&
18296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18297 as_expr=expr
18298else
18299 as_expr=false
18300fi
8106cdd5 18301
7a197a62 18302if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
18303 as_basename=basename
18304else
18305 as_basename=false
18306fi
18307
18308
18309# Name of the executable.
7a197a62 18310as_me=`$as_basename -- "$0" ||
ad6254c5
AK
18311$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18312 X"$0" : 'X\(//\)$' \| \
7a197a62 18313 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 18314$as_echo X/"$0" |
7a197a62
AK
18315 sed '/^.*\/\([^/][^/]*\)\/*$/{
18316 s//\1/
18317 q
18318 }
18319 /^X\/\(\/\/\)$/{
18320 s//\1/
18321 q
18322 }
18323 /^X\/\(\/\).*/{
18324 s//\1/
18325 q
18326 }
18327 s/.*/./; q'`
ad6254c5 18328
7a197a62
AK
18329# CDPATH.
18330$as_unset CDPATH
ad6254c5
AK
18331
18332
ad6254c5 18333
ad6254c5
AK
18334 as_lineno_1=$LINENO
18335 as_lineno_2=$LINENO
ad6254c5 18336 test "x$as_lineno_1" != "x$as_lineno_2" &&
7a197a62 18337 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
795ca3e5 18338
ad6254c5
AK
18339 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18340 # uniformly replaced by the line number. The first 'sed' inserts a
7a197a62
AK
18341 # line-number line after each line using $LINENO; the second 'sed'
18342 # does the real work. The second script uses 'N' to pair each
18343 # line-number line with the line containing $LINENO, and appends
18344 # trailing '-' during substitution so that $LINENO is not a special
18345 # case at line end.
ad6254c5 18346 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7a197a62
AK
18347 # scripts with optimization help from Paolo Bonzini. Blame Lee
18348 # E. McMahon (1931-1989) for sed's syntax. :-)
18349 sed -n '
18350 p
18351 /[$]LINENO/=
18352 ' <$as_myself |
ad6254c5 18353 sed '
7a197a62
AK
18354 s/[$]LINENO.*/&-/
18355 t lineno
18356 b
18357 :lineno
ad6254c5 18358 N
7a197a62
AK
18359 :loop
18360 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
ad6254c5 18361 t loop
7a197a62 18362 s/-\n.*//
ad6254c5 18363 ' >$as_me.lineno &&
7a197a62 18364 chmod +x "$as_me.lineno" ||
ec6a6fbe 18365 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
ad6254c5
AK
18366 { (exit 1); exit 1; }; }
18367
18368 # Don't try to exec as it changes $[0], causing all sort of problems
18369 # (the dirname of $[0] is not the place where we might find the
7a197a62
AK
18370 # original and so on. Autoconf is especially sensitive to this).
18371 . "./$as_me.lineno"
ad6254c5
AK
18372 # Exit status is that of the last command.
18373 exit
18374}
18375
18376
7a197a62
AK
18377if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18378 as_dirname=dirname
18379else
18380 as_dirname=false
18381fi
18382
18383ECHO_C= ECHO_N= ECHO_T=
18384case `echo -n x` in
18385-n*)
18386 case `echo 'x\c'` in
18387 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18388 *) ECHO_C='\c';;
18389 esac;;
18390*)
18391 ECHO_N='-n';;
ad6254c5 18392esac
7a197a62
AK
18393if expr a : '\(a\)' >/dev/null 2>&1 &&
18394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
18395 as_expr=expr
18396else
18397 as_expr=false
18398fi
80992638 18399
ad6254c5 18400rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
18401if test -d conf$$.dir; then
18402 rm -f conf$$.dir/conf$$.file
18403else
18404 rm -f conf$$.dir
ec6a6fbe
AK
18405 mkdir conf$$.dir 2>/dev/null
18406fi
18407if (echo >conf$$.file) 2>/dev/null; then
18408 if ln -s conf$$.file conf$$ 2>/dev/null; then
18409 as_ln_s='ln -s'
18410 # ... but there are two gotchas:
18411 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18412 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18413 # In both cases, we have to default to `cp -p'.
18414 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18415 as_ln_s='cp -p'
18416 elif ln conf$$.file conf$$ 2>/dev/null; then
18417 as_ln_s=ln
18418 else
ad6254c5 18419 as_ln_s='cp -p'
ec6a6fbe 18420 fi
ad6254c5
AK
18421else
18422 as_ln_s='cp -p'
18423fi
7a197a62
AK
18424rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18425rmdir conf$$.dir 2>/dev/null
8106cdd5 18426
ad6254c5
AK
18427if mkdir -p . 2>/dev/null; then
18428 as_mkdir_p=:
18429else
8a2fc586 18430 test -d ./-p && rmdir ./-p
ad6254c5
AK
18431 as_mkdir_p=false
18432fi
18433
25fbec5b
AK
18434if test -x / >/dev/null 2>&1; then
18435 as_test_x='test -x'
7a197a62 18436else
25fbec5b
AK
18437 if ls -dL / >/dev/null 2>&1; then
18438 as_ls_L_option=L
18439 else
18440 as_ls_L_option=
18441 fi
18442 as_test_x='
18443 eval sh -c '\''
18444 if test -d "$1"; then
ec6a6fbe 18445 test -d "$1/.";
25fbec5b
AK
18446 else
18447 case $1 in
ec6a6fbe 18448 -*)set "./$1";;
25fbec5b
AK
18449 esac;
18450 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18451 ???[sx]*):;;*)false;;esac;fi
18452 '\'' sh
18453 '
7a197a62 18454fi
25fbec5b 18455as_executable_p=$as_test_x
ad6254c5
AK
18456
18457# Sed expression to map a string onto a valid CPP name.
8a2fc586 18458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18459
18460# Sed expression to map a string onto a valid variable name.
8a2fc586 18461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
18462
18463
ad6254c5
AK
18464exec 6>&1
18465
7a197a62 18466# Save the log message, to keep $[0] and so on meaningful, and to
ad6254c5 18467# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
18468# values after options handling.
18469ac_log="
ad6254c5 18470This file was extended by $as_me, which was
ec6a6fbe 18471generated by GNU Autoconf 2.63. Invocation command line was
ad6254c5
AK
18472
18473 CONFIG_FILES = $CONFIG_FILES
18474 CONFIG_HEADERS = $CONFIG_HEADERS
18475 CONFIG_LINKS = $CONFIG_LINKS
18476 CONFIG_COMMANDS = $CONFIG_COMMANDS
18477 $ $0 $@
18478
7a197a62
AK
18479on `(hostname || uname -n) 2>/dev/null | sed 1q`
18480"
18481
ad6254c5
AK
18482_ACEOF
18483
ec6a6fbe
AK
18484case $ac_config_files in *"
18485"*) set x $ac_config_files; shift; ac_config_files=$*;;
18486esac
18487
18488case $ac_config_headers in *"
18489"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18490esac
18491
18492
18493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18494# Files that config.status was made for.
68f2de6d
AK
18495config_files="$ac_config_files"
18496config_headers="$ac_config_headers"
ad6254c5 18497
7a197a62 18498_ACEOF
ad6254c5 18499
ec6a6fbe 18500cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
18501ac_cs_usage="\
18502\`$as_me' instantiates files from templates according to the
18503current configuration.
18504
ec6a6fbe 18505Usage: $0 [OPTION]... [FILE]...
ad6254c5
AK
18506
18507 -h, --help print this help, then exit
25fbec5b 18508 -V, --version print version number and configuration settings, then exit
ec6a6fbe
AK
18509 -q, --quiet, --silent
18510 do not print progress messages
ad6254c5
AK
18511 -d, --debug don't remove temporary files
18512 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
18513 --file=FILE[:TEMPLATE]
18514 instantiate the configuration file FILE
18515 --header=FILE[:TEMPLATE]
18516 instantiate the configuration header FILE
ad6254c5
AK
18517
18518Configuration files:
18519$config_files
18520
72b2cb61
AK
18521Configuration headers:
18522$config_headers
18523
ad6254c5 18524Report bugs to <bug-autoconf@gnu.org>."
ad6254c5 18525
7a197a62 18526_ACEOF
ec6a6fbe 18527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5
AK
18528ac_cs_version="\\
18529config.status
ec6a6fbe
AK
18530configured by $0, generated by GNU Autoconf 2.63,
18531 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
ad6254c5 18532
ec6a6fbe 18533Copyright (C) 2008 Free Software Foundation, Inc.
ad6254c5
AK
18534This config.status script is free software; the Free Software Foundation
18535gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
18536
18537ac_pwd='$ac_pwd'
18538srcdir='$srcdir'
18539INSTALL='$INSTALL'
fddafd51 18540MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
18541AWK='$AWK'
18542test -n "\$AWK" || AWK=awk
ad6254c5
AK
18543_ACEOF
18544
ec6a6fbe
AK
18545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18546# The default lists apply if the user does not specify any file.
ad6254c5
AK
18547ac_need_defaults=:
18548while test $# != 0
18549do
18550 case $1 in
18551 --*=*)
7a197a62
AK
18552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
18554 ac_shift=:
18555 ;;
7a197a62 18556 *)
ad6254c5
AK
18557 ac_option=$1
18558 ac_optarg=$2
18559 ac_shift=shift
18560 ;;
ad6254c5
AK
18561 esac
18562
18563 case $ac_option in
18564 # Handling of the options.
ad6254c5
AK
18565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18566 ac_cs_recheck=: ;;
7a197a62 18567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 18568 $as_echo "$ac_cs_version"; exit ;;
7a197a62 18569 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
18570 debug=: ;;
18571 --file | --fil | --fi | --f )
18572 $ac_shift
ec6a6fbe
AK
18573 case $ac_optarg in
18574 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18575 esac
18576 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
ad6254c5
AK
18577 ac_need_defaults=false;;
18578 --header | --heade | --head | --hea )
18579 $ac_shift
ec6a6fbe
AK
18580 case $ac_optarg in
18581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18582 esac
18583 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
ad6254c5 18584 ac_need_defaults=false;;
7a197a62
AK
18585 --he | --h)
18586 # Conflict between --help and --header
ec6a6fbe 18587 { $as_echo "$as_me: error: ambiguous option: $1
7a197a62
AK
18588Try \`$0 --help' for more information." >&2
18589 { (exit 1); exit 1; }; };;
18590 --help | --hel | -h )
ec6a6fbe 18591 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
18592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18593 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18594 ac_cs_silent=: ;;
18595
18596 # This is an error.
ec6a6fbe 18597 -*) { $as_echo "$as_me: error: unrecognized option: $1
7a197a62 18598Try \`$0 --help' for more information." >&2
ad6254c5
AK
18599 { (exit 1); exit 1; }; } ;;
18600
7a197a62
AK
18601 *) ac_config_targets="$ac_config_targets $1"
18602 ac_need_defaults=false ;;
ad6254c5
AK
18603
18604 esac
18605 shift
18606done
18607
18608ac_configure_extra_args=
18609
18610if $ac_cs_silent; then
18611 exec 6>/dev/null
18612 ac_configure_extra_args="$ac_configure_extra_args --silent"
18613fi
18614
18615_ACEOF
ec6a6fbe 18616cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 18617if \$ac_cs_recheck; then
ec6a6fbe
AK
18618 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18619 shift
18620 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18621 CONFIG_SHELL='$SHELL'
7a197a62 18622 export CONFIG_SHELL
ec6a6fbe 18623 exec "\$@"
ad6254c5
AK
18624fi
18625
18626_ACEOF
ec6a6fbe 18627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18628exec 5>>config.log
18629{
18630 echo
18631 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18632## Running $as_me. ##
18633_ASBOX
ec6a6fbe 18634 $as_echo "$ac_log"
7a197a62 18635} >&5
ad6254c5 18636
7a197a62 18637_ACEOF
ec6a6fbe 18638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 18639_ACEOF
ad6254c5 18640
ec6a6fbe 18641cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18642
18643# Handling of arguments.
ad6254c5
AK
18644for ac_config_target in $ac_config_targets
18645do
7a197a62
AK
18646 case $ac_config_target in
18647 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
18648 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18649 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
18650 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
18651 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 18652 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
18653 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
18654 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 18655 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 18656 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
93bd259b
AK
18657 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
18658 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
7a197a62 18659 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 18660 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 18661 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
18662 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18663 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
18664 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
18665 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
18666 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
18667 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 18668 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 18669 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
7a197a62 18670 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
93bd259b
AK
18671 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
18672 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 18673 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 18674 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
18675 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18676 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 18677 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 18678 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 18679 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
7a197a62 18680 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 18681 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 18682 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 18683 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 18684 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
18685 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
18686 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
7a197a62 18687
ec6a6fbe
AK
18688 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18689$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
ad6254c5 18690 { (exit 1); exit 1; }; };;
80992638 18691 esac
ad6254c5
AK
18692done
18693
7a197a62 18694
ad6254c5
AK
18695# If the user did not use the arguments to specify the items to instantiate,
18696# then the envvar interface is used. Set only those that are not.
18697# We use the long form for the default assignment because of an extremely
18698# bizarre bug on SunOS 4.1.3.
18699if $ac_need_defaults; then
18700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 18701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
18702fi
18703
18704# Have a temporary directory for convenience. Make it in the build tree
7a197a62 18705# simply because there is no reason against having it here, and in addition,
ad6254c5 18706# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
18707# Hook for its removal unless debugging.
18708# Note that there is a small window in which the directory will not be cleaned:
18709# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
18710$debug ||
18711{
7a197a62
AK
18712 tmp=
18713 trap 'exit_status=$?
18714 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18715' 0
ad6254c5
AK
18716 trap '{ (exit 1); exit 1; }' 1 2 13 15
18717}
ad6254c5
AK
18718# Create a (secure) tmp directory for tmp files.
18719
18720{
7a197a62 18721 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
18722 test -n "$tmp" && test -d "$tmp"
18723} ||
18724{
7a197a62
AK
18725 tmp=./conf$$-$RANDOM
18726 (umask 077 && mkdir "$tmp")
ad6254c5
AK
18727} ||
18728{
ec6a6fbe 18729 $as_echo "$as_me: cannot create a temporary directory in ." >&2
ad6254c5
AK
18730 { (exit 1); exit 1; }
18731}
18732
ec6a6fbe
AK
18733# Set up the scripts for CONFIG_FILES section.
18734# No need to generate them if there are no CONFIG_FILES.
18735# This happens for instance with `./config.status config.h'.
1995c9ff 18736if test -n "$CONFIG_FILES"; then
7a197a62 18737
68f2de6d 18738
ec6a6fbe
AK
18739ac_cr='\r'
18740ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18741if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18742 ac_cs_awk_cr='\\r'
18743else
18744 ac_cs_awk_cr=$ac_cr
1995c9ff 18745fi
7a197a62 18746
ec6a6fbe 18747echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 18748_ACEOF
7a197a62 18749
8106cdd5 18750
ec6a6fbe
AK
18751{
18752 echo "cat >conf$$subs.awk <<_ACEOF" &&
18753 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18754 echo "_ACEOF"
18755} >conf$$subs.sh ||
18756 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18757$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18758 { (exit 1); exit 1; }; }
18759ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1995c9ff
AK
18760ac_delim='%!_!# '
18761for ac_last_try in false false false false false :; do
ec6a6fbe
AK
18762 . ./conf$$subs.sh ||
18763 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18764$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18765 { (exit 1); exit 1; }; }
18766
18767 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18768 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
18769 break
18770 elif $ac_last_try; then
ec6a6fbe
AK
18771 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18772$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
1995c9ff
AK
18773 { (exit 1); exit 1; }; }
18774 else
18775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18776 fi
18777done
ec6a6fbe
AK
18778rm -f conf$$subs.sh
18779
18780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18781cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18782_ACEOF
18783sed -n '
18784h
18785s/^/S["/; s/!.*/"]=/
18786p
18787g
18788s/^[^!]*!//
18789:repl
18790t repl
18791s/'"$ac_delim"'$//
18792t delim
18793:nl
18794h
18795s/\(.\{148\}\).*/\1/
18796t more1
18797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18798p
18799n
18800b repl
18801:more1
18802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18803p
18804g
18805s/.\{148\}//
18806t nl
18807:delim
18808h
18809s/\(.\{148\}\).*/\1/
18810t more2
18811s/["\\]/\\&/g; s/^/"/; s/$/"/
18812p
18813b
18814:more2
18815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18816p
18817g
18818s/.\{148\}//
18819t delim
18820' <conf$$subs.awk | sed '
18821/^[^""]/{
18822 N
18823 s/\n//
18824}
18825' >>$CONFIG_STATUS || ac_write_fail=1
18826rm -f conf$$subs.awk
18827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18828_ACAWK
18829cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18830 for (key in S) S_is_set[key] = 1
18831 FS = "\a"
7a197a62 18832
ec6a6fbe
AK
18833}
18834{
18835 line = $ 0
18836 nfields = split(line, field, "@")
18837 substed = 0
18838 len = length(field[1])
18839 for (i = 2; i < nfields; i++) {
18840 key = field[i]
18841 keylen = length(key)
18842 if (S_is_set[key]) {
18843 value = S[key]
18844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18845 len += length(value) + length(field[++i])
18846 substed = 1
18847 } else
18848 len += 1 + keylen
18849 }
18850
18851 print line
18852}
fddafd51 18853
ec6a6fbe 18854_ACAWK
1995c9ff 18855_ACEOF
ec6a6fbe
AK
18856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18859else
18860 cat
18861fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18862 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18863$as_echo "$as_me: error: could not setup config files machinery" >&2;}
18864 { (exit 1); exit 1; }; }
7a197a62
AK
18865_ACEOF
18866
7a197a62
AK
18867# VPATH may cause trouble with some makes, so we remove $(srcdir),
18868# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18869# trailing colons and then remove the whole line if VPATH becomes empty
18870# (actually we leave an empty line to preserve line numbers).
18871if test "x$srcdir" = x.; then
18872 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18873s/:*\$(srcdir):*/:/
18874s/:*\${srcdir}:*/:/
18875s/:*@srcdir@:*/:/
18876s/^\([^=]*=[ ]*\):*/\1/
18877s/:*$//
18878s/^[^=]*=[ ]*$//
18879}'
18880fi
18881
ec6a6fbe 18882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
18883fi # test -n "$CONFIG_FILES"
18884
ec6a6fbe
AK
18885# Set up the scripts for CONFIG_HEADERS section.
18886# No need to generate them if there are no CONFIG_HEADERS.
18887# This happens for instance with `./config.status Makefile'.
18888if test -n "$CONFIG_HEADERS"; then
18889cat >"$tmp/defines.awk" <<\_ACAWK ||
18890BEGIN {
18891_ACEOF
18892
18893# Transform confdefs.h into an awk script `defines.awk', embedded as
18894# here-document in config.status, that substitutes the proper values into
18895# config.h.in to produce config.h.
18896
18897# Create a delimiter string that does not exist in confdefs.h, to ease
18898# handling of long lines.
18899ac_delim='%!_!# '
18900for ac_last_try in false false :; do
18901 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18902 if test -z "$ac_t"; then
18903 break
18904 elif $ac_last_try; then
18905 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18906$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18907 { (exit 1); exit 1; }; }
18908 else
18909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18910 fi
18911done
18912
18913# For the awk script, D is an array of macro values keyed by name,
18914# likewise P contains macro parameters if any. Preserve backslash
18915# newline sequences.
18916
18917ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18918sed -n '
18919s/.\{148\}/&'"$ac_delim"'/g
18920t rset
18921:rset
18922s/^[ ]*#[ ]*define[ ][ ]*/ /
18923t def
18924d
18925:def
18926s/\\$//
18927t bsnl
18928s/["\\]/\\&/g
18929s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18930D["\1"]=" \3"/p
18931s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18932d
18933:bsnl
18934s/["\\]/\\&/g
18935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18936D["\1"]=" \3\\\\\\n"\\/p
18937t cont
18938s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18939t cont
18940d
18941:cont
18942n
18943s/.\{148\}/&'"$ac_delim"'/g
18944t clear
18945:clear
18946s/\\$//
18947t bsnlc
18948s/["\\]/\\&/g; s/^/"/; s/$/"/p
18949d
18950:bsnlc
18951s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18952b cont
18953' <confdefs.h | sed '
18954s/'"$ac_delim"'/"\\\
18955"/g' >>$CONFIG_STATUS || ac_write_fail=1
18956
18957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18958 for (key in D) D_is_set[key] = 1
18959 FS = "\a"
18960}
18961/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18962 line = \$ 0
18963 split(line, arg, " ")
18964 if (arg[1] == "#") {
18965 defundef = arg[2]
18966 mac1 = arg[3]
18967 } else {
18968 defundef = substr(arg[1], 2)
18969 mac1 = arg[2]
18970 }
18971 split(mac1, mac2, "(") #)
18972 macro = mac2[1]
18973 prefix = substr(line, 1, index(line, defundef) - 1)
18974 if (D_is_set[macro]) {
18975 # Preserve the white space surrounding the "#".
18976 print prefix "define", macro P[macro] D[macro]
18977 next
18978 } else {
18979 # Replace #undef with comments. This is necessary, for example,
18980 # in the case of _POSIX_SOURCE, which is predefined and required
18981 # on some systems where configure will not decide to define it.
18982 if (defundef == "undef") {
18983 print "/*", prefix defundef, macro, "*/"
18984 next
18985 }
18986 }
18987}
18988{ print }
18989_ACAWK
18990_ACEOF
18991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18992 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18993$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18994 { (exit 1); exit 1; }; }
18995fi # test -n "$CONFIG_HEADERS"
18996
7a197a62 18997
ec6a6fbe
AK
18998eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
18999shift
19000for ac_tag
7a197a62
AK
19001do
19002 case $ac_tag in
19003 :[FHLC]) ac_mode=$ac_tag; continue;;
19004 esac
19005 case $ac_mode$ac_tag in
19006 :[FHL]*:*);;
ec6a6fbe
AK
19007 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
19008$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7a197a62
AK
19009 { (exit 1); exit 1; }; };;
19010 :[FH]-) ac_tag=-:-;;
19011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19012 esac
19013 ac_save_IFS=$IFS
19014 IFS=:
19015 set x $ac_tag
19016 IFS=$ac_save_IFS
19017 shift
19018 ac_file=$1
19019 shift
19020
19021 case $ac_mode in
19022 :L) ac_source=$1;;
19023 :[FH])
19024 ac_file_inputs=
19025 for ac_f
19026 do
19027 case $ac_f in
19028 -) ac_f="$tmp/stdin";;
19029 *) # Look for the file first in the build tree, then in the source tree
19030 # (if the path is not absolute). The absolute path cannot be DOS-style,
19031 # because $ac_f cannot contain `:'.
19032 test -f "$ac_f" ||
19033 case $ac_f in
19034 [\\/$]*) false;;
19035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19036 esac ||
ec6a6fbe
AK
19037 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19038$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7a197a62
AK
19039 { (exit 1); exit 1; }; };;
19040 esac
ec6a6fbe
AK
19041 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19042 ac_file_inputs="$ac_file_inputs '$ac_f'"
7a197a62
AK
19043 done
19044
19045 # Let's still pretend it is `configure' which instantiates (i.e., don't
19046 # use $as_me), people would be surprised to read:
19047 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
19048 configure_input='Generated from '`
19049 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19050 `' by configure.'
7a197a62
AK
19051 if test x"$ac_file" != x-; then
19052 configure_input="$ac_file. $configure_input"
ec6a6fbe
AK
19053 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
19054$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 19055 fi
ec6a6fbe
AK
19056 # Neutralize special characters interpreted by sed in replacement strings.
19057 case $configure_input in #(
19058 *\&* | *\|* | *\\* )
19059 ac_sed_conf_input=`$as_echo "$configure_input" |
19060 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19061 *) ac_sed_conf_input=$configure_input;;
19062 esac
7a197a62
AK
19063
19064 case $ac_tag in
ec6a6fbe
AK
19065 *:-:* | *:-) cat >"$tmp/stdin" \
19066 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19067$as_echo "$as_me: error: could not create $ac_file" >&2;}
19068 { (exit 1); exit 1; }; } ;;
7a197a62
AK
19069 esac
19070 ;;
80992638 19071 esac
8106cdd5 19072
7a197a62 19073 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 19074$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19075 X"$ac_file" : 'X\(//\)[^/]' \| \
19076 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 19077 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19078$as_echo X"$ac_file" |
7a197a62
AK
19079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19080 s//\1/
19081 q
19082 }
19083 /^X\(\/\/\)[^/].*/{
19084 s//\1/
19085 q
19086 }
19087 /^X\(\/\/\)$/{
19088 s//\1/
19089 q
19090 }
19091 /^X\(\/\).*/{
19092 s//\1/
19093 q
19094 }
19095 s/.*/./; q'`
19096 { as_dir="$ac_dir"
19097 case $as_dir in #(
19098 -*) as_dir=./$as_dir;;
19099 esac
19100 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
ad6254c5 19101 as_dirs=
7a197a62
AK
19102 while :; do
19103 case $as_dir in #(
ec6a6fbe 19104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7a197a62
AK
19105 *) as_qdir=$as_dir;;
19106 esac
19107 as_dirs="'$as_qdir' $as_dirs"
19108 as_dir=`$as_dirname -- "$as_dir" ||
ad6254c5 19109$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
19110 X"$as_dir" : 'X\(//\)[^/]' \| \
19111 X"$as_dir" : 'X\(//\)$' \| \
7a197a62 19112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 19113$as_echo X"$as_dir" |
7a197a62
AK
19114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19115 s//\1/
19116 q
19117 }
19118 /^X\(\/\/\)[^/].*/{
19119 s//\1/
19120 q
19121 }
19122 /^X\(\/\/\)$/{
19123 s//\1/
19124 q
19125 }
19126 /^X\(\/\).*/{
19127 s//\1/
19128 q
19129 }
19130 s/.*/./; q'`
19131 test -d "$as_dir" && break
ad6254c5 19132 done
7a197a62 19133 test -z "$as_dirs" || eval "mkdir $as_dirs"
ec6a6fbe
AK
19134 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19135$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
ad6254c5 19136 { (exit 1); exit 1; }; }; }
ad6254c5
AK
19137 ac_builddir=.
19138
7a197a62
AK
19139case "$ac_dir" in
19140.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19141*)
ec6a6fbe 19142 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 19143 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 19144 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
19145 case $ac_top_builddir_sub in
19146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19148 esac ;;
19149esac
19150ac_abs_top_builddir=$ac_pwd
19151ac_abs_builddir=$ac_pwd$ac_dir_suffix
19152# for backward compatibility:
19153ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
19154
19155case $srcdir in
7a197a62 19156 .) # We are building in place.
ad6254c5 19157 ac_srcdir=.
7a197a62
AK
19158 ac_top_srcdir=$ac_top_builddir_sub
19159 ac_abs_top_srcdir=$ac_pwd ;;
19160 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 19161 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
19162 ac_top_srcdir=$srcdir
19163 ac_abs_top_srcdir=$srcdir ;;
19164 *) # Relative name.
19165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19166 ac_top_srcdir=$ac_top_build_prefix$srcdir
19167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 19168esac
7a197a62 19169ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 19170
ad6254c5 19171
7a197a62
AK
19172 case $ac_mode in
19173 :F)
19174 #
19175 # CONFIG_FILE
19176 #
ad6254c5
AK
19177
19178 case $INSTALL in
19179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 19180 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 19181 esac
fddafd51
ZK
19182 ac_MKDIR_P=$MKDIR_P
19183 case $MKDIR_P in
19184 [\\/$]* | ?:[\\/]* ) ;;
19185 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19186 esac
7a197a62 19187_ACEOF
795ca3e5 19188
ec6a6fbe 19189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
19190# If the template does not know about datarootdir, expand it.
19191# FIXME: This hack should be removed a few years after 2.60.
19192ac_datarootdir_hack=; ac_datarootdir_seen=
19193
ec6a6fbe
AK
19194ac_sed_dataroot='
19195/datarootdir/ {
7a197a62
AK
19196 p
19197 q
19198}
19199/@datadir@/p
19200/@docdir@/p
19201/@infodir@/p
19202/@localedir@/p
19203/@mandir@/p
ec6a6fbe
AK
19204'
19205case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
19206*datarootdir*) ac_datarootdir_seen=yes;;
19207*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
ec6a6fbe
AK
19208 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19209$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 19210_ACEOF
ec6a6fbe 19211cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
19212 ac_datarootdir_hack='
19213 s&@datadir@&$datadir&g
19214 s&@docdir@&$docdir&g
19215 s&@infodir@&$infodir&g
19216 s&@localedir@&$localedir&g
19217 s&@mandir@&$mandir&g
19218 s&\\\${datarootdir}&$datarootdir&g' ;;
19219esac
19220_ACEOF
19221
19222# Neutralize VPATH when `$srcdir' = `.'.
19223# Shell code in configure.ac might set extrasub.
19224# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
19225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19226ac_sed_extra="$ac_vpsub
ad6254c5
AK
19227$extrasub
19228_ACEOF
ec6a6fbe 19229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
19230:t
19231/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 19232s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 19233s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 19234s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
19235s&@srcdir@&$ac_srcdir&;t t
19236s&@abs_srcdir@&$ac_abs_srcdir&;t t
19237s&@top_srcdir@&$ac_top_srcdir&;t t
19238s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19239s&@builddir@&$ac_builddir&;t t
19240s&@abs_builddir@&$ac_abs_builddir&;t t
19241s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19242s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 19243s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 19244$ac_datarootdir_hack
ec6a6fbe
AK
19245"
19246eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19247 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19248$as_echo "$as_me: error: could not create $ac_file" >&2;}
19249 { (exit 1); exit 1; }; }
7a197a62
AK
19250
19251test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19252 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19253 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
ec6a6fbe 19254 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62 19255which seems to be undefined. Please make sure it is defined." >&5
ec6a6fbe 19256$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7a197a62
AK
19257which seems to be undefined. Please make sure it is defined." >&2;}
19258
19259 rm -f "$tmp/stdin"
72b2cb61 19260 case $ac_file in
ec6a6fbe
AK
19261 -) cat "$tmp/out" && rm -f "$tmp/out";;
19262 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19263 esac \
19264 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19265$as_echo "$as_me: error: could not create $ac_file" >&2;}
19266 { (exit 1); exit 1; }; }
7a197a62
AK
19267 ;;
19268 :H)
19269 #
19270 # CONFIG_HEADER
19271 #
72b2cb61 19272 if test x"$ac_file" != x-; then
ec6a6fbe
AK
19273 {
19274 $as_echo "/* $configure_input */" \
19275 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19276 } >"$tmp/config.h" \
19277 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19278$as_echo "$as_me: error: could not create $ac_file" >&2;}
19279 { (exit 1); exit 1; }; }
19280 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19281 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19282$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 19283 else
ec6a6fbe
AK
19284 rm -f "$ac_file"
19285 mv "$tmp/config.h" "$ac_file" \
19286 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19287$as_echo "$as_me: error: could not create $ac_file" >&2;}
19288 { (exit 1); exit 1; }; }
72b2cb61
AK
19289 fi
19290 else
ec6a6fbe
AK
19291 $as_echo "/* $configure_input */" \
19292 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19293 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19294$as_echo "$as_me: error: could not create -" >&2;}
19295 { (exit 1); exit 1; }; }
72b2cb61 19296 fi
7a197a62
AK
19297 ;;
19298
19299
19300 esac
19301
19302done # for ac_tag
795ca3e5 19303
795ca3e5 19304
ad6254c5
AK
19305{ (exit 0); exit 0; }
19306_ACEOF
795ca3e5 19307chmod +x $CONFIG_STATUS
ad6254c5
AK
19308ac_clean_files=$ac_clean_files_save
19309
ec6a6fbe
AK
19310test $ac_write_fail = 0 ||
19311 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19312$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19313 { (exit 1); exit 1; }; }
19314
ad6254c5
AK
19315
19316# configure is writing to config.log, and then calls config.status.
19317# config.status does its own redirection, appending to config.log.
19318# Unfortunately, on DOS this fails, as config.log is still kept open
19319# by configure, so config.status won't be able to write to it; its
19320# output is simply discarded. So we exec the FD to /dev/null,
19321# effectively closing config.log, so it can be properly (re)opened and
19322# appended to by config.status. When coming back to configure, we
19323# need to make the FD available again.
19324if test "$no_create" != yes; then
19325 ac_cs_success=:
19326 ac_config_status_args=
19327 test "$silent" = yes &&
19328 ac_config_status_args="$ac_config_status_args --quiet"
19329 exec 5>/dev/null
19330 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19331 exec 5>>config.log
19332 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19333 # would make configure fail if this is the last instruction.
19334 $ac_cs_success || { (exit 1); exit 1; }
19335fi
ec6a6fbe
AK
19336if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19337 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19338$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19339fi
795ca3e5 19340
2dc95e1c
AK
19341
19342if test x$ODIRECT != xyes; then
ec6a6fbe
AK
19343 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
19344$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 19345fi
This page took 2.607554 seconds and 5 git commands to generate.